]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/configure
Change version number to 2.38.50 and regenerate files
[thirdparty/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
f908e960 3# Generated by GNU Autoconf 2.69 for opcodes 2.38.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'
f908e960
NC
590PACKAGE_VERSION='2.38.50'
591PACKAGE_STRING='opcodes 2.38.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
1d5269c9
MF
648ENABLE_BFD_64_BIT_FALSE
649ENABLE_BFD_64_BIT_TRUE
81ecdfbb
RW
650EXEEXT_FOR_BUILD
651CC_FOR_BUILD
652MSGMERGE
653MSGFMT
654MKINSTALLDIRS
655CATOBJEXT
656GENCAT
657INSTOBJEXT
658DATADIRNAME
659CATALOGS
660POSUB
661GMSGFMT
662XGETTEXT
663INCINTL
664LIBINTL_DEP
665LIBINTL
666USE_NLS
667bfdincludedir
668bfdlibdir
669target_noncanonical
670host_noncanonical
671INSTALL_LIBBFD_FALSE
672INSTALL_LIBBFD_TRUE
673MAINT
674MAINTAINER_MODE_FALSE
675MAINTAINER_MODE_TRUE
6757cf57 676WARN_WRITE_STRINGS
81ecdfbb 677NO_WERROR
c5da1932 678WARN_CFLAGS_FOR_BUILD
81ecdfbb
RW
679WARN_CFLAGS
680OTOOL64
681OTOOL
682LIPO
683NMEDIT
684DSYMUTIL
81ecdfbb
RW
685OBJDUMP
686LN_S
687NM
688ac_ct_DUMPBIN
689DUMPBIN
690LD
691FGREP
692SED
693LIBTOOL
694RANLIB
695AR
696EGREP
697GREP
698CPP
699am__fastdepCC_FALSE
700am__fastdepCC_TRUE
701CCDEPMODE
6eb7d830 702am__nodep
81ecdfbb
RW
703AMDEPBACKSLASH
704AMDEP_FALSE
705AMDEP_TRUE
706am__quote
707am__include
708DEPDIR
ab2af25e
AM
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716AM_BACKSLASH
717AM_DEFAULT_VERBOSITY
718AM_DEFAULT_V
719AM_V
81ecdfbb
RW
720am__untar
721am__tar
722AMTAR
723am__leading_dot
724SET_MAKE
725AWK
726mkdir_p
727MKDIR_P
728INSTALL_STRIP_PROGRAM
729STRIP
730install_sh
731MAKEINFO
732AUTOHEADER
733AUTOMAKE
734AUTOCONF
735ACLOCAL
736VERSION
737PACKAGE
738CYGPATH_W
739am__isrc
740INSTALL_DATA
741INSTALL_SCRIPT
742INSTALL_PROGRAM
81ecdfbb
RW
743target_os
744target_vendor
745target_cpu
746target
747host_os
748host_vendor
749host_cpu
750host
751build_os
752build_vendor
753build_cpu
754build
755target_alias
756host_alias
757build_alias
758LIBS
759ECHO_T
760ECHO_N
761ECHO_C
762DEFS
763mandir
764localedir
765libdir
766psdir
767pdfdir
768dvidir
769htmldir
770infodir
771docdir
772oldincludedir
773includedir
f908e960 774runstatedir
81ecdfbb
RW
775localstatedir
776sharedstatedir
777sysconfdir
778datadir
779datarootdir
780libexecdir
781sbindir
782bindir
783program_transform_name
784prefix
785exec_prefix
786PACKAGE_URL
787PACKAGE_BUGREPORT
788PACKAGE_STRING
789PACKAGE_VERSION
790PACKAGE_TARNAME
791PACKAGE_NAME
792PATH_SEPARATOR
793SHELL'
979273e3 794ac_subst_files=''
81ecdfbb
RW
795ac_user_opts='
796enable_option_checking
d0ac1c44 797enable_silent_rules
ab2af25e 798enable_dependency_tracking
81ecdfbb
RW
799enable_shared
800enable_static
801with_pic
802enable_fast_install
803with_gnu_ld
804enable_libtool_lock
43e05cd4 805enable_checking
81ecdfbb
RW
806enable_targets
807enable_werror
808enable_build_warnings
809enable_maintainer_mode
810enable_install_libbfd
811enable_nls
1d5269c9 812enable_64_bit_bfd
81ecdfbb
RW
813enable_cgen_maint
814'
815 ac_precious_vars='build_alias
816host_alias
817target_alias
818CC
819CFLAGS
820LDFLAGS
821LIBS
822CPPFLAGS
823CPP'
824
252b5132
RH
825
826# Initialize some variables set by options.
979273e3
NN
827ac_init_help=
828ac_init_version=false
81ecdfbb
RW
829ac_unrecognized_opts=
830ac_unrecognized_sep=
252b5132
RH
831# The variables have the same names as the options, with
832# dashes changed to underlines.
979273e3 833cache_file=/dev/null
252b5132 834exec_prefix=NONE
252b5132 835no_create=
252b5132
RH
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
252b5132
RH
844verbose=
845x_includes=NONE
846x_libraries=NONE
979273e3
NN
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 853# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
252b5132
RH
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
f908e960 862runstatedir='${localstatedir}/run'
252b5132
RH
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
2e98a7bd 865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
252b5132 874
252b5132 875ac_prev=
81ecdfbb 876ac_dashdash=
252b5132
RH
877for ac_option
878do
252b5132
RH
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
81ecdfbb 881 eval $ac_prev=\$ac_option
252b5132
RH
882 ac_prev=
883 continue
884 fi
885
81ecdfbb 886 case $ac_option in
d0ac1c44
SM
887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 *=) ac_optarg= ;;
889 *) ac_optarg=yes ;;
81ecdfbb 890 esac
252b5132
RH
891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
81ecdfbb
RW
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
252b5132
RH
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 901 bindir=$ac_optarg ;;
252b5132
RH
902
903 -build | --build | --buil | --bui | --bu)
979273e3 904 ac_prev=build_alias ;;
252b5132 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 906 build_alias=$ac_optarg ;;
252b5132
RH
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979273e3
NN
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
252b5132 917
81ecdfbb 918 -datadir | --datadir | --datadi | --datad)
252b5132 919 ac_prev=datadir ;;
81ecdfbb 920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979273e3 921 datadir=$ac_optarg ;;
252b5132 922
81ecdfbb
RW
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
252b5132 930 -disable-* | --disable-*)
81ecdfbb 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 932 # Reject names that are not valid shell variable names.
81ecdfbb 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 934 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
252b5132
RH
955
956 -enable-* | --enable-*)
81ecdfbb 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 958 # Reject names that are not valid shell variable names.
81ecdfbb 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 960 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
252b5132 969 esac
81ecdfbb 970 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979273e3 979 exec_prefix=$ac_optarg ;;
252b5132
RH
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
979273e3
NN
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
252b5132
RH
991
992 -host | --host | --hos | --ho)
979273e3 993 ac_prev=host_alias ;;
252b5132 994 -host=* | --host=* | --hos=* | --ho=*)
979273e3 995 host_alias=$ac_optarg ;;
252b5132 996
81ecdfbb
RW
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
252b5132
RH
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
979273e3 1008 includedir=$ac_optarg ;;
252b5132
RH
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 1013 infodir=$ac_optarg ;;
252b5132
RH
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 1018 libdir=$ac_optarg ;;
252b5132
RH
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
979273e3 1025 libexecdir=$ac_optarg ;;
252b5132 1026
81ecdfbb
RW
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
252b5132 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1033 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979273e3 1037 localstatedir=$ac_optarg ;;
252b5132
RH
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 1042 mandir=$ac_optarg ;;
252b5132
RH
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979273e3 1049 | --no-cr | --no-c | -n)
252b5132
RH
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979273e3 1063 oldincludedir=$ac_optarg ;;
252b5132
RH
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 1068 prefix=$ac_optarg ;;
252b5132
RH
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979273e3 1075 program_prefix=$ac_optarg ;;
252b5132
RH
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979273e3 1082 program_suffix=$ac_optarg ;;
252b5132
RH
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
979273e3 1099 program_transform_name=$ac_optarg ;;
252b5132 1100
81ecdfbb
RW
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
252b5132
RH
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
f908e960
NC
1115 -runstatedir | --runstatedir | --runstatedi | --runstated \
1116 | --runstate | --runstat | --runsta | --runst | --runs \
1117 | --run | --ru | --r)
1118 ac_prev=runstatedir ;;
1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121 | --run=* | --ru=* | --r=*)
1122 runstatedir=$ac_optarg ;;
1123
252b5132
RH
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
979273e3 1128 sbindir=$ac_optarg ;;
252b5132
RH
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
979273e3 1139 sharedstatedir=$ac_optarg ;;
252b5132
RH
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
979273e3 1144 site=$ac_optarg ;;
1fe1f39c 1145
252b5132
RH
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 1149 srcdir=$ac_optarg ;;
252b5132
RH
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979273e3 1156 sysconfdir=$ac_optarg ;;
252b5132
RH
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 1159 ac_prev=target_alias ;;
252b5132 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 1161 target_alias=$ac_optarg ;;
252b5132
RH
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
979273e3
NN
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
252b5132
RH
1168
1169 -with-* | --with-*)
81ecdfbb 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1171 # Reject names that are not valid shell variable names.
81ecdfbb 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1173 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
252b5132 1182 esac
81ecdfbb 1183 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1184
1185 -without-* | --without-*)
81ecdfbb 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1187 # Reject names that are not valid shell variable names.
81ecdfbb 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1189 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
252b5132
RH
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
979273e3 1210 x_includes=$ac_optarg ;;
252b5132
RH
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979273e3 1217 x_libraries=$ac_optarg ;;
252b5132 1218
d0ac1c44
SM
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
252b5132
RH
1221 ;;
1222
979273e3
NN
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1229 esac
1230 eval $ac_envvar=\$ac_optarg
979273e3
NN
1231 export $ac_envvar ;;
1232
252b5132 1233 *)
979273e3 1234 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
979273e3 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
979273e3 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1246 as_fn_error $? "missing argument to $ac_option"
252b5132 1247fi
252b5132 1248
81ecdfbb
RW
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
d0ac1c44 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
979273e3 1254 esac
81ecdfbb 1255fi
252b5132 1256
81ecdfbb
RW
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
f908e960 1261 libdir localedir mandir runstatedir
252b5132 1262do
81ecdfbb
RW
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
979273e3 1271 case $ac_val in
81ecdfbb
RW
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1274 esac
d0ac1c44 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1276done
1277
979273e3
NN
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
1284
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
979273e3
NN
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292fi
252b5132 1293
979273e3
NN
1294ac_tool_prefix=
1295test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297test "$silent" = yes && exec 6>/dev/null
252b5132 1298
252b5132 1299
81ecdfbb
RW
1300ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301ac_ls_di=`ls -di .` &&
1302ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1303 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1304test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1305 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1306
1307
252b5132
RH
1308# Find the source files, if location was not specified.
1309if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
81ecdfbb
RW
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317$as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
252b5132 1335 srcdir=$ac_confdir
81ecdfbb 1336 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1337 srcdir=..
1338 fi
1339else
1340 ac_srcdir_defaulted=no
1341fi
81ecdfbb
RW
1342if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1345fi
1346ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347ac_abs_confdir=`(
d0ac1c44 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1349 pwd)`
1350# When building in place, set srcdir=.
1351if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353fi
1354# Remove unnecessary trailing slashes from srcdir.
1355# Double slashes in file names in object file debugging info
1356# mess up M-x gdb in Emacs.
1357case $srcdir in
1358*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359esac
1360for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365done
252b5132 1366
979273e3
NN
1367#
1368# Report the --help message.
1369#
1370if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
f908e960 1374\`configure' configures opcodes 2.38.50 to adapt to many kinds of systems.
252b5132 1375
979273e3 1376Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1377
979273e3
NN
1378To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1380
979273e3 1381Defaults for the options are specified in brackets.
ac48eca1 1382
979273e3
NN
1383Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
d0ac1c44 1388 -q, --quiet, --silent do not print \`checking ...' messages
979273e3
NN
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
979273e3
NN
1394Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1396 [$ac_default_prefix]
979273e3 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1398 [PREFIX]
ac48eca1 1399
979273e3
NN
1400By default, \`make install' will install all the files in
1401\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403for instance \`--prefix=\$HOME'.
ac48eca1 1404
979273e3 1405For better control, use the options below.
ac48eca1 1406
979273e3 1407Fine tuning of the installation directories:
81ecdfbb
RW
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
f908e960 1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
81ecdfbb
RW
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1423 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
81ecdfbb
RW
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
979273e3 1428_ACEOF
ac48eca1 1429
979273e3 1430 cat <<\_ACEOF
252b5132 1431
979273e3
NN
1432Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1436
979273e3
NN
1437System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441_ACEOF
252b5132 1442fi
252b5132 1443
979273e3 1444if test -n "$ac_init_help"; then
2e98a7bd 1445 case $ac_init_help in
f908e960 1446 short | recursive ) echo "Configuration of opcodes 2.38.50:";;
2e98a7bd 1447 esac
979273e3 1448 cat <<\_ACEOF
252b5132 1449
979273e3 1450Optional Features:
81ecdfbb 1451 --disable-option-checking ignore unrecognized --enable/--with options
979273e3
NN
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab2af25e
AM
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
d0ac1c44
SM
1456 --enable-dependency-tracking
1457 do not reject slow dependency extractors
1458 --disable-dependency-tracking
1459 speeds up one-time build
81ecdfbb
RW
1460 --enable-shared[=PKGS] build shared libraries [default=no]
1461 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1462 --enable-fast-install[=PKGS]
1463 optimize for fast installation [default=yes]
979273e3 1464 --disable-libtool-lock avoid locking (might break parallel builds)
43e05cd4 1465 --enable-checking enable run-time checks
979273e3 1466 --enable-targets alternative target configurations
241a6c40
AM
1467 --enable-werror treat compile warnings as errors
1468 --enable-build-warnings enable build-time compiler warnings
d0ac1c44
SM
1469 --enable-maintainer-mode
1470 enable make rules and dependencies not useful (and
1471 sometimes confusing) to the casual installer
979273e3
NN
1472 --enable-install-libbfd controls installation of libbfd and related headers
1473 --disable-nls do not use Native Language Support
1d5269c9 1474 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
979273e3
NN
1475 --enable-cgen-maint=dir build cgen generated files
1476
1477Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1480 --with-pic try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1483
979273e3
NN
1484Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
81ecdfbb 1489 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1491 you have headers in a nonstandard directory <include dir>
979273e3 1492 CPP C preprocessor
a2d91340 1493
979273e3
NN
1494Use these variables to override the choices made by `configure' or to help
1495it to find libraries and programs with nonstandard names/locations.
1496
81ecdfbb 1497Report bugs to the package provider.
979273e3 1498_ACEOF
81ecdfbb 1499ac_status=$?
a2d91340
AC
1500fi
1501
979273e3
NN
1502if test "$ac_init_help" = "recursive"; then
1503 # If there are subdirs, report their specific --help.
979273e3 1504 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1505 test -d "$ac_dir" ||
1506 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1507 continue
979273e3
NN
1508 ac_builddir=.
1509
81ecdfbb
RW
1510case "$ac_dir" in
1511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512*)
1513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519 esac ;;
1520esac
1521ac_abs_top_builddir=$ac_pwd
1522ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523# for backward compatibility:
1524ac_top_builddir=$ac_top_build_prefix
a2d91340 1525
979273e3 1526case $srcdir in
81ecdfbb 1527 .) # We are building in place.
979273e3 1528 ac_srcdir=.
81ecdfbb
RW
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 1532 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1535 *) # Relative name.
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a2d91340 1539esac
81ecdfbb
RW
1540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1545 echo &&
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure" --help=recursive
979273e3 1550 else
81ecdfbb
RW
1551 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 fi || ac_status=$?
1553 cd "$ac_pwd" || { ac_status=$?; break; }
979273e3
NN
1554 done
1555fi
a2d91340 1556
81ecdfbb 1557test -n "$ac_init_help" && exit $ac_status
979273e3
NN
1558if $ac_init_version; then
1559 cat <<\_ACEOF
f908e960 1560opcodes configure 2.38.50
d0ac1c44 1561generated by GNU Autoconf 2.69
252b5132 1562
d0ac1c44 1563Copyright (C) 2012 Free Software Foundation, Inc.
979273e3
NN
1564This configure script is free software; the Free Software Foundation
1565gives unlimited permission to copy, distribute and modify it.
1566_ACEOF
81ecdfbb 1567 exit
979273e3 1568fi
2c73f9d8 1569
81ecdfbb
RW
1570## ------------------------ ##
1571## Autoconf initialization. ##
1572## ------------------------ ##
252b5132 1573
81ecdfbb
RW
1574# ac_fn_c_try_compile LINENO
1575# --------------------------
1576# Try to compile conftest.$ac_ext, and return whether this succeeded.
1577ac_fn_c_try_compile ()
1578{
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext
1581 if { { ac_try="$ac_compile"
1582case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585esac
1586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587$as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_compile") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest.$ac_objext; then :
1600 ac_retval=0
1601else
1602 $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
252b5132 1604
81ecdfbb
RW
1605 ac_retval=1
1606fi
d0ac1c44
SM
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
81ecdfbb
RW
1609
1610} # ac_fn_c_try_compile
1611
81ecdfbb
RW
1612# ac_fn_c_try_cpp LINENO
1613# ----------------------
1614# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_cpp ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_cpp conftest.$ac_ext"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1633 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 }; then :
1637 ac_retval=0
1638else
1639 $as_echo "$as_me: failed program was:" >&5
1640sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643fi
d0ac1c44
SM
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
81ecdfbb
RW
1646
1647} # ac_fn_c_try_cpp
1648
1649# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1652# the include files in INCLUDES and setting the cache variable VAR
1653# accordingly.
1654ac_fn_c_check_header_mongrel ()
1655{
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1657 if eval \${$3+:} false; then :
81ecdfbb
RW
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1659$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1660if eval \${$3+:} false; then :
81ecdfbb
RW
1661 $as_echo_n "(cached) " >&6
1662fi
1663eval ac_res=\$$3
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1665$as_echo "$ac_res" >&6; }
1666else
1667 # Is the header compilable?
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1669$as_echo_n "checking $2 usability... " >&6; }
1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672$4
1673#include <$2>
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676 ac_header_compiler=yes
1677else
1678 ac_header_compiler=no
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1682$as_echo "$ac_header_compiler" >&6; }
1683
1684# Is the header present?
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1686$as_echo_n "checking $2 presence... " >&6; }
1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h. */
1689#include <$2>
1690_ACEOF
1691if ac_fn_c_try_cpp "$LINENO"; then :
1692 ac_header_preproc=yes
1693else
1694 ac_header_preproc=no
1695fi
d0ac1c44 1696rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1698$as_echo "$ac_header_preproc" >&6; }
1699
1700# So? What about this header?
1701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 yes:no: )
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1704$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 ;;
1708 no:yes:* )
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1710$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1712$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1714$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1716$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1718$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1719 ;;
1720esac
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1723if eval \${$3+:} false; then :
81ecdfbb
RW
1724 $as_echo_n "(cached) " >&6
1725else
1726 eval "$3=\$ac_header_compiler"
1727fi
1728eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730$as_echo "$ac_res" >&6; }
1731fi
d0ac1c44 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1733
1734} # ac_fn_c_check_header_mongrel
1735
1736# ac_fn_c_try_run LINENO
1737# ----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739# that executables *can* be run.
1740ac_fn_c_try_run ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754 { { case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_try") 2>&5
1761 ac_status=$?
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; }; }; then :
1764 ac_retval=0
1765else
1766 $as_echo "$as_me: program exited with status $ac_status" >&5
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=$ac_status
1771fi
1772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
81ecdfbb
RW
1775
1776} # ac_fn_c_try_run
1777
1778# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists and can be compiled using the include files in
1781# INCLUDES, setting the cache variable VAR accordingly.
1782ac_fn_c_check_header_compile ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1787if eval \${$3+:} false; then :
81ecdfbb
RW
1788 $as_echo_n "(cached) " >&6
1789else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792$4
1793#include <$2>
1794_ACEOF
1795if ac_fn_c_try_compile "$LINENO"; then :
1796 eval "$3=yes"
1797else
1798 eval "$3=no"
1799fi
1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801fi
1802eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
d0ac1c44 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1806
1807} # ac_fn_c_check_header_compile
1808
ab2af25e
AM
1809# ac_fn_c_try_link LINENO
1810# -----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_link ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext conftest$ac_exeext
1816 if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest$ac_exeext && {
1835 test "$cross_compiling" = yes ||
1836 test -x conftest$ac_exeext
1837 }; then :
1838 ac_retval=0
1839else
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844fi
1845 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1846 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1847 # interfere with the next link command; also delete a directory that is
1848 # left behind by Apple's compiler. We do this before executing the actions.
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1852
1853} # ac_fn_c_try_link
1854
81ecdfbb
RW
1855# ac_fn_c_check_func LINENO FUNC VAR
1856# ----------------------------------
1857# Tests whether FUNC exists, setting the cache variable VAR accordingly
1858ac_fn_c_check_func ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1863if eval \${$3+:} false; then :
81ecdfbb
RW
1864 $as_echo_n "(cached) " >&6
1865else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h. */
1868/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1870#define $2 innocuous_$2
1871
1872/* System header to define __stub macros and hopefully few prototypes,
1873 which can conflict with char $2 (); below.
1874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1875 <limits.h> exists even on freestanding compilers. */
1876
1877#ifdef __STDC__
1878# include <limits.h>
1879#else
1880# include <assert.h>
1881#endif
1882
1883#undef $2
1884
1885/* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888#ifdef __cplusplus
1889extern "C"
1890#endif
1891char $2 ();
1892/* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895#if defined __stub_$2 || defined __stub___$2
1896choke me
1897#endif
1898
1899int
1900main ()
1901{
1902return $2 ();
1903 ;
1904 return 0;
1905}
1906_ACEOF
1907if ac_fn_c_try_link "$LINENO"; then :
1908 eval "$3=yes"
1909else
1910 eval "$3=no"
1911fi
1912rm -f core conftest.err conftest.$ac_objext \
1913 conftest$ac_exeext conftest.$ac_ext
1914fi
1915eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917$as_echo "$ac_res" >&6; }
d0ac1c44 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1919
1920} # ac_fn_c_check_func
1921
1d5269c9
MF
1922# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1923# --------------------------------------------
1924# Tries to find the compile-time value of EXPR in a program that includes
1925# INCLUDES, setting VAR accordingly. Returns whether the value could be
1926# computed
1927ac_fn_c_compute_int ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if test "$cross_compiling" = yes; then
1931 # Depending upon the size, compute the lo and hi bounds.
1932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933/* end confdefs.h. */
1934$4
1935int
1936main ()
1937{
1938static int test_array [1 - 2 * !(($2) >= 0)];
1939test_array [0] = 0;
1940return test_array [0];
1941
1942 ;
1943 return 0;
1944}
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 ac_lo=0 ac_mid=0
1948 while :; do
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951$4
1952int
1953main ()
1954{
1955static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1956test_array [0] = 0;
1957return test_array [0];
1958
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_hi=$ac_mid; break
1965else
1966 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1967 if test $ac_lo -le $ac_mid; then
1968 ac_lo= ac_hi=
1969 break
1970 fi
1971 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 done
1975else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h. */
1978$4
1979int
1980main ()
1981{
1982static int test_array [1 - 2 * !(($2) < 0)];
1983test_array [0] = 0;
1984return test_array [0];
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_hi=-1 ac_mid=-1
1992 while :; do
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h. */
1995$4
1996int
1997main ()
1998{
1999static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2000test_array [0] = 0;
2001return test_array [0];
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_lo=$ac_mid; break
2009else
2010 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2011 if test $ac_mid -le $ac_hi; then
2012 ac_lo= ac_hi=
2013 break
2014 fi
2015 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019else
2020 ac_lo= ac_hi=
2021fi
2022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025# Binary search between lo and hi bounds.
2026while test "x$ac_lo" != "x$ac_hi"; do
2027 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030$4
2031int
2032main ()
2033{
2034static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2035test_array [0] = 0;
2036return test_array [0];
2037
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_hi=$ac_mid
2044else
2045 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048done
2049case $ac_lo in #((
2050?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2051'') ac_retval=1 ;;
2052esac
2053 else
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057static long int longval () { return $2; }
2058static unsigned long int ulongval () { return $2; }
2059#include <stdio.h>
2060#include <stdlib.h>
2061int
2062main ()
2063{
2064
2065 FILE *f = fopen ("conftest.val", "w");
2066 if (! f)
2067 return 1;
2068 if (($2) < 0)
2069 {
2070 long int i = longval ();
2071 if (i != ($2))
2072 return 1;
2073 fprintf (f, "%ld", i);
2074 }
2075 else
2076 {
2077 unsigned long int i = ulongval ();
2078 if (i != ($2))
2079 return 1;
2080 fprintf (f, "%lu", i);
2081 }
2082 /* Do not output a trailing newline, as this causes \r\n confusion
2083 on some platforms. */
2084 return ferror (f) || fclose (f) != 0;
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_run "$LINENO"; then :
2091 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2092else
2093 ac_retval=1
2094fi
2095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2096 conftest.$ac_objext conftest.beam conftest.$ac_ext
2097rm -f conftest.val
2098
2099 fi
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 as_fn_set_status $ac_retval
2102
2103} # ac_fn_c_compute_int
2104
d0ac1c44
SM
2105# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2106# ---------------------------------------------
2107# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2108# accordingly.
81ecdfbb
RW
2109ac_fn_c_check_decl ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2112 as_decl_name=`echo $2|sed 's/ *(.*//'`
2113 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2115$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2116if eval \${$3+:} false; then :
81ecdfbb
RW
2117 $as_echo_n "(cached) " >&6
2118else
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h. */
2121$4
2122int
2123main ()
2124{
360cfc9c
AM
2125#ifndef $as_decl_name
2126#ifdef __cplusplus
2127 (void) $as_decl_use;
2128#else
2129 (void) $as_decl_name;
2130#endif
81ecdfbb
RW
2131#endif
2132
2133 ;
2134 return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138 eval "$3=yes"
2139else
2140 eval "$3=no"
2141fi
2142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143fi
2144eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
d0ac1c44 2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2148
2149} # ac_fn_c_check_decl
2150cat >config.log <<_ACEOF
2151This file contains any messages produced by compilers while
2152running configure, to aid debugging if configure makes a mistake.
2153
f908e960 2154It was created by opcodes $as_me 2.38.50, which was
d0ac1c44 2155generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2156
2157 $ $0 $@
2158
2159_ACEOF
2160exec 5>>config.log
2161{
2162cat <<_ASUNAME
2163## --------- ##
2164## Platform. ##
2165## --------- ##
2166
2167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2168uname -m = `(uname -m) 2>/dev/null || echo unknown`
2169uname -r = `(uname -r) 2>/dev/null || echo unknown`
2170uname -s = `(uname -s) 2>/dev/null || echo unknown`
2171uname -v = `(uname -v) 2>/dev/null || echo unknown`
2172
2173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2174/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979273e3
NN
2175
2176/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2177/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2179/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
979273e3
NN
2180/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2181/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2182/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2183
2184_ASUNAME
2185
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2191 $as_echo "PATH: $as_dir"
2192 done
2193IFS=$as_save_IFS
252b5132 2194
979273e3 2195} >&5
75798298 2196
979273e3 2197cat >&5 <<_ACEOF
252b5132 2198
252b5132 2199
979273e3
NN
2200## ----------- ##
2201## Core tests. ##
2202## ----------- ##
2203
2204_ACEOF
2205
2206
2207# Keep a trace of the command line.
2208# Strip out --no-create and --no-recursion so they do not pile up.
2209# Strip out --silent because we don't want to record it for future runs.
2210# Also quote any args containing shell meta-characters.
2211# Make two passes to allow for proper duplicate-argument suppression.
2212ac_configure_args=
2213ac_configure_args0=
2214ac_configure_args1=
979273e3
NN
2215ac_must_keep_next=false
2216for ac_pass in 1 2
2217do
2218 for ac_arg
2219 do
2220 case $ac_arg in
2221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2223 | -silent | --silent | --silen | --sile | --sil)
2224 continue ;;
81ecdfbb
RW
2225 *\'*)
2226 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2227 esac
2228 case $ac_pass in
81ecdfbb 2229 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
979273e3 2230 2)
81ecdfbb 2231 as_fn_append ac_configure_args1 " '$ac_arg'"
979273e3
NN
2232 if test $ac_must_keep_next = true; then
2233 ac_must_keep_next=false # Got value, back to normal.
2234 else
2235 case $ac_arg in
2236 *=* | --config-cache | -C | -disable-* | --disable-* \
2237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2239 | -with-* | --with-* | -without-* | --without-* | --x)
2240 case "$ac_configure_args0 " in
2241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2242 esac
2243 ;;
2244 -* ) ac_must_keep_next=true ;;
2245 esac
2246 fi
81ecdfbb 2247 as_fn_append ac_configure_args " '$ac_arg'"
979273e3
NN
2248 ;;
2249 esac
2250 done
2251done
81ecdfbb
RW
2252{ ac_configure_args0=; unset ac_configure_args0;}
2253{ ac_configure_args1=; unset ac_configure_args1;}
979273e3
NN
2254
2255# When interrupted or exit'd, cleanup temporary files, and complete
2256# config.log. We remove comments because anyway the quotes in there
2257# would cause problems or look ugly.
81ecdfbb
RW
2258# WARNING: Use '\'' to represent an apostrophe within the trap.
2259# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
979273e3
NN
2260trap 'exit_status=$?
2261 # Save into config.log some information that might help in debugging.
2262 {
2263 echo
2264
d0ac1c44 2265 $as_echo "## ---------------- ##
979273e3 2266## Cache variables. ##
d0ac1c44 2267## ---------------- ##"
979273e3
NN
2268 echo
2269 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2270(
2271 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in #(
2274 *${as_nl}*)
2275 case $ac_var in #(
2276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278 esac
2279 case $ac_var in #(
2280 _ | IFS | as_nl) ;; #(
2281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282 *) { eval $ac_var=; unset $ac_var;} ;;
2283 esac ;;
2284 esac
2285 done
979273e3 2286 (set) 2>&1 |
81ecdfbb
RW
2287 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288 *${as_nl}ac_space=\ *)
979273e3 2289 sed -n \
81ecdfbb
RW
2290 "s/'\''/'\''\\\\'\'''\''/g;
2291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292 ;; #(
979273e3 2293 *)
81ecdfbb 2294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 2295 ;;
81ecdfbb
RW
2296 esac |
2297 sort
2298)
979273e3
NN
2299 echo
2300
d0ac1c44 2301 $as_echo "## ----------------- ##
979273e3 2302## Output variables. ##
d0ac1c44 2303## ----------------- ##"
979273e3
NN
2304 echo
2305 for ac_var in $ac_subst_vars
2306 do
81ecdfbb
RW
2307 eval ac_val=\$$ac_var
2308 case $ac_val in
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 esac
2311 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2312 done | sort
2313 echo
2314
2315 if test -n "$ac_subst_files"; then
d0ac1c44 2316 $as_echo "## ------------------- ##
81ecdfbb 2317## File substitutions. ##
d0ac1c44 2318## ------------------- ##"
979273e3
NN
2319 echo
2320 for ac_var in $ac_subst_files
2321 do
81ecdfbb
RW
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2327 done | sort
2328 echo
2329 fi
2330
2331 if test -s confdefs.h; then
d0ac1c44 2332 $as_echo "## ----------- ##
979273e3 2333## confdefs.h. ##
d0ac1c44 2334## ----------- ##"
979273e3 2335 echo
81ecdfbb 2336 cat confdefs.h
979273e3
NN
2337 echo
2338 fi
2339 test "$ac_signal" != 0 &&
81ecdfbb
RW
2340 $as_echo "$as_me: caught signal $ac_signal"
2341 $as_echo "$as_me: exit $exit_status"
979273e3 2342 } >&5
81ecdfbb
RW
2343 rm -f core *.core core.conftest.* &&
2344 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
979273e3 2345 exit $exit_status
81ecdfbb 2346' 0
979273e3 2347for ac_signal in 1 2 13 15; do
81ecdfbb 2348 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
979273e3
NN
2349done
2350ac_signal=0
2351
2352# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2353rm -f -r conftest* confdefs.h
2354
2355$as_echo "/* confdefs.h */" > confdefs.h
979273e3
NN
2356
2357# Predefined preprocessor variables.
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_NAME "$PACKAGE_NAME"
2361_ACEOF
2362
979273e3
NN
2363cat >>confdefs.h <<_ACEOF
2364#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365_ACEOF
2366
979273e3
NN
2367cat >>confdefs.h <<_ACEOF
2368#define PACKAGE_VERSION "$PACKAGE_VERSION"
2369_ACEOF
2370
979273e3
NN
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE_STRING "$PACKAGE_STRING"
2373_ACEOF
2374
979273e3
NN
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377_ACEOF
2378
81ecdfbb
RW
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_URL "$PACKAGE_URL"
2381_ACEOF
2382
979273e3
NN
2383
2384# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2385# Prefer an explicitly selected file to automatically selected ones.
2386ac_site_file1=NONE
2387ac_site_file2=NONE
2388if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2389 # We do not want a PATH search for config.site.
2390 case $CONFIG_SITE in #((
2391 -*) ac_site_file1=./$CONFIG_SITE;;
2392 */*) ac_site_file1=$CONFIG_SITE;;
2393 *) ac_site_file1=./$CONFIG_SITE;;
2394 esac
81ecdfbb
RW
2395elif test "x$prefix" != xNONE; then
2396 ac_site_file1=$prefix/share/config.site
2397 ac_site_file2=$prefix/etc/config.site
2398else
2399 ac_site_file1=$ac_default_prefix/share/config.site
2400 ac_site_file2=$ac_default_prefix/etc/config.site
2401fi
2402for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2403do
2404 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2405 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407$as_echo "$as_me: loading site script $ac_site_file" >&6;}
979273e3 2408 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2409 . "$ac_site_file" \
2410 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412as_fn_error $? "failed to load site script $ac_site_file
2413See \`config.log' for more details" "$LINENO" 5; }
979273e3
NN
2414 fi
2415done
2416
2417if test -r "$cache_file"; then
d0ac1c44
SM
2418 # Some versions of bash will fail to source /dev/null (special files
2419 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2420 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422$as_echo "$as_me: loading cache $cache_file" >&6;}
979273e3 2423 case $cache_file in
81ecdfbb
RW
2424 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425 *) . "./$cache_file";;
979273e3
NN
2426 esac
2427 fi
2428else
81ecdfbb
RW
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430$as_echo "$as_me: creating cache $cache_file" >&6;}
979273e3
NN
2431 >$cache_file
2432fi
2433
2434# Check that the precious variables saved in the cache have kept the same
2435# value.
2436ac_cache_corrupted=false
81ecdfbb 2437for ac_var in $ac_precious_vars; do
979273e3
NN
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
979273e3
NN
2442 case $ac_old_set,$ac_new_set in
2443 set,)
81ecdfbb
RW
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
979273e3
NN
2446 ac_cache_corrupted=: ;;
2447 ,set)
81ecdfbb
RW
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2449$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
979273e3
NN
2450 ac_cache_corrupted=: ;;
2451 ,);;
2452 *)
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x $ac_old_val`
2456 ac_new_val_w=`echo x $ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460 ac_cache_corrupted=:
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2467$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2469$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
2470 fi;;
2471 esac
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2474 case $ac_new_val in
81ecdfbb 2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2477 esac
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
979273e3
NN
2481 esac
2482 fi
2483done
2484if $ac_cache_corrupted; then
81ecdfbb
RW
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2489 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
979273e3 2490fi
81ecdfbb
RW
2491## -------------------- ##
2492## Main body of script. ##
2493## -------------------- ##
979273e3
NN
2494
2495ac_ext=c
2496ac_cpp='$CPP $CPPFLAGS'
2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502
979273e3
NN
2503
2504
2505
2506
2507ac_aux_dir=
81ecdfbb 2508for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2509 if test -f "$ac_dir/install-sh"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/install-sh -c"
2512 break
2513 elif test -f "$ac_dir/install.sh"; then
2514 ac_aux_dir=$ac_dir
2515 ac_install_sh="$ac_aux_dir/install.sh -c"
2516 break
2517 elif test -f "$ac_dir/shtool"; then
2518 ac_aux_dir=$ac_dir
2519 ac_install_sh="$ac_aux_dir/shtool install -c"
2520 break
2521 fi
979273e3
NN
2522done
2523if test -z "$ac_aux_dir"; then
d0ac1c44 2524 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
979273e3 2525fi
81ecdfbb
RW
2526
2527# These three variables are undocumented and unsupported,
2528# and are intended to be withdrawn in a future Autoconf release.
2529# They can cause serious problems if a builder's source tree is in a directory
2530# whose full name contains unusual characters.
2531ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2532ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2533ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2534
979273e3
NN
2535
2536# Make sure we can run config.sub.
81ecdfbb 2537$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2538 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2539
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2542if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2543 $as_echo_n "(cached) " >&6
2544else
2545 ac_build_alias=$build_alias
2546test "x$ac_build_alias" = x &&
2547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548test "x$ac_build_alias" = x &&
d0ac1c44 2549 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2550ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2552
2553fi
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555$as_echo "$ac_cv_build" >&6; }
2556case $ac_cv_build in
2557*-*-*) ;;
d0ac1c44 2558*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2559esac
979273e3 2560build=$ac_cv_build
81ecdfbb
RW
2561ac_save_IFS=$IFS; IFS='-'
2562set x $ac_cv_build
2563shift
2564build_cpu=$1
2565build_vendor=$2
2566shift; shift
2567# Remember, the first character of IFS is used to create $*,
2568# except with old shells:
2569build_os=$*
2570IFS=$ac_save_IFS
2571case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2572
2573
81ecdfbb
RW
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2576if ${ac_cv_host+:} false; then :
81ecdfbb 2577 $as_echo_n "(cached) " >&6
979273e3 2578else
81ecdfbb
RW
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2581else
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2584fi
979273e3
NN
2585
2586fi
81ecdfbb
RW
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588$as_echo "$ac_cv_host" >&6; }
2589case $ac_cv_host in
2590*-*-*) ;;
d0ac1c44 2591*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2592esac
979273e3 2593host=$ac_cv_host
81ecdfbb
RW
2594ac_save_IFS=$IFS; IFS='-'
2595set x $ac_cv_host
2596shift
2597host_cpu=$1
2598host_vendor=$2
2599shift; shift
2600# Remember, the first character of IFS is used to create $*,
2601# except with old shells:
2602host_os=$*
2603IFS=$ac_save_IFS
2604case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2605
2606
81ecdfbb
RW
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2608$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2609if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2610 $as_echo_n "(cached) " >&6
2611else
2612 if test "x$target_alias" = x; then
2613 ac_cv_target=$ac_cv_host
979273e3 2614else
81ecdfbb 2615 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2616 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2617fi
979273e3
NN
2618
2619fi
81ecdfbb
RW
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2621$as_echo "$ac_cv_target" >&6; }
2622case $ac_cv_target in
2623*-*-*) ;;
d0ac1c44 2624*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2625esac
979273e3 2626target=$ac_cv_target
81ecdfbb
RW
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_target
2629shift
2630target_cpu=$1
2631target_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635target_os=$*
2636IFS=$ac_save_IFS
2637case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2638
2639
2640# The aliases save the names the user supplied, while $host etc.
2641# will get canonicalized.
2642test -n "$target_alias" &&
2643 test "$program_prefix$program_suffix$program_transform_name" = \
2644 NONENONEs,x,x, &&
2645 program_prefix=${target_alias}-
d0ac1c44 2646
ab2af25e
AM
2647am__api_version='1.15'
2648
2649# Find a good install program. We prefer a C program (faster),
2650# so one script is as good as another. But avoid the broken or
2651# incompatible versions:
2652# SysV /etc/install, /usr/sbin/install
2653# SunOS /usr/etc/install
2654# IRIX /sbin/install
2655# AIX /bin/install
2656# AmigaOS /C/install, which installs bootblocks on floppy discs
2657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2660# OS/2's system install, which has a completely different semantic
2661# ./install, which can be erroneously created by make from ./install.sh.
2662# Reject install programs that cannot install multiple files.
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2664$as_echo_n "checking for a BSD-compatible install... " >&6; }
2665if test -z "$INSTALL"; then
2666if ${ac_cv_path_install+:} false; then :
81ecdfbb 2667 $as_echo_n "(cached) " >&6
979273e3 2668else
ab2af25e 2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979273e3
NN
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
ab2af25e
AM
2674 # Account for people who put trailing slashes in PATH elements.
2675case $as_dir/ in #((
2676 ./ | .// | /[cC]/* | \
2677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2678 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2679 /usr/ucb/* ) ;;
2680 *)
2681 # OSF1 and SCO ODT 3.0 have their own names for install.
2682 # Don't use installbsd from OSF since it installs stuff as root
2683 # by default.
2684 for ac_prog in ginstall scoinst install; do
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2687 if test $ac_prog = install &&
2688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2689 # AIX install. It has an incompatible calling convention.
2690 :
2691 elif test $ac_prog = install &&
2692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2693 # program-specific install script used by HP pwplus--don't use.
2694 :
2695 else
2696 rm -rf conftest.one conftest.two conftest.dir
2697 echo one > conftest.one
2698 echo two > conftest.two
2699 mkdir conftest.dir
2700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2701 test -s conftest.one && test -s conftest.two &&
2702 test -s conftest.dir/conftest.one &&
2703 test -s conftest.dir/conftest.two
2704 then
2705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2706 break 3
2707 fi
2708 fi
2709 fi
2710 done
2711 done
2712 ;;
2713esac
2714
81ecdfbb
RW
2715 done
2716IFS=$as_save_IFS
979273e3 2717
ab2af25e 2718rm -rf conftest.one conftest.two conftest.dir
81ecdfbb 2719
979273e3 2720fi
ab2af25e
AM
2721 if test "${ac_cv_path_install+set}" = set; then
2722 INSTALL=$ac_cv_path_install
2723 else
2724 # As a last resort, use the slow shell script. Don't cache a
2725 # value for INSTALL within a source directory, because that will
2726 # break other packages using the cache if that directory is
2727 # removed, or if the value is a relative name.
2728 INSTALL=$ac_install_sh
252b5132
RH
2729 fi
2730fi
81ecdfbb
RW
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2732$as_echo "$INSTALL" >&6; }
252b5132
RH
2733
2734# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2735# It thinks the first close brace ends the variable substitution.
2736test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2737
979273e3 2738test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2739
2740test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2741
81ecdfbb
RW
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2743$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2744# Reject unsafe characters in $srcdir or the absolute working directory
2745# name. Accept space and tab only in the latter.
2746am_lf='
2747'
2748case `pwd` in
2749 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2750 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2751esac
2752case $srcdir in
2753 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2754 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2755esac
2756
d0ac1c44 2757# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2758# arguments. Must try -L first in case configure is actually a
2759# symlink; some systems play weird games with the mod time of symlinks
2760# (eg FreeBSD returns the mod time of the symlink's containing
2761# directory).
2762if (
d0ac1c44
SM
2763 am_has_slept=no
2764 for am_try in 1 2; do
2765 echo "timestamp, slept: $am_has_slept" > conftest.file
2766 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2767 if test "$*" = "X"; then
2768 # -L didn't work.
2769 set X `ls -t "$srcdir/configure" conftest.file`
2770 fi
2771 if test "$*" != "X $srcdir/configure conftest.file" \
2772 && test "$*" != "X conftest.file $srcdir/configure"; then
2773
2774 # If neither matched, then we have a broken ls. This can happen
2775 # if, for instance, CONFIG_SHELL is bash and it inherits a
2776 # broken ls alias from the environment. This has actually
2777 # happened. Such a system could not be considered "sane".
2778 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2779 alias in your environment" "$LINENO" 5
2780 fi
2781 if test "$2" = conftest.file || test $am_try -eq 2; then
2782 break
2783 fi
2784 # Just in case.
2785 sleep 1
2786 am_has_slept=yes
2787 done
8ae85421 2788 test "$2" = conftest.file
252b5132
RH
2789 )
2790then
2791 # Ok.
2792 :
2793else
d0ac1c44 2794 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 2795Check your system clock" "$LINENO" 5
252b5132 2796fi
81ecdfbb
RW
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798$as_echo "yes" >&6; }
d0ac1c44
SM
2799# If we didn't sleep, we still need to ensure time stamps of config.status and
2800# generated files are strictly newer.
2801am_sleep_pid=
2802if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2803 ( sleep 1 ) &
2804 am_sleep_pid=$!
2805fi
2806
2807rm -f conftest.file
2808
252b5132 2809test "$program_prefix" != NONE &&
81ecdfbb 2810 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
2811# Use a double $ so make ignores it.
2812test "$program_suffix" != NONE &&
81ecdfbb
RW
2813 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2814# Double any \ or $.
979273e3 2815# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2816ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2817program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
979273e3 2818
ab2af25e
AM
2819# Expand $ac_aux_dir to an absolute path.
2820am_aux_dir=`cd "$ac_aux_dir" && pwd`
2821
81ecdfbb
RW
2822if test x"${MISSING+set}" != xset; then
2823 case $am_aux_dir in
2824 *\ * | *\ *)
2825 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2826 *)
2827 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2828 esac
2829fi
8ae85421 2830# Use eval to expand $SHELL
d0ac1c44
SM
2831if eval "$MISSING --is-lightweight"; then
2832 am_missing_run="$MISSING "
8ae85421
AM
2833else
2834 am_missing_run=
d0ac1c44
SM
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2836$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
2837fi
2838
d0ac1c44 2839if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
2840 case $am_aux_dir in
2841 *\ * | *\ *)
2842 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2843 *)
2844 install_sh="\${SHELL} $am_aux_dir/install-sh"
2845 esac
2846fi
2847
d0ac1c44
SM
2848# Installed binaries are usually stripped using 'strip' when the user
2849# run "make install-strip". However 'strip' might not be the right
81ecdfbb 2850# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 2851# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
2852if test "$cross_compiling" != no; then
2853 if test -n "$ac_tool_prefix"; then
2854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2855set dummy ${ac_tool_prefix}strip; ac_word=$2
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2858if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
2859 $as_echo_n "(cached) " >&6
2860else
2861 if test -n "$STRIP"; then
2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2863else
2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865for as_dir in $PATH
2866do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875done
2876 done
2877IFS=$as_save_IFS
2878
2879fi
2880fi
2881STRIP=$ac_cv_prog_STRIP
2882if test -n "$STRIP"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2884$as_echo "$STRIP" >&6; }
2885else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887$as_echo "no" >&6; }
2888fi
2889
2890
2891fi
2892if test -z "$ac_cv_prog_STRIP"; then
2893 ac_ct_STRIP=$STRIP
2894 # Extract the first word of "strip", so it can be a program name with args.
2895set dummy strip; ac_word=$2
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2898if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
2899 $as_echo_n "(cached) " >&6
2900else
2901 if test -n "$ac_ct_STRIP"; then
2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2903else
2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905for as_dir in $PATH
2906do
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
2911 ac_cv_prog_ac_ct_STRIP="strip"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2914 fi
2915done
8ae85421 2916 done
81ecdfbb
RW
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2922if test -n "$ac_ct_STRIP"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2924$as_echo "$ac_ct_STRIP" >&6; }
2925else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927$as_echo "no" >&6; }
2928fi
2929
2930 if test "x$ac_ct_STRIP" = x; then
2931 STRIP=":"
2932 else
2933 case $cross_compiling:$ac_tool_warned in
2934yes:)
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937ac_tool_warned=yes ;;
2938esac
2939 STRIP=$ac_ct_STRIP
2940 fi
2941else
2942 STRIP="$ac_cv_prog_STRIP"
2943fi
2944
2945fi
2946INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2947
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2949$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2950if test -z "$MKDIR_P"; then
d0ac1c44 2951 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
2952 $as_echo_n "(cached) " >&6
2953else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_prog in mkdir gmkdir; do
2960 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2961 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
2962 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2963 'mkdir (GNU coreutils) '* | \
2964 'mkdir (coreutils) '* | \
2965 'mkdir (fileutils) '4.1*)
2966 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2967 break 3;;
2968 esac
2969 done
2970 done
2971 done
2972IFS=$as_save_IFS
2973
2974fi
2975
d0ac1c44 2976 test -d ./--version && rmdir ./--version
81ecdfbb
RW
2977 if test "${ac_cv_path_mkdir+set}" = set; then
2978 MKDIR_P="$ac_cv_path_mkdir -p"
8ae85421 2979 else
81ecdfbb
RW
2980 # As a last resort, use the slow shell script. Don't cache a
2981 # value for MKDIR_P within a source directory, because that will
2982 # break other packages using the cache if that directory is
2983 # removed, or if the value is a relative name.
81ecdfbb 2984 MKDIR_P="$ac_install_sh -d"
8ae85421
AM
2985 fi
2986fi
81ecdfbb
RW
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2988$as_echo "$MKDIR_P" >&6; }
2989
8ae85421
AM
2990for ac_prog in gawk mawk nawk awk
2991do
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2996if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 2997 $as_echo_n "(cached) " >&6
8ae85421
AM
2998else
2999 if test -n "$AWK"; then
3000 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3001else
3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003for as_dir in $PATH
3004do
3005 IFS=$as_save_IFS
3006 test -z "$as_dir" && as_dir=.
81ecdfbb 3007 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ae85421 3009 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8ae85421
AM
3011 break 2
3012 fi
3013done
81ecdfbb
RW
3014 done
3015IFS=$as_save_IFS
8ae85421
AM
3016
3017fi
3018fi
3019AWK=$ac_cv_prog_AWK
3020if test -n "$AWK"; then
81ecdfbb
RW
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3022$as_echo "$AWK" >&6; }
8ae85421 3023else
81ecdfbb
RW
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025$as_echo "no" >&6; }
8ae85421
AM
3026fi
3027
81ecdfbb 3028
8ae85421
AM
3029 test -n "$AWK" && break
3030done
3031
81ecdfbb
RW
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3033$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3034set x ${MAKE-make}
3035ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3036if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3037 $as_echo_n "(cached) " >&6
979273e3
NN
3038else
3039 cat >conftest.make <<\_ACEOF
81ecdfbb 3040SHELL = /bin/sh
252b5132 3041all:
81ecdfbb 3042 @echo '@@@%%%=$(MAKE)=@@@%%%'
979273e3 3043_ACEOF
d0ac1c44 3044# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3045case `${MAKE-make} -f conftest.make 2>/dev/null` in
3046 *@@@%%%=?*=@@@%%%*)
3047 eval ac_cv_prog_make_${ac_make}_set=yes;;
3048 *)
3049 eval ac_cv_prog_make_${ac_make}_set=no;;
3050esac
979273e3 3051rm -f conftest.make
252b5132 3052fi
81ecdfbb
RW
3053if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3055$as_echo "yes" >&6; }
252b5132
RH
3056 SET_MAKE=
3057else
81ecdfbb
RW
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059$as_echo "no" >&6; }
252b5132
RH
3060 SET_MAKE="MAKE=${MAKE-make}"
3061fi
3062
8ae85421
AM
3063rm -rf .tst 2>/dev/null
3064mkdir .tst 2>/dev/null
3065if test -d .tst; then
3066 am__leading_dot=.
3067else
3068 am__leading_dot=_
3069fi
3070rmdir .tst 2>/dev/null
3071
d0ac1c44
SM
3072# Check whether --enable-silent-rules was given.
3073if test "${enable_silent_rules+set}" = set; then :
3074 enableval=$enable_silent_rules;
3075fi
3076
3077case $enable_silent_rules in # (((
3078 yes) AM_DEFAULT_VERBOSITY=0;;
3079 no) AM_DEFAULT_VERBOSITY=1;;
3080 *) AM_DEFAULT_VERBOSITY=1;;
3081esac
3082am_make=${MAKE-make}
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3084$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3085if ${am_cv_make_support_nested_variables+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087else
3088 if $as_echo 'TRUE=$(BAR$(V))
3089BAR0=false
3090BAR1=true
3091V=1
3092am__doit:
3093 @$(TRUE)
3094.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3095 am_cv_make_support_nested_variables=yes
3096else
3097 am_cv_make_support_nested_variables=no
3098fi
3099fi
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3101$as_echo "$am_cv_make_support_nested_variables" >&6; }
3102if test $am_cv_make_support_nested_variables = yes; then
3103 AM_V='$(V)'
3104 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3105else
3106 AM_V=$AM_DEFAULT_VERBOSITY
3107 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3108fi
3109AM_BACKSLASH='\'
3110
81ecdfbb
RW
3111if test "`cd $srcdir && pwd`" != "`pwd`"; then
3112 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3113 # is not polluted with repeated "-I."
3114 am__isrc=' -I$(srcdir)'
3115 # test to see if srcdir already configured
3116 if test -f $srcdir/config.status; then
d0ac1c44 3117 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3118 fi
252b5132 3119fi
979273e3 3120
8ae85421
AM
3121# test whether we have cygpath
3122if test -z "$CYGPATH_W"; then
3123 if (cygpath --version) >/dev/null 2>/dev/null; then
3124 CYGPATH_W='cygpath -w'
3125 else
3126 CYGPATH_W=echo
3127 fi
3128fi
3129
3130
3131# Define the identity of the package.
2e98a7bd 3132 PACKAGE='opcodes'
f908e960 3133 VERSION='2.38.50'
8ae85421
AM
3134
3135
979273e3 3136cat >>confdefs.h <<_ACEOF
252b5132 3137#define PACKAGE "$PACKAGE"
979273e3 3138_ACEOF
252b5132 3139
979273e3
NN
3140
3141cat >>confdefs.h <<_ACEOF
252b5132 3142#define VERSION "$VERSION"
979273e3 3143_ACEOF
252b5132 3144
8ae85421 3145# Some tools Automake needs.
252b5132 3146
8ae85421 3147ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3148
8ae85421
AM
3149
3150AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3151
3152
3153AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3154
3155
3156AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3157
3158
3159MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3160
d0ac1c44
SM
3161# For better backward compatibility. To be removed once Automake 1.9.x
3162# dies out for good. For more background, see:
3163# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3164# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3165mkdir_p='$(MKDIR_P)'
3166
3167# We need awk for the "check" target (and possibly the TAP driver). The
3168# system "awk" is bad on some platforms.
6eb7d830
AM
3169# Always define AMTAR for backward compatibility. Yes, it's still used
3170# in the wild :-( We should find a proper way to deprecate it ...
3171AMTAR='$${TAR-tar}'
8ae85421 3172
d0ac1c44
SM
3173
3174# We'll loop over all known methods to create a tar archive until one works.
3175_am_tools='gnutar pax cpio none'
3176
ab2af25e
AM
3177am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3178
8ae85421 3179
8ae85421 3180
252b5132
RH
3181
3182
3183
d0ac1c44
SM
3184# POSIX will say in a future version that running "rm -f" with no argument
3185# is OK; and we want to be able to make that assumption in our Makefile
3186# recipes. So use an aggressive probe to check that the usage we want is
3187# actually supported "in the wild" to an acceptable degree.
3188# See automake bug#10828.
3189# To make any issue more visible, cause the running configure to be aborted
3190# by default if the 'rm' program in use doesn't match our expectations; the
3191# user can still override this though.
3192if rm -f && rm -fr && rm -rf; then : OK; else
3193 cat >&2 <<'END'
3194Oops!
3195
3196Your 'rm' program seems unable to run without file operands specified
3197on the command line, even when the '-f' option is present. This is contrary
3198to the behaviour of most rm programs out there, and not conforming with
3199the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3200
3201Please tell bug-automake@gnu.org about your system, including the value
3202of your $PATH and any error possibly output before this message. This
3203can help us improve future automake versions.
3204
3205END
3206 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3207 echo 'Configuration will proceed anyway, since you have set the' >&2
3208 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3209 echo >&2
3210 else
3211 cat >&2 <<'END'
3212Aborting the configuration process, to ensure you take notice of the issue.
3213
3214You can download and install GNU coreutils to get an 'rm' implementation
3215that behaves properly: <http://www.gnu.org/software/coreutils/>.
3216
3217If you want to complete the configuration process using your problematic
3218'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3219to "yes", and re-run configure.
3220
3221END
3222 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3223 fi
3224fi
3225
13678b20
MF
3226# Check whether --enable-silent-rules was given.
3227if test "${enable_silent_rules+set}" = set; then :
3228 enableval=$enable_silent_rules;
3229fi
3230
3231case $enable_silent_rules in # (((
3232 yes) AM_DEFAULT_VERBOSITY=0;;
3233 no) AM_DEFAULT_VERBOSITY=1;;
3234 *) AM_DEFAULT_VERBOSITY=0;;
3235esac
3236am_make=${MAKE-make}
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3238$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3239if ${am_cv_make_support_nested_variables+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241else
3242 if $as_echo 'TRUE=$(BAR$(V))
3243BAR0=false
3244BAR1=true
3245V=1
3246am__doit:
3247 @$(TRUE)
3248.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3249 am_cv_make_support_nested_variables=yes
3250else
3251 am_cv_make_support_nested_variables=no
3252fi
3253fi
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3255$as_echo "$am_cv_make_support_nested_variables" >&6; }
3256if test $am_cv_make_support_nested_variables = yes; then
3257 AM_V='$(V)'
3258 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3259else
3260 AM_V=$AM_DEFAULT_VERBOSITY
3261 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3262fi
3263AM_BACKSLASH='\'
3264
8ae85421 3265
dabbade6
L
3266ac_ext=c
3267ac_cpp='$CPP $CPPFLAGS'
3268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3271if test -n "$ac_tool_prefix"; then
dabbade6
L
3272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3273set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3276if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3277 $as_echo_n "(cached) " >&6
252b5132 3278else
dabbade6
L
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3281else
979273e3
NN
3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283for as_dir in $PATH
3284do
3285 IFS=$as_save_IFS
3286 test -z "$as_dir" && as_dir=.
81ecdfbb 3287 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3289 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3291 break 2
3292 fi
3293done
81ecdfbb
RW
3294 done
3295IFS=$as_save_IFS
979273e3 3296
252b5132
RH
3297fi
3298fi
dabbade6
L
3299CC=$ac_cv_prog_CC
3300if test -n "$CC"; then
81ecdfbb
RW
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3302$as_echo "$CC" >&6; }
252b5132 3303else
81ecdfbb
RW
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305$as_echo "no" >&6; }
979273e3
NN
3306fi
3307
81ecdfbb 3308
252b5132 3309fi
dabbade6
L
3310if test -z "$ac_cv_prog_CC"; then
3311 ac_ct_CC=$CC
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313set dummy gcc; ac_word=$2
81ecdfbb
RW
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3316if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3317 $as_echo_n "(cached) " >&6
979273e3 3318else
dabbade6
L
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3321else
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
3324do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
81ecdfbb 3327 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3329 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3331 break 2
3332 fi
3333done
81ecdfbb
RW
3334 done
3335IFS=$as_save_IFS
252b5132 3336
979273e3
NN
3337fi
3338fi
dabbade6
L
3339ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342$as_echo "$ac_ct_CC" >&6; }
979273e3 3343else
81ecdfbb
RW
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345$as_echo "no" >&6; }
979273e3 3346fi
252b5132 3347
81ecdfbb
RW
3348 if test "x$ac_ct_CC" = x; then
3349 CC=""
3350 else
3351 case $cross_compiling:$ac_tool_warned in
3352yes:)
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3355ac_tool_warned=yes ;;
3356esac
3357 CC=$ac_ct_CC
3358 fi
979273e3 3359else
dabbade6 3360 CC="$ac_cv_prog_CC"
979273e3 3361fi
252b5132 3362
dabbade6 3363if test -z "$CC"; then
81ecdfbb
RW
3364 if test -n "$ac_tool_prefix"; then
3365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
dabbade6 3366set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3368$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3369if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3370 $as_echo_n "(cached) " >&6
252b5132 3371else
dabbade6
L
3372 if test -n "$CC"; then
3373 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3374else
979273e3
NN
3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376for as_dir in $PATH
3377do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
81ecdfbb 3380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3382 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3384 break 2
3385 fi
3386done
81ecdfbb
RW
3387 done
3388IFS=$as_save_IFS
979273e3 3389
252b5132
RH
3390fi
3391fi
dabbade6
L
3392CC=$ac_cv_prog_CC
3393if test -n "$CC"; then
81ecdfbb
RW
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3395$as_echo "$CC" >&6; }
252b5132 3396else
81ecdfbb
RW
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398$as_echo "no" >&6; }
252b5132
RH
3399fi
3400
252b5132 3401
81ecdfbb 3402 fi
dabbade6
L
3403fi
3404if test -z "$CC"; then
3405 # Extract the first word of "cc", so it can be a program name with args.
3406set dummy cc; ac_word=$2
81ecdfbb
RW
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3409if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3410 $as_echo_n "(cached) " >&6
dabbade6
L
3411else
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414else
3415 ac_prog_rejected=no
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
81ecdfbb 3421 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6
L
3423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3424 ac_prog_rejected=yes
3425 continue
3426 fi
3427 ac_cv_prog_CC="cc"
81ecdfbb 3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
3429 break 2
3430 fi
3431done
81ecdfbb
RW
3432 done
3433IFS=$as_save_IFS
252b5132 3434
dabbade6
L
3435if test $ac_prog_rejected = yes; then
3436 # We found a bogon in the path, so make sure we never use it.
3437 set dummy $ac_cv_prog_CC
3438 shift
3439 if test $# != 0; then
3440 # We chose a different compiler from the bogus one.
3441 # However, it has the same basename, so the bogon will be chosen
3442 # first if we set CC to just the basename; use the full file name.
3443 shift
3444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3445 fi
3446fi
3447fi
3448fi
3449CC=$ac_cv_prog_CC
3450if test -n "$CC"; then
81ecdfbb
RW
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452$as_echo "$CC" >&6; }
252b5132 3453else
81ecdfbb
RW
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455$as_echo "no" >&6; }
dabbade6 3456fi
252b5132 3457
81ecdfbb 3458
dabbade6
L
3459fi
3460if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
81ecdfbb 3462 for ac_prog in cl.exe
dabbade6
L
3463 do
3464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3468if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3469 $as_echo_n "(cached) " >&6
dabbade6
L
3470else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
81ecdfbb 3479 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
3483 break 2
3484 fi
3485done
81ecdfbb
RW
3486 done
3487IFS=$as_save_IFS
d7040cdb 3488
dabbade6
L
3489fi
3490fi
3491CC=$ac_cv_prog_CC
3492if test -n "$CC"; then
81ecdfbb
RW
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3494$as_echo "$CC" >&6; }
dabbade6 3495else
81ecdfbb
RW
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
dabbade6 3498fi
d7040cdb 3499
81ecdfbb 3500
dabbade6
L
3501 test -n "$CC" && break
3502 done
3503fi
3504if test -z "$CC"; then
3505 ac_ct_CC=$CC
81ecdfbb 3506 for ac_prog in cl.exe
dabbade6
L
3507do
3508 # Extract the first word of "$ac_prog", so it can be a program name with args.
3509set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3512if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3513 $as_echo_n "(cached) " >&6
dabbade6
L
3514else
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3517else
3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519for as_dir in $PATH
3520do
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
81ecdfbb 3523 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 3525 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
3527 break 2
3528 fi
3529done
81ecdfbb
RW
3530 done
3531IFS=$as_save_IFS
d7040cdb 3532
dabbade6
L
3533fi
3534fi
3535ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538$as_echo "$ac_ct_CC" >&6; }
dabbade6 3539else
81ecdfbb
RW
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
dabbade6 3542fi
d7040cdb 3543
81ecdfbb 3544
dabbade6
L
3545 test -n "$ac_ct_CC" && break
3546done
d7040cdb 3547
81ecdfbb
RW
3548 if test "x$ac_ct_CC" = x; then
3549 CC=""
3550 else
3551 case $cross_compiling:$ac_tool_warned in
3552yes:)
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3555ac_tool_warned=yes ;;
3556esac
3557 CC=$ac_ct_CC
3558 fi
dabbade6 3559fi
d7040cdb 3560
dabbade6 3561fi
d7040cdb
SE
3562
3563
81ecdfbb
RW
3564test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3566as_fn_error $? "no acceptable C compiler found in \$PATH
3567See \`config.log' for more details" "$LINENO" 5; }
d7040cdb 3568
dabbade6 3569# Provide some information about the compiler.
81ecdfbb
RW
3570$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3571set X $ac_compile
3572ac_compiler=$2
3573for ac_option in --version -v -V -qversion; do
3574 { { ac_try="$ac_compiler $ac_option >&5"
3575case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578esac
3579eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580$as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
dabbade6 3582 ac_status=$?
81ecdfbb
RW
3583 if test -s conftest.err; then
3584 sed '10a\
3585... rest of stderr output deleted ...
3586 10q' conftest.err >conftest.er1
3587 cat conftest.er1 >&5
81ecdfbb 3588 fi
d0ac1c44 3589 rm -f conftest.er1 conftest.err
81ecdfbb
RW
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3592done
d7040cdb 3593
ab2af25e
AM
3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596
3597int
3598main ()
3599{
3600
3601 ;
3602 return 0;
3603}
3604_ACEOF
3605ac_clean_files_save=$ac_clean_files
3606ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3607# Try to create an executable without -o first, disregard a.out.
3608# It will help us diagnose broken compilers, and finding out an intuition
3609# of exeext.
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3611$as_echo_n "checking whether the C compiler works... " >&6; }
3612ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613
3614# The possible output files:
3615ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3616
3617ac_rmfiles=
3618for ac_file in $ac_files
3619do
3620 case $ac_file in
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3623 esac
3624done
3625rm -f $ac_rmfiles
3626
3627if { { ac_try="$ac_link_default"
3628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
3632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3633$as_echo "$ac_try_echo"; } >&5
3634 (eval "$ac_link_default") 2>&5
3635 ac_status=$?
3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3637 test $ac_status = 0; }; then :
3638 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3639# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3640# in a Makefile. We should not override ac_cv_exeext if it was cached,
3641# so that the user can short-circuit this test for compilers unknown to
3642# Autoconf.
3643for ac_file in $ac_files ''
3644do
3645 test -f "$ac_file" || continue
3646 case $ac_file in
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3648 ;;
3649 [ab].out )
3650 # We found the default executable, but exeext='' is most
3651 # certainly right.
3652 break;;
3653 *.* )
3654 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3655 then :; else
3656 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3657 fi
3658 # We set ac_cv_exeext here because the later test for it is not
3659 # safe: cross compilers may not add the suffix if given an `-o'
3660 # argument, so we may need to know it at that point already.
3661 # Even if this section looks crufty: it has the advantage of
3662 # actually working.
3663 break;;
3664 * )
3665 break;;
3666 esac
3667done
3668test "$ac_cv_exeext" = no && ac_cv_exeext=
3669
3670else
3671 ac_file=''
3672fi
3673if test -z "$ac_file"; then :
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
3676$as_echo "$as_me: failed program was:" >&5
3677sed 's/^/| /' conftest.$ac_ext >&5
3678
3679{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681as_fn_error 77 "C compiler cannot create executables
3682See \`config.log' for more details" "$LINENO" 5; }
3683else
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3685$as_echo "yes" >&6; }
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3688$as_echo_n "checking for C compiler default output file name... " >&6; }
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3690$as_echo "$ac_file" >&6; }
3691ac_exeext=$ac_cv_exeext
3692
3693rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3694ac_clean_files=$ac_clean_files_save
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3696$as_echo_n "checking for suffix of executables... " >&6; }
3697if { { ac_try="$ac_link"
3698case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703$as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_link") 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }; then :
3708 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3709# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3710# work properly (i.e., refer to `conftest.exe'), while it won't with
3711# `rm'.
3712for ac_file in conftest.exe conftest conftest.*; do
3713 test -f "$ac_file" || continue
3714 case $ac_file in
3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3716 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717 break;;
3718 * ) break;;
3719 esac
3720done
3721else
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3725See \`config.log' for more details" "$LINENO" 5; }
3726fi
3727rm -f conftest conftest$ac_cv_exeext
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3729$as_echo "$ac_cv_exeext" >&6; }
3730
3731rm -f conftest.$ac_ext
3732EXEEXT=$ac_cv_exeext
3733ac_exeext=$EXEEXT
3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735/* end confdefs.h. */
3736#include <stdio.h>
3737int
3738main ()
3739{
3740FILE *f = fopen ("conftest.out", "w");
3741 return ferror (f) || fclose (f) != 0;
3742
3743 ;
3744 return 0;
3745}
3746_ACEOF
3747ac_clean_files="$ac_clean_files conftest.out"
3748# Check that the compiler produces executables we can run. If not, either
3749# the compiler is broken, or we cross compile.
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3751$as_echo_n "checking whether we are cross compiling... " >&6; }
3752if test "$cross_compiling" != yes; then
3753 { { ac_try="$ac_link"
3754case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760 (eval "$ac_link") 2>&5
3761 ac_status=$?
3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763 test $ac_status = 0; }
3764 if { ac_try='./conftest$ac_cv_exeext'
3765 { { case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768esac
3769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770$as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_try") 2>&5
3772 ac_status=$?
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; }; then
3775 cross_compiling=no
3776 else
3777 if test "$cross_compiling" = maybe; then
3778 cross_compiling=yes
3779 else
3780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782as_fn_error $? "cannot run C compiled programs.
3783If you meant to cross compile, use \`--host'.
3784See \`config.log' for more details" "$LINENO" 5; }
3785 fi
3786 fi
3787fi
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3789$as_echo "$cross_compiling" >&6; }
3790
3791rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3792ac_clean_files=$ac_clean_files_save
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3794$as_echo_n "checking for suffix of object files... " >&6; }
3795if ${ac_cv_objext+:} false; then :
3796 $as_echo_n "(cached) " >&6
3797else
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h. */
3800
3801int
3802main ()
3803{
3804
3805 ;
3806 return 0;
3807}
3808_ACEOF
3809rm -f conftest.o conftest.obj
3810if { { ac_try="$ac_compile"
3811case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814esac
3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816$as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compile") 2>&5
3818 ac_status=$?
3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820 test $ac_status = 0; }; then :
3821 for ac_file in conftest.o conftest.obj conftest.*; do
3822 test -f "$ac_file" || continue;
3823 case $ac_file in
3824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3825 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3826 break;;
3827 esac
3828done
3829else
3830 $as_echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5
3832
3833{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835as_fn_error $? "cannot compute suffix of object files: cannot compile
3836See \`config.log' for more details" "$LINENO" 5; }
3837fi
3838rm -f conftest.$ac_cv_objext conftest.$ac_ext
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3841$as_echo "$ac_cv_objext" >&6; }
3842OBJEXT=$ac_cv_objext
3843ac_objext=$OBJEXT
81ecdfbb
RW
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3845$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3846if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3847 $as_echo_n "(cached) " >&6
252b5132 3848else
81ecdfbb 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 3850/* end confdefs.h. */
d7040cdb 3851
dabbade6
L
3852int
3853main ()
3854{
3855#ifndef __GNUC__
3856 choke me
3857#endif
d7040cdb 3858
dabbade6
L
3859 ;
3860 return 0;
3861}
3862_ACEOF
81ecdfbb 3863if ac_fn_c_try_compile "$LINENO"; then :
dabbade6 3864 ac_compiler_gnu=yes
d7040cdb 3865else
81ecdfbb 3866 ac_compiler_gnu=no
dabbade6 3867fi
81ecdfbb 3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 3869ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 3870
dabbade6 3871fi
81ecdfbb
RW
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3873$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3874if test $ac_compiler_gnu = yes; then
3875 GCC=yes
3876else
3877 GCC=
3878fi
dabbade6
L
3879ac_test_CFLAGS=${CFLAGS+set}
3880ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3882$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3883if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3884 $as_echo_n "(cached) " >&6
3885else
3886 ac_save_c_werror_flag=$ac_c_werror_flag
3887 ac_c_werror_flag=yes
3888 ac_cv_prog_cc_g=no
3889 CFLAGS="-g"
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 3891/* end confdefs.h. */
d7040cdb 3892
dabbade6
L
3893int
3894main ()
3895{
d7040cdb 3896
dabbade6
L
3897 ;
3898 return 0;
3899}
3900_ACEOF
81ecdfbb 3901if ac_fn_c_try_compile "$LINENO"; then :
dabbade6
L
3902 ac_cv_prog_cc_g=yes
3903else
81ecdfbb
RW
3904 CFLAGS=""
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906/* end confdefs.h. */
d7040cdb 3907
81ecdfbb
RW
3908int
3909main ()
3910{
3911
3912 ;
3913 return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"; then :
3917
3918else
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3920 CFLAGS="-g"
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
3923
3924int
3925main ()
3926{
3927
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_prog_cc_g=yes
3934fi
3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 3936fi
81ecdfbb 3937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 3938fi
81ecdfbb
RW
3939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 ac_c_werror_flag=$ac_save_c_werror_flag
3941fi
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3943$as_echo "$ac_cv_prog_cc_g" >&6; }
dabbade6
L
3944if test "$ac_test_CFLAGS" = set; then
3945 CFLAGS=$ac_save_CFLAGS
3946elif test $ac_cv_prog_cc_g = yes; then
3947 if test "$GCC" = yes; then
3948 CFLAGS="-g -O2"
3949 else
3950 CFLAGS="-g"
3951 fi
3952else
3953 if test "$GCC" = yes; then
3954 CFLAGS="-O2"
3955 else
3956 CFLAGS=
3957 fi
3958fi
81ecdfbb
RW
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3960$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3961if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3962 $as_echo_n "(cached) " >&6
d7040cdb 3963else
81ecdfbb 3964 ac_cv_prog_cc_c89=no
dabbade6 3965ac_save_CC=$CC
81ecdfbb 3966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6
L
3967/* end confdefs.h. */
3968#include <stdarg.h>
3969#include <stdio.h>
d0ac1c44 3970struct stat;
dabbade6
L
3971/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3972struct buf { int x; };
3973FILE * (*rcsopen) (struct buf *, struct stat *, int);
3974static char *e (p, i)
3975 char **p;
3976 int i;
3977{
3978 return p[i];
3979}
3980static char *f (char * (*g) (char **, int), char **p, ...)
3981{
3982 char *s;
3983 va_list v;
3984 va_start (v,p);
3985 s = g (p, va_arg (v,int));
3986 va_end (v);
3987 return s;
3988}
d7040cdb 3989
dabbade6
L
3990/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3991 function prototypes and stuff, but not '\xHH' hex character constants.
3992 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3993 as 'x'. The following induces an error, until -std is added to get
dabbade6
L
3994 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3995 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3996 that's true only with -std. */
dabbade6 3997int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 3998
81ecdfbb
RW
3999/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4000 inside strings and character constants. */
4001#define FOO(x) 'x'
4002int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003
dabbade6
L
4004int test (int i, double x);
4005struct s1 {int (*f) (int a);};
4006struct s2 {int (*f) (double a);};
4007int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4008int argc;
4009char **argv;
4010int
4011main ()
4012{
4013return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4014 ;
4015 return 0;
4016}
4017_ACEOF
81ecdfbb
RW
4018for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4019 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
dabbade6
L
4020do
4021 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_c89=$ac_arg
d7040cdb 4024fi
81ecdfbb
RW
4025rm -f core conftest.err conftest.$ac_objext
4026 test "x$ac_cv_prog_cc_c89" != "xno" && break
dabbade6 4027done
81ecdfbb 4028rm -f conftest.$ac_ext
dabbade6 4029CC=$ac_save_CC
d7040cdb 4030
dabbade6 4031fi
81ecdfbb
RW
4032# AC_CACHE_VAL
4033case "x$ac_cv_prog_cc_c89" in
4034 x)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4036$as_echo "none needed" >&6; } ;;
4037 xno)
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4039$as_echo "unsupported" >&6; } ;;
252b5132 4040 *)
81ecdfbb
RW
4041 CC="$CC $ac_cv_prog_cc_c89"
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4043$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
dabbade6 4044esac
81ecdfbb 4045if test "x$ac_cv_prog_cc_c89" != xno; then :
ac48eca1 4046
dabbade6 4047fi
252b5132 4048
dabbade6
L
4049ac_ext=c
4050ac_cpp='$CPP $CPPFLAGS'
4051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4054
d0ac1c44
SM
4055ac_ext=c
4056ac_cpp='$CPP $CPPFLAGS'
4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4061$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4062if ${am_cv_prog_cc_c_o+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064else
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h. */
4067
4068int
4069main ()
4070{
4071
4072 ;
4073 return 0;
4074}
4075_ACEOF
4076 # Make sure it works both with $CC and with simple cc.
4077 # Following AC_PROG_CC_C_O, we do the test twice because some
4078 # compilers refuse to overwrite an existing .o file with -o,
4079 # though they will create one.
4080 am_cv_prog_cc_c_o=yes
4081 for am_i in 1 2; do
4082 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4083 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } \
4087 && test -f conftest2.$ac_objext; then
4088 : OK
4089 else
4090 am_cv_prog_cc_c_o=no
4091 break
4092 fi
4093 done
4094 rm -f core conftest*
4095 unset am_i
4096fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4098$as_echo "$am_cv_prog_cc_c_o" >&6; }
4099if test "$am_cv_prog_cc_c_o" != yes; then
4100 # Losing compiler, so override with the script.
4101 # FIXME: It is wrong to rewrite CC.
4102 # But if we don't then we get into trouble of one sort or another.
4103 # A longer-term fix would be to have automake use am__CC in this case,
4104 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4105 CC="$am_aux_dir/compile $CC"
4106fi
4107ac_ext=c
4108ac_cpp='$CPP $CPPFLAGS'
4109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112
ab2af25e
AM
4113DEPDIR="${am__leading_dot}deps"
4114
4115ac_config_commands="$ac_config_commands depfiles"
4116
4117
4118am_make=${MAKE-make}
4119cat > confinc << 'END'
4120am__doit:
4121 @echo this is the am__doit target
4122.PHONY: am__doit
4123END
4124# If we don't find an include directive, just comment out the code.
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4126$as_echo_n "checking for style of include used by $am_make... " >&6; }
4127am__include="#"
4128am__quote=
4129_am_result=none
4130# First try GNU make style include.
4131echo "include confinc" > confmf
4132# Ignore all kinds of additional output from 'make'.
4133case `$am_make -s -f confmf 2> /dev/null` in #(
4134*the\ am__doit\ target*)
4135 am__include=include
4136 am__quote=
4137 _am_result=GNU
4138 ;;
4139esac
4140# Now try BSD make style include.
4141if test "$am__include" = "#"; then
4142 echo '.include "confinc"' > confmf
4143 case `$am_make -s -f confmf 2> /dev/null` in #(
4144 *the\ am__doit\ target*)
4145 am__include=.include
4146 am__quote="\""
4147 _am_result=BSD
4148 ;;
4149 esac
4150fi
4151
4152
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4154$as_echo "$_am_result" >&6; }
4155rm -f confinc confmf
4156
4157# Check whether --enable-dependency-tracking was given.
4158if test "${enable_dependency_tracking+set}" = set; then :
4159 enableval=$enable_dependency_tracking;
4160fi
4161
4162if test "x$enable_dependency_tracking" != xno; then
4163 am_depcomp="$ac_aux_dir/depcomp"
4164 AMDEPBACKSLASH='\'
4165 am__nodep='_no'
4166fi
4167 if test "x$enable_dependency_tracking" != xno; then
4168 AMDEP_TRUE=
4169 AMDEP_FALSE='#'
4170else
4171 AMDEP_TRUE='#'
4172 AMDEP_FALSE=
4173fi
4174
4175
4176
4177depcc="$CC" am_compiler_list=
4178
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180$as_echo_n "checking dependency style of $depcc... " >&6; }
4181if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183else
4184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185 # We make a subdir and do the tests there. Otherwise we can end up
4186 # making bogus files that we don't know about and never remove. For
4187 # instance it was reported that on HP-UX the gcc test will end up
4188 # making a dummy file named 'D' -- because '-MD' means "put the output
4189 # in D".
4190 rm -rf conftest.dir
4191 mkdir conftest.dir
4192 # Copy depcomp to subdir because otherwise we won't find it if we're
4193 # using a relative directory.
4194 cp "$am_depcomp" conftest.dir
4195 cd conftest.dir
4196 # We will build objects and dependencies in a subdirectory because
4197 # it helps to detect inapplicable dependency modes. For instance
4198 # both Tru64's cc and ICC support -MD to output dependencies as a
4199 # side effect of compilation, but ICC will put the dependencies in
4200 # the current directory while Tru64 will put them in the object
4201 # directory.
4202 mkdir sub
4203
4204 am_cv_CC_dependencies_compiler_type=none
4205 if test "$am_compiler_list" = ""; then
4206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4207 fi
4208 am__universal=false
4209 case " $depcc " in #(
4210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4211 esac
4212
4213 for depmode in $am_compiler_list; do
4214 # Setup a source with many dependencies, because some compilers
4215 # like to wrap large dependency lists on column 80 (with \), and
4216 # we should not choose a depcomp mode which is confused by this.
4217 #
4218 # We need to recreate these files for each test, as the compiler may
4219 # overwrite some of them when testing with obscure command lines.
4220 # This happens at least with the AIX C compiler.
4221 : > sub/conftest.c
4222 for i in 1 2 3 4 5 6; do
4223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4224 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4225 # Solaris 10 /bin/sh.
4226 echo '/* dummy */' > sub/conftst$i.h
4227 done
4228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4229
4230 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4231 # mode. It turns out that the SunPro C++ compiler does not properly
4232 # handle '-M -o', and we need to detect this. Also, some Intel
4233 # versions had trouble with output in subdirs.
4234 am__obj=sub/conftest.${OBJEXT-o}
4235 am__minus_obj="-o $am__obj"
4236 case $depmode in
4237 gcc)
4238 # This depmode causes a compiler race in universal mode.
4239 test "$am__universal" = false || continue
4240 ;;
4241 nosideeffect)
4242 # After this tag, mechanisms are not by side-effect, so they'll
4243 # only be used when explicitly requested.
4244 if test "x$enable_dependency_tracking" = xyes; then
4245 continue
4246 else
4247 break
4248 fi
4249 ;;
4250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4251 # This compiler won't grok '-c -o', but also, the minuso test has
4252 # not run yet. These depmodes are late enough in the game, and
4253 # so weak that their functioning should not be impacted.
4254 am__obj=conftest.${OBJEXT-o}
4255 am__minus_obj=
4256 ;;
4257 none) break ;;
4258 esac
4259 if depmode=$depmode \
4260 source=sub/conftest.c object=$am__obj \
4261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4263 >/dev/null 2>conftest.err &&
4264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4268 # icc doesn't choke on unknown options, it will just issue warnings
4269 # or remarks (even with -Werror). So we grep stderr for any message
4270 # that says an option was ignored or not supported.
4271 # When given -MP, icc 7.0 and 7.1 complain thusly:
4272 # icc: Command line warning: ignoring option '-M'; no argument required
4273 # The diagnosis changed in icc 8.0:
4274 # icc: Command line remark: option '-MP' not supported
4275 if (grep 'ignoring option' conftest.err ||
4276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4277 am_cv_CC_dependencies_compiler_type=$depmode
4278 break
4279 fi
4280 fi
4281 done
4282
4283 cd ..
4284 rm -rf conftest.dir
4285else
4286 am_cv_CC_dependencies_compiler_type=none
4287fi
4288
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4291$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4292CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4293
4294 if
4295 test "x$enable_dependency_tracking" != xno \
4296 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4297 am__fastdepCC_TRUE=
4298 am__fastdepCC_FALSE='#'
4299else
4300 am__fastdepCC_TRUE='#'
4301 am__fastdepCC_FALSE=
4302fi
4303
4304
d0ac1c44 4305
7357c5b6
AM
4306ac_ext=c
4307ac_cpp='$CPP $CPPFLAGS'
4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4312$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4313# On Suns, sometimes $CPP names a directory.
4314if test -n "$CPP" && test -d "$CPP"; then
4315 CPP=
4316fi
4317if test -z "$CPP"; then
d0ac1c44 4318 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4319 $as_echo_n "(cached) " >&6
dabbade6 4320else
7357c5b6
AM
4321 # Double quotes because CPP needs to be expanded
4322 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323 do
4324 ac_preproc_ok=false
4325for ac_c_preproc_warn_flag in '' yes
dabbade6 4326do
7357c5b6
AM
4327 # Use a header file that comes with gcc, so configuring glibc
4328 # with a fresh cross-compiler works.
4329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330 # <limits.h> exists even on freestanding compilers.
4331 # On the NeXT, cc -E runs the code through the compiler's parser,
4332 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4334/* end confdefs.h. */
4335#ifdef __STDC__
4336# include <limits.h>
4337#else
4338# include <assert.h>
4339#endif
4340 Syntax error
4341_ACEOF
81ecdfbb 4342if ac_fn_c_try_cpp "$LINENO"; then :
dabbade6 4343
81ecdfbb 4344else
7357c5b6
AM
4345 # Broken: fails on valid input.
4346continue
252b5132 4347fi
d0ac1c44 4348rm -f conftest.err conftest.i conftest.$ac_ext
7357c5b6 4349
81ecdfbb 4350 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4351 # can be detected and how.
81ecdfbb 4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4353/* end confdefs.h. */
4354#include <ac_nonexistent.h>
4355_ACEOF
81ecdfbb 4356if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4357 # Broken: success on invalid input.
4358continue
dabbade6 4359else
7357c5b6
AM
4360 # Passes both tests.
4361ac_preproc_ok=:
4362break
dabbade6 4363fi
d0ac1c44 4364rm -f conftest.err conftest.i conftest.$ac_ext
dabbade6 4365
d7040cdb 4366done
7357c5b6 4367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4368rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4369if $ac_preproc_ok; then :
7357c5b6
AM
4370 break
4371fi
4372
4373 done
4374 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4375
4376fi
7357c5b6
AM
4377 CPP=$ac_cv_prog_CPP
4378else
4379 ac_cv_prog_CPP=$CPP
d7040cdb 4380fi
81ecdfbb
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4382$as_echo "$CPP" >&6; }
7357c5b6
AM
4383ac_preproc_ok=false
4384for ac_c_preproc_warn_flag in '' yes
4385do
4386 # Use a header file that comes with gcc, so configuring glibc
4387 # with a fresh cross-compiler works.
4388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389 # <limits.h> exists even on freestanding compilers.
4390 # On the NeXT, cc -E runs the code through the compiler's parser,
4391 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4393/* end confdefs.h. */
4394#ifdef __STDC__
4395# include <limits.h>
4396#else
4397# include <assert.h>
4398#endif
4399 Syntax error
4400_ACEOF
81ecdfbb 4401if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4402
81ecdfbb 4403else
7357c5b6
AM
4404 # Broken: fails on valid input.
4405continue
d7040cdb 4406fi
d0ac1c44 4407rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4408
81ecdfbb 4409 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4410 # can be detected and how.
81ecdfbb 4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4412/* end confdefs.h. */
4413#include <ac_nonexistent.h>
4414_ACEOF
81ecdfbb 4415if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4416 # Broken: success on invalid input.
4417continue
dabbade6 4418else
7357c5b6
AM
4419 # Passes both tests.
4420ac_preproc_ok=:
4421break
4422fi
d0ac1c44 4423rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4424
7357c5b6
AM
4425done
4426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4427rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4428if $ac_preproc_ok; then :
4429
4430else
4431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4433as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4434See \`config.log' for more details" "$LINENO" 5; }
81ecdfbb
RW
4435fi
4436
4437ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4445$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4446if ${ac_cv_path_GREP+:} false; then :
81ecdfbb
RW
4447 $as_echo_n "(cached) " >&6
4448else
4449 if test -z "$GREP"; then
4450 ac_path_GREP_found=false
4451 # Loop through the user's path and test for each of PROGNAME-LIST
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_prog in grep ggrep; do
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4460 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4461# Check for GNU ac_path_GREP and select it if it is found.
4462 # Check for GNU $ac_path_GREP
4463case `"$ac_path_GREP" --version 2>&1` in
4464*GNU*)
4465 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4466*)
4467 ac_count=0
4468 $as_echo_n 0123456789 >"conftest.in"
4469 while :
4470 do
4471 cat "conftest.in" "conftest.in" >"conftest.tmp"
4472 mv "conftest.tmp" "conftest.in"
4473 cp "conftest.in" "conftest.nl"
4474 $as_echo 'GREP' >> "conftest.nl"
4475 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4477 as_fn_arith $ac_count + 1 && ac_count=$as_val
4478 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4479 # Best one so far, save it but keep looking for a better one
4480 ac_cv_path_GREP="$ac_path_GREP"
4481 ac_path_GREP_max=$ac_count
4482 fi
4483 # 10*(2^10) chars as input seems more than enough
4484 test $ac_count -gt 10 && break
4485 done
4486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487esac
4488
4489 $ac_path_GREP_found && break 3
4490 done
4491 done
4492 done
4493IFS=$as_save_IFS
4494 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4495 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb 4496 fi
dabbade6 4497else
81ecdfbb 4498 ac_cv_path_GREP=$GREP
7357c5b6 4499fi
d7040cdb 4500
81ecdfbb
RW
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4503$as_echo "$ac_cv_path_GREP" >&6; }
4504 GREP="$ac_cv_path_GREP"
d7040cdb
SE
4505
4506
81ecdfbb
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4508$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 4509if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 4510 $as_echo_n "(cached) " >&6
7357c5b6 4511else
81ecdfbb
RW
4512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513 then ac_cv_path_EGREP="$GREP -E"
4514 else
4515 if test -z "$EGREP"; then
4516 ac_path_EGREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in egrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4526 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
4527# Check for GNU ac_path_EGREP and select it if it is found.
4528 # Check for GNU $ac_path_EGREP
4529case `"$ac_path_EGREP" --version 2>&1` in
4530*GNU*)
4531 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532*)
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4536 do
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'EGREP' >> "conftest.nl"
4541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_EGREP="$ac_path_EGREP"
4547 ac_path_EGREP_max=$ac_count
7357c5b6 4548 fi
81ecdfbb
RW
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553esac
4554
4555 $ac_path_EGREP_found && break 3
4556 done
4557 done
4558 done
4559IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 4561 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4562 fi
4563else
4564 ac_cv_path_EGREP=$EGREP
4565fi
4566
4567 fi
7357c5b6 4568fi
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4570$as_echo "$ac_cv_path_EGREP" >&6; }
4571 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
4572
4573
81ecdfbb
RW
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4575$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 4576if ${ac_cv_header_stdc+:} false; then :
81ecdfbb 4577 $as_echo_n "(cached) " >&6
7357c5b6 4578else
81ecdfbb 4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4580/* end confdefs.h. */
4581#include <stdlib.h>
4582#include <stdarg.h>
4583#include <string.h>
4584#include <float.h>
d7040cdb 4585
7357c5b6
AM
4586int
4587main ()
4588{
d7040cdb 4589
7357c5b6
AM
4590 ;
4591 return 0;
4592}
4593_ACEOF
81ecdfbb 4594if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4595 ac_cv_header_stdc=yes
4596else
81ecdfbb 4597 ac_cv_header_stdc=no
7357c5b6 4598fi
81ecdfbb 4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4600
7357c5b6
AM
4601if test $ac_cv_header_stdc = yes; then
4602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4604/* end confdefs.h. */
4605#include <string.h>
d7040cdb 4606
7357c5b6
AM
4607_ACEOF
4608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4609 $EGREP "memchr" >/dev/null 2>&1; then :
4610
7357c5b6
AM
4611else
4612 ac_cv_header_stdc=no
4613fi
4614rm -f conftest*
d7040cdb 4615
7357c5b6 4616fi
d7040cdb 4617
7357c5b6
AM
4618if test $ac_cv_header_stdc = yes; then
4619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4621/* end confdefs.h. */
4622#include <stdlib.h>
d7040cdb 4623
7357c5b6
AM
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4626 $EGREP "free" >/dev/null 2>&1; then :
4627
7357c5b6
AM
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
d7040cdb 4632
7357c5b6 4633fi
d7040cdb 4634
7357c5b6
AM
4635if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4637 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4638 :
4639else
81ecdfbb 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4641/* end confdefs.h. */
4642#include <ctype.h>
81ecdfbb 4643#include <stdlib.h>
7357c5b6
AM
4644#if ((' ' & 0x0FF) == 0x020)
4645# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4646# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4647#else
4648# define ISLOWER(c) \
4649 (('a' <= (c) && (c) <= 'i') \
4650 || ('j' <= (c) && (c) <= 'r') \
4651 || ('s' <= (c) && (c) <= 'z'))
4652# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653#endif
d7040cdb 4654
7357c5b6
AM
4655#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4656int
4657main ()
4658{
4659 int i;
4660 for (i = 0; i < 256; i++)
4661 if (XOR (islower (i), ISLOWER (i))
4662 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4663 return 2;
4664 return 0;
7357c5b6
AM
4665}
4666_ACEOF
81ecdfbb 4667if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4668
81ecdfbb
RW
4669else
4670 ac_cv_header_stdc=no
7357c5b6 4671fi
81ecdfbb
RW
4672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4673 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4674fi
81ecdfbb 4675
7357c5b6
AM
4676fi
4677fi
81ecdfbb
RW
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4679$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4680if test $ac_cv_header_stdc = yes; then
d7040cdb 4681
81ecdfbb 4682$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4683
7357c5b6 4684fi
d7040cdb 4685
7357c5b6 4686# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4687for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4688 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4689do :
4690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4691ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4692"
d0ac1c44 4693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7357c5b6 4694 cat >>confdefs.h <<_ACEOF
81ecdfbb 4695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4696_ACEOF
d7040cdb 4697
7357c5b6 4698fi
d7040cdb 4699
7357c5b6 4700done
d7040cdb
SE
4701
4702
4703
81ecdfbb 4704 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 4705if test "x$ac_cv_header_minix_config_h" = xyes; then :
7357c5b6
AM
4706 MINIX=yes
4707else
4708 MINIX=
4709fi
d7040cdb
SE
4710
4711
7357c5b6 4712 if test "$MINIX" = yes; then
d7040cdb 4713
81ecdfbb 4714$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
dabbade6 4715
252b5132 4716
81ecdfbb 4717$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4718
4719
81ecdfbb 4720$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4721
7357c5b6 4722 fi
d7040cdb
SE
4723
4724
81ecdfbb
RW
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4726$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 4727if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 4728 $as_echo_n "(cached) " >&6
ac48eca1 4729else
81ecdfbb 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4731/* end confdefs.h. */
ac48eca1 4732
d0ac1c44
SM
4733# define __EXTENSIONS__ 1
4734 $ac_includes_default
7357c5b6
AM
4735int
4736main ()
4737{
87e6d782 4738
7357c5b6
AM
4739 ;
4740 return 0;
4741}
4742_ACEOF
81ecdfbb 4743if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4744 ac_cv_safe_to_define___extensions__=yes
4745else
81ecdfbb 4746 ac_cv_safe_to_define___extensions__=no
7357c5b6 4747fi
81ecdfbb 4748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4749fi
81ecdfbb
RW
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4751$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4752 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4753 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
ac48eca1 4754
81ecdfbb 4755 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4756
81ecdfbb
RW
4757 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4758
4759 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4760
4761 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4762
ac48eca1 4763
ac48eca1 4764
ac48eca1 4765
87e6d782 4766
7357c5b6
AM
4767if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4769set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4772if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 4773 $as_echo_n "(cached) " >&6
dabbade6 4774else
7357c5b6
AM
4775 if test -n "$AR"; then
4776 ac_cv_prog_AR="$AR" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
81ecdfbb 4783 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4785 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4787 break 2
4788 fi
4789done
81ecdfbb
RW
4790 done
4791IFS=$as_save_IFS
ac48eca1 4792
7357c5b6
AM
4793fi
4794fi
4795AR=$ac_cv_prog_AR
4796if test -n "$AR"; then
81ecdfbb
RW
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4798$as_echo "$AR" >&6; }
dabbade6 4799else
81ecdfbb
RW
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801$as_echo "no" >&6; }
dabbade6 4802fi
6be7c12c 4803
81ecdfbb 4804
7357c5b6
AM
4805fi
4806if test -z "$ac_cv_prog_AR"; then
4807 ac_ct_AR=$AR
4808 # Extract the first word of "ar", so it can be a program name with args.
4809set dummy ar; ac_word=$2
81ecdfbb
RW
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4812if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 4813 $as_echo_n "(cached) " >&6
7357c5b6
AM
4814else
4815 if test -n "$ac_ct_AR"; then
4816 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4817else
4818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
81ecdfbb 4823 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4825 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4827 break 2
4828 fi
4829done
81ecdfbb
RW
4830 done
4831IFS=$as_save_IFS
7357c5b6
AM
4832
4833fi
4834fi
4835ac_ct_AR=$ac_cv_prog_ac_ct_AR
4836if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4838$as_echo "$ac_ct_AR" >&6; }
7357c5b6 4839else
81ecdfbb
RW
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841$as_echo "no" >&6; }
7357c5b6
AM
4842fi
4843
81ecdfbb
RW
4844 if test "x$ac_ct_AR" = x; then
4845 AR=""
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848yes:)
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851ac_tool_warned=yes ;;
4852esac
4853 AR=$ac_ct_AR
4854 fi
7357c5b6
AM
4855else
4856 AR="$ac_cv_prog_AR"
4857fi
4858
4859if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4864if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 4865 $as_echo_n "(cached) " >&6
7357c5b6
AM
4866else
4867 if test -n "$RANLIB"; then
4868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
81ecdfbb 4875 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4879 break 2
4880 fi
4881done
81ecdfbb
RW
4882 done
4883IFS=$as_save_IFS
7357c5b6
AM
4884
4885fi
4886fi
4887RANLIB=$ac_cv_prog_RANLIB
4888if test -n "$RANLIB"; then
81ecdfbb
RW
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4890$as_echo "$RANLIB" >&6; }
7357c5b6 4891else
81ecdfbb
RW
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893$as_echo "no" >&6; }
7357c5b6
AM
4894fi
4895
81ecdfbb 4896
7357c5b6
AM
4897fi
4898if test -z "$ac_cv_prog_RANLIB"; then
4899 ac_ct_RANLIB=$RANLIB
4900 # Extract the first word of "ranlib", so it can be a program name with args.
4901set dummy ranlib; ac_word=$2
81ecdfbb
RW
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4904if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 4905 $as_echo_n "(cached) " >&6
7357c5b6
AM
4906else
4907 if test -n "$ac_ct_RANLIB"; then
4908 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
81ecdfbb 4915 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 4917 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4919 break 2
4920 fi
4921done
81ecdfbb
RW
4922 done
4923IFS=$as_save_IFS
7357c5b6 4924
7357c5b6
AM
4925fi
4926fi
4927ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4928if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4930$as_echo "$ac_ct_RANLIB" >&6; }
7357c5b6 4931else
81ecdfbb
RW
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933$as_echo "no" >&6; }
7357c5b6
AM
4934fi
4935
81ecdfbb
RW
4936 if test "x$ac_ct_RANLIB" = x; then
4937 RANLIB=":"
4938 else
4939 case $cross_compiling:$ac_tool_warned in
4940yes:)
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943ac_tool_warned=yes ;;
4944esac
4945 RANLIB=$ac_ct_RANLIB
4946 fi
7357c5b6
AM
4947else
4948 RANLIB="$ac_cv_prog_RANLIB"
4949fi
4950
4951
81ecdfbb
RW
4952# Check whether --enable-shared was given.
4953if test "${enable_shared+set}" = set; then :
4954 enableval=$enable_shared; p=${PACKAGE-default}
7357c5b6
AM
4955 case $enableval in
4956 yes) enable_shared=yes ;;
4957 no) enable_shared=no ;;
4958 *)
4959 enable_shared=no
4960 # Look at the argument we got. We use all the common list separators.
4961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4962 for pkg in $enableval; do
4963 IFS="$lt_save_ifs"
4964 if test "X$pkg" = "X$p"; then
4965 enable_shared=yes
4966 fi
4967 done
4968 IFS="$lt_save_ifs"
4969 ;;
4970 esac
4971else
4972 enable_shared=no
81ecdfbb
RW
4973fi
4974
7357c5b6
AM
4975
4976
4977
4978
4979
4980
4981
4982
4983
1927a18f
L
4984case `pwd` in
4985 *\ * | *\ *)
81ecdfbb
RW
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4987$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1927a18f 4988esac
7357c5b6
AM
4989
4990
7357c5b6 4991
3725885a
RW
4992macro_version='2.2.7a'
4993macro_revision='1.3134'
7357c5b6
AM
4994
4995
4996
4997
4998
4999
7357c5b6
AM
5000
5001
5002
5003
5004
5005
5006
1927a18f 5007ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5008
3725885a
RW
5009# Backslashify metacharacters that are still active within
5010# double-quoted strings.
5011sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5012
5013# Same as above, but do not quote variable references.
5014double_quote_subst='s/\(["`\\]\)/\\\1/g'
5015
5016# Sed substitution to delay expansion of an escaped shell variable in a
5017# double_quote_subst'ed string.
5018delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5019
5020# Sed substitution to delay expansion of an escaped single quote.
5021delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5022
5023# Sed substitution to avoid accidental globbing in evaled expressions
5024no_glob_subst='s/\*/\\\*/g'
5025
5026ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5027ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5028ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5029
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5031$as_echo_n "checking how to print strings... " >&6; }
5032# Test print first, because it will be a builtin if present.
5033if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5034 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5035 ECHO='print -r --'
5036elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5037 ECHO='printf %s\n'
5038else
5039 # Use this function as a fallback that always works.
5040 func_fallback_echo ()
5041 {
5042 eval 'cat <<_LTECHO_EOF
5043$1
5044_LTECHO_EOF'
5045 }
5046 ECHO='func_fallback_echo'
5047fi
5048
5049# func_echo_all arg...
5050# Invoke $ECHO with all args, space-separated.
5051func_echo_all ()
5052{
5053 $ECHO ""
5054}
5055
5056case "$ECHO" in
5057 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5058$as_echo "printf" >&6; } ;;
5059 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5060$as_echo "print -r" >&6; } ;;
5061 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5062$as_echo "cat" >&6; } ;;
5063esac
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
81ecdfbb
RW
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5079$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5080if ${ac_cv_path_SED+:} false; then :
81ecdfbb 5081 $as_echo_n "(cached) " >&6
7357c5b6 5082else
81ecdfbb
RW
5083 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5084 for ac_i in 1 2 3 4 5 6 7; do
5085 ac_script="$ac_script$as_nl$ac_script"
5086 done
5087 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5088 { ac_script=; unset ac_script;}
5089 if test -z "$SED"; then
5090 ac_path_SED_found=false
5091 # Loop through the user's path and test for each of PROGNAME-LIST
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5093for as_dir in $PATH
5094do
5095 IFS=$as_save_IFS
5096 test -z "$as_dir" && as_dir=.
81ecdfbb 5097 for ac_prog in sed gsed; do
7357c5b6 5098 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5099 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5100 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5101# Check for GNU ac_path_SED and select it if it is found.
5102 # Check for GNU $ac_path_SED
5103case `"$ac_path_SED" --version 2>&1` in
5104*GNU*)
5105 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5106*)
5107 ac_count=0
5108 $as_echo_n 0123456789 >"conftest.in"
5109 while :
5110 do
5111 cat "conftest.in" "conftest.in" >"conftest.tmp"
5112 mv "conftest.tmp" "conftest.in"
5113 cp "conftest.in" "conftest.nl"
5114 $as_echo '' >> "conftest.nl"
5115 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117 as_fn_arith $ac_count + 1 && ac_count=$as_val
5118 if test $ac_count -gt ${ac_path_SED_max-0}; then
5119 # Best one so far, save it but keep looking for a better one
5120 ac_cv_path_SED="$ac_path_SED"
5121 ac_path_SED_max=$ac_count
5122 fi
5123 # 10*(2^10) chars as input seems more than enough
5124 test $ac_count -gt 10 && break
5125 done
5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127esac
5128
5129 $ac_path_SED_found && break 3
7357c5b6
AM
5130 done
5131 done
81ecdfbb 5132 done
7357c5b6 5133IFS=$as_save_IFS
81ecdfbb 5134 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5135 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5136 fi
81ecdfbb
RW
5137else
5138 ac_cv_path_SED=$SED
7357c5b6
AM
5139fi
5140
81ecdfbb
RW
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5143$as_echo "$ac_cv_path_SED" >&6; }
5144 SED="$ac_cv_path_SED"
5145 rm -f conftest.sed
7357c5b6
AM
5146
5147test -z "$SED" && SED=sed
5148Xsed="$SED -e 1s/^X//"
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
81ecdfbb
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5161$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5162if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5163 $as_echo_n "(cached) " >&6
7357c5b6 5164else
81ecdfbb
RW
5165 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5166 then ac_cv_path_FGREP="$GREP -F"
5167 else
5168 if test -z "$FGREP"; then
5169 ac_path_FGREP_found=false
5170 # Loop through the user's path and test for each of PROGNAME-LIST
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5173do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_prog in fgrep; do
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5179 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5180# Check for GNU ac_path_FGREP and select it if it is found.
5181 # Check for GNU $ac_path_FGREP
5182case `"$ac_path_FGREP" --version 2>&1` in
5183*GNU*)
5184 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5185*)
5186 ac_count=0
5187 $as_echo_n 0123456789 >"conftest.in"
5188 while :
5189 do
5190 cat "conftest.in" "conftest.in" >"conftest.tmp"
5191 mv "conftest.tmp" "conftest.in"
5192 cp "conftest.in" "conftest.nl"
5193 $as_echo 'FGREP' >> "conftest.nl"
5194 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196 as_fn_arith $ac_count + 1 && ac_count=$as_val
5197 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5198 # Best one so far, save it but keep looking for a better one
5199 ac_cv_path_FGREP="$ac_path_FGREP"
5200 ac_path_FGREP_max=$ac_count
7357c5b6 5201 fi
81ecdfbb
RW
5202 # 10*(2^10) chars as input seems more than enough
5203 test $ac_count -gt 10 && break
5204 done
5205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206esac
5207
5208 $ac_path_FGREP_found && break 3
5209 done
5210 done
5211 done
5212IFS=$as_save_IFS
5213 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5214 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5215 fi
5216else
5217 ac_cv_path_FGREP=$FGREP
5218fi
5219
5220 fi
7357c5b6 5221fi
81ecdfbb
RW
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5223$as_echo "$ac_cv_path_FGREP" >&6; }
5224 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5225
5226
5227test -z "$GREP" && GREP=grep
d7040cdb 5228
d7040cdb 5229
d7040cdb 5230
ac48eca1
AO
5231
5232
5233
ac48eca1 5234
ac48eca1 5235
ac48eca1 5236
ac48eca1 5237
ac48eca1 5238
ac48eca1 5239
ac48eca1 5240
ac48eca1 5241
ac48eca1 5242
ac48eca1 5243
dabbade6
L
5244
5245
5246
81ecdfbb
RW
5247# Check whether --with-gnu-ld was given.
5248if test "${with_gnu_ld+set}" = set; then :
5249 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dabbade6
L
5250else
5251 with_gnu_ld=no
81ecdfbb
RW
5252fi
5253
dabbade6
L
5254ac_prog=ld
5255if test "$GCC" = yes; then
5256 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5258$as_echo_n "checking for ld used by $CC... " >&6; }
dabbade6
L
5259 case $host in
5260 *-*-mingw*)
5261 # gcc leaves a trailing carriage return which upsets mingw
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5263 *)
5264 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5265 esac
5266 case $ac_prog in
5267 # Accept absolute paths.
5268 [\\/]* | ?:[\\/]*)
5269 re_direlt='/[^/][^/]*/\.\./'
5270 # Canonicalize the pathname of ld
5271 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5272 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5273 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5274 done
5275 test -z "$LD" && LD="$ac_prog"
5276 ;;
5277 "")
5278 # If it fails, then pretend we aren't using GCC.
5279 ac_prog=ld
5280 ;;
5281 *)
5282 # If it is relative, then search for the first ld in PATH.
5283 with_gnu_ld=unknown
5284 ;;
5285 esac
5286elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5288$as_echo_n "checking for GNU ld... " >&6; }
dabbade6 5289else
81ecdfbb
RW
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5291$as_echo_n "checking for non-GNU ld... " >&6; }
dabbade6 5292fi
d0ac1c44 5293if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5294 $as_echo_n "(cached) " >&6
ac48eca1 5295else
dabbade6
L
5296 if test -z "$LD"; then
5297 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5298 for ac_dir in $PATH; do
5299 IFS="$lt_save_ifs"
5300 test -z "$ac_dir" && ac_dir=.
5301 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5302 lt_cv_path_LD="$ac_dir/$ac_prog"
5303 # Check to see if the program is GNU ld. I'd rather use --version,
5304 # but apparently some variants of GNU ld only accept -v.
5305 # Break only if it was the GNU/non-GNU ld that we prefer.
5306 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5307 *GNU* | *'with BFD'*)
5308 test "$with_gnu_ld" != no && break
5309 ;;
5310 *)
5311 test "$with_gnu_ld" != yes && break
5312 ;;
5313 esac
5314 fi
5315 done
5316 IFS="$lt_save_ifs"
ac48eca1 5317else
dabbade6 5318 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5319fi
5320fi
dabbade6
L
5321
5322LD="$lt_cv_path_LD"
5323if test -n "$LD"; then
81ecdfbb
RW
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5325$as_echo "$LD" >&6; }
ac48eca1 5326else
81ecdfbb
RW
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328$as_echo "no" >&6; }
ac48eca1 5329fi
d0ac1c44 5330test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5332$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5333if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5334 $as_echo_n "(cached) " >&6
ac48eca1 5335else
dabbade6
L
5336 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5337case `$LD -v 2>&1 </dev/null` in
5338*GNU* | *'with BFD'*)
5339 lt_cv_prog_gnu_ld=yes
5340 ;;
5341*)
5342 lt_cv_prog_gnu_ld=no
5343 ;;
5344esac
ac48eca1 5345fi
81ecdfbb
RW
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5347$as_echo "$lt_cv_prog_gnu_ld" >&6; }
dabbade6 5348with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5349
5350
5351
5352
5353
5354
5355
5356
5357
81ecdfbb
RW
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5359$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5360if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5361 $as_echo_n "(cached) " >&6
ac48eca1 5362else
dabbade6 5363 if test -n "$NM"; then
b9004024
NA
5364 # Let the user override the nm to test.
5365 lt_nm_to_check="$NM"
5366 else
5367 lt_nm_to_check="${ac_tool_prefix}nm"
5368 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5369 lt_nm_to_check="$lt_nm_to_check nm"
5370 fi
5371 fi
5372 for lt_tmp_nm in $lt_nm_to_check; do
5373 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5375 IFS="$lt_save_ifs"
5376 test -z "$ac_dir" && ac_dir=.
5377 case "$lt_tmp_nm" in
5378 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5379 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5380 esac
5381 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5382 # Check to see if the nm accepts a BSD-compat flag.
5383 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5384 # nm: unknown option "B" ignored
5385 case `"$tmp_nm" -B "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5386 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5387 break
5388 ;;
5389 *)
5390 case `"$tmp_nm" -p "$tmp_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5391 *$tmp_nm*)
5392 lt_cv_path_NM="$tmp_nm -p"
5393 break
5394 ;;
5395 *)
5396 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5397 continue # so that we can try to find one that supports BSD flags
5398 ;;
5399 esac
5400 ;;
5401 esac
5402 fi
5403 done
5404 IFS="$lt_save_ifs"
5405 done
5406 : ${lt_cv_path_NM=no}
ac48eca1 5407fi
81ecdfbb
RW
5408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5409$as_echo "$lt_cv_path_NM" >&6; }
dabbade6
L
5410if test "$lt_cv_path_NM" != "no"; then
5411 NM="$lt_cv_path_NM"
ac48eca1 5412else
dabbade6 5413 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5414 if test -n "$DUMPBIN"; then :
5415 # Let the user override the test.
5416 else
5417 if test -n "$ac_tool_prefix"; then
5418 for ac_prog in dumpbin "link -dump"
dabbade6
L
5419 do
5420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5424if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5425 $as_echo_n "(cached) " >&6
ac48eca1 5426else
dabbade6
L
5427 if test -n "$DUMPBIN"; then
5428 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5429else
979273e3
NN
5430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
81ecdfbb 5435 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5437 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
5439 break 2
5440 fi
5441done
81ecdfbb
RW
5442 done
5443IFS=$as_save_IFS
979273e3 5444
ac48eca1
AO
5445fi
5446fi
dabbade6
L
5447DUMPBIN=$ac_cv_prog_DUMPBIN
5448if test -n "$DUMPBIN"; then
81ecdfbb
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5450$as_echo "$DUMPBIN" >&6; }
ac48eca1 5451else
81ecdfbb
RW
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
ac48eca1
AO
5454fi
5455
81ecdfbb 5456
dabbade6
L
5457 test -n "$DUMPBIN" && break
5458 done
ac48eca1 5459fi
dabbade6
L
5460if test -z "$DUMPBIN"; then
5461 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5462 for ac_prog in dumpbin "link -dump"
dabbade6
L
5463do
5464 # Extract the first word of "$ac_prog", so it can be a program name with args.
5465set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5468if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5469 $as_echo_n "(cached) " >&6
ac48eca1 5470else
dabbade6
L
5471 if test -n "$ac_ct_DUMPBIN"; then
5472 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
81ecdfbb 5479 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 5481 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5483 break 2
252b5132 5484 fi
d7040cdb 5485done
81ecdfbb
RW
5486 done
5487IFS=$as_save_IFS
252b5132 5488
d7040cdb
SE
5489fi
5490fi
dabbade6
L
5491ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5492if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5494$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5495else
81ecdfbb
RW
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
d7040cdb 5498fi
4867be41 5499
81ecdfbb 5500
dabbade6 5501 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5502done
32fba81d 5503
81ecdfbb
RW
5504 if test "x$ac_ct_DUMPBIN" = x; then
5505 DUMPBIN=":"
5506 else
5507 case $cross_compiling:$ac_tool_warned in
5508yes:)
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511ac_tool_warned=yes ;;
5512esac
5513 DUMPBIN=$ac_ct_DUMPBIN
5514 fi
d7040cdb 5515fi
979273e3 5516
3725885a
RW
5517 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5518 *COFF*)
5519 DUMPBIN="$DUMPBIN -symbols"
5520 ;;
5521 *)
5522 DUMPBIN=:
5523 ;;
5524 esac
5525 fi
979273e3 5526
dabbade6
L
5527 if test "$DUMPBIN" != ":"; then
5528 NM="$DUMPBIN"
5529 fi
5530fi
5531test -z "$NM" && NM=nm
ac48eca1 5532
252b5132 5533
252b5132 5534
979273e3 5535
ac48eca1 5536
d7040cdb 5537
81ecdfbb
RW
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5539$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5540if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5541 $as_echo_n "(cached) " >&6
dabbade6
L
5542else
5543 lt_cv_nm_interface="BSD nm"
5544 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5545 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
dabbade6
L
5546 (eval "$ac_compile" 2>conftest.err)
5547 cat conftest.err >&5
3725885a 5548 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5549 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5550 cat conftest.err >&5
3725885a 5551 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
dabbade6
L
5552 cat conftest.out >&5
5553 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5554 lt_cv_nm_interface="MS dumpbin"
5555 fi
5556 rm -f conftest*
5557fi
81ecdfbb
RW
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5559$as_echo "$lt_cv_nm_interface" >&6; }
d7040cdb 5560
81ecdfbb
RW
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5562$as_echo_n "checking whether ln -s works... " >&6; }
dabbade6
L
5563LN_S=$as_ln_s
5564if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5566$as_echo "yes" >&6; }
dabbade6 5567else
81ecdfbb
RW
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5569$as_echo "no, using $LN_S" >&6; }
dabbade6
L
5570fi
5571
5572# find the maximum length of command line arguments
81ecdfbb
RW
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5574$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5575if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5576 $as_echo_n "(cached) " >&6
dabbade6
L
5577else
5578 i=0
5579 teststring="ABCD"
5580
5581 case $build_os in
5582 msdosdjgpp*)
5583 # On DJGPP, this test can blow up pretty badly due to problems in libc
5584 # (any single argument exceeding 2000 bytes causes a buffer overrun
5585 # during glob expansion). Even if it were fixed, the result of this
5586 # check would be larger than it should be.
5587 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5588 ;;
5589
5590 gnu*)
5591 # Under GNU Hurd, this test is not required because there is
5592 # no limit to the length of command line arguments.
5593 # Libtool will interpret -1 as no limit whatsoever
5594 lt_cv_sys_max_cmd_len=-1;
5595 ;;
5596
1927a18f 5597 cygwin* | mingw* | cegcc*)
dabbade6
L
5598 # On Win9x/ME, this test blows up -- it succeeds, but takes
5599 # about 5 minutes as the teststring grows exponentially.
5600 # Worse, since 9x/ME are not pre-emptively multitasking,
5601 # you end up with a "frozen" computer, even though with patience
5602 # the test eventually succeeds (with a max line length of 256k).
5603 # Instead, let's just punt: use the minimum linelength reported by
5604 # all of the supported platforms: 8192 (on NT/2K/XP).
5605 lt_cv_sys_max_cmd_len=8192;
5606 ;;
5607
3725885a
RW
5608 mint*)
5609 # On MiNT this can take a long time and run out of memory.
5610 lt_cv_sys_max_cmd_len=8192;
5611 ;;
5612
dabbade6
L
5613 amigaos*)
5614 # On AmigaOS with pdksh, this test takes hours, literally.
5615 # So we just punt and use a minimum line length of 8192.
5616 lt_cv_sys_max_cmd_len=8192;
5617 ;;
5618
5619 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5620 # This has been around since 386BSD, at least. Likely further.
5621 if test -x /sbin/sysctl; then
5622 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5623 elif test -x /usr/sbin/sysctl; then
5624 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5625 else
5626 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5627 fi
5628 # And add a safety zone
5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5631 ;;
5632
5633 interix*)
5634 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5635 lt_cv_sys_max_cmd_len=196608
5636 ;;
5637
5638 osf*)
5639 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5640 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5641 # nice to cause kernel panics so lets avoid the loop below.
5642 # First set a reasonable default.
5643 lt_cv_sys_max_cmd_len=16384
5644 #
5645 if test -x /sbin/sysconfig; then
5646 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5647 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5648 esac
5649 fi
5650 ;;
5651 sco3.2v5*)
5652 lt_cv_sys_max_cmd_len=102400
5653 ;;
5654 sysv5* | sco5v6* | sysv4.2uw2*)
5655 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5656 if test -n "$kargmax"; then
5657 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5658 else
5659 lt_cv_sys_max_cmd_len=32768
5660 fi
d7040cdb
SE
5661 ;;
5662 *)
1927a18f
L
5663 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5664 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5667 else
5668 # Make teststring a little bigger before we do anything with it.
5669 # a 1K string should be a reasonable start.
5670 for i in 1 2 3 4 5 6 7 8 ; do
5671 teststring=$teststring$teststring
5672 done
5673 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5674 # If test is not a shell built-in, we'll probably end up computing a
5675 # maximum length that is only half of the actual maximum length, but
5676 # we can't tell.
3725885a
RW
5677 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5678 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
dabbade6
L
5679 test $i != 17 # 1/2 MB should be enough
5680 do
5681 i=`expr $i + 1`
5682 teststring=$teststring$teststring
5683 done
5684 # Only check the string length outside the loop.
5685 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5686 teststring=
5687 # Add a significant safety factor because C++ compilers can tack on
5688 # massive amounts of additional arguments before passing them to the
5689 # linker. It appears as though 1/2 is a usable value.
5690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5691 fi
d7040cdb
SE
5692 ;;
5693 esac
252b5132 5694
dabbade6 5695fi
252b5132 5696
dabbade6 5697if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5699$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
dabbade6 5700else
81ecdfbb
RW
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5702$as_echo "none" >&6; }
dabbade6
L
5703fi
5704max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5705
252b5132 5706
979273e3 5707
979273e3 5708
252b5132 5709
252b5132 5710
dabbade6
L
5711: ${CP="cp -f"}
5712: ${MV="mv -f"}
5713: ${RM="rm -f"}
252b5132 5714
81ecdfbb
RW
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5716$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
dabbade6
L
5717# Try some XSI features
5718xsi_shell=no
5719( _lt_dummy="a/b/c"
5720 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5721 = c,a/b,, \
5722 && eval 'test $(( 1 + 1 )) -eq 2 \
5723 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6 5724 && xsi_shell=yes
81ecdfbb
RW
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5726$as_echo "$xsi_shell" >&6; }
252b5132 5727
252b5132 5728
81ecdfbb
RW
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5730$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
dabbade6
L
5731lt_shell_append=no
5732( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5733 >/dev/null 2>&1 \
5734 && lt_shell_append=yes
81ecdfbb
RW
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5736$as_echo "$lt_shell_append" >&6; }
252b5132 5737
ac48eca1 5738
dabbade6
L
5739if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5740 lt_unset=unset
5741else
5742 lt_unset=false
5743fi
979273e3
NN
5744
5745
5746
5747
ac48eca1 5748
dabbade6
L
5749# test EBCDIC or ASCII
5750case `echo X|tr X '\101'` in
5751 A) # ASCII based system
5752 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5753 lt_SP2NL='tr \040 \012'
5754 lt_NL2SP='tr \015\012 \040\040'
5755 ;;
5756 *) # EBCDIC based system
5757 lt_SP2NL='tr \100 \n'
5758 lt_NL2SP='tr \r\n \100\100'
5759 ;;
5760esac
9e9b66a9 5761
1ad12f97 5762
1ad12f97 5763
9e9b66a9 5764
1ad12f97 5765
a541e3ce 5766
9e9b66a9 5767
a2d91340
AC
5768
5769
81ecdfbb
RW
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5771$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 5772if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 5773 $as_echo_n "(cached) " >&6
dabbade6
L
5774else
5775 lt_cv_ld_reload_flag='-r'
5776fi
81ecdfbb
RW
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5778$as_echo "$lt_cv_ld_reload_flag" >&6; }
dabbade6
L
5779reload_flag=$lt_cv_ld_reload_flag
5780case $reload_flag in
5781"" | " "*) ;;
5782*) reload_flag=" $reload_flag" ;;
5783esac
5784reload_cmds='$LD$reload_flag -o $output$reload_objs'
5785case $host_os in
5786 darwin*)
5787 if test "$GCC" = yes; then
5788 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5789 else
5790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5791 fi
5792 ;;
5793esac
9e9b66a9
AM
5794
5795
5796
252b5132 5797
252b5132 5798
252b5132 5799
252b5132 5800
252b5132 5801
d7040cdb 5802
1927a18f
L
5803if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5805set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5808if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 5809 $as_echo_n "(cached) " >&6
1927a18f
L
5810else
5811 if test -n "$OBJDUMP"; then
5812 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
81ecdfbb 5819 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 5821 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5823 break 2
5824 fi
5825done
81ecdfbb
RW
5826 done
5827IFS=$as_save_IFS
1927a18f
L
5828
5829fi
5830fi
5831OBJDUMP=$ac_cv_prog_OBJDUMP
5832if test -n "$OBJDUMP"; then
81ecdfbb
RW
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5834$as_echo "$OBJDUMP" >&6; }
1927a18f 5835else
81ecdfbb
RW
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837$as_echo "no" >&6; }
1927a18f
L
5838fi
5839
81ecdfbb 5840
1927a18f
L
5841fi
5842if test -z "$ac_cv_prog_OBJDUMP"; then
5843 ac_ct_OBJDUMP=$OBJDUMP
5844 # Extract the first word of "objdump", so it can be a program name with args.
5845set dummy objdump; ac_word=$2
81ecdfbb
RW
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5848if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 5849 $as_echo_n "(cached) " >&6
1927a18f
L
5850else
5851 if test -n "$ac_ct_OBJDUMP"; then
5852 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5853else
5854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855for as_dir in $PATH
5856do
5857 IFS=$as_save_IFS
5858 test -z "$as_dir" && as_dir=.
81ecdfbb 5859 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 5861 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5863 break 2
5864 fi
5865done
81ecdfbb
RW
5866 done
5867IFS=$as_save_IFS
1927a18f 5868
1927a18f
L
5869fi
5870fi
5871ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5872if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5874$as_echo "$ac_ct_OBJDUMP" >&6; }
1927a18f 5875else
81ecdfbb
RW
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877$as_echo "no" >&6; }
1927a18f
L
5878fi
5879
81ecdfbb
RW
5880 if test "x$ac_ct_OBJDUMP" = x; then
5881 OBJDUMP="false"
5882 else
5883 case $cross_compiling:$ac_tool_warned in
5884yes:)
5885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887ac_tool_warned=yes ;;
5888esac
5889 OBJDUMP=$ac_ct_OBJDUMP
5890 fi
1927a18f
L
5891else
5892 OBJDUMP="$ac_cv_prog_OBJDUMP"
5893fi
5894
5895test -z "$OBJDUMP" && OBJDUMP=objdump
5896
5897
5898
5899
5900
5901
5902
5903
d7040cdb 5904
81ecdfbb
RW
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5906$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 5907if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 5908 $as_echo_n "(cached) " >&6
252b5132 5909else
dabbade6
L
5910 lt_cv_file_magic_cmd='$MAGIC_CMD'
5911lt_cv_file_magic_test_file=
5912lt_cv_deplibs_check_method='unknown'
5913# Need to set the preceding variable on all platforms that support
5914# interlibrary dependencies.
5915# 'none' -- dependencies not supported.
5916# `unknown' -- same as none, but documents that we really don't know.
5917# 'pass_all' -- all dependencies passed with no checks.
5918# 'test_compile' -- check by making test program.
5919# 'file_magic [[regex]]' -- check by looking for files in library path
5920# which responds to the $file_magic_cmd with a given extended regex.
5921# If you have `file' or equivalent on your system and you're not sure
5922# whether `pass_all' will *always* work, you probably want this one.
8ae85421 5923
dabbade6 5924case $host_os in
50e7d84b 5925aix[4-9]*)
dabbade6
L
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
979273e3 5928
dabbade6
L
5929beos*)
5930 lt_cv_deplibs_check_method=pass_all
5931 ;;
24443139 5932
dabbade6
L
5933bsdi[45]*)
5934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5935 lt_cv_file_magic_cmd='/usr/bin/file -L'
5936 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 5937 ;;
dabbade6
L
5938
5939cygwin*)
5940 # func_win32_libid is a shell function defined in ltmain.sh
5941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5942 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5943 ;;
dabbade6
L
5944
5945mingw* | pw32*)
5946 # Base MSYS/MinGW do not provide the 'file' command needed by
5947 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5948 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5949 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5950 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
dabbade6
L
5951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5952 lt_cv_file_magic_cmd='func_win32_libid'
5953 else
5954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5955 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
5956 fi
5957 ;;
dabbade6 5958
3725885a 5959cegcc*)
1927a18f
L
5960 # use the weaker test based on 'objdump'. See mingw*.
5961 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5962 lt_cv_file_magic_cmd='$OBJDUMP -f'
5963 ;;
5964
dabbade6
L
5965darwin* | rhapsody*)
5966 lt_cv_deplibs_check_method=pass_all
d7040cdb 5967 ;;
dabbade6
L
5968
5969freebsd* | dragonfly*)
5970 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5971 case $host_cpu in
5972 i*86 )
5973 # Not sure whether the presence of OpenBSD here was a mistake.
5974 # Let's accept both of them until this is cleared up.
5975 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5976 lt_cv_file_magic_cmd=/usr/bin/file
5977 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5978 ;;
5979 esac
5980 else
5981 lt_cv_deplibs_check_method=pass_all
5982 fi
d7040cdb 5983 ;;
dabbade6
L
5984
5985gnu*)
5986 lt_cv_deplibs_check_method=pass_all
d7040cdb 5987 ;;
dabbade6 5988
3725885a
RW
5989haiku*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992
dabbade6
L
5993hpux10.20* | hpux11*)
5994 lt_cv_file_magic_cmd=/usr/bin/file
5995 case $host_cpu in
5996 ia64*)
5997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5999 ;;
6000 hppa*64*)
3725885a 6001 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
6002 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6003 ;;
6004 *)
3725885a 6005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
dabbade6
L
6006 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6007 ;;
6008 esac
d7040cdb 6009 ;;
24443139 6010
dabbade6
L
6011interix[3-9]*)
6012 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6014 ;;
24443139 6015
dabbade6
L
6016irix5* | irix6* | nonstopux*)
6017 case $LD in
6018 *-32|*"-32 ") libmagic=32-bit;;
6019 *-n32|*"-n32 ") libmagic=N32;;
6020 *-64|*"-64 ") libmagic=64-bit;;
6021 *) libmagic=never-match;;
6022 esac
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
8ae85421 6025
dabbade6 6026# This must be Linux ELF.
58e24671 6027linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
6028 lt_cv_deplibs_check_method=pass_all
6029 ;;
24443139 6030
dabbade6
L
6031netbsd*)
6032 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6034 else
6035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6036 fi
d7040cdb 6037 ;;
24443139 6038
dabbade6
L
6039newos6*)
6040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6041 lt_cv_file_magic_cmd=/usr/bin/file
6042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6043 ;;
d7040cdb 6044
dabbade6
L
6045*nto* | *qnx*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
d7040cdb 6048
dabbade6
L
6049openbsd*)
6050 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 6052 else
dabbade6 6053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 6054 fi
dabbade6 6055 ;;
24443139 6056
dabbade6
L
6057osf3* | osf4* | osf5*)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
24443139 6060
dabbade6
L
6061rdos*)
6062 lt_cv_deplibs_check_method=pass_all
6063 ;;
81172ff2 6064
dabbade6
L
6065solaris*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
81172ff2 6068
dabbade6
L
6069sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6070 lt_cv_deplibs_check_method=pass_all
6071 ;;
252b5132 6072
dabbade6
L
6073sysv4 | sysv4.3*)
6074 case $host_vendor in
6075 motorola)
6076 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]'
6077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6078 ;;
6079 ncr)
6080 lt_cv_deplibs_check_method=pass_all
6081 ;;
6082 sequent)
6083 lt_cv_file_magic_cmd='/bin/file'
6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6085 ;;
6086 sni)
6087 lt_cv_file_magic_cmd='/bin/file'
6088 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6089 lt_cv_file_magic_test_file=/lib/libc.so
6090 ;;
6091 siemens)
6092 lt_cv_deplibs_check_method=pass_all
6093 ;;
6094 pc)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097 esac
6098 ;;
252b5132 6099
dabbade6
L
6100tpf*)
6101 lt_cv_deplibs_check_method=pass_all
6102 ;;
6103esac
979273e3 6104
dabbade6 6105fi
81ecdfbb
RW
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6107$as_echo "$lt_cv_deplibs_check_method" >&6; }
dabbade6
L
6108file_magic_cmd=$lt_cv_file_magic_cmd
6109deplibs_check_method=$lt_cv_deplibs_check_method
6110test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6111
979273e3 6112
979273e3 6113
dabbade6
L
6114
6115
6116
6117
6118
6119
6120
6121
6122
a4966cd9
L
6123plugin_option=
6124plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6125for plugin in $plugin_names; do
6126 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6127 if test x$plugin_so = x$plugin; then
6128 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6129 fi
6130 if test x$plugin_so != x$plugin; then
6131 plugin_option="--plugin $plugin_so"
6132 break
6133 fi
6134done
6135
dabbade6
L
6136if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6138set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6141if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6142 $as_echo_n "(cached) " >&6
dabbade6
L
6143else
6144 if test -n "$AR"; then
6145 ac_cv_prog_AR="$AR" # Let the user override the test.
6146else
6147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
81ecdfbb 6152 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6154 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6156 break 2
252b5132 6157 fi
979273e3 6158done
81ecdfbb
RW
6159 done
6160IFS=$as_save_IFS
979273e3 6161
dabbade6
L
6162fi
6163fi
6164AR=$ac_cv_prog_AR
6165if test -n "$AR"; then
81ecdfbb
RW
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6167$as_echo "$AR" >&6; }
dabbade6 6168else
81ecdfbb
RW
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170$as_echo "no" >&6; }
979273e3 6171fi
d7040cdb 6172
81ecdfbb 6173
252b5132 6174fi
dabbade6
L
6175if test -z "$ac_cv_prog_AR"; then
6176 ac_ct_AR=$AR
6177 # Extract the first word of "ar", so it can be a program name with args.
6178set dummy ar; ac_word=$2
81ecdfbb
RW
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6181if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6182 $as_echo_n "(cached) " >&6
979273e3 6183else
dabbade6
L
6184 if test -n "$ac_ct_AR"; then
6185 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190 IFS=$as_save_IFS
6191 test -z "$as_dir" && as_dir=.
81ecdfbb 6192 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6194 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6196 break 2
6197 fi
6198done
81ecdfbb
RW
6199 done
6200IFS=$as_save_IFS
dabbade6 6201
dabbade6
L
6202fi
6203fi
6204ac_ct_AR=$ac_cv_prog_ac_ct_AR
6205if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6207$as_echo "$ac_ct_AR" >&6; }
dabbade6 6208else
81ecdfbb
RW
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
252b5132
RH
6211fi
6212
81ecdfbb
RW
6213 if test "x$ac_ct_AR" = x; then
6214 AR="false"
6215 else
6216 case $cross_compiling:$ac_tool_warned in
6217yes:)
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6220ac_tool_warned=yes ;;
6221esac
6222 AR=$ac_ct_AR
6223 fi
dabbade6
L
6224else
6225 AR="$ac_cv_prog_AR"
6226fi
252b5132 6227
dabbade6 6228test -z "$AR" && AR=ar
a4966cd9
L
6229if test -n "$plugin_option"; then
6230 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6231 touch conftest.c
6232 $AR $plugin_option rc conftest.a conftest.c
6233 if test "$?" != 0; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6235$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6236 else
6237 AR="$AR $plugin_option"
6238 fi
6239 rm -f conftest.*
a4966cd9
L
6240 fi
6241fi
dabbade6 6242test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 6243
979273e3 6244
979273e3 6245
979273e3 6246
252b5132 6247
979273e3 6248
979273e3 6249
252b5132 6250
979273e3 6251
979273e3 6252
979273e3 6253
dabbade6
L
6254if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6256set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6259if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6260 $as_echo_n "(cached) " >&6
dabbade6
L
6261else
6262 if test -n "$STRIP"; then
6263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
81ecdfbb 6270 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6272 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6274 break 2
6275 fi
6276done
81ecdfbb
RW
6277 done
6278IFS=$as_save_IFS
979273e3 6279
dabbade6
L
6280fi
6281fi
6282STRIP=$ac_cv_prog_STRIP
6283if test -n "$STRIP"; then
81ecdfbb
RW
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6285$as_echo "$STRIP" >&6; }
dabbade6 6286else
81ecdfbb
RW
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288$as_echo "no" >&6; }
dabbade6 6289fi
979273e3 6290
81ecdfbb 6291
dabbade6
L
6292fi
6293if test -z "$ac_cv_prog_STRIP"; then
6294 ac_ct_STRIP=$STRIP
6295 # Extract the first word of "strip", so it can be a program name with args.
6296set dummy strip; ac_word=$2
81ecdfbb
RW
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6299if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6300 $as_echo_n "(cached) " >&6
dabbade6
L
6301else
6302 if test -n "$ac_ct_STRIP"; then
6303 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
81ecdfbb 6310 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6312 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6314 break 2
6315 fi
6316done
81ecdfbb
RW
6317 done
6318IFS=$as_save_IFS
979273e3 6319
dabbade6
L
6320fi
6321fi
6322ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6323if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6325$as_echo "$ac_ct_STRIP" >&6; }
dabbade6 6326else
81ecdfbb
RW
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
dabbade6 6329fi
979273e3 6330
81ecdfbb
RW
6331 if test "x$ac_ct_STRIP" = x; then
6332 STRIP=":"
6333 else
6334 case $cross_compiling:$ac_tool_warned in
6335yes:)
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338ac_tool_warned=yes ;;
6339esac
6340 STRIP=$ac_ct_STRIP
6341 fi
dabbade6
L
6342else
6343 STRIP="$ac_cv_prog_STRIP"
6344fi
979273e3 6345
dabbade6 6346test -z "$STRIP" && STRIP=:
979273e3 6347
d7040cdb 6348
979273e3 6349
d7040cdb 6350
979273e3 6351
979273e3 6352
dabbade6
L
6353if test -n "$ac_tool_prefix"; then
6354 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6355set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6357$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6358if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6359 $as_echo_n "(cached) " >&6
979273e3 6360else
dabbade6
L
6361 if test -n "$RANLIB"; then
6362 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
81ecdfbb 6369 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6373 break 2
6374 fi
6375done
81ecdfbb
RW
6376 done
6377IFS=$as_save_IFS
979273e3 6378
979273e3 6379fi
979273e3 6380fi
dabbade6
L
6381RANLIB=$ac_cv_prog_RANLIB
6382if test -n "$RANLIB"; then
81ecdfbb
RW
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6384$as_echo "$RANLIB" >&6; }
dabbade6 6385else
81ecdfbb
RW
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6387$as_echo "no" >&6; }
dabbade6 6388fi
d7040cdb 6389
81ecdfbb 6390
d7040cdb 6391fi
dabbade6
L
6392if test -z "$ac_cv_prog_RANLIB"; then
6393 ac_ct_RANLIB=$RANLIB
6394 # Extract the first word of "ranlib", so it can be a program name with args.
6395set dummy ranlib; ac_word=$2
81ecdfbb
RW
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6397$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6398if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6399 $as_echo_n "(cached) " >&6
979273e3 6400else
dabbade6
L
6401 if test -n "$ac_ct_RANLIB"; then
6402 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6403else
6404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405for as_dir in $PATH
d7040cdb 6406do
dabbade6
L
6407 IFS=$as_save_IFS
6408 test -z "$as_dir" && as_dir=.
81ecdfbb 6409 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
dabbade6 6411 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6413 break 2
979273e3 6414 fi
dabbade6 6415done
81ecdfbb
RW
6416 done
6417IFS=$as_save_IFS
dabbade6 6418
979273e3 6419fi
dabbade6
L
6420fi
6421ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6422if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6424$as_echo "$ac_ct_RANLIB" >&6; }
979273e3 6425else
81ecdfbb
RW
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427$as_echo "no" >&6; }
d7040cdb 6428fi
d7040cdb 6429
81ecdfbb
RW
6430 if test "x$ac_ct_RANLIB" = x; then
6431 RANLIB=":"
6432 else
6433 case $cross_compiling:$ac_tool_warned in
6434yes:)
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437ac_tool_warned=yes ;;
6438esac
6439 RANLIB=$ac_ct_RANLIB
6440 fi
d7040cdb 6441else
dabbade6 6442 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6443fi
979273e3 6444
dabbade6 6445test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6446if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6447 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6448 RANLIB="$RANLIB $plugin_option"
6449 fi
6450fi
979273e3 6451
252b5132 6452
252b5132 6453
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
dabbade6 6457# Determine commands to create old-style static archives.
1927a18f 6458old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6459old_postinstall_cmds='chmod 644 $oldlib'
6460old_postuninstall_cmds=
d7040cdb 6461
dabbade6
L
6462if test -n "$RANLIB"; then
6463 case $host_os in
6464 openbsd*)
6465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6466 ;;
6467 *)
6468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6469 ;;
6470 esac
6471 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6472fi
6473
3725885a
RW
6474case $host_os in
6475 darwin*)
6476 lock_old_archive_extraction=yes ;;
6477 *)
6478 lock_old_archive_extraction=no ;;
6479esac
6480
6481
6482
6483
6484
6485
d7040cdb
SE
6486
6487
d7040cdb 6488
d7040cdb 6489
252b5132 6490
d7040cdb 6491
d7040cdb 6492
d7040cdb
SE
6493
6494
6495
d7040cdb 6496
d7040cdb 6497
d7040cdb 6498
252b5132 6499
d7040cdb
SE
6500
6501
6502
d7040cdb 6503
d7040cdb
SE
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
dabbade6
L
6519# If no C compiler was specified, use CC.
6520LTCC=${LTCC-"$CC"}
d7040cdb 6521
dabbade6
L
6522# If no C compiler flags were specified, use CFLAGS.
6523LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6524
dabbade6
L
6525# Allow CC to be a program name with arguments.
6526compiler=$CC
d7040cdb
SE
6527
6528
dabbade6 6529# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6531$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6532if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6533 $as_echo_n "(cached) " >&6
dabbade6 6534else
d7040cdb 6535
dabbade6
L
6536# These are sane defaults that work on at least a few old systems.
6537# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6538
dabbade6
L
6539# Character class describing NM global symbol codes.
6540symcode='[BCDEGRST]'
d7040cdb 6541
dabbade6
L
6542# Regexp to match symbols that can be accessed directly from C.
6543sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6544
dabbade6
L
6545# Define system-specific variables.
6546case $host_os in
6547aix*)
6548 symcode='[BCDT]'
6549 ;;
1927a18f 6550cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6551 symcode='[ABCDGISTW]'
6552 ;;
6553hpux*)
6554 if test "$host_cpu" = ia64; then
6555 symcode='[ABCDEGRST]'
6556 fi
6557 ;;
6558irix* | nonstopux*)
6559 symcode='[BCDEGRST]'
6560 ;;
6561osf*)
6562 symcode='[BCDEGQRST]'
6563 ;;
6564solaris*)
b9004024 6565 symcode='[BCDRT]'
dabbade6
L
6566 ;;
6567sco3.2v5*)
6568 symcode='[DT]'
6569 ;;
6570sysv4.2uw2*)
6571 symcode='[DT]'
6572 ;;
6573sysv5* | sco5v6* | unixware* | OpenUNIX*)
6574 symcode='[ABDT]'
6575 ;;
6576sysv4)
6577 symcode='[DFNSTU]'
6578 ;;
6579esac
6580
6581# If we're using GNU nm, then use its standard symbol codes.
6582case `$NM -V 2>&1` in
6583*GNU* | *'with BFD'*)
6584 symcode='[ABCDGIRSTW]' ;;
6585esac
d7040cdb 6586
dabbade6
L
6587# Transform an extracted symbol line into a proper C declaration.
6588# Some systems (esp. on ia64) link data and code symbols differently,
6589# so use this general approach.
6590lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6591
dabbade6 6592# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6593lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6594lt_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 6595
7357c5b6
AM
6596# Handle CRLF in mingw tool chain
6597opt_cr=
6598case $build_os in
6599mingw*)
6600 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6601 ;;
6602esac
d7040cdb 6603
7357c5b6
AM
6604# Try without a prefix underscore, then with it.
6605for ac_symprfx in "" "_"; do
d7040cdb 6606
7357c5b6
AM
6607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6608 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6609
7357c5b6
AM
6610 # Write the raw and C identifiers.
6611 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6612 # Fake it for dumpbin and say T for any non-static function
6613 # and D for any global variable.
6614 # Also find C++ and __fastcall symbols from MSVC++,
6615 # which start with @ or ?.
6616 lt_cv_sys_global_symbol_pipe="$AWK '"\
6617" {last_section=section; section=\$ 3};"\
6618" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6619" \$ 0!~/External *\|/{next};"\
6620" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6621" {if(hide[section]) next};"\
6622" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6623" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6624" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6625" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6626" ' prfx=^$ac_symprfx"
6627 else
6628 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6629 fi
d7040cdb 6630
7357c5b6
AM
6631 # Check to see that the pipe works correctly.
6632 pipe_works=no
d7040cdb 6633
7357c5b6
AM
6634 rm -f conftest*
6635 cat > conftest.$ac_ext <<_LT_EOF
6636#ifdef __cplusplus
6637extern "C" {
6638#endif
6639char nm_test_var;
6640void nm_test_func(void);
6641void nm_test_func(void){}
6642#ifdef __cplusplus
dabbade6 6643}
7357c5b6
AM
6644#endif
6645int main(){nm_test_var='a';nm_test_func();return(0);}
6646_LT_EOF
6647
81ecdfbb 6648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6649 (eval $ac_compile) 2>&5
dabbade6 6650 ac_status=$?
81ecdfbb
RW
6651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652 test $ac_status = 0; }; then
7357c5b6
AM
6653 # Now try to grab the symbols.
6654 nlist=conftest.nm
3725885a
RW
6655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6656 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
dabbade6 6657 ac_status=$?
81ecdfbb
RW
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6660 # Try sorting and uniquifying the output.
6661 if sort "$nlist" | uniq > "$nlist"T; then
6662 mv -f "$nlist"T "$nlist"
6663 else
6664 rm -f "$nlist"T
6665 fi
d7040cdb 6666
7357c5b6
AM
6667 # Make sure that we snagged all the symbols we need.
6668 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6669 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6670 cat <<_LT_EOF > conftest.$ac_ext
6671#ifdef __cplusplus
6672extern "C" {
6673#endif
d7040cdb 6674
7357c5b6
AM
6675_LT_EOF
6676 # Now generate the symbol file.
6677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6678
7357c5b6 6679 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6680
7357c5b6
AM
6681/* The mapping between symbol names and symbols. */
6682const struct {
6683 const char *name;
6684 void *address;
6685}
6686lt__PROGRAM__LTX_preloaded_symbols[] =
6687{
6688 { "@PROGRAM@", (void *) 0 },
6689_LT_EOF
6690 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6691 cat <<\_LT_EOF >> conftest.$ac_ext
6692 {0, (void *) 0}
6693};
d7040cdb 6694
7357c5b6
AM
6695/* This works around a problem in FreeBSD linker */
6696#ifdef FREEBSD_WORKAROUND
6697static const void *lt_preloaded_setup() {
6698 return lt__PROGRAM__LTX_preloaded_symbols;
6699}
dabbade6 6700#endif
d7040cdb 6701
7357c5b6 6702#ifdef __cplusplus
dabbade6 6703}
7357c5b6
AM
6704#endif
6705_LT_EOF
6706 # Now try linking the two files.
6707 mv conftest.$ac_objext conftstm.$ac_objext
6708 lt_save_LIBS="$LIBS"
6709 lt_save_CFLAGS="$CFLAGS"
6710 LIBS="conftstm.$ac_objext"
6711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
6713 (eval $ac_link) 2>&5
6714 ac_status=$?
81ecdfbb
RW
6715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6716 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6717 pipe_works=yes
6718 fi
6719 LIBS="$lt_save_LIBS"
6720 CFLAGS="$lt_save_CFLAGS"
6721 else
6722 echo "cannot find nm_test_func in $nlist" >&5
6723 fi
6724 else
6725 echo "cannot find nm_test_var in $nlist" >&5
6726 fi
6727 else
6728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6729 fi
6730 else
6731 echo "$progname: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6733 fi
1927a18f 6734 rm -rf conftest* conftst*
7357c5b6
AM
6735
6736 # Do not use the global_symbol_pipe unless it works.
6737 if test "$pipe_works" = yes; then
6738 break
6739 else
6740 lt_cv_sys_global_symbol_pipe=
6741 fi
6742done
d7040cdb 6743
dabbade6 6744fi
7357c5b6
AM
6745
6746if test -z "$lt_cv_sys_global_symbol_pipe"; then
6747 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6748fi
7357c5b6 6749if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6751$as_echo "failed" >&6; }
7357c5b6 6752else
81ecdfbb
RW
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6754$as_echo "ok" >&6; }
dabbade6 6755fi
d7040cdb 6756
d7040cdb 6757
d7040cdb 6758
d7040cdb 6759
d7040cdb 6760
d7040cdb 6761
d7040cdb 6762
d7040cdb 6763
d7040cdb 6764
d7040cdb 6765
d7040cdb 6766
d7040cdb 6767
7357c5b6
AM
6768
6769
6770
1927a18f
L
6771
6772
6773
6774
6775
7357c5b6
AM
6776
6777
81ecdfbb
RW
6778# Check whether --enable-libtool-lock was given.
6779if test "${enable_libtool_lock+set}" = set; then :
6780 enableval=$enable_libtool_lock;
6781fi
7357c5b6 6782
7357c5b6
AM
6783test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6784
6785# Some flags need to be propagated to the compiler or linker for good
6786# libtool support.
6787case $host in
6788ia64-*-hpux*)
6789 # Find out which ABI we are using.
6790 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6792 (eval $ac_compile) 2>&5
6793 ac_status=$?
81ecdfbb
RW
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; }; then
7357c5b6
AM
6796 case `/usr/bin/file conftest.$ac_objext` in
6797 *ELF-32*)
6798 HPUX_IA64_MODE="32"
6799 ;;
6800 *ELF-64*)
6801 HPUX_IA64_MODE="64"
6802 ;;
6803 esac
6804 fi
6805 rm -rf conftest*
6806 ;;
6807*-*-irix6*)
6808 # Find out which ABI we are using.
3725885a 6809 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6811 (eval $ac_compile) 2>&5
6812 ac_status=$?
81ecdfbb
RW
6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6814 test $ac_status = 0; }; then
7357c5b6
AM
6815 if test "$lt_cv_prog_gnu_ld" = yes; then
6816 case `/usr/bin/file conftest.$ac_objext` in
6817 *32-bit*)
6818 LD="${LD-ld} -melf32bsmip"
6819 ;;
6820 *N32*)
6821 LD="${LD-ld} -melf32bmipn32"
6822 ;;
6823 *64-bit*)
6824 LD="${LD-ld} -melf64bmip"
6825 ;;
6826 esac
6827 else
6828 case `/usr/bin/file conftest.$ac_objext` in
6829 *32-bit*)
6830 LD="${LD-ld} -32"
6831 ;;
6832 *N32*)
6833 LD="${LD-ld} -n32"
6834 ;;
6835 *64-bit*)
6836 LD="${LD-ld} -64"
6837 ;;
6838 esac
6839 fi
6840 fi
6841 rm -rf conftest*
6842 ;;
6843
cc9afea3 6844x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6845s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6846 # Find out which ABI we are using.
6847 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
81ecdfbb
RW
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
7357c5b6
AM
6853 case `/usr/bin/file conftest.o` in
6854 *32-bit*)
6855 case $host in
6856 x86_64-*kfreebsd*-gnu)
6857 LD="${LD-ld} -m elf_i386_fbsd"
6858 ;;
6859 x86_64-*linux*)
6d2920c8
L
6860 case `/usr/bin/file conftest.o` in
6861 *x86-64*)
6862 LD="${LD-ld} -m elf32_x86_64"
6863 ;;
6864 *)
6865 LD="${LD-ld} -m elf_i386"
6866 ;;
6867 esac
7357c5b6 6868 ;;
cc9afea3
AM
6869 powerpc64le-*linux*)
6870 LD="${LD-ld} -m elf32lppclinux"
6871 ;;
6872 powerpc64-*linux*)
7357c5b6
AM
6873 LD="${LD-ld} -m elf32ppclinux"
6874 ;;
6875 s390x-*linux*)
6876 LD="${LD-ld} -m elf_s390"
6877 ;;
6878 sparc64-*linux*)
6879 LD="${LD-ld} -m elf32_sparc"
6880 ;;
6881 esac
6882 ;;
6883 *64-bit*)
6884 case $host in
6885 x86_64-*kfreebsd*-gnu)
6886 LD="${LD-ld} -m elf_x86_64_fbsd"
6887 ;;
6888 x86_64-*linux*)
6889 LD="${LD-ld} -m elf_x86_64"
6890 ;;
cc9afea3
AM
6891 powerpcle-*linux*)
6892 LD="${LD-ld} -m elf64lppc"
6893 ;;
6894 powerpc-*linux*)
7357c5b6
AM
6895 LD="${LD-ld} -m elf64ppc"
6896 ;;
6897 s390*-*linux*|s390*-*tpf*)
6898 LD="${LD-ld} -m elf64_s390"
6899 ;;
6900 sparc*-*linux*)
6901 LD="${LD-ld} -m elf64_sparc"
6902 ;;
6903 esac
6904 ;;
6905 esac
6906 fi
6907 rm -rf conftest*
6908 ;;
6909
6910*-*-sco3.2v5*)
6911 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6912 SAVE_CFLAGS="$CFLAGS"
6913 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6915$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 6916if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 6917 $as_echo_n "(cached) " >&6
dabbade6 6918else
7357c5b6
AM
6919 ac_ext=c
6920ac_cpp='$CPP $CPPFLAGS'
6921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923ac_compiler_gnu=$ac_cv_c_compiler_gnu
6924
81ecdfbb 6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 6926/* end confdefs.h. */
d7040cdb 6927
7357c5b6
AM
6928int
6929main ()
6930{
6931
6932 ;
6933 return 0;
6934}
dabbade6 6935_ACEOF
81ecdfbb 6936if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6937 lt_cv_cc_needs_belf=yes
dabbade6 6938else
81ecdfbb 6939 lt_cv_cc_needs_belf=no
dabbade6 6940fi
81ecdfbb
RW
6941rm -f core conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6943 ac_ext=c
6944ac_cpp='$CPP $CPPFLAGS'
6945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6948
dabbade6 6949fi
81ecdfbb
RW
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6951$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6952 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6953 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6954 CFLAGS="$SAVE_CFLAGS"
6955 fi
6956 ;;
6957sparc*-*solaris*)
6958 # Find out which ABI we are using.
6959 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6961 (eval $ac_compile) 2>&5
6962 ac_status=$?
81ecdfbb
RW
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
7357c5b6
AM
6965 case `/usr/bin/file conftest.o` in
6966 *64-bit*)
6967 case $lt_cv_prog_gnu_ld in
6968 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
6969 *)
6970 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6971 LD="${LD-ld} -64"
6972 fi
6973 ;;
7357c5b6
AM
6974 esac
6975 ;;
6976 esac
6977 fi
6978 rm -rf conftest*
6979 ;;
6980esac
d7040cdb 6981
7357c5b6 6982need_locks="$enable_libtool_lock"
d7040cdb 6983
d7040cdb 6984
1927a18f
L
6985 case $host_os in
6986 rhapsody* | darwin*)
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6992if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 6993 $as_echo_n "(cached) " >&6
1927a18f
L
6994else
6995 if test -n "$DSYMUTIL"; then
6996 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
81ecdfbb 7003 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7005 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7007 break 2
7008 fi
7009done
81ecdfbb
RW
7010 done
7011IFS=$as_save_IFS
1927a18f
L
7012
7013fi
7014fi
7015DSYMUTIL=$ac_cv_prog_DSYMUTIL
7016if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7018$as_echo "$DSYMUTIL" >&6; }
1927a18f 7019else
81ecdfbb
RW
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
1927a18f
L
7022fi
7023
81ecdfbb 7024
1927a18f
L
7025fi
7026if test -z "$ac_cv_prog_DSYMUTIL"; then
7027 ac_ct_DSYMUTIL=$DSYMUTIL
7028 # Extract the first word of "dsymutil", so it can be a program name with args.
7029set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7032if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7033 $as_echo_n "(cached) " >&6
1927a18f
L
7034else
7035 if test -n "$ac_ct_DSYMUTIL"; then
7036 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
81ecdfbb 7043 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7045 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7047 break 2
7048 fi
7049done
81ecdfbb
RW
7050 done
7051IFS=$as_save_IFS
1927a18f 7052
1927a18f
L
7053fi
7054fi
7055ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7056if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7058$as_echo "$ac_ct_DSYMUTIL" >&6; }
1927a18f 7059else
81ecdfbb
RW
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
1927a18f
L
7062fi
7063
81ecdfbb
RW
7064 if test "x$ac_ct_DSYMUTIL" = x; then
7065 DSYMUTIL=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073 DSYMUTIL=$ac_ct_DSYMUTIL
7074 fi
1927a18f
L
7075else
7076 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7077fi
7078
7079 if test -n "$ac_tool_prefix"; then
7080 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7081set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7084if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7085 $as_echo_n "(cached) " >&6
1927a18f
L
7086else
7087 if test -n "$NMEDIT"; then
7088 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7089else
7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
81ecdfbb 7095 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7097 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7099 break 2
7100 fi
7101done
81ecdfbb
RW
7102 done
7103IFS=$as_save_IFS
1927a18f
L
7104
7105fi
7106fi
7107NMEDIT=$ac_cv_prog_NMEDIT
7108if test -n "$NMEDIT"; then
81ecdfbb
RW
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7110$as_echo "$NMEDIT" >&6; }
1927a18f 7111else
81ecdfbb
RW
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113$as_echo "no" >&6; }
1927a18f
L
7114fi
7115
81ecdfbb 7116
1927a18f
L
7117fi
7118if test -z "$ac_cv_prog_NMEDIT"; then
7119 ac_ct_NMEDIT=$NMEDIT
7120 # Extract the first word of "nmedit", so it can be a program name with args.
7121set dummy nmedit; ac_word=$2
81ecdfbb
RW
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7124if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7125 $as_echo_n "(cached) " >&6
1927a18f
L
7126else
7127 if test -n "$ac_ct_NMEDIT"; then
7128 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7129else
7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131for as_dir in $PATH
7132do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
81ecdfbb 7135 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7137 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7139 break 2
7140 fi
7141done
81ecdfbb
RW
7142 done
7143IFS=$as_save_IFS
1927a18f 7144
1927a18f
L
7145fi
7146fi
7147ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7148if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7150$as_echo "$ac_ct_NMEDIT" >&6; }
1927a18f 7151else
81ecdfbb
RW
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
1927a18f
L
7154fi
7155
81ecdfbb
RW
7156 if test "x$ac_ct_NMEDIT" = x; then
7157 NMEDIT=":"
7158 else
7159 case $cross_compiling:$ac_tool_warned in
7160yes:)
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7163ac_tool_warned=yes ;;
7164esac
7165 NMEDIT=$ac_ct_NMEDIT
7166 fi
1927a18f
L
7167else
7168 NMEDIT="$ac_cv_prog_NMEDIT"
7169fi
7170
7171 if test -n "$ac_tool_prefix"; then
7172 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7173set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7175$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7176if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7177 $as_echo_n "(cached) " >&6
1927a18f
L
7178else
7179 if test -n "$LIPO"; then
7180 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7181else
7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183for as_dir in $PATH
7184do
7185 IFS=$as_save_IFS
7186 test -z "$as_dir" && as_dir=.
81ecdfbb 7187 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7189 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7191 break 2
7192 fi
7193done
81ecdfbb
RW
7194 done
7195IFS=$as_save_IFS
1927a18f
L
7196
7197fi
7198fi
7199LIPO=$ac_cv_prog_LIPO
7200if test -n "$LIPO"; then
81ecdfbb
RW
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7202$as_echo "$LIPO" >&6; }
1927a18f 7203else
81ecdfbb
RW
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205$as_echo "no" >&6; }
1927a18f
L
7206fi
7207
81ecdfbb 7208
1927a18f
L
7209fi
7210if test -z "$ac_cv_prog_LIPO"; then
7211 ac_ct_LIPO=$LIPO
7212 # Extract the first word of "lipo", so it can be a program name with args.
7213set dummy lipo; ac_word=$2
81ecdfbb
RW
7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7216if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7217 $as_echo_n "(cached) " >&6
1927a18f
L
7218else
7219 if test -n "$ac_ct_LIPO"; then
7220 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7221else
7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
81ecdfbb 7227 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7229 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7231 break 2
7232 fi
7233done
81ecdfbb
RW
7234 done
7235IFS=$as_save_IFS
1927a18f 7236
1927a18f
L
7237fi
7238fi
7239ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7240if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7242$as_echo "$ac_ct_LIPO" >&6; }
1927a18f 7243else
81ecdfbb
RW
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245$as_echo "no" >&6; }
1927a18f
L
7246fi
7247
81ecdfbb
RW
7248 if test "x$ac_ct_LIPO" = x; then
7249 LIPO=":"
7250 else
7251 case $cross_compiling:$ac_tool_warned in
7252yes:)
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7255ac_tool_warned=yes ;;
7256esac
7257 LIPO=$ac_ct_LIPO
7258 fi
1927a18f
L
7259else
7260 LIPO="$ac_cv_prog_LIPO"
7261fi
7262
7263 if test -n "$ac_tool_prefix"; then
7264 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7265set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7268if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7269 $as_echo_n "(cached) " >&6
1927a18f
L
7270else
7271 if test -n "$OTOOL"; then
7272 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7273else
7274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
81ecdfbb 7279 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7281 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7283 break 2
7284 fi
7285done
81ecdfbb
RW
7286 done
7287IFS=$as_save_IFS
1927a18f
L
7288
7289fi
7290fi
7291OTOOL=$ac_cv_prog_OTOOL
7292if test -n "$OTOOL"; then
81ecdfbb
RW
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7294$as_echo "$OTOOL" >&6; }
1927a18f 7295else
81ecdfbb
RW
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297$as_echo "no" >&6; }
1927a18f
L
7298fi
7299
81ecdfbb 7300
1927a18f
L
7301fi
7302if test -z "$ac_cv_prog_OTOOL"; then
7303 ac_ct_OTOOL=$OTOOL
7304 # Extract the first word of "otool", so it can be a program name with args.
7305set dummy otool; ac_word=$2
81ecdfbb
RW
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7308if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7309 $as_echo_n "(cached) " >&6
1927a18f
L
7310else
7311 if test -n "$ac_ct_OTOOL"; then
7312 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
81ecdfbb 7319 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7321 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7323 break 2
7324 fi
7325done
81ecdfbb
RW
7326 done
7327IFS=$as_save_IFS
1927a18f 7328
1927a18f
L
7329fi
7330fi
7331ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7332if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7334$as_echo "$ac_ct_OTOOL" >&6; }
1927a18f 7335else
81ecdfbb
RW
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337$as_echo "no" >&6; }
1927a18f
L
7338fi
7339
81ecdfbb
RW
7340 if test "x$ac_ct_OTOOL" = x; then
7341 OTOOL=":"
7342 else
7343 case $cross_compiling:$ac_tool_warned in
7344yes:)
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7347ac_tool_warned=yes ;;
7348esac
7349 OTOOL=$ac_ct_OTOOL
7350 fi
1927a18f
L
7351else
7352 OTOOL="$ac_cv_prog_OTOOL"
7353fi
7354
7355 if test -n "$ac_tool_prefix"; then
7356 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7357set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7360if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7361 $as_echo_n "(cached) " >&6
1927a18f
L
7362else
7363 if test -n "$OTOOL64"; then
7364 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7365else
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369 IFS=$as_save_IFS
7370 test -z "$as_dir" && as_dir=.
81ecdfbb 7371 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7373 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7375 break 2
7376 fi
7377done
81ecdfbb
RW
7378 done
7379IFS=$as_save_IFS
1927a18f
L
7380
7381fi
7382fi
7383OTOOL64=$ac_cv_prog_OTOOL64
7384if test -n "$OTOOL64"; then
81ecdfbb
RW
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7386$as_echo "$OTOOL64" >&6; }
1927a18f 7387else
81ecdfbb
RW
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
1927a18f
L
7390fi
7391
81ecdfbb 7392
1927a18f
L
7393fi
7394if test -z "$ac_cv_prog_OTOOL64"; then
7395 ac_ct_OTOOL64=$OTOOL64
7396 # Extract the first word of "otool64", so it can be a program name with args.
7397set dummy otool64; ac_word=$2
81ecdfbb
RW
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7400if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7401 $as_echo_n "(cached) " >&6
1927a18f
L
7402else
7403 if test -n "$ac_ct_OTOOL64"; then
7404 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7405else
7406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407for as_dir in $PATH
7408do
7409 IFS=$as_save_IFS
7410 test -z "$as_dir" && as_dir=.
81ecdfbb 7411 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927a18f 7413 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7415 break 2
7416 fi
7417done
81ecdfbb
RW
7418 done
7419IFS=$as_save_IFS
1927a18f 7420
1927a18f
L
7421fi
7422fi
7423ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7424if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7426$as_echo "$ac_ct_OTOOL64" >&6; }
1927a18f 7427else
81ecdfbb
RW
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429$as_echo "no" >&6; }
1927a18f
L
7430fi
7431
81ecdfbb
RW
7432 if test "x$ac_ct_OTOOL64" = x; then
7433 OTOOL64=":"
7434 else
7435 case $cross_compiling:$ac_tool_warned in
7436yes:)
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439ac_tool_warned=yes ;;
7440esac
7441 OTOOL64=$ac_ct_OTOOL64
7442 fi
1927a18f
L
7443else
7444 OTOOL64="$ac_cv_prog_OTOOL64"
7445fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
81ecdfbb
RW
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7474$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7475if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7476 $as_echo_n "(cached) " >&6
1927a18f
L
7477else
7478 lt_cv_apple_cc_single_mod=no
7479 if test -z "${LT_MULTI_MODULE}"; then
7480 # By default we will add the -single_module flag. You can override
7481 # by either setting the environment variable LT_MULTI_MODULE
7482 # non-empty at configure time, or by adding -multi_module to the
7483 # link flags.
7484 rm -rf libconftest.dylib*
7485 echo "int foo(void){return 1;}" > conftest.c
7486 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7487-dynamiclib -Wl,-single_module conftest.c" >&5
7488 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7489 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7490 _lt_result=$?
7491 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7492 lt_cv_apple_cc_single_mod=yes
7493 else
7494 cat conftest.err >&5
7495 fi
7496 rm -rf libconftest.dylib*
7497 rm -f conftest.*
7498 fi
7499fi
81ecdfbb
RW
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7501$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7503$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7504if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7505 $as_echo_n "(cached) " >&6
1927a18f
L
7506else
7507 lt_cv_ld_exported_symbols_list=no
7508 save_LDFLAGS=$LDFLAGS
7509 echo "_main" > conftest.sym
7510 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927a18f
L
7512/* end confdefs.h. */
7513
7514int
7515main ()
7516{
7517
7518 ;
7519 return 0;
7520}
7521_ACEOF
81ecdfbb 7522if ac_fn_c_try_link "$LINENO"; then :
1927a18f
L
7523 lt_cv_ld_exported_symbols_list=yes
7524else
81ecdfbb 7525 lt_cv_ld_exported_symbols_list=no
1927a18f 7526fi
81ecdfbb
RW
7527rm -f core conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
1927a18f
L
7529 LDFLAGS="$save_LDFLAGS"
7530
7531fi
81ecdfbb
RW
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7533$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7535$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7536if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7537 $as_echo_n "(cached) " >&6
7538else
7539 lt_cv_ld_force_load=no
7540 cat > conftest.c << _LT_EOF
7541int forced_loaded() { return 2;}
7542_LT_EOF
7543 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7544 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7545 echo "$AR cru libconftest.a conftest.o" >&5
7546 $AR cru libconftest.a conftest.o 2>&5
7547 cat > conftest.c << _LT_EOF
7548int main() { return 0;}
7549_LT_EOF
7550 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7551 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7552 _lt_result=$?
7553 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7554 lt_cv_ld_force_load=yes
7555 else
7556 cat conftest.err >&5
7557 fi
7558 rm -f conftest.err libconftest.a conftest conftest.c
7559 rm -rf conftest.dSYM
7560
7561fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7563$as_echo "$lt_cv_ld_force_load" >&6; }
1927a18f
L
7564 case $host_os in
7565 rhapsody* | darwin1.[012])
7566 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7567 darwin1.*)
7568 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7569 darwin*) # darwin 5.x on
7570 # if running on 10.5 or later, the deployment target defaults
7571 # to the OS version, if on x86, and 10.4, the deployment
7572 # target defaults to 10.4. Don't you love it?
7573 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7574 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7575 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7576 10.[012][,.]*)
1927a18f
L
7577 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7578 10.*)
7579 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7580 esac
7581 ;;
7582 esac
7583 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7584 _lt_dar_single_mod='$single_module'
7585 fi
7586 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7587 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7588 else
7589 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7590 fi
3725885a 7591 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1927a18f
L
7592 _lt_dsymutil='~$DSYMUTIL $lib || :'
7593 else
7594 _lt_dsymutil=
7595 fi
7596 ;;
7597 esac
7598
dabbade6 7599for ac_header in dlfcn.h
81ecdfbb
RW
7600do :
7601 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7602"
d0ac1c44 7603if test "x$ac_cv_header_dlfcn_h" = xyes; then :
dabbade6 7604 cat >>confdefs.h <<_ACEOF
81ecdfbb 7605#define HAVE_DLFCN_H 1
dabbade6 7606_ACEOF
d7040cdb 7607
dabbade6 7608fi
d7040cdb 7609
dabbade6 7610done
d7040cdb 7611
d7040cdb 7612
d7040cdb 7613
3725885a
RW
7614
7615
1927a18f
L
7616# Set options
7617
7618
7619
7620 enable_dlopen=no
7621
7622
7623 enable_win32_dll=no
7624
7625
7626
81ecdfbb
RW
7627 # Check whether --enable-static was given.
7628if test "${enable_static+set}" = set; then :
7629 enableval=$enable_static; p=${PACKAGE-default}
1927a18f
L
7630 case $enableval in
7631 yes) enable_static=yes ;;
7632 no) enable_static=no ;;
7633 *)
7634 enable_static=no
7635 # Look at the argument we got. We use all the common list separators.
7636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7637 for pkg in $enableval; do
7638 IFS="$lt_save_ifs"
7639 if test "X$pkg" = "X$p"; then
7640 enable_static=yes
7641 fi
7642 done
7643 IFS="$lt_save_ifs"
7644 ;;
7645 esac
7646else
7647 enable_static=yes
81ecdfbb 7648fi
1927a18f
L
7649
7650
7651
7652
7653
7654
7655
7656
7657
81ecdfbb
RW
7658
7659# Check whether --with-pic was given.
7660if test "${with_pic+set}" = set; then :
7661 withval=$with_pic; pic_mode="$withval"
1927a18f
L
7662else
7663 pic_mode=default
81ecdfbb
RW
7664fi
7665
1927a18f
L
7666
7667test -z "$pic_mode" && pic_mode=default
7668
7669
7670
7671
7672
7673
7674
81ecdfbb
RW
7675 # Check whether --enable-fast-install was given.
7676if test "${enable_fast_install+set}" = set; then :
7677 enableval=$enable_fast_install; p=${PACKAGE-default}
1927a18f
L
7678 case $enableval in
7679 yes) enable_fast_install=yes ;;
7680 no) enable_fast_install=no ;;
7681 *)
7682 enable_fast_install=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_fast_install=yes
7689 fi
7690 done
7691 IFS="$lt_save_ifs"
7692 ;;
7693 esac
7694else
7695 enable_fast_install=yes
81ecdfbb
RW
7696fi
7697
1927a18f
L
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
dabbade6
L
7708# This can be used to rebuild libtool when needed
7709LIBTOOL_DEPS="$ltmain"
d7040cdb 7710
dabbade6
L
7711# Always use our own libtool.
7712LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7713
d7040cdb 7714
d7040cdb 7715
d7040cdb
SE
7716
7717
7718
7719
7720
7721
d7040cdb 7722
d7040cdb 7723
d7040cdb 7724
d7040cdb
SE
7725
7726
7727
7728
7729
7730
d7040cdb 7731
d7040cdb 7732
d7040cdb
SE
7733
7734
7735
3725885a 7736
d7040cdb
SE
7737
7738
dabbade6 7739test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7740
7741
d7040cdb 7742
d7040cdb 7743
d7040cdb
SE
7744
7745
7746
7747
7748
7749
dabbade6
L
7750
7751
7752
7753
7754if test -n "${ZSH_VERSION+set}" ; then
7755 setopt NO_GLOB_SUBST
7756fi
7757
81ecdfbb
RW
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7759$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7760if ${lt_cv_objdir+:} false; then :
81ecdfbb 7761 $as_echo_n "(cached) " >&6
d7040cdb 7762else
dabbade6
L
7763 rm -f .libs 2>/dev/null
7764mkdir .libs 2>/dev/null
7765if test -d .libs; then
7766 lt_cv_objdir=.libs
7767else
7768 # MS-DOS does not allow filenames that begin with a dot.
7769 lt_cv_objdir=_libs
d7040cdb 7770fi
dabbade6
L
7771rmdir .libs 2>/dev/null
7772fi
81ecdfbb
RW
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7774$as_echo "$lt_cv_objdir" >&6; }
dabbade6 7775objdir=$lt_cv_objdir
d7040cdb
SE
7776
7777
7778
7779
d7040cdb 7780
dabbade6
L
7781cat >>confdefs.h <<_ACEOF
7782#define LT_OBJDIR "$lt_cv_objdir/"
7783_ACEOF
d7040cdb
SE
7784
7785
7786
7787
dabbade6
L
7788case $host_os in
7789aix3*)
7790 # AIX sometimes has problems with the GCC collect2 program. For some
7791 # reason, if we set the COLLECT_NAMES environment variable, the problems
7792 # vanish in a puff of smoke.
7793 if test "X${COLLECT_NAMES+set}" != Xset; then
7794 COLLECT_NAMES=
7795 export COLLECT_NAMES
7796 fi
7797 ;;
7798esac
d7040cdb 7799
dabbade6
L
7800# Global variables:
7801ofile=libtool
7802can_build_shared=yes
d7040cdb 7803
dabbade6
L
7804# All known linkers require a `.a' archive for static linking (except MSVC,
7805# which needs '.lib').
7806libext=a
d7040cdb 7807
dabbade6 7808with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7809
dabbade6
L
7810old_CC="$CC"
7811old_CFLAGS="$CFLAGS"
d7040cdb 7812
dabbade6
L
7813# Set sane defaults for various variables
7814test -z "$CC" && CC=cc
7815test -z "$LTCC" && LTCC=$CC
7816test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7817test -z "$LD" && LD=ld
7818test -z "$ac_objext" && ac_objext=o
7819
7820for cc_temp in $compiler""; do
7821 case $cc_temp in
7822 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7823 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7824 \-*) ;;
7825 *) break;;
7826 esac
7827done
3725885a 7828cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
dabbade6
L
7829
7830
7831# Only perform the check for file, if the check method requires it
7832test -z "$MAGIC_CMD" && MAGIC_CMD=file
7833case $deplibs_check_method in
7834file_magic*)
7835 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7837$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7838if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7839 $as_echo_n "(cached) " >&6
dabbade6
L
7840else
7841 case $MAGIC_CMD in
7842[\\/*] | ?:[\\/]*)
7843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7844 ;;
7845*)
7846 lt_save_MAGIC_CMD="$MAGIC_CMD"
7847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7849 for ac_dir in $ac_dummy; do
7850 IFS="$lt_save_ifs"
7851 test -z "$ac_dir" && ac_dir=.
7852 if test -f $ac_dir/${ac_tool_prefix}file; then
7853 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7854 if test -n "$file_magic_test_file"; then
7855 case $deplibs_check_method in
7856 "file_magic "*)
7857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7860 $EGREP "$file_magic_regex" > /dev/null; then
7861 :
d7040cdb 7862 else
dabbade6 7863 cat <<_LT_EOF 1>&2
d7040cdb 7864
dabbade6
L
7865*** Warning: the command libtool uses to detect shared libraries,
7866*** $file_magic_cmd, produces output that libtool cannot recognize.
7867*** The result is that libtool may fail to recognize shared libraries
7868*** as such. This will affect the creation of libtool libraries that
7869*** depend on shared libraries, but programs linked with such libtool
7870*** libraries will work regardless of this problem. Nevertheless, you
7871*** may want to report the problem to your system manager and/or to
7872*** bug-libtool@gnu.org
d7040cdb 7873
dabbade6
L
7874_LT_EOF
7875 fi ;;
7876 esac
d7040cdb 7877 fi
dabbade6 7878 break
d7040cdb 7879 fi
dabbade6
L
7880 done
7881 IFS="$lt_save_ifs"
7882 MAGIC_CMD="$lt_save_MAGIC_CMD"
7883 ;;
7884esac
7885fi
d7040cdb 7886
dabbade6
L
7887MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7888if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7890$as_echo "$MAGIC_CMD" >&6; }
dabbade6 7891else
81ecdfbb
RW
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893$as_echo "no" >&6; }
dabbade6 7894fi
d7040cdb 7895
d7040cdb 7896
d7040cdb 7897
d7040cdb 7898
d7040cdb 7899
dabbade6
L
7900if test -z "$lt_cv_path_MAGIC_CMD"; then
7901 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7903$as_echo_n "checking for file... " >&6; }
d0ac1c44 7904if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 7905 $as_echo_n "(cached) " >&6
dabbade6
L
7906else
7907 case $MAGIC_CMD in
7908[\\/*] | ?:[\\/]*)
7909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7910 ;;
7911*)
7912 lt_save_MAGIC_CMD="$MAGIC_CMD"
7913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7915 for ac_dir in $ac_dummy; do
7916 IFS="$lt_save_ifs"
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f $ac_dir/file; then
7919 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7920 if test -n "$file_magic_test_file"; then
7921 case $deplibs_check_method in
7922 "file_magic "*)
7923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7926 $EGREP "$file_magic_regex" > /dev/null; then
7927 :
d7040cdb 7928 else
dabbade6 7929 cat <<_LT_EOF 1>&2
d7040cdb 7930
dabbade6
L
7931*** Warning: the command libtool uses to detect shared libraries,
7932*** $file_magic_cmd, produces output that libtool cannot recognize.
7933*** The result is that libtool may fail to recognize shared libraries
7934*** as such. This will affect the creation of libtool libraries that
7935*** depend on shared libraries, but programs linked with such libtool
7936*** libraries will work regardless of this problem. Nevertheless, you
7937*** may want to report the problem to your system manager and/or to
7938*** bug-libtool@gnu.org
d7040cdb 7939
dabbade6
L
7940_LT_EOF
7941 fi ;;
7942 esac
7943 fi
7944 break
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 MAGIC_CMD="$lt_save_MAGIC_CMD"
7949 ;;
7950esac
d7040cdb 7951fi
dabbade6
L
7952
7953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7956$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 7957else
81ecdfbb
RW
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
dabbade6
L
7960fi
7961
d7040cdb 7962
dabbade6
L
7963 else
7964 MAGIC_CMD=:
7965 fi
d7040cdb 7966fi
d7040cdb 7967
dabbade6
L
7968 fi
7969 ;;
7970esac
d7040cdb 7971
dabbade6 7972# Use C for the default configuration in the libtool script
d7040cdb 7973
dabbade6
L
7974lt_save_CC="$CC"
7975ac_ext=c
7976ac_cpp='$CPP $CPPFLAGS'
7977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7979ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7980
d7040cdb 7981
dabbade6
L
7982# Source file extension for C test sources.
7983ac_ext=c
d7040cdb 7984
dabbade6
L
7985# Object file extension for compiled C test sources.
7986objext=o
7987objext=$objext
7988
7989# Code to be used in simple compile tests
7990lt_simple_compile_test_code="int some_variable = 0;"
7991
7992# Code to be used in simple link tests
7993lt_simple_link_test_code='int main(){return(0);}'
7994
7995
7996
7997
7998
7999
8000
8001# If no C compiler was specified, use CC.
8002LTCC=${LTCC-"$CC"}
8003
8004# If no C compiler flags were specified, use CFLAGS.
8005LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8006
8007# Allow CC to be a program name with arguments.
8008compiler=$CC
8009
8010# Save the default compiler, since it gets overwritten when the other
8011# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8012compiler_DEFAULT=$CC
8013
8014# save warnings/boilerplate of simple test code
8015ac_outfile=conftest.$ac_objext
8016echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8017eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8018_lt_compiler_boilerplate=`cat conftest.err`
8019$RM conftest*
8020
8021ac_outfile=conftest.$ac_objext
8022echo "$lt_simple_link_test_code" >conftest.$ac_ext
8023eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8024_lt_linker_boilerplate=`cat conftest.err`
1927a18f 8025$RM -r conftest*
dabbade6
L
8026
8027
8028## CAVEAT EMPTOR:
8029## There is no encapsulation within the following macros, do not change
8030## the running order or otherwise move them around unless you know exactly
8031## what you are doing...
8032if test -n "$compiler"; then
8033
8034lt_prog_compiler_no_builtin_flag=
8035
8036if test "$GCC" = yes; then
3725885a
RW
8037 case $cc_basename in
8038 nvcc*)
8039 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8040 *)
8041 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8042 esac
dabbade6 8043
81ecdfbb
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8045$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8046if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8047 $as_echo_n "(cached) " >&6
dabbade6
L
8048else
8049 lt_cv_prog_compiler_rtti_exceptions=no
8050 ac_outfile=conftest.$ac_objext
8051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8052 lt_compiler_flag="-fno-rtti -fno-exceptions"
8053 # Insert the option either (1) after the last *FLAGS variable, or
8054 # (2) before a word containing "conftest.", or (3) at the end.
8055 # Note that $ac_compile itself does not contain backslashes and begins
8056 # with a dollar sign (not a hyphen), so the echo should work correctly.
8057 # The option is referenced via a variable to avoid confusing sed.
8058 lt_compile=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
3725885a 8062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8063 (eval "$lt_compile" 2>conftest.err)
8064 ac_status=$?
8065 cat conftest.err >&5
3725885a 8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8067 if (exit $ac_status) && test -s "$ac_outfile"; then
8068 # The compiler can only warn and ignore the option if not recognized
8069 # So say no if there are warnings other than the usual output.
3725885a 8070 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8073 lt_cv_prog_compiler_rtti_exceptions=yes
8074 fi
8075 fi
8076 $RM conftest*
8077
8078fi
81ecdfbb
RW
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8080$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
dabbade6
L
8081
8082if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8083 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8084else
8085 :
8086fi
8087
8088fi
8089
8090
8091
8092
8093
8094
8095 lt_prog_compiler_wl=
8096lt_prog_compiler_pic=
8097lt_prog_compiler_static=
8098
81ecdfbb
RW
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8100$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
dabbade6
L
8101
8102 if test "$GCC" = yes; then
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_static='-static'
8105
8106 case $host_os in
8107 aix*)
8108 # All AIX code is PIC.
8109 if test "$host_cpu" = ia64; then
8110 # AIX 5 now supports IA64 processor
8111 lt_prog_compiler_static='-Bstatic'
8112 fi
b132a67d 8113 lt_prog_compiler_pic='-fPIC'
dabbade6 8114 ;;
d7040cdb
SE
8115
8116 amigaos*)
1927a18f
L
8117 case $host_cpu in
8118 powerpc)
8119 # see comment about AmigaOS4 .so support
8120 lt_prog_compiler_pic='-fPIC'
8121 ;;
8122 m68k)
8123 # FIXME: we need at least 68020 code to build shared libraries, but
8124 # adding the `-m68020' flag to GCC prevents building anything better,
8125 # like `-m68040'.
8126 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8127 ;;
8128 esac
d7040cdb
SE
8129 ;;
8130
dabbade6
L
8131 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8132 # PIC is the default for these OSes.
d7040cdb
SE
8133 ;;
8134
1927a18f 8135 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8136 # This hack is so that the source file can tell whether it is being
8137 # built for inclusion in a dll (and should export symbols for example).
8138 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8139 # (--disable-auto-import) libraries
8140 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8141 ;;
8142
8143 darwin* | rhapsody*)
dabbade6
L
8144 # PIC is the default on this platform
8145 # Common symbols not allowed in MH_DYLIB files
8146 lt_prog_compiler_pic='-fno-common'
8147 ;;
8148
3725885a
RW
8149 haiku*)
8150 # PIC is the default for Haiku.
8151 # The "-static" flag exists, but is broken.
8152 lt_prog_compiler_static=
8153 ;;
8154
dabbade6 8155 hpux*)
1927a18f
L
8156 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8157 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8158 # sets the default TLS model and affects inlining.
dabbade6 8159 case $host_cpu in
1927a18f 8160 hppa*64*)
dabbade6 8161 # +Z the default
d7040cdb 8162 ;;
dabbade6
L
8163 *)
8164 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8165 ;;
8166 esac
dabbade6 8167 ;;
d7040cdb 8168
dabbade6
L
8169 interix[3-9]*)
8170 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8171 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8172 ;;
8173
dabbade6
L
8174 msdosdjgpp*)
8175 # Just because we use GCC doesn't mean we suddenly get shared libraries
8176 # on systems that don't support them.
8177 lt_prog_compiler_can_build_shared=no
8178 enable_shared=no
d7040cdb
SE
8179 ;;
8180
dabbade6
L
8181 *nto* | *qnx*)
8182 # QNX uses GNU C++, but need to define -shared option too, otherwise
8183 # it will coredump.
8184 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8185 ;;
8186
dabbade6
L
8187 sysv4*MP*)
8188 if test -d /usr/nec; then
8189 lt_prog_compiler_pic=-Kconform_pic
8190 fi
d7040cdb
SE
8191 ;;
8192
dabbade6
L
8193 *)
8194 lt_prog_compiler_pic='-fPIC'
d7040cdb 8195 ;;
dabbade6 8196 esac
3725885a
RW
8197
8198 case $cc_basename in
8199 nvcc*) # Cuda Compiler Driver 2.2
8200 lt_prog_compiler_wl='-Xlinker '
8201 lt_prog_compiler_pic='-Xcompiler -fPIC'
8202 ;;
8203 esac
dabbade6
L
8204 else
8205 # PORTME Check for flag to pass linker flags through the system compiler.
8206 case $host_os in
8207 aix*)
8208 lt_prog_compiler_wl='-Wl,'
8209 if test "$host_cpu" = ia64; then
8210 # AIX 5 now supports IA64 processor
8211 lt_prog_compiler_static='-Bstatic'
d7040cdb 8212 else
dabbade6 8213 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8214 fi
dabbade6 8215 ;;
d7040cdb 8216
1927a18f 8217 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8218 # This hack is so that the source file can tell whether it is being
8219 # built for inclusion in a dll (and should export symbols for example).
8220 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8221 ;;
8222
dabbade6
L
8223 hpux9* | hpux10* | hpux11*)
8224 lt_prog_compiler_wl='-Wl,'
8225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8226 # not for PA HP-UX.
8227 case $host_cpu in
8228 hppa*64*|ia64*)
8229 # +Z the default
8230 ;;
8231 *)
8232 lt_prog_compiler_pic='+Z'
8233 ;;
8234 esac
8235 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8236 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8237 ;;
8238
dabbade6
L
8239 irix5* | irix6* | nonstopux*)
8240 lt_prog_compiler_wl='-Wl,'
8241 # PIC (with -KPIC) is the default.
8242 lt_prog_compiler_static='-non_shared'
8243 ;;
d7040cdb 8244
58e24671 8245 linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6 8246 case $cc_basename in
1927a18f
L
8247 # old Intel for x86_64 which still supported -KPIC.
8248 ecc*)
dabbade6
L
8249 lt_prog_compiler_wl='-Wl,'
8250 lt_prog_compiler_pic='-KPIC'
8251 lt_prog_compiler_static='-static'
8252 ;;
1927a18f
L
8253 # icc used to be incompatible with GCC.
8254 # ICC 10 doesn't accept -KPIC any more.
8255 icc* | ifort*)
8256 lt_prog_compiler_wl='-Wl,'
8257 lt_prog_compiler_pic='-fPIC'
8258 lt_prog_compiler_static='-static'
8259 ;;
8260 # Lahey Fortran 8.1.
8261 lf95*)
8262 lt_prog_compiler_wl='-Wl,'
8263 lt_prog_compiler_pic='--shared'
8264 lt_prog_compiler_static='--static'
8265 ;;
3725885a 8266 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
dabbade6
L
8267 # Portland Group compilers (*not* the Pentium gcc compiler,
8268 # which looks to be a dead project)
8269 lt_prog_compiler_wl='-Wl,'
8270 lt_prog_compiler_pic='-fpic'
8271 lt_prog_compiler_static='-Bstatic'
8272 ;;
8273 ccc*)
8274 lt_prog_compiler_wl='-Wl,'
8275 # All Alpha code is PIC.
8276 lt_prog_compiler_static='-non_shared'
8277 ;;
3725885a
RW
8278 xl* | bgxl* | bgf* | mpixl*)
8279 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1927a18f
L
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-qpic'
8282 lt_prog_compiler_static='-qstaticlink'
8283 ;;
dabbade6
L
8284 *)
8285 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8286 *Sun\ F* | *Sun*Fortran*)
8287 # Sun Fortran 8.3 passes all unrecognized flags to the linker
dabbade6
L
8288 lt_prog_compiler_pic='-KPIC'
8289 lt_prog_compiler_static='-Bstatic'
3725885a 8290 lt_prog_compiler_wl=''
d7040cdb 8291 ;;
3725885a
RW
8292 *Sun\ C*)
8293 # Sun C 5.9
dabbade6
L
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-Bstatic'
3725885a 8296 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8297 ;;
8298 esac
dabbade6
L
8299 ;;
8300 esac
d7040cdb
SE
8301 ;;
8302
dabbade6
L
8303 newsos6)
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8306 ;;
8307
dabbade6
L
8308 *nto* | *qnx*)
8309 # QNX uses GNU C++, but need to define -shared option too, otherwise
8310 # it will coredump.
8311 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8312 ;;
8313
dabbade6
L
8314 osf3* | osf4* | osf5*)
8315 lt_prog_compiler_wl='-Wl,'
8316 # All OSF/1 code is PIC.
8317 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8318 ;;
8319
dabbade6
L
8320 rdos*)
8321 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8322 ;;
8323
8324 solaris*)
dabbade6
L
8325 lt_prog_compiler_pic='-KPIC'
8326 lt_prog_compiler_static='-Bstatic'
8327 case $cc_basename in
8328 f77* | f90* | f95*)
8329 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8330 *)
dabbade6 8331 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8332 esac
d7040cdb
SE
8333 ;;
8334
8335 sunos4*)
dabbade6
L
8336 lt_prog_compiler_wl='-Qoption ld '
8337 lt_prog_compiler_pic='-PIC'
8338 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8339 ;;
8340
dabbade6
L
8341 sysv4 | sysv4.2uw2* | sysv4.3*)
8342 lt_prog_compiler_wl='-Wl,'
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8345 ;;
8346
8347 sysv4*MP*)
dabbade6
L
8348 if test -d /usr/nec ;then
8349 lt_prog_compiler_pic='-Kconform_pic'
8350 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8351 fi
8352 ;;
8353
dabbade6
L
8354 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8355 lt_prog_compiler_wl='-Wl,'
8356 lt_prog_compiler_pic='-KPIC'
8357 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8358 ;;
8359
dabbade6
L
8360 unicos*)
8361 lt_prog_compiler_wl='-Wl,'
8362 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8363 ;;
8364
8365 uts4*)
dabbade6
L
8366 lt_prog_compiler_pic='-pic'
8367 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8368 ;;
8369
8370 *)
dabbade6 8371 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8372 ;;
8373 esac
d7040cdb
SE
8374 fi
8375
dabbade6
L
8376case $host_os in
8377 # For platforms which do not support PIC, -DPIC is meaningless:
8378 *djgpp*)
8379 lt_prog_compiler_pic=
8380 ;;
8381 *)
8382 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8383 ;;
8384esac
81ecdfbb
RW
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8386$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8387
8388
8389
8390
8391
8392
8393#
dabbade6 8394# Check to make sure the PIC flag actually works.
d7040cdb 8395#
dabbade6 8396if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8398$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8399if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8400 $as_echo_n "(cached) " >&6
dabbade6 8401else
1927a18f 8402 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8403 ac_outfile=conftest.$ac_objext
8404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8405 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8406 # Insert the option either (1) after the last *FLAGS variable, or
8407 # (2) before a word containing "conftest.", or (3) at the end.
8408 # Note that $ac_compile itself does not contain backslashes and begins
8409 # with a dollar sign (not a hyphen), so the echo should work correctly.
8410 # The option is referenced via a variable to avoid confusing sed.
8411 lt_compile=`echo "$ac_compile" | $SED \
8412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8414 -e 's:$: $lt_compiler_flag:'`
3725885a 8415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8416 (eval "$lt_compile" 2>conftest.err)
8417 ac_status=$?
8418 cat conftest.err >&5
3725885a 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8420 if (exit $ac_status) && test -s "$ac_outfile"; then
8421 # The compiler can only warn and ignore the option if not recognized
8422 # So say no if there are warnings other than the usual output.
3725885a 8423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8426 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8427 fi
8428 fi
8429 $RM conftest*
d7040cdb 8430
dabbade6 8431fi
81ecdfbb
RW
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8433$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8434
1927a18f 8435if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8436 case $lt_prog_compiler_pic in
8437 "" | " "*) ;;
8438 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8439 esac
8440else
8441 lt_prog_compiler_pic=
8442 lt_prog_compiler_can_build_shared=no
8443fi
d7040cdb 8444
dabbade6 8445fi
d7040cdb
SE
8446
8447
8448
8449
8450
8451
dabbade6
L
8452#
8453# Check to make sure the static flag actually works.
8454#
8455wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8457$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8458if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8459 $as_echo_n "(cached) " >&6
dabbade6 8460else
1927a18f 8461 lt_cv_prog_compiler_static_works=no
dabbade6
L
8462 save_LDFLAGS="$LDFLAGS"
8463 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8464 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8465 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8466 # The linker can only warn and ignore the option if not recognized
8467 # So say no if there are warnings
8468 if test -s conftest.err; then
8469 # Append any errors to the config.log.
8470 cat conftest.err 1>&5
3725885a 8471 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
dabbade6
L
8472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8473 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8474 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8475 fi
8476 else
1927a18f 8477 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8478 fi
8479 fi
1927a18f 8480 $RM -r conftest*
dabbade6 8481 LDFLAGS="$save_LDFLAGS"
d7040cdb 8482
dabbade6 8483fi
81ecdfbb
RW
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8485$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8486
1927a18f 8487if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8488 :
8489else
8490 lt_prog_compiler_static=
8491fi
d7040cdb
SE
8492
8493
8494
8495
8496
8497
8498
81ecdfbb
RW
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8500$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8501if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8502 $as_echo_n "(cached) " >&6
dabbade6
L
8503else
8504 lt_cv_prog_compiler_c_o=no
8505 $RM -r conftest 2>/dev/null
8506 mkdir conftest
8507 cd conftest
8508 mkdir out
8509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8510
dabbade6
L
8511 lt_compiler_flag="-o out/conftest2.$ac_objext"
8512 # Insert the option either (1) after the last *FLAGS variable, or
8513 # (2) before a word containing "conftest.", or (3) at the end.
8514 # Note that $ac_compile itself does not contain backslashes and begins
8515 # with a dollar sign (not a hyphen), so the echo should work correctly.
8516 lt_compile=`echo "$ac_compile" | $SED \
8517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8519 -e 's:$: $lt_compiler_flag:'`
3725885a 8520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8521 (eval "$lt_compile" 2>out/conftest.err)
8522 ac_status=$?
8523 cat out/conftest.err >&5
3725885a 8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8526 then
8527 # The compiler can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
3725885a 8529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8532 lt_cv_prog_compiler_c_o=yes
8533 fi
8534 fi
8535 chmod u+w . 2>&5
8536 $RM conftest*
8537 # SGI C++ compiler will create directory out/ii_files/ for
8538 # template instantiation
8539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8540 $RM out/* && rmdir out
8541 cd ..
8542 $RM -r conftest
8543 $RM conftest*
d7040cdb 8544
dabbade6 8545fi
81ecdfbb
RW
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8547$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8548
8549
8550
8551
8552
8553
81ecdfbb
RW
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8555$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8556if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8557 $as_echo_n "(cached) " >&6
dabbade6
L
8558else
8559 lt_cv_prog_compiler_c_o=no
8560 $RM -r conftest 2>/dev/null
8561 mkdir conftest
8562 cd conftest
8563 mkdir out
8564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8565
dabbade6
L
8566 lt_compiler_flag="-o out/conftest2.$ac_objext"
8567 # Insert the option either (1) after the last *FLAGS variable, or
8568 # (2) before a word containing "conftest.", or (3) at the end.
8569 # Note that $ac_compile itself does not contain backslashes and begins
8570 # with a dollar sign (not a hyphen), so the echo should work correctly.
8571 lt_compile=`echo "$ac_compile" | $SED \
8572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574 -e 's:$: $lt_compiler_flag:'`
3725885a 8575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8576 (eval "$lt_compile" 2>out/conftest.err)
8577 ac_status=$?
8578 cat out/conftest.err >&5
3725885a 8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8580 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8581 then
8582 # The compiler can only warn and ignore the option if not recognized
8583 # So say no if there are warnings
3725885a 8584 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8585 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8586 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8587 lt_cv_prog_compiler_c_o=yes
8588 fi
8589 fi
8590 chmod u+w . 2>&5
8591 $RM conftest*
8592 # SGI C++ compiler will create directory out/ii_files/ for
8593 # template instantiation
8594 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8595 $RM out/* && rmdir out
8596 cd ..
8597 $RM -r conftest
8598 $RM conftest*
d7040cdb 8599
dabbade6 8600fi
81ecdfbb
RW
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8602$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8603
8604
8605
8606
dabbade6
L
8607hard_links="nottested"
8608if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8609 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8611$as_echo_n "checking if we can lock with hard links... " >&6; }
dabbade6
L
8612 hard_links=yes
8613 $RM conftest*
8614 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8615 touch conftest.a
8616 ln conftest.a conftest.b 2>&5 || hard_links=no
8617 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8619$as_echo "$hard_links" >&6; }
dabbade6 8620 if test "$hard_links" = no; then
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8622$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
dabbade6
L
8623 need_locks=warn
8624 fi
8625else
8626 need_locks=no
8627fi
d7040cdb
SE
8628
8629
8630
8631
8632
8633
81ecdfbb
RW
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8635$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8636
dabbade6
L
8637 runpath_var=
8638 allow_undefined_flag=
8639 always_export_symbols=no
8640 archive_cmds=
8641 archive_expsym_cmds=
8642 compiler_needs_object=no
8643 enable_shared_with_static_runtimes=no
8644 export_dynamic_flag_spec=
8645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8646 hardcode_automatic=no
8647 hardcode_direct=no
8648 hardcode_direct_absolute=no
8649 hardcode_libdir_flag_spec=
8650 hardcode_libdir_flag_spec_ld=
8651 hardcode_libdir_separator=
8652 hardcode_minus_L=no
8653 hardcode_shlibpath_var=unsupported
8654 inherit_rpath=no
8655 link_all_deplibs=unknown
8656 module_cmds=
8657 module_expsym_cmds=
8658 old_archive_from_new_cmds=
8659 old_archive_from_expsyms_cmds=
8660 thread_safe_flag_spec=
8661 whole_archive_flag_spec=
8662 # include_expsyms should be a list of space-separated symbols to be *always*
8663 # included in the symbol list
8664 include_expsyms=
8665 # exclude_expsyms can be an extended regexp of symbols to exclude
8666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8668 # as well as any symbol that contains `d'.
1927a18f 8669 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8671 # platforms (ab)use it in PIC code, but their linkers get confused if
8672 # the symbol is explicitly referenced. Since portable code cannot
8673 # rely on this symbol name, it's probably fine to never include it in
8674 # preloaded symbol tables.
1927a18f 8675 # Exclude shared library initialization/finalization symbols.
dabbade6 8676 extract_expsyms_cmds=
d7040cdb 8677
dabbade6 8678 case $host_os in
1927a18f 8679 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8680 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8681 # When not using gcc, we currently assume that we are using
8682 # Microsoft Visual C++.
8683 if test "$GCC" != yes; then
8684 with_gnu_ld=no
8685 fi
8686 ;;
8687 interix*)
8688 # we just hope/assume this is gcc and not c89 (= MSVC++)
8689 with_gnu_ld=yes
8690 ;;
8691 openbsd*)
8692 with_gnu_ld=no
8693 ;;
8694 esac
d7040cdb 8695
dabbade6 8696 ld_shlibs=yes
3725885a
RW
8697
8698 # On some targets, GNU ld is compatible enough with the native linker
8699 # that we're better off using the native interface for both.
8700 lt_use_gnu_ld_interface=no
dabbade6 8701 if test "$with_gnu_ld" = yes; then
3725885a
RW
8702 case $host_os in
8703 aix*)
8704 # The AIX port of GNU ld has always aspired to compatibility
8705 # with the native linker. However, as the warning in the GNU ld
8706 # block says, versions before 2.19.5* couldn't really create working
8707 # shared libraries, regardless of the interface used.
8708 case `$LD -v 2>&1` in
8709 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8710 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8711 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8712 *)
8713 lt_use_gnu_ld_interface=yes
8714 ;;
8715 esac
8716 ;;
8717 *)
8718 lt_use_gnu_ld_interface=yes
8719 ;;
8720 esac
8721 fi
8722
8723 if test "$lt_use_gnu_ld_interface" = yes; then
dabbade6
L
8724 # If archive_cmds runs LD, not CC, wlarc should be empty
8725 wlarc='${wl}'
d7040cdb 8726
dabbade6
L
8727 # Set some defaults for GNU ld with shared library support. These
8728 # are reset later if shared libraries are not supported. Putting them
8729 # here allows them to be overridden if necessary.
8730 runpath_var=LD_RUN_PATH
8731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732 export_dynamic_flag_spec='${wl}--export-dynamic'
8733 # ancient GNU ld didn't support --whole-archive et. al.
8734 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8735 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8736 else
8737 whole_archive_flag_spec=
8738 fi
8739 supports_anon_versioning=no
8740 case `$LD -v 2>&1` in
3725885a 8741 *GNU\ gold*) supports_anon_versioning=yes ;;
dabbade6
L
8742 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8743 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8744 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8745 *\ 2.11.*) ;; # other 2.11 versions
8746 *) supports_anon_versioning=yes ;;
8747 esac
d7040cdb 8748
dabbade6
L
8749 # See if GNU ld supports shared libraries.
8750 case $host_os in
50e7d84b 8751 aix[3-9]*)
dabbade6
L
8752 # On AIX/PPC, the GNU linker is very broken
8753 if test "$host_cpu" != ia64; then
8754 ld_shlibs=no
8755 cat <<_LT_EOF 1>&2
d7040cdb 8756
3725885a 8757*** Warning: the GNU linker, at least up to release 2.19, is reported
dabbade6
L
8758*** to be unable to reliably create shared libraries on AIX.
8759*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8760*** really care for shared libraries, you may want to install binutils
8761*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8762*** You will then need to restart the configuration process.
d7040cdb 8763
dabbade6
L
8764_LT_EOF
8765 fi
8766 ;;
d7040cdb 8767
dabbade6 8768 amigaos*)
1927a18f
L
8769 case $host_cpu in
8770 powerpc)
8771 # see comment about AmigaOS4 .so support
8772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773 archive_expsym_cmds=''
8774 ;;
8775 m68k)
8776 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)'
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_minus_L=yes
8779 ;;
8780 esac
dabbade6 8781 ;;
d7040cdb 8782
dabbade6
L
8783 beos*)
8784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8785 allow_undefined_flag=unsupported
8786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8787 # support --undefined. This deserves some investigation. FIXME
8788 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
d7040cdb 8793
1927a18f 8794 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8795 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8796 # as there is no search path for DLLs.
8797 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8798 export_dynamic_flag_spec='${wl}--export-all-symbols'
dabbade6
L
8799 allow_undefined_flag=unsupported
8800 always_export_symbols=no
8801 enable_shared_with_static_runtimes=yes
8802 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8803
dabbade6
L
8804 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8806 # If the export-symbols file already is a .def file (1st line
8807 # is EXPORTS), use it as is; otherwise, prepend...
8808 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8809 cp $export_symbols $output_objdir/$soname.def;
8810 else
8811 echo EXPORTS > $output_objdir/$soname.def;
8812 cat $export_symbols >> $output_objdir/$soname.def;
8813 fi~
8814 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8815 else
8816 ld_shlibs=no
8817 fi
8818 ;;
d7040cdb 8819
3725885a
RW
8820 haiku*)
8821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822 link_all_deplibs=yes
8823 ;;
8824
dabbade6
L
8825 interix[3-9]*)
8826 hardcode_direct=no
8827 hardcode_shlibpath_var=no
8828 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829 export_dynamic_flag_spec='${wl}-E'
8830 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8831 # Instead, shared libraries are loaded at an image base (0x10000000 by
8832 # default) and relocated if they conflict, which is a slow very memory
8833 # consuming and fragmenting process. To avoid this, we pick a random,
8834 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8835 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8837 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'
8838 ;;
d7040cdb 8839
58e24671 8840 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
8841 tmp_diet=no
8842 if test "$host_os" = linux-dietlibc; then
8843 case $cc_basename in
8844 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8845 esac
8846 fi
8847 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8848 && test "$tmp_diet" = no
8849 then
6e733cce 8850 tmp_addflag=' $pic_flag'
1927a18f 8851 tmp_sharedflag='-shared'
dabbade6
L
8852 case $cc_basename,$host_cpu in
8853 pgcc*) # Portland Group C compiler
3725885a 8854 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
8855 tmp_addflag=' $pic_flag'
8856 ;;
3725885a
RW
8857 pgf77* | pgf90* | pgf95* | pgfortran*)
8858 # Portland Group f77 and f90 compilers
8859 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
8860 tmp_addflag=' $pic_flag -Mnomain' ;;
8861 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8862 tmp_addflag=' -i_dynamic' ;;
8863 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8864 tmp_addflag=' -i_dynamic -nofor_main' ;;
8865 ifc* | ifort*) # Intel Fortran compiler
8866 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8867 lf95*) # Lahey Fortran 8.1
8868 whole_archive_flag_spec=
8869 tmp_sharedflag='--shared' ;;
3725885a 8870 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1927a18f
L
8871 tmp_sharedflag='-qmkshrobj'
8872 tmp_addflag= ;;
3725885a
RW
8873 nvcc*) # Cuda Compiler Driver 2.2
8874 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'
8875 compiler_needs_object=yes
8876 ;;
dabbade6
L
8877 esac
8878 case `$CC -V 2>&1 | sed 5q` in
8879 *Sun\ C*) # Sun C 5.9
3725885a 8880 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
8881 compiler_needs_object=yes
8882 tmp_sharedflag='-G' ;;
8883 *Sun\ F*) # Sun Fortran 8.3
8884 tmp_sharedflag='-G' ;;
dabbade6
L
8885 esac
8886 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8887
dabbade6
L
8888 if test "x$supports_anon_versioning" = xyes; then
8889 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8890 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8891 echo "local: *; };" >> $output_objdir/$libname.ver~
8892 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8893 fi
1927a18f
L
8894
8895 case $cc_basename in
3725885a 8896 xlf* | bgf* | bgxlf* | mpixlf*)
1927a18f
L
8897 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8898 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8899 hardcode_libdir_flag_spec=
8900 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8901 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8902 if test "x$supports_anon_versioning" = xyes; then
8903 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8904 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8905 echo "local: *; };" >> $output_objdir/$libname.ver~
8906 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8907 fi
8908 ;;
8909 esac
dabbade6
L
8910 else
8911 ld_shlibs=no
8912 fi
8913 ;;
d7040cdb 8914
dabbade6
L
8915 netbsd*)
8916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8917 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8918 wlarc=
8919 else
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922 fi
8923 ;;
d7040cdb 8924
dabbade6
L
8925 solaris*)
8926 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8927 ld_shlibs=no
8928 cat <<_LT_EOF 1>&2
d7040cdb 8929
dabbade6
L
8930*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8931*** create shared libraries on Solaris systems. Therefore, libtool
8932*** is disabling shared libraries support. We urge you to upgrade GNU
8933*** binutils to release 2.9.1 or newer. Another option is to modify
8934*** your PATH or compiler configuration so that the native linker is
8935*** used, and then restart.
d7040cdb 8936
dabbade6
L
8937_LT_EOF
8938 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8941 else
8942 ld_shlibs=no
8943 fi
8944 ;;
d7040cdb 8945
dabbade6
L
8946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8947 case `$LD -v 2>&1` in
8948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8949 ld_shlibs=no
8950 cat <<_LT_EOF 1>&2
d7040cdb 8951
dabbade6
L
8952*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8953*** reliably create shared libraries on SCO systems. Therefore, libtool
8954*** is disabling shared libraries support. We urge you to upgrade GNU
8955*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8956*** your PATH or compiler configuration so that the native linker is
8957*** used, and then restart.
d7040cdb 8958
dabbade6
L
8959_LT_EOF
8960 ;;
8961 *)
8962 # For security reasons, it is highly recommended that you always
8963 # use absolute paths for naming shared libraries, and exclude the
8964 # DT_RUNPATH tag from executables and libraries. But doing so
8965 # requires that you compile everything twice, which is a pain.
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8970 else
8971 ld_shlibs=no
8972 fi
8973 ;;
8974 esac
8975 ;;
d7040cdb 8976
dabbade6
L
8977 sunos4*)
8978 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8979 wlarc=
8980 hardcode_direct=yes
8981 hardcode_shlibpath_var=no
8982 ;;
d7040cdb 8983
dabbade6
L
8984 *)
8985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 else
8989 ld_shlibs=no
8990 fi
8991 ;;
8992 esac
d7040cdb 8993
dabbade6
L
8994 if test "$ld_shlibs" = no; then
8995 runpath_var=
8996 hardcode_libdir_flag_spec=
8997 export_dynamic_flag_spec=
8998 whole_archive_flag_spec=
8999 fi
9000 else
9001 # PORTME fill in a description of your system's linker (not GNU ld)
9002 case $host_os in
9003 aix3*)
9004 allow_undefined_flag=unsupported
9005 always_export_symbols=yes
9006 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'
9007 # Note: this linker hardcodes the directories in LIBPATH if there
9008 # are no directories specified by -L.
9009 hardcode_minus_L=yes
9010 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9011 # Neither direct hardcoding nor static linking is supported with a
9012 # broken collect2.
9013 hardcode_direct=unsupported
9014 fi
9015 ;;
d7040cdb 9016
50e7d84b 9017 aix[4-9]*)
dabbade6
L
9018 if test "$host_cpu" = ia64; then
9019 # On IA64, the linker does run time linking by default, so we don't
9020 # have to do anything special.
9021 aix_use_runtimelinking=no
9022 exp_sym_flag='-Bexport'
9023 no_entry_flag=""
9024 else
9025 # If we're using GNU nm, then we don't want the "-C" option.
9026 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9027 # Also, AIX nm treats weak defined symbols like other global
9028 # defined symbols, whereas GNU nm marks them as "W".
dabbade6 9029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9030 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 9031 else
5c14705f 9032 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
9033 fi
9034 aix_use_runtimelinking=no
d7040cdb 9035
dabbade6
L
9036 # Test if we are trying to use run time linking or normal
9037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9038 # need to do runtime linking.
50e7d84b 9039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
9040 for ld_flag in $LDFLAGS; do
9041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9042 aix_use_runtimelinking=yes
9043 break
9044 fi
9045 done
9046 ;;
9047 esac
d7040cdb 9048
dabbade6
L
9049 exp_sym_flag='-bexport'
9050 no_entry_flag='-bnoentry'
9051 fi
d7040cdb 9052
dabbade6
L
9053 # When large executables or shared objects are built, AIX ld can
9054 # have problems creating the table of contents. If linking a library
9055 # or program results in "error TOC overflow" add -mminimal-toc to
9056 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9057 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9058
dabbade6
L
9059 archive_cmds=''
9060 hardcode_direct=yes
9061 hardcode_direct_absolute=yes
9062 hardcode_libdir_separator=':'
9063 link_all_deplibs=yes
9064 file_list_spec='${wl}-f,'
d7040cdb 9065
dabbade6
L
9066 if test "$GCC" = yes; then
9067 case $host_os in aix4.[012]|aix4.[012].*)
9068 # We only want to do this on AIX 4.2 and lower, the check
9069 # below for broken collect2 doesn't work under 4.3+
9070 collect2name=`${CC} -print-prog-name=collect2`
9071 if test -f "$collect2name" &&
9072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9073 then
9074 # We have reworked collect2
9075 :
9076 else
9077 # We have old collect2
9078 hardcode_direct=unsupported
9079 # It fails to find uninstalled libraries when the uninstalled
9080 # path is not listed in the libpath. Setting hardcode_minus_L
9081 # to unsupported forces relinking
9082 hardcode_minus_L=yes
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_libdir_separator=
9085 fi
9086 ;;
9087 esac
9088 shared_flag='-shared'
9089 if test "$aix_use_runtimelinking" = yes; then
9090 shared_flag="$shared_flag "'${wl}-G'
9091 fi
9092 else
9093 # not using gcc
9094 if test "$host_cpu" = ia64; then
9095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9096 # chokes on -Wl,-G. The following line is correct:
9097 shared_flag='-G'
9098 else
9099 if test "$aix_use_runtimelinking" = yes; then
9100 shared_flag='${wl}-G'
9101 else
9102 shared_flag='${wl}-bM:SRE'
9103 fi
9104 fi
9105 fi
d7040cdb 9106
1927a18f 9107 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
9108 # It seems that -bexpall does not export symbols beginning with
9109 # underscore (_), so it is better to generate a list of symbols to export.
9110 always_export_symbols=yes
9111 if test "$aix_use_runtimelinking" = yes; then
9112 # Warning - without using the other runtime loading flags (-brtl),
9113 # -berok will link without error, but may produce a broken library.
9114 allow_undefined_flag='-berok'
9115 # Determine the default libpath from the value encoded in an
9116 # empty executable.
81ecdfbb 9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9118/* end confdefs.h. */
d7040cdb 9119
dabbade6
L
9120int
9121main ()
9122{
d7040cdb 9123
dabbade6
L
9124 ;
9125 return 0;
9126}
9127_ACEOF
81ecdfbb 9128if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9129
dabbade6
L
9130lt_aix_libpath_sed='
9131 /Import File Strings/,/^$/ {
9132 /^0/ {
9133 s/^0 *\(.*\)$/\1/
9134 p
9135 }
9136 }'
9137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9138# Check for a 64-bit object if we didn't find anything.
9139if test -z "$aix_libpath"; then
9140 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9141fi
dabbade6 9142fi
81ecdfbb
RW
9143rm -f core conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
dabbade6 9145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9146
dabbade6 9147 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9148 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
9149 else
9150 if test "$host_cpu" = ia64; then
9151 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9152 allow_undefined_flag="-z nodefs"
9153 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"
9154 else
9155 # Determine the default libpath from the value encoded in an
9156 # empty executable.
81ecdfbb 9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9158/* end confdefs.h. */
d7040cdb 9159
dabbade6
L
9160int
9161main ()
9162{
d7040cdb 9163
dabbade6
L
9164 ;
9165 return 0;
9166}
9167_ACEOF
81ecdfbb 9168if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9169
dabbade6
L
9170lt_aix_libpath_sed='
9171 /Import File Strings/,/^$/ {
9172 /^0/ {
9173 s/^0 *\(.*\)$/\1/
9174 p
9175 }
9176 }'
9177aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178# Check for a 64-bit object if we didn't find anything.
9179if test -z "$aix_libpath"; then
9180 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181fi
dabbade6 9182fi
81ecdfbb
RW
9183rm -f core conftest.err conftest.$ac_objext \
9184 conftest$ac_exeext conftest.$ac_ext
dabbade6 9185if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9186
dabbade6
L
9187 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9188 # Warning - without using the other run time loading flags,
9189 # -berok will link without error, but may produce a broken library.
9190 no_undefined_flag=' ${wl}-bernotok'
9191 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9192 if test "$with_gnu_ld" = yes; then
9193 # We only use this code for GNU lds that support --whole-archive.
9194 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9195 else
9196 # Exported symbols can be pulled into shared objects from archives
9197 whole_archive_flag_spec='$convenience'
9198 fi
dabbade6
L
9199 archive_cmds_need_lc=yes
9200 # This is similar to how AIX traditionally builds its shared libraries.
9201 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'
9202 fi
9203 fi
9204 ;;
d7040cdb 9205
dabbade6 9206 amigaos*)
1927a18f
L
9207 case $host_cpu in
9208 powerpc)
9209 # see comment about AmigaOS4 .so support
9210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211 archive_expsym_cmds=''
9212 ;;
9213 m68k)
9214 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)'
9215 hardcode_libdir_flag_spec='-L$libdir'
9216 hardcode_minus_L=yes
9217 ;;
9218 esac
dabbade6 9219 ;;
d7040cdb 9220
dabbade6
L
9221 bsdi[45]*)
9222 export_dynamic_flag_spec=-rdynamic
9223 ;;
d7040cdb 9224
1927a18f 9225 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9226 # When not using gcc, we currently assume that we are using
9227 # Microsoft Visual C++.
9228 # hardcode_libdir_flag_spec is actually meaningless, as there is
9229 # no search path for DLLs.
9230 hardcode_libdir_flag_spec=' '
9231 allow_undefined_flag=unsupported
9232 # Tell ltmain to make .lib files, not .a files.
9233 libext=lib
9234 # Tell ltmain to make .dll files, not .so files.
9235 shrext_cmds=".dll"
9236 # FIXME: Setting linknames here is a bad hack.
3725885a 9237 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
dabbade6
L
9238 # The linker will automatically build a .lib file if we build a DLL.
9239 old_archive_from_new_cmds='true'
9240 # FIXME: Should let the user specify the lib program.
9241 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9242 fix_srcfile_path='`cygpath -w "$srcfile"`'
9243 enable_shared_with_static_runtimes=yes
9244 ;;
d7040cdb 9245
dabbade6 9246 darwin* | rhapsody*)
d7040cdb 9247
1927a18f
L
9248
9249 archive_cmds_need_lc=no
9250 hardcode_direct=no
9251 hardcode_automatic=yes
9252 hardcode_shlibpath_var=unsupported
3725885a
RW
9253 if test "$lt_cv_ld_force_load" = "yes"; then
9254 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\"`'
9255 else
9256 whole_archive_flag_spec=''
9257 fi
1927a18f
L
9258 link_all_deplibs=yes
9259 allow_undefined_flag="$_lt_dar_allow_undefined"
9260 case $cc_basename in
9261 ifort*) _lt_dar_can_shared=yes ;;
9262 *) _lt_dar_can_shared=$GCC ;;
9263 esac
9264 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9265 output_verbose_link_cmd=func_echo_all
1927a18f
L
9266 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9267 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9268 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}"
9269 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}"
9270
9271 else
9272 ld_shlibs=no
9273 fi
9274
dabbade6 9275 ;;
d7040cdb 9276
dabbade6
L
9277 dgux*)
9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_shlibpath_var=no
9281 ;;
d7040cdb 9282
dabbade6
L
9283 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9284 # support. Future versions do this automatically, but an explicit c++rt0.o
9285 # does not break anything, and helps significantly (at the cost of a little
9286 # extra space).
9287 freebsd2.2*)
9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9289 hardcode_libdir_flag_spec='-R$libdir'
9290 hardcode_direct=yes
9291 hardcode_shlibpath_var=no
9292 ;;
d7040cdb 9293
dabbade6 9294 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9295 freebsd2.*)
dabbade6
L
9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9297 hardcode_direct=yes
9298 hardcode_minus_L=yes
9299 hardcode_shlibpath_var=no
9300 ;;
d7040cdb 9301
dabbade6
L
9302 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9303 freebsd* | dragonfly*)
9304 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9305 hardcode_libdir_flag_spec='-R$libdir'
9306 hardcode_direct=yes
9307 hardcode_shlibpath_var=no
9308 ;;
d7040cdb 9309
dabbade6
L
9310 hpux9*)
9311 if test "$GCC" = yes; then
9312 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'
9313 else
9314 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'
9315 fi
9316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9317 hardcode_libdir_separator=:
9318 hardcode_direct=yes
d7040cdb 9319
dabbade6
L
9320 # hardcode_minus_L: Not really in the search PATH,
9321 # but as the default location of the library.
9322 hardcode_minus_L=yes
9323 export_dynamic_flag_spec='${wl}-E'
9324 ;;
d7040cdb 9325
dabbade6 9326 hpux10*)
3725885a 9327 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9328 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9329 else
9330 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9331 fi
9332 if test "$with_gnu_ld" = no; then
9333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9334 hardcode_libdir_flag_spec_ld='+b $libdir'
9335 hardcode_libdir_separator=:
9336 hardcode_direct=yes
9337 hardcode_direct_absolute=yes
9338 export_dynamic_flag_spec='${wl}-E'
9339 # hardcode_minus_L: Not really in the search PATH,
9340 # but as the default location of the library.
9341 hardcode_minus_L=yes
9342 fi
9343 ;;
d7040cdb 9344
dabbade6 9345 hpux11*)
3725885a 9346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9347 case $host_cpu in
9348 hppa*64*)
9349 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9350 ;;
9351 ia64*)
1927a18f 9352 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9353 ;;
9354 *)
9355 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9356 ;;
9357 esac
9358 else
9359 case $host_cpu in
9360 hppa*64*)
9361 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362 ;;
9363 ia64*)
9364 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9365 ;;
9366 *)
3725885a
RW
9367
9368 # Older versions of the 11.00 compiler do not understand -b yet
9369 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9371$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9372if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9373 $as_echo_n "(cached) " >&6
9374else
9375 lt_cv_prog_compiler__b=no
9376 save_LDFLAGS="$LDFLAGS"
9377 LDFLAGS="$LDFLAGS -b"
9378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9380 # The linker can only warn and ignore the option if not recognized
9381 # So say no if there are warnings
9382 if test -s conftest.err; then
9383 # Append any errors to the config.log.
9384 cat conftest.err 1>&5
9385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9387 if diff conftest.exp conftest.er2 >/dev/null; then
9388 lt_cv_prog_compiler__b=yes
9389 fi
9390 else
9391 lt_cv_prog_compiler__b=yes
9392 fi
9393 fi
9394 $RM -r conftest*
9395 LDFLAGS="$save_LDFLAGS"
9396
9397fi
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9399$as_echo "$lt_cv_prog_compiler__b" >&6; }
9400
9401if test x"$lt_cv_prog_compiler__b" = xyes; then
9402 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9403else
9404 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9405fi
9406
dabbade6
L
9407 ;;
9408 esac
9409 fi
9410 if test "$with_gnu_ld" = no; then
9411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9412 hardcode_libdir_separator=:
d7040cdb 9413
dabbade6
L
9414 case $host_cpu in
9415 hppa*64*|ia64*)
9416 hardcode_direct=no
9417 hardcode_shlibpath_var=no
9418 ;;
9419 *)
9420 hardcode_direct=yes
9421 hardcode_direct_absolute=yes
9422 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9423
dabbade6
L
9424 # hardcode_minus_L: Not really in the search PATH,
9425 # but as the default location of the library.
9426 hardcode_minus_L=yes
9427 ;;
9428 esac
9429 fi
9430 ;;
d7040cdb 9431
dabbade6
L
9432 irix5* | irix6* | nonstopux*)
9433 if test "$GCC" = yes; then
3725885a 9434 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
9435 # Try to use the -exported_symbol ld option, if it does not
9436 # work, assume that -exports_file does not work either and
9437 # implicitly export all symbols.
9438 save_LDFLAGS="$LDFLAGS"
9439 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h. */
dabbade6
L
9442int foo(void) {}
9443_ACEOF
81ecdfbb 9444if ac_fn_c_try_link "$LINENO"; then :
3725885a 9445 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 9446
d7040cdb 9447fi
81ecdfbb
RW
9448rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9450 LDFLAGS="$save_LDFLAGS"
9451 else
3725885a
RW
9452 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'
9453 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
9454 fi
9455 archive_cmds_need_lc='no'
9456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9457 hardcode_libdir_separator=:
9458 inherit_rpath=yes
9459 link_all_deplibs=yes
9460 ;;
d7040cdb 9461
dabbade6
L
9462 netbsd*)
9463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9465 else
9466 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9467 fi
9468 hardcode_libdir_flag_spec='-R$libdir'
9469 hardcode_direct=yes
9470 hardcode_shlibpath_var=no
9471 ;;
d7040cdb 9472
dabbade6
L
9473 newsos6)
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_direct=yes
9476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9477 hardcode_libdir_separator=:
9478 hardcode_shlibpath_var=no
9479 ;;
d7040cdb 9480
dabbade6
L
9481 *nto* | *qnx*)
9482 ;;
d7040cdb 9483
dabbade6 9484 openbsd*)
1927a18f
L
9485 if test -f /usr/libexec/ld.so; then
9486 hardcode_direct=yes
9487 hardcode_shlibpath_var=no
9488 hardcode_direct_absolute=yes
9489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9491 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9492 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9493 export_dynamic_flag_spec='${wl}-E'
9494 else
9495 case $host_os in
9496 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9498 hardcode_libdir_flag_spec='-R$libdir'
9499 ;;
9500 *)
9501 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9502 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9503 ;;
9504 esac
9505 fi
9506 else
9507 ld_shlibs=no
d7040cdb
SE
9508 fi
9509 ;;
d7040cdb 9510
dabbade6
L
9511 os2*)
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_minus_L=yes
9514 allow_undefined_flag=unsupported
3725885a 9515 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
9516 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9517 ;;
d7040cdb 9518
dabbade6
L
9519 osf3*)
9520 if test "$GCC" = yes; then
9521 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9522 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
9523 else
9524 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9525 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
9526 fi
9527 archive_cmds_need_lc='no'
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 hardcode_libdir_separator=:
9530 ;;
d7040cdb 9531
dabbade6
L
9532 osf4* | osf5*) # as osf3* with the addition of -msym flag
9533 if test "$GCC" = yes; then
9534 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9535 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
9536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537 else
9538 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9539 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 9540 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 9541 $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 9542
dabbade6
L
9543 # Both c and cxx compiler support -rpath directly
9544 hardcode_libdir_flag_spec='-rpath $libdir'
9545 fi
9546 archive_cmds_need_lc='no'
9547 hardcode_libdir_separator=:
9548 ;;
d7040cdb 9549
dabbade6
L
9550 solaris*)
9551 no_undefined_flag=' -z defs'
9552 if test "$GCC" = yes; then
9553 wlarc='${wl}'
9554 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9556 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9557 else
9558 case `$CC -V 2>&1` in
9559 *"Compilers 5.0"*)
9560 wlarc=''
9561 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9564 ;;
9565 *)
9566 wlarc='${wl}'
9567 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9569 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9570 ;;
9571 esac
9572 fi
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 hardcode_shlibpath_var=no
9575 case $host_os in
9576 solaris2.[0-5] | solaris2.[0-5].*) ;;
9577 *)
9578 # The compiler driver will combine and reorder linker options,
9579 # but understands `-z linker_flag'. GCC discards it without `$wl',
9580 # but is careful enough not to reorder.
9581 # Supported since Solaris 2.6 (maybe 2.5.1?)
9582 if test "$GCC" = yes; then
9583 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9584 else
9585 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9586 fi
9587 ;;
9588 esac
9589 link_all_deplibs=yes
d7040cdb 9590 ;;
dabbade6
L
9591
9592 sunos4*)
9593 if test "x$host_vendor" = xsequent; then
9594 # Use $CC to link under sequent, because it throws in some extra .o
9595 # files that make .init and .fini sections work.
9596 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9597 else
dabbade6 9598 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9599 fi
dabbade6
L
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_direct=yes
9602 hardcode_minus_L=yes
9603 hardcode_shlibpath_var=no
d7040cdb 9604 ;;
dabbade6
L
9605
9606 sysv4)
9607 case $host_vendor in
9608 sni)
9609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9610 hardcode_direct=yes # is this really true???
9611 ;;
9612 siemens)
9613 ## LD is ld it makes a PLAMLIB
9614 ## CC just makes a GrossModule.
9615 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9616 reload_cmds='$CC -r -o $output$reload_objs'
9617 hardcode_direct=no
9618 ;;
9619 motorola)
9620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9621 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9622 ;;
9623 esac
9624 runpath_var='LD_RUN_PATH'
9625 hardcode_shlibpath_var=no
d7040cdb 9626 ;;
d7040cdb 9627
dabbade6
L
9628 sysv4.3*)
9629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_shlibpath_var=no
9631 export_dynamic_flag_spec='-Bexport'
9632 ;;
d7040cdb 9633
dabbade6
L
9634 sysv4*MP*)
9635 if test -d /usr/nec; then
9636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 hardcode_shlibpath_var=no
9638 runpath_var=LD_RUN_PATH
9639 hardcode_runpath_var=yes
9640 ld_shlibs=yes
9641 fi
9642 ;;
d7040cdb 9643
dabbade6
L
9644 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9645 no_undefined_flag='${wl}-z,text'
9646 archive_cmds_need_lc=no
9647 hardcode_shlibpath_var=no
9648 runpath_var='LD_RUN_PATH'
d7040cdb 9649
dabbade6
L
9650 if test "$GCC" = yes; then
9651 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653 else
9654 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 fi
9657 ;;
d7040cdb 9658
dabbade6
L
9659 sysv5* | sco3.2v5* | sco5v6*)
9660 # Note: We can NOT use -z defs as we might desire, because we do not
9661 # link with -lc, and that would cause any symbols used from libc to
9662 # always be unresolved, which means just about no library would
9663 # ever link correctly. If we're not using GNU ld we use -z text
9664 # though, which does catch some bad symbols but isn't as heavy-handed
9665 # as -z defs.
9666 no_undefined_flag='${wl}-z,text'
9667 allow_undefined_flag='${wl}-z,nodefs'
9668 archive_cmds_need_lc=no
9669 hardcode_shlibpath_var=no
9670 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9671 hardcode_libdir_separator=':'
9672 link_all_deplibs=yes
9673 export_dynamic_flag_spec='${wl}-Bexport'
9674 runpath_var='LD_RUN_PATH'
d7040cdb 9675
dabbade6
L
9676 if test "$GCC" = yes; then
9677 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 else
9680 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 fi
d7040cdb 9683 ;;
d7040cdb 9684
dabbade6
L
9685 uts4*)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_libdir_flag_spec='-L$libdir'
9688 hardcode_shlibpath_var=no
9689 ;;
d7040cdb 9690
dabbade6
L
9691 *)
9692 ld_shlibs=no
9693 ;;
9694 esac
9695
9696 if test x$host_vendor = xsni; then
9697 case $host in
9698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9699 export_dynamic_flag_spec='${wl}-Blargedynsym'
9700 ;;
9701 esac
d7040cdb 9702 fi
dabbade6 9703 fi
d7040cdb 9704
81ecdfbb
RW
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9706$as_echo "$ld_shlibs" >&6; }
dabbade6 9707test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9708
dabbade6 9709with_gnu_ld=$with_gnu_ld
d7040cdb 9710
d7040cdb 9711
d7040cdb 9712
d7040cdb 9713
d7040cdb 9714
d7040cdb 9715
d7040cdb 9716
d7040cdb 9717
d7040cdb 9718
d7040cdb 9719
d7040cdb 9720
d7040cdb 9721
d7040cdb 9722
d7040cdb 9723
d7040cdb 9724
dabbade6
L
9725#
9726# Do we need to explicitly link libc?
9727#
9728case "x$archive_cmds_need_lc" in
9729x|xyes)
9730 # Assume -lc should be added
9731 archive_cmds_need_lc=yes
d7040cdb 9732
dabbade6
L
9733 if test "$enable_shared" = yes && test "$GCC" = yes; then
9734 case $archive_cmds in
9735 *'~'*)
9736 # FIXME: we may have to deal with multi-command sequences.
9737 ;;
9738 '$CC '*)
9739 # Test whether the compiler implicitly links with -lc since on some
9740 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9741 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9743$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9744if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 9745 $as_echo_n "(cached) " >&6
39144654
RW
9746else
9747 $RM conftest*
9748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9749
81ecdfbb 9750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
dabbade6
L
9751 (eval $ac_compile) 2>&5
9752 ac_status=$?
81ecdfbb
RW
9753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9754 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9755 soname=conftest
9756 lib=conftest
9757 libobjs=conftest.$ac_objext
9758 deplibs=
9759 wl=$lt_prog_compiler_wl
9760 pic_flag=$lt_prog_compiler_pic
9761 compiler_flags=-v
9762 linker_flags=-v
9763 verstring=
9764 output_objdir=.
9765 libname=conftest
9766 lt_save_allow_undefined_flag=$allow_undefined_flag
9767 allow_undefined_flag=
81ecdfbb 9768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
dabbade6
L
9769 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9770 ac_status=$?
81ecdfbb
RW
9771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9772 test $ac_status = 0; }
39144654
RW
9773 then
9774 lt_cv_archive_cmds_need_lc=no
9775 else
9776 lt_cv_archive_cmds_need_lc=yes
9777 fi
9778 allow_undefined_flag=$lt_save_allow_undefined_flag
9779 else
9780 cat conftest.err 1>&5
9781 fi
9782 $RM conftest*
9783
9784fi
81ecdfbb
RW
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9786$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9787 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9788 ;;
9789 esac
d7040cdb 9790 fi
d7040cdb 9791 ;;
dabbade6 9792esac
d7040cdb 9793
d7040cdb 9794
d7040cdb 9795
d7040cdb 9796
d7040cdb 9797
d7040cdb 9798
d7040cdb 9799
d7040cdb
SE
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
d7040cdb 9887
d7040cdb 9888
d7040cdb
SE
9889
9890
9891
9892
9893
9894
d7040cdb 9895
d7040cdb 9896
d7040cdb 9897
d7040cdb 9898
d7040cdb 9899
d7040cdb 9900
d7040cdb 9901
d7040cdb 9902
d7040cdb 9903
d7040cdb 9904
d7040cdb 9905
d7040cdb 9906
d7040cdb 9907
d7040cdb 9908
d7040cdb 9909
d7040cdb 9910
d7040cdb 9911
d7040cdb 9912
d7040cdb 9913
d7040cdb 9914
d7040cdb 9915
d7040cdb 9916
d7040cdb 9917
d7040cdb 9918
dabbade6
L
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
81ecdfbb
RW
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9951$as_echo_n "checking dynamic linker characteristics... " >&6; }
1927a18f
L
9952
9953if test "$GCC" = yes; then
dabbade6
L
9954 case $host_os in
9955 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9956 *) lt_awk_arg="/^libraries:/" ;;
9957 esac
3725885a
RW
9958 case $host_os in
9959 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9960 *) lt_sed_strip_eq="s,=/,/,g" ;;
9961 esac
9962 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9963 case $lt_search_path_spec in
9964 *\;*)
dabbade6
L
9965 # if the path contains ";" then we assume it to be the separator
9966 # otherwise default to the standard path separator (i.e. ":") - it is
9967 # assumed that no part of a normal pathname contains ";" but that should
9968 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9969 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9970 ;;
9971 *)
9972 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9973 ;;
9974 esac
dabbade6
L
9975 # Ok, now we have the path, separated by spaces, we can step through it
9976 # and add multilib dir if necessary.
9977 lt_tmp_lt_search_path_spec=
9978 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9979 for lt_sys_path in $lt_search_path_spec; do
9980 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9981 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9982 else
9983 test -d "$lt_sys_path" && \
9984 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9985 fi
9986 done
3725885a 9987 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
dabbade6
L
9988BEGIN {RS=" "; FS="/|\n";} {
9989 lt_foo="";
9990 lt_count=0;
9991 for (lt_i = NF; lt_i > 0; lt_i--) {
9992 if ($lt_i != "" && $lt_i != ".") {
9993 if ($lt_i == "..") {
9994 lt_count++;
9995 } else {
9996 if (lt_count == 0) {
9997 lt_foo="/" $lt_i lt_foo;
9998 } else {
9999 lt_count--;
10000 }
10001 }
10002 }
10003 }
10004 if (lt_foo != "") { lt_freq[lt_foo]++; }
10005 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10006}'`
3725885a
RW
10007 # AWK program above erroneously prepends '/' to C:/dos/paths
10008 # for these hosts.
10009 case $host_os in
10010 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10011 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10012 esac
10013 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10014else
dabbade6
L
10015 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10016fi
10017library_names_spec=
10018libname_spec='lib$name'
10019soname_spec=
10020shrext_cmds=".so"
10021postinstall_cmds=
10022postuninstall_cmds=
10023finish_cmds=
10024finish_eval=
10025shlibpath_var=
10026shlibpath_overrides_runpath=unknown
10027version_type=none
10028dynamic_linker="$host_os ld.so"
10029sys_lib_dlsearch_path_spec="/lib /usr/lib"
10030need_lib_prefix=unknown
10031hardcode_into_libs=no
10032
10033# when you set need_version to no, make sure it does not cause -set_version
10034# flags to be left without arguments
10035need_version=unknown
10036
10037case $host_os in
10038aix3*)
10039 version_type=linux
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10041 shlibpath_var=LIBPATH
10042
10043 # AIX 3 has no versioning support, so we append a major version to the name.
10044 soname_spec='${libname}${release}${shared_ext}$major'
10045 ;;
10046
50e7d84b 10047aix[4-9]*)
dabbade6
L
10048 version_type=linux
10049 need_lib_prefix=no
10050 need_version=no
10051 hardcode_into_libs=yes
10052 if test "$host_cpu" = ia64; then
10053 # AIX 5 supports IA64
10054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10055 shlibpath_var=LD_LIBRARY_PATH
10056 else
10057 # With GCC up to 2.95.x, collect2 would create an import file
10058 # for dependence libraries. The import file would start with
10059 # the line `#! .'. This would cause the generated library to
10060 # depend on `.', always an invalid library. This was fixed in
10061 # development snapshots of GCC prior to 3.0.
10062 case $host_os in
10063 aix4 | aix4.[01] | aix4.[01].*)
10064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10065 echo ' yes '
10066 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10067 :
10068 else
10069 can_build_shared=no
10070 fi
10071 ;;
10072 esac
10073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10074 # soname into executable. Probably we can add versioning support to
10075 # collect2, so additional links can be useful in future.
10076 if test "$aix_use_runtimelinking" = yes; then
10077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10078 # instead of lib<name>.a to let people know that these are not
10079 # typical AIX shared libraries.
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081 else
10082 # We preserve .a as extension for shared libraries through AIX4.2
10083 # and later when we are not doing run time linking.
10084 library_names_spec='${libname}${release}.a $libname.a'
10085 soname_spec='${libname}${release}${shared_ext}$major'
10086 fi
10087 shlibpath_var=LIBPATH
10088 fi
10089 ;;
10090
10091amigaos*)
1927a18f
L
10092 case $host_cpu in
10093 powerpc)
10094 # Since July 2007 AmigaOS4 officially supports .so libraries.
10095 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 ;;
10098 m68k)
dabbade6
L
10099 library_names_spec='$libname.ixlibrary $libname.a'
10100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10101 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
10102 ;;
10103 esac
dabbade6
L
10104 ;;
10105
10106beos*)
10107 library_names_spec='${libname}${shared_ext}'
10108 dynamic_linker="$host_os ld.so"
10109 shlibpath_var=LIBRARY_PATH
10110 ;;
10111
10112bsdi[45]*)
10113 version_type=linux
10114 need_version=no
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10118 shlibpath_var=LD_LIBRARY_PATH
10119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10121 # the default ld.so.conf also contains /usr/contrib/lib and
10122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10123 # libtool to hard-code these into programs
10124 ;;
10125
1927a18f 10126cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
10127 version_type=windows
10128 shrext_cmds=".dll"
10129 need_version=no
10130 need_lib_prefix=no
10131
1927a18f
L
10132 case $GCC,$host_os in
10133 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
10134 library_names_spec='$libname.dll.a'
10135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10136 postinstall_cmds='base_file=`basename \${file}`~
10137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10138 dldir=$destdir/`dirname \$dlpath`~
10139 test -d \$dldir || mkdir -p \$dldir~
10140 $install_prog $dir/$dlname \$dldir/$dlname~
10141 chmod a+x \$dldir/$dlname~
10142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10144 fi'
10145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10146 dlpath=$dir/\$dldll~
10147 $RM \$dlpath'
10148 shlibpath_overrides_runpath=yes
10149
10150 case $host_os in
10151 cygwin*)
10152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10154
10155 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
dabbade6 10156 ;;
1927a18f 10157 mingw* | cegcc*)
dabbade6
L
10158 # MinGW DLLs use traditional 'lib' prefix
10159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
dabbade6
L
10160 ;;
10161 pw32*)
10162 # pw32 DLLs use 'pw' prefix rather than 'lib'
10163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10164 ;;
10165 esac
10166 ;;
10167
10168 *)
10169 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10170 ;;
10171 esac
10172 dynamic_linker='Win32 ld.exe'
10173 # FIXME: first we should search . and the directory the executable is in
10174 shlibpath_var=PATH
10175 ;;
10176
10177darwin* | rhapsody*)
10178 dynamic_linker="$host_os dyld"
10179 version_type=darwin
10180 need_lib_prefix=no
10181 need_version=no
10182 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10183 soname_spec='${libname}${release}${major}$shared_ext'
10184 shlibpath_overrides_runpath=yes
10185 shlibpath_var=DYLD_LIBRARY_PATH
10186 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10187
10188 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10189 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10190 ;;
10191
10192dgux*)
10193 version_type=linux
10194 need_lib_prefix=no
10195 need_version=no
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10197 soname_spec='${libname}${release}${shared_ext}$major'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 ;;
10200
dabbade6
L
10201freebsd* | dragonfly*)
10202 # DragonFly does not have aout. When/if they implement a new
10203 # versioning mechanism, adjust this.
10204 if test -x /usr/bin/objformat; then
10205 objformat=`/usr/bin/objformat`
10206 else
10207 case $host_os in
6d2920c8 10208 freebsd[23].*) objformat=aout ;;
dabbade6
L
10209 *) objformat=elf ;;
10210 esac
10211 fi
10212 version_type=freebsd-$objformat
10213 case $version_type in
10214 freebsd-elf*)
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10216 need_version=no
10217 need_lib_prefix=no
10218 ;;
10219 freebsd-*)
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10221 need_version=yes
10222 ;;
10223 esac
10224 shlibpath_var=LD_LIBRARY_PATH
10225 case $host_os in
6d2920c8 10226 freebsd2.*)
dabbade6
L
10227 shlibpath_overrides_runpath=yes
10228 ;;
10229 freebsd3.[01]* | freebsdelf3.[01]*)
10230 shlibpath_overrides_runpath=yes
10231 hardcode_into_libs=yes
10232 ;;
10233 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10234 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10235 shlibpath_overrides_runpath=no
10236 hardcode_into_libs=yes
10237 ;;
10238 *) # from 4.6 on, and DragonFly
10239 shlibpath_overrides_runpath=yes
10240 hardcode_into_libs=yes
10241 ;;
10242 esac
10243 ;;
10244
3725885a
RW
10245haiku*)
10246 version_type=linux
10247 need_lib_prefix=no
10248 need_version=no
10249 dynamic_linker="$host_os runtime_loader"
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LIBRARY_PATH
10253 shlibpath_overrides_runpath=yes
d85e70a3 10254 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
10255 hardcode_into_libs=yes
10256 ;;
10257
dabbade6
L
10258hpux9* | hpux10* | hpux11*)
10259 # Give a soname corresponding to the major version so that dld.sl refuses to
10260 # link against other versions.
10261 version_type=sunos
10262 need_lib_prefix=no
10263 need_version=no
10264 case $host_cpu in
10265 ia64*)
10266 shrext_cmds='.so'
10267 hardcode_into_libs=yes
10268 dynamic_linker="$host_os dld.so"
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 if test "X$HPUX_IA64_MODE" = X32; then
10274 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10275 else
10276 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10277 fi
10278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10279 ;;
10280 hppa*64*)
10281 shrext_cmds='.sl'
10282 hardcode_into_libs=yes
10283 dynamic_linker="$host_os dld.sl"
10284 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10285 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10290 ;;
10291 *)
10292 shrext_cmds='.sl'
10293 dynamic_linker="$host_os dld.sl"
10294 shlibpath_var=SHLIB_PATH
10295 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 ;;
10299 esac
3725885a 10300 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
dabbade6 10301 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10302 # or fails outright, so override atomically:
10303 install_override_mode=555
dabbade6
L
10304 ;;
10305
10306interix[3-9]*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10316 ;;
10317
10318irix5* | irix6* | nonstopux*)
10319 case $host_os in
10320 nonstopux*) version_type=nonstopux ;;
10321 *)
10322 if test "$lt_cv_prog_gnu_ld" = yes; then
10323 version_type=linux
10324 else
10325 version_type=irix
10326 fi ;;
10327 esac
10328 need_lib_prefix=no
10329 need_version=no
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10332 case $host_os in
10333 irix5* | nonstopux*)
10334 libsuff= shlibsuff=
10335 ;;
10336 *)
10337 case $LD in # libtool.m4 will add one of these switches to LD
10338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10339 libsuff= shlibsuff= libmagic=32-bit;;
10340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10341 libsuff=32 shlibsuff=N32 libmagic=N32;;
10342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10344 *) libsuff= shlibsuff= libmagic=never-match;;
10345 esac
10346 ;;
10347 esac
10348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10349 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10352 hardcode_into_libs=yes
10353 ;;
10354
10355# No shared lib support for Linux oldld, aout, or coff.
10356linux*oldld* | linux*aout* | linux*coff*)
10357 dynamic_linker=no
10358 ;;
10359
10360# This must be Linux ELF.
f4782128 10361linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
dabbade6
L
10362 version_type=linux
10363 need_lib_prefix=no
10364 need_version=no
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=no
39144654 10370
dabbade6 10371 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10372 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10373 $as_echo_n "(cached) " >&6
39144654
RW
10374else
10375 lt_cv_shlibpath_overrides_runpath=no
10376 save_LDFLAGS=$LDFLAGS
10377 save_libdir=$libdir
10378 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10379 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10381/* end confdefs.h. */
10382
d7040cdb
SE
10383int
10384main ()
10385{
dabbade6 10386
d7040cdb
SE
10387 ;
10388 return 0;
10389}
10390_ACEOF
81ecdfbb
RW
10391if ac_fn_c_try_link "$LINENO"; then :
10392 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10393 lt_cv_shlibpath_overrides_runpath=yes
dabbade6 10394fi
d7040cdb 10395fi
81ecdfbb
RW
10396rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10398 LDFLAGS=$save_LDFLAGS
10399 libdir=$save_libdir
10400
10401fi
10402
10403 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10404
10405 # This implies no fast_install, which is unacceptable.
10406 # Some rework will be needed to allow for fast_install
10407 # before this can be enabled.
10408 hardcode_into_libs=yes
10409
10410 # Append ld.so.conf contents to the search path
10411 if test -f /etc/ld.so.conf; then
3725885a 10412 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
10413 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10414 fi
10415
10416 # We used to test for /lib/ld.so.1 and disable shared libraries on
10417 # powerpc, because MkLinux only supported shared libraries with the
10418 # GNU dynamic linker. Since this was broken with cross compilers,
10419 # most powerpc-linux boxes support dynamic linking these days and
10420 # people can always --disable-shared, the test was removed, and we
10421 # assume the GNU/Linux dynamic linker is in use.
10422 dynamic_linker='GNU/Linux ld.so'
10423 ;;
10424
10425netbsd*)
10426 version_type=sunos
10427 need_lib_prefix=no
10428 need_version=no
10429 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10432 dynamic_linker='NetBSD (a.out) ld.so'
10433 else
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 dynamic_linker='NetBSD ld.elf_so'
10437 fi
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=yes
10440 hardcode_into_libs=yes
10441 ;;
10442
10443newsos6)
10444 version_type=linux
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 shlibpath_var=LD_LIBRARY_PATH
10447 shlibpath_overrides_runpath=yes
10448 ;;
10449
10450*nto* | *qnx*)
10451 version_type=qnx
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=no
10458 hardcode_into_libs=yes
10459 dynamic_linker='ldqnx.so'
10460 ;;
10461
10462openbsd*)
10463 version_type=sunos
10464 sys_lib_dlsearch_path_spec="/usr/lib"
10465 need_lib_prefix=no
10466 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10467 case $host_os in
10468 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10469 *) need_version=no ;;
10470 esac
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10473 shlibpath_var=LD_LIBRARY_PATH
10474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475 case $host_os in
10476 openbsd2.[89] | openbsd2.[89].*)
10477 shlibpath_overrides_runpath=no
10478 ;;
10479 *)
10480 shlibpath_overrides_runpath=yes
10481 ;;
10482 esac
10483 else
10484 shlibpath_overrides_runpath=yes
10485 fi
10486 ;;
10487
10488os2*)
10489 libname_spec='$name'
10490 shrext_cmds=".dll"
10491 need_lib_prefix=no
10492 library_names_spec='$libname${shared_ext} $libname.a'
10493 dynamic_linker='OS/2 ld.exe'
10494 shlibpath_var=LIBPATH
10495 ;;
10496
10497osf3* | osf4* | osf5*)
10498 version_type=osf
10499 need_lib_prefix=no
10500 need_version=no
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10506 ;;
10507
10508rdos*)
10509 dynamic_linker=no
10510 ;;
10511
10512solaris*)
10513 version_type=linux
10514 need_lib_prefix=no
10515 need_version=no
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10520 hardcode_into_libs=yes
10521 # ldd complains unless libraries are executable
10522 postinstall_cmds='chmod +x $lib'
10523 ;;
10524
10525sunos4*)
10526 version_type=sunos
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10528 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=yes
10531 if test "$with_gnu_ld" = yes; then
10532 need_lib_prefix=no
10533 fi
10534 need_version=yes
10535 ;;
10536
10537sysv4 | sysv4.3*)
10538 version_type=linux
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 case $host_vendor in
10543 sni)
10544 shlibpath_overrides_runpath=no
10545 need_lib_prefix=no
10546 runpath_var=LD_RUN_PATH
10547 ;;
10548 siemens)
10549 need_lib_prefix=no
10550 ;;
10551 motorola)
10552 need_lib_prefix=no
10553 need_version=no
10554 shlibpath_overrides_runpath=no
10555 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10556 ;;
10557 esac
10558 ;;
10559
10560sysv4*MP*)
10561 if test -d /usr/nec ;then
10562 version_type=linux
10563 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10564 soname_spec='$libname${shared_ext}.$major'
10565 shlibpath_var=LD_LIBRARY_PATH
10566 fi
10567 ;;
10568
10569sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10570 version_type=freebsd-elf
10571 need_lib_prefix=no
10572 need_version=no
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10574 soname_spec='${libname}${release}${shared_ext}$major'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 shlibpath_overrides_runpath=yes
10577 hardcode_into_libs=yes
10578 if test "$with_gnu_ld" = yes; then
10579 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10580 else
10581 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10582 case $host_os in
10583 sco3.2v5*)
10584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10585 ;;
10586 esac
10587 fi
10588 sys_lib_dlsearch_path_spec='/usr/lib'
10589 ;;
10590
10591tpf*)
10592 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10593 version_type=linux
10594 need_lib_prefix=no
10595 need_version=no
1927a18f 10596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=no
10599 hardcode_into_libs=yes
10600 ;;
10601
10602uts4*)
10603 version_type=linux
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 ;;
d7040cdb 10608
dabbade6
L
10609*)
10610 dynamic_linker=no
10611 ;;
10612esac
81ecdfbb
RW
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10614$as_echo "$dynamic_linker" >&6; }
dabbade6 10615test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10616
dabbade6
L
10617variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10618if test "$GCC" = yes; then
10619 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10620fi
d7040cdb 10621
1927a18f
L
10622if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10623 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10624fi
10625if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10626 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10627fi
10628
d7040cdb 10629
d7040cdb
SE
10630
10631
d7040cdb
SE
10632
10633
d7040cdb
SE
10634
10635
d7040cdb
SE
10636
10637
d7040cdb
SE
10638
10639
d7040cdb 10640
d7040cdb 10641
d7040cdb 10642
d7040cdb 10643
d7040cdb 10644
d7040cdb 10645
d7040cdb 10646
d7040cdb 10647
d7040cdb 10648
d7040cdb 10649
d7040cdb 10650
d7040cdb 10651
d7040cdb 10652
d7040cdb 10653
d7040cdb
SE
10654
10655
d7040cdb 10656
d7040cdb 10657
d7040cdb 10658
d7040cdb 10659
d7040cdb 10660
d7040cdb 10661
d7040cdb 10662
d7040cdb 10663
d7040cdb 10664
d7040cdb
SE
10665
10666
d7040cdb 10667
d7040cdb 10668
d7040cdb 10669
d7040cdb
SE
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
d7040cdb
SE
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
d7040cdb 10699
d7040cdb 10700
dabbade6
L
10701
10702
10703
10704
10705
10706
10707
10708
3725885a
RW
10709
10710
10711
10712
10713
dabbade6
L
10714
10715
10716
10717
10718
10719
81ecdfbb
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10721$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
dabbade6
L
10722hardcode_action=
10723if test -n "$hardcode_libdir_flag_spec" ||
10724 test -n "$runpath_var" ||
10725 test "X$hardcode_automatic" = "Xyes" ; then
10726
10727 # We can hardcode non-existent directories.
10728 if test "$hardcode_direct" != no &&
10729 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10730 # have to relink, otherwise we might link with an installed library
10731 # when we should be linking with a yet-to-be-installed one
10732 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10733 test "$hardcode_minus_L" != no; then
10734 # Linking always hardcodes the temporary library directory.
10735 hardcode_action=relink
10736 else
10737 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10738 hardcode_action=immediate
10739 fi
10740else
10741 # We cannot hardcode anything, or else we can only hardcode existing
10742 # directories.
10743 hardcode_action=unsupported
10744fi
81ecdfbb
RW
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10746$as_echo "$hardcode_action" >&6; }
dabbade6
L
10747
10748if test "$hardcode_action" = relink ||
10749 test "$inherit_rpath" = yes; then
10750 # Fast installation is not supported
10751 enable_fast_install=no
10752elif test "$shlibpath_overrides_runpath" = yes ||
10753 test "$enable_shared" = no; then
10754 # Fast installation is not necessary
10755 enable_fast_install=needless
10756fi
10757
10758
10759
10760
10761
10762
10763 if test "x$enable_dlopen" != xyes; then
10764 enable_dlopen=unknown
10765 enable_dlopen_self=unknown
10766 enable_dlopen_self_static=unknown
10767else
10768 lt_cv_dlopen=no
10769 lt_cv_dlopen_libs=
10770
d7040cdb 10771 case $host_os in
dabbade6
L
10772 beos*)
10773 lt_cv_dlopen="load_add_on"
10774 lt_cv_dlopen_libs=
10775 lt_cv_dlopen_self=yes
d7040cdb
SE
10776 ;;
10777
1927a18f 10778 mingw* | pw32* | cegcc*)
dabbade6
L
10779 lt_cv_dlopen="LoadLibrary"
10780 lt_cv_dlopen_libs=
d7040cdb 10781 ;;
d7040cdb 10782
dabbade6
L
10783 cygwin*)
10784 lt_cv_dlopen="dlopen"
10785 lt_cv_dlopen_libs=
10786 ;;
d7040cdb 10787
dabbade6
L
10788 darwin*)
10789 # if libdl is installed we need to link against it
81ecdfbb
RW
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10791$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10792if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10793 $as_echo_n "(cached) " >&6
dabbade6
L
10794else
10795 ac_check_lib_save_LIBS=$LIBS
10796LIBS="-ldl $LIBS"
81ecdfbb 10797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10798/* end confdefs.h. */
d7040cdb 10799
81ecdfbb
RW
10800/* Override any GCC internal prototype to avoid an error.
10801 Use char because int might match the return type of a GCC
10802 builtin and then its argument prototype would still apply. */
dabbade6
L
10803#ifdef __cplusplus
10804extern "C"
10805#endif
dabbade6
L
10806char dlopen ();
10807int
10808main ()
10809{
81ecdfbb 10810return dlopen ();
dabbade6
L
10811 ;
10812 return 0;
10813}
10814_ACEOF
81ecdfbb 10815if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10816 ac_cv_lib_dl_dlopen=yes
10817else
81ecdfbb 10818 ac_cv_lib_dl_dlopen=no
d7040cdb 10819fi
81ecdfbb
RW
10820rm -f core conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10822LIBS=$ac_check_lib_save_LIBS
10823fi
81ecdfbb
RW
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10825$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10826if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
dabbade6
L
10827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10828else
d7040cdb 10829
dabbade6
L
10830 lt_cv_dlopen="dyld"
10831 lt_cv_dlopen_libs=
10832 lt_cv_dlopen_self=yes
d7040cdb 10833
81ecdfbb 10834fi
d7040cdb 10835
81ecdfbb
RW
10836 ;;
10837
10838 *)
10839 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10840if test "x$ac_cv_func_shl_load" = xyes; then :
81ecdfbb
RW
10841 lt_cv_dlopen="shl_load"
10842else
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10844$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10845if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb
RW
10846 $as_echo_n "(cached) " >&6
10847else
10848 ac_check_lib_save_LIBS=$LIBS
10849LIBS="-ldld $LIBS"
10850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851/* end confdefs.h. */
10852
10853/* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
dabbade6 10855 builtin and then its argument prototype would still apply. */
dabbade6 10856#ifdef __cplusplus
81ecdfbb 10857extern "C"
dabbade6 10858#endif
81ecdfbb 10859char shl_load ();
dabbade6
L
10860int
10861main ()
10862{
81ecdfbb 10863return shl_load ();
dabbade6
L
10864 ;
10865 return 0;
10866}
10867_ACEOF
81ecdfbb
RW
10868if ac_fn_c_try_link "$LINENO"; then :
10869 ac_cv_lib_dld_shl_load=yes
dabbade6 10870else
81ecdfbb 10871 ac_cv_lib_dld_shl_load=no
dabbade6 10872fi
81ecdfbb
RW
10873rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875LIBS=$ac_check_lib_save_LIBS
dabbade6 10876fi
81ecdfbb
RW
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10878$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10879if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
81ecdfbb
RW
10880 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10881else
10882 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10883if test "x$ac_cv_func_dlopen" = xyes; then :
dabbade6
L
10884 lt_cv_dlopen="dlopen"
10885else
81ecdfbb
RW
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10887$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10888if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10889 $as_echo_n "(cached) " >&6
dabbade6
L
10890else
10891 ac_check_lib_save_LIBS=$LIBS
10892LIBS="-ldl $LIBS"
81ecdfbb 10893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10894/* end confdefs.h. */
d7040cdb 10895
81ecdfbb
RW
10896/* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
dabbade6
L
10899#ifdef __cplusplus
10900extern "C"
10901#endif
dabbade6
L
10902char dlopen ();
10903int
10904main ()
10905{
81ecdfbb 10906return dlopen ();
dabbade6
L
10907 ;
10908 return 0;
10909}
10910_ACEOF
81ecdfbb 10911if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10912 ac_cv_lib_dl_dlopen=yes
10913else
81ecdfbb 10914 ac_cv_lib_dl_dlopen=no
dabbade6 10915fi
81ecdfbb
RW
10916rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10918LIBS=$ac_check_lib_save_LIBS
10919fi
81ecdfbb
RW
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10921$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10922if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
dabbade6
L
10923 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10924else
81ecdfbb
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10926$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10927if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10928 $as_echo_n "(cached) " >&6
dabbade6
L
10929else
10930 ac_check_lib_save_LIBS=$LIBS
10931LIBS="-lsvld $LIBS"
81ecdfbb 10932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10933/* end confdefs.h. */
d7040cdb 10934
81ecdfbb
RW
10935/* Override any GCC internal prototype to avoid an error.
10936 Use char because int might match the return type of a GCC
10937 builtin and then its argument prototype would still apply. */
dabbade6
L
10938#ifdef __cplusplus
10939extern "C"
10940#endif
dabbade6
L
10941char dlopen ();
10942int
10943main ()
10944{
81ecdfbb 10945return dlopen ();
dabbade6
L
10946 ;
10947 return 0;
10948}
10949_ACEOF
81ecdfbb 10950if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10951 ac_cv_lib_svld_dlopen=yes
10952else
81ecdfbb 10953 ac_cv_lib_svld_dlopen=no
dabbade6 10954fi
81ecdfbb
RW
10955rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10957LIBS=$ac_check_lib_save_LIBS
10958fi
81ecdfbb
RW
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10960$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10961if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
dabbade6
L
10962 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10963else
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10965$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10966if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 10967 $as_echo_n "(cached) " >&6
dabbade6
L
10968else
10969 ac_check_lib_save_LIBS=$LIBS
10970LIBS="-ldld $LIBS"
81ecdfbb 10971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10972/* end confdefs.h. */
d7040cdb 10973
81ecdfbb
RW
10974/* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
dabbade6
L
10977#ifdef __cplusplus
10978extern "C"
10979#endif
dabbade6
L
10980char dld_link ();
10981int
10982main ()
10983{
81ecdfbb 10984return dld_link ();
dabbade6
L
10985 ;
10986 return 0;
10987}
10988_ACEOF
81ecdfbb 10989if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10990 ac_cv_lib_dld_dld_link=yes
10991else
81ecdfbb 10992 ac_cv_lib_dld_dld_link=no
d7040cdb 10993fi
81ecdfbb
RW
10994rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
dabbade6 10996LIBS=$ac_check_lib_save_LIBS
d7040cdb 10997fi
81ecdfbb
RW
10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10999$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11000if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1927a18f 11001 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11002fi
11003
d7040cdb 11004
d7040cdb
SE
11005fi
11006
11007
dabbade6 11008fi
d7040cdb
SE
11009
11010
dabbade6 11011fi
d7040cdb
SE
11012
11013
d7040cdb
SE
11014fi
11015
979273e3 11016
252b5132 11017fi
252b5132 11018
dabbade6
L
11019 ;;
11020 esac
252b5132 11021
dabbade6
L
11022 if test "x$lt_cv_dlopen" != xno; then
11023 enable_dlopen=yes
11024 else
11025 enable_dlopen=no
11026 fi
1c0d3aa6 11027
dabbade6
L
11028 case $lt_cv_dlopen in
11029 dlopen)
11030 save_CPPFLAGS="$CPPFLAGS"
11031 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 11032
dabbade6
L
11033 save_LDFLAGS="$LDFLAGS"
11034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 11035
dabbade6
L
11036 save_LIBS="$LIBS"
11037 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 11038
81ecdfbb
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11040$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11041if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11042 $as_echo_n "(cached) " >&6
d7040cdb 11043else
dabbade6
L
11044 if test "$cross_compiling" = yes; then :
11045 lt_cv_dlopen_self=cross
d7040cdb 11046else
dabbade6
L
11047 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11048 lt_status=$lt_dlunknown
11049 cat > conftest.$ac_ext <<_LT_EOF
f908e960 11050#line 11050 "configure"
dabbade6 11051#include "confdefs.h"
20e95c23 11052
dabbade6
L
11053#if HAVE_DLFCN_H
11054#include <dlfcn.h>
11055#endif
20e95c23 11056
dabbade6 11057#include <stdio.h>
20e95c23 11058
dabbade6
L
11059#ifdef RTLD_GLOBAL
11060# define LT_DLGLOBAL RTLD_GLOBAL
11061#else
11062# ifdef DL_GLOBAL
11063# define LT_DLGLOBAL DL_GLOBAL
11064# else
11065# define LT_DLGLOBAL 0
11066# endif
11067#endif
20e95c23 11068
dabbade6
L
11069/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11070 find out it does not work in some platform. */
11071#ifndef LT_DLLAZY_OR_NOW
11072# ifdef RTLD_LAZY
11073# define LT_DLLAZY_OR_NOW RTLD_LAZY
11074# else
11075# ifdef DL_LAZY
11076# define LT_DLLAZY_OR_NOW DL_LAZY
11077# else
11078# ifdef RTLD_NOW
11079# define LT_DLLAZY_OR_NOW RTLD_NOW
11080# else
11081# ifdef DL_NOW
11082# define LT_DLLAZY_OR_NOW DL_NOW
11083# else
11084# define LT_DLLAZY_OR_NOW 0
11085# endif
11086# endif
11087# endif
11088# endif
11089#endif
20e95c23 11090
3725885a
RW
11091/* When -fvisbility=hidden is used, assume the code has been annotated
11092 correspondingly for the symbols needed. */
11093#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11094void fnord () __attribute__((visibility("default")));
11095#endif
11096
11097void fnord () { int i=42; }
dabbade6
L
11098int main ()
11099{
11100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11101 int status = $lt_dlunknown;
20e95c23 11102
dabbade6
L
11103 if (self)
11104 {
11105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11106 else
11107 {
11108 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11109 else puts (dlerror ());
11110 }
dabbade6
L
11111 /* dlclose (self); */
11112 }
11113 else
11114 puts (dlerror ());
d7040cdb 11115
1927a18f 11116 return status;
dabbade6
L
11117}
11118_LT_EOF
81ecdfbb 11119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11120 (eval $ac_link) 2>&5
11121 ac_status=$?
81ecdfbb
RW
11122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11123 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11124 (./conftest; exit; ) >&5 2>/dev/null
11125 lt_status=$?
11126 case x$lt_status in
11127 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11128 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11129 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11130 esac
11131 else :
11132 # compilation failed
11133 lt_cv_dlopen_self=no
11134 fi
d7040cdb 11135fi
dabbade6
L
11136rm -fr conftest*
11137
252b5132 11138
d7040cdb 11139fi
81ecdfbb
RW
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11141$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb 11142
dabbade6
L
11143 if test "x$lt_cv_dlopen_self" = xyes; then
11144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11146$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11147if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11148 $as_echo_n "(cached) " >&6
252b5132 11149else
dabbade6
L
11150 if test "$cross_compiling" = yes; then :
11151 lt_cv_dlopen_self_static=cross
d7040cdb 11152else
dabbade6
L
11153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11154 lt_status=$lt_dlunknown
11155 cat > conftest.$ac_ext <<_LT_EOF
f908e960 11156#line 11156 "configure"
dabbade6 11157#include "confdefs.h"
252b5132 11158
dabbade6
L
11159#if HAVE_DLFCN_H
11160#include <dlfcn.h>
11161#endif
252b5132 11162
dabbade6 11163#include <stdio.h>
d7040cdb 11164
dabbade6
L
11165#ifdef RTLD_GLOBAL
11166# define LT_DLGLOBAL RTLD_GLOBAL
11167#else
11168# ifdef DL_GLOBAL
11169# define LT_DLGLOBAL DL_GLOBAL
11170# else
11171# define LT_DLGLOBAL 0
11172# endif
11173#endif
20e95c23 11174
dabbade6
L
11175/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11176 find out it does not work in some platform. */
11177#ifndef LT_DLLAZY_OR_NOW
11178# ifdef RTLD_LAZY
11179# define LT_DLLAZY_OR_NOW RTLD_LAZY
11180# else
11181# ifdef DL_LAZY
11182# define LT_DLLAZY_OR_NOW DL_LAZY
11183# else
11184# ifdef RTLD_NOW
11185# define LT_DLLAZY_OR_NOW RTLD_NOW
11186# else
11187# ifdef DL_NOW
11188# define LT_DLLAZY_OR_NOW DL_NOW
11189# else
11190# define LT_DLLAZY_OR_NOW 0
11191# endif
11192# endif
11193# endif
11194# endif
11195#endif
979273e3 11196
3725885a
RW
11197/* When -fvisbility=hidden is used, assume the code has been annotated
11198 correspondingly for the symbols needed. */
11199#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11200void fnord () __attribute__((visibility("default")));
11201#endif
11202
11203void fnord () { int i=42; }
dabbade6
L
11204int main ()
11205{
11206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11207 int status = $lt_dlunknown;
d7040cdb 11208
dabbade6
L
11209 if (self)
11210 {
11211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11212 else
11213 {
11214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11215 else puts (dlerror ());
11216 }
dabbade6
L
11217 /* dlclose (self); */
11218 }
11219 else
11220 puts (dlerror ());
d7040cdb 11221
1927a18f 11222 return status;
dabbade6
L
11223}
11224_LT_EOF
81ecdfbb 11225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11226 (eval $ac_link) 2>&5
11227 ac_status=$?
81ecdfbb
RW
11228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11229 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11230 (./conftest; exit; ) >&5 2>/dev/null
11231 lt_status=$?
11232 case x$lt_status in
11233 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11234 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11235 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11236 esac
11237 else :
11238 # compilation failed
11239 lt_cv_dlopen_self_static=no
11240 fi
20e95c23 11241fi
dabbade6 11242rm -fr conftest*
979273e3 11243
d7040cdb
SE
11244
11245fi
81ecdfbb
RW
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11247$as_echo "$lt_cv_dlopen_self_static" >&6; }
dabbade6
L
11248 fi
11249
11250 CPPFLAGS="$save_CPPFLAGS"
11251 LDFLAGS="$save_LDFLAGS"
11252 LIBS="$save_LIBS"
11253 ;;
11254 esac
11255
11256 case $lt_cv_dlopen_self in
11257 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11258 *) enable_dlopen_self=unknown ;;
11259 esac
11260
11261 case $lt_cv_dlopen_self_static in
11262 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11263 *) enable_dlopen_self_static=unknown ;;
11264 esac
d7040cdb 11265fi
dabbade6
L
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283striplib=
11284old_striplib=
81ecdfbb
RW
11285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11286$as_echo_n "checking whether stripping libraries is possible... " >&6; }
dabbade6
L
11287if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11288 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11289 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291$as_echo "yes" >&6; }
d7040cdb 11292else
dabbade6
L
11293# FIXME - insert some real tests, host_os isn't really good enough
11294 case $host_os in
11295 darwin*)
11296 if test -n "$STRIP" ; then
11297 striplib="$STRIP -x"
11298 old_striplib="$STRIP -S"
81ecdfbb
RW
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11300$as_echo "yes" >&6; }
dabbade6 11301 else
81ecdfbb
RW
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303$as_echo "no" >&6; }
dabbade6
L
11304 fi
11305 ;;
11306 *)
81ecdfbb
RW
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308$as_echo "no" >&6; }
dabbade6
L
11309 ;;
11310 esac
d7040cdb 11311fi
20e95c23 11312
979273e3 11313
dabbade6
L
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324 # Report which library types will actually be built
81ecdfbb
RW
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11326$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11328$as_echo "$can_build_shared" >&6; }
dabbade6 11329
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11331$as_echo_n "checking whether to build shared libraries... " >&6; }
dabbade6
L
11332 test "$can_build_shared" = "no" && enable_shared=no
11333
11334 # On AIX, shared libraries and static libraries use the same namespace, and
11335 # are all built from PIC.
11336 case $host_os in
11337 aix3*)
11338 test "$enable_shared" = yes && enable_static=no
11339 if test -n "$RANLIB"; then
11340 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11341 postinstall_cmds='$RANLIB $lib'
11342 fi
11343 ;;
11344
50e7d84b 11345 aix[4-9]*)
dabbade6
L
11346 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11347 test "$enable_shared" = yes && enable_static=no
11348 fi
11349 ;;
11350 esac
81ecdfbb
RW
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11352$as_echo "$enable_shared" >&6; }
dabbade6 11353
81ecdfbb
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11355$as_echo_n "checking whether to build static libraries... " >&6; }
dabbade6
L
11356 # Make sure either enable_shared or enable_static is yes.
11357 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11359$as_echo "$enable_static" >&6; }
dabbade6
L
11360
11361
11362
d7040cdb 11363
252b5132 11364fi
dabbade6
L
11365ac_ext=c
11366ac_cpp='$CPP $CPPFLAGS'
11367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11369ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11370
dabbade6 11371CC="$lt_save_CC"
20e95c23 11372
20e95c23 11373
d7040cdb 11374
d7040cdb 11375
d7040cdb 11376
20e95c23 11377
dabbade6
L
11378
11379
11380
11381
11382
11383
11384
81ecdfbb 11385 ac_config_commands="$ac_config_commands libtool"
dabbade6
L
11386
11387
11388
11389
11390# Only expand once:
11391
11392
11393
43e05cd4
AM
11394ac_checking=
11395. ${srcdir}/../bfd/development.sh
11396test "$development" = true && ac_checking=yes
11397# Check whether --enable-checking was given.
11398if test "${enable_checking+set}" = set; then :
11399 enableval=$enable_checking; case "${enableval}" in
11400 no|none) ac_checking= ;;
11401 *) ac_checking=yes ;;
11402esac
11403fi
11404if test x$ac_checking != x ; then
11405
11406$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11407
11408fi
11409
81ecdfbb
RW
11410# Check whether --enable-targets was given.
11411if test "${enable_targets+set}" = set; then :
11412 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 11413 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
dabbade6
L
11414 ;;
11415 no) enable_targets= ;;
11416 *) enable_targets=$enableval ;;
11417esac
81ecdfbb
RW
11418fi
11419
dabbade6 11420
270c9937
JB
11421# Set the 'development' global.
11422. $srcdir/../bfd/development.sh
11423
c5da1932
VZ
11424# Set acp_cpp_for_build variable
11425ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
11426
9780e045 11427# Default set of GCC warnings to enable.
397841b5 11428GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 11429GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11430
11431# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11433/* end confdefs.h. */
11434__GNUC__
11435_ACEOF
11436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11437 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
11438
11439else
11440 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11441fi
11442rm -f conftest*
11443
dabbade6 11444
9780e045
NC
11445# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447/* end confdefs.h. */
11448__GNUC__
11449_ACEOF
11450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11451 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
11452
11453else
11454 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11455fi
11456rm -f conftest*
11457
11458
6757cf57
TS
11459# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11460WARN_WRITE_STRINGS=""
11461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462/* end confdefs.h. */
11463__GNUC__
11464_ACEOF
11465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 11466 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
11467
11468else
11469 WARN_WRITE_STRINGS="-Wwrite-strings"
11470fi
11471rm -f conftest*
11472
9780e045 11473
96fe4562 11474# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
11475
11476# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478/* end confdefs.h. */
11479__GNUC__
11480_ACEOF
11481if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 11482 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
11483
11484else
11485 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
11486fi
11487rm -f conftest*
11488
11489
11490# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h. */
11493__GNUC__
11494_ACEOF
11495if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 11496 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
11497
11498else
11499 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
11500fi
11501rm -f conftest*
11502
11503
81ecdfbb
RW
11504# Check whether --enable-werror was given.
11505if test "${enable_werror+set}" = set; then :
11506 enableval=$enable_werror; case "${enableval}" in
dabbade6
L
11507 yes | y) ERROR_ON_WARNING="yes" ;;
11508 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11509 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
dabbade6 11510 esac
81ecdfbb
RW
11511fi
11512
dabbade6 11513
397841b5 11514# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11515case "${host}" in
11516 *-*-mingw32*)
11517 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11518 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 11519 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
11520 fi
11521 ;;
11522 *) ;;
11523esac
11524
270c9937
JB
11525# Enable -Werror by default when using gcc. Turn it off for releases.
11526if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
dabbade6 11527 ERROR_ON_WARNING=yes
d7040cdb 11528fi
20e95c23 11529
dabbade6
L
11530NO_WERROR=
11531if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 11532 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 11533 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
dabbade6 11534 NO_WERROR="-Wno-error"
20e95c23 11535fi
d7040cdb 11536
dabbade6
L
11537if test "${GCC}" = yes ; then
11538 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 11539 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
dabbade6 11540fi
d7040cdb 11541
81ecdfbb
RW
11542# Check whether --enable-build-warnings was given.
11543if test "${enable_build_warnings+set}" = set; then :
11544 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
11545 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11546 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
dabbade6
L
11547 no) if test "${GCC}" = yes ; then
11548 WARN_CFLAGS="-w"
c5da1932 11549 WARN_CFLAGS_FOR_BUILD="-w"
dabbade6
L
11550 fi;;
11551 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
11552 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
11553 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
dabbade6 11554 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
11555 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
11556 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
11557 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
11558 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
dabbade6 11559esac
81ecdfbb
RW
11560fi
11561
979273e3 11562
dabbade6
L
11563if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11564 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11565fi
dabbade6
L
11566
11567
11568
11569
6757cf57 11570
c5da1932 11571
dabbade6 11572
81ecdfbb 11573ac_config_headers="$ac_config_headers config.h:config.in"
dabbade6
L
11574
11575
df7b86aa
NC
11576# PR 14072
11577
11578
dabbade6 11579if test -z "$target" ; then
d0ac1c44 11580 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb 11581fi
dabbade6 11582
81ecdfbb
RW
11583
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11585$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11586 # Check whether --enable-maintainer-mode was given.
11587if test "${enable_maintainer_mode+set}" = set; then :
11588 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb 11589else
dabbade6 11590 USE_MAINTAINER_MODE=no
81ecdfbb 11591fi
d7040cdb 11592
81ecdfbb
RW
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11594$as_echo "$USE_MAINTAINER_MODE" >&6; }
11595 if test $USE_MAINTAINER_MODE = yes; then
dabbade6
L
11596 MAINTAINER_MODE_TRUE=
11597 MAINTAINER_MODE_FALSE='#'
252b5132 11598else
dabbade6
L
11599 MAINTAINER_MODE_TRUE='#'
11600 MAINTAINER_MODE_FALSE=
252b5132 11601fi
d7040cdb 11602
dabbade6
L
11603 MAINT=$MAINTAINER_MODE_TRUE
11604
11605
11606 case ${build_alias} in
11607 "") build_noncanonical=${build} ;;
11608 *) build_noncanonical=${build_alias} ;;
11609esac
11610
11611 case ${host_alias} in
11612 "") host_noncanonical=${build_noncanonical} ;;
11613 *) host_noncanonical=${host_alias} ;;
11614esac
979273e3 11615
dabbade6
L
11616 case ${target_alias} in
11617 "") target_noncanonical=${host_noncanonical} ;;
11618 *) target_noncanonical=${target_alias} ;;
d7040cdb 11619esac
252b5132 11620
81ecdfbb
RW
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11622$as_echo_n "checking whether to install libbfd... " >&6; }
11623 # Check whether --enable-install-libbfd was given.
11624if test "${enable_install_libbfd+set}" = set; then :
11625 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
979273e3 11626else
dabbade6
L
11627 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11628 install_libbfd_p=yes
11629 else
11630 install_libbfd_p=no
11631 fi
81ecdfbb 11632fi
d7040cdb 11633
81ecdfbb
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11635$as_echo "$install_libbfd_p" >&6; }
11636 if test $install_libbfd_p = yes; then
dabbade6
L
11637 INSTALL_LIBBFD_TRUE=
11638 INSTALL_LIBBFD_FALSE='#'
11639else
11640 INSTALL_LIBBFD_TRUE='#'
11641 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11642fi
11643
dabbade6 11644 # Need _noncanonical variables for this.
979273e3 11645
d7040cdb
SE
11646
11647
dabbade6
L
11648
11649 # libbfd.a is a host library containing target dependent code
11650 bfdlibdir='$(libdir)'
11651 bfdincludedir='$(includedir)'
11652 if test "${host}" != "${target}"; then
11653 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11654 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11655 fi
11656
11657
11658
11659
11660
11661
573e8a1c
RW
11662
11663
dabbade6
L
11664# host-specific stuff:
11665
e184813f 11666ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN"
d7040cdb
SE
11667# If we haven't got the data from the intl directory,
11668# assume NLS is disabled.
11669USE_NLS=no
11670LIBINTL=
11671LIBINTL_DEP=
11672INCINTL=
11673XGETTEXT=
11674GMSGFMT=
11675POSUB=
11676
11677if test -f ../intl/config.intl; then
11678 . ../intl/config.intl
11679fi
81ecdfbb
RW
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11681$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11682if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
d7040cdb 11685else
81ecdfbb
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687$as_echo "yes" >&6; }
d7040cdb 11688
81ecdfbb 11689$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11690
11691
81ecdfbb
RW
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11693$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11694 # Look for .po and .gmo files in the source directory.
11695 CATALOGS=
11696 XLINGUAS=
11697 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11698 # If there aren't any .gmo files the shell will give us the
11699 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11700 # weeded out.
11701 case "$cat" in *\**)
11702 continue;;
11703 esac
11704 # The quadruple backslash is collapsed to a double backslash
11705 # by the backticks, then collapsed again by the double quotes,
11706 # leaving us with one backslash in the sed expression (right
11707 # before the dot that mustn't act as a wildcard).
11708 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11709 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11710 # The user is allowed to set LINGUAS to a list of languages to
11711 # install catalogs for. If it's empty that means "all of them."
11712 if test "x$LINGUAS" = x; then
11713 CATALOGS="$CATALOGS $cat"
11714 XLINGUAS="$XLINGUAS $lang"
11715 else
11716 case "$LINGUAS" in *$lang*)
11717 CATALOGS="$CATALOGS $cat"
11718 XLINGUAS="$XLINGUAS $lang"
11719 ;;
11720 esac
11721 fi
11722 done
11723 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11725$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11726
11727
11728 DATADIRNAME=share
11729
11730 INSTOBJEXT=.mo
11731
11732 GENCAT=gencat
11733
11734 CATOBJEXT=.gmo
11735
11736fi
11737
11738 MKINSTALLDIRS=
11739 if test -n "$ac_aux_dir"; then
11740 case "$ac_aux_dir" in
11741 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11742 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11743 esac
11744 fi
11745 if test -z "$MKINSTALLDIRS"; then
11746 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11747 fi
11748
11749
11750
81ecdfbb
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11752$as_echo_n "checking whether NLS is requested... " >&6; }
11753 # Check whether --enable-nls was given.
11754if test "${enable_nls+set}" = set; then :
11755 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11756else
11757 USE_NLS=yes
81ecdfbb
RW
11758fi
11759
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11761$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11762
11763
11764
11765
11766
11767
11768# Prepare PATH_SEPARATOR.
11769# The user is always right.
11770if test "${PATH_SEPARATOR+set}" != set; then
11771 echo "#! /bin/sh" >conf$$.sh
11772 echo "exit 0" >>conf$$.sh
11773 chmod +x conf$$.sh
11774 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11775 PATH_SEPARATOR=';'
11776 else
11777 PATH_SEPARATOR=:
11778 fi
11779 rm -f conf$$.sh
11780fi
979273e3 11781
d7040cdb
SE
11782# Find out how to test for executable files. Don't use a zero-byte file,
11783# as systems may use methods other than mode bits to determine executability.
11784cat >conf$$.file <<_ASEOF
11785#! /bin/sh
11786exit 0
11787_ASEOF
11788chmod +x conf$$.file
11789if test -x conf$$.file >/dev/null 2>&1; then
11790 ac_executable_p="test -x"
252b5132 11791else
d7040cdb 11792 ac_executable_p="test -f"
252b5132 11793fi
d7040cdb 11794rm -f conf$$.file
252b5132 11795
d7040cdb
SE
11796# Extract the first word of "msgfmt", so it can be a program name with args.
11797set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11800if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 11801 $as_echo_n "(cached) " >&6
252b5132 11802else
d7040cdb
SE
11803 case "$MSGFMT" in
11804 [\\/]* | ?:[\\/]*)
11805 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11806 ;;
11807 *)
11808 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11809 for ac_dir in $PATH; do
11810 IFS="$ac_save_IFS"
11811 test -z "$ac_dir" && ac_dir=.
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11814 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11815 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11816 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11817 break 2
11818 fi
11819 fi
11820 done
11821 done
11822 IFS="$ac_save_IFS"
11823 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11824 ;;
11825esac
11826fi
11827MSGFMT="$ac_cv_path_MSGFMT"
11828if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11830$as_echo "$MSGFMT" >&6; }
d7040cdb 11831else
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
252b5132
RH
11834fi
11835
d7040cdb
SE
11836 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11837set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11839$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11840if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 11841 $as_echo_n "(cached) " >&6
20e95c23 11842else
d7040cdb
SE
11843 case $GMSGFMT in
11844 [\\/]* | ?:[\\/]*)
11845 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11846 ;;
11847 *)
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849for as_dir in $PATH
11850do
11851 IFS=$as_save_IFS
11852 test -z "$as_dir" && as_dir=.
81ecdfbb 11853 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 11855 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11857 break 2
11858 fi
11859done
81ecdfbb
RW
11860 done
11861IFS=$as_save_IFS
252b5132 11862
d7040cdb
SE
11863 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11864 ;;
11865esac
11866fi
11867GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11868if test -n "$GMSGFMT"; then
81ecdfbb
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11870$as_echo "$GMSGFMT" >&6; }
252b5132 11871else
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
252b5132
RH
11874fi
11875
11876
20e95c23 11877
81ecdfbb 11878
d7040cdb
SE
11879# Prepare PATH_SEPARATOR.
11880# The user is always right.
11881if test "${PATH_SEPARATOR+set}" != set; then
11882 echo "#! /bin/sh" >conf$$.sh
11883 echo "exit 0" >>conf$$.sh
11884 chmod +x conf$$.sh
11885 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11886 PATH_SEPARATOR=';'
11887 else
11888 PATH_SEPARATOR=:
11889 fi
11890 rm -f conf$$.sh
252b5132
RH
11891fi
11892
d7040cdb
SE
11893# Find out how to test for executable files. Don't use a zero-byte file,
11894# as systems may use methods other than mode bits to determine executability.
11895cat >conf$$.file <<_ASEOF
11896#! /bin/sh
11897exit 0
11898_ASEOF
11899chmod +x conf$$.file
11900if test -x conf$$.file >/dev/null 2>&1; then
11901 ac_executable_p="test -x"
11902else
11903 ac_executable_p="test -f"
11904fi
11905rm -f conf$$.file
20e95c23 11906
d7040cdb
SE
11907# Extract the first word of "xgettext", so it can be a program name with args.
11908set dummy xgettext; ac_word=$2
81ecdfbb
RW
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11911if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 11912 $as_echo_n "(cached) " >&6
252b5132 11913else
d7040cdb
SE
11914 case "$XGETTEXT" in
11915 [\\/]* | ?:[\\/]*)
11916 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11917 ;;
11918 *)
11919 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11920 for ac_dir in $PATH; do
11921 IFS="$ac_save_IFS"
11922 test -z "$ac_dir" && ac_dir=.
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11925 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11926 (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
11927 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11928 break 2
11929 fi
11930 fi
11931 done
11932 done
11933 IFS="$ac_save_IFS"
11934 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11935 ;;
11936esac
20e95c23 11937fi
d7040cdb
SE
11938XGETTEXT="$ac_cv_path_XGETTEXT"
11939if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11941$as_echo "$XGETTEXT" >&6; }
d7040cdb 11942else
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
d7040cdb
SE
11945fi
11946
11947 rm -f messages.po
11948
979273e3 11949
d7040cdb
SE
11950# Prepare PATH_SEPARATOR.
11951# The user is always right.
11952if test "${PATH_SEPARATOR+set}" != set; then
11953 echo "#! /bin/sh" >conf$$.sh
11954 echo "exit 0" >>conf$$.sh
11955 chmod +x conf$$.sh
11956 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11957 PATH_SEPARATOR=';'
11958 else
11959 PATH_SEPARATOR=:
11960 fi
11961 rm -f conf$$.sh
252b5132 11962fi
979273e3 11963
d7040cdb
SE
11964# Find out how to test for executable files. Don't use a zero-byte file,
11965# as systems may use methods other than mode bits to determine executability.
11966cat >conf$$.file <<_ASEOF
11967#! /bin/sh
11968exit 0
11969_ASEOF
11970chmod +x conf$$.file
11971if test -x conf$$.file >/dev/null 2>&1; then
11972 ac_executable_p="test -x"
252b5132 11973else
d7040cdb
SE
11974 ac_executable_p="test -f"
11975fi
11976rm -f conf$$.file
252b5132 11977
d7040cdb
SE
11978# Extract the first word of "msgmerge", so it can be a program name with args.
11979set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11981$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11982if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 11983 $as_echo_n "(cached) " >&6
252b5132 11984else
d7040cdb
SE
11985 case "$MSGMERGE" in
11986 [\\/]* | ?:[\\/]*)
11987 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11988 ;;
11989 *)
11990 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11991 for ac_dir in $PATH; do
11992 IFS="$ac_save_IFS"
11993 test -z "$ac_dir" && ac_dir=.
11994 for ac_exec_ext in '' $ac_executable_extensions; do
11995 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11996 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11997 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11998 break 2
11999 fi
12000 fi
12001 done
12002 done
12003 IFS="$ac_save_IFS"
12004 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12005 ;;
12006esac
20e95c23 12007fi
d7040cdb
SE
12008MSGMERGE="$ac_cv_path_MSGMERGE"
12009if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12011$as_echo "$MSGMERGE" >&6; }
d7040cdb 12012else
81ecdfbb
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
20e95c23 12015fi
252b5132 12016
979273e3 12017
d7040cdb
SE
12018 if test "$GMSGFMT" != ":"; then
12019 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12020 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12021 : ;
12022 else
12023 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12025$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12026 GMSGFMT=":"
12027 fi
12028 fi
979273e3 12029
d7040cdb
SE
12030 if test "$XGETTEXT" != ":"; then
12031 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12032 (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
12033 : ;
12034 else
81ecdfbb
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12036$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12037 XGETTEXT=":"
12038 fi
12039 rm -f messages.po
12040 fi
979273e3 12041
81ecdfbb 12042 ac_config_commands="$ac_config_commands default-1"
979273e3 12043
979273e3 12044
979273e3 12045
81ecdfbb 12046. ${srcdir}/../bfd/configure.host
252b5132 12047
81ecdfbb
RW
12048# Put a plausible default for CC_FOR_BUILD in Makefile.
12049if test -z "$CC_FOR_BUILD"; then
12050 if test "x$cross_compiling" = "xno"; then
12051 CC_FOR_BUILD='$(CC)'
12052 else
12053 CC_FOR_BUILD=gcc
12054 fi
12055fi
252b5132 12056
81ecdfbb
RW
12057# Also set EXEEXT_FOR_BUILD.
12058if test "x$cross_compiling" = "xno"; then
12059 EXEEXT_FOR_BUILD='$(EXEEXT)'
4bd60896 12060else
81ecdfbb
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12062$as_echo_n "checking for build system executable suffix... " >&6; }
d0ac1c44 12063if ${bfd_cv_build_exeext+:} false; then :
81ecdfbb 12064 $as_echo_n "(cached) " >&6
4bd60896 12065else
81ecdfbb
RW
12066 rm -f conftest*
12067 echo 'int main () { return 0; }' > conftest.c
12068 bfd_cv_build_exeext=
12069 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12070 for file in conftest.*; do
12071 case $file in
12072 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12073 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12074 esac
12075 done
12076 rm -f conftest*
12077 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4bd60896 12078fi
81ecdfbb
RW
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12080$as_echo "$bfd_cv_build_exeext" >&6; }
12081 EXEEXT_FOR_BUILD=""
12082 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4bd60896 12083fi
4bd60896 12084
1d5269c9
MF
12085# Check whether --enable-64-bit-bfd was given.
12086if test "${enable_64_bit_bfd+set}" = set; then :
12087 enableval=$enable_64_bit_bfd; case $enableval in #(
12088 yes|no) :
12089 ;; #(
12090 *) :
12091 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
12092 *) :
12093 ;;
12094esac
12095else
12096 enable_64_bit_bfd=no
12097fi
12098
12099
12100if test "x$enable_64_bit_bfd" = "xno"; then :
12101 # The cast to long int works around a bug in the HP C Compiler
12102# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12103# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12104# This bug is HP SR number 8606223364.
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12106$as_echo_n "checking size of void *... " >&6; }
12107if ${ac_cv_sizeof_void_p+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109else
12110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12111
12112else
12113 if test "$ac_cv_type_void_p" = yes; then
12114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12116as_fn_error 77 "cannot compute sizeof (void *)
12117See \`config.log' for more details" "$LINENO" 5; }
12118 else
12119 ac_cv_sizeof_void_p=0
12120 fi
12121fi
12122
12123fi
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12125$as_echo "$ac_cv_sizeof_void_p" >&6; }
12126
12127
12128
12129cat >>confdefs.h <<_ACEOF
12130#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12131_ACEOF
12132
12133
12134 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
12135 enable_64_bit_bfd=yes
12136fi
12137
12138fi
12139
12140 if test "x$enable_64_bit_bfd" = "xyes"; then
12141 ENABLE_BFD_64_BIT_TRUE=
12142 ENABLE_BFD_64_BIT_FALSE='#'
12143else
12144 ENABLE_BFD_64_BIT_TRUE='#'
12145 ENABLE_BFD_64_BIT_FALSE=
12146fi
12147
12148
4bd60896
JG
12149
12150
81ecdfbb
RW
12151
12152
81ecdfbb 12153ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
d0ac1c44 12154if test "x$ac_cv_have_decl_basename" = xyes; then :
81ecdfbb
RW
12155 ac_have_decl=1
12156else
12157 ac_have_decl=0
dabbade6 12158fi
dabbade6
L
12159
12160cat >>confdefs.h <<_ACEOF
81ecdfbb 12161#define HAVE_DECL_BASENAME $ac_have_decl
dabbade6 12162_ACEOF
81ecdfbb 12163ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 12164if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
81ecdfbb 12165 ac_have_decl=1
dabbade6 12166else
81ecdfbb 12167 ac_have_decl=0
4bd60896
JG
12168fi
12169
81ecdfbb
RW
12170cat >>confdefs.h <<_ACEOF
12171#define HAVE_DECL_STPCPY $ac_have_decl
12172_ACEOF
4bd60896
JG
12173
12174
8df14d78
L
12175# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12176# since sigsetjmp might only be defined as a macro.
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12178$as_echo_n "checking for sigsetjmp... " >&6; }
d0ac1c44 12179if ${gdb_cv_func_sigsetjmp+:} false; then :
8df14d78
L
12180 $as_echo_n "(cached) " >&6
12181else
12182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183/* end confdefs.h. */
12184
12185#include <setjmp.h>
12186
12187int
12188main ()
12189{
12190sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12191 ;
12192 return 0;
12193}
12194_ACEOF
12195if ac_fn_c_try_compile "$LINENO"; then :
12196 bfd_cv_func_sigsetjmp=yes
12197else
12198 bfd_cv_func_sigsetjmp=no
12199fi
12200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12203$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12204if test $bfd_cv_func_sigsetjmp = yes; then
12205
12206$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12207
12208fi
12209
6e31aea3
BE
12210cgen_maint=no
12211cgendir='$(srcdir)/../cgen'
12212
81ecdfbb
RW
12213# Check whether --enable-cgen-maint was given.
12214if test "${enable_cgen_maint+set}" = set; then :
12215 enableval=$enable_cgen_maint; case "${enableval}" in
6e31aea3
BE
12216 yes) cgen_maint=yes ;;
12217 no) cgen_maint=no ;;
12218 *)
7fb45a68
AB
12219 # Argument is a directory where cgen can be found. In some
12220 # future world cgen could be installable, but right now this
12221 # is not the case. Instead we assume the directory is a path
12222 # to the cgen source tree.
6e31aea3 12223 cgen_maint=yes
7fb45a68
AB
12224 if test -r ${enableval}/iformat.scm; then
12225 # This looks like a cgen source tree.
12226 cgendir=${enableval}
12227 else
12228 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5
12229 fi
6e31aea3
BE
12230 ;;
12231esac
81ecdfbb
RW
12232fi
12233 if test x${cgen_maint} = xyes; then
6e31aea3
BE
12234 CGEN_MAINT_TRUE=
12235 CGEN_MAINT_FALSE='#'
12236else
12237 CGEN_MAINT_TRUE='#'
12238 CGEN_MAINT_FALSE=
12239fi
12240
252b5132 12241
8ae85421 12242
252b5132
RH
12243using_cgen=no
12244
51dec227 12245# Check if linker supports --as-needed and --no-as-needed options
81ecdfbb
RW
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12247$as_echo_n "checking linker --as-needed support... " >&6; }
d0ac1c44 12248if ${bfd_cv_ld_as_needed+:} false; then :
81ecdfbb 12249 $as_echo_n "(cached) " >&6
51dec227
AM
12250else
12251 bfd_cv_ld_as_needed=no
12252 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12253 bfd_cv_ld_as_needed=yes
12254 fi
12255
12256fi
81ecdfbb
RW
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12258$as_echo "$bfd_cv_ld_as_needed" >&6; }
51dec227
AM
12259
12260LIBM=
12261case $host in
3725885a 12262*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
51dec227
AM
12263 # These system don't have libm, or don't need it
12264 ;;
12265*-ncr-sysv4.3*)
81ecdfbb
RW
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12267$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
d0ac1c44 12268if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
81ecdfbb 12269 $as_echo_n "(cached) " >&6
51dec227
AM
12270else
12271 ac_check_lib_save_LIBS=$LIBS
12272LIBS="-lmw $LIBS"
81ecdfbb 12273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12274/* end confdefs.h. */
12275
81ecdfbb
RW
12276/* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
51dec227
AM
12279#ifdef __cplusplus
12280extern "C"
12281#endif
51dec227
AM
12282char _mwvalidcheckl ();
12283int
12284main ()
12285{
81ecdfbb 12286return _mwvalidcheckl ();
51dec227
AM
12287 ;
12288 return 0;
12289}
12290_ACEOF
81ecdfbb 12291if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12292 ac_cv_lib_mw__mwvalidcheckl=yes
12293else
81ecdfbb 12294 ac_cv_lib_mw__mwvalidcheckl=no
51dec227 12295fi
81ecdfbb
RW
12296rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12298LIBS=$ac_check_lib_save_LIBS
12299fi
81ecdfbb
RW
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12301$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
d0ac1c44 12302if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
51dec227
AM
12303 LIBM="-lmw"
12304fi
12305
81ecdfbb
RW
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12307$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 12308if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 12309 $as_echo_n "(cached) " >&6
51dec227
AM
12310else
12311 ac_check_lib_save_LIBS=$LIBS
12312LIBS="-lm $LIBS"
81ecdfbb 12313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12314/* end confdefs.h. */
12315
81ecdfbb
RW
12316/* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
51dec227
AM
12319#ifdef __cplusplus
12320extern "C"
12321#endif
51dec227
AM
12322char cos ();
12323int
12324main ()
12325{
81ecdfbb 12326return cos ();
51dec227
AM
12327 ;
12328 return 0;
12329}
12330_ACEOF
81ecdfbb 12331if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12332 ac_cv_lib_m_cos=yes
12333else
81ecdfbb 12334 ac_cv_lib_m_cos=no
51dec227 12335fi
81ecdfbb
RW
12336rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12338LIBS=$ac_check_lib_save_LIBS
12339fi
81ecdfbb
RW
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12341$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 12342if test "x$ac_cv_lib_m_cos" = xyes; then :
51dec227
AM
12343 LIBM="$LIBM -lm"
12344fi
12345
12346 ;;
12347*)
81ecdfbb
RW
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12349$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 12350if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 12351 $as_echo_n "(cached) " >&6
51dec227
AM
12352else
12353 ac_check_lib_save_LIBS=$LIBS
12354LIBS="-lm $LIBS"
81ecdfbb 12355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12356/* end confdefs.h. */
12357
81ecdfbb
RW
12358/* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
51dec227
AM
12361#ifdef __cplusplus
12362extern "C"
12363#endif
51dec227
AM
12364char cos ();
12365int
12366main ()
12367{
81ecdfbb 12368return cos ();
51dec227
AM
12369 ;
12370 return 0;
12371}
12372_ACEOF
81ecdfbb 12373if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12374 ac_cv_lib_m_cos=yes
12375else
81ecdfbb 12376 ac_cv_lib_m_cos=no
51dec227 12377fi
81ecdfbb
RW
12378rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12380LIBS=$ac_check_lib_save_LIBS
12381fi
81ecdfbb
RW
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12383$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 12384if test "x$ac_cv_lib_m_cos" = xyes; then :
51dec227
AM
12385 LIBM="-lm"
12386fi
12387
12388 ;;
12389esac
12390
12391
12392
2eee5593
AM
12393#Libs for generator progs
12394if test "x$cross_compiling" = "xno"; then
12395 BUILD_LIBS=../libiberty/libiberty.a
12396 BUILD_LIB_DEPS=$BUILD_LIBS
12397else
12398 # if cross-compiling, assume that the system provides -liberty
12399 # and that the version is compatible with new headers.
12400 BUILD_LIBS=-liberty
12401 BUILD_LIB_DEPS=
12402fi
12403BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12404BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12405
12406
12407
12408
45d42143
NC
12409# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12410SHARED_LDFLAGS=
12411SHARED_LIBADD=
12412SHARED_DEPENDENCIES=
12413if test "$enable_shared" = "yes"; then
29670fb9
AM
12414# When building a shared libopcodes, link against the pic version of libiberty
12415# so that apps that use libopcodes won't need libiberty just to satisfy any
12416# libopcodes references.
12417# We can't do that if a pic libiberty is unavailable since including non-pic
12418# code would insert text relocations into libopcodes.
12419# Note that linking against libbfd as we do here, which is itself linked
12420# against libiberty, may not satisfy all the libopcodes libiberty references
12421# since libbfd may not pull in the entirety of libiberty.
95148614
NA
12422# Also, jam libintl into the right place in all of this: after libiberty,
12423# which uses it, but before -lcygwin, which it uses.
29670fb9
AM
12424 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12425 if test -n "$x"; then
12426 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12427 fi
95148614
NA
12428fi
12429
12430SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
29670fb9 12431
95148614 12432if test "$enable_shared" = "yes"; then
45d42143
NC
12433 case "${host}" in
12434 *-*-cygwin*)
12435 SHARED_LDFLAGS="-no-undefined"
95148614 12436 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD"
45d42143
NC
12437 ;;
12438 *)
2b677209 12439 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}"
4267b19f 12440 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12441 ;;
12442 esac
51dec227
AM
12443
12444 if test -n "$SHARED_LIBADD"; then
12445 if test -n "$LIBM"; then
12446 if test x"$bfd_cv_ld_as_needed" = xyes; then
12447 # Link against libm only when needed. Put -lc, -lm inside -Wl
12448 # to stop libtool reordering these options.
12449 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12450 else
12451 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12452 fi
12453 fi
12454 fi
45d42143
NC
12455fi
12456
252b5132
RH
12457
12458
12459
12460# target-specific stuff:
12461
12462# Canonicalize the secondary target names.
12463if test -n "$enable_targets" ; then
12464 for targ in `echo $enable_targets | sed 's/,/ /g'`
12465 do
6d83c84b 12466 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12467 if test -n "$result" ; then
12468 canon_targets="$canon_targets $result"
12469 else
12470 # Allow targets that config.sub doesn't recognize, like "all".
12471 canon_targets="$canon_targets $targ"
12472 fi
12473 done
12474fi
12475
12476all_targets=false
12477selarchs=
12478for targ in $target $canon_targets
12479do
12480 if test "x$targ" = "xall" ; then
12481 all_targets=true
12482 else
12483 . $srcdir/../bfd/config.bfd
12484 selarchs="$selarchs $targ_archs"
12485 fi
979273e3 12486done
252b5132
RH
12487
12488# Utility var, documents generic cgen support files.
12489
3609e0fe 12490cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12491
12492# We don't do any links based on the target system, just makefile config.
12493
12494if test x${all_targets} = xfalse ; then
12495
12496 # Target architecture .o files.
12497 ta=
12498
12499 for arch in $selarchs
12500 do
12501 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12502 archdefs="$archdefs -DARCH_$ad"
12503 case "$arch" in
a06ea964 12504 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 12505 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12506 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12507 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12508 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12509 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3843081d 12510 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
54711280 12511 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
3843081d 12512 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
b8891f8d 12513 bfd_csky_arch) ta="$ta csky-dis.lo" ;;
252b5132
RH
12514 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12515 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12516 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
3843081d
JBG
12517 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12518 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
3f8107ab 12519 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
20135e4c 12520 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
252b5132 12521 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
252b5132 12522 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
7b6d09fb 12523 bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch)
8a9036a4 12524 ta="$ta i386-dis.lo i386-opc.lo" ;;
800eeca4 12525 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12526 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
48891606 12527 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
12528 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12529 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 12530 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12531 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
12532 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12533 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
48891606 12534 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
6927f982 12535 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
7e9ca91e 12536 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;;
252b5132 12537 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
252b5132 12538 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12539 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
a3c62988 12540 bfd_metag_arch) ta="$ta metag-dis.lo" ;;
7ba29e2a 12541 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
df58fc94 12542 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
3c3bdf30 12543 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12544 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12545 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12546 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
34c911a4 12547 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
35c08157 12548 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
fe944acf 12549 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;;
36591ba1 12550 bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;;
252b5132 12551 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
73589c9d 12552 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
e135f41b 12553 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
3843081d 12554 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12555 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12556 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11146849 12557 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;;
5dd0794d 12558 bfd_pyramid_arch) ;;
252b5132 12559 bfd_romp_arch) ;;
e23eba97 12560 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;;
252b5132 12561 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
99c513f6 12562 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
c7927a3c 12563 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
a85d7ed0 12564 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
3843081d 12565 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
211dc24b 12566 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12567 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12568 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132 12569 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3843081d 12570 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12571 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
40b36596 12572 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
aa137e4d
NC
12573 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
12574 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
252b5132
RH
12575 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12576 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12577 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
de863c74 12578 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
252b5132 12579 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
1945cfa5 12580 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
62ecb94c 12581 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;;
3843081d
JBG
12582 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12583 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
93fbbb04 12584 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12585 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12586 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132 12587 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
79472b45 12588 bfd_bpf_arch) ta="$ta bpf-asm.lo bpf-desc.lo bpf-dis.lo bpf-ibld.lo bpf-opc.lo" using_cgen=yes ;;
6cc76c40 12589 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;;
252b5132
RH
12590
12591 "") ;;
d0ac1c44 12592 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;;
252b5132
RH
12593 esac
12594 done
12595
12596 if test $using_cgen = yes ; then
12597 ta="$ta $cgen_files"
12598 fi
12599
12600 # Weed out duplicate .o files.
12601 f=""
12602 for i in $ta ; do
12603 case " $f " in
12604 *" $i "*) ;;
12605 *) f="$f $i" ;;
12606 esac
12607 done
12608 ta="$f"
12609
12610 # And duplicate -D flags.
12611 f=""
12612 for i in $archdefs ; do
12613 case " $f " in
12614 *" $i "*) ;;
12615 *) f="$f $i" ;;
12616 esac
12617 done
12618 archdefs="$f"
12619
12620 BFD_MACHINES="$ta"
12621
12622else # all_targets is true
12623 archdefs=-DARCH_all
1d5269c9 12624 if test "$enable_64_bit_bfd" = "yes" ; then
0b32f05b
AM
12625 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
12626 else
12627 BFD_MACHINES='$(ALL32_MACHINES)'
12628 fi
252b5132
RH
12629fi
12630
12631
12632
12633
81ecdfbb 12634ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
979273e3 12635
979273e3 12636cat >confcache <<\_ACEOF
252b5132
RH
12637# This file is a shell script that caches the results of configure
12638# tests run on this system so they can be shared between configure
979273e3
NN
12639# scripts and configure runs, see configure's option --config-cache.
12640# It is not useful on other systems. If it contains results you don't
12641# want to keep, you may remove or edit it.
252b5132 12642#
979273e3
NN
12643# config.status only pays attention to the cache file if you give it
12644# the --recheck option to rerun configure.
252b5132 12645#
979273e3
NN
12646# `ac_cv_env_foo' variables (set or unset) will be overridden when
12647# loading this file, other *unset* `ac_cv_foo' will be assigned the
12648# following values.
12649
12650_ACEOF
12651
252b5132
RH
12652# The following way of writing the cache mishandles newlines in values,
12653# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12654# So, we kill variables containing newlines.
252b5132
RH
12655# Ultrix sh set writes to stderr and can't be redirected directly,
12656# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12657(
12658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12659 eval ac_val=\$$ac_var
12660 case $ac_val in #(
12661 *${as_nl}*)
12662 case $ac_var in #(
12663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12665 esac
12666 case $ac_var in #(
12667 _ | IFS | as_nl) ;; #(
12668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12669 *) { eval $ac_var=; unset $ac_var;} ;;
12670 esac ;;
12671 esac
12672 done
12673
979273e3 12674 (set) 2>&1 |
81ecdfbb
RW
12675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12676 *${as_nl}ac_space=\ *)
12677 # `set' does not quote correctly, so add quotes: double-quote
12678 # substitution turns \\\\ into \\, and sed turns \\ into \.
979273e3
NN
12679 sed -n \
12680 "s/'/'\\\\''/g;
12681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12682 ;; #(
979273e3
NN
12683 *)
12684 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 12686 ;;
81ecdfbb
RW
12687 esac |
12688 sort
12689) |
979273e3 12690 sed '
81ecdfbb 12691 /^ac_cv_env_/b end
979273e3 12692 t clear
81ecdfbb 12693 :clear
979273e3
NN
12694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12695 t end
81ecdfbb
RW
12696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12697 :end' >>confcache
12698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12699 if test -w "$cache_file"; then
d0ac1c44 12700 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12702$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12703 if test ! -f "$cache_file" || test -h "$cache_file"; then
12704 cat confcache >"$cache_file"
12705 else
12706 case $cache_file in #(
12707 */* | ?:*)
12708 mv -f confcache "$cache_file"$$ &&
12709 mv -f "$cache_file"$$ "$cache_file" ;; #(
12710 *)
12711 mv -f confcache "$cache_file" ;;
12712 esac
12713 fi
12714 fi
252b5132 12715 else
81ecdfbb
RW
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12717$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
252b5132
RH
12718 fi
12719fi
12720rm -f confcache
12721
252b5132
RH
12722test "x$prefix" = xNONE && prefix=$ac_default_prefix
12723# Let make expand exec_prefix.
12724test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12725
252b5132
RH
12726DEFS=-DHAVE_CONFIG_H
12727
979273e3
NN
12728ac_libobjs=
12729ac_ltlibobjs=
d0ac1c44 12730U=
979273e3
NN
12731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12732 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12734 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12736 # will be set to the directory where LIBOBJS objects are built.
12737 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12738 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
979273e3
NN
12739done
12740LIBOBJS=$ac_libobjs
252b5132 12741
979273e3
NN
12742LTLIBOBJS=$ac_ltlibobjs
12743
12744
d0ac1c44
SM
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12746$as_echo_n "checking that generated files are newer than configure... " >&6; }
12747 if test -n "$am_sleep_pid"; then
12748 # Hide warnings about reused PIDs.
12749 wait $am_sleep_pid 2>/dev/null
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12752$as_echo "done" >&6; }
81ecdfbb
RW
12753 if test -n "$EXEEXT"; then
12754 am__EXEEXT_TRUE=
12755 am__EXEEXT_FALSE='#'
12756else
12757 am__EXEEXT_TRUE='#'
12758 am__EXEEXT_FALSE=
8ae85421 12759fi
81ecdfbb 12760
ab2af25e
AM
12761if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12762 as_fn_error $? "conditional \"AMDEP\" was never defined.
12763Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764fi
12765if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12766 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12767Usually this means the macro was only invoked conditionally." "$LINENO" 5
12768fi
8ae85421 12769if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12770 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 12771Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12772fi
12773if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
d0ac1c44 12774 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
81ecdfbb 12775Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421 12776fi
1d5269c9
MF
12777if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
12778 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
12779Usually this means the macro was only invoked conditionally." "$LINENO" 5
12780fi
8ae85421 12781if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
d0ac1c44 12782 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined.
81ecdfbb 12783Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421 12784fi
979273e3 12785
d0ac1c44 12786: "${CONFIG_STATUS=./config.status}"
81ecdfbb 12787ac_write_fail=0
979273e3
NN
12788ac_clean_files_save=$ac_clean_files
12789ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12791$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12792as_write_fail=0
12793cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
979273e3
NN
12794#! $SHELL
12795# Generated by $as_me.
252b5132 12796# Run this file to recreate the current configuration.
252b5132 12797# Compiler output produced by configure, useful for debugging
979273e3 12798# configure, is in config.log if it exists.
252b5132 12799
979273e3
NN
12800debug=false
12801ac_cs_recheck=false
12802ac_cs_silent=false
979273e3 12803
81ecdfbb
RW
12804SHELL=\${CONFIG_SHELL-$SHELL}
12805export SHELL
12806_ASEOF
12807cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12808## -------------------- ##
12809## M4sh Initialization. ##
12810## -------------------- ##
979273e3 12811
81ecdfbb
RW
12812# Be more Bourne compatible
12813DUALCASE=1; export DUALCASE # for MKS sh
12814if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
979273e3
NN
12815 emulate sh
12816 NULLCMD=:
81ecdfbb 12817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
12818 # is contrary to our usage. Disable this feature.
12819 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12820 setopt NO_GLOB_SUBST
12821else
12822 case `(set -o) 2>/dev/null` in #(
12823 *posix*) :
12824 set -o posix ;; #(
12825 *) :
12826 ;;
12827esac
979273e3 12828fi
979273e3 12829
81ecdfbb
RW
12830
12831as_nl='
12832'
12833export as_nl
12834# Printing a long string crashes Solaris 7 /usr/bin/printf.
12835as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12836as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12837as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12838# Prefer a ksh shell builtin over an external printf program on Solaris,
12839# but without wasting forks for bash or zsh.
12840if test -z "$BASH_VERSION$ZSH_VERSION" \
12841 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12842 as_echo='print -r --'
12843 as_echo_n='print -rn --'
12844elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12845 as_echo='printf %s\n'
12846 as_echo_n='printf %s'
12847else
12848 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12849 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12850 as_echo_n='/usr/ucb/echo -n'
12851 else
12852 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12853 as_echo_n_body='eval
12854 arg=$1;
12855 case $arg in #(
12856 *"$as_nl"*)
12857 expr "X$arg" : "X\\(.*\\)$as_nl";
12858 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12859 esac;
12860 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12861 '
12862 export as_echo_n_body
12863 as_echo_n='sh -c $as_echo_n_body as_echo'
12864 fi
12865 export as_echo_body
12866 as_echo='sh -c $as_echo_body as_echo'
12867fi
12868
12869# The user is always right.
12870if test "${PATH_SEPARATOR+set}" != set; then
12871 PATH_SEPARATOR=:
12872 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12873 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12874 PATH_SEPARATOR=';'
12875 }
979273e3
NN
12876fi
12877
12878
81ecdfbb
RW
12879# IFS
12880# We need space, tab and new line, in precisely that order. Quoting is
12881# there to prevent editors from complaining about space-tab.
12882# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12883# splitting by setting IFS to empty value.)
12884IFS=" "" $as_nl"
12885
12886# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12887as_myself=
81ecdfbb
RW
12888case $0 in #((
12889 *[\\/]* ) as_myself=$0 ;;
12890 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891for as_dir in $PATH
12892do
12893 IFS=$as_save_IFS
12894 test -z "$as_dir" && as_dir=.
12895 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12896 done
12897IFS=$as_save_IFS
12898
12899 ;;
12900esac
12901# We did not find ourselves, most probably we were run as `sh COMMAND'
12902# in which case we are not to be found in the path.
12903if test "x$as_myself" = x; then
12904 as_myself=$0
12905fi
12906if test ! -f "$as_myself"; then
12907 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12908 exit 1
12909fi
12910
12911# Unset variables that we do not need and which cause bugs (e.g. in
12912# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12913# suppresses any "Segmentation fault" message there. '((' could
12914# trigger a bug in pdksh 5.2.14.
12915for as_var in BASH_ENV ENV MAIL MAILPATH
12916do eval test x\${$as_var+set} = xset \
12917 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12918done
979273e3
NN
12919PS1='$ '
12920PS2='> '
12921PS4='+ '
12922
12923# NLS nuisances.
81ecdfbb
RW
12924LC_ALL=C
12925export LC_ALL
12926LANGUAGE=C
12927export LANGUAGE
12928
12929# CDPATH.
12930(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12931
12932
d0ac1c44
SM
12933# as_fn_error STATUS ERROR [LINENO LOG_FD]
12934# ----------------------------------------
81ecdfbb
RW
12935# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12936# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12937# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
12938as_fn_error ()
12939{
d0ac1c44
SM
12940 as_status=$1; test $as_status -eq 0 && as_status=1
12941 if test "$4"; then
12942 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12943 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
979273e3 12944 fi
d0ac1c44 12945 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12946 as_fn_exit $as_status
12947} # as_fn_error
12948
12949
12950# as_fn_set_status STATUS
12951# -----------------------
12952# Set $? to STATUS, without forking.
12953as_fn_set_status ()
12954{
12955 return $1
12956} # as_fn_set_status
12957
12958# as_fn_exit STATUS
12959# -----------------
12960# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12961as_fn_exit ()
12962{
12963 set +e
12964 as_fn_set_status $1
12965 exit $1
12966} # as_fn_exit
12967
12968# as_fn_unset VAR
12969# ---------------
12970# Portably unset VAR.
12971as_fn_unset ()
12972{
12973 { eval $1=; unset $1;}
12974}
12975as_unset=as_fn_unset
12976# as_fn_append VAR VALUE
12977# ----------------------
12978# Append the text in VALUE to the end of the definition contained in VAR. Take
12979# advantage of any shell optimizations that allow amortized linear growth over
12980# repeated appends, instead of the typical quadratic growth present in naive
12981# implementations.
12982if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12983 eval 'as_fn_append ()
12984 {
12985 eval $1+=\$2
12986 }'
12987else
12988 as_fn_append ()
12989 {
12990 eval $1=\$$1\$2
12991 }
12992fi # as_fn_append
12993
12994# as_fn_arith ARG...
12995# ------------------
12996# Perform arithmetic evaluation on the ARGs, and store the result in the
12997# global $as_val. Take advantage of shells that can avoid forks. The arguments
12998# must be portable across $(()) and expr.
12999if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13000 eval 'as_fn_arith ()
13001 {
13002 as_val=$(( $* ))
13003 }'
13004else
13005 as_fn_arith ()
13006 {
13007 as_val=`expr "$@" || test $? -eq 1`
13008 }
13009fi # as_fn_arith
13010
252b5132 13011
81ecdfbb
RW
13012if expr a : '\(a\)' >/dev/null 2>&1 &&
13013 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
13014 as_expr=expr
13015else
13016 as_expr=false
13017fi
13018
81ecdfbb 13019if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
979273e3
NN
13020 as_basename=basename
13021else
13022 as_basename=false
13023fi
252b5132 13024
81ecdfbb
RW
13025if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13026 as_dirname=dirname
13027else
13028 as_dirname=false
13029fi
252b5132 13030
81ecdfbb 13031as_me=`$as_basename -- "$0" ||
979273e3
NN
13032$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13033 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13034 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13035$as_echo X/"$0" |
13036 sed '/^.*\/\([^/][^/]*\)\/*$/{
13037 s//\1/
13038 q
13039 }
13040 /^X\/\(\/\/\)$/{
13041 s//\1/
13042 q
13043 }
13044 /^X\/\(\/\).*/{
13045 s//\1/
13046 q
13047 }
13048 s/.*/./; q'`
252b5132 13049
979273e3
NN
13050# Avoid depending upon Character Ranges.
13051as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13052as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13053as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13054as_cr_digits='0123456789'
13055as_cr_alnum=$as_cr_Letters$as_cr_digits
13056
81ecdfbb
RW
13057ECHO_C= ECHO_N= ECHO_T=
13058case `echo -n x` in #(((((
13059-n*)
13060 case `echo 'xy\c'` in
13061 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13062 xy) ECHO_C='\c';;
13063 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13064 ECHO_T=' ';;
13065 esac;;
13066*)
13067 ECHO_N='-n';;
979273e3
NN
13068esac
13069
81ecdfbb
RW
13070rm -f conf$$ conf$$.exe conf$$.file
13071if test -d conf$$.dir; then
13072 rm -f conf$$.dir/conf$$.file
979273e3 13073else
81ecdfbb
RW
13074 rm -f conf$$.dir
13075 mkdir conf$$.dir 2>/dev/null
979273e3 13076fi
81ecdfbb
RW
13077if (echo >conf$$.file) 2>/dev/null; then
13078 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 13079 as_ln_s='ln -s'
81ecdfbb
RW
13080 # ... but there are two gotchas:
13081 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13082 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 13083 # In both cases, we have to default to `cp -pR'.
81ecdfbb 13084 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 13085 as_ln_s='cp -pR'
81ecdfbb
RW
13086 elif ln conf$$.file conf$$ 2>/dev/null; then
13087 as_ln_s=ln
13088 else
d0ac1c44 13089 as_ln_s='cp -pR'
252b5132 13090 fi
979273e3 13091else
d0ac1c44 13092 as_ln_s='cp -pR'
979273e3 13093fi
81ecdfbb
RW
13094rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13095rmdir conf$$.dir 2>/dev/null
13096
13097
13098# as_fn_mkdir_p
13099# -------------
13100# Create "$as_dir" as a directory, including parents if necessary.
13101as_fn_mkdir_p ()
13102{
13103
13104 case $as_dir in #(
13105 -*) as_dir=./$as_dir;;
13106 esac
13107 test -d "$as_dir" || eval $as_mkdir_p || {
13108 as_dirs=
13109 while :; do
13110 case $as_dir in #(
13111 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13112 *) as_qdir=$as_dir;;
13113 esac
13114 as_dirs="'$as_qdir' $as_dirs"
13115 as_dir=`$as_dirname -- "$as_dir" ||
13116$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13117 X"$as_dir" : 'X\(//\)[^/]' \| \
13118 X"$as_dir" : 'X\(//\)$' \| \
13119 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13120$as_echo X"$as_dir" |
13121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13122 s//\1/
13123 q
13124 }
13125 /^X\(\/\/\)[^/].*/{
13126 s//\1/
13127 q
13128 }
13129 /^X\(\/\/\)$/{
13130 s//\1/
13131 q
13132 }
13133 /^X\(\/\).*/{
13134 s//\1/
13135 q
13136 }
13137 s/.*/./; q'`
13138 test -d "$as_dir" && break
13139 done
13140 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 13141 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
979273e3 13142
81ecdfbb
RW
13143
13144} # as_fn_mkdir_p
979273e3 13145if mkdir -p . 2>/dev/null; then
81ecdfbb 13146 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
13147else
13148 test -d ./-p && rmdir ./-p
13149 as_mkdir_p=false
13150fi
13151
d0ac1c44
SM
13152
13153# as_fn_executable_p FILE
13154# -----------------------
13155# Test if FILE is an executable regular file.
13156as_fn_executable_p ()
13157{
13158 test -f "$1" && test -x "$1"
13159} # as_fn_executable_p
13160as_test_x='test -x'
13161as_executable_p=as_fn_executable_p
979273e3
NN
13162
13163# Sed expression to map a string onto a valid CPP name.
13164as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13165
13166# Sed expression to map a string onto a valid variable name.
13167as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13168
13169
979273e3 13170exec 6>&1
81ecdfbb
RW
13171## ----------------------------------- ##
13172## Main body of $CONFIG_STATUS script. ##
13173## ----------------------------------- ##
13174_ASEOF
13175test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
979273e3 13176
81ecdfbb
RW
13177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13178# Save the log message, to keep $0 and so on meaningful, and to
979273e3 13179# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13180# values after options handling.
13181ac_log="
f908e960 13182This file was extended by opcodes $as_me 2.38.50, which was
d0ac1c44 13183generated by GNU Autoconf 2.69. Invocation command line was
979273e3
NN
13184
13185 CONFIG_FILES = $CONFIG_FILES
13186 CONFIG_HEADERS = $CONFIG_HEADERS
13187 CONFIG_LINKS = $CONFIG_LINKS
13188 CONFIG_COMMANDS = $CONFIG_COMMANDS
13189 $ $0 $@
13190
81ecdfbb
RW
13191on `(hostname || uname -n) 2>/dev/null | sed 1q`
13192"
13193
979273e3
NN
13194_ACEOF
13195
81ecdfbb
RW
13196case $ac_config_files in *"
13197"*) set x $ac_config_files; shift; ac_config_files=$*;;
13198esac
979273e3 13199
81ecdfbb
RW
13200case $ac_config_headers in *"
13201"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13202esac
979273e3 13203
979273e3 13204
81ecdfbb
RW
13205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13206# Files that config.status was made for.
13207config_files="$ac_config_files"
13208config_headers="$ac_config_headers"
13209config_commands="$ac_config_commands"
979273e3 13210
81ecdfbb 13211_ACEOF
979273e3 13212
81ecdfbb 13213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13214ac_cs_usage="\
81ecdfbb
RW
13215\`$as_me' instantiates files and other configuration actions
13216from templates according to the current configuration. Unless the files
13217and actions are specified as TAGs, all are instantiated by default.
979273e3 13218
81ecdfbb 13219Usage: $0 [OPTION]... [TAG]...
979273e3
NN
13220
13221 -h, --help print this help, then exit
81ecdfbb 13222 -V, --version print version number and configuration settings, then exit
d0ac1c44 13223 --config print configuration, then exit
81ecdfbb
RW
13224 -q, --quiet, --silent
13225 do not print progress messages
979273e3
NN
13226 -d, --debug don't remove temporary files
13227 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13228 --file=FILE[:TEMPLATE]
13229 instantiate the configuration file FILE
13230 --header=FILE[:TEMPLATE]
13231 instantiate the configuration header FILE
979273e3
NN
13232
13233Configuration files:
13234$config_files
13235
13236Configuration headers:
13237$config_headers
13238
13239Configuration commands:
13240$config_commands
13241
81ecdfbb 13242Report bugs to the package provider."
979273e3 13243
81ecdfbb
RW
13244_ACEOF
13245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13246ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
979273e3 13247ac_cs_version="\\
f908e960 13248opcodes config.status 2.38.50
d0ac1c44
SM
13249configured by $0, generated by GNU Autoconf 2.69,
13250 with options \\"\$ac_cs_config\\"
979273e3 13251
d0ac1c44 13252Copyright (C) 2012 Free Software Foundation, Inc.
979273e3
NN
13253This config.status script is free software; the Free Software Foundation
13254gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13255
13256ac_pwd='$ac_pwd'
13257srcdir='$srcdir'
13258INSTALL='$INSTALL'
13259MKDIR_P='$MKDIR_P'
13260AWK='$AWK'
13261test -n "\$AWK" || AWK=awk
979273e3
NN
13262_ACEOF
13263
81ecdfbb
RW
13264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13265# The default lists apply if the user does not specify any file.
979273e3
NN
13266ac_need_defaults=:
13267while test $# != 0
13268do
13269 case $1 in
d0ac1c44 13270 --*=?*)
81ecdfbb
RW
13271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13272 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
979273e3
NN
13273 ac_shift=:
13274 ;;
d0ac1c44
SM
13275 --*=)
13276 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13277 ac_optarg=
13278 ac_shift=:
13279 ;;
81ecdfbb 13280 *)
979273e3
NN
13281 ac_option=$1
13282 ac_optarg=$2
13283 ac_shift=shift
13284 ;;
979273e3
NN
13285 esac
13286
13287 case $ac_option in
13288 # Handling of the options.
979273e3
NN
13289 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13290 ac_cs_recheck=: ;;
81ecdfbb
RW
13291 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13292 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
13293 --config | --confi | --conf | --con | --co | --c )
13294 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 13295 --debug | --debu | --deb | --de | --d | -d )
979273e3
NN
13296 debug=: ;;
13297 --file | --fil | --fi | --f )
13298 $ac_shift
81ecdfbb
RW
13299 case $ac_optarg in
13300 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 13301 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
13302 esac
13303 as_fn_append CONFIG_FILES " '$ac_optarg'"
979273e3
NN
13304 ac_need_defaults=false;;
13305 --header | --heade | --head | --hea )
13306 $ac_shift
81ecdfbb
RW
13307 case $ac_optarg in
13308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13309 esac
13310 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
979273e3 13311 ac_need_defaults=false;;
81ecdfbb
RW
13312 --he | --h)
13313 # Conflict between --help and --header
d0ac1c44 13314 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
13315Try \`$0 --help' for more information.";;
13316 --help | --hel | -h )
13317 $as_echo "$ac_cs_usage"; exit ;;
979273e3
NN
13318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13319 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13320 ac_cs_silent=: ;;
13321
13322 # This is an error.
d0ac1c44 13323 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 13324Try \`$0 --help' for more information." ;;
979273e3 13325
81ecdfbb
RW
13326 *) as_fn_append ac_config_targets " $1"
13327 ac_need_defaults=false ;;
979273e3
NN
13328
13329 esac
13330 shift
252b5132 13331done
979273e3
NN
13332
13333ac_configure_extra_args=
13334
13335if $ac_cs_silent; then
13336 exec 6>/dev/null
13337 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13338fi
252b5132 13339
979273e3 13340_ACEOF
81ecdfbb 13341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13342if \$ac_cs_recheck; then
d0ac1c44 13343 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
13344 shift
13345 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13346 CONFIG_SHELL='$SHELL'
13347 export CONFIG_SHELL
13348 exec "\$@"
979273e3 13349fi
252b5132 13350
979273e3 13351_ACEOF
81ecdfbb
RW
13352cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13353exec 5>>config.log
13354{
13355 echo
13356 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13357## Running $as_me. ##
13358_ASBOX
13359 $as_echo "$ac_log"
13360} >&5
979273e3 13361
81ecdfbb
RW
13362_ACEOF
13363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13364#
81ecdfbb 13365# INIT-COMMANDS
979273e3 13366#
8ae85421 13367AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13368
13369
13370# The HP-UX ksh and POSIX shell print the target directory to stdout
13371# if CDPATH is set.
13372(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13373
13374sed_quote_subst='$sed_quote_subst'
13375double_quote_subst='$double_quote_subst'
13376delay_variable_subst='$delay_variable_subst'
3725885a
RW
13377enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13378macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13379macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13380enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13381pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13382enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13383SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13384ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13385host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13386host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13387host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13388build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13389build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13390build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13391SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13392Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13393GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13394EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13395FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13396LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13397NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13398LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13399max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13400ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13401exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13402lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13403lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13404lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13405reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13406reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13407OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13408deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13409file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13410AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13411AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13412STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13413RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13414old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13415old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13416old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13417lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13418CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13419CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13420compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13421GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13422lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13423lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13424lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13425lt_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"`'
13426objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13427MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13428lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13429lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13430lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13431lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13432lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13433need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13434DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13435NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13436LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13437OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13438OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13439libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13440shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13441extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13442archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13443enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13444export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13445whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13446compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13447old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13448old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13449archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13450archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13451module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13452module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13453with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13454allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13455no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13456hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13457hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13458hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13459hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13460hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13461hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13462hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13463hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13464inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13465link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13466fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13467always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13468export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13469exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13470include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13471prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13472file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13473variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13474need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13475need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13476version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13477runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13478shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13479shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13480libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13481library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13482soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13483install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13484postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13485postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13486finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13487finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13488hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13489sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13490sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13491hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13492enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13493enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13494enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13495old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13496striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13497
13498LTCC='$LTCC'
13499LTCFLAGS='$LTCFLAGS'
13500compiler='$compiler_DEFAULT'
13501
3725885a
RW
13502# A function that is used when there is no print builtin or printf.
13503func_fallback_echo ()
13504{
13505 eval 'cat <<_LTECHO_EOF
13506\$1
13507_LTECHO_EOF'
13508}
13509
d7040cdb 13510# Quote evaled strings.
3725885a
RW
13511for var in SHELL \
13512ECHO \
13513SED \
d7040cdb
SE
13514GREP \
13515EGREP \
13516FGREP \
13517LD \
13518NM \
13519LN_S \
13520lt_SP2NL \
13521lt_NL2SP \
13522reload_flag \
1927a18f 13523OBJDUMP \
d7040cdb
SE
13524deplibs_check_method \
13525file_magic_cmd \
13526AR \
13527AR_FLAGS \
13528STRIP \
13529RANLIB \
13530CC \
13531CFLAGS \
13532compiler \
13533lt_cv_sys_global_symbol_pipe \
13534lt_cv_sys_global_symbol_to_cdecl \
13535lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13536lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13537lt_prog_compiler_no_builtin_flag \
13538lt_prog_compiler_wl \
13539lt_prog_compiler_pic \
13540lt_prog_compiler_static \
13541lt_cv_prog_compiler_c_o \
13542need_locks \
1927a18f
L
13543DSYMUTIL \
13544NMEDIT \
13545LIPO \
13546OTOOL \
13547OTOOL64 \
d7040cdb
SE
13548shrext_cmds \
13549export_dynamic_flag_spec \
13550whole_archive_flag_spec \
13551compiler_needs_object \
13552with_gnu_ld \
13553allow_undefined_flag \
13554no_undefined_flag \
13555hardcode_libdir_flag_spec \
13556hardcode_libdir_flag_spec_ld \
13557hardcode_libdir_separator \
13558fix_srcfile_path \
13559exclude_expsyms \
13560include_expsyms \
13561file_list_spec \
13562variables_saved_for_relink \
13563libname_spec \
13564library_names_spec \
13565soname_spec \
3725885a 13566install_override_mode \
d7040cdb
SE
13567finish_eval \
13568old_striplib \
13569striplib; do
3725885a 13570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13571 *[\\\\\\\`\\"\\\$]*)
3725885a 13572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13573 ;;
13574 *)
13575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13576 ;;
13577 esac
13578done
13579
13580# Double-quote double-evaled strings.
13581for var in reload_cmds \
13582old_postinstall_cmds \
13583old_postuninstall_cmds \
13584old_archive_cmds \
13585extract_expsyms_cmds \
13586old_archive_from_new_cmds \
13587old_archive_from_expsyms_cmds \
13588archive_cmds \
13589archive_expsym_cmds \
13590module_cmds \
13591module_expsym_cmds \
13592export_symbols_cmds \
13593prelink_cmds \
13594postinstall_cmds \
13595postuninstall_cmds \
13596finish_cmds \
13597sys_lib_search_path_spec \
13598sys_lib_dlsearch_path_spec; do
3725885a 13599 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13600 *[\\\\\\\`\\"\\\$]*)
3725885a 13601 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13602 ;;
13603 *)
13604 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13605 ;;
13606 esac
13607done
13608
d7040cdb
SE
13609ac_aux_dir='$ac_aux_dir'
13610xsi_shell='$xsi_shell'
13611lt_shell_append='$lt_shell_append'
13612
13613# See if we are running on zsh, and set the options which allow our
13614# commands through without removal of \ escapes INIT.
13615if test -n "\${ZSH_VERSION+set}" ; then
13616 setopt NO_GLOB_SUBST
13617fi
13618
13619
13620 PACKAGE='$PACKAGE'
13621 VERSION='$VERSION'
13622 TIMESTAMP='$TIMESTAMP'
13623 RM='$RM'
13624 ofile='$ofile'
13625
13626
13627
20e95c23
DJ
13628# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13629 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13630 # from automake.
13631 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13632 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13633 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13634
13635
13636_ACEOF
13637
81ecdfbb 13638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13639
81ecdfbb 13640# Handling of arguments.
979273e3
NN
13641for ac_config_target in $ac_config_targets
13642do
81ecdfbb
RW
13643 case $ac_config_target in
13644 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13645 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13646 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13647 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13648 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13649 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13650
d0ac1c44 13651 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132 13652 esac
979273e3 13653done
252b5132 13654
81ecdfbb 13655
979273e3
NN
13656# If the user did not use the arguments to specify the items to instantiate,
13657# then the envvar interface is used. Set only those that are not.
13658# We use the long form for the default assignment because of an extremely
13659# bizarre bug on SunOS 4.1.3.
13660if $ac_need_defaults; then
13661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13664fi
13665
13666# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13667# simply because there is no reason against having it here, and in addition,
979273e3 13668# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13669# Hook for its removal unless debugging.
13670# Note that there is a small window in which the directory will not be cleaned:
13671# after its creation but before its name has been assigned to `$tmp'.
979273e3
NN
13672$debug ||
13673{
d0ac1c44 13674 tmp= ac_tmp=
81ecdfbb 13675 trap 'exit_status=$?
d0ac1c44
SM
13676 : "${ac_tmp:=$tmp}"
13677 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13678' 0
13679 trap 'as_fn_exit 1' 1 2 13 15
979273e3 13680}
979273e3
NN
13681# Create a (secure) tmp directory for tmp files.
13682
13683{
81ecdfbb 13684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13685 test -d "$tmp"
979273e3
NN
13686} ||
13687{
81ecdfbb
RW
13688 tmp=./conf$$-$RANDOM
13689 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13690} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13691ac_tmp=$tmp
81ecdfbb
RW
13692
13693# Set up the scripts for CONFIG_FILES section.
13694# No need to generate them if there are no CONFIG_FILES.
13695# This happens for instance with `./config.status config.h'.
13696if test -n "$CONFIG_FILES"; then
13697
13698
13699ac_cr=`echo X | tr X '\015'`
13700# On cygwin, bash can eat \r inside `` if the user requested igncr.
13701# But we know of no other shell where ac_cr would be empty at this
13702# point, so we can use a bashism as a fallback.
13703if test "x$ac_cr" = x; then
13704 eval ac_cr=\$\'\\r\'
13705fi
13706ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13707if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13708 ac_cs_awk_cr='\\r'
81ecdfbb
RW
13709else
13710 ac_cs_awk_cr=$ac_cr
13711fi
13712
d0ac1c44 13713echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
13714_ACEOF
13715
13716
13717{
13718 echo "cat >conf$$subs.awk <<_ACEOF" &&
13719 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13720 echo "_ACEOF"
13721} >conf$$subs.sh ||
d0ac1c44
SM
13722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13723ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
13724ac_delim='%!_!# '
13725for ac_last_try in false false false false false :; do
13726 . ./conf$$subs.sh ||
d0ac1c44 13727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13728
13729 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13730 if test $ac_delim_n = $ac_delim_num; then
13731 break
13732 elif $ac_last_try; then
d0ac1c44 13733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13734 else
13735 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13736 fi
13737done
13738rm -f conf$$subs.sh
13739
13740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13741cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
13742_ACEOF
13743sed -n '
13744h
13745s/^/S["/; s/!.*/"]=/
13746p
13747g
13748s/^[^!]*!//
13749:repl
13750t repl
13751s/'"$ac_delim"'$//
13752t delim
13753:nl
13754h
d0ac1c44 13755s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13756t more1
13757s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13758p
13759n
13760b repl
13761:more1
13762s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13763p
13764g
13765s/.\{148\}//
13766t nl
13767:delim
13768h
d0ac1c44 13769s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13770t more2
13771s/["\\]/\\&/g; s/^/"/; s/$/"/
13772p
13773b
13774:more2
13775s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13776p
13777g
13778s/.\{148\}//
13779t delim
13780' <conf$$subs.awk | sed '
13781/^[^""]/{
13782 N
13783 s/\n//
13784}
13785' >>$CONFIG_STATUS || ac_write_fail=1
13786rm -f conf$$subs.awk
13787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13788_ACAWK
d0ac1c44 13789cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
13790 for (key in S) S_is_set[key] = 1
13791 FS = "\a"
13792
13793}
979273e3 13794{
81ecdfbb
RW
13795 line = $ 0
13796 nfields = split(line, field, "@")
13797 substed = 0
13798 len = length(field[1])
13799 for (i = 2; i < nfields; i++) {
13800 key = field[i]
13801 keylen = length(key)
13802 if (S_is_set[key]) {
13803 value = S[key]
13804 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13805 len += length(value) + length(field[++i])
13806 substed = 1
13807 } else
13808 len += 1 + keylen
13809 }
13810
13811 print line
979273e3
NN
13812}
13813
81ecdfbb
RW
13814_ACAWK
13815_ACEOF
13816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13817if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13818 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13819else
13820 cat
d0ac1c44
SM
13821fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13822 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
979273e3
NN
13823_ACEOF
13824
d0ac1c44
SM
13825# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13826# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
13827# trailing colons and then remove the whole line if VPATH becomes empty
13828# (actually we leave an empty line to preserve line numbers).
13829if test "x$srcdir" = x.; then
d0ac1c44
SM
13830 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13831h
13832s///
13833s/^/:/
13834s/[ ]*$/:/
13835s/:\$(srcdir):/:/g
13836s/:\${srcdir}:/:/g
13837s/:@srcdir@:/:/g
13838s/^:*//
81ecdfbb 13839s/:*$//
d0ac1c44
SM
13840x
13841s/\(=[ ]*\).*/\1/
13842G
13843s/\n//
81ecdfbb
RW
13844s/^[^=]*=[ ]*$//
13845}'
13846fi
13847
13848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13849fi # test -n "$CONFIG_FILES"
979273e3 13850
81ecdfbb
RW
13851# Set up the scripts for CONFIG_HEADERS section.
13852# No need to generate them if there are no CONFIG_HEADERS.
13853# This happens for instance with `./config.status Makefile'.
13854if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13855cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
13856BEGIN {
13857_ACEOF
979273e3 13858
81ecdfbb
RW
13859# Transform confdefs.h into an awk script `defines.awk', embedded as
13860# here-document in config.status, that substitutes the proper values into
13861# config.h.in to produce config.h.
979273e3 13862
81ecdfbb
RW
13863# Create a delimiter string that does not exist in confdefs.h, to ease
13864# handling of long lines.
13865ac_delim='%!_!# '
13866for ac_last_try in false false :; do
d0ac1c44
SM
13867 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13868 if test -z "$ac_tt"; then
81ecdfbb
RW
13869 break
13870 elif $ac_last_try; then
d0ac1c44 13871 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
13872 else
13873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13874 fi
13875done
13876
13877# For the awk script, D is an array of macro values keyed by name,
13878# likewise P contains macro parameters if any. Preserve backslash
13879# newline sequences.
13880
13881ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13882sed -n '
13883s/.\{148\}/&'"$ac_delim"'/g
13884t rset
13885:rset
13886s/^[ ]*#[ ]*define[ ][ ]*/ /
13887t def
13888d
13889:def
13890s/\\$//
13891t bsnl
13892s/["\\]/\\&/g
13893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13894D["\1"]=" \3"/p
13895s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13896d
13897:bsnl
13898s/["\\]/\\&/g
13899s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13900D["\1"]=" \3\\\\\\n"\\/p
13901t cont
13902s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13903t cont
13904d
13905:cont
13906n
13907s/.\{148\}/&'"$ac_delim"'/g
13908t clear
13909:clear
13910s/\\$//
13911t bsnlc
13912s/["\\]/\\&/g; s/^/"/; s/$/"/p
13913d
13914:bsnlc
13915s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13916b cont
13917' <confdefs.h | sed '
13918s/'"$ac_delim"'/"\\\
13919"/g' >>$CONFIG_STATUS || ac_write_fail=1
13920
13921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13922 for (key in D) D_is_set[key] = 1
13923 FS = "\a"
13924}
13925/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13926 line = \$ 0
13927 split(line, arg, " ")
13928 if (arg[1] == "#") {
13929 defundef = arg[2]
13930 mac1 = arg[3]
13931 } else {
13932 defundef = substr(arg[1], 2)
13933 mac1 = arg[2]
13934 }
13935 split(mac1, mac2, "(") #)
13936 macro = mac2[1]
13937 prefix = substr(line, 1, index(line, defundef) - 1)
13938 if (D_is_set[macro]) {
13939 # Preserve the white space surrounding the "#".
13940 print prefix "define", macro P[macro] D[macro]
13941 next
13942 } else {
13943 # Replace #undef with comments. This is necessary, for example,
13944 # in the case of _POSIX_SOURCE, which is predefined and required
13945 # on some systems where configure will not decide to define it.
13946 if (defundef == "undef") {
13947 print "/*", prefix defundef, macro, "*/"
13948 next
13949 }
13950 }
13951}
13952{ print }
13953_ACAWK
979273e3 13954_ACEOF
81ecdfbb 13955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13956 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13957fi # test -n "$CONFIG_HEADERS"
979273e3 13958
81ecdfbb
RW
13959
13960eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13961shift
13962for ac_tag
13963do
13964 case $ac_tag in
13965 :[FHLC]) ac_mode=$ac_tag; continue;;
13966 esac
13967 case $ac_mode$ac_tag in
13968 :[FHL]*:*);;
d0ac1c44 13969 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13970 :[FH]-) ac_tag=-:-;;
13971 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13972 esac
13973 ac_save_IFS=$IFS
13974 IFS=:
13975 set x $ac_tag
13976 IFS=$ac_save_IFS
13977 shift
13978 ac_file=$1
13979 shift
13980
13981 case $ac_mode in
13982 :L) ac_source=$1;;
13983 :[FH])
13984 ac_file_inputs=
13985 for ac_f
13986 do
13987 case $ac_f in
d0ac1c44 13988 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13989 *) # Look for the file first in the build tree, then in the source tree
13990 # (if the path is not absolute). The absolute path cannot be DOS-style,
13991 # because $ac_f cannot contain `:'.
13992 test -f "$ac_f" ||
13993 case $ac_f in
13994 [\\/$]*) false;;
13995 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13996 esac ||
d0ac1c44 13997 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
13998 esac
13999 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14000 as_fn_append ac_file_inputs " '$ac_f'"
14001 done
14002
14003 # Let's still pretend it is `configure' which instantiates (i.e., don't
14004 # use $as_me), people would be surprised to read:
14005 # /* config.h. Generated by config.status. */
14006 configure_input='Generated from '`
14007 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14008 `' by configure.'
14009 if test x"$ac_file" != x-; then
14010 configure_input="$ac_file. $configure_input"
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14012$as_echo "$as_me: creating $ac_file" >&6;}
979273e3 14013 fi
81ecdfbb
RW
14014 # Neutralize special characters interpreted by sed in replacement strings.
14015 case $configure_input in #(
14016 *\&* | *\|* | *\\* )
14017 ac_sed_conf_input=`$as_echo "$configure_input" |
14018 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14019 *) ac_sed_conf_input=$configure_input;;
14020 esac
252b5132 14021
81ecdfbb 14022 case $ac_tag in
d0ac1c44
SM
14023 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
14025 esac
14026 ;;
252b5132
RH
14027 esac
14028
81ecdfbb 14029 ac_dir=`$as_dirname -- "$ac_file" ||
979273e3
NN
14030$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14031 X"$ac_file" : 'X\(//\)[^/]' \| \
14032 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14033 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14034$as_echo X"$ac_file" |
14035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14036 s//\1/
14037 q
14038 }
14039 /^X\(\/\/\)[^/].*/{
14040 s//\1/
14041 q
14042 }
14043 /^X\(\/\/\)$/{
14044 s//\1/
14045 q
14046 }
14047 /^X\(\/\).*/{
14048 s//\1/
14049 q
14050 }
14051 s/.*/./; q'`
14052 as_dir="$ac_dir"; as_fn_mkdir_p
979273e3
NN
14053 ac_builddir=.
14054
81ecdfbb
RW
14055case "$ac_dir" in
14056.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14057*)
14058 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14059 # A ".." for each directory in $ac_dir_suffix.
14060 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14061 case $ac_top_builddir_sub in
14062 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14063 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14064 esac ;;
14065esac
14066ac_abs_top_builddir=$ac_pwd
14067ac_abs_builddir=$ac_pwd$ac_dir_suffix
14068# for backward compatibility:
14069ac_top_builddir=$ac_top_build_prefix
979273e3
NN
14070
14071case $srcdir in
81ecdfbb 14072 .) # We are building in place.
979273e3 14073 ac_srcdir=.
81ecdfbb
RW
14074 ac_top_srcdir=$ac_top_builddir_sub
14075 ac_abs_top_srcdir=$ac_pwd ;;
14076 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 14077 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14078 ac_top_srcdir=$srcdir
14079 ac_abs_top_srcdir=$srcdir ;;
14080 *) # Relative name.
14081 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14082 ac_top_srcdir=$ac_top_build_prefix$srcdir
14083 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
979273e3 14084esac
81ecdfbb 14085ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
979273e3 14086
252b5132 14087
81ecdfbb
RW
14088 case $ac_mode in
14089 :F)
14090 #
14091 # CONFIG_FILE
14092 #
979273e3
NN
14093
14094 case $INSTALL in
14095 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
14096 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14097 esac
14098 ac_MKDIR_P=$MKDIR_P
14099 case $MKDIR_P in
14100 [\\/$]* | ?:[\\/]* ) ;;
14101 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 14102 esac
81ecdfbb 14103_ACEOF
252b5132 14104
81ecdfbb
RW
14105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106# If the template does not know about datarootdir, expand it.
14107# FIXME: This hack should be removed a few years after 2.60.
14108ac_datarootdir_hack=; ac_datarootdir_seen=
14109ac_sed_dataroot='
14110/datarootdir/ {
14111 p
14112 q
14113}
14114/@datadir@/p
14115/@docdir@/p
14116/@infodir@/p
14117/@localedir@/p
14118/@mandir@/p'
14119case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14120*datarootdir*) ac_datarootdir_seen=yes;;
14121*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14123$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14124_ACEOF
14125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14126 ac_datarootdir_hack='
14127 s&@datadir@&$datadir&g
14128 s&@docdir@&$docdir&g
14129 s&@infodir@&$infodir&g
14130 s&@localedir@&$localedir&g
14131 s&@mandir@&$mandir&g
14132 s&\\\${datarootdir}&$datarootdir&g' ;;
14133esac
979273e3 14134_ACEOF
81ecdfbb
RW
14135
14136# Neutralize VPATH when `$srcdir' = `.'.
14137# Shell code in configure.ac might set extrasub.
14138# FIXME: do we really want to maintain this feature?
14139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14140ac_sed_extra="$ac_vpsub
979273e3
NN
14141$extrasub
14142_ACEOF
81ecdfbb 14143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3
NN
14144:t
14145/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14146s|@configure_input@|$ac_sed_conf_input|;t t
14147s&@top_builddir@&$ac_top_builddir_sub&;t t
14148s&@top_build_prefix@&$ac_top_build_prefix&;t t
14149s&@srcdir@&$ac_srcdir&;t t
14150s&@abs_srcdir@&$ac_abs_srcdir&;t t
14151s&@top_srcdir@&$ac_top_srcdir&;t t
14152s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14153s&@builddir@&$ac_builddir&;t t
14154s&@abs_builddir@&$ac_abs_builddir&;t t
14155s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14156s&@INSTALL@&$ac_INSTALL&;t t
14157s&@MKDIR_P@&$ac_MKDIR_P&;t t
14158$ac_datarootdir_hack
14159"
d0ac1c44
SM
14160eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14161 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
14162
14163test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
14164 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14165 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14166 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 14168which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 14169$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 14170which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 14171
d0ac1c44 14172 rm -f "$ac_tmp/stdin"
979273e3 14173 case $ac_file in
d0ac1c44
SM
14174 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14175 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 14176 esac \
d0ac1c44 14177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
14178 ;;
14179 :H)
14180 #
14181 # CONFIG_HEADER
14182 #
979273e3 14183 if test x"$ac_file" != x-; then
81ecdfbb
RW
14184 {
14185 $as_echo "/* $configure_input */" \
d0ac1c44
SM
14186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14187 } >"$ac_tmp/config.h" \
14188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14189 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14191$as_echo "$as_me: $ac_file is unchanged" >&6;}
979273e3 14192 else
81ecdfbb 14193 rm -f "$ac_file"
d0ac1c44
SM
14194 mv "$ac_tmp/config.h" "$ac_file" \
14195 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 14196 fi
979273e3 14197 else
81ecdfbb 14198 $as_echo "/* $configure_input */" \
d0ac1c44
SM
14199 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14200 || as_fn_error $? "could not create -" "$LINENO" 5
252b5132 14201 fi
81ecdfbb
RW
14202# Compute "$ac_file"'s index in $config_headers.
14203_am_arg="$ac_file"
8ae85421
AM
14204_am_stamp_count=1
14205for _am_header in $config_headers :; do
14206 case $_am_header in
81ecdfbb 14207 $_am_arg | $_am_arg:* )
8ae85421
AM
14208 break ;;
14209 * )
14210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14211 esac
14212done
81ecdfbb
RW
14213echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14214$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14215 X"$_am_arg" : 'X\(//\)[^/]' \| \
14216 X"$_am_arg" : 'X\(//\)$' \| \
14217 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14218$as_echo X"$_am_arg" |
14219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14220 s//\1/
14221 q
14222 }
14223 /^X\(\/\/\)[^/].*/{
14224 s//\1/
14225 q
14226 }
14227 /^X\(\/\/\)$/{
14228 s//\1/
14229 q
14230 }
14231 /^X\(\/\).*/{
14232 s//\1/
14233 q
14234 }
14235 s/.*/./; q'`/stamp-h$_am_stamp_count
14236 ;;
979273e3 14237
81ecdfbb
RW
14238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14239$as_echo "$as_me: executing $ac_file commands" >&6;}
14240 ;;
14241 esac
979273e3
NN
14242
14243
81ecdfbb
RW
14244 case $ac_file$ac_mode in
14245 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 14246 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
14247 # are listed without --file. Let's play safe and only enable the eval
14248 # if we detect the quoting.
14249 case $CONFIG_FILES in
14250 *\'*) eval set x "$CONFIG_FILES" ;;
14251 *) set x $CONFIG_FILES ;;
14252 esac
14253 shift
14254 for mf
14255 do
14256 # Strip MF so we end up with the name of the file.
14257 mf=`echo "$mf" | sed -e 's/:.*$//'`
14258 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 14259 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
14260 # some people rename them; so instead we look at the file content.
14261 # Grep'ing the first line is not enough: some people post-process
14262 # each Makefile.in and add a new line on top of each file to say so.
14263 # Grep'ing the whole file is not good either: AIX grep has a line
14264 # limit of 2048, but all sed's we know have understand at least 4000.
14265 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14266 dirpart=`$as_dirname -- "$mf" ||
8ae85421
AM
14267$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14268 X"$mf" : 'X\(//\)[^/]' \| \
14269 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14270 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14271$as_echo X"$mf" |
14272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14273 s//\1/
14274 q
14275 }
14276 /^X\(\/\/\)[^/].*/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\/\)$/{
14281 s//\1/
14282 q
14283 }
14284 /^X\(\/\).*/{
14285 s//\1/
14286 q
14287 }
14288 s/.*/./; q'`
14289 else
14290 continue
14291 fi
14292 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 14293 # from the Makefile without running 'make'.
81ecdfbb
RW
14294 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14295 test -z "$DEPDIR" && continue
14296 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 14297 test -z "$am__include" && continue
81ecdfbb 14298 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
14299 # Find all dependency output files, they are included files with
14300 # $(DEPDIR) in their names. We invoke sed twice because it is the
14301 # simplest approach to changing $(DEPDIR) to its actual value in the
14302 # expansion.
14303 for file in `sed -n "
14304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 14305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
14306 # Make sure the directory exists.
14307 test -f "$dirpart/$file" && continue
14308 fdir=`$as_dirname -- "$file" ||
8ae85421
AM
14309$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14310 X"$file" : 'X\(//\)[^/]' \| \
14311 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14312 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14313$as_echo X"$file" |
14314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14315 s//\1/
14316 q
14317 }
14318 /^X\(\/\/\)[^/].*/{
14319 s//\1/
14320 q
14321 }
14322 /^X\(\/\/\)$/{
14323 s//\1/
14324 q
14325 }
14326 /^X\(\/\).*/{
14327 s//\1/
14328 q
14329 }
14330 s/.*/./; q'`
14331 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14332 # echo "creating $dirpart/$file"
14333 echo '# dummy' > "$dirpart/$file"
8ae85421 14334 done
8ae85421 14335 done
81ecdfbb 14336}
d7040cdb 14337 ;;
81ecdfbb 14338 "libtool":C)
d7040cdb
SE
14339
14340 # See if we are running on zsh, and set the options which allow our
14341 # commands through without removal of \ escapes.
14342 if test -n "${ZSH_VERSION+set}" ; then
14343 setopt NO_GLOB_SUBST
14344 fi
14345
14346 cfgfile="${ofile}T"
14347 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14348 $RM "$cfgfile"
14349
14350 cat <<_LT_EOF >> "$cfgfile"
14351#! $SHELL
14352
14353# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14354# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14355# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14356# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14357#
1927a18f 14358# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 14359# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1927a18f 14360# Written by Gordon Matzigkeit, 1996
d7040cdb 14361#
1927a18f 14362# This file is part of GNU Libtool.
d7040cdb 14363#
1927a18f
L
14364# GNU Libtool is free software; you can redistribute it and/or
14365# modify it under the terms of the GNU General Public License as
14366# published by the Free Software Foundation; either version 2 of
14367# the License, or (at your option) any later version.
d7040cdb 14368#
1927a18f
L
14369# As a special exception to the GNU General Public License,
14370# if you distribute this file as part of a program or library that
14371# is built using GNU Libtool, you may include this file under the
14372# same distribution terms that you use for the rest of that program.
d7040cdb 14373#
1927a18f
L
14374# GNU Libtool is distributed in the hope that it will be useful,
14375# but WITHOUT ANY WARRANTY; without even the implied warranty of
14376# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14377# GNU General Public License for more details.
d7040cdb 14378#
1927a18f
L
14379# You should have received a copy of the GNU General Public License
14380# along with GNU Libtool; see the file COPYING. If not, a copy
14381# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14382# obtained by writing to the Free Software Foundation, Inc.,
14383# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14384
14385
14386# The names of the tagged configurations supported by this script.
14387available_tags=""
14388
14389# ### BEGIN LIBTOOL CONFIG
14390
14391# Whether or not to build shared libraries.
14392build_libtool_libs=$enable_shared
14393
14394# Which release of libtool.m4 was used?
14395macro_version=$macro_version
14396macro_revision=$macro_revision
14397
14398# Whether or not to build static libraries.
14399build_old_libs=$enable_static
14400
14401# What type of objects to build.
14402pic_mode=$pic_mode
14403
14404# Whether or not to optimize for fast installation.
14405fast_install=$enable_fast_install
14406
3725885a
RW
14407# Shell to use when invoking shell scripts.
14408SHELL=$lt_SHELL
14409
14410# An echo program that protects backslashes.
14411ECHO=$lt_ECHO
14412
d7040cdb
SE
14413# The host system.
14414host_alias=$host_alias
14415host=$host
14416host_os=$host_os
14417
14418# The build system.
14419build_alias=$build_alias
14420build=$build
14421build_os=$build_os
14422
14423# A sed program that does not truncate output.
14424SED=$lt_SED
14425
14426# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14427Xsed="\$SED -e 1s/^X//"
14428
14429# A grep program that handles long lines.
14430GREP=$lt_GREP
14431
14432# An ERE matcher.
14433EGREP=$lt_EGREP
14434
14435# A literal string matcher.
14436FGREP=$lt_FGREP
14437
14438# A BSD- or MS-compatible name lister.
14439NM=$lt_NM
14440
14441# Whether we need soft or hard links.
14442LN_S=$lt_LN_S
14443
14444# What is the maximum length of a command?
14445max_cmd_len=$max_cmd_len
14446
14447# Object file suffix (normally "o").
14448objext=$ac_objext
14449
14450# Executable file suffix (normally "").
14451exeext=$exeext
14452
14453# whether the shell understands "unset".
14454lt_unset=$lt_unset
14455
14456# turn spaces into newlines.
14457SP2NL=$lt_lt_SP2NL
14458
14459# turn newlines into spaces.
14460NL2SP=$lt_lt_NL2SP
14461
1927a18f
L
14462# An object symbol dumper.
14463OBJDUMP=$lt_OBJDUMP
14464
d7040cdb
SE
14465# Method to check whether dependent libraries are shared objects.
14466deplibs_check_method=$lt_deplibs_check_method
14467
14468# Command to use when deplibs_check_method == "file_magic".
14469file_magic_cmd=$lt_file_magic_cmd
14470
14471# The archiver.
14472AR=$lt_AR
14473AR_FLAGS=$lt_AR_FLAGS
14474
14475# A symbol stripping program.
14476STRIP=$lt_STRIP
14477
14478# Commands used to install an old-style archive.
14479RANLIB=$lt_RANLIB
14480old_postinstall_cmds=$lt_old_postinstall_cmds
14481old_postuninstall_cmds=$lt_old_postuninstall_cmds
14482
3725885a
RW
14483# Whether to use a lock for old archive extraction.
14484lock_old_archive_extraction=$lock_old_archive_extraction
14485
d7040cdb
SE
14486# A C compiler.
14487LTCC=$lt_CC
14488
14489# LTCC compiler flags.
14490LTCFLAGS=$lt_CFLAGS
14491
14492# Take the output of nm and produce a listing of raw symbols and C names.
14493global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14494
14495# Transform the output of nm in a proper C declaration.
14496global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14497
14498# Transform the output of nm in a C name address pair.
14499global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14500
1927a18f
L
14501# Transform the output of nm in a C name address pair when lib prefix is needed.
14502global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14503
d7040cdb
SE
14504# The name of the directory that contains temporary libtool files.
14505objdir=$objdir
14506
d7040cdb
SE
14507# Used to examine libraries when file_magic_cmd begins with "file".
14508MAGIC_CMD=$MAGIC_CMD
14509
14510# Must we lock files when doing compilation?
14511need_locks=$lt_need_locks
14512
1927a18f
L
14513# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14514DSYMUTIL=$lt_DSYMUTIL
14515
14516# Tool to change global to local symbols on Mac OS X.
14517NMEDIT=$lt_NMEDIT
14518
14519# Tool to manipulate fat objects and archives on Mac OS X.
14520LIPO=$lt_LIPO
14521
14522# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14523OTOOL=$lt_OTOOL
14524
14525# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14526OTOOL64=$lt_OTOOL64
14527
d7040cdb
SE
14528# Old archive suffix (normally "a").
14529libext=$libext
14530
14531# Shared library suffix (normally ".so").
14532shrext_cmds=$lt_shrext_cmds
14533
14534# The commands to extract the exported symbol list from a shared archive.
14535extract_expsyms_cmds=$lt_extract_expsyms_cmds
14536
14537# Variables whose values should be saved in libtool wrapper scripts and
14538# restored at link time.
14539variables_saved_for_relink=$lt_variables_saved_for_relink
14540
14541# Do we need the "lib" prefix for modules?
14542need_lib_prefix=$need_lib_prefix
14543
14544# Do we need a version for libraries?
14545need_version=$need_version
14546
14547# Library versioning type.
14548version_type=$version_type
14549
14550# Shared library runtime path variable.
14551runpath_var=$runpath_var
14552
14553# Shared library path variable.
14554shlibpath_var=$shlibpath_var
14555
14556# Is shlibpath searched before the hard-coded library search path?
14557shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14558
14559# Format of library name prefix.
14560libname_spec=$lt_libname_spec
14561
14562# List of archive names. First name is the real one, the rest are links.
14563# The last name is the one that the linker finds with -lNAME
14564library_names_spec=$lt_library_names_spec
14565
14566# The coded name of the library, if different from the real name.
14567soname_spec=$lt_soname_spec
14568
3725885a
RW
14569# Permission mode override for installation of shared libraries.
14570install_override_mode=$lt_install_override_mode
14571
d7040cdb
SE
14572# Command to use after installation of a shared archive.
14573postinstall_cmds=$lt_postinstall_cmds
14574
14575# Command to use after uninstallation of a shared archive.
14576postuninstall_cmds=$lt_postuninstall_cmds
14577
14578# Commands used to finish a libtool library installation in a directory.
14579finish_cmds=$lt_finish_cmds
14580
14581# As "finish_cmds", except a single script fragment to be evaled but
14582# not shown.
14583finish_eval=$lt_finish_eval
14584
14585# Whether we should hardcode library paths into libraries.
14586hardcode_into_libs=$hardcode_into_libs
14587
14588# Compile-time system search path for libraries.
14589sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14590
14591# Run-time system search path for libraries.
14592sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14593
14594# Whether dlopen is supported.
14595dlopen_support=$enable_dlopen
14596
14597# Whether dlopen of programs is supported.
14598dlopen_self=$enable_dlopen_self
14599
14600# Whether dlopen of statically linked programs is supported.
14601dlopen_self_static=$enable_dlopen_self_static
14602
14603# Commands to strip libraries.
14604old_striplib=$lt_old_striplib
14605striplib=$lt_striplib
14606
14607
14608# The linker used to build libraries.
14609LD=$lt_LD
14610
3725885a
RW
14611# How to create reloadable object files.
14612reload_flag=$lt_reload_flag
14613reload_cmds=$lt_reload_cmds
14614
d7040cdb
SE
14615# Commands used to build an old-style archive.
14616old_archive_cmds=$lt_old_archive_cmds
14617
14618# A language specific compiler.
14619CC=$lt_compiler
14620
14621# Is the compiler the GNU compiler?
14622with_gcc=$GCC
14623
14624# Compiler flag to turn off builtin functions.
14625no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14626
14627# How to pass a linker flag through the compiler.
14628wl=$lt_lt_prog_compiler_wl
14629
14630# Additional compiler flags for building library objects.
14631pic_flag=$lt_lt_prog_compiler_pic
14632
14633# Compiler flag to prevent dynamic linking.
14634link_static_flag=$lt_lt_prog_compiler_static
14635
14636# Does compiler simultaneously support -c and -o options?
14637compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14638
14639# Whether or not to add -lc for building shared libraries.
14640build_libtool_need_lc=$archive_cmds_need_lc
14641
14642# Whether or not to disallow shared libs when runtime libs are static.
14643allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14644
14645# Compiler flag to allow reflexive dlopens.
14646export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14647
14648# Compiler flag to generate shared objects directly from archives.
14649whole_archive_flag_spec=$lt_whole_archive_flag_spec
14650
14651# Whether the compiler copes with passing no objects directly.
14652compiler_needs_object=$lt_compiler_needs_object
14653
14654# Create an old-style archive from a shared archive.
14655old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14656
14657# Create a temporary old-style archive to link instead of a shared archive.
14658old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14659
14660# Commands used to build a shared archive.
14661archive_cmds=$lt_archive_cmds
14662archive_expsym_cmds=$lt_archive_expsym_cmds
14663
14664# Commands used to build a loadable module if different from building
14665# a shared archive.
14666module_cmds=$lt_module_cmds
14667module_expsym_cmds=$lt_module_expsym_cmds
14668
14669# Whether we are building with GNU ld or not.
14670with_gnu_ld=$lt_with_gnu_ld
14671
14672# Flag that allows shared libraries with undefined symbols to be built.
14673allow_undefined_flag=$lt_allow_undefined_flag
14674
14675# Flag that enforces no undefined symbols.
14676no_undefined_flag=$lt_no_undefined_flag
14677
14678# Flag to hardcode \$libdir into a binary during linking.
14679# This must work even if \$libdir does not exist
14680hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14681
14682# If ld is used when linking, flag to hardcode \$libdir into a binary
14683# during linking. This must work even if \$libdir does not exist.
14684hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14685
14686# Whether we need a single "-rpath" flag with a separated argument.
14687hardcode_libdir_separator=$lt_hardcode_libdir_separator
14688
14689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14690# DIR into the resulting binary.
14691hardcode_direct=$hardcode_direct
14692
14693# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14694# DIR into the resulting binary and the resulting library dependency is
14695# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14696# library is relocated.
14697hardcode_direct_absolute=$hardcode_direct_absolute
14698
14699# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14700# into the resulting binary.
14701hardcode_minus_L=$hardcode_minus_L
14702
14703# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14704# into the resulting binary.
14705hardcode_shlibpath_var=$hardcode_shlibpath_var
14706
14707# Set to "yes" if building a shared library automatically hardcodes DIR
14708# into the library and all subsequent libraries and executables linked
14709# against it.
14710hardcode_automatic=$hardcode_automatic
14711
14712# Set to yes if linker adds runtime paths of dependent libraries
14713# to runtime path list.
14714inherit_rpath=$inherit_rpath
14715
14716# Whether libtool must link a program against all its dependency libraries.
14717link_all_deplibs=$link_all_deplibs
14718
14719# Fix the shell variable \$srcfile for the compiler.
14720fix_srcfile_path=$lt_fix_srcfile_path
14721
14722# Set to "yes" if exported symbols are required.
14723always_export_symbols=$always_export_symbols
14724
14725# The commands to list exported symbols.
14726export_symbols_cmds=$lt_export_symbols_cmds
14727
14728# Symbols that should not be listed in the preloaded symbols.
14729exclude_expsyms=$lt_exclude_expsyms
14730
14731# Symbols that must always be exported.
14732include_expsyms=$lt_include_expsyms
14733
14734# Commands necessary for linking programs (against libraries) with templates.
14735prelink_cmds=$lt_prelink_cmds
14736
14737# Specify filename containing input files.
14738file_list_spec=$lt_file_list_spec
14739
14740# How to hardcode a shared library path into an executable.
14741hardcode_action=$hardcode_action
14742
14743# ### END LIBTOOL CONFIG
14744
14745_LT_EOF
14746
14747 case $host_os in
14748 aix3*)
14749 cat <<\_LT_EOF >> "$cfgfile"
14750# AIX sometimes has problems with the GCC collect2 program. For some
14751# reason, if we set the COLLECT_NAMES environment variable, the problems
14752# vanish in a puff of smoke.
14753if test "X${COLLECT_NAMES+set}" != Xset; then
14754 COLLECT_NAMES=
14755 export COLLECT_NAMES
14756fi
14757_LT_EOF
14758 ;;
14759 esac
14760
14761
14762ltmain="$ac_aux_dir/ltmain.sh"
14763
14764
14765 # We use sed instead of cat because bash on DJGPP gets confused if
14766 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14767 # text mode, it properly converts lines to CR/LF. This bash problem
14768 # is reportedly fixed, but why not run on old versions too?
14769 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14770 || (rm -f "$cfgfile"; exit 1)
14771
14772 case $xsi_shell in
14773 yes)
14774 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14775
d7040cdb
SE
14776# func_dirname file append nondir_replacement
14777# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14778# otherwise set result to NONDIR_REPLACEMENT.
14779func_dirname ()
14780{
14781 case ${1} in
14782 */*) func_dirname_result="${1%/*}${2}" ;;
14783 * ) func_dirname_result="${3}" ;;
14784 esac
14785}
14786
14787# func_basename file
14788func_basename ()
14789{
14790 func_basename_result="${1##*/}"
14791}
14792
1927a18f
L
14793# func_dirname_and_basename file append nondir_replacement
14794# perform func_basename and func_dirname in a single function
14795# call:
14796# dirname: Compute the dirname of FILE. If nonempty,
14797# add APPEND to the result, otherwise set result
14798# to NONDIR_REPLACEMENT.
14799# value returned in "$func_dirname_result"
14800# basename: Compute filename of FILE.
14801# value retuned in "$func_basename_result"
14802# Implementation must be kept synchronized with func_dirname
14803# and func_basename. For efficiency, we do not delegate to
14804# those functions but instead duplicate the functionality here.
14805func_dirname_and_basename ()
14806{
14807 case ${1} in
14808 */*) func_dirname_result="${1%/*}${2}" ;;
14809 * ) func_dirname_result="${3}" ;;
14810 esac
14811 func_basename_result="${1##*/}"
14812}
14813
d7040cdb
SE
14814# func_stripname prefix suffix name
14815# strip PREFIX and SUFFIX off of NAME.
14816# PREFIX and SUFFIX must not contain globbing or regex special
14817# characters, hashes, percent signs, but SUFFIX may contain a leading
14818# dot (in which case that matches only a dot).
14819func_stripname ()
14820{
14821 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14822 # positional parameters, so assign one to ordinary parameter first.
14823 func_stripname_result=${3}
14824 func_stripname_result=${func_stripname_result#"${1}"}
14825 func_stripname_result=${func_stripname_result%"${2}"}
14826}
14827
14828# func_opt_split
14829func_opt_split ()
14830{
14831 func_opt_split_opt=${1%%=*}
14832 func_opt_split_arg=${1#*=}
14833}
14834
14835# func_lo2o object
14836func_lo2o ()
14837{
14838 case ${1} in
14839 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14840 *) func_lo2o_result=${1} ;;
14841 esac
14842}
1927a18f
L
14843
14844# func_xform libobj-or-source
14845func_xform ()
14846{
14847 func_xform_result=${1%.*}.lo
14848}
14849
14850# func_arith arithmetic-term...
14851func_arith ()
14852{
14853 func_arith_result=$(( $* ))
14854}
14855
14856# func_len string
14857# STRING may not start with a hyphen.
14858func_len ()
14859{
14860 func_len_result=${#1}
14861}
14862
d7040cdb
SE
14863_LT_EOF
14864 ;;
14865 *) # Bourne compatible functions.
14866 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14867
d7040cdb
SE
14868# func_dirname file append nondir_replacement
14869# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14870# otherwise set result to NONDIR_REPLACEMENT.
14871func_dirname ()
14872{
14873 # Extract subdirectory from the argument.
3725885a 14874 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14875 if test "X$func_dirname_result" = "X${1}"; then
14876 func_dirname_result="${3}"
14877 else
14878 func_dirname_result="$func_dirname_result${2}"
14879 fi
14880}
14881
14882# func_basename file
14883func_basename ()
14884{
3725885a 14885 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14886}
14887
1927a18f 14888
d7040cdb
SE
14889# func_stripname prefix suffix name
14890# strip PREFIX and SUFFIX off of NAME.
14891# PREFIX and SUFFIX must not contain globbing or regex special
14892# characters, hashes, percent signs, but SUFFIX may contain a leading
14893# dot (in which case that matches only a dot).
14894# func_strip_suffix prefix name
14895func_stripname ()
14896{
14897 case ${2} in
3725885a
RW
14898 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14899 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14900 esac
14901}
14902
14903# sed scripts:
14904my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14905my_sed_long_arg='1s/^-[^=]*=//'
14906
14907# func_opt_split
14908func_opt_split ()
14909{
3725885a
RW
14910 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14911 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14912}
14913
14914# func_lo2o object
14915func_lo2o ()
14916{
3725885a 14917 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14918}
1927a18f
L
14919
14920# func_xform libobj-or-source
14921func_xform ()
14922{
3725885a 14923 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1927a18f
L
14924}
14925
14926# func_arith arithmetic-term...
14927func_arith ()
14928{
14929 func_arith_result=`expr "$@"`
14930}
14931
14932# func_len string
14933# STRING may not start with a hyphen.
14934func_len ()
14935{
14936 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14937}
14938
d7040cdb
SE
14939_LT_EOF
14940esac
14941
14942case $lt_shell_append in
14943 yes)
14944 cat << \_LT_EOF >> "$cfgfile"
14945
14946# func_append var value
14947# Append VALUE to the end of shell variable VAR.
14948func_append ()
14949{
14950 eval "$1+=\$2"
14951}
14952_LT_EOF
14953 ;;
14954 *)
14955 cat << \_LT_EOF >> "$cfgfile"
14956
14957# func_append var value
14958# Append VALUE to the end of shell variable VAR.
14959func_append ()
14960{
14961 eval "$1=\$$1\$2"
14962}
1927a18f 14963
d7040cdb
SE
14964_LT_EOF
14965 ;;
14966 esac
14967
14968
14969 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14970 || (rm -f "$cfgfile"; exit 1)
14971
14972 mv -f "$cfgfile" "$ofile" ||
14973 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14974 chmod +x "$ofile"
14975
8ae85421 14976 ;;
81ecdfbb 14977 "default-1":C)
20e95c23
DJ
14978 for ac_file in $CONFIG_FILES; do
14979 # Support "outfile[:infile[:infile...]]"
14980 case "$ac_file" in
14981 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14982 esac
14983 # PO directories have a Makefile.in generated from Makefile.in.in.
14984 case "$ac_file" in */Makefile.in)
14985 # Adjust a relative srcdir.
14986 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 14987 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
14988 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14989 # In autoconf-2.13 it is called $ac_given_srcdir.
14990 # In autoconf-2.50 it is called $srcdir.
14991 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14992 case "$ac_given_srcdir" in
14993 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14994 /*) top_srcdir="$ac_given_srcdir" ;;
14995 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14996 esac
14997 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14998 rm -f "$ac_dir/POTFILES"
14999 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15000 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15001 POMAKEFILEDEPS="POTFILES.in"
15002 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15003 # on $ac_dir but don't depend on user-specified configuration
15004 # parameters.
15005 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15006 # The LINGUAS file contains the set of available languages.
15007 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 15008 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
15009 fi
15010 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15011 # Hide the ALL_LINGUAS assigment from automake.
15012 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15013 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15014 else
37a42ee9 15015 # The set of available languages was given in configure.ac.
20e95c23
DJ
15016 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15017 fi
15018 case "$ac_given_srcdir" in
15019 .) srcdirpre= ;;
15020 *) srcdirpre='$(srcdir)/' ;;
15021 esac
15022 POFILES=
15023 GMOFILES=
15024 UPDATEPOFILES=
15025 DUMMYPOFILES=
15026 for lang in $ALL_LINGUAS; do
15027 POFILES="$POFILES $srcdirpre$lang.po"
15028 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15029 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15030 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15031 done
15032 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15033 # environment variable.
15034 INST_LINGUAS=
15035 if test -n "$ALL_LINGUAS"; then
15036 for presentlang in $ALL_LINGUAS; do
15037 useit=no
15038 if test "%UNSET%" != "$LINGUAS"; then
15039 desiredlanguages="$LINGUAS"
15040 else
15041 desiredlanguages="$ALL_LINGUAS"
15042 fi
15043 for desiredlang in $desiredlanguages; do
15044 # Use the presentlang catalog if desiredlang is
15045 # a. equal to presentlang, or
15046 # b. a variant of presentlang (because in this case,
15047 # presentlang can be used as a fallback for messages
15048 # which are not translated in the desiredlang catalog).
15049 case "$desiredlang" in
15050 "$presentlang"*) useit=yes;;
15051 esac
15052 done
15053 if test $useit = yes; then
15054 INST_LINGUAS="$INST_LINGUAS $presentlang"
15055 fi
15056 done
15057 fi
15058 CATALOGS=
15059 if test -n "$INST_LINGUAS"; then
15060 for lang in $INST_LINGUAS; do
15061 CATALOGS="$CATALOGS $lang.gmo"
15062 done
15063 fi
15064 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15065 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"
15066 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15067 if test -f "$f"; then
15068 case "$f" in
15069 *.orig | *.bak | *~) ;;
15070 *) cat "$f" >> "$ac_dir/Makefile" ;;
15071 esac
15072 fi
15073 done
15074 fi
15075 ;;
15076 esac
15077 done ;;
81ecdfbb 15078
979273e3 15079 esac
81ecdfbb 15080done # for ac_tag
979273e3 15081
979273e3 15082
81ecdfbb 15083as_fn_exit 0
979273e3 15084_ACEOF
979273e3
NN
15085ac_clean_files=$ac_clean_files_save
15086
81ecdfbb 15087test $ac_write_fail = 0 ||
d0ac1c44 15088 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 15089
979273e3
NN
15090
15091# configure is writing to config.log, and then calls config.status.
15092# config.status does its own redirection, appending to config.log.
15093# Unfortunately, on DOS this fails, as config.log is still kept open
15094# by configure, so config.status won't be able to write to it; its
15095# output is simply discarded. So we exec the FD to /dev/null,
15096# effectively closing config.log, so it can be properly (re)opened and
15097# appended to by config.status. When coming back to configure, we
15098# need to make the FD available again.
15099if test "$no_create" != yes; then
15100 ac_cs_success=:
15101 ac_config_status_args=
15102 test "$silent" = yes &&
15103 ac_config_status_args="$ac_config_status_args --quiet"
15104 exec 5>/dev/null
15105 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15106 exec 5>>config.log
15107 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15108 # would make configure fail if this is the last instruction.
d0ac1c44 15109 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
15110fi
15111if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15113$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
979273e3 15114fi
252b5132 15115
d546b610
L
15116
15117
15118touch config.status.tmp
15119if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
15120 sed '/as_fn_exit 0/i \
15121sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
15122touch --reference=Makefile Makefile.tmp \
15123mv Makefile.tmp Makefile \
15124' config.status > config.status.tmp
15125 touch --reference=config.status config.status.tmp
15126 mv config.status.tmp config.status
15127 chmod +x config.status
15128 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
15129 touch --reference=Makefile Makefile.tmp
15130 mv Makefile.tmp Makefile
15131else
15132 rm -f config.status.tmp
15133fi