Remove duplicate skip_python_tests invocation
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
f48dfe41 3# Generated by GNU Autoconf 2.69 for gas 2.32.51.
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## -------------------- ##
13b2be9c 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 :
13b2be9c
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
13b2be9c
DJ
31fi
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 }
13b2be9c
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
13b2be9c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13b2be9c 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."
13b2be9c 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."
13b2be9c 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
13b2be9c 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
13b2be9c 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
13b2be9c 464
13b2be9c
DJ
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
13b2be9c 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 |
13b2be9c 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
13b2be9c 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 490 t loop
81ecdfbb 491 s/-\n.*//
13b2be9c 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; }
13b2be9c 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
13b2be9c
DJ
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
13b2be9c
DJ
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
13b2be9c
DJ
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
13b2be9c 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
13b2be9c 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 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'
13b2be9c 541 fi
13b2be9c 542else
d0ac1c44 543 as_ln_s='cp -pR'
13b2be9c 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
13b2be9c
DJ
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 550else
ab509236 551 test -d ./-p && rmdir ./-p
13b2be9c
DJ
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
13b2be9c
DJ
557
558# Sed expression to map a string onto a valid CPP name.
ab509236 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
560
561# Sed expression to map a string onto a valid variable name.
ab509236 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c 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
13b2be9c 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
13b2be9c
DJ
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
13b2be9c
DJ
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
13b2be9c 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
13b2be9c
DJ
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
13b2be9c
DJ
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='gas'
589PACKAGE_TARNAME='gas'
f48dfe41
NC
590PACKAGE_VERSION='2.32.51'
591PACKAGE_STRING='gas 2.32.51'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
13b2be9c
DJ
594
595ac_unique_file="as.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
13b2be9c
DJ
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
13b2be9c
DJ
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13b2be9c
DJ
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
13b2be9c
DJ
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
13b2be9c 623# include <inttypes.h>
13b2be9c 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
13b2be9c
DJ
629# include <unistd.h>
630#endif"
631
81ecdfbb
RW
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
0138187e 636zlibinc
543b7933 637zlibdir
81ecdfbb
RW
638LIBM
639ALLOCA
640GENINSRC_NEVER_FALSE
641GENINSRC_NEVER_TRUE
642MAINT
643MAINTAINER_MODE_FALSE
644MAINTAINER_MODE_TRUE
645MSGMERGE
646MSGFMT
647MKINSTALLDIRS
648CATOBJEXT
649GENCAT
650INSTOBJEXT
651DATADIRNAME
652CATALOGS
653POSUB
654GMSGFMT
655XGETTEXT
656INCINTL
657LIBINTL_DEP
658LIBINTL
659USE_NLS
660LEXLIB
661LEX_OUTPUT_ROOT
662LEX
663YFLAGS
664YACC
665OPCODES_LIB
666atof
667install_tooldir
668te_file
669obj_format
670target_cpu_type
671extra_objects
672cgen_cpu_prefix
673GDBINIT
6757cf57 674WARN_WRITE_STRINGS
81ecdfbb 675NO_WERROR
c5da1932 676WARN_CFLAGS_FOR_BUILD
81ecdfbb 677WARN_CFLAGS
2d7f2507 678do_compare
81ecdfbb
RW
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
81ecdfbb
RW
684RANLIB
685AR
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693SED
694LIBTOOL
695EGREP
696GREP
697CPP
d0ac1c44
SM
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
81ecdfbb
RW
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
6eb7d830 705am__nodep
81ecdfbb
RW
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742target_os
743target_vendor
744target_cpu
745target
746host_os
747host_vendor
748host_cpu
749host
750build_os
751build_vendor
752build_cpu
753build
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
13b2be9c 792ac_subst_files=''
81ecdfbb
RW
793ac_user_opts='
794enable_option_checking
795enable_dependency_tracking
d0ac1c44 796enable_silent_rules
81ecdfbb
RW
797enable_shared
798enable_static
799with_pic
800enable_fast_install
801with_gnu_ld
802enable_libtool_lock
b879806f
AM
803enable_plugins
804enable_largefile
81ecdfbb
RW
805enable_targets
806enable_checking
6c3bc0f8 807enable_compressed_debug_sections
0cb4071e 808enable_x86_relax_relocations
b8871f35 809enable_elf_stt_common
0df8ad28 810enable_generate_build_notes
b4a3a7b4 811enable_x86_used_note
2dc8dd17 812enable_default_riscv_attribute
81ecdfbb
RW
813enable_werror
814enable_build_warnings
9004b6bd 815with_cpu
81ecdfbb
RW
816enable_nls
817enable_maintainer_mode
0138187e 818with_system_zlib
81ecdfbb
RW
819'
820 ac_precious_vars='build_alias
821host_alias
822target_alias
823CC
824CFLAGS
825LDFLAGS
826LIBS
827CPPFLAGS
828CPP
829YACC
830YFLAGS'
831
252b5132
RH
832
833# Initialize some variables set by options.
13b2be9c
DJ
834ac_init_help=
835ac_init_version=false
81ecdfbb
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
252b5132
RH
838# The variables have the same names as the options, with
839# dashes changed to underlines.
13b2be9c 840cache_file=/dev/null
252b5132 841exec_prefix=NONE
252b5132 842no_create=
252b5132
RH
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
252b5132
RH
851verbose=
852x_includes=NONE
853x_libraries=NONE
13b2be9c
DJ
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 860# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
252b5132
RH
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
252b5132
RH
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
2e98a7bd 871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
252b5132 880
252b5132 881ac_prev=
81ecdfbb 882ac_dashdash=
252b5132
RH
883for ac_option
884do
252b5132
RH
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
81ecdfbb 887 eval $ac_prev=\$ac_option
252b5132
RH
888 ac_prev=
889 continue
890 fi
891
81ecdfbb 892 case $ac_option in
d0ac1c44
SM
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
81ecdfbb 896 esac
252b5132
RH
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
81ecdfbb
RW
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
252b5132
RH
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 907 bindir=$ac_optarg ;;
252b5132
RH
908
909 -build | --build | --buil | --bui | --bu)
13b2be9c 910 ac_prev=build_alias ;;
252b5132 911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 912 build_alias=$ac_optarg ;;
252b5132
RH
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
252b5132 923
81ecdfbb 924 -datadir | --datadir | --datadi | --datad)
252b5132 925 ac_prev=datadir ;;
81ecdfbb 926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 927 datadir=$ac_optarg ;;
252b5132 928
81ecdfbb
RW
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
252b5132 936 -disable-* | --disable-*)
81ecdfbb 937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 938 # Reject names that are not valid shell variable names.
81ecdfbb 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 940 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
252b5132
RH
961
962 -enable-* | --enable-*)
81ecdfbb 963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 964 # Reject names that are not valid shell variable names.
81ecdfbb 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 966 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
252b5132 975 esac
81ecdfbb 976 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
13b2be9c 985 exec_prefix=$ac_optarg ;;
252b5132
RH
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
13b2be9c
DJ
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
252b5132
RH
997
998 -host | --host | --hos | --ho)
13b2be9c 999 ac_prev=host_alias ;;
252b5132 1000 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 1001 host_alias=$ac_optarg ;;
252b5132 1002
81ecdfbb
RW
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
252b5132
RH
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 1014 includedir=$ac_optarg ;;
252b5132
RH
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 1019 infodir=$ac_optarg ;;
252b5132
RH
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 1024 libdir=$ac_optarg ;;
252b5132
RH
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
13b2be9c 1031 libexecdir=$ac_optarg ;;
252b5132 1032
81ecdfbb
RW
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
252b5132 1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1039 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 1043 localstatedir=$ac_optarg ;;
252b5132
RH
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1048 mandir=$ac_optarg ;;
252b5132
RH
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1055 | --no-cr | --no-c | -n)
252b5132
RH
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1069 oldincludedir=$ac_optarg ;;
252b5132
RH
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1074 prefix=$ac_optarg ;;
252b5132
RH
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1081 program_prefix=$ac_optarg ;;
252b5132
RH
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1088 program_suffix=$ac_optarg ;;
252b5132
RH
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1105 program_transform_name=$ac_optarg ;;
252b5132 1106
81ecdfbb
RW
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
252b5132
RH
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
13b2be9c 1125 sbindir=$ac_optarg ;;
252b5132
RH
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
13b2be9c 1136 sharedstatedir=$ac_optarg ;;
252b5132
RH
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
13b2be9c 1141 site=$ac_optarg ;;
76bff705 1142
252b5132
RH
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1146 srcdir=$ac_optarg ;;
252b5132
RH
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1153 sysconfdir=$ac_optarg ;;
252b5132
RH
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1156 ac_prev=target_alias ;;
252b5132 1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1158 target_alias=$ac_optarg ;;
252b5132
RH
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
13b2be9c
DJ
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
252b5132
RH
1165
1166 -with-* | --with-*)
81ecdfbb 1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1168 # Reject names that are not valid shell variable names.
81ecdfbb 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1170 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
252b5132 1179 esac
81ecdfbb 1180 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1181
1182 -without-* | --without-*)
81ecdfbb 1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1184 # Reject names that are not valid shell variable names.
81ecdfbb 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1186 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
252b5132
RH
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1207 x_includes=$ac_optarg ;;
252b5132
RH
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1214 x_libraries=$ac_optarg ;;
252b5132 1215
d0ac1c44
SM
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217Try \`$0 --help' for more information"
252b5132
RH
1218 ;;
1219
13b2be9c
DJ
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1226 esac
1227 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1228 export $ac_envvar ;;
1229
252b5132 1230 *)
13b2be9c 1231 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1236 ;;
1237
1238 esac
1239done
1240
1241if test -n "$ac_prev"; then
13b2be9c 1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1243 as_fn_error $? "missing argument to $ac_option"
c8615825 1244fi
c8615825 1245
81ecdfbb
RW
1246if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
d0ac1c44 1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1251 esac
81ecdfbb 1252fi
252b5132 1253
81ecdfbb
RW
1254# Check all directory arguments for consistency.
1255for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
252b5132 1259do
81ecdfbb
RW
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
13b2be9c 1268 case $ac_val in
81ecdfbb
RW
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1271 esac
d0ac1c44 1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1273done
1274
13b2be9c
DJ
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
13b2be9c
DJ
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
9b2b7d69 1290
13b2be9c
DJ
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
252b5132 1295
252b5132 1296
81ecdfbb
RW
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1300 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1302 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1303
1304
252b5132
RH
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
81ecdfbb
RW
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
252b5132 1332 srcdir=$ac_confdir
81ecdfbb 1333 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
81ecdfbb
RW
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
d0ac1c44 1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
d6d788bd 1363
13b2be9c
DJ
1364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
f48dfe41 1371\`configure' configures gas 2.32.51 to adapt to many kinds of systems.
9b2b7d69 1372
13b2be9c 1373Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1374
13b2be9c
DJ
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1377
13b2be9c 1378Defaults for the options are specified in brackets.
9b2b7d69 1379
13b2be9c
DJ
1380Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
d0ac1c44 1385 -q, --quiet, --silent do not print \`checking ...' messages
13b2be9c
DJ
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
13b2be9c
DJ
1391Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1393 [$ac_default_prefix]
13b2be9c 1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1395 [PREFIX]
9b2b7d69 1396
13b2be9c
DJ
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
9b2b7d69 1401
13b2be9c 1402For better control, use the options below.
9b2b7d69 1403
13b2be9c 1404Fine tuning of the installation directories:
81ecdfbb
RW
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1419 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1424_ACEOF
9b2b7d69 1425
13b2be9c 1426 cat <<\_ACEOF
9b2b7d69 1427
13b2be9c
DJ
1428Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1432
13b2be9c
DJ
1433System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437_ACEOF
9b2b7d69 1438fi
9b2b7d69 1439
13b2be9c 1440if test -n "$ac_init_help"; then
2e98a7bd 1441 case $ac_init_help in
f48dfe41 1442 short | recursive ) echo "Configuration of gas 2.32.51:";;
2e98a7bd 1443 esac
13b2be9c 1444 cat <<\_ACEOF
9b2b7d69 1445
13b2be9c 1446Optional Features:
81ecdfbb 1447 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1450 --enable-dependency-tracking
1451 do not reject slow dependency extractors
1452 --disable-dependency-tracking
1453 speeds up one-time build
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
81ecdfbb
RW
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
13b2be9c 1460 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1461 --enable-plugins Enable support for plugins
1462 --disable-largefile omit support for large files
241a6c40 1463 --enable-targets alternative target configurations besides the primary
c43a438d 1464 --enable-checking enable run-time checks
4894d80b 1465 --enable-compressed-debug-sections={all,gas,none}
27ba7c94 1466 compress debug sections by default
0cb4071e
L
1467 --enable-x86-relax-relocations
1468 generate x86 relax relocations by default
b8871f35
L
1469 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1470 default
0df8ad28
NC
1471 --enable-generate-build-notes
1472 generate GNU Build notes if none are provided by the
1473 input
b4a3a7b4 1474 --enable-x86-used-note generate GNU x86 used ISA and feature properties
2dc8dd17
JW
1475 --enable-default-riscv-attribute
1476 generate RISC-V arch attribute by default
241a6c40
AM
1477 --enable-werror treat compile warnings as errors
1478 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1479 --disable-nls do not use Native Language Support
d0ac1c44
SM
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
9b2b7d69 1483
13b2be9c
DJ
1484Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1487 --with-pic try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9004b6bd
AB
1490 --with-cpu=CPU default cpu variant is CPU (currently only supported
1491 on ARC)
0138187e 1492 --with-system-zlib use installed libz
9b2b7d69 1493
13b2be9c
DJ
1494Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
81ecdfbb 1499 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1500 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1501 you have headers in a nonstandard directory <include dir>
13b2be9c 1502 CPP C preprocessor
d0ac1c44
SM
1503 YACC The `Yet Another Compiler Compiler' implementation to use.
1504 Defaults to the first program found out of: `bison -y', `byacc',
1505 `yacc'.
81ecdfbb
RW
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
13b2be9c
DJ
1509
1510Use these variables to override the choices made by `configure' or to help
1511it to find libraries and programs with nonstandard names/locations.
1512
81ecdfbb 1513Report bugs to the package provider.
13b2be9c 1514_ACEOF
81ecdfbb 1515ac_status=$?
9b2b7d69 1516fi
9b2b7d69 1517
13b2be9c
DJ
1518if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
13b2be9c 1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
13b2be9c
DJ
1524 ac_builddir=.
1525
81ecdfbb
RW
1526case "$ac_dir" in
1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528*)
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536esac
1537ac_abs_top_builddir=$ac_pwd
1538ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539# for backward compatibility:
1540ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1541
13b2be9c 1542case $srcdir in
81ecdfbb 1543 .) # We are building in place.
13b2be9c 1544 ac_srcdir=.
81ecdfbb
RW
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1548 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1555esac
81ecdfbb
RW
1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1566 else
81ecdfbb
RW
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1570 done
1571fi
6840198f 1572
81ecdfbb 1573test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1574if $ac_init_version; then
1575 cat <<\_ACEOF
f48dfe41 1576gas configure 2.32.51
d0ac1c44 1577generated by GNU Autoconf 2.69
c8615825 1578
d0ac1c44 1579Copyright (C) 2012 Free Software Foundation, Inc.
13b2be9c
DJ
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
81ecdfbb 1583 exit
13b2be9c 1584fi
c8615825 1585
81ecdfbb
RW
1586## ------------------------ ##
1587## Autoconf initialization. ##
1588## ------------------------ ##
c8615825 1589
81ecdfbb
RW
1590# ac_fn_c_try_compile LINENO
1591# --------------------------
1592# Try to compile conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_compile ()
13b2be9c 1594{
81ecdfbb
RW
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1620
81ecdfbb
RW
1621 ac_retval=1
1622fi
d0ac1c44
SM
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
13b2be9c 1625
81ecdfbb 1626} # ac_fn_c_try_compile
13b2be9c 1627
81ecdfbb
RW
1628# ac_fn_c_try_link LINENO
1629# -----------------------
1630# Try to link conftest.$ac_ext, and return whether this succeeded.
1631ac_fn_c_try_link ()
1632{
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639esac
1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641$as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
d0ac1c44 1655 test -x conftest$ac_exeext
81ecdfbb
RW
1656 }; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
81ecdfbb
RW
1671
1672} # ac_fn_c_try_link
1673
1674# ac_fn_c_try_cpp LINENO
1675# ----------------------
1676# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_cpp ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1695 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
d0ac1c44
SM
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
81ecdfbb
RW
1708
1709} # ac_fn_c_try_cpp
1710
1711# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712# -------------------------------------------------------
1713# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714# the include files in INCLUDES and setting the cache variable VAR
1715# accordingly.
1716ac_fn_c_check_header_mongrel ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1719 if eval \${$3+:} false; then :
81ecdfbb
RW
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1722if eval \${$3+:} false; then :
81ecdfbb
RW
1723 $as_echo_n "(cached) " >&6
1724fi
1725eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727$as_echo "$ac_res" >&6; }
1728else
1729 # Is the header compilable?
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731$as_echo_n "checking $2 usability... " >&6; }
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734$4
1735#include <$2>
1736_ACEOF
1737if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739else
1740 ac_header_compiler=no
1741fi
1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744$as_echo "$ac_header_compiler" >&6; }
1745
1746# Is the header present?
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748$as_echo_n "checking $2 presence... " >&6; }
1749cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h. */
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755else
1756 ac_header_preproc=no
1757fi
d0ac1c44 1758rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760$as_echo "$ac_header_preproc" >&6; }
1761
1762# So? What about this header?
1763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1785if eval \${$3+:} false; then :
81ecdfbb
RW
1786 $as_echo_n "(cached) " >&6
1787else
1788 eval "$3=\$ac_header_compiler"
1789fi
1790eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793fi
d0ac1c44 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1795
1796} # ac_fn_c_check_header_mongrel
1797
1798# ac_fn_c_try_run LINENO
1799# ----------------------
1800# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801# that executables *can* be run.
1802ac_fn_c_try_run ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809esac
1810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811$as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
81ecdfbb
RW
1837
1838} # ac_fn_c_try_run
1839
1840# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841# -------------------------------------------------------
1842# Tests whether HEADER exists and can be compiled using the include files in
1843# INCLUDES, setting the cache variable VAR accordingly.
1844ac_fn_c_check_header_compile ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1849if eval \${$3+:} false; then :
81ecdfbb
RW
1850 $as_echo_n "(cached) " >&6
1851else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h. */
1854$4
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
d0ac1c44 1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1868
1869} # ac_fn_c_check_header_compile
1870
1871# ac_fn_c_check_func LINENO FUNC VAR
1872# ----------------------------------
1873# Tests whether FUNC exists, setting the cache variable VAR accordingly
1874ac_fn_c_check_func ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1879if eval \${$3+:} false; then :
81ecdfbb
RW
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886#define $2 innocuous_$2
1887
1888/* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1892
1893#ifdef __STDC__
1894# include <limits.h>
1895#else
1896# include <assert.h>
1897#endif
1898
1899#undef $2
1900
1901/* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904#ifdef __cplusplus
1905extern "C"
1906#endif
1907char $2 ();
1908/* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911#if defined __stub_$2 || defined __stub___$2
1912choke me
1913#endif
1914
1915int
1916main ()
1917{
1918return $2 ();
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925else
1926 eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
d0ac1c44 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1935
1936} # ac_fn_c_check_func
1937
d0ac1c44
SM
1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939# -------------------------------------------
1940# Tests whether TYPE exists after having included INCLUDES, setting cache
1941# variable VAR accordingly.
1942ac_fn_c_check_type ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
1947if eval \${$3+:} false; then :
1948 $as_echo_n "(cached) " >&6
1949else
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977
1978else
1979 eval "$3=yes"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989
1990} # ac_fn_c_check_type
1991
1992# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1993# ---------------------------------------------
1994# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995# accordingly.
81ecdfbb
RW
1996ac_fn_c_check_decl ()
1997{
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1999 as_decl_name=`echo $2|sed 's/ *(.*//'`
2000 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2003if eval \${$3+:} false; then :
81ecdfbb
RW
2004 $as_echo_n "(cached) " >&6
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$4
2009int
2010main ()
2011{
360cfc9c
AM
2012#ifndef $as_decl_name
2013#ifdef __cplusplus
2014 (void) $as_decl_use;
2015#else
2016 (void) $as_decl_name;
2017#endif
81ecdfbb
RW
2018#endif
2019
2020 ;
2021 return 0;
2022}
2023_ACEOF
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026else
2027 eval "$3=no"
2028fi
2029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033$as_echo "$ac_res" >&6; }
d0ac1c44 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2035
2036} # ac_fn_c_check_decl
2037cat >config.log <<_ACEOF
2038This file contains any messages produced by compilers while
2039running configure, to aid debugging if configure makes a mistake.
2040
f48dfe41 2041It was created by gas $as_me 2.32.51, which was
d0ac1c44 2042generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2043
2044 $ $0 $@
2045
2046_ACEOF
2047exec 5>>config.log
2048{
2049cat <<_ASUNAME
2050## --------- ##
2051## Platform. ##
2052## --------- ##
2053
2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2055uname -m = `(uname -m) 2>/dev/null || echo unknown`
2056uname -r = `(uname -r) 2>/dev/null || echo unknown`
2057uname -s = `(uname -s) 2>/dev/null || echo unknown`
2058uname -v = `(uname -v) 2>/dev/null || echo unknown`
2059
2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2061/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2062
2063/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
2064/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2066/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
2067/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2068/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2069/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2070
2071_ASUNAME
2072
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2078 $as_echo "PATH: $as_dir"
2079 done
2080IFS=$as_save_IFS
9b2b7d69 2081
13b2be9c 2082} >&5
6840198f 2083
13b2be9c 2084cat >&5 <<_ACEOF
c8615825 2085
9b2b7d69 2086
13b2be9c
DJ
2087## ----------- ##
2088## Core tests. ##
2089## ----------- ##
87ccc1b0 2090
13b2be9c 2091_ACEOF
9b2b7d69 2092
13b2be9c
DJ
2093
2094# Keep a trace of the command line.
2095# Strip out --no-create and --no-recursion so they do not pile up.
2096# Strip out --silent because we don't want to record it for future runs.
2097# Also quote any args containing shell meta-characters.
2098# Make two passes to allow for proper duplicate-argument suppression.
2099ac_configure_args=
2100ac_configure_args0=
2101ac_configure_args1=
13b2be9c
DJ
2102ac_must_keep_next=false
2103for ac_pass in 1 2
2104do
2105 for ac_arg
2106 do
2107 case $ac_arg in
2108 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2110 | -silent | --silent | --silen | --sile | --sil)
2111 continue ;;
81ecdfbb
RW
2112 *\'*)
2113 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2114 esac
2115 case $ac_pass in
81ecdfbb 2116 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 2117 2)
81ecdfbb 2118 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2119 if test $ac_must_keep_next = true; then
ab509236 2120 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2121 else
ab509236
L
2122 case $ac_arg in
2123 *=* | --config-cache | -C | -disable-* | --disable-* \
2124 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2125 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2126 | -with-* | --with-* | -without-* | --without-* | --x)
2127 case "$ac_configure_args0 " in
2128 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 esac
2130 ;;
2131 -* ) ac_must_keep_next=true ;;
2132 esac
13b2be9c 2133 fi
81ecdfbb 2134 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2135 ;;
2136 esac
2137 done
13b2be9c 2138done
81ecdfbb
RW
2139{ ac_configure_args0=; unset ac_configure_args0;}
2140{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2141
2142# When interrupted or exit'd, cleanup temporary files, and complete
2143# config.log. We remove comments because anyway the quotes in there
2144# would cause problems or look ugly.
81ecdfbb
RW
2145# WARNING: Use '\'' to represent an apostrophe within the trap.
2146# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2147trap 'exit_status=$?
2148 # Save into config.log some information that might help in debugging.
2149 {
2150 echo
2151
d0ac1c44 2152 $as_echo "## ---------------- ##
13b2be9c 2153## Cache variables. ##
d0ac1c44 2154## ---------------- ##"
13b2be9c
DJ
2155 echo
2156 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2157(
2158 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2159 eval ac_val=\$$ac_var
2160 case $ac_val in #(
2161 *${as_nl}*)
2162 case $ac_var in #(
2163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2164$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 esac
2166 case $ac_var in #(
2167 _ | IFS | as_nl) ;; #(
2168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2169 *) { eval $ac_var=; unset $ac_var;} ;;
2170 esac ;;
2171 esac
2172 done
13b2be9c 2173 (set) 2>&1 |
81ecdfbb
RW
2174 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2175 *${as_nl}ac_space=\ *)
13b2be9c 2176 sed -n \
81ecdfbb
RW
2177 "s/'\''/'\''\\\\'\'''\''/g;
2178 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 ;; #(
13b2be9c 2180 *)
81ecdfbb 2181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2182 ;;
81ecdfbb
RW
2183 esac |
2184 sort
2185)
13b2be9c
DJ
2186 echo
2187
d0ac1c44 2188 $as_echo "## ----------------- ##
13b2be9c 2189## Output variables. ##
d0ac1c44 2190## ----------------- ##"
13b2be9c
DJ
2191 echo
2192 for ac_var in $ac_subst_vars
2193 do
81ecdfbb
RW
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2199 done | sort
2200 echo
2201
2202 if test -n "$ac_subst_files"; then
d0ac1c44 2203 $as_echo "## ------------------- ##
81ecdfbb 2204## File substitutions. ##
d0ac1c44 2205## ------------------- ##"
13b2be9c
DJ
2206 echo
2207 for ac_var in $ac_subst_files
2208 do
81ecdfbb
RW
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2214 done | sort
2215 echo
2216 fi
2217
2218 if test -s confdefs.h; then
d0ac1c44 2219 $as_echo "## ----------- ##
13b2be9c 2220## confdefs.h. ##
d0ac1c44 2221## ----------- ##"
13b2be9c 2222 echo
81ecdfbb 2223 cat confdefs.h
13b2be9c
DJ
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
81ecdfbb
RW
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
13b2be9c 2229 } >&5
81ecdfbb
RW
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2232 exit $exit_status
81ecdfbb 2233' 0
13b2be9c 2234for ac_signal in 1 2 13 15; do
81ecdfbb 2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2236done
2237ac_signal=0
2238
2239# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2240rm -f -r conftest* confdefs.h
2241
2242$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2243
2244# Predefined preprocessor variables.
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_NAME "$PACKAGE_NAME"
2248_ACEOF
2249
13b2be9c
DJ
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252_ACEOF
2253
13b2be9c
DJ
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_VERSION "$PACKAGE_VERSION"
2256_ACEOF
2257
13b2be9c
DJ
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_STRING "$PACKAGE_STRING"
2260_ACEOF
2261
13b2be9c
DJ
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264_ACEOF
2265
81ecdfbb
RW
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_URL "$PACKAGE_URL"
2268_ACEOF
2269
13b2be9c
DJ
2270
2271# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2272# Prefer an explicitly selected file to automatically selected ones.
2273ac_site_file1=NONE
2274ac_site_file2=NONE
2275if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2276 # We do not want a PATH search for config.site.
2277 case $CONFIG_SITE in #((
2278 -*) ac_site_file1=./$CONFIG_SITE;;
2279 */*) ac_site_file1=$CONFIG_SITE;;
2280 *) ac_site_file1=./$CONFIG_SITE;;
2281 esac
81ecdfbb
RW
2282elif test "x$prefix" != xNONE; then
2283 ac_site_file1=$prefix/share/config.site
2284 ac_site_file2=$prefix/etc/config.site
2285else
2286 ac_site_file1=$ac_default_prefix/share/config.site
2287 ac_site_file2=$ac_default_prefix/etc/config.site
2288fi
2289for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2290do
2291 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2292 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2294$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c 2295 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2296 . "$ac_site_file" \
2297 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299as_fn_error $? "failed to load site script $ac_site_file
2300See \`config.log' for more details" "$LINENO" 5; }
13b2be9c
DJ
2301 fi
2302done
2303
2304if test -r "$cache_file"; then
d0ac1c44
SM
2305 # Some versions of bash will fail to source /dev/null (special files
2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2309$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2310 case $cache_file in
81ecdfbb
RW
2311 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2312 *) . "./$cache_file";;
13b2be9c
DJ
2313 esac
2314 fi
2315else
81ecdfbb
RW
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2317$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2318 >$cache_file
2319fi
2320
2321# Check that the precious variables saved in the cache have kept the same
2322# value.
2323ac_cache_corrupted=false
81ecdfbb 2324for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2325 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2326 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2327 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2328 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2329 case $ac_old_set,$ac_new_set in
2330 set,)
81ecdfbb
RW
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2332$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2333 ac_cache_corrupted=: ;;
2334 ,set)
81ecdfbb
RW
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2336$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2337 ac_cache_corrupted=: ;;
2338 ,);;
2339 *)
2340 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2341 # differences in whitespace do not lead to failure.
2342 ac_old_val_w=`echo x $ac_old_val`
2343 ac_new_val_w=`echo x $ac_new_val`
2344 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2346$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2347 ac_cache_corrupted=:
2348 else
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2350$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2351 eval $ac_var=\$ac_old_val
2352 fi
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2354$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2356$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2357 fi;;
2358 esac
2359 # Pass precious variables to config.status.
2360 if test "$ac_new_set" = set; then
2361 case $ac_new_val in
81ecdfbb 2362 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2363 *) ac_arg=$ac_var=$ac_new_val ;;
2364 esac
2365 case " $ac_configure_args " in
2366 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2367 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2368 esac
2369 fi
2370done
2371if $ac_cache_corrupted; then
81ecdfbb
RW
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2375$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2376 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2377fi
81ecdfbb
RW
2378## -------------------- ##
2379## Main body of script. ##
2380## -------------------- ##
13b2be9c
DJ
2381
2382ac_ext=c
2383ac_cpp='$CPP $CPPFLAGS'
2384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388
2389
13b2be9c 2390
da594c4a 2391
13b2be9c
DJ
2392
2393
2394ac_aux_dir=
81ecdfbb 2395for ac_dir in .. "$srcdir"/..; do
d0ac1c44
SM
2396 if test -f "$ac_dir/install-sh"; then
2397 ac_aux_dir=$ac_dir
2398 ac_install_sh="$ac_aux_dir/install-sh -c"
2399 break
2400 elif test -f "$ac_dir/install.sh"; then
2401 ac_aux_dir=$ac_dir
2402 ac_install_sh="$ac_aux_dir/install.sh -c"
2403 break
2404 elif test -f "$ac_dir/shtool"; then
2405 ac_aux_dir=$ac_dir
2406 ac_install_sh="$ac_aux_dir/shtool install -c"
2407 break
2408 fi
13b2be9c
DJ
2409done
2410if test -z "$ac_aux_dir"; then
d0ac1c44 2411 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2412fi
81ecdfbb
RW
2413
2414# These three variables are undocumented and unsupported,
2415# and are intended to be withdrawn in a future Autoconf release.
2416# They can cause serious problems if a builder's source tree is in a directory
2417# whose full name contains unusual characters.
2418ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2419ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2420ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2421
13b2be9c
DJ
2422
2423# Make sure we can run config.sub.
81ecdfbb 2424$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2425 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2426
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2428$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2429if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2430 $as_echo_n "(cached) " >&6
2431else
2432 ac_build_alias=$build_alias
2433test "x$ac_build_alias" = x &&
2434 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2435test "x$ac_build_alias" = x &&
d0ac1c44 2436 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2437ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2438 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2439
2440fi
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2442$as_echo "$ac_cv_build" >&6; }
2443case $ac_cv_build in
2444*-*-*) ;;
d0ac1c44 2445*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2446esac
13b2be9c 2447build=$ac_cv_build
81ecdfbb
RW
2448ac_save_IFS=$IFS; IFS='-'
2449set x $ac_cv_build
2450shift
2451build_cpu=$1
2452build_vendor=$2
2453shift; shift
2454# Remember, the first character of IFS is used to create $*,
2455# except with old shells:
2456build_os=$*
2457IFS=$ac_save_IFS
2458case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2459
2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2463if ${ac_cv_host+:} false; then :
81ecdfbb 2464 $as_echo_n "(cached) " >&6
13b2be9c 2465else
81ecdfbb
RW
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2471fi
13b2be9c
DJ
2472
2473fi
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475$as_echo "$ac_cv_host" >&6; }
2476case $ac_cv_host in
2477*-*-*) ;;
d0ac1c44 2478*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2479esac
13b2be9c 2480host=$ac_cv_host
81ecdfbb
RW
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_host
2483shift
2484host_cpu=$1
2485host_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489host_os=$*
2490IFS=$ac_save_IFS
2491case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2492
2493
81ecdfbb
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2496if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2497 $as_echo_n "(cached) " >&6
2498else
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
13b2be9c 2501else
81ecdfbb 2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2504fi
13b2be9c
DJ
2505
2506fi
81ecdfbb
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508$as_echo "$ac_cv_target" >&6; }
2509case $ac_cv_target in
2510*-*-*) ;;
d0ac1c44 2511*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2512esac
13b2be9c 2513target=$ac_cv_target
81ecdfbb
RW
2514ac_save_IFS=$IFS; IFS='-'
2515set x $ac_cv_target
2516shift
2517target_cpu=$1
2518target_vendor=$2
2519shift; shift
2520# Remember, the first character of IFS is used to create $*,
2521# except with old shells:
2522target_os=$*
2523IFS=$ac_save_IFS
2524case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2525
2526
2527# The aliases save the names the user supplied, while $host etc.
2528# will get canonicalized.
2529test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
d0ac1c44
SM
2533# Expand $ac_aux_dir to an absolute path.
2534am_aux_dir=`cd "$ac_aux_dir" && pwd`
2535
13b2be9c
DJ
2536ac_ext=c
2537ac_cpp='$CPP $CPPFLAGS'
2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2546if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2547 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2548else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551else
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
81ecdfbb 2557 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2561 break 2
2562 fi
2563done
81ecdfbb
RW
2564 done
2565IFS=$as_save_IFS
13b2be9c
DJ
2566
2567fi
2568fi
2569CC=$ac_cv_prog_CC
2570if test -n "$CC"; then
81ecdfbb
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2572$as_echo "$CC" >&6; }
13b2be9c 2573else
81ecdfbb
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575$as_echo "no" >&6; }
13b2be9c
DJ
2576fi
2577
81ecdfbb 2578
13b2be9c
DJ
2579fi
2580if test -z "$ac_cv_prog_CC"; then
2581 ac_ct_CC=$CC
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583set dummy gcc; ac_word=$2
81ecdfbb
RW
2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2586if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2587 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2588else
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
81ecdfbb 2597 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2599 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2601 break 2
2602 fi
2603done
81ecdfbb
RW
2604 done
2605IFS=$as_save_IFS
13b2be9c
DJ
2606
2607fi
2608fi
2609ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2612$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2613else
81ecdfbb
RW
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615$as_echo "no" >&6; }
13b2be9c
DJ
2616fi
2617
81ecdfbb
RW
2618 if test "x$ac_ct_CC" = x; then
2619 CC=""
2620 else
2621 case $cross_compiling:$ac_tool_warned in
2622yes:)
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2625ac_tool_warned=yes ;;
2626esac
2627 CC=$ac_ct_CC
2628 fi
13b2be9c
DJ
2629else
2630 CC="$ac_cv_prog_CC"
2631fi
2632
2633if test -z "$CC"; then
81ecdfbb
RW
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2636set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2639if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2640 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2641else
2642 if test -n "$CC"; then
2643 ac_cv_prog_CC="$CC" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
81ecdfbb 2650 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2652 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2654 break 2
2655 fi
2656done
81ecdfbb
RW
2657 done
2658IFS=$as_save_IFS
13b2be9c
DJ
2659
2660fi
2661fi
2662CC=$ac_cv_prog_CC
2663if test -n "$CC"; then
81ecdfbb
RW
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2665$as_echo "$CC" >&6; }
13b2be9c 2666else
81ecdfbb
RW
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
13b2be9c
DJ
2669fi
2670
13b2be9c 2671
81ecdfbb 2672 fi
13b2be9c
DJ
2673fi
2674if test -z "$CC"; then
2675 # Extract the first word of "cc", so it can be a program name with args.
2676set dummy cc; ac_word=$2
81ecdfbb
RW
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2679if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2680 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2681else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684else
2685 ac_prog_rejected=no
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
81ecdfbb 2691 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c
DJ
2693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2694 ac_prog_rejected=yes
2695 continue
2696 fi
2697 ac_cv_prog_CC="cc"
81ecdfbb 2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2699 break 2
2700 fi
2701done
81ecdfbb
RW
2702 done
2703IFS=$as_save_IFS
2704
13b2be9c
DJ
2705if test $ac_prog_rejected = yes; then
2706 # We found a bogon in the path, so make sure we never use it.
2707 set dummy $ac_cv_prog_CC
2708 shift
2709 if test $# != 0; then
2710 # We chose a different compiler from the bogus one.
2711 # However, it has the same basename, so the bogon will be chosen
2712 # first if we set CC to just the basename; use the full file name.
2713 shift
2714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2715 fi
2716fi
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
81ecdfbb
RW
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722$as_echo "$CC" >&6; }
13b2be9c 2723else
81ecdfbb
RW
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
13b2be9c
DJ
2726fi
2727
81ecdfbb 2728
13b2be9c
DJ
2729fi
2730if test -z "$CC"; then
2731 if test -n "$ac_tool_prefix"; then
81ecdfbb 2732 for ac_prog in cl.exe
13b2be9c
DJ
2733 do
2734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2738if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2739 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2740else
2741 if test -n "$CC"; then
2742 ac_cv_prog_CC="$CC" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
81ecdfbb 2749 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2753 break 2
2754 fi
2755done
81ecdfbb
RW
2756 done
2757IFS=$as_save_IFS
13b2be9c
DJ
2758
2759fi
2760fi
2761CC=$ac_cv_prog_CC
2762if test -n "$CC"; then
81ecdfbb
RW
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764$as_echo "$CC" >&6; }
13b2be9c 2765else
81ecdfbb
RW
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
13b2be9c
DJ
2768fi
2769
81ecdfbb 2770
13b2be9c
DJ
2771 test -n "$CC" && break
2772 done
2773fi
2774if test -z "$CC"; then
2775 ac_ct_CC=$CC
81ecdfbb 2776 for ac_prog in cl.exe
13b2be9c
DJ
2777do
2778 # Extract the first word of "$ac_prog", so it can be a program name with args.
2779set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2782if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2783 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2784else
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787else
2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
81ecdfbb 2793 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2795 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2797 break 2
2798 fi
2799done
81ecdfbb
RW
2800 done
2801IFS=$as_save_IFS
13b2be9c
DJ
2802
2803fi
2804fi
2805ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2809else
81ecdfbb
RW
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811$as_echo "no" >&6; }
13b2be9c
DJ
2812fi
2813
81ecdfbb 2814
13b2be9c
DJ
2815 test -n "$ac_ct_CC" && break
2816done
2817
81ecdfbb
RW
2818 if test "x$ac_ct_CC" = x; then
2819 CC=""
2820 else
2821 case $cross_compiling:$ac_tool_warned in
2822yes:)
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2825ac_tool_warned=yes ;;
2826esac
2827 CC=$ac_ct_CC
2828 fi
13b2be9c
DJ
2829fi
2830
2831fi
2832
2833
81ecdfbb
RW
2834test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2835$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2836as_fn_error $? "no acceptable C compiler found in \$PATH
2837See \`config.log' for more details" "$LINENO" 5; }
13b2be9c
DJ
2838
2839# Provide some information about the compiler.
81ecdfbb
RW
2840$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2841set X $ac_compile
2842ac_compiler=$2
2843for ac_option in --version -v -V -qversion; do
2844 { { ac_try="$ac_compiler $ac_option >&5"
2845case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2850$as_echo "$ac_try_echo"; } >&5
2851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2852 ac_status=$?
81ecdfbb
RW
2853 if test -s conftest.err; then
2854 sed '10a\
2855... rest of stderr output deleted ...
2856 10q' conftest.err >conftest.er1
2857 cat conftest.er1 >&5
81ecdfbb 2858 fi
d0ac1c44 2859 rm -f conftest.er1 conftest.err
81ecdfbb
RW
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }
2862done
13b2be9c 2863
81ecdfbb 2864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2865/* end confdefs.h. */
2866
2867int
2868main ()
2869{
2870
2871 ;
2872 return 0;
2873}
2874_ACEOF
2875ac_clean_files_save=$ac_clean_files
d0ac1c44 2876ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
13b2be9c
DJ
2877# Try to create an executable without -o first, disregard a.out.
2878# It will help us diagnose broken compilers, and finding out an intuition
2879# of exeext.
d0ac1c44
SM
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2881$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
2882ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2883
2884# The possible output files:
2885ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2886
2887ac_rmfiles=
2888for ac_file in $ac_files
2889do
2890 case $ac_file in
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2892 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2893 esac
2894done
2895rm -f $ac_rmfiles
2896
2897if { { ac_try="$ac_link_default"
2898case "(($ac_try" in
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2901esac
2902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2903$as_echo "$ac_try_echo"; } >&5
2904 (eval "$ac_link_default") 2>&5
2905 ac_status=$?
2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2907 test $ac_status = 0; }; then :
2908 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2909# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2910# in a Makefile. We should not override ac_cv_exeext if it was cached,
2911# so that the user can short-circuit this test for compilers unknown to
2912# Autoconf.
2913for ac_file in $ac_files ''
13b2be9c
DJ
2914do
2915 test -f "$ac_file" || continue
2916 case $ac_file in
81ecdfbb 2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2918 ;;
13b2be9c 2919 [ab].out )
ab509236
L
2920 # We found the default executable, but exeext='' is most
2921 # certainly right.
2922 break;;
13b2be9c 2923 *.* )
81ecdfbb
RW
2924 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2925 then :; else
2926 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 fi
2928 # We set ac_cv_exeext here because the later test for it is not
2929 # safe: cross compilers may not add the suffix if given an `-o'
2930 # argument, so we may need to know it at that point already.
2931 # Even if this section looks crufty: it has the advantage of
2932 # actually working.
ab509236 2933 break;;
13b2be9c 2934 * )
ab509236 2935 break;;
13b2be9c
DJ
2936 esac
2937done
81ecdfbb
RW
2938test "$ac_cv_exeext" = no && ac_cv_exeext=
2939
13b2be9c 2940else
81ecdfbb
RW
2941 ac_file=''
2942fi
81ecdfbb 2943if test -z "$ac_file"; then :
d0ac1c44
SM
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946$as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
81ecdfbb
RW
2949{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2951as_fn_error 77 "C compiler cannot create executables
2952See \`config.log' for more details" "$LINENO" 5; }
2953else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955$as_echo "yes" >&6; }
13b2be9c 2956fi
d0ac1c44
SM
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2958$as_echo_n "checking for C compiler default output file name... " >&6; }
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2960$as_echo "$ac_file" >&6; }
13b2be9c 2961ac_exeext=$ac_cv_exeext
13b2be9c 2962
d0ac1c44 2963rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
13b2be9c 2964ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2966$as_echo_n "checking for suffix of executables... " >&6; }
2967if { { ac_try="$ac_link"
2968case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973$as_echo "$ac_try_echo"; } >&5
2974 (eval "$ac_link") 2>&5
13b2be9c 2975 ac_status=$?
81ecdfbb
RW
2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }; then :
13b2be9c
DJ
2978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2979# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2980# work properly (i.e., refer to `conftest.exe'), while it won't with
2981# `rm'.
2982for ac_file in conftest.exe conftest conftest.*; do
2983 test -f "$ac_file" || continue
2984 case $ac_file in
81ecdfbb 2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2987 break;;
13b2be9c
DJ
2988 * ) break;;
2989 esac
2990done
2991else
81ecdfbb
RW
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2994as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2995See \`config.log' for more details" "$LINENO" 5; }
13b2be9c 2996fi
d0ac1c44 2997rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
2998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2999$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
3000
3001rm -f conftest.$ac_ext
3002EXEEXT=$ac_cv_exeext
3003ac_exeext=$EXEEXT
d0ac1c44
SM
3004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3005/* end confdefs.h. */
3006#include <stdio.h>
3007int
3008main ()
3009{
3010FILE *f = fopen ("conftest.out", "w");
3011 return ferror (f) || fclose (f) != 0;
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017ac_clean_files="$ac_clean_files conftest.out"
3018# Check that the compiler produces executables we can run. If not, either
3019# the compiler is broken, or we cross compile.
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3021$as_echo_n "checking whether we are cross compiling... " >&6; }
3022if test "$cross_compiling" != yes; then
3023 { { ac_try="$ac_link"
3024case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3029$as_echo "$ac_try_echo"; } >&5
3030 (eval "$ac_link") 2>&5
3031 ac_status=$?
3032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3033 test $ac_status = 0; }
3034 if { ac_try='./conftest$ac_cv_exeext'
3035 { { case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038esac
3039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040$as_echo "$ac_try_echo"; } >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }; }; then
3045 cross_compiling=no
3046 else
3047 if test "$cross_compiling" = maybe; then
3048 cross_compiling=yes
3049 else
3050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052as_fn_error $? "cannot run C compiled programs.
3053If you meant to cross compile, use \`--host'.
3054See \`config.log' for more details" "$LINENO" 5; }
3055 fi
3056 fi
3057fi
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3059$as_echo "$cross_compiling" >&6; }
3060
3061rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3062ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3064$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3065if ${ac_cv_objext+:} false; then :
81ecdfbb 3066 $as_echo_n "(cached) " >&6
13b2be9c 3067else
81ecdfbb 3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
3079rm -f conftest.o conftest.obj
81ecdfbb
RW
3080if { { ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compile") 2>&5
3088 ac_status=$?
3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }; then :
3091 for ac_file in conftest.o conftest.obj conftest.*; do
3092 test -f "$ac_file" || continue;
13b2be9c 3093 case $ac_file in
81ecdfbb 3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
3095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3096 break;;
3097 esac
3098done
3099else
81ecdfbb 3100 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
81ecdfbb
RW
3103{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3105as_fn_error $? "cannot compute suffix of object files: cannot compile
3106See \`config.log' for more details" "$LINENO" 5; }
13b2be9c 3107fi
13b2be9c
DJ
3108rm -f conftest.$ac_cv_objext conftest.$ac_ext
3109fi
81ecdfbb
RW
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3111$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
3112OBJEXT=$ac_cv_objext
3113ac_objext=$OBJEXT
81ecdfbb
RW
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3115$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3116if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3117 $as_echo_n "(cached) " >&6
13b2be9c 3118else
81ecdfbb 3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
3125#ifndef __GNUC__
3126 choke me
3127#endif
3128
3129 ;
3130 return 0;
3131}
3132_ACEOF
81ecdfbb 3133if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3134 ac_compiler_gnu=yes
3135else
81ecdfbb 3136 ac_compiler_gnu=no
13b2be9c 3137fi
81ecdfbb 3138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
3139ac_cv_c_compiler_gnu=$ac_compiler_gnu
3140
3141fi
81ecdfbb
RW
3142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3143$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3144if test $ac_compiler_gnu = yes; then
3145 GCC=yes
3146else
3147 GCC=
3148fi
13b2be9c
DJ
3149ac_test_CFLAGS=${CFLAGS+set}
3150ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3152$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3153if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3154 $as_echo_n "(cached) " >&6
3155else
3156 ac_save_c_werror_flag=$ac_c_werror_flag
3157 ac_c_werror_flag=yes
3158 ac_cv_prog_cc_g=no
3159 CFLAGS="-g"
3160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
81ecdfbb 3171if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3172 ac_cv_prog_cc_g=yes
3173else
81ecdfbb
RW
3174 CFLAGS=""
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176/* end confdefs.h. */
13b2be9c 3177
81ecdfbb
RW
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186if ac_fn_c_try_compile "$LINENO"; then :
3187
3188else
3189 ac_c_werror_flag=$ac_save_c_werror_flag
3190 CFLAGS="-g"
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h. */
3193
3194int
3195main ()
3196{
3197
3198 ;
3199 return 0;
3200}
3201_ACEOF
3202if ac_fn_c_try_compile "$LINENO"; then :
3203 ac_cv_prog_cc_g=yes
3204fi
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3206fi
81ecdfbb 3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3208fi
81ecdfbb
RW
3209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3211fi
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3213$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3214if test "$ac_test_CFLAGS" = set; then
3215 CFLAGS=$ac_save_CFLAGS
3216elif test $ac_cv_prog_cc_g = yes; then
3217 if test "$GCC" = yes; then
3218 CFLAGS="-g -O2"
3219 else
3220 CFLAGS="-g"
3221 fi
3222else
3223 if test "$GCC" = yes; then
3224 CFLAGS="-O2"
3225 else
3226 CFLAGS=
3227 fi
3228fi
81ecdfbb
RW
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3230$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3231if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3232 $as_echo_n "(cached) " >&6
13b2be9c 3233else
81ecdfbb 3234 ac_cv_prog_cc_c89=no
13b2be9c 3235ac_save_CC=$CC
81ecdfbb 3236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3237/* end confdefs.h. */
3238#include <stdarg.h>
3239#include <stdio.h>
d0ac1c44 3240struct stat;
13b2be9c
DJ
3241/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3242struct buf { int x; };
3243FILE * (*rcsopen) (struct buf *, struct stat *, int);
3244static char *e (p, i)
3245 char **p;
3246 int i;
3247{
3248 return p[i];
3249}
3250static char *f (char * (*g) (char **, int), char **p, ...)
3251{
3252 char *s;
3253 va_list v;
3254 va_start (v,p);
3255 s = g (p, va_arg (v,int));
3256 va_end (v);
3257 return s;
3258}
ab509236
L
3259
3260/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3261 function prototypes and stuff, but not '\xHH' hex character constants.
3262 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3263 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3264 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3265 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3266 that's true only with -std. */
ab509236
L
3267int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268
81ecdfbb
RW
3269/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3270 inside strings and character constants. */
3271#define FOO(x) 'x'
3272int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273
13b2be9c
DJ
3274int test (int i, double x);
3275struct s1 {int (*f) (int a);};
3276struct s2 {int (*f) (double a);};
3277int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3278int argc;
3279char **argv;
3280int
3281main ()
3282{
3283return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 ;
3285 return 0;
3286}
3287_ACEOF
81ecdfbb
RW
3288for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3289 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3290do
3291 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3294fi
81ecdfbb
RW
3295rm -f core conftest.err conftest.$ac_objext
3296 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3297done
81ecdfbb 3298rm -f conftest.$ac_ext
13b2be9c
DJ
3299CC=$ac_save_CC
3300
3301fi
81ecdfbb
RW
3302# AC_CACHE_VAL
3303case "x$ac_cv_prog_cc_c89" in
3304 x)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3306$as_echo "none needed" >&6; } ;;
3307 xno)
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3309$as_echo "unsupported" >&6; } ;;
13b2be9c 3310 *)
81ecdfbb
RW
3311 CC="$CC $ac_cv_prog_cc_c89"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3313$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3314esac
81ecdfbb 3315if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3316
13b2be9c
DJ
3317fi
3318
13b2be9c
DJ
3319ac_ext=c
3320ac_cpp='$CPP $CPPFLAGS'
3321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324
d0ac1c44
SM
3325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3331$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3332if ${am_cv_prog_cc_c_o+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h. */
3337
3338int
3339main ()
3340{
3341
3342 ;
3343 return 0;
3344}
3345_ACEOF
3346 # Make sure it works both with $CC and with simple cc.
3347 # Following AC_PROG_CC_C_O, we do the test twice because some
3348 # compilers refuse to overwrite an existing .o file with -o,
3349 # though they will create one.
3350 am_cv_prog_cc_c_o=yes
3351 for am_i in 1 2; do
3352 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3353 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } \
3357 && test -f conftest2.$ac_objext; then
3358 : OK
3359 else
3360 am_cv_prog_cc_c_o=no
3361 break
3362 fi
3363 done
3364 rm -f core conftest*
3365 unset am_i
3366fi
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3368$as_echo "$am_cv_prog_cc_c_o" >&6; }
3369if test "$am_cv_prog_cc_c_o" != yes; then
3370 # Losing compiler, so override with the script.
3371 # FIXME: It is wrong to rewrite CC.
3372 # But if we don't then we get into trouble of one sort or another.
3373 # A longer-term fix would be to have automake use am__CC in this case,
3374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3375 CC="$am_aux_dir/compile $CC"
3376fi
3377ac_ext=c
3378ac_cpp='$CPP $CPPFLAGS'
3379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382
3383
13b2be9c 3384
81ecdfbb
RW
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3386$as_echo_n "checking for library containing strerror... " >&6; }
d0ac1c44 3387if ${ac_cv_search_strerror+:} false; then :
81ecdfbb 3388 $as_echo_n "(cached) " >&6
13b2be9c 3389else
ab509236 3390 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3392/* end confdefs.h. */
3393
81ecdfbb
RW
3394/* Override any GCC internal prototype to avoid an error.
3395 Use char because int might match the return type of a GCC
3396 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3397#ifdef __cplusplus
3398extern "C"
3399#endif
13b2be9c
DJ
3400char strerror ();
3401int
3402main ()
3403{
81ecdfbb 3404return strerror ();
13b2be9c
DJ
3405 ;
3406 return 0;
3407}
3408_ACEOF
81ecdfbb
RW
3409for ac_lib in '' cposix; do
3410 if test -z "$ac_lib"; then
3411 ac_res="none required"
3412 else
3413 ac_res=-l$ac_lib
ab509236 3414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3415 fi
3416 if ac_fn_c_try_link "$LINENO"; then :
3417 ac_cv_search_strerror=$ac_res
3418fi
3419rm -f core conftest.err conftest.$ac_objext \
3420 conftest$ac_exeext
d0ac1c44 3421 if ${ac_cv_search_strerror+:} false; then :
81ecdfbb
RW
3422 break
3423fi
3424done
d0ac1c44 3425if ${ac_cv_search_strerror+:} false; then :
ab509236 3426
ab509236 3427else
81ecdfbb 3428 ac_cv_search_strerror=no
13b2be9c 3429fi
81ecdfbb 3430rm conftest.$ac_ext
ab509236
L
3431LIBS=$ac_func_search_save_LIBS
3432fi
81ecdfbb
RW
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3434$as_echo "$ac_cv_search_strerror" >&6; }
3435ac_res=$ac_cv_search_strerror
3436if test "$ac_res" != no; then :
3437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3438
ab509236 3439fi
13b2be9c
DJ
3440
3441
d0ac1c44 3442am__api_version='1.15'
81ecdfbb 3443
13b2be9c
DJ
3444# Find a good install program. We prefer a C program (faster),
3445# so one script is as good as another. But avoid the broken or
3446# incompatible versions:
3447# SysV /etc/install, /usr/sbin/install
3448# SunOS /usr/etc/install
3449# IRIX /sbin/install
3450# AIX /bin/install
3451# AmigaOS /C/install, which installs bootblocks on floppy discs
3452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3455# OS/2's system install, which has a completely different semantic
13b2be9c 3456# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3457# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3459$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3460if test -z "$INSTALL"; then
d0ac1c44 3461if ${ac_cv_path_install+:} false; then :
81ecdfbb 3462 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3463else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3469 # Account for people who put trailing slashes in PATH elements.
3470case $as_dir/ in #((
3471 ./ | .// | /[cC]/* | \
13b2be9c 3472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3474 /usr/ucb/* ) ;;
3475 *)
3476 # OSF1 and SCO ODT 3.0 have their own names for install.
3477 # Don't use installbsd from OSF since it installs stuff as root
3478 # by default.
3479 for ac_prog in ginstall scoinst install; do
3480 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3481 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ab509236
L
3482 if test $ac_prog = install &&
3483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3484 # AIX install. It has an incompatible calling convention.
3485 :
3486 elif test $ac_prog = install &&
3487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488 # program-specific install script used by HP pwplus--don't use.
3489 :
3490 else
58c85be7
RW
3491 rm -rf conftest.one conftest.two conftest.dir
3492 echo one > conftest.one
3493 echo two > conftest.two
3494 mkdir conftest.dir
3495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3496 test -s conftest.one && test -s conftest.two &&
3497 test -s conftest.dir/conftest.one &&
3498 test -s conftest.dir/conftest.two
3499 then
3500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3501 break 3
3502 fi
ab509236
L
3503 fi
3504 fi
13b2be9c
DJ
3505 done
3506 done
3507 ;;
3508esac
81ecdfbb
RW
3509
3510 done
3511IFS=$as_save_IFS
13b2be9c 3512
58c85be7 3513rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3514
3515fi
3516 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3517 INSTALL=$ac_cv_path_install
252b5132 3518 else
58c85be7
RW
3519 # As a last resort, use the slow shell script. Don't cache a
3520 # value for INSTALL within a source directory, because that will
252b5132 3521 # break other packages using the cache if that directory is
58c85be7 3522 # removed, or if the value is a relative name.
13b2be9c 3523 INSTALL=$ac_install_sh
252b5132
RH
3524 fi
3525fi
81ecdfbb
RW
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3527$as_echo "$INSTALL" >&6; }
252b5132
RH
3528
3529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3530# It thinks the first close brace ends the variable substitution.
3531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3532
13b2be9c 3533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3534
3535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3536
81ecdfbb
RW
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3538$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
3539# Reject unsafe characters in $srcdir or the absolute working directory
3540# name. Accept space and tab only in the latter.
3541am_lf='
3542'
3543case `pwd` in
3544 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 3545 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
3546esac
3547case $srcdir in
3548 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 3549 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
3550esac
3551
d0ac1c44 3552# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
3553# arguments. Must try -L first in case configure is actually a
3554# symlink; some systems play weird games with the mod time of symlinks
3555# (eg FreeBSD returns the mod time of the symlink's containing
3556# directory).
3557if (
d0ac1c44
SM
3558 am_has_slept=no
3559 for am_try in 1 2; do
3560 echo "timestamp, slept: $am_has_slept" > conftest.file
3561 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3562 if test "$*" = "X"; then
3563 # -L didn't work.
3564 set X `ls -t "$srcdir/configure" conftest.file`
3565 fi
3566 if test "$*" != "X $srcdir/configure conftest.file" \
3567 && test "$*" != "X conftest.file $srcdir/configure"; then
3568
3569 # If neither matched, then we have a broken ls. This can happen
3570 # if, for instance, CONFIG_SHELL is bash and it inherits a
3571 # broken ls alias from the environment. This has actually
3572 # happened. Such a system could not be considered "sane".
3573 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3574 alias in your environment" "$LINENO" 5
3575 fi
3576 if test "$2" = conftest.file || test $am_try -eq 2; then
3577 break
3578 fi
3579 # Just in case.
3580 sleep 1
3581 am_has_slept=yes
3582 done
13b2be9c
DJ
3583 test "$2" = conftest.file
3584 )
3585then
3586 # Ok.
3587 :
3588else
d0ac1c44 3589 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3590Check your system clock" "$LINENO" 5
13b2be9c 3591fi
81ecdfbb
RW
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593$as_echo "yes" >&6; }
d0ac1c44
SM
3594# If we didn't sleep, we still need to ensure time stamps of config.status and
3595# generated files are strictly newer.
3596am_sleep_pid=
3597if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3598 ( sleep 1 ) &
3599 am_sleep_pid=$!
3600fi
3601
3602rm -f conftest.file
3603
13b2be9c 3604test "$program_prefix" != NONE &&
81ecdfbb 3605 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3606# Use a double $ so make ignores it.
3607test "$program_suffix" != NONE &&
81ecdfbb
RW
3608 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3609# Double any \ or $.
13b2be9c 3610# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3611ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3612program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3613
81ecdfbb
RW
3614if test x"${MISSING+set}" != xset; then
3615 case $am_aux_dir in
3616 *\ * | *\ *)
3617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3618 *)
3619 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3620 esac
3621fi
13b2be9c 3622# Use eval to expand $SHELL
d0ac1c44
SM
3623if eval "$MISSING --is-lightweight"; then
3624 am_missing_run="$MISSING "
13b2be9c
DJ
3625else
3626 am_missing_run=
d0ac1c44
SM
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3628$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
ab509236
L
3629fi
3630
d0ac1c44 3631if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3632 case $am_aux_dir in
3633 *\ * | *\ *)
3634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3635 *)
3636 install_sh="\${SHELL} $am_aux_dir/install-sh"
3637 esac
3638fi
3639
d0ac1c44
SM
3640# Installed binaries are usually stripped using 'strip' when the user
3641# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3642# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3643# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3644if test "$cross_compiling" != no; then
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}strip; ac_word=$2
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3650if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 3651 $as_echo_n "(cached) " >&6
13b2be9c 3652else
81ecdfbb
RW
3653 if test -n "$STRIP"; then
3654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3655else
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
81ecdfbb 3661 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3665 break 2
3666 fi
3667done
81ecdfbb
RW
3668 done
3669IFS=$as_save_IFS
13b2be9c
DJ
3670
3671fi
3672fi
81ecdfbb
RW
3673STRIP=$ac_cv_prog_STRIP
3674if test -n "$STRIP"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3676$as_echo "$STRIP" >&6; }
13b2be9c 3677else
81ecdfbb
RW
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679$as_echo "no" >&6; }
13b2be9c
DJ
3680fi
3681
13b2be9c 3682
81ecdfbb
RW
3683fi
3684if test -z "$ac_cv_prog_STRIP"; then
3685 ac_ct_STRIP=$STRIP
3686 # Extract the first word of "strip", so it can be a program name with args.
3687set dummy strip; ac_word=$2
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3690if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 3691 $as_echo_n "(cached) " >&6
13b2be9c 3692else
81ecdfbb
RW
3693 if test -n "$ac_ct_STRIP"; then
3694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3695else
81ecdfbb
RW
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697for as_dir in $PATH
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3703 ac_cv_prog_ac_ct_STRIP="strip"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3706 fi
3707done
3708 done
3709IFS=$as_save_IFS
3710
3711fi
3712fi
3713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3714if test -n "$ac_ct_STRIP"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3716$as_echo "$ac_ct_STRIP" >&6; }
3717else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719$as_echo "no" >&6; }
3720fi
3721
3722 if test "x$ac_ct_STRIP" = x; then
3723 STRIP=":"
3724 else
3725 case $cross_compiling:$ac_tool_warned in
3726yes:)
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3729ac_tool_warned=yes ;;
3730esac
3731 STRIP=$ac_ct_STRIP
3732 fi
3733else
3734 STRIP="$ac_cv_prog_STRIP"
3735fi
3736
3737fi
3738INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3739
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3741$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3742if test -z "$MKDIR_P"; then
d0ac1c44 3743 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3744 $as_echo_n "(cached) " >&6
3745else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in mkdir gmkdir; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3753 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3755 'mkdir (GNU coreutils) '* | \
3756 'mkdir (coreutils) '* | \
3757 'mkdir (fileutils) '4.1*)
3758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3759 break 3;;
3760 esac
3761 done
3762 done
3763 done
3764IFS=$as_save_IFS
3765
3766fi
3767
d0ac1c44 3768 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3769 if test "${ac_cv_path_mkdir+set}" = set; then
3770 MKDIR_P="$ac_cv_path_mkdir -p"
3771 else
3772 # As a last resort, use the slow shell script. Don't cache a
3773 # value for MKDIR_P within a source directory, because that will
3774 # break other packages using the cache if that directory is
3775 # removed, or if the value is a relative name.
81ecdfbb
RW
3776 MKDIR_P="$ac_install_sh -d"
3777 fi
3778fi
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3780$as_echo "$MKDIR_P" >&6; }
3781
81ecdfbb
RW
3782for ac_prog in gawk mawk nawk awk
3783do
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785set dummy $ac_prog; ac_word=$2
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3788if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
3789 $as_echo_n "(cached) " >&6
3790else
3791 if test -n "$AWK"; then
3792 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797 IFS=$as_save_IFS
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3801 ac_cv_prog_AWK="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805done
3806 done
3807IFS=$as_save_IFS
3808
3809fi
3810fi
3811AWK=$ac_cv_prog_AWK
3812if test -n "$AWK"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3814$as_echo "$AWK" >&6; }
3815else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817$as_echo "no" >&6; }
13b2be9c 3818fi
81ecdfbb
RW
3819
3820
3821 test -n "$AWK" && break
3822done
3823
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3825$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3826set x ${MAKE-make}
3827ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3828if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb
RW
3829 $as_echo_n "(cached) " >&6
3830else
3831 cat >conftest.make <<\_ACEOF
3832SHELL = /bin/sh
3833all:
3834 @echo '@@@%%%=$(MAKE)=@@@%%%'
3835_ACEOF
d0ac1c44 3836# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3837case `${MAKE-make} -f conftest.make 2>/dev/null` in
3838 *@@@%%%=?*=@@@%%%*)
3839 eval ac_cv_prog_make_${ac_make}_set=yes;;
3840 *)
3841 eval ac_cv_prog_make_${ac_make}_set=no;;
3842esac
13b2be9c
DJ
3843rm -f conftest.make
3844fi
81ecdfbb
RW
3845if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3847$as_echo "yes" >&6; }
13b2be9c
DJ
3848 SET_MAKE=
3849else
81ecdfbb
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
13b2be9c
DJ
3852 SET_MAKE="MAKE=${MAKE-make}"
3853fi
3854
3855rm -rf .tst 2>/dev/null
3856mkdir .tst 2>/dev/null
3857if test -d .tst; then
3858 am__leading_dot=.
3859else
3860 am__leading_dot=_
3861fi
3862rmdir .tst 2>/dev/null
3863
3864DEPDIR="${am__leading_dot}deps"
3865
81ecdfbb 3866ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3867
3868
3869am_make=${MAKE-make}
3870cat > confinc << 'END'
3871am__doit:
81ecdfbb 3872 @echo this is the am__doit target
13b2be9c
DJ
3873.PHONY: am__doit
3874END
3875# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3877$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3878am__include="#"
3879am__quote=
3880_am_result=none
3881# First try GNU make style include.
3882echo "include confinc" > confmf
d0ac1c44 3883# Ignore all kinds of additional output from 'make'.
81ecdfbb
RW
3884case `$am_make -s -f confmf 2> /dev/null` in #(
3885*the\ am__doit\ target*)
3886 am__include=include
3887 am__quote=
3888 _am_result=GNU
3889 ;;
3890esac
13b2be9c
DJ
3891# Now try BSD make style include.
3892if test "$am__include" = "#"; then
3893 echo '.include "confinc"' > confmf
81ecdfbb
RW
3894 case `$am_make -s -f confmf 2> /dev/null` in #(
3895 *the\ am__doit\ target*)
3896 am__include=.include
3897 am__quote="\""
3898 _am_result=BSD
3899 ;;
3900 esac
13b2be9c
DJ
3901fi
3902
3903
81ecdfbb
RW
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3905$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3906rm -f confinc confmf
3907
81ecdfbb
RW
3908# Check whether --enable-dependency-tracking was given.
3909if test "${enable_dependency_tracking+set}" = set; then :
3910 enableval=$enable_dependency_tracking;
3911fi
13b2be9c 3912
13b2be9c
DJ
3913if test "x$enable_dependency_tracking" != xno; then
3914 am_depcomp="$ac_aux_dir/depcomp"
3915 AMDEPBACKSLASH='\'
6eb7d830 3916 am__nodep='_no'
13b2be9c 3917fi
81ecdfbb 3918 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3919 AMDEP_TRUE=
3920 AMDEP_FALSE='#'
3921else
3922 AMDEP_TRUE='#'
3923 AMDEP_FALSE=
3924fi
3925
3926
d0ac1c44
SM
3927# Check whether --enable-silent-rules was given.
3928if test "${enable_silent_rules+set}" = set; then :
3929 enableval=$enable_silent_rules;
3930fi
3931
3932case $enable_silent_rules in # (((
3933 yes) AM_DEFAULT_VERBOSITY=0;;
3934 no) AM_DEFAULT_VERBOSITY=1;;
3935 *) AM_DEFAULT_VERBOSITY=1;;
3936esac
3937am_make=${MAKE-make}
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3939$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3940if ${am_cv_make_support_nested_variables+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942else
3943 if $as_echo 'TRUE=$(BAR$(V))
3944BAR0=false
3945BAR1=true
3946V=1
3947am__doit:
3948 @$(TRUE)
3949.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3950 am_cv_make_support_nested_variables=yes
3951else
3952 am_cv_make_support_nested_variables=no
3953fi
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3956$as_echo "$am_cv_make_support_nested_variables" >&6; }
3957if test $am_cv_make_support_nested_variables = yes; then
3958 AM_V='$(V)'
3959 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3960else
3961 AM_V=$AM_DEFAULT_VERBOSITY
3962 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3963fi
3964AM_BACKSLASH='\'
3965
81ecdfbb
RW
3966if test "`cd $srcdir && pwd`" != "`pwd`"; then
3967 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3968 # is not polluted with repeated "-I."
3969 am__isrc=' -I$(srcdir)'
3970 # test to see if srcdir already configured
3971 if test -f $srcdir/config.status; then
d0ac1c44 3972 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3973 fi
13b2be9c
DJ
3974fi
3975
3976# test whether we have cygpath
3977if test -z "$CYGPATH_W"; then
3978 if (cygpath --version) >/dev/null 2>/dev/null; then
3979 CYGPATH_W='cygpath -w'
3980 else
3981 CYGPATH_W=echo
3982 fi
3983fi
3984
3985
3986# Define the identity of the package.
2e98a7bd 3987 PACKAGE='gas'
f48dfe41 3988 VERSION='2.32.51'
13b2be9c
DJ
3989
3990
3991cat >>confdefs.h <<_ACEOF
3992#define PACKAGE "$PACKAGE"
3993_ACEOF
3994
3995
3996cat >>confdefs.h <<_ACEOF
3997#define VERSION "$VERSION"
3998_ACEOF
3999
4000# Some tools Automake needs.
4001
4002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4003
4004
4005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4006
4007
4008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4009
4010
4011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4012
4013
4014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4015
d0ac1c44
SM
4016# For better backward compatibility. To be removed once Automake 1.9.x
4017# dies out for good. For more background, see:
4018# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4019# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4020mkdir_p='$(MKDIR_P)'
4021
4022# We need awk for the "check" target (and possibly the TAP driver). The
4023# system "awk" is bad on some platforms.
6eb7d830
AM
4024# Always define AMTAR for backward compatibility. Yes, it's still used
4025# in the wild :-( We should find a proper way to deprecate it ...
4026AMTAR='$${TAR-tar}'
8ea2b00f 4027
d0ac1c44
SM
4028
4029# We'll loop over all known methods to create a tar archive until one works.
4030_am_tools='gnutar pax cpio none'
4031
6eb7d830 4032am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8ea2b00f
AM
4033
4034
252b5132 4035
d6d788bd 4036
d0ac1c44 4037
13b2be9c 4038depcc="$CC" am_compiler_list=
d6d788bd 4039
81ecdfbb
RW
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4042if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 4043 $as_echo_n "(cached) " >&6
252b5132 4044else
13b2be9c
DJ
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4049 # making a dummy file named 'D' -- because '-MD' means "put the output
4050 # in D".
6eb7d830 4051 rm -rf conftest.dir
13b2be9c
DJ
4052 mkdir conftest.dir
4053 # Copy depcomp to subdir because otherwise we won't find it if we're
4054 # using a relative directory.
4055 cp "$am_depcomp" conftest.dir
4056 cd conftest.dir
4057 # We will build objects and dependencies in a subdirectory because
4058 # it helps to detect inapplicable dependency modes. For instance
4059 # both Tru64's cc and ICC support -MD to output dependencies as a
4060 # side effect of compilation, but ICC will put the dependencies in
4061 # the current directory while Tru64 will put them in the object
4062 # directory.
4063 mkdir sub
252b5132 4064
13b2be9c
DJ
4065 am_cv_CC_dependencies_compiler_type=none
4066 if test "$am_compiler_list" = ""; then
4067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4068 fi
81ecdfbb
RW
4069 am__universal=false
4070 case " $depcc " in #(
4071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4072 esac
4073
13b2be9c
DJ
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4078 #
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4082 : > sub/conftest.c
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4085 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086 # Solaris 10 /bin/sh.
4087 echo '/* dummy */' > sub/conftst$i.h
13b2be9c
DJ
4088 done
4089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4090
d0ac1c44 4091 # We check with '-c' and '-o' for the sake of the "dashmstdout"
81ecdfbb 4092 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4093 # handle '-M -o', and we need to detect this. Also, some Intel
4094 # versions had trouble with output in subdirs.
81ecdfbb
RW
4095 am__obj=sub/conftest.${OBJEXT-o}
4096 am__minus_obj="-o $am__obj"
13b2be9c 4097 case $depmode in
81ecdfbb
RW
4098 gcc)
4099 # This depmode causes a compiler race in universal mode.
4100 test "$am__universal" = false || continue
4101 ;;
13b2be9c 4102 nosideeffect)
d0ac1c44
SM
4103 # After this tag, mechanisms are not by side-effect, so they'll
4104 # only be used when explicitly requested.
13b2be9c
DJ
4105 if test "x$enable_dependency_tracking" = xyes; then
4106 continue
4107 else
4108 break
4109 fi
4110 ;;
6eb7d830 4111 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4112 # This compiler won't grok '-c -o', but also, the minuso test has
81ecdfbb
RW
4113 # not run yet. These depmodes are late enough in the game, and
4114 # so weak that their functioning should not be impacted.
4115 am__obj=conftest.${OBJEXT-o}
4116 am__minus_obj=
4117 ;;
13b2be9c
DJ
4118 none) break ;;
4119 esac
13b2be9c 4120 if depmode=$depmode \
81ecdfbb 4121 source=sub/conftest.c object=$am__obj \
13b2be9c 4122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 4124 >/dev/null 2>conftest.err &&
81ecdfbb 4125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 4126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
4128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
4130 # or remarks (even with -Werror). So we grep stderr for any message
4131 # that says an option was ignored or not supported.
4132 # When given -MP, icc 7.0 and 7.1 complain thusly:
4133 # icc: Command line warning: ignoring option '-M'; no argument required
4134 # The diagnosis changed in icc 8.0:
4135 # icc: Command line remark: option '-MP' not supported
4136 if (grep 'ignoring option' conftest.err ||
4137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
4138 am_cv_CC_dependencies_compiler_type=$depmode
4139 break
4140 fi
4141 fi
4142 done
252b5132 4143
13b2be9c
DJ
4144 cd ..
4145 rm -rf conftest.dir
252b5132 4146else
13b2be9c 4147 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
4148fi
4149
252b5132 4150fi
81ecdfbb
RW
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 4153CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4154
81ecdfbb 4155 if
13b2be9c
DJ
4156 test "x$enable_dependency_tracking" != xno \
4157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4158 am__fastdepCC_TRUE=
4159 am__fastdepCC_FALSE='#'
252b5132 4160else
13b2be9c
DJ
4161 am__fastdepCC_TRUE='#'
4162 am__fastdepCC_FALSE=
252b5132
RH
4163fi
4164
d6d788bd
L
4165
4166
d0ac1c44
SM
4167# POSIX will say in a future version that running "rm -f" with no argument
4168# is OK; and we want to be able to make that assumption in our Makefile
4169# recipes. So use an aggressive probe to check that the usage we want is
4170# actually supported "in the wild" to an acceptable degree.
4171# See automake bug#10828.
4172# To make any issue more visible, cause the running configure to be aborted
4173# by default if the 'rm' program in use doesn't match our expectations; the
4174# user can still override this though.
4175if rm -f && rm -fr && rm -rf; then : OK; else
4176 cat >&2 <<'END'
4177Oops!
4178
4179Your 'rm' program seems unable to run without file operands specified
4180on the command line, even when the '-f' option is present. This is contrary
4181to the behaviour of most rm programs out there, and not conforming with
4182the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4183
4184Please tell bug-automake@gnu.org about your system, including the value
4185of your $PATH and any error possibly output before this message. This
4186can help us improve future automake versions.
4187
4188END
4189 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4190 echo 'Configuration will proceed anyway, since you have set the' >&2
4191 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4192 echo >&2
4193 else
4194 cat >&2 <<'END'
4195Aborting the configuration process, to ensure you take notice of the issue.
4196
4197You can download and install GNU coreutils to get an 'rm' implementation
4198that behaves properly: <http://www.gnu.org/software/coreutils/>.
4199
4200If you want to complete the configuration process using your problematic
4201'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4202to "yes", and re-run configure.
4203
4204END
4205 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4206 fi
4207fi
4208
13b2be9c 4209
ce2cded5
L
4210ac_ext=c
4211ac_cpp='$CPP $CPPFLAGS'
4212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215if test -n "$ac_tool_prefix"; then
4216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4217set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4220if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4221 $as_echo_n "(cached) " >&6
252b5132 4222else
ce2cded5
L
4223 if test -n "$CC"; then
4224 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4225else
ce2cded5
L
4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in $PATH
4228do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
81ecdfbb 4231 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4235 break 2
4236 fi
4237done
81ecdfbb
RW
4238 done
4239IFS=$as_save_IFS
d7040cdb 4240
ce2cded5
L
4241fi
4242fi
4243CC=$ac_cv_prog_CC
4244if test -n "$CC"; then
81ecdfbb
RW
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4246$as_echo "$CC" >&6; }
bedf545c 4247else
81ecdfbb
RW
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249$as_echo "no" >&6; }
ce2cded5 4250fi
d7040cdb 4251
81ecdfbb 4252
ce2cded5
L
4253fi
4254if test -z "$ac_cv_prog_CC"; then
4255 ac_ct_CC=$CC
4256 # Extract the first word of "gcc", so it can be a program name with args.
4257set dummy gcc; ac_word=$2
81ecdfbb
RW
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4260if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4261 $as_echo_n "(cached) " >&6
d7040cdb 4262else
ce2cded5
L
4263 if test -n "$ac_ct_CC"; then
4264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4265else
d7040cdb
SE
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
81ecdfbb 4271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4273 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4275 break 2
d7040cdb 4276 fi
ce2cded5 4277done
81ecdfbb
RW
4278 done
4279IFS=$as_save_IFS
d7040cdb 4280
ce2cded5
L
4281fi
4282fi
4283ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4286$as_echo "$ac_ct_CC" >&6; }
ce2cded5 4287else
81ecdfbb
RW
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289$as_echo "no" >&6; }
d7040cdb
SE
4290fi
4291
81ecdfbb
RW
4292 if test "x$ac_ct_CC" = x; then
4293 CC=""
4294 else
4295 case $cross_compiling:$ac_tool_warned in
4296yes:)
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299ac_tool_warned=yes ;;
4300esac
4301 CC=$ac_ct_CC
4302 fi
ce2cded5
L
4303else
4304 CC="$ac_cv_prog_CC"
4305fi
d7040cdb 4306
ce2cded5 4307if test -z "$CC"; then
81ecdfbb
RW
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4310set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4313if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4314 $as_echo_n "(cached) " >&6
d7040cdb 4315else
ce2cded5
L
4316 if test -n "$CC"; then
4317 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4318else
ce2cded5
L
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
81ecdfbb 4324 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4326 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4328 break 2
4329 fi
4330done
81ecdfbb
RW
4331 done
4332IFS=$as_save_IFS
d7040cdb 4333
252b5132
RH
4334fi
4335fi
ce2cded5
L
4336CC=$ac_cv_prog_CC
4337if test -n "$CC"; then
81ecdfbb
RW
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4339$as_echo "$CC" >&6; }
ce2cded5 4340else
81ecdfbb
RW
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
d7040cdb 4343fi
f9c19112 4344
ce2cded5 4345
81ecdfbb 4346 fi
ce2cded5
L
4347fi
4348if test -z "$CC"; then
4349 # Extract the first word of "cc", so it can be a program name with args.
4350set dummy cc; ac_word=$2
81ecdfbb
RW
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4353if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4354 $as_echo_n "(cached) " >&6
ce2cded5
L
4355else
4356 if test -n "$CC"; then
4357 ac_cv_prog_CC="$CC" # Let the user override the test.
4358else
4359 ac_prog_rejected=no
4360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361for as_dir in $PATH
4362do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
81ecdfbb 4365 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5
L
4367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4368 ac_prog_rejected=yes
4369 continue
4370 fi
4371 ac_cv_prog_CC="cc"
81ecdfbb 4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4373 break 2
4374 fi
4375done
81ecdfbb
RW
4376 done
4377IFS=$as_save_IFS
ce2cded5
L
4378
4379if test $ac_prog_rejected = yes; then
4380 # We found a bogon in the path, so make sure we never use it.
4381 set dummy $ac_cv_prog_CC
4382 shift
4383 if test $# != 0; then
4384 # We chose a different compiler from the bogus one.
4385 # However, it has the same basename, so the bogon will be chosen
4386 # first if we set CC to just the basename; use the full file name.
4387 shift
4388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4389 fi
4390fi
4391fi
4392fi
4393CC=$ac_cv_prog_CC
4394if test -n "$CC"; then
81ecdfbb
RW
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4396$as_echo "$CC" >&6; }
ce2cded5 4397else
81ecdfbb
RW
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
ce2cded5
L
4400fi
4401
81ecdfbb 4402
ce2cded5
L
4403fi
4404if test -z "$CC"; then
4405 if test -n "$ac_tool_prefix"; then
81ecdfbb 4406 for ac_prog in cl.exe
ce2cded5
L
4407 do
4408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4409set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4412if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4413 $as_echo_n "(cached) " >&6
ce2cded5
L
4414else
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
81ecdfbb 4423 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4427 break 2
4428 fi
4429done
81ecdfbb
RW
4430 done
4431IFS=$as_save_IFS
ce2cded5
L
4432
4433fi
4434fi
4435CC=$ac_cv_prog_CC
4436if test -n "$CC"; then
81ecdfbb
RW
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438$as_echo "$CC" >&6; }
ce2cded5 4439else
81ecdfbb
RW
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
ce2cded5
L
4442fi
4443
81ecdfbb 4444
ce2cded5 4445 test -n "$CC" && break
d7040cdb
SE
4446 done
4447fi
ce2cded5
L
4448if test -z "$CC"; then
4449 ac_ct_CC=$CC
81ecdfbb 4450 for ac_prog in cl.exe
d7040cdb
SE
4451do
4452 # Extract the first word of "$ac_prog", so it can be a program name with args.
4453set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4456if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4457 $as_echo_n "(cached) " >&6
d7040cdb 4458else
ce2cded5
L
4459 if test -n "$ac_ct_CC"; then
4460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
81ecdfbb 4467 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4469 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4471 break 2
ac48eca1 4472 fi
d7040cdb 4473done
81ecdfbb
RW
4474 done
4475IFS=$as_save_IFS
ac48eca1 4476
d7040cdb
SE
4477fi
4478fi
ce2cded5
L
4479ac_ct_CC=$ac_cv_prog_ac_ct_CC
4480if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4482$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4483else
81ecdfbb
RW
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
d7040cdb 4486fi
ac48eca1 4487
81ecdfbb 4488
ce2cded5 4489 test -n "$ac_ct_CC" && break
d7040cdb 4490done
ac48eca1 4491
81ecdfbb
RW
4492 if test "x$ac_ct_CC" = x; then
4493 CC=""
4494 else
4495 case $cross_compiling:$ac_tool_warned in
4496yes:)
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4499ac_tool_warned=yes ;;
4500esac
4501 CC=$ac_ct_CC
4502 fi
d7040cdb 4503fi
ac48eca1 4504
d7040cdb 4505fi
ac48eca1 4506
ac48eca1 4507
81ecdfbb
RW
4508test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4510as_fn_error $? "no acceptable C compiler found in \$PATH
4511See \`config.log' for more details" "$LINENO" 5; }
6be7c12c 4512
ce2cded5 4513# Provide some information about the compiler.
81ecdfbb
RW
4514$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4515set X $ac_compile
4516ac_compiler=$2
4517for ac_option in --version -v -V -qversion; do
4518 { { ac_try="$ac_compiler $ac_option >&5"
4519case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
4523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4524$as_echo "$ac_try_echo"; } >&5
4525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4526 ac_status=$?
81ecdfbb
RW
4527 if test -s conftest.err; then
4528 sed '10a\
4529... rest of stderr output deleted ...
4530 10q' conftest.err >conftest.er1
4531 cat conftest.er1 >&5
81ecdfbb 4532 fi
d0ac1c44 4533 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4535 test $ac_status = 0; }
4536done
ac48eca1 4537
81ecdfbb
RW
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4539$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4540if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4541 $as_echo_n "(cached) " >&6
d7040cdb 4542else
81ecdfbb 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4544/* end confdefs.h. */
c8615825 4545
ce2cded5
L
4546int
4547main ()
4548{
4549#ifndef __GNUC__
4550 choke me
4551#endif
4552
4553 ;
4554 return 0;
4555}
4556_ACEOF
81ecdfbb 4557if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4558 ac_compiler_gnu=yes
d7040cdb 4559else
81ecdfbb 4560 ac_compiler_gnu=no
d7040cdb 4561fi
81ecdfbb 4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4563ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4564
ce2cded5 4565fi
81ecdfbb
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4567$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4568if test $ac_compiler_gnu = yes; then
4569 GCC=yes
4570else
4571 GCC=
4572fi
ce2cded5
L
4573ac_test_CFLAGS=${CFLAGS+set}
4574ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4576$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4577if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4578 $as_echo_n "(cached) " >&6
4579else
4580 ac_save_c_werror_flag=$ac_c_werror_flag
4581 ac_c_werror_flag=yes
4582 ac_cv_prog_cc_g=no
4583 CFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4585/* end confdefs.h. */
d7040cdb 4586
ce2cded5
L
4587int
4588main ()
4589{
d7040cdb 4590
ce2cded5
L
4591 ;
4592 return 0;
4593}
4594_ACEOF
81ecdfbb 4595if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4596 ac_cv_prog_cc_g=yes
4597else
81ecdfbb
RW
4598 CFLAGS=""
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600/* end confdefs.h. */
4601
4602int
4603main ()
4604{
4605
4606 ;
4607 return 0;
4608}
4609_ACEOF
4610if ac_fn_c_try_compile "$LINENO"; then :
4611
4612else
4613 ac_c_werror_flag=$ac_save_c_werror_flag
4614 CFLAGS="-g"
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
d70c5fc7 4617
81ecdfbb
RW
4618int
4619main ()
4620{
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_prog_cc_g=yes
4628fi
4629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4630fi
81ecdfbb 4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4632fi
81ecdfbb
RW
4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4637$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4638if test "$ac_test_CFLAGS" = set; then
4639 CFLAGS=$ac_save_CFLAGS
4640elif test $ac_cv_prog_cc_g = yes; then
4641 if test "$GCC" = yes; then
4642 CFLAGS="-g -O2"
4643 else
4644 CFLAGS="-g"
4645 fi
ac48eca1 4646else
ce2cded5
L
4647 if test "$GCC" = yes; then
4648 CFLAGS="-O2"
4649 else
4650 CFLAGS=
4651 fi
ac48eca1 4652fi
81ecdfbb
RW
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4654$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4655if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4656 $as_echo_n "(cached) " >&6
ac48eca1 4657else
81ecdfbb 4658 ac_cv_prog_cc_c89=no
ce2cded5 4659ac_save_CC=$CC
81ecdfbb 4660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4661/* end confdefs.h. */
4662#include <stdarg.h>
4663#include <stdio.h>
d0ac1c44 4664struct stat;
ce2cded5
L
4665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4666struct buf { int x; };
4667FILE * (*rcsopen) (struct buf *, struct stat *, int);
4668static char *e (p, i)
4669 char **p;
4670 int i;
4671{
4672 return p[i];
4673}
4674static char *f (char * (*g) (char **, int), char **p, ...)
4675{
4676 char *s;
4677 va_list v;
4678 va_start (v,p);
4679 s = g (p, va_arg (v,int));
4680 va_end (v);
4681 return s;
4682}
4683
4684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4685 function prototypes and stuff, but not '\xHH' hex character constants.
4686 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4687 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4689 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4690 that's true only with -std. */
ce2cded5
L
4691int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4692
81ecdfbb
RW
4693/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4694 inside strings and character constants. */
4695#define FOO(x) 'x'
4696int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4697
ce2cded5
L
4698int test (int i, double x);
4699struct s1 {int (*f) (int a);};
4700struct s2 {int (*f) (double a);};
4701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4702int argc;
4703char **argv;
4704int
4705main ()
4706{
4707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4708 ;
4709 return 0;
4710}
4711_ACEOF
81ecdfbb
RW
4712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4714do
4715 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4718fi
81ecdfbb
RW
4719rm -f core conftest.err conftest.$ac_objext
4720 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4721done
81ecdfbb 4722rm -f conftest.$ac_ext
ce2cded5
L
4723CC=$ac_save_CC
4724
4725fi
81ecdfbb
RW
4726# AC_CACHE_VAL
4727case "x$ac_cv_prog_cc_c89" in
4728 x)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730$as_echo "none needed" >&6; } ;;
4731 xno)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733$as_echo "unsupported" >&6; } ;;
ce2cded5 4734 *)
81ecdfbb
RW
4735 CC="$CC $ac_cv_prog_cc_c89"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4738esac
81ecdfbb 4739if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4740
ce2cded5 4741fi
d7040cdb 4742
ce2cded5
L
4743ac_ext=c
4744ac_cpp='$CPP $CPPFLAGS'
4745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4748
d0ac1c44
SM
4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4755$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4756if ${am_cv_prog_cc_c_o+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758else
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h. */
4761
4762int
4763main ()
4764{
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770 # Make sure it works both with $CC and with simple cc.
4771 # Following AC_PROG_CC_C_O, we do the test twice because some
4772 # compilers refuse to overwrite an existing .o file with -o,
4773 # though they will create one.
4774 am_cv_prog_cc_c_o=yes
4775 for am_i in 1 2; do
4776 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4777 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } \
4781 && test -f conftest2.$ac_objext; then
4782 : OK
4783 else
4784 am_cv_prog_cc_c_o=no
4785 break
4786 fi
4787 done
4788 rm -f core conftest*
4789 unset am_i
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4792$as_echo "$am_cv_prog_cc_c_o" >&6; }
4793if test "$am_cv_prog_cc_c_o" != yes; then
4794 # Losing compiler, so override with the script.
4795 # FIXME: It is wrong to rewrite CC.
4796 # But if we don't then we get into trouble of one sort or another.
4797 # A longer-term fix would be to have automake use am__CC in this case,
4798 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4799 CC="$am_aux_dir/compile $CC"
4800fi
4801ac_ext=c
4802ac_cpp='$CPP $CPPFLAGS'
4803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806
4807
7357c5b6
AM
4808ac_ext=c
4809ac_cpp='$CPP $CPPFLAGS'
4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4814$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4815# On Suns, sometimes $CPP names a directory.
4816if test -n "$CPP" && test -d "$CPP"; then
4817 CPP=
4818fi
4819if test -z "$CPP"; then
d0ac1c44 4820 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4821 $as_echo_n "(cached) " >&6
7357c5b6
AM
4822else
4823 # Double quotes because CPP needs to be expanded
4824 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4825 do
4826 ac_preproc_ok=false
4827for ac_c_preproc_warn_flag in '' yes
4828do
4829 # Use a header file that comes with gcc, so configuring glibc
4830 # with a fresh cross-compiler works.
4831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4832 # <limits.h> exists even on freestanding compilers.
4833 # On the NeXT, cc -E runs the code through the compiler's parser,
4834 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4836/* end confdefs.h. */
4837#ifdef __STDC__
4838# include <limits.h>
4839#else
4840# include <assert.h>
4841#endif
4842 Syntax error
4843_ACEOF
81ecdfbb 4844if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4845
81ecdfbb 4846else
7357c5b6
AM
4847 # Broken: fails on valid input.
4848continue
4849fi
d0ac1c44 4850rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4851
81ecdfbb 4852 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4853 # can be detected and how.
81ecdfbb 4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4855/* end confdefs.h. */
4856#include <ac_nonexistent.h>
4857_ACEOF
81ecdfbb 4858if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4859 # Broken: success on invalid input.
4860continue
4861else
7357c5b6
AM
4862 # Passes both tests.
4863ac_preproc_ok=:
4864break
4865fi
d0ac1c44 4866rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4867
7357c5b6
AM
4868done
4869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4870rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4871if $ac_preproc_ok; then :
7357c5b6
AM
4872 break
4873fi
d7040cdb 4874
7357c5b6
AM
4875 done
4876 ac_cv_prog_CPP=$CPP
d7040cdb 4877
7357c5b6
AM
4878fi
4879 CPP=$ac_cv_prog_CPP
4880else
4881 ac_cv_prog_CPP=$CPP
4882fi
81ecdfbb
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4884$as_echo "$CPP" >&6; }
7357c5b6
AM
4885ac_preproc_ok=false
4886for ac_c_preproc_warn_flag in '' yes
4887do
4888 # Use a header file that comes with gcc, so configuring glibc
4889 # with a fresh cross-compiler works.
4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891 # <limits.h> exists even on freestanding compilers.
4892 # On the NeXT, cc -E runs the code through the compiler's parser,
4893 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4895/* end confdefs.h. */
4896#ifdef __STDC__
4897# include <limits.h>
4898#else
4899# include <assert.h>
4900#endif
4901 Syntax error
4902_ACEOF
81ecdfbb 4903if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4904
81ecdfbb 4905else
7357c5b6
AM
4906 # Broken: fails on valid input.
4907continue
4908fi
d0ac1c44 4909rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4910
81ecdfbb 4911 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4912 # can be detected and how.
81ecdfbb 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4914/* end confdefs.h. */
4915#include <ac_nonexistent.h>
4916_ACEOF
81ecdfbb 4917if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4918 # Broken: success on invalid input.
4919continue
4920else
7357c5b6
AM
4921 # Passes both tests.
4922ac_preproc_ok=:
4923break
4924fi
d0ac1c44 4925rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4926
7357c5b6
AM
4927done
4928# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4929rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4930if $ac_preproc_ok; then :
4931
7357c5b6 4932else
81ecdfbb
RW
4933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4935as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4936See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4937fi
ac48eca1 4938
7357c5b6
AM
4939ac_ext=c
4940ac_cpp='$CPP $CPPFLAGS'
4941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4944
ac48eca1 4945
81ecdfbb
RW
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4947$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4948if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4949 $as_echo_n "(cached) " >&6
7357c5b6 4950else
81ecdfbb
RW
4951 if test -z "$GREP"; then
4952 ac_path_GREP_found=false
4953 # Loop through the user's path and test for each of PROGNAME-LIST
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_prog in grep ggrep; do
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4962 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4963# Check for GNU ac_path_GREP and select it if it is found.
4964 # Check for GNU $ac_path_GREP
4965case `"$ac_path_GREP" --version 2>&1` in
4966*GNU*)
4967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4968*)
4969 ac_count=0
4970 $as_echo_n 0123456789 >"conftest.in"
4971 while :
4972 do
4973 cat "conftest.in" "conftest.in" >"conftest.tmp"
4974 mv "conftest.tmp" "conftest.in"
4975 cp "conftest.in" "conftest.nl"
4976 $as_echo 'GREP' >> "conftest.nl"
4977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4979 as_fn_arith $ac_count + 1 && ac_count=$as_val
4980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4981 # Best one so far, save it but keep looking for a better one
4982 ac_cv_path_GREP="$ac_path_GREP"
4983 ac_path_GREP_max=$ac_count
7357c5b6 4984 fi
81ecdfbb
RW
4985 # 10*(2^10) chars as input seems more than enough
4986 test $ac_count -gt 10 && break
4987 done
4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4989esac
4990
4991 $ac_path_GREP_found && break 3
4992 done
4993 done
4994 done
4995IFS=$as_save_IFS
4996 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
4998 fi
4999else
5000 ac_cv_path_GREP=$GREP
7357c5b6 5001fi
81ecdfbb
RW
5002
5003fi
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5005$as_echo "$ac_cv_path_GREP" >&6; }
5006 GREP="$ac_cv_path_GREP"
ac48eca1 5007
d7040cdb 5008
81ecdfbb
RW
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5010$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5011if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 5012 $as_echo_n "(cached) " >&6
7357c5b6 5013else
81ecdfbb
RW
5014 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5015 then ac_cv_path_EGREP="$GREP -E"
5016 else
5017 if test -z "$EGREP"; then
5018 ac_path_EGREP_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in egrep; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5028 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
5029# Check for GNU ac_path_EGREP and select it if it is found.
5030 # Check for GNU $ac_path_EGREP
5031case `"$ac_path_EGREP" --version 2>&1` in
5032*GNU*)
5033 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5034*)
5035 ac_count=0
5036 $as_echo_n 0123456789 >"conftest.in"
5037 while :
5038 do
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo 'EGREP' >> "conftest.nl"
5043 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_EGREP="$ac_path_EGREP"
5049 ac_path_EGREP_max=$ac_count
5050 fi
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5053 done
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055esac
5056
5057 $ac_path_EGREP_found && break 3
5058 done
5059 done
5060 done
5061IFS=$as_save_IFS
5062 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5063 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5064 fi
5065else
5066 ac_cv_path_EGREP=$EGREP
5067fi
5068
5069 fi
5070fi
5071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5072$as_echo "$ac_cv_path_EGREP" >&6; }
5073 EGREP="$ac_cv_path_EGREP"
5074
5075
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5077$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5078if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
5079 $as_echo_n "(cached) " >&6
5080else
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5082/* end confdefs.h. */
5083#include <stdlib.h>
5084#include <stdarg.h>
5085#include <string.h>
5086#include <float.h>
d7040cdb 5087
7357c5b6
AM
5088int
5089main ()
5090{
d7040cdb 5091
7357c5b6
AM
5092 ;
5093 return 0;
5094}
5095_ACEOF
81ecdfbb 5096if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
5097 ac_cv_header_stdc=yes
5098else
81ecdfbb 5099 ac_cv_header_stdc=no
7357c5b6 5100fi
81ecdfbb 5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5102
7357c5b6
AM
5103if test $ac_cv_header_stdc = yes; then
5104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5106/* end confdefs.h. */
5107#include <string.h>
d7040cdb 5108
7357c5b6
AM
5109_ACEOF
5110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5111 $EGREP "memchr" >/dev/null 2>&1; then :
5112
ce2cded5 5113else
7357c5b6
AM
5114 ac_cv_header_stdc=no
5115fi
5116rm -f conftest*
d7040cdb 5117
7357c5b6 5118fi
d7040cdb 5119
7357c5b6
AM
5120if test $ac_cv_header_stdc = yes; then
5121 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5123/* end confdefs.h. */
5124#include <stdlib.h>
ac48eca1 5125
7357c5b6
AM
5126_ACEOF
5127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5128 $EGREP "free" >/dev/null 2>&1; then :
5129
7357c5b6
AM
5130else
5131 ac_cv_header_stdc=no
5132fi
5133rm -f conftest*
d7040cdb 5134
7357c5b6 5135fi
d7040cdb 5136
7357c5b6
AM
5137if test $ac_cv_header_stdc = yes; then
5138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5139 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5140 :
5141else
81ecdfbb 5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5143/* end confdefs.h. */
5144#include <ctype.h>
81ecdfbb 5145#include <stdlib.h>
7357c5b6
AM
5146#if ((' ' & 0x0FF) == 0x020)
5147# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5148# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5149#else
5150# define ISLOWER(c) \
5151 (('a' <= (c) && (c) <= 'i') \
5152 || ('j' <= (c) && (c) <= 'r') \
5153 || ('s' <= (c) && (c) <= 'z'))
5154# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155#endif
d7040cdb 5156
7357c5b6
AM
5157#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158int
5159main ()
5160{
5161 int i;
5162 for (i = 0; i < 256; i++)
5163 if (XOR (islower (i), ISLOWER (i))
5164 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5165 return 2;
5166 return 0;
7357c5b6
AM
5167}
5168_ACEOF
81ecdfbb 5169if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5170
81ecdfbb
RW
5171else
5172 ac_cv_header_stdc=no
7357c5b6 5173fi
81ecdfbb
RW
5174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5175 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5176fi
81ecdfbb 5177
7357c5b6
AM
5178fi
5179fi
81ecdfbb
RW
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5181$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5182if test $ac_cv_header_stdc = yes; then
d7040cdb 5183
81ecdfbb 5184$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5185
7357c5b6 5186fi
d7040cdb 5187
7357c5b6 5188# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5189for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5190 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5191do :
5192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5193ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5194"
d0ac1c44 5195if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7357c5b6 5196 cat >>confdefs.h <<_ACEOF
81ecdfbb 5197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5198_ACEOF
ce2cded5 5199
7357c5b6 5200fi
ce2cded5 5201
7357c5b6 5202done
ce2cded5
L
5203
5204
5205
81ecdfbb 5206 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5207if test "x$ac_cv_header_minix_config_h" = xyes; then :
7357c5b6
AM
5208 MINIX=yes
5209else
5210 MINIX=
5211fi
d7040cdb
SE
5212
5213
7357c5b6 5214 if test "$MINIX" = yes; then
d7040cdb 5215
81ecdfbb 5216$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5217
5218
81ecdfbb 5219$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5220
5221
81ecdfbb 5222$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5223
7357c5b6 5224 fi
d7040cdb
SE
5225
5226
81ecdfbb
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5228$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5229if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 5230 $as_echo_n "(cached) " >&6
ac48eca1 5231else
81ecdfbb 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5233/* end confdefs.h. */
ac48eca1 5234
d0ac1c44
SM
5235# define __EXTENSIONS__ 1
5236 $ac_includes_default
7357c5b6
AM
5237int
5238main ()
5239{
13b2be9c 5240
7357c5b6
AM
5241 ;
5242 return 0;
5243}
5244_ACEOF
81ecdfbb 5245if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5246 ac_cv_safe_to_define___extensions__=yes
d6d788bd 5247else
81ecdfbb 5248 ac_cv_safe_to_define___extensions__=no
d6d788bd 5249fi
81ecdfbb 5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5251fi
81ecdfbb
RW
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5253$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5254 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5255 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 5256
81ecdfbb 5257 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 5258
81ecdfbb 5259 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 5260
81ecdfbb 5261 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 5262
81ecdfbb 5263 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 5264
a74801ba 5265
d053aef8 5266
81ecdfbb 5267
da2f07f1 5268
718a6fd8
SE
5269case `pwd` in
5270 *\ * | *\ *)
81ecdfbb
RW
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5272$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5273esac
13b2be9c 5274
252b5132 5275
7357c5b6 5276
f2c621e4
AS
5277macro_version='2.2.7a'
5278macro_revision='1.3134'
7357c5b6
AM
5279
5280
5281
5282
5283
5284
7357c5b6
AM
5285
5286
5287
5288
5289
5290
5291
718a6fd8 5292ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5293
3725885a
RW
5294# Backslashify metacharacters that are still active within
5295# double-quoted strings.
5296sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5297
5298# Same as above, but do not quote variable references.
5299double_quote_subst='s/\(["`\\]\)/\\\1/g'
5300
5301# Sed substitution to delay expansion of an escaped shell variable in a
5302# double_quote_subst'ed string.
5303delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5304
5305# Sed substitution to delay expansion of an escaped single quote.
5306delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5307
5308# Sed substitution to avoid accidental globbing in evaled expressions
5309no_glob_subst='s/\*/\\\*/g'
5310
5311ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5312ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5313ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5314
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5316$as_echo_n "checking how to print strings... " >&6; }
5317# Test print first, because it will be a builtin if present.
f2c621e4 5318if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
5319 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5320 ECHO='print -r --'
5321elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5322 ECHO='printf %s\n'
5323else
5324 # Use this function as a fallback that always works.
5325 func_fallback_echo ()
5326 {
5327 eval 'cat <<_LTECHO_EOF
5328$1
5329_LTECHO_EOF'
5330 }
5331 ECHO='func_fallback_echo'
5332fi
5333
5334# func_echo_all arg...
5335# Invoke $ECHO with all args, space-separated.
5336func_echo_all ()
5337{
5338 $ECHO ""
5339}
5340
5341case "$ECHO" in
5342 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5343$as_echo "printf" >&6; } ;;
5344 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5345$as_echo "print -r" >&6; } ;;
5346 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5347$as_echo "cat" >&6; } ;;
5348esac
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
81ecdfbb
RW
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5364$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5365if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
5366 $as_echo_n "(cached) " >&6
5367else
5368 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5369 for ac_i in 1 2 3 4 5 6 7; do
5370 ac_script="$ac_script$as_nl$ac_script"
5371 done
5372 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5373 { ac_script=; unset ac_script;}
5374 if test -z "$SED"; then
5375 ac_path_SED_found=false
5376 # Loop through the user's path and test for each of PROGNAME-LIST
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5378for as_dir in $PATH
5379do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
81ecdfbb 5382 for ac_prog in sed gsed; do
7357c5b6 5383 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5384 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5385 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5386# Check for GNU ac_path_SED and select it if it is found.
5387 # Check for GNU $ac_path_SED
5388case `"$ac_path_SED" --version 2>&1` in
5389*GNU*)
5390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5391*)
5392 ac_count=0
5393 $as_echo_n 0123456789 >"conftest.in"
5394 while :
5395 do
5396 cat "conftest.in" "conftest.in" >"conftest.tmp"
5397 mv "conftest.tmp" "conftest.in"
5398 cp "conftest.in" "conftest.nl"
5399 $as_echo '' >> "conftest.nl"
5400 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5402 as_fn_arith $ac_count + 1 && ac_count=$as_val
5403 if test $ac_count -gt ${ac_path_SED_max-0}; then
5404 # Best one so far, save it but keep looking for a better one
5405 ac_cv_path_SED="$ac_path_SED"
5406 ac_path_SED_max=$ac_count
5407 fi
5408 # 10*(2^10) chars as input seems more than enough
5409 test $ac_count -gt 10 && break
5410 done
5411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5412esac
5413
5414 $ac_path_SED_found && break 3
7357c5b6
AM
5415 done
5416 done
81ecdfbb 5417 done
7357c5b6 5418IFS=$as_save_IFS
81ecdfbb 5419 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5420 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5421 fi
81ecdfbb
RW
5422else
5423 ac_cv_path_SED=$SED
7357c5b6
AM
5424fi
5425
81ecdfbb
RW
5426fi
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5428$as_echo "$ac_cv_path_SED" >&6; }
5429 SED="$ac_cv_path_SED"
5430 rm -f conftest.sed
7357c5b6
AM
5431
5432test -z "$SED" && SED=sed
5433Xsed="$SED -e 1s/^X//"
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
81ecdfbb
RW
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5446$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5447if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5448 $as_echo_n "(cached) " >&6
7357c5b6 5449else
81ecdfbb
RW
5450 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5451 then ac_cv_path_FGREP="$GREP -F"
5452 else
5453 if test -z "$FGREP"; then
5454 ac_path_FGREP_found=false
5455 # Loop through the user's path and test for each of PROGNAME-LIST
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5458do
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_prog in fgrep; do
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5464 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5465# Check for GNU ac_path_FGREP and select it if it is found.
5466 # Check for GNU $ac_path_FGREP
5467case `"$ac_path_FGREP" --version 2>&1` in
5468*GNU*)
5469 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5470*)
5471 ac_count=0
5472 $as_echo_n 0123456789 >"conftest.in"
5473 while :
5474 do
5475 cat "conftest.in" "conftest.in" >"conftest.tmp"
5476 mv "conftest.tmp" "conftest.in"
5477 cp "conftest.in" "conftest.nl"
5478 $as_echo 'FGREP' >> "conftest.nl"
5479 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5481 as_fn_arith $ac_count + 1 && ac_count=$as_val
5482 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5483 # Best one so far, save it but keep looking for a better one
5484 ac_cv_path_FGREP="$ac_path_FGREP"
5485 ac_path_FGREP_max=$ac_count
7357c5b6 5486 fi
81ecdfbb
RW
5487 # 10*(2^10) chars as input seems more than enough
5488 test $ac_count -gt 10 && break
5489 done
5490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491esac
5492
5493 $ac_path_FGREP_found && break 3
5494 done
5495 done
5496 done
5497IFS=$as_save_IFS
5498 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5499 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5500 fi
5501else
5502 ac_cv_path_FGREP=$FGREP
7357c5b6 5503fi
81ecdfbb
RW
5504
5505 fi
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5508$as_echo "$ac_cv_path_FGREP" >&6; }
5509 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5510
5511
5512test -z "$GREP" && GREP=grep
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
81ecdfbb
RW
5532# Check whether --with-gnu-ld was given.
5533if test "${with_gnu_ld+set}" = set; then :
5534 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5535else
5536 with_gnu_ld=no
81ecdfbb
RW
5537fi
5538
ce2cded5
L
5539ac_prog=ld
5540if test "$GCC" = yes; then
5541 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5543$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5544 case $host in
5545 *-*-mingw*)
5546 # gcc leaves a trailing carriage return which upsets mingw
5547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5548 *)
5549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5550 esac
5551 case $ac_prog in
5552 # Accept absolute paths.
5553 [\\/]* | ?:[\\/]*)
5554 re_direlt='/[^/][^/]*/\.\./'
5555 # Canonicalize the pathname of ld
5556 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5557 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5558 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5559 done
5560 test -z "$LD" && LD="$ac_prog"
5561 ;;
5562 "")
5563 # If it fails, then pretend we aren't using GCC.
5564 ac_prog=ld
5565 ;;
5566 *)
5567 # If it is relative, then search for the first ld in PATH.
5568 with_gnu_ld=unknown
5569 ;;
5570 esac
5571elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5573$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5574else
81ecdfbb
RW
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5576$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5577fi
d0ac1c44 5578if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5579 $as_echo_n "(cached) " >&6
ce2cded5
L
5580else
5581 if test -z "$LD"; then
5582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5583 for ac_dir in $PATH; do
5584 IFS="$lt_save_ifs"
5585 test -z "$ac_dir" && ac_dir=.
5586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5587 lt_cv_path_LD="$ac_dir/$ac_prog"
5588 # Check to see if the program is GNU ld. I'd rather use --version,
5589 # but apparently some variants of GNU ld only accept -v.
5590 # Break only if it was the GNU/non-GNU ld that we prefer.
5591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5592 *GNU* | *'with BFD'*)
5593 test "$with_gnu_ld" != no && break
5594 ;;
5595 *)
5596 test "$with_gnu_ld" != yes && break
5597 ;;
5598 esac
5599 fi
5600 done
5601 IFS="$lt_save_ifs"
5602else
5603 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5604fi
5605fi
5606
5607LD="$lt_cv_path_LD"
5608if test -n "$LD"; then
81ecdfbb
RW
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5610$as_echo "$LD" >&6; }
ce2cded5 5611else
81ecdfbb
RW
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
ce2cded5 5614fi
d0ac1c44 5615test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5617$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5618if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5619 $as_echo_n "(cached) " >&6
ce2cded5
L
5620else
5621 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5622case `$LD -v 2>&1 </dev/null` in
5623*GNU* | *'with BFD'*)
5624 lt_cv_prog_gnu_ld=yes
5625 ;;
5626*)
5627 lt_cv_prog_gnu_ld=no
5628 ;;
5629esac
5630fi
81ecdfbb
RW
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5632$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5633with_gnu_ld=$lt_cv_prog_gnu_ld
5634
5635
5636
5637
5638
5639
5640
5641
5642
81ecdfbb
RW
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5644$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5645if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5646 $as_echo_n "(cached) " >&6
ce2cded5
L
5647else
5648 if test -n "$NM"; then
5649 # Let the user override the test.
5650 lt_cv_path_NM="$NM"
5651else
5652 lt_nm_to_check="${ac_tool_prefix}nm"
5653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5654 lt_nm_to_check="$lt_nm_to_check nm"
5655 fi
5656 for lt_tmp_nm in $lt_nm_to_check; do
5657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5659 IFS="$lt_save_ifs"
5660 test -z "$ac_dir" && ac_dir=.
5661 tmp_nm="$ac_dir/$lt_tmp_nm"
5662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5663 # Check to see if the nm accepts a BSD-compat flag.
5664 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5665 # nm: unknown option "B" ignored
5666 # Tru64's nm complains that /dev/null is an invalid object file
5667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5668 */dev/null* | *'Invalid file or object type'*)
5669 lt_cv_path_NM="$tmp_nm -B"
5670 break
5671 ;;
5672 *)
5673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5674 */dev/null*)
5675 lt_cv_path_NM="$tmp_nm -p"
5676 break
5677 ;;
5678 *)
5679 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5680 continue # so that we can try to find one that supports BSD flags
5681 ;;
5682 esac
5683 ;;
5684 esac
5685 fi
5686 done
5687 IFS="$lt_save_ifs"
5688 done
5689 : ${lt_cv_path_NM=no}
5690fi
5691fi
81ecdfbb
RW
5692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5693$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5694if test "$lt_cv_path_NM" != "no"; then
5695 NM="$lt_cv_path_NM"
5696else
5697 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5698 if test -n "$DUMPBIN"; then :
5699 # Let the user override the test.
5700 else
5701 if test -n "$ac_tool_prefix"; then
5702 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5703 do
5704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5708if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5709 $as_echo_n "(cached) " >&6
d7040cdb 5710else
ce2cded5
L
5711 if test -n "$DUMPBIN"; then
5712 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
81ecdfbb 5719 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5721 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5723 break 2
d70c5fc7 5724 fi
d7040cdb 5725done
81ecdfbb
RW
5726 done
5727IFS=$as_save_IFS
d70c5fc7 5728
d7040cdb
SE
5729fi
5730fi
ce2cded5
L
5731DUMPBIN=$ac_cv_prog_DUMPBIN
5732if test -n "$DUMPBIN"; then
81ecdfbb
RW
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5734$as_echo "$DUMPBIN" >&6; }
bedf545c 5735else
81ecdfbb
RW
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737$as_echo "no" >&6; }
d7040cdb 5738fi
13b2be9c 5739
81ecdfbb 5740
ce2cded5
L
5741 test -n "$DUMPBIN" && break
5742 done
5743fi
5744if test -z "$DUMPBIN"; then
5745 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5746 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5747do
5748 # Extract the first word of "$ac_prog", so it can be a program name with args.
5749set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5752if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5753 $as_echo_n "(cached) " >&6
d7040cdb 5754else
ce2cded5
L
5755 if test -n "$ac_ct_DUMPBIN"; then
5756 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5757else
5758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759for as_dir in $PATH
5760do
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
81ecdfbb 5763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5765 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5767 break 2
5768 fi
5769done
81ecdfbb
RW
5770 done
5771IFS=$as_save_IFS
ce2cded5
L
5772
5773fi
5774fi
5775ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5776if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5778$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5779else
81ecdfbb
RW
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
d7040cdb
SE
5782fi
5783
81ecdfbb 5784
ce2cded5
L
5785 test -n "$ac_ct_DUMPBIN" && break
5786done
13b2be9c 5787
81ecdfbb
RW
5788 if test "x$ac_ct_DUMPBIN" = x; then
5789 DUMPBIN=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792yes:)
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795ac_tool_warned=yes ;;
5796esac
5797 DUMPBIN=$ac_ct_DUMPBIN
5798 fi
ce2cded5 5799fi
13b2be9c 5800
3725885a
RW
5801 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5802 *COFF*)
5803 DUMPBIN="$DUMPBIN -symbols"
5804 ;;
5805 *)
5806 DUMPBIN=:
5807 ;;
5808 esac
5809 fi
bedf545c 5810
ce2cded5
L
5811 if test "$DUMPBIN" != ":"; then
5812 NM="$DUMPBIN"
5813 fi
5814fi
5815test -z "$NM" && NM=nm
6840198f 5816
13b2be9c 5817
ac48eca1 5818
d7040cdb 5819
ce2cded5
L
5820
5821
81ecdfbb
RW
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5823$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5824if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5825 $as_echo_n "(cached) " >&6
ce2cded5
L
5826else
5827 lt_cv_nm_interface="BSD nm"
5828 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5829 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5830 (eval "$ac_compile" 2>conftest.err)
5831 cat conftest.err >&5
3725885a 5832 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5833 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5834 cat conftest.err >&5
3725885a 5835 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5836 cat conftest.out >&5
5837 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5838 lt_cv_nm_interface="MS dumpbin"
5839 fi
5840 rm -f conftest*
5841fi
81ecdfbb
RW
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5843$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5844
81ecdfbb
RW
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5846$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5847LN_S=$as_ln_s
5848if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5850$as_echo "yes" >&6; }
ce2cded5 5851else
81ecdfbb
RW
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5853$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5854fi
5855
5856# find the maximum length of command line arguments
81ecdfbb
RW
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5858$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5859if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5860 $as_echo_n "(cached) " >&6
ce2cded5
L
5861else
5862 i=0
5863 teststring="ABCD"
5864
5865 case $build_os in
5866 msdosdjgpp*)
5867 # On DJGPP, this test can blow up pretty badly due to problems in libc
5868 # (any single argument exceeding 2000 bytes causes a buffer overrun
5869 # during glob expansion). Even if it were fixed, the result of this
5870 # check would be larger than it should be.
5871 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5872 ;;
5873
5874 gnu*)
5875 # Under GNU Hurd, this test is not required because there is
5876 # no limit to the length of command line arguments.
5877 # Libtool will interpret -1 as no limit whatsoever
5878 lt_cv_sys_max_cmd_len=-1;
5879 ;;
5880
718a6fd8 5881 cygwin* | mingw* | cegcc*)
ce2cded5
L
5882 # On Win9x/ME, this test blows up -- it succeeds, but takes
5883 # about 5 minutes as the teststring grows exponentially.
5884 # Worse, since 9x/ME are not pre-emptively multitasking,
5885 # you end up with a "frozen" computer, even though with patience
5886 # the test eventually succeeds (with a max line length of 256k).
5887 # Instead, let's just punt: use the minimum linelength reported by
5888 # all of the supported platforms: 8192 (on NT/2K/XP).
5889 lt_cv_sys_max_cmd_len=8192;
5890 ;;
5891
3725885a
RW
5892 mint*)
5893 # On MiNT this can take a long time and run out of memory.
5894 lt_cv_sys_max_cmd_len=8192;
5895 ;;
5896
ce2cded5
L
5897 amigaos*)
5898 # On AmigaOS with pdksh, this test takes hours, literally.
5899 # So we just punt and use a minimum line length of 8192.
5900 lt_cv_sys_max_cmd_len=8192;
5901 ;;
5902
5903 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5904 # This has been around since 386BSD, at least. Likely further.
5905 if test -x /sbin/sysctl; then
5906 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5907 elif test -x /usr/sbin/sysctl; then
5908 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5909 else
5910 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5911 fi
5912 # And add a safety zone
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5915 ;;
5916
5917 interix*)
5918 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5919 lt_cv_sys_max_cmd_len=196608
5920 ;;
5921
5922 osf*)
5923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925 # nice to cause kernel panics so lets avoid the loop below.
5926 # First set a reasonable default.
5927 lt_cv_sys_max_cmd_len=16384
5928 #
5929 if test -x /sbin/sysconfig; then
5930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5932 esac
5933 fi
5934 ;;
5935 sco3.2v5*)
5936 lt_cv_sys_max_cmd_len=102400
5937 ;;
5938 sysv5* | sco5v6* | sysv4.2uw2*)
5939 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5940 if test -n "$kargmax"; then
5941 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5942 else
5943 lt_cv_sys_max_cmd_len=32768
5944 fi
d7040cdb
SE
5945 ;;
5946 *)
718a6fd8
SE
5947 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5948 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5951 else
5952 # Make teststring a little bigger before we do anything with it.
5953 # a 1K string should be a reasonable start.
5954 for i in 1 2 3 4 5 6 7 8 ; do
5955 teststring=$teststring$teststring
5956 done
5957 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5958 # If test is not a shell built-in, we'll probably end up computing a
5959 # maximum length that is only half of the actual maximum length, but
5960 # we can't tell.
3725885a
RW
5961 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5962 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5963 test $i != 17 # 1/2 MB should be enough
5964 do
5965 i=`expr $i + 1`
5966 teststring=$teststring$teststring
5967 done
5968 # Only check the string length outside the loop.
5969 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5970 teststring=
5971 # Add a significant safety factor because C++ compilers can tack on
5972 # massive amounts of additional arguments before passing them to the
5973 # linker. It appears as though 1/2 is a usable value.
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5975 fi
d7040cdb
SE
5976 ;;
5977 esac
252b5132 5978
ce2cded5 5979fi
d6d788bd 5980
ce2cded5 5981if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5983$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5984else
81ecdfbb
RW
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5986$as_echo "none" >&6; }
ce2cded5
L
5987fi
5988max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5989
d6d788bd 5990
13b2be9c 5991
13b2be9c 5992
bedf545c 5993
252b5132 5994
ce2cded5
L
5995: ${CP="cp -f"}
5996: ${MV="mv -f"}
5997: ${RM="rm -f"}
d6d788bd 5998
81ecdfbb
RW
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6000$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
6001# Try some XSI features
6002xsi_shell=no
6003( _lt_dummy="a/b/c"
f2c621e4
AS
6004 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6005 = c,a/b,, \
718a6fd8
SE
6006 && eval 'test $(( 1 + 1 )) -eq 2 \
6007 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 6008 && xsi_shell=yes
81ecdfbb
RW
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6010$as_echo "$xsi_shell" >&6; }
bedf545c 6011
bedf545c 6012
81ecdfbb
RW
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6014$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
6015lt_shell_append=no
6016( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6017 >/dev/null 2>&1 \
6018 && lt_shell_append=yes
81ecdfbb
RW
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6020$as_echo "$lt_shell_append" >&6; }
252b5132 6021
d6d788bd 6022
ce2cded5
L
6023if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6024 lt_unset=unset
6025else
6026 lt_unset=false
6027fi
13b2be9c
DJ
6028
6029
6030
6031
d6d788bd 6032
ce2cded5
L
6033# test EBCDIC or ASCII
6034case `echo X|tr X '\101'` in
6035 A) # ASCII based system
6036 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6037 lt_SP2NL='tr \040 \012'
6038 lt_NL2SP='tr \015\012 \040\040'
6039 ;;
6040 *) # EBCDIC based system
6041 lt_SP2NL='tr \100 \n'
6042 lt_NL2SP='tr \r\n \100\100'
6043 ;;
6044esac
c43a438d 6045
c43a438d 6046
c43a438d 6047
252b5132 6048
ad22bfe8 6049
1ad12f97 6050
1ad12f97 6051
9e9b66a9 6052
1ad12f97 6053
81ecdfbb
RW
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6055$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6056if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6057 $as_echo_n "(cached) " >&6
ce2cded5
L
6058else
6059 lt_cv_ld_reload_flag='-r'
6060fi
81ecdfbb
RW
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6062$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
6063reload_flag=$lt_cv_ld_reload_flag
6064case $reload_flag in
6065"" | " "*) ;;
6066*) reload_flag=" $reload_flag" ;;
6067esac
6068reload_cmds='$LD$reload_flag -o $output$reload_objs'
6069case $host_os in
6070 darwin*)
6071 if test "$GCC" = yes; then
6072 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6073 else
6074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075 fi
6076 ;;
6077esac
a541e3ce 6078
9e9b66a9 6079
a2d91340 6080
d6d788bd 6081
9e9b66a9
AM
6082
6083
6084
d6d788bd 6085
252b5132 6086
718a6fd8
SE
6087if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6089set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6092if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6093 $as_echo_n "(cached) " >&6
718a6fd8
SE
6094else
6095 if test -n "$OBJDUMP"; then
6096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
81ecdfbb 6103 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6107 break 2
6108 fi
6109done
81ecdfbb
RW
6110 done
6111IFS=$as_save_IFS
718a6fd8
SE
6112
6113fi
6114fi
6115OBJDUMP=$ac_cv_prog_OBJDUMP
6116if test -n "$OBJDUMP"; then
81ecdfbb
RW
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6118$as_echo "$OBJDUMP" >&6; }
718a6fd8 6119else
81ecdfbb
RW
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
718a6fd8
SE
6122fi
6123
81ecdfbb 6124
718a6fd8
SE
6125fi
6126if test -z "$ac_cv_prog_OBJDUMP"; then
6127 ac_ct_OBJDUMP=$OBJDUMP
6128 # Extract the first word of "objdump", so it can be a program name with args.
6129set dummy objdump; ac_word=$2
81ecdfbb
RW
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6132if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6133 $as_echo_n "(cached) " >&6
718a6fd8
SE
6134else
6135 if test -n "$ac_ct_OBJDUMP"; then
6136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
81ecdfbb 6143 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6147 break 2
6148 fi
6149done
81ecdfbb
RW
6150 done
6151IFS=$as_save_IFS
718a6fd8 6152
718a6fd8
SE
6153fi
6154fi
6155ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6156if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6158$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6159else
81ecdfbb
RW
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
718a6fd8
SE
6162fi
6163
81ecdfbb
RW
6164 if test "x$ac_ct_OBJDUMP" = x; then
6165 OBJDUMP="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 OBJDUMP=$ac_ct_OBJDUMP
6174 fi
718a6fd8
SE
6175else
6176 OBJDUMP="$ac_cv_prog_OBJDUMP"
6177fi
6178
6179test -z "$OBJDUMP" && OBJDUMP=objdump
6180
6181
6182
6183
6184
6185
6186
6187
13b2be9c 6188
81ecdfbb
RW
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6190$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6191if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6192 $as_echo_n "(cached) " >&6
d7040cdb 6193else
ce2cded5
L
6194 lt_cv_file_magic_cmd='$MAGIC_CMD'
6195lt_cv_file_magic_test_file=
6196lt_cv_deplibs_check_method='unknown'
6197# Need to set the preceding variable on all platforms that support
6198# interlibrary dependencies.
6199# 'none' -- dependencies not supported.
6200# `unknown' -- same as none, but documents that we really don't know.
6201# 'pass_all' -- all dependencies passed with no checks.
6202# 'test_compile' -- check by making test program.
6203# 'file_magic [[regex]]' -- check by looking for files in library path
6204# which responds to the $file_magic_cmd with a given extended regex.
6205# If you have `file' or equivalent on your system and you're not sure
6206# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 6207
ce2cded5 6208case $host_os in
50e7d84b 6209aix[4-9]*)
ce2cded5
L
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
d7040cdb 6212
ce2cded5
L
6213beos*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
d7040cdb 6216
ce2cded5
L
6217bsdi[45]*)
6218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6219 lt_cv_file_magic_cmd='/usr/bin/file -L'
6220 lt_cv_file_magic_test_file=/shlib/libc.so
6221 ;;
d7040cdb 6222
ce2cded5
L
6223cygwin*)
6224 # func_win32_libid is a shell function defined in ltmain.sh
6225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6226 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6227 ;;
ce2cded5
L
6228
6229mingw* | pw32*)
6230 # Base MSYS/MinGW do not provide the 'file' command needed by
6231 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6232 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6233 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6234 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
6235 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236 lt_cv_file_magic_cmd='func_win32_libid'
6237 else
f2c621e4 6238 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
6239 lt_cv_file_magic_cmd='$OBJDUMP -f'
6240 fi
d7040cdb 6241 ;;
ce2cded5 6242
3725885a 6243cegcc*)
718a6fd8
SE
6244 # use the weaker test based on 'objdump'. See mingw*.
6245 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6246 lt_cv_file_magic_cmd='$OBJDUMP -f'
6247 ;;
6248
ce2cded5
L
6249darwin* | rhapsody*)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252
6253freebsd* | dragonfly*)
6254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6255 case $host_cpu in
6256 i*86 )
6257 # Not sure whether the presence of OpenBSD here was a mistake.
6258 # Let's accept both of them until this is cleared up.
6259 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6260 lt_cv_file_magic_cmd=/usr/bin/file
6261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6262 ;;
6263 esac
6264 else
6265 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6266 fi
6267 ;;
ce2cded5
L
6268
6269gnu*)
6270 lt_cv_deplibs_check_method=pass_all
d7040cdb 6271 ;;
ce2cded5 6272
3725885a
RW
6273haiku*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276
ce2cded5
L
6277hpux10.20* | hpux11*)
6278 lt_cv_file_magic_cmd=/usr/bin/file
6279 case $host_cpu in
6280 ia64*)
6281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6282 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6283 ;;
6284 hppa*64*)
3725885a 6285 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]'
ce2cded5
L
6286 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6287 ;;
6288 *)
3725885a 6289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
6290 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6291 ;;
6292 esac
d7040cdb 6293 ;;
ce2cded5
L
6294
6295interix[3-9]*)
6296 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6298 ;;
ce2cded5
L
6299
6300irix5* | irix6* | nonstopux*)
6301 case $LD in
6302 *-32|*"-32 ") libmagic=32-bit;;
6303 *-n32|*"-n32 ") libmagic=N32;;
6304 *-64|*"-64 ") libmagic=64-bit;;
6305 *) libmagic=never-match;;
6306 esac
6307 lt_cv_deplibs_check_method=pass_all
d7040cdb 6308 ;;
ce2cded5
L
6309
6310# This must be Linux ELF.
58e24671 6311linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 6312 lt_cv_deplibs_check_method=pass_all
d7040cdb 6313 ;;
ce2cded5
L
6314
6315netbsd*)
6316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318 else
6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6320 fi
d7040cdb 6321 ;;
ce2cded5
L
6322
6323newos6*)
6324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6325 lt_cv_file_magic_cmd=/usr/bin/file
6326 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 6327 ;;
76a27922 6328
ce2cded5
L
6329*nto* | *qnx*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
d6d788bd 6332
ce2cded5
L
6333openbsd*)
6334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6336 else
6337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6338 fi
6339 ;;
44f2f9d2 6340
ce2cded5
L
6341osf3* | osf4* | osf5*)
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
44f2f9d2 6344
ce2cded5
L
6345rdos*)
6346 lt_cv_deplibs_check_method=pass_all
6347 ;;
6348
6349solaris*)
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352
6353sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
6356
6357sysv4 | sysv4.3*)
6358 case $host_vendor in
6359 motorola)
6360 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]'
6361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6362 ;;
6363 ncr)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366 sequent)
6367 lt_cv_file_magic_cmd='/bin/file'
6368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6369 ;;
6370 sni)
6371 lt_cv_file_magic_cmd='/bin/file'
6372 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6373 lt_cv_file_magic_test_file=/lib/libc.so
6374 ;;
6375 siemens)
6376 lt_cv_deplibs_check_method=pass_all
6377 ;;
6378 pc)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381 esac
6382 ;;
6383
6384tpf*)
6385 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6386 ;;
6387esac
6388
ce2cded5 6389fi
81ecdfbb
RW
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6391$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6392file_magic_cmd=$lt_cv_file_magic_cmd
6393deplibs_check_method=$lt_cv_deplibs_check_method
6394test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6395
d7040cdb 6396
d7040cdb 6397
d7040cdb 6398
d7040cdb 6399
44f2f9d2 6400
d7040cdb 6401
d7040cdb 6402
d7040cdb 6403
d7040cdb 6404
44f2f9d2 6405
d7040cdb 6406
ce2cded5 6407if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6408 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6409set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6412if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6413 $as_echo_n "(cached) " >&6
ce2cded5
L
6414else
6415 if test -n "$AR"; then
6416 ac_cv_prog_AR="$AR" # Let the user override the test.
6417else
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
81ecdfbb 6423 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6425 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6427 break 2
d7040cdb
SE
6428 fi
6429done
81ecdfbb
RW
6430 done
6431IFS=$as_save_IFS
44f2f9d2 6432
ce2cded5
L
6433fi
6434fi
6435AR=$ac_cv_prog_AR
6436if test -n "$AR"; then
81ecdfbb
RW
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6438$as_echo "$AR" >&6; }
ce2cded5 6439else
81ecdfbb
RW
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
44f2f9d2 6442fi
d7040cdb 6443
81ecdfbb 6444
d7040cdb 6445fi
f2c621e4 6446if test -z "$ac_cv_prog_AR"; then
ce2cded5 6447 ac_ct_AR=$AR
f2c621e4
AS
6448 # Extract the first word of "ar", so it can be a program name with args.
6449set dummy ar; ac_word=$2
81ecdfbb
RW
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6452if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6453 $as_echo_n "(cached) " >&6
44f2f9d2 6454else
ce2cded5
L
6455 if test -n "$ac_ct_AR"; then
6456 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
81ecdfbb 6463 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6465 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6467 break 2
6468 fi
6469done
81ecdfbb
RW
6470 done
6471IFS=$as_save_IFS
ce2cded5 6472
ce2cded5
L
6473fi
6474fi
6475ac_ct_AR=$ac_cv_prog_ac_ct_AR
6476if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6478$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6479else
81ecdfbb
RW
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481$as_echo "no" >&6; }
d7040cdb 6482fi
44f2f9d2 6483
81ecdfbb
RW
6484 if test "x$ac_ct_AR" = x; then
6485 AR="false"
6486 else
6487 case $cross_compiling:$ac_tool_warned in
6488yes:)
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491ac_tool_warned=yes ;;
6492esac
6493 AR=$ac_ct_AR
6494 fi
df7b86aa 6495else
f2c621e4
AS
6496 AR="$ac_cv_prog_AR"
6497fi
df7b86aa 6498
f2c621e4
AS
6499test -z "$AR" && AR=ar
6500test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6501
df7b86aa 6502
df7b86aa 6503
df7b86aa 6504
df7b86aa
NC
6505
6506
6507
6508
6509
6510
d7040cdb 6511
ce2cded5
L
6512if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6514set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6517if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6518 $as_echo_n "(cached) " >&6
ce2cded5
L
6519else
6520 if test -n "$STRIP"; then
6521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
81ecdfbb 6528 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6532 break 2
6533 fi
6534done
81ecdfbb
RW
6535 done
6536IFS=$as_save_IFS
d7040cdb 6537
ce2cded5
L
6538fi
6539fi
6540STRIP=$ac_cv_prog_STRIP
6541if test -n "$STRIP"; then
81ecdfbb
RW
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6543$as_echo "$STRIP" >&6; }
ce2cded5 6544else
81ecdfbb
RW
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546$as_echo "no" >&6; }
ce2cded5 6547fi
d7040cdb 6548
81ecdfbb 6549
ce2cded5
L
6550fi
6551if test -z "$ac_cv_prog_STRIP"; then
6552 ac_ct_STRIP=$STRIP
6553 # Extract the first word of "strip", so it can be a program name with args.
6554set dummy strip; ac_word=$2
81ecdfbb
RW
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6557if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6558 $as_echo_n "(cached) " >&6
ce2cded5
L
6559else
6560 if test -n "$ac_ct_STRIP"; then
6561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
81ecdfbb 6568 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6570 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6572 break 2
6573 fi
6574done
81ecdfbb
RW
6575 done
6576IFS=$as_save_IFS
d7040cdb 6577
ce2cded5
L
6578fi
6579fi
6580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6581if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6583$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6584else
81ecdfbb
RW
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
ce2cded5 6587fi
d7040cdb 6588
81ecdfbb
RW
6589 if test "x$ac_ct_STRIP" = x; then
6590 STRIP=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593yes:)
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596ac_tool_warned=yes ;;
6597esac
6598 STRIP=$ac_ct_STRIP
6599 fi
ce2cded5
L
6600else
6601 STRIP="$ac_cv_prog_STRIP"
6602fi
d7040cdb 6603
ce2cded5 6604test -z "$STRIP" && STRIP=:
d7040cdb 6605
d7040cdb 6606
d7040cdb 6607
d7040cdb 6608
d7040cdb 6609
d7040cdb 6610
ce2cded5
L
6611if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6616if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6617 $as_echo_n "(cached) " >&6
44f2f9d2 6618else
ce2cded5
L
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621else
6622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623for as_dir in $PATH
6624do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
81ecdfbb 6627 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6631 break 2
6632 fi
6633done
81ecdfbb
RW
6634 done
6635IFS=$as_save_IFS
44f2f9d2 6636
d7040cdb 6637fi
44f2f9d2 6638fi
ce2cded5
L
6639RANLIB=$ac_cv_prog_RANLIB
6640if test -n "$RANLIB"; then
81ecdfbb
RW
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642$as_echo "$RANLIB" >&6; }
ce2cded5 6643else
81ecdfbb
RW
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645$as_echo "no" >&6; }
ce2cded5 6646fi
d7040cdb 6647
81ecdfbb 6648
d7040cdb 6649fi
ce2cded5
L
6650if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653set dummy ranlib; ac_word=$2
81ecdfbb
RW
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6656if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6657 $as_echo_n "(cached) " >&6
44f2f9d2 6658else
ce2cded5
L
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
d7040cdb 6664do
ce2cded5
L
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
81ecdfbb 6667 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6669 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6671 break 2
d7040cdb 6672 fi
ce2cded5 6673done
81ecdfbb
RW
6674 done
6675IFS=$as_save_IFS
ce2cded5 6676
d7040cdb 6677fi
ce2cded5
L
6678fi
6679ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6683else
81ecdfbb
RW
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
44f2f9d2 6686fi
44f2f9d2 6687
81ecdfbb
RW
6688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692yes:)
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695ac_tool_warned=yes ;;
6696esac
6697 RANLIB=$ac_ct_RANLIB
6698 fi
d7040cdb 6699else
ce2cded5 6700 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6701fi
252b5132 6702
ce2cded5 6703test -z "$RANLIB" && RANLIB=:
252b5132 6704
252b5132 6705
ae57792d 6706
252b5132 6707
13b2be9c 6708
14ee9f48 6709
ce2cded5 6710# Determine commands to create old-style static archives.
718a6fd8 6711old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6712old_postinstall_cmds='chmod 644 $oldlib'
6713old_postuninstall_cmds=
14ee9f48 6714
ce2cded5
L
6715if test -n "$RANLIB"; then
6716 case $host_os in
6717 openbsd*)
6718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6719 ;;
6720 *)
6721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6722 ;;
6723 esac
6724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6725fi
14ee9f48 6726
3725885a
RW
6727case $host_os in
6728 darwin*)
6729 lock_old_archive_extraction=yes ;;
6730 *)
6731 lock_old_archive_extraction=no ;;
6732esac
6733
6734
6735
6736
6737
6738
f8fc3443 6739
f8fc3443 6740
252b5132 6741
85fbca6a 6742
85fbca6a 6743
13b2be9c 6744
13b2be9c 6745
d7040cdb 6746
d7040cdb
SE
6747
6748
6749
252b5132 6750
93fbbb04 6751
93fbbb04 6752
d70c5fc7 6753
e0001a05 6754
252b5132 6755
252b5132 6756
252b5132 6757
252b5132 6758
252b5132 6759
3bcbcc3d 6760
252b5132 6761
252b5132 6762
252b5132 6763
15886821 6764
252b5132 6765
252b5132 6766
13b2be9c
DJ
6767
6768
252b5132 6769
252b5132 6770
d6d788bd 6771
ce2cded5
L
6772# If no C compiler was specified, use CC.
6773LTCC=${LTCC-"$CC"}
252b5132 6774
ce2cded5
L
6775# If no C compiler flags were specified, use CFLAGS.
6776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6777
ce2cded5
L
6778# Allow CC to be a program name with arguments.
6779compiler=$CC
252b5132 6780
252b5132 6781
ce2cded5 6782# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6785if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6786 $as_echo_n "(cached) " >&6
ce2cded5 6787else
252b5132 6788
ce2cded5
L
6789# These are sane defaults that work on at least a few old systems.
6790# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6791
ce2cded5
L
6792# Character class describing NM global symbol codes.
6793symcode='[BCDEGRST]'
252b5132 6794
ce2cded5
L
6795# Regexp to match symbols that can be accessed directly from C.
6796sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6797
ce2cded5
L
6798# Define system-specific variables.
6799case $host_os in
6800aix*)
6801 symcode='[BCDT]'
6802 ;;
718a6fd8 6803cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6804 symcode='[ABCDGISTW]'
6805 ;;
6806hpux*)
6807 if test "$host_cpu" = ia64; then
6808 symcode='[ABCDEGRST]'
6809 fi
6810 ;;
6811irix* | nonstopux*)
6812 symcode='[BCDEGRST]'
6813 ;;
6814osf*)
6815 symcode='[BCDEGQRST]'
6816 ;;
6817solaris*)
6818 symcode='[BDRT]'
6819 ;;
6820sco3.2v5*)
6821 symcode='[DT]'
6822 ;;
6823sysv4.2uw2*)
6824 symcode='[DT]'
6825 ;;
6826sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827 symcode='[ABDT]'
6828 ;;
6829sysv4)
6830 symcode='[DFNSTU]'
6831 ;;
6832esac
6833
6834# If we're using GNU nm, then use its standard symbol codes.
6835case `$NM -V 2>&1` in
6836*GNU* | *'with BFD'*)
6837 symcode='[ABCDGIRSTW]' ;;
6838esac
252b5132 6839
ce2cded5
L
6840# Transform an extracted symbol line into a proper C declaration.
6841# Some systems (esp. on ia64) link data and code symbols differently,
6842# so use this general approach.
6843lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6844
ce2cded5 6845# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6846lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6847lt_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 6848
7357c5b6
AM
6849# Handle CRLF in mingw tool chain
6850opt_cr=
6851case $build_os in
6852mingw*)
6853 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6854 ;;
6855esac
d7040cdb 6856
7357c5b6
AM
6857# Try without a prefix underscore, then with it.
6858for ac_symprfx in "" "_"; do
d7040cdb 6859
7357c5b6
AM
6860 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6861 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6862
7357c5b6
AM
6863 # Write the raw and C identifiers.
6864 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6865 # Fake it for dumpbin and say T for any non-static function
6866 # and D for any global variable.
6867 # Also find C++ and __fastcall symbols from MSVC++,
6868 # which start with @ or ?.
6869 lt_cv_sys_global_symbol_pipe="$AWK '"\
6870" {last_section=section; section=\$ 3};"\
6871" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6872" \$ 0!~/External *\|/{next};"\
6873" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6874" {if(hide[section]) next};"\
6875" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6876" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6877" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6878" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6879" ' prfx=^$ac_symprfx"
6880 else
6881 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6882 fi
d7040cdb 6883
7357c5b6
AM
6884 # Check to see that the pipe works correctly.
6885 pipe_works=no
d7040cdb 6886
7357c5b6
AM
6887 rm -f conftest*
6888 cat > conftest.$ac_ext <<_LT_EOF
6889#ifdef __cplusplus
6890extern "C" {
6891#endif
6892char nm_test_var;
6893void nm_test_func(void);
6894void nm_test_func(void){}
6895#ifdef __cplusplus
ce2cded5 6896}
7357c5b6
AM
6897#endif
6898int main(){nm_test_var='a';nm_test_func();return(0);}
6899_LT_EOF
6900
81ecdfbb 6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6902 (eval $ac_compile) 2>&5
ce2cded5 6903 ac_status=$?
81ecdfbb
RW
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
7357c5b6
AM
6906 # Now try to grab the symbols.
6907 nlist=conftest.nm
3725885a
RW
6908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6909 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6910 ac_status=$?
81ecdfbb
RW
6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6913 # Try sorting and uniquifying the output.
6914 if sort "$nlist" | uniq > "$nlist"T; then
6915 mv -f "$nlist"T "$nlist"
6916 else
6917 rm -f "$nlist"T
6918 fi
13b2be9c 6919
7357c5b6
AM
6920 # Make sure that we snagged all the symbols we need.
6921 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6922 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6923 cat <<_LT_EOF > conftest.$ac_ext
6924#ifdef __cplusplus
6925extern "C" {
6926#endif
13b2be9c 6927
7357c5b6
AM
6928_LT_EOF
6929 # Now generate the symbol file.
6930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6931
7357c5b6 6932 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6933
7357c5b6 6934/* The mapping between symbol names and symbols. */
f2c621e4 6935const struct {
7357c5b6
AM
6936 const char *name;
6937 void *address;
6938}
6939lt__PROGRAM__LTX_preloaded_symbols[] =
6940{
6941 { "@PROGRAM@", (void *) 0 },
6942_LT_EOF
6943 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6944 cat <<\_LT_EOF >> conftest.$ac_ext
6945 {0, (void *) 0}
6946};
d7040cdb 6947
7357c5b6
AM
6948/* This works around a problem in FreeBSD linker */
6949#ifdef FREEBSD_WORKAROUND
6950static const void *lt_preloaded_setup() {
6951 return lt__PROGRAM__LTX_preloaded_symbols;
6952}
ce2cded5 6953#endif
d7040cdb 6954
7357c5b6 6955#ifdef __cplusplus
ce2cded5 6956}
7357c5b6
AM
6957#endif
6958_LT_EOF
6959 # Now try linking the two files.
6960 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6961 lt_save_LIBS="$LIBS"
6962 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6963 LIBS="conftstm.$ac_objext"
6964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6966 (eval $ac_link) 2>&5
6967 ac_status=$?
81ecdfbb
RW
6968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6970 pipe_works=yes
6971 fi
f2c621e4
AS
6972 LIBS="$lt_save_LIBS"
6973 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6974 else
6975 echo "cannot find nm_test_func in $nlist" >&5
6976 fi
6977 else
6978 echo "cannot find nm_test_var in $nlist" >&5
6979 fi
6980 else
6981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6982 fi
6983 else
6984 echo "$progname: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6986 fi
718a6fd8 6987 rm -rf conftest* conftst*
7357c5b6
AM
6988
6989 # Do not use the global_symbol_pipe unless it works.
6990 if test "$pipe_works" = yes; then
6991 break
6992 else
6993 lt_cv_sys_global_symbol_pipe=
6994 fi
6995done
d7040cdb 6996
ce2cded5 6997fi
7357c5b6
AM
6998
6999if test -z "$lt_cv_sys_global_symbol_pipe"; then
7000 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7001fi
7357c5b6 7002if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7004$as_echo "failed" >&6; }
7357c5b6 7005else
81ecdfbb
RW
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7007$as_echo "ok" >&6; }
ce2cded5 7008fi
d7040cdb 7009
df7b86aa
NC
7010
7011
7012
d7040cdb 7013
d7040cdb 7014
d7040cdb 7015
d7040cdb 7016
d7040cdb 7017
d7040cdb 7018
d7040cdb 7019
d7040cdb 7020
d7040cdb 7021
d7040cdb 7022
d7040cdb 7023
7357c5b6
AM
7024
7025
718a6fd8
SE
7026
7027
7028
7357c5b6
AM
7029
7030
81ecdfbb
RW
7031# Check whether --enable-libtool-lock was given.
7032if test "${enable_libtool_lock+set}" = set; then :
7033 enableval=$enable_libtool_lock;
7034fi
7357c5b6 7035
7357c5b6
AM
7036test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038# Some flags need to be propagated to the compiler or linker for good
7039# libtool support.
7040case $host in
7041ia64-*-hpux*)
7042 # Find out which ABI we are using.
7043 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7045 (eval $ac_compile) 2>&5
7046 ac_status=$?
81ecdfbb
RW
7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7048 test $ac_status = 0; }; then
7357c5b6
AM
7049 case `/usr/bin/file conftest.$ac_objext` in
7050 *ELF-32*)
7051 HPUX_IA64_MODE="32"
7052 ;;
7053 *ELF-64*)
7054 HPUX_IA64_MODE="64"
7055 ;;
7056 esac
7057 fi
7058 rm -rf conftest*
7059 ;;
7060*-*-irix6*)
7061 # Find out which ABI we are using.
3725885a 7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7064 (eval $ac_compile) 2>&5
7065 ac_status=$?
81ecdfbb
RW
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
7357c5b6
AM
7068 if test "$lt_cv_prog_gnu_ld" = yes; then
7069 case `/usr/bin/file conftest.$ac_objext` in
7070 *32-bit*)
7071 LD="${LD-ld} -melf32bsmip"
7072 ;;
7073 *N32*)
7074 LD="${LD-ld} -melf32bmipn32"
7075 ;;
7076 *64-bit*)
7077 LD="${LD-ld} -melf64bmip"
7078 ;;
7079 esac
7080 else
7081 case `/usr/bin/file conftest.$ac_objext` in
7082 *32-bit*)
7083 LD="${LD-ld} -32"
7084 ;;
7085 *N32*)
7086 LD="${LD-ld} -n32"
7087 ;;
7088 *64-bit*)
7089 LD="${LD-ld} -64"
7090 ;;
7091 esac
7092 fi
7093 fi
7094 rm -rf conftest*
7095 ;;
7096
cc9afea3 7097x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7098s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7099 # Find out which ABI we are using.
7100 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7102 (eval $ac_compile) 2>&5
7103 ac_status=$?
81ecdfbb
RW
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7357c5b6
AM
7106 case `/usr/bin/file conftest.o` in
7107 *32-bit*)
7108 case $host in
7109 x86_64-*kfreebsd*-gnu)
7110 LD="${LD-ld} -m elf_i386_fbsd"
7111 ;;
7112 x86_64-*linux*)
6d2920c8
L
7113 case `/usr/bin/file conftest.o` in
7114 *x86-64*)
7115 LD="${LD-ld} -m elf32_x86_64"
7116 ;;
7117 *)
7118 LD="${LD-ld} -m elf_i386"
7119 ;;
7120 esac
7357c5b6 7121 ;;
cc9afea3
AM
7122 powerpc64le-*linux*)
7123 LD="${LD-ld} -m elf32lppclinux"
7124 ;;
7125 powerpc64-*linux*)
7357c5b6
AM
7126 LD="${LD-ld} -m elf32ppclinux"
7127 ;;
7128 s390x-*linux*)
7129 LD="${LD-ld} -m elf_s390"
7130 ;;
7131 sparc64-*linux*)
7132 LD="${LD-ld} -m elf32_sparc"
7133 ;;
7134 esac
7135 ;;
7136 *64-bit*)
7137 case $host in
7138 x86_64-*kfreebsd*-gnu)
7139 LD="${LD-ld} -m elf_x86_64_fbsd"
7140 ;;
7141 x86_64-*linux*)
7142 LD="${LD-ld} -m elf_x86_64"
7143 ;;
cc9afea3
AM
7144 powerpcle-*linux*)
7145 LD="${LD-ld} -m elf64lppc"
7146 ;;
7147 powerpc-*linux*)
7357c5b6
AM
7148 LD="${LD-ld} -m elf64ppc"
7149 ;;
7150 s390*-*linux*|s390*-*tpf*)
7151 LD="${LD-ld} -m elf64_s390"
7152 ;;
7153 sparc*-*linux*)
7154 LD="${LD-ld} -m elf64_sparc"
7155 ;;
7156 esac
7157 ;;
7158 esac
7159 fi
7160 rm -rf conftest*
7161 ;;
7162
7163*-*-sco3.2v5*)
7164 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7165 SAVE_CFLAGS="$CFLAGS"
7166 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7168$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7169if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7170 $as_echo_n "(cached) " >&6
ce2cded5 7171else
7357c5b6
AM
7172 ac_ext=c
7173ac_cpp='$CPP $CPPFLAGS'
7174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7176ac_compiler_gnu=$ac_cv_c_compiler_gnu
7177
81ecdfbb 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7179/* end confdefs.h. */
d7040cdb 7180
7357c5b6
AM
7181int
7182main ()
7183{
7184
7185 ;
7186 return 0;
7187}
ce2cded5 7188_ACEOF
81ecdfbb 7189if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7190 lt_cv_cc_needs_belf=yes
ce2cded5 7191else
81ecdfbb 7192 lt_cv_cc_needs_belf=no
ce2cded5 7193fi
81ecdfbb
RW
7194rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7196 ac_ext=c
7197ac_cpp='$CPP $CPPFLAGS'
7198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7201
ce2cded5 7202fi
81ecdfbb
RW
7203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7204$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7205 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7206 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7207 CFLAGS="$SAVE_CFLAGS"
7208 fi
7209 ;;
7210sparc*-*solaris*)
7211 # Find out which ABI we are using.
7212 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7214 (eval $ac_compile) 2>&5
7215 ac_status=$?
81ecdfbb
RW
7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7217 test $ac_status = 0; }; then
7357c5b6
AM
7218 case `/usr/bin/file conftest.o` in
7219 *64-bit*)
7220 case $lt_cv_prog_gnu_ld in
7221 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7222 *)
7223 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7224 LD="${LD-ld} -64"
7225 fi
7226 ;;
7357c5b6
AM
7227 esac
7228 ;;
7229 esac
7230 fi
7231 rm -rf conftest*
7232 ;;
7233esac
d7040cdb 7234
df7b86aa
NC
7235need_locks="$enable_libtool_lock"
7236
718a6fd8
SE
7237
7238 case $host_os in
7239 rhapsody* | darwin*)
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7242set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7245if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7246 $as_echo_n "(cached) " >&6
718a6fd8
SE
7247else
7248 if test -n "$DSYMUTIL"; then
7249 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7250else
7251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252for as_dir in $PATH
7253do
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
81ecdfbb 7256 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7258 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7260 break 2
7261 fi
7262done
81ecdfbb
RW
7263 done
7264IFS=$as_save_IFS
718a6fd8
SE
7265
7266fi
7267fi
7268DSYMUTIL=$ac_cv_prog_DSYMUTIL
7269if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7271$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7272else
81ecdfbb
RW
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274$as_echo "no" >&6; }
718a6fd8
SE
7275fi
7276
81ecdfbb 7277
718a6fd8
SE
7278fi
7279if test -z "$ac_cv_prog_DSYMUTIL"; then
7280 ac_ct_DSYMUTIL=$DSYMUTIL
7281 # Extract the first word of "dsymutil", so it can be a program name with args.
7282set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7285if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7286 $as_echo_n "(cached) " >&6
718a6fd8
SE
7287else
7288 if test -n "$ac_ct_DSYMUTIL"; then
7289 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7290else
7291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292for as_dir in $PATH
7293do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
81ecdfbb 7296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7298 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7300 break 2
7301 fi
7302done
81ecdfbb
RW
7303 done
7304IFS=$as_save_IFS
718a6fd8 7305
718a6fd8
SE
7306fi
7307fi
7308ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7309if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7311$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7312else
81ecdfbb
RW
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314$as_echo "no" >&6; }
718a6fd8
SE
7315fi
7316
81ecdfbb
RW
7317 if test "x$ac_ct_DSYMUTIL" = x; then
7318 DSYMUTIL=":"
7319 else
7320 case $cross_compiling:$ac_tool_warned in
7321yes:)
7322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324ac_tool_warned=yes ;;
7325esac
7326 DSYMUTIL=$ac_ct_DSYMUTIL
7327 fi
718a6fd8
SE
7328else
7329 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7330fi
7331
7332 if test -n "$ac_tool_prefix"; then
7333 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7334set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7337if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7338 $as_echo_n "(cached) " >&6
718a6fd8
SE
7339else
7340 if test -n "$NMEDIT"; then
7341 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7342else
7343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344for as_dir in $PATH
7345do
7346 IFS=$as_save_IFS
7347 test -z "$as_dir" && as_dir=.
81ecdfbb 7348 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7350 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7352 break 2
7353 fi
7354done
81ecdfbb
RW
7355 done
7356IFS=$as_save_IFS
718a6fd8
SE
7357
7358fi
7359fi
7360NMEDIT=$ac_cv_prog_NMEDIT
7361if test -n "$NMEDIT"; then
81ecdfbb
RW
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7363$as_echo "$NMEDIT" >&6; }
718a6fd8 7364else
81ecdfbb
RW
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366$as_echo "no" >&6; }
718a6fd8
SE
7367fi
7368
81ecdfbb 7369
718a6fd8
SE
7370fi
7371if test -z "$ac_cv_prog_NMEDIT"; then
7372 ac_ct_NMEDIT=$NMEDIT
7373 # Extract the first word of "nmedit", so it can be a program name with args.
7374set dummy nmedit; ac_word=$2
81ecdfbb
RW
7375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7377if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7378 $as_echo_n "(cached) " >&6
718a6fd8
SE
7379else
7380 if test -n "$ac_ct_NMEDIT"; then
7381 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7382else
7383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
81ecdfbb 7388 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7390 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7392 break 2
7393 fi
7394done
81ecdfbb
RW
7395 done
7396IFS=$as_save_IFS
718a6fd8 7397
718a6fd8
SE
7398fi
7399fi
7400ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7401if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7403$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7404else
81ecdfbb
RW
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406$as_echo "no" >&6; }
718a6fd8
SE
7407fi
7408
81ecdfbb
RW
7409 if test "x$ac_ct_NMEDIT" = x; then
7410 NMEDIT=":"
7411 else
7412 case $cross_compiling:$ac_tool_warned in
7413yes:)
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416ac_tool_warned=yes ;;
7417esac
7418 NMEDIT=$ac_ct_NMEDIT
7419 fi
718a6fd8
SE
7420else
7421 NMEDIT="$ac_cv_prog_NMEDIT"
7422fi
7423
7424 if test -n "$ac_tool_prefix"; then
7425 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7426set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7429if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7430 $as_echo_n "(cached) " >&6
718a6fd8
SE
7431else
7432 if test -n "$LIPO"; then
7433 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
81ecdfbb 7440 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7442 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7444 break 2
7445 fi
7446done
81ecdfbb
RW
7447 done
7448IFS=$as_save_IFS
718a6fd8
SE
7449
7450fi
7451fi
7452LIPO=$ac_cv_prog_LIPO
7453if test -n "$LIPO"; then
81ecdfbb
RW
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7455$as_echo "$LIPO" >&6; }
718a6fd8 7456else
81ecdfbb
RW
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
718a6fd8
SE
7459fi
7460
81ecdfbb 7461
718a6fd8
SE
7462fi
7463if test -z "$ac_cv_prog_LIPO"; then
7464 ac_ct_LIPO=$LIPO
7465 # Extract the first word of "lipo", so it can be a program name with args.
7466set dummy lipo; ac_word=$2
81ecdfbb
RW
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7469if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7470 $as_echo_n "(cached) " >&6
718a6fd8
SE
7471else
7472 if test -n "$ac_ct_LIPO"; then
7473 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
81ecdfbb 7480 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7482 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7484 break 2
7485 fi
7486done
81ecdfbb
RW
7487 done
7488IFS=$as_save_IFS
718a6fd8 7489
718a6fd8
SE
7490fi
7491fi
7492ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7493if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7495$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7496else
81ecdfbb
RW
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498$as_echo "no" >&6; }
718a6fd8
SE
7499fi
7500
81ecdfbb
RW
7501 if test "x$ac_ct_LIPO" = x; then
7502 LIPO=":"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505yes:)
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508ac_tool_warned=yes ;;
7509esac
7510 LIPO=$ac_ct_LIPO
7511 fi
718a6fd8
SE
7512else
7513 LIPO="$ac_cv_prog_LIPO"
7514fi
7515
7516 if test -n "$ac_tool_prefix"; then
7517 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7518set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7521if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7522 $as_echo_n "(cached) " >&6
718a6fd8
SE
7523else
7524 if test -n "$OTOOL"; then
7525 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7526else
7527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528for as_dir in $PATH
7529do
7530 IFS=$as_save_IFS
7531 test -z "$as_dir" && as_dir=.
81ecdfbb 7532 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7534 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7536 break 2
7537 fi
7538done
81ecdfbb
RW
7539 done
7540IFS=$as_save_IFS
718a6fd8
SE
7541
7542fi
7543fi
7544OTOOL=$ac_cv_prog_OTOOL
7545if test -n "$OTOOL"; then
81ecdfbb
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7547$as_echo "$OTOOL" >&6; }
718a6fd8 7548else
81ecdfbb
RW
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
718a6fd8
SE
7551fi
7552
81ecdfbb 7553
718a6fd8
SE
7554fi
7555if test -z "$ac_cv_prog_OTOOL"; then
7556 ac_ct_OTOOL=$OTOOL
7557 # Extract the first word of "otool", so it can be a program name with args.
7558set dummy otool; ac_word=$2
81ecdfbb
RW
7559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7561if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7562 $as_echo_n "(cached) " >&6
718a6fd8
SE
7563else
7564 if test -n "$ac_ct_OTOOL"; then
7565 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7566else
7567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568for as_dir in $PATH
7569do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
81ecdfbb 7572 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7574 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7576 break 2
7577 fi
7578done
81ecdfbb
RW
7579 done
7580IFS=$as_save_IFS
718a6fd8 7581
718a6fd8
SE
7582fi
7583fi
7584ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7585if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7587$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7588else
81ecdfbb
RW
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590$as_echo "no" >&6; }
718a6fd8
SE
7591fi
7592
81ecdfbb
RW
7593 if test "x$ac_ct_OTOOL" = x; then
7594 OTOOL=":"
7595 else
7596 case $cross_compiling:$ac_tool_warned in
7597yes:)
7598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600ac_tool_warned=yes ;;
7601esac
7602 OTOOL=$ac_ct_OTOOL
7603 fi
718a6fd8
SE
7604else
7605 OTOOL="$ac_cv_prog_OTOOL"
7606fi
7607
7608 if test -n "$ac_tool_prefix"; then
7609 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7610set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7613if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7614 $as_echo_n "(cached) " >&6
718a6fd8
SE
7615else
7616 if test -n "$OTOOL64"; then
7617 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7618else
7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
81ecdfbb 7624 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7626 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7628 break 2
7629 fi
7630done
81ecdfbb
RW
7631 done
7632IFS=$as_save_IFS
718a6fd8
SE
7633
7634fi
7635fi
7636OTOOL64=$ac_cv_prog_OTOOL64
7637if test -n "$OTOOL64"; then
81ecdfbb
RW
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7639$as_echo "$OTOOL64" >&6; }
718a6fd8 7640else
81ecdfbb
RW
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642$as_echo "no" >&6; }
718a6fd8
SE
7643fi
7644
81ecdfbb 7645
718a6fd8
SE
7646fi
7647if test -z "$ac_cv_prog_OTOOL64"; then
7648 ac_ct_OTOOL64=$OTOOL64
7649 # Extract the first word of "otool64", so it can be a program name with args.
7650set dummy otool64; ac_word=$2
81ecdfbb
RW
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7653if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7654 $as_echo_n "(cached) " >&6
718a6fd8
SE
7655else
7656 if test -n "$ac_ct_OTOOL64"; then
7657 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
81ecdfbb 7664 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7666 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7668 break 2
7669 fi
7670done
81ecdfbb
RW
7671 done
7672IFS=$as_save_IFS
718a6fd8 7673
718a6fd8
SE
7674fi
7675fi
7676ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7677if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7679$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7680else
81ecdfbb
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
718a6fd8
SE
7683fi
7684
81ecdfbb
RW
7685 if test "x$ac_ct_OTOOL64" = x; then
7686 OTOOL64=":"
7687 else
7688 case $cross_compiling:$ac_tool_warned in
7689yes:)
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7692ac_tool_warned=yes ;;
7693esac
7694 OTOOL64=$ac_ct_OTOOL64
7695 fi
718a6fd8
SE
7696else
7697 OTOOL64="$ac_cv_prog_OTOOL64"
7698fi
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
81ecdfbb
RW
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7727$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7728if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7729 $as_echo_n "(cached) " >&6
718a6fd8
SE
7730else
7731 lt_cv_apple_cc_single_mod=no
7732 if test -z "${LT_MULTI_MODULE}"; then
7733 # By default we will add the -single_module flag. You can override
7734 # by either setting the environment variable LT_MULTI_MODULE
7735 # non-empty at configure time, or by adding -multi_module to the
7736 # link flags.
7737 rm -rf libconftest.dylib*
7738 echo "int foo(void){return 1;}" > conftest.c
7739 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7740-dynamiclib -Wl,-single_module conftest.c" >&5
7741 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7742 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7743 _lt_result=$?
7744 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7745 lt_cv_apple_cc_single_mod=yes
7746 else
7747 cat conftest.err >&5
7748 fi
7749 rm -rf libconftest.dylib*
7750 rm -f conftest.*
7751 fi
7752fi
81ecdfbb
RW
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7754$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7756$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7757if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7758 $as_echo_n "(cached) " >&6
718a6fd8
SE
7759else
7760 lt_cv_ld_exported_symbols_list=no
7761 save_LDFLAGS=$LDFLAGS
7762 echo "_main" > conftest.sym
7763 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7765/* end confdefs.h. */
7766
7767int
7768main ()
7769{
7770
7771 ;
7772 return 0;
7773}
7774_ACEOF
81ecdfbb 7775if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7776 lt_cv_ld_exported_symbols_list=yes
7777else
81ecdfbb 7778 lt_cv_ld_exported_symbols_list=no
718a6fd8 7779fi
81ecdfbb
RW
7780rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7782 LDFLAGS="$save_LDFLAGS"
7783
7784fi
81ecdfbb
RW
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7786$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7788$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7789if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7790 $as_echo_n "(cached) " >&6
7791else
7792 lt_cv_ld_force_load=no
7793 cat > conftest.c << _LT_EOF
7794int forced_loaded() { return 2;}
7795_LT_EOF
7796 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7797 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7798 echo "$AR cru libconftest.a conftest.o" >&5
7799 $AR cru libconftest.a conftest.o 2>&5
7800 cat > conftest.c << _LT_EOF
7801int main() { return 0;}
7802_LT_EOF
7803 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7804 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7805 _lt_result=$?
7806 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7807 lt_cv_ld_force_load=yes
7808 else
7809 cat conftest.err >&5
7810 fi
7811 rm -f conftest.err libconftest.a conftest conftest.c
7812 rm -rf conftest.dSYM
7813
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7816$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7817 case $host_os in
7818 rhapsody* | darwin1.[012])
7819 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7820 darwin1.*)
7821 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7822 darwin*) # darwin 5.x on
7823 # if running on 10.5 or later, the deployment target defaults
7824 # to the OS version, if on x86, and 10.4, the deployment
7825 # target defaults to 10.4. Don't you love it?
7826 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7827 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7828 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7829 10.[012][,.]*)
718a6fd8
SE
7830 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7831 10.*)
7832 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7833 esac
7834 ;;
7835 esac
7836 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7837 _lt_dar_single_mod='$single_module'
7838 fi
7839 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7840 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7841 else
7842 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7843 fi
3725885a 7844 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7845 _lt_dsymutil='~$DSYMUTIL $lib || :'
7846 else
7847 _lt_dsymutil=
7848 fi
7849 ;;
7850 esac
7851
718a6fd8 7852for ac_header in dlfcn.h
81ecdfbb
RW
7853do :
7854 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7855"
d0ac1c44 7856if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7857 cat >>confdefs.h <<_ACEOF
81ecdfbb 7858#define HAVE_DLFCN_H 1
718a6fd8
SE
7859_ACEOF
7860
7861fi
7862
7863done
7864
7865
7866
3725885a
RW
7867
7868
718a6fd8
SE
7869# Set options
7870
7871
7872
7873 enable_dlopen=no
7874
7875
7876 enable_win32_dll=no
7877
7878
81ecdfbb
RW
7879 # Check whether --enable-shared was given.
7880if test "${enable_shared+set}" = set; then :
7881 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7882 case $enableval in
7883 yes) enable_shared=yes ;;
7884 no) enable_shared=no ;;
7885 *)
7886 enable_shared=no
7887 # Look at the argument we got. We use all the common list separators.
7888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7889 for pkg in $enableval; do
7890 IFS="$lt_save_ifs"
7891 if test "X$pkg" = "X$p"; then
7892 enable_shared=yes
7893 fi
7894 done
7895 IFS="$lt_save_ifs"
7896 ;;
7897 esac
7898else
7899 enable_shared=yes
81ecdfbb
RW
7900fi
7901
718a6fd8
SE
7902
7903
7904
7905
7906
7907
7908
7909
81ecdfbb
RW
7910 # Check whether --enable-static was given.
7911if test "${enable_static+set}" = set; then :
7912 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7913 case $enableval in
7914 yes) enable_static=yes ;;
7915 no) enable_static=no ;;
7916 *)
7917 enable_static=no
7918 # Look at the argument we got. We use all the common list separators.
7919 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920 for pkg in $enableval; do
7921 IFS="$lt_save_ifs"
7922 if test "X$pkg" = "X$p"; then
7923 enable_static=yes
7924 fi
7925 done
7926 IFS="$lt_save_ifs"
7927 ;;
7928 esac
7929else
7930 enable_static=yes
81ecdfbb
RW
7931fi
7932
718a6fd8
SE
7933
7934
d7040cdb 7935
d7040cdb 7936
718a6fd8
SE
7937
7938
7939
7940
7941
81ecdfbb
RW
7942# Check whether --with-pic was given.
7943if test "${with_pic+set}" = set; then :
7944 withval=$with_pic; pic_mode="$withval"
ce2cded5 7945else
718a6fd8 7946 pic_mode=default
81ecdfbb
RW
7947fi
7948
d7040cdb 7949
718a6fd8
SE
7950test -z "$pic_mode" && pic_mode=default
7951
7952
7953
7954
7955
7956
7957
81ecdfbb
RW
7958 # Check whether --enable-fast-install was given.
7959if test "${enable_fast_install+set}" = set; then :
7960 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7961 case $enableval in
7962 yes) enable_fast_install=yes ;;
7963 no) enable_fast_install=no ;;
7964 *)
7965 enable_fast_install=no
7966 # Look at the argument we got. We use all the common list separators.
7967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7968 for pkg in $enableval; do
7969 IFS="$lt_save_ifs"
7970 if test "X$pkg" = "X$p"; then
7971 enable_fast_install=yes
7972 fi
7973 done
7974 IFS="$lt_save_ifs"
7975 ;;
7976 esac
ce2cded5 7977else
718a6fd8 7978 enable_fast_install=yes
81ecdfbb
RW
7979fi
7980
718a6fd8
SE
7981
7982
7983
7984
d7040cdb 7985
d7040cdb 7986
d7040cdb 7987
d7040cdb 7988
d7040cdb 7989
d7040cdb 7990
ce2cded5
L
7991# This can be used to rebuild libtool when needed
7992LIBTOOL_DEPS="$ltmain"
d7040cdb 7993
ce2cded5
L
7994# Always use our own libtool.
7995LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7996
d7040cdb 7997
d7040cdb 7998
d7040cdb
SE
7999
8000
8001
8002
8003
8004
d7040cdb 8005
d7040cdb 8006
ab509236 8007
ab509236 8008
d7040cdb
SE
8009
8010
8011
8012
8013
13b2be9c 8014
13b2be9c 8015
13b2be9c 8016
13b2be9c 8017
d7040cdb 8018
3725885a 8019
d7040cdb
SE
8020
8021
ce2cded5 8022test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8023
8024
d7040cdb 8025
d7040cdb 8026
d7040cdb
SE
8027
8028
8029
8030
8031
8032
ce2cded5
L
8033
8034
8035
8036
8037if test -n "${ZSH_VERSION+set}" ; then
8038 setopt NO_GLOB_SUBST
8039fi
8040
81ecdfbb
RW
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8042$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8043if ${lt_cv_objdir+:} false; then :
81ecdfbb 8044 $as_echo_n "(cached) " >&6
d7040cdb 8045else
ce2cded5
L
8046 rm -f .libs 2>/dev/null
8047mkdir .libs 2>/dev/null
8048if test -d .libs; then
8049 lt_cv_objdir=.libs
8050else
8051 # MS-DOS does not allow filenames that begin with a dot.
8052 lt_cv_objdir=_libs
d7040cdb 8053fi
ce2cded5
L
8054rmdir .libs 2>/dev/null
8055fi
81ecdfbb
RW
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8057$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8058objdir=$lt_cv_objdir
d7040cdb
SE
8059
8060
8061
8062
d7040cdb 8063
ce2cded5
L
8064cat >>confdefs.h <<_ACEOF
8065#define LT_OBJDIR "$lt_cv_objdir/"
8066_ACEOF
d7040cdb
SE
8067
8068
8069
8070
ce2cded5
L
8071case $host_os in
8072aix3*)
8073 # AIX sometimes has problems with the GCC collect2 program. For some
8074 # reason, if we set the COLLECT_NAMES environment variable, the problems
8075 # vanish in a puff of smoke.
8076 if test "X${COLLECT_NAMES+set}" != Xset; then
8077 COLLECT_NAMES=
8078 export COLLECT_NAMES
8079 fi
8080 ;;
8081esac
d7040cdb 8082
ce2cded5
L
8083# Global variables:
8084ofile=libtool
8085can_build_shared=yes
d7040cdb 8086
ce2cded5
L
8087# All known linkers require a `.a' archive for static linking (except MSVC,
8088# which needs '.lib').
8089libext=a
d7040cdb 8090
ce2cded5 8091with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8092
ce2cded5
L
8093old_CC="$CC"
8094old_CFLAGS="$CFLAGS"
d7040cdb 8095
ce2cded5
L
8096# Set sane defaults for various variables
8097test -z "$CC" && CC=cc
8098test -z "$LTCC" && LTCC=$CC
8099test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8100test -z "$LD" && LD=ld
8101test -z "$ac_objext" && ac_objext=o
8102
8103for cc_temp in $compiler""; do
8104 case $cc_temp in
8105 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8106 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8107 \-*) ;;
8108 *) break;;
8109 esac
8110done
3725885a 8111cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
8112
8113
8114# Only perform the check for file, if the check method requires it
8115test -z "$MAGIC_CMD" && MAGIC_CMD=file
8116case $deplibs_check_method in
8117file_magic*)
8118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8120$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8121if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8122 $as_echo_n "(cached) " >&6
ce2cded5
L
8123else
8124 case $MAGIC_CMD in
8125[\\/*] | ?:[\\/]*)
8126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8127 ;;
8128*)
8129 lt_save_MAGIC_CMD="$MAGIC_CMD"
8130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8131 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8132 for ac_dir in $ac_dummy; do
8133 IFS="$lt_save_ifs"
8134 test -z "$ac_dir" && ac_dir=.
8135 if test -f $ac_dir/${ac_tool_prefix}file; then
8136 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8137 if test -n "$file_magic_test_file"; then
8138 case $deplibs_check_method in
8139 "file_magic "*)
8140 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8141 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8142 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8143 $EGREP "$file_magic_regex" > /dev/null; then
8144 :
d7040cdb 8145 else
ce2cded5 8146 cat <<_LT_EOF 1>&2
d7040cdb 8147
ce2cded5
L
8148*** Warning: the command libtool uses to detect shared libraries,
8149*** $file_magic_cmd, produces output that libtool cannot recognize.
8150*** The result is that libtool may fail to recognize shared libraries
8151*** as such. This will affect the creation of libtool libraries that
8152*** depend on shared libraries, but programs linked with such libtool
8153*** libraries will work regardless of this problem. Nevertheless, you
8154*** may want to report the problem to your system manager and/or to
8155*** bug-libtool@gnu.org
d7040cdb 8156
ce2cded5
L
8157_LT_EOF
8158 fi ;;
8159 esac
d7040cdb 8160 fi
ce2cded5 8161 break
d7040cdb 8162 fi
ce2cded5
L
8163 done
8164 IFS="$lt_save_ifs"
8165 MAGIC_CMD="$lt_save_MAGIC_CMD"
8166 ;;
8167esac
8168fi
d7040cdb 8169
ce2cded5
L
8170MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8173$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8174else
81ecdfbb
RW
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176$as_echo "no" >&6; }
ce2cded5 8177fi
d7040cdb 8178
d7040cdb 8179
d7040cdb 8180
d7040cdb 8181
d7040cdb 8182
ce2cded5
L
8183if test -z "$lt_cv_path_MAGIC_CMD"; then
8184 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8186$as_echo_n "checking for file... " >&6; }
d0ac1c44 8187if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8188 $as_echo_n "(cached) " >&6
ce2cded5
L
8189else
8190 case $MAGIC_CMD in
8191[\\/*] | ?:[\\/]*)
8192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8193 ;;
8194*)
8195 lt_save_MAGIC_CMD="$MAGIC_CMD"
8196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8198 for ac_dir in $ac_dummy; do
8199 IFS="$lt_save_ifs"
8200 test -z "$ac_dir" && ac_dir=.
8201 if test -f $ac_dir/file; then
8202 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8203 if test -n "$file_magic_test_file"; then
8204 case $deplibs_check_method in
8205 "file_magic "*)
8206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8209 $EGREP "$file_magic_regex" > /dev/null; then
8210 :
d7040cdb 8211 else
ce2cded5
L
8212 cat <<_LT_EOF 1>&2
8213
8214*** Warning: the command libtool uses to detect shared libraries,
8215*** $file_magic_cmd, produces output that libtool cannot recognize.
8216*** The result is that libtool may fail to recognize shared libraries
8217*** as such. This will affect the creation of libtool libraries that
8218*** depend on shared libraries, but programs linked with such libtool
8219*** libraries will work regardless of this problem. Nevertheless, you
8220*** may want to report the problem to your system manager and/or to
8221*** bug-libtool@gnu.org
8222
8223_LT_EOF
8224 fi ;;
d7040cdb 8225 esac
d7040cdb 8226 fi
ce2cded5
L
8227 break
8228 fi
8229 done
8230 IFS="$lt_save_ifs"
8231 MAGIC_CMD="$lt_save_MAGIC_CMD"
8232 ;;
8233esac
8234fi
d7040cdb 8235
ce2cded5
L
8236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8237if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8239$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8240else
81ecdfbb
RW
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242$as_echo "no" >&6; }
ce2cded5 8243fi
d7040cdb 8244
d7040cdb 8245
ce2cded5
L
8246 else
8247 MAGIC_CMD=:
8248 fi
d7040cdb 8249fi
d7040cdb 8250
ce2cded5
L
8251 fi
8252 ;;
8253esac
d7040cdb 8254
ce2cded5 8255# Use C for the default configuration in the libtool script
d7040cdb 8256
ce2cded5
L
8257lt_save_CC="$CC"
8258ac_ext=c
8259ac_cpp='$CPP $CPPFLAGS'
8260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8262ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8263
d7040cdb 8264
ce2cded5
L
8265# Source file extension for C test sources.
8266ac_ext=c
d7040cdb 8267
ce2cded5
L
8268# Object file extension for compiled C test sources.
8269objext=o
8270objext=$objext
d7040cdb 8271
ce2cded5
L
8272# Code to be used in simple compile tests
8273lt_simple_compile_test_code="int some_variable = 0;"
8274
8275# Code to be used in simple link tests
8276lt_simple_link_test_code='int main(){return(0);}'
8277
8278
8279
8280
8281
8282
8283
8284# If no C compiler was specified, use CC.
8285LTCC=${LTCC-"$CC"}
8286
8287# If no C compiler flags were specified, use CFLAGS.
8288LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8289
8290# Allow CC to be a program name with arguments.
8291compiler=$CC
8292
8293# Save the default compiler, since it gets overwritten when the other
8294# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8295compiler_DEFAULT=$CC
8296
8297# save warnings/boilerplate of simple test code
8298ac_outfile=conftest.$ac_objext
8299echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8300eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301_lt_compiler_boilerplate=`cat conftest.err`
8302$RM conftest*
8303
8304ac_outfile=conftest.$ac_objext
8305echo "$lt_simple_link_test_code" >conftest.$ac_ext
8306eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8307_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8308$RM -r conftest*
ce2cded5
L
8309
8310
f2c621e4
AS
8311## CAVEAT EMPTOR:
8312## There is no encapsulation within the following macros, do not change
8313## the running order or otherwise move them around unless you know exactly
8314## what you are doing...
ce2cded5
L
8315if test -n "$compiler"; then
8316
8317lt_prog_compiler_no_builtin_flag=
8318
8319if test "$GCC" = yes; then
3725885a
RW
8320 case $cc_basename in
8321 nvcc*)
8322 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8323 *)
8324 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8325 esac
ce2cded5 8326
81ecdfbb
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8328$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8329if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8330 $as_echo_n "(cached) " >&6
ce2cded5
L
8331else
8332 lt_cv_prog_compiler_rtti_exceptions=no
8333 ac_outfile=conftest.$ac_objext
8334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335 lt_compiler_flag="-fno-rtti -fno-exceptions"
8336 # Insert the option either (1) after the last *FLAGS variable, or
8337 # (2) before a word containing "conftest.", or (3) at the end.
8338 # Note that $ac_compile itself does not contain backslashes and begins
8339 # with a dollar sign (not a hyphen), so the echo should work correctly.
8340 # The option is referenced via a variable to avoid confusing sed.
8341 lt_compile=`echo "$ac_compile" | $SED \
8342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344 -e 's:$: $lt_compiler_flag:'`
3725885a 8345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8346 (eval "$lt_compile" 2>conftest.err)
8347 ac_status=$?
8348 cat conftest.err >&5
3725885a 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8350 if (exit $ac_status) && test -s "$ac_outfile"; then
8351 # The compiler can only warn and ignore the option if not recognized
8352 # So say no if there are warnings other than the usual output.
3725885a 8353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8356 lt_cv_prog_compiler_rtti_exceptions=yes
8357 fi
8358 fi
8359 $RM conftest*
8360
8361fi
81ecdfbb
RW
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8363$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8364
8365if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8366 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8367else
8368 :
8369fi
8370
8371fi
8372
8373
8374
8375
8376
8377
8378 lt_prog_compiler_wl=
8379lt_prog_compiler_pic=
8380lt_prog_compiler_static=
8381
f2c621e4
AS
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8383$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8384
8385 if test "$GCC" = yes; then
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_static='-static'
8388
8389 case $host_os in
8390 aix*)
8391 # All AIX code is PIC.
8392 if test "$host_cpu" = ia64; then
8393 # AIX 5 now supports IA64 processor
8394 lt_prog_compiler_static='-Bstatic'
8395 fi
6c9c0a50 8396 lt_prog_compiler_pic='-fPIC'
ce2cded5 8397 ;;
d7040cdb
SE
8398
8399 amigaos*)
718a6fd8
SE
8400 case $host_cpu in
8401 powerpc)
8402 # see comment about AmigaOS4 .so support
8403 lt_prog_compiler_pic='-fPIC'
8404 ;;
8405 m68k)
8406 # FIXME: we need at least 68020 code to build shared libraries, but
8407 # adding the `-m68020' flag to GCC prevents building anything better,
8408 # like `-m68040'.
8409 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8410 ;;
8411 esac
d7040cdb
SE
8412 ;;
8413
ce2cded5
L
8414 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8415 # PIC is the default for these OSes.
d7040cdb
SE
8416 ;;
8417
718a6fd8 8418 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8419 # This hack is so that the source file can tell whether it is being
8420 # built for inclusion in a dll (and should export symbols for example).
8421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8422 # (--disable-auto-import) libraries
8423 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8424 ;;
8425
8426 darwin* | rhapsody*)
ce2cded5
L
8427 # PIC is the default on this platform
8428 # Common symbols not allowed in MH_DYLIB files
8429 lt_prog_compiler_pic='-fno-common'
8430 ;;
8431
3725885a
RW
8432 haiku*)
8433 # PIC is the default for Haiku.
8434 # The "-static" flag exists, but is broken.
8435 lt_prog_compiler_static=
8436 ;;
8437
ce2cded5 8438 hpux*)
718a6fd8
SE
8439 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8440 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8441 # sets the default TLS model and affects inlining.
ce2cded5 8442 case $host_cpu in
718a6fd8 8443 hppa*64*)
ce2cded5 8444 # +Z the default
d7040cdb 8445 ;;
ce2cded5
L
8446 *)
8447 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8448 ;;
8449 esac
ce2cded5 8450 ;;
d7040cdb 8451
ce2cded5
L
8452 interix[3-9]*)
8453 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8454 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8455 ;;
8456
ce2cded5
L
8457 msdosdjgpp*)
8458 # Just because we use GCC doesn't mean we suddenly get shared libraries
8459 # on systems that don't support them.
8460 lt_prog_compiler_can_build_shared=no
8461 enable_shared=no
d7040cdb
SE
8462 ;;
8463
ce2cded5
L
8464 *nto* | *qnx*)
8465 # QNX uses GNU C++, but need to define -shared option too, otherwise
8466 # it will coredump.
8467 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8468 ;;
8469
ce2cded5
L
8470 sysv4*MP*)
8471 if test -d /usr/nec; then
8472 lt_prog_compiler_pic=-Kconform_pic
8473 fi
d7040cdb
SE
8474 ;;
8475
ce2cded5
L
8476 *)
8477 lt_prog_compiler_pic='-fPIC'
d7040cdb 8478 ;;
ce2cded5 8479 esac
3725885a
RW
8480
8481 case $cc_basename in
8482 nvcc*) # Cuda Compiler Driver 2.2
8483 lt_prog_compiler_wl='-Xlinker '
8484 lt_prog_compiler_pic='-Xcompiler -fPIC'
8485 ;;
8486 esac
ce2cded5
L
8487 else
8488 # PORTME Check for flag to pass linker flags through the system compiler.
8489 case $host_os in
8490 aix*)
8491 lt_prog_compiler_wl='-Wl,'
8492 if test "$host_cpu" = ia64; then
8493 # AIX 5 now supports IA64 processor
8494 lt_prog_compiler_static='-Bstatic'
d7040cdb 8495 else
ce2cded5 8496 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8497 fi
ce2cded5 8498 ;;
d7040cdb 8499
718a6fd8 8500 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8501 # This hack is so that the source file can tell whether it is being
8502 # built for inclusion in a dll (and should export symbols for example).
8503 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8504 ;;
8505
ce2cded5
L
8506 hpux9* | hpux10* | hpux11*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509 # not for PA HP-UX.
8510 case $host_cpu in
8511 hppa*64*|ia64*)
8512 # +Z the default
8513 ;;
8514 *)
8515 lt_prog_compiler_pic='+Z'
8516 ;;
8517 esac
8518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8520 ;;
8521
ce2cded5
L
8522 irix5* | irix6* | nonstopux*)
8523 lt_prog_compiler_wl='-Wl,'
8524 # PIC (with -KPIC) is the default.
8525 lt_prog_compiler_static='-non_shared'
8526 ;;
d7040cdb 8527
58e24671 8528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8529 case $cc_basename in
718a6fd8
SE
8530 # old Intel for x86_64 which still supported -KPIC.
8531 ecc*)
ce2cded5
L
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-static'
8535 ;;
718a6fd8
SE
8536 # icc used to be incompatible with GCC.
8537 # ICC 10 doesn't accept -KPIC any more.
8538 icc* | ifort*)
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fPIC'
8541 lt_prog_compiler_static='-static'
8542 ;;
8543 # Lahey Fortran 8.1.
8544 lf95*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='--shared'
8547 lt_prog_compiler_static='--static'
8548 ;;
3725885a 8549 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8550 # Portland Group compilers (*not* the Pentium gcc compiler,
8551 # which looks to be a dead project)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8555 ;;
8556 ccc*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # All Alpha code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8560 ;;
3725885a
RW
8561 xl* | bgxl* | bgf* | mpixl*)
8562 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-qpic'
8565 lt_prog_compiler_static='-qstaticlink'
8566 ;;
ce2cded5
L
8567 *)
8568 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8569 *Sun\ F* | *Sun*Fortran*)
8570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
3725885a 8573 lt_prog_compiler_wl=''
d7040cdb 8574 ;;
3725885a
RW
8575 *Sun\ C*)
8576 # Sun C 5.9
ce2cded5
L
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
3725885a 8579 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8580 ;;
8581 esac
ce2cded5
L
8582 ;;
8583 esac
d7040cdb
SE
8584 ;;
8585
ce2cded5
L
8586 newsos6)
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8589 ;;
8590
ce2cded5
L
8591 *nto* | *qnx*)
8592 # QNX uses GNU C++, but need to define -shared option too, otherwise
8593 # it will coredump.
8594 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8595 ;;
8596
ce2cded5
L
8597 osf3* | osf4* | osf5*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # All OSF/1 code is PIC.
8600 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8601 ;;
8602
ce2cded5
L
8603 rdos*)
8604 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8605 ;;
8606
8607 solaris*)
ce2cded5
L
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 case $cc_basename in
f2c621e4 8611 f77* | f90* | f95*)
ce2cded5 8612 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8613 *)
ce2cded5 8614 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8615 esac
d7040cdb
SE
8616 ;;
8617
8618 sunos4*)
ce2cded5
L
8619 lt_prog_compiler_wl='-Qoption ld '
8620 lt_prog_compiler_pic='-PIC'
8621 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8622 ;;
8623
ce2cded5
L
8624 sysv4 | sysv4.2uw2* | sysv4.3*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8628 ;;
8629
8630 sysv4*MP*)
ce2cded5
L
8631 if test -d /usr/nec ;then
8632 lt_prog_compiler_pic='-Kconform_pic'
8633 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8634 fi
8635 ;;
8636
ce2cded5
L
8637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8641 ;;
8642
ce2cded5
L
8643 unicos*)
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8646 ;;
8647
8648 uts4*)
ce2cded5
L
8649 lt_prog_compiler_pic='-pic'
8650 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8651 ;;
8652
8653 *)
ce2cded5 8654 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8655 ;;
8656 esac
d7040cdb
SE
8657 fi
8658
ce2cded5
L
8659case $host_os in
8660 # For platforms which do not support PIC, -DPIC is meaningless:
8661 *djgpp*)
8662 lt_prog_compiler_pic=
8663 ;;
8664 *)
8665 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8666 ;;
8667esac
f2c621e4
AS
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8669$as_echo "$lt_prog_compiler_pic" >&6; }
8670
8671
8672
8673
d7040cdb
SE
8674
8675
8676#
ce2cded5 8677# Check to make sure the PIC flag actually works.
d7040cdb 8678#
ce2cded5 8679if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8681$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8682if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8683 $as_echo_n "(cached) " >&6
ce2cded5 8684else
718a6fd8 8685 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8686 ac_outfile=conftest.$ac_objext
8687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 # The option is referenced via a variable to avoid confusing sed.
8694 lt_compile=`echo "$ac_compile" | $SED \
8695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
3725885a 8698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8699 (eval "$lt_compile" 2>conftest.err)
8700 ac_status=$?
8701 cat conftest.err >&5
3725885a 8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8703 if (exit $ac_status) && test -s "$ac_outfile"; then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings other than the usual output.
3725885a 8706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8709 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8710 fi
8711 fi
8712 $RM conftest*
d7040cdb 8713
ce2cded5 8714fi
81ecdfbb
RW
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8716$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8717
718a6fd8 8718if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8719 case $lt_prog_compiler_pic in
8720 "" | " "*) ;;
8721 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8722 esac
8723else
8724 lt_prog_compiler_pic=
8725 lt_prog_compiler_can_build_shared=no
8726fi
d7040cdb 8727
ce2cded5 8728fi
d7040cdb
SE
8729
8730
8731
8732
8733
8734
ce2cded5
L
8735#
8736# Check to make sure the static flag actually works.
8737#
8738wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8740$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8741if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8742 $as_echo_n "(cached) " >&6
ce2cded5 8743else
718a6fd8 8744 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8745 save_LDFLAGS="$LDFLAGS"
8746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749 # The linker can only warn and ignore the option if not recognized
8750 # So say no if there are warnings
8751 if test -s conftest.err; then
8752 # Append any errors to the config.log.
8753 cat conftest.err 1>&5
3725885a 8754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8757 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8758 fi
8759 else
718a6fd8 8760 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8761 fi
8762 fi
718a6fd8 8763 $RM -r conftest*
ce2cded5 8764 LDFLAGS="$save_LDFLAGS"
d7040cdb 8765
ce2cded5 8766fi
81ecdfbb
RW
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8769
718a6fd8 8770if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8771 :
8772else
8773 lt_prog_compiler_static=
8774fi
d7040cdb
SE
8775
8776
8777
8778
8779
8780
8781
81ecdfbb
RW
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8784if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8785 $as_echo_n "(cached) " >&6
ce2cded5
L
8786else
8787 lt_cv_prog_compiler_c_o=no
8788 $RM -r conftest 2>/dev/null
8789 mkdir conftest
8790 cd conftest
8791 mkdir out
8792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8793
ce2cded5
L
8794 lt_compiler_flag="-o out/conftest2.$ac_objext"
8795 # Insert the option either (1) after the last *FLAGS variable, or
8796 # (2) before a word containing "conftest.", or (3) at the end.
8797 # Note that $ac_compile itself does not contain backslashes and begins
8798 # with a dollar sign (not a hyphen), so the echo should work correctly.
8799 lt_compile=`echo "$ac_compile" | $SED \
8800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802 -e 's:$: $lt_compiler_flag:'`
3725885a 8803 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8804 (eval "$lt_compile" 2>out/conftest.err)
8805 ac_status=$?
8806 cat out/conftest.err >&5
3725885a 8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8809 then
8810 # The compiler can only warn and ignore the option if not recognized
8811 # So say no if there are warnings
3725885a 8812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_c_o=yes
8816 fi
8817 fi
8818 chmod u+w . 2>&5
8819 $RM conftest*
8820 # SGI C++ compiler will create directory out/ii_files/ for
8821 # template instantiation
8822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823 $RM out/* && rmdir out
8824 cd ..
8825 $RM -r conftest
8826 $RM conftest*
d7040cdb 8827
ce2cded5 8828fi
81ecdfbb
RW
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8831
8832
8833
8834
8835
8836
81ecdfbb
RW
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8839if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8840 $as_echo_n "(cached) " >&6
ce2cded5
L
8841else
8842 lt_cv_prog_compiler_c_o=no
8843 $RM -r conftest 2>/dev/null
8844 mkdir conftest
8845 cd conftest
8846 mkdir out
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8848
ce2cded5
L
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
3725885a 8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8859 (eval "$lt_compile" 2>out/conftest.err)
8860 ac_status=$?
8861 cat out/conftest.err >&5
3725885a 8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864 then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
3725885a 8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8871 fi
8872 fi
8873 chmod u+w . 2>&5
8874 $RM conftest*
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878 $RM out/* && rmdir out
8879 cd ..
8880 $RM -r conftest
8881 $RM conftest*
d7040cdb 8882
ce2cded5 8883fi
81ecdfbb
RW
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8886
8887
8888
8889
ce2cded5
L
8890hard_links="nottested"
8891if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8894$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8895 hard_links=yes
8896 $RM conftest*
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898 touch conftest.a
8899 ln conftest.a conftest.b 2>&5 || hard_links=no
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8902$as_echo "$hard_links" >&6; }
ce2cded5 8903 if test "$hard_links" = no; then
81ecdfbb
RW
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8906 need_locks=warn
8907 fi
8908else
8909 need_locks=no
8910fi
d7040cdb
SE
8911
8912
8913
8914
8915
8916
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8919
ce2cded5
L
8920 runpath_var=
8921 allow_undefined_flag=
8922 always_export_symbols=no
8923 archive_cmds=
8924 archive_expsym_cmds=
8925 compiler_needs_object=no
8926 enable_shared_with_static_runtimes=no
8927 export_dynamic_flag_spec=
8928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8929 hardcode_automatic=no
8930 hardcode_direct=no
8931 hardcode_direct_absolute=no
8932 hardcode_libdir_flag_spec=
8933 hardcode_libdir_flag_spec_ld=
8934 hardcode_libdir_separator=
8935 hardcode_minus_L=no
8936 hardcode_shlibpath_var=unsupported
8937 inherit_rpath=no
8938 link_all_deplibs=unknown
8939 module_cmds=
8940 module_expsym_cmds=
8941 old_archive_from_new_cmds=
8942 old_archive_from_expsyms_cmds=
8943 thread_safe_flag_spec=
8944 whole_archive_flag_spec=
8945 # include_expsyms should be a list of space-separated symbols to be *always*
8946 # included in the symbol list
8947 include_expsyms=
8948 # exclude_expsyms can be an extended regexp of symbols to exclude
8949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8951 # as well as any symbol that contains `d'.
718a6fd8 8952 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954 # platforms (ab)use it in PIC code, but their linkers get confused if
8955 # the symbol is explicitly referenced. Since portable code cannot
8956 # rely on this symbol name, it's probably fine to never include it in
8957 # preloaded symbol tables.
718a6fd8 8958 # Exclude shared library initialization/finalization symbols.
ce2cded5 8959 extract_expsyms_cmds=
d7040cdb 8960
ce2cded5 8961 case $host_os in
718a6fd8 8962 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 if test "$GCC" != yes; then
8967 with_gnu_ld=no
8968 fi
8969 ;;
8970 interix*)
8971 # we just hope/assume this is gcc and not c89 (= MSVC++)
8972 with_gnu_ld=yes
8973 ;;
8974 openbsd*)
8975 with_gnu_ld=no
8976 ;;
8977 esac
d7040cdb 8978
ce2cded5 8979 ld_shlibs=yes
3725885a
RW
8980
8981 # On some targets, GNU ld is compatible enough with the native linker
8982 # that we're better off using the native interface for both.
8983 lt_use_gnu_ld_interface=no
ce2cded5 8984 if test "$with_gnu_ld" = yes; then
3725885a
RW
8985 case $host_os in
8986 aix*)
8987 # The AIX port of GNU ld has always aspired to compatibility
8988 # with the native linker. However, as the warning in the GNU ld
8989 # block says, versions before 2.19.5* couldn't really create working
8990 # shared libraries, regardless of the interface used.
8991 case `$LD -v 2>&1` in
8992 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8993 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8994 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8995 *)
8996 lt_use_gnu_ld_interface=yes
8997 ;;
8998 esac
8999 ;;
9000 *)
9001 lt_use_gnu_ld_interface=yes
9002 ;;
9003 esac
9004 fi
9005
9006 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9007 # If archive_cmds runs LD, not CC, wlarc should be empty
9008 wlarc='${wl}'
d7040cdb 9009
ce2cded5
L
9010 # Set some defaults for GNU ld with shared library support. These
9011 # are reset later if shared libraries are not supported. Putting them
9012 # here allows them to be overridden if necessary.
9013 runpath_var=LD_RUN_PATH
9014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9015 export_dynamic_flag_spec='${wl}--export-dynamic'
9016 # ancient GNU ld didn't support --whole-archive et. al.
9017 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9018 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9019 else
9020 whole_archive_flag_spec=
9021 fi
9022 supports_anon_versioning=no
9023 case `$LD -v 2>&1` in
3725885a 9024 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9025 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9026 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9027 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9028 *\ 2.11.*) ;; # other 2.11 versions
9029 *) supports_anon_versioning=yes ;;
9030 esac
d7040cdb 9031
ce2cded5
L
9032 # See if GNU ld supports shared libraries.
9033 case $host_os in
50e7d84b 9034 aix[3-9]*)
ce2cded5
L
9035 # On AIX/PPC, the GNU linker is very broken
9036 if test "$host_cpu" != ia64; then
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
d7040cdb 9039
3725885a 9040*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9041*** to be unable to reliably create shared libraries on AIX.
9042*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9043*** really care for shared libraries, you may want to install binutils
9044*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9045*** You will then need to restart the configuration process.
d7040cdb 9046
ce2cded5
L
9047_LT_EOF
9048 fi
9049 ;;
d7040cdb 9050
ce2cded5 9051 amigaos*)
718a6fd8
SE
9052 case $host_cpu in
9053 powerpc)
9054 # see comment about AmigaOS4 .so support
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds=''
9057 ;;
9058 m68k)
9059 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)'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_minus_L=yes
9062 ;;
9063 esac
ce2cded5 9064 ;;
d7040cdb 9065
ce2cded5
L
9066 beos*)
9067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9068 allow_undefined_flag=unsupported
9069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9070 # support --undefined. This deserves some investigation. FIXME
9071 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9072 else
9073 ld_shlibs=no
9074 fi
9075 ;;
d7040cdb 9076
718a6fd8 9077 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9078 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9079 # as there is no search path for DLLs.
9080 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9081 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9082 allow_undefined_flag=unsupported
9083 always_export_symbols=no
9084 enable_shared_with_static_runtimes=yes
f2c621e4 9085 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 9086
ce2cded5
L
9087 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9088 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9089 # If the export-symbols file already is a .def file (1st line
9090 # is EXPORTS), use it as is; otherwise, prepend...
9091 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9092 cp $export_symbols $output_objdir/$soname.def;
9093 else
9094 echo EXPORTS > $output_objdir/$soname.def;
9095 cat $export_symbols >> $output_objdir/$soname.def;
9096 fi~
9097 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9098 else
9099 ld_shlibs=no
9100 fi
9101 ;;
d7040cdb 9102
3725885a
RW
9103 haiku*)
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105 link_all_deplibs=yes
9106 ;;
9107
ce2cded5
L
9108 interix[3-9]*)
9109 hardcode_direct=no
9110 hardcode_shlibpath_var=no
9111 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9112 export_dynamic_flag_spec='${wl}-E'
9113 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9114 # Instead, shared libraries are loaded at an image base (0x10000000 by
9115 # default) and relocated if they conflict, which is a slow very memory
9116 # consuming and fragmenting process. To avoid this, we pick a random,
9117 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9118 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9120 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'
9121 ;;
d7040cdb 9122
58e24671 9123 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9124 tmp_diet=no
9125 if test "$host_os" = linux-dietlibc; then
9126 case $cc_basename in
9127 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9128 esac
9129 fi
9130 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9131 && test "$tmp_diet" = no
9132 then
6e733cce 9133 tmp_addflag=' $pic_flag'
718a6fd8 9134 tmp_sharedflag='-shared'
ce2cded5
L
9135 case $cc_basename,$host_cpu in
9136 pgcc*) # Portland Group C compiler
3725885a 9137 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'
ce2cded5
L
9138 tmp_addflag=' $pic_flag'
9139 ;;
3725885a
RW
9140 pgf77* | pgf90* | pgf95* | pgfortran*)
9141 # Portland Group f77 and f90 compilers
9142 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'
ce2cded5
L
9143 tmp_addflag=' $pic_flag -Mnomain' ;;
9144 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9145 tmp_addflag=' -i_dynamic' ;;
9146 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9147 tmp_addflag=' -i_dynamic -nofor_main' ;;
9148 ifc* | ifort*) # Intel Fortran compiler
9149 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9150 lf95*) # Lahey Fortran 8.1
9151 whole_archive_flag_spec=
9152 tmp_sharedflag='--shared' ;;
3725885a 9153 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9154 tmp_sharedflag='-qmkshrobj'
9155 tmp_addflag= ;;
3725885a
RW
9156 nvcc*) # Cuda Compiler Driver 2.2
9157 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'
9158 compiler_needs_object=yes
9159 ;;
ce2cded5
L
9160 esac
9161 case `$CC -V 2>&1 | sed 5q` in
9162 *Sun\ C*) # Sun C 5.9
3725885a 9163 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'
ce2cded5
L
9164 compiler_needs_object=yes
9165 tmp_sharedflag='-G' ;;
9166 *Sun\ F*) # Sun Fortran 8.3
9167 tmp_sharedflag='-G' ;;
ce2cded5
L
9168 esac
9169 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9170
ce2cded5
L
9171 if test "x$supports_anon_versioning" = xyes; then
9172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9174 echo "local: *; };" >> $output_objdir/$libname.ver~
9175 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9176 fi
718a6fd8
SE
9177
9178 case $cc_basename in
3725885a 9179 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9180 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9181 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9182 hardcode_libdir_flag_spec=
9183 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 9184 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
9185 if test "x$supports_anon_versioning" = xyes; then
9186 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9188 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 9189 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
9190 fi
9191 ;;
9192 esac
ce2cded5
L
9193 else
9194 ld_shlibs=no
9195 fi
9196 ;;
d7040cdb 9197
ce2cded5
L
9198 netbsd*)
9199 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9200 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9201 wlarc=
9202 else
f2c621e4
AS
9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9205 fi
9206 ;;
d7040cdb 9207
ce2cded5
L
9208 solaris*)
9209 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9210 ld_shlibs=no
9211 cat <<_LT_EOF 1>&2
d7040cdb 9212
ce2cded5
L
9213*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9214*** create shared libraries on Solaris systems. Therefore, libtool
9215*** is disabling shared libraries support. We urge you to upgrade GNU
9216*** binutils to release 2.9.1 or newer. Another option is to modify
9217*** your PATH or compiler configuration so that the native linker is
9218*** used, and then restart.
d7040cdb 9219
ce2cded5
L
9220_LT_EOF
9221 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9224 else
9225 ld_shlibs=no
9226 fi
9227 ;;
d7040cdb 9228
ce2cded5
L
9229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9230 case `$LD -v 2>&1` in
9231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9232 ld_shlibs=no
9233 cat <<_LT_EOF 1>&2
d7040cdb 9234
ce2cded5
L
9235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9236*** reliably create shared libraries on SCO systems. Therefore, libtool
9237*** is disabling shared libraries support. We urge you to upgrade GNU
9238*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9239*** your PATH or compiler configuration so that the native linker is
9240*** used, and then restart.
d7040cdb 9241
ce2cded5
L
9242_LT_EOF
9243 ;;
9244 *)
9245 # For security reasons, it is highly recommended that you always
9246 # use absolute paths for naming shared libraries, and exclude the
9247 # DT_RUNPATH tag from executables and libraries. But doing so
9248 # requires that you compile everything twice, which is a pain.
9249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9253 else
9254 ld_shlibs=no
9255 fi
9256 ;;
9257 esac
9258 ;;
d7040cdb 9259
ce2cded5
L
9260 sunos4*)
9261 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9262 wlarc=
9263 hardcode_direct=yes
9264 hardcode_shlibpath_var=no
9265 ;;
d7040cdb 9266
ce2cded5
L
9267 *)
9268 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9271 else
9272 ld_shlibs=no
9273 fi
9274 ;;
9275 esac
d7040cdb 9276
ce2cded5
L
9277 if test "$ld_shlibs" = no; then
9278 runpath_var=
9279 hardcode_libdir_flag_spec=
9280 export_dynamic_flag_spec=
9281 whole_archive_flag_spec=
9282 fi
9283 else
9284 # PORTME fill in a description of your system's linker (not GNU ld)
9285 case $host_os in
9286 aix3*)
9287 allow_undefined_flag=unsupported
9288 always_export_symbols=yes
9289 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'
9290 # Note: this linker hardcodes the directories in LIBPATH if there
9291 # are no directories specified by -L.
9292 hardcode_minus_L=yes
9293 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9294 # Neither direct hardcoding nor static linking is supported with a
9295 # broken collect2.
9296 hardcode_direct=unsupported
9297 fi
9298 ;;
d7040cdb 9299
50e7d84b 9300 aix[4-9]*)
ce2cded5
L
9301 if test "$host_cpu" = ia64; then
9302 # On IA64, the linker does run time linking by default, so we don't
9303 # have to do anything special.
9304 aix_use_runtimelinking=no
9305 exp_sym_flag='-Bexport'
9306 no_entry_flag=""
9307 else
9308 # If we're using GNU nm, then we don't want the "-C" option.
9309 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9310 # Also, AIX nm treats weak defined symbols like other global
9311 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9312 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9313 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'
ce2cded5 9314 else
5c14705f 9315 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'
ce2cded5
L
9316 fi
9317 aix_use_runtimelinking=no
d7040cdb 9318
ce2cded5
L
9319 # Test if we are trying to use run time linking or normal
9320 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9321 # need to do runtime linking.
50e7d84b 9322 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9323 for ld_flag in $LDFLAGS; do
9324 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9325 aix_use_runtimelinking=yes
9326 break
9327 fi
9328 done
9329 ;;
9330 esac
d7040cdb 9331
ce2cded5
L
9332 exp_sym_flag='-bexport'
9333 no_entry_flag='-bnoentry'
9334 fi
d7040cdb 9335
ce2cded5
L
9336 # When large executables or shared objects are built, AIX ld can
9337 # have problems creating the table of contents. If linking a library
9338 # or program results in "error TOC overflow" add -mminimal-toc to
9339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9341
ce2cded5
L
9342 archive_cmds=''
9343 hardcode_direct=yes
9344 hardcode_direct_absolute=yes
9345 hardcode_libdir_separator=':'
9346 link_all_deplibs=yes
9347 file_list_spec='${wl}-f,'
d7040cdb 9348
ce2cded5
L
9349 if test "$GCC" = yes; then
9350 case $host_os in aix4.[012]|aix4.[012].*)
9351 # We only want to do this on AIX 4.2 and lower, the check
9352 # below for broken collect2 doesn't work under 4.3+
9353 collect2name=`${CC} -print-prog-name=collect2`
9354 if test -f "$collect2name" &&
9355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9356 then
9357 # We have reworked collect2
9358 :
9359 else
9360 # We have old collect2
9361 hardcode_direct=unsupported
9362 # It fails to find uninstalled libraries when the uninstalled
9363 # path is not listed in the libpath. Setting hardcode_minus_L
9364 # to unsupported forces relinking
9365 hardcode_minus_L=yes
9366 hardcode_libdir_flag_spec='-L$libdir'
9367 hardcode_libdir_separator=
9368 fi
9369 ;;
9370 esac
9371 shared_flag='-shared'
9372 if test "$aix_use_runtimelinking" = yes; then
9373 shared_flag="$shared_flag "'${wl}-G'
9374 fi
9375 else
9376 # not using gcc
9377 if test "$host_cpu" = ia64; then
9378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9379 # chokes on -Wl,-G. The following line is correct:
9380 shared_flag='-G'
9381 else
9382 if test "$aix_use_runtimelinking" = yes; then
9383 shared_flag='${wl}-G'
9384 else
9385 shared_flag='${wl}-bM:SRE'
9386 fi
9387 fi
9388 fi
d7040cdb 9389
718a6fd8 9390 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9391 # It seems that -bexpall does not export symbols beginning with
9392 # underscore (_), so it is better to generate a list of symbols to export.
9393 always_export_symbols=yes
9394 if test "$aix_use_runtimelinking" = yes; then
9395 # Warning - without using the other runtime loading flags (-brtl),
9396 # -berok will link without error, but may produce a broken library.
9397 allow_undefined_flag='-berok'
9398 # Determine the default libpath from the value encoded in an
9399 # empty executable.
f2c621e4 9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9401/* end confdefs.h. */
d7040cdb 9402
ce2cded5
L
9403int
9404main ()
9405{
d7040cdb 9406
ce2cded5
L
9407 ;
9408 return 0;
9409}
9410_ACEOF
81ecdfbb 9411if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9412
f2c621e4
AS
9413lt_aix_libpath_sed='
9414 /Import File Strings/,/^$/ {
9415 /^0/ {
9416 s/^0 *\(.*\)$/\1/
9417 p
9418 }
9419 }'
9420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421# Check for a 64-bit object if we didn't find anything.
9422if test -z "$aix_libpath"; then
9423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9424fi
ce2cded5 9425fi
81ecdfbb
RW
9426rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9429
ce2cded5 9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9431 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"
ce2cded5
L
9432 else
9433 if test "$host_cpu" = ia64; then
9434 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9435 allow_undefined_flag="-z nodefs"
9436 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"
9437 else
9438 # Determine the default libpath from the value encoded in an
9439 # empty executable.
f2c621e4 9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9441/* end confdefs.h. */
d7040cdb 9442
ce2cded5
L
9443int
9444main ()
9445{
d7040cdb 9446
ce2cded5
L
9447 ;
9448 return 0;
9449}
9450_ACEOF
81ecdfbb 9451if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9452
f2c621e4
AS
9453lt_aix_libpath_sed='
9454 /Import File Strings/,/^$/ {
9455 /^0/ {
9456 s/^0 *\(.*\)$/\1/
9457 p
9458 }
9459 }'
9460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461# Check for a 64-bit object if we didn't find anything.
9462if test -z "$aix_libpath"; then
9463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9464fi
ce2cded5 9465fi
81ecdfbb
RW
9466rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9468if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9469
ce2cded5
L
9470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9471 # Warning - without using the other run time loading flags,
9472 # -berok will link without error, but may produce a broken library.
9473 no_undefined_flag=' ${wl}-bernotok'
9474 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9475 if test "$with_gnu_ld" = yes; then
9476 # We only use this code for GNU lds that support --whole-archive.
9477 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9478 else
9479 # Exported symbols can be pulled into shared objects from archives
9480 whole_archive_flag_spec='$convenience'
9481 fi
ce2cded5
L
9482 archive_cmds_need_lc=yes
9483 # This is similar to how AIX traditionally builds its shared libraries.
9484 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'
9485 fi
9486 fi
9487 ;;
d7040cdb 9488
ce2cded5 9489 amigaos*)
718a6fd8
SE
9490 case $host_cpu in
9491 powerpc)
9492 # see comment about AmigaOS4 .so support
9493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494 archive_expsym_cmds=''
9495 ;;
9496 m68k)
9497 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)'
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_minus_L=yes
9500 ;;
9501 esac
ce2cded5 9502 ;;
d7040cdb 9503
ce2cded5
L
9504 bsdi[45]*)
9505 export_dynamic_flag_spec=-rdynamic
9506 ;;
d7040cdb 9507
718a6fd8 9508 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9509 # When not using gcc, we currently assume that we are using
9510 # Microsoft Visual C++.
9511 # hardcode_libdir_flag_spec is actually meaningless, as there is
9512 # no search path for DLLs.
f2c621e4
AS
9513 hardcode_libdir_flag_spec=' '
9514 allow_undefined_flag=unsupported
9515 # Tell ltmain to make .lib files, not .a files.
9516 libext=lib
9517 # Tell ltmain to make .dll files, not .so files.
9518 shrext_cmds=".dll"
9519 # FIXME: Setting linknames here is a bad hack.
9520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9521 # The linker will automatically build a .lib file if we build a DLL.
9522 old_archive_from_new_cmds='true'
9523 # FIXME: Should let the user specify the lib program.
9524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9525 fix_srcfile_path='`cygpath -w "$srcfile"`'
9526 enable_shared_with_static_runtimes=yes
ce2cded5 9527 ;;
d7040cdb 9528
ce2cded5 9529 darwin* | rhapsody*)
d7040cdb 9530
718a6fd8
SE
9531
9532 archive_cmds_need_lc=no
9533 hardcode_direct=no
9534 hardcode_automatic=yes
9535 hardcode_shlibpath_var=unsupported
3725885a
RW
9536 if test "$lt_cv_ld_force_load" = "yes"; then
9537 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\"`'
9538 else
9539 whole_archive_flag_spec=''
9540 fi
718a6fd8
SE
9541 link_all_deplibs=yes
9542 allow_undefined_flag="$_lt_dar_allow_undefined"
9543 case $cc_basename in
9544 ifort*) _lt_dar_can_shared=yes ;;
9545 *) _lt_dar_can_shared=$GCC ;;
9546 esac
9547 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9548 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9549 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9550 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9551 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}"
9552 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}"
9553
9554 else
9555 ld_shlibs=no
9556 fi
9557
ce2cded5 9558 ;;
d7040cdb 9559
ce2cded5
L
9560 dgux*)
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_libdir_flag_spec='-L$libdir'
9563 hardcode_shlibpath_var=no
9564 ;;
d7040cdb 9565
ce2cded5
L
9566 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9567 # support. Future versions do this automatically, but an explicit c++rt0.o
9568 # does not break anything, and helps significantly (at the cost of a little
9569 # extra space).
9570 freebsd2.2*)
9571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9572 hardcode_libdir_flag_spec='-R$libdir'
9573 hardcode_direct=yes
9574 hardcode_shlibpath_var=no
9575 ;;
d7040cdb 9576
ce2cded5 9577 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9578 freebsd2.*)
ce2cded5
L
9579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_direct=yes
9581 hardcode_minus_L=yes
9582 hardcode_shlibpath_var=no
9583 ;;
d7040cdb 9584
ce2cded5
L
9585 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9586 freebsd* | dragonfly*)
f2c621e4 9587 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9588 hardcode_libdir_flag_spec='-R$libdir'
9589 hardcode_direct=yes
9590 hardcode_shlibpath_var=no
9591 ;;
d7040cdb 9592
ce2cded5
L
9593 hpux9*)
9594 if test "$GCC" = yes; then
f2c621e4 9595 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'
ce2cded5
L
9596 else
9597 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'
9598 fi
9599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9600 hardcode_libdir_separator=:
9601 hardcode_direct=yes
d7040cdb 9602
ce2cded5
L
9603 # hardcode_minus_L: Not really in the search PATH,
9604 # but as the default location of the library.
9605 hardcode_minus_L=yes
9606 export_dynamic_flag_spec='${wl}-E'
9607 ;;
d7040cdb 9608
ce2cded5 9609 hpux10*)
3725885a 9610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9612 else
9613 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9614 fi
9615 if test "$with_gnu_ld" = no; then
9616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9617 hardcode_libdir_flag_spec_ld='+b $libdir'
9618 hardcode_libdir_separator=:
9619 hardcode_direct=yes
9620 hardcode_direct_absolute=yes
9621 export_dynamic_flag_spec='${wl}-E'
9622 # hardcode_minus_L: Not really in the search PATH,
9623 # but as the default location of the library.
9624 hardcode_minus_L=yes
9625 fi
9626 ;;
d7040cdb 9627
ce2cded5 9628 hpux11*)
3725885a 9629 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9630 case $host_cpu in
9631 hppa*64*)
9632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 ;;
9634 ia64*)
f2c621e4 9635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9636 ;;
9637 *)
f2c621e4 9638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9639 ;;
9640 esac
9641 else
9642 case $host_cpu in
9643 hppa*64*)
9644 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 ;;
9646 ia64*)
9647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9648 ;;
9649 *)
3725885a
RW
9650
9651 # Older versions of the 11.00 compiler do not understand -b yet
9652 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9654$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9655if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9656 $as_echo_n "(cached) " >&6
9657else
9658 lt_cv_prog_compiler__b=no
9659 save_LDFLAGS="$LDFLAGS"
9660 LDFLAGS="$LDFLAGS -b"
9661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9663 # The linker can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
9665 if test -s conftest.err; then
9666 # Append any errors to the config.log.
9667 cat conftest.err 1>&5
9668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9670 if diff conftest.exp conftest.er2 >/dev/null; then
9671 lt_cv_prog_compiler__b=yes
9672 fi
9673 else
9674 lt_cv_prog_compiler__b=yes
9675 fi
9676 fi
9677 $RM -r conftest*
9678 LDFLAGS="$save_LDFLAGS"
9679
9680fi
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9682$as_echo "$lt_cv_prog_compiler__b" >&6; }
9683
9684if test x"$lt_cv_prog_compiler__b" = xyes; then
9685 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9686else
9687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9688fi
9689
ce2cded5
L
9690 ;;
9691 esac
9692 fi
9693 if test "$with_gnu_ld" = no; then
9694 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9695 hardcode_libdir_separator=:
d7040cdb 9696
ce2cded5
L
9697 case $host_cpu in
9698 hppa*64*|ia64*)
9699 hardcode_direct=no
9700 hardcode_shlibpath_var=no
9701 ;;
9702 *)
9703 hardcode_direct=yes
9704 hardcode_direct_absolute=yes
9705 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9706
ce2cded5
L
9707 # hardcode_minus_L: Not really in the search PATH,
9708 # but as the default location of the library.
9709 hardcode_minus_L=yes
9710 ;;
9711 esac
9712 fi
9713 ;;
9714
9715 irix5* | irix6* | nonstopux*)
9716 if test "$GCC" = yes; then
f2c621e4 9717 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'
ce2cded5
L
9718 # Try to use the -exported_symbol ld option, if it does not
9719 # work, assume that -exports_file does not work either and
9720 # implicitly export all symbols.
f2c621e4
AS
9721 save_LDFLAGS="$LDFLAGS"
9722 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9724/* end confdefs.h. */
f2c621e4 9725int foo(void) {}
ce2cded5 9726_ACEOF
81ecdfbb 9727if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9728 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'
9729
d7040cdb 9730fi
81ecdfbb
RW
9731rm -f core conftest.err conftest.$ac_objext \
9732 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9733 LDFLAGS="$save_LDFLAGS"
ce2cded5 9734 else
3725885a
RW
9735 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'
9736 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'
ce2cded5
L
9737 fi
9738 archive_cmds_need_lc='no'
9739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9740 hardcode_libdir_separator=:
9741 inherit_rpath=yes
9742 link_all_deplibs=yes
9743 ;;
d7040cdb 9744
ce2cded5
L
9745 netbsd*)
9746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9747 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9748 else
9749 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9750 fi
9751 hardcode_libdir_flag_spec='-R$libdir'
9752 hardcode_direct=yes
9753 hardcode_shlibpath_var=no
9754 ;;
d7040cdb 9755
ce2cded5
L
9756 newsos6)
9757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9758 hardcode_direct=yes
9759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9760 hardcode_libdir_separator=:
9761 hardcode_shlibpath_var=no
9762 ;;
d7040cdb 9763
ce2cded5
L
9764 *nto* | *qnx*)
9765 ;;
d7040cdb 9766
ce2cded5 9767 openbsd*)
718a6fd8
SE
9768 if test -f /usr/libexec/ld.so; then
9769 hardcode_direct=yes
9770 hardcode_shlibpath_var=no
9771 hardcode_direct_absolute=yes
9772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9776 export_dynamic_flag_spec='${wl}-E'
9777 else
9778 case $host_os in
9779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_libdir_flag_spec='-R$libdir'
9782 ;;
9783 *)
9784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9786 ;;
9787 esac
9788 fi
9789 else
9790 ld_shlibs=no
d7040cdb
SE
9791 fi
9792 ;;
d7040cdb 9793
ce2cded5
L
9794 os2*)
9795 hardcode_libdir_flag_spec='-L$libdir'
9796 hardcode_minus_L=yes
9797 allow_undefined_flag=unsupported
3725885a 9798 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'
ce2cded5
L
9799 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9800 ;;
d7040cdb 9801
ce2cded5
L
9802 osf3*)
9803 if test "$GCC" = yes; then
9804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9805 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'
ce2cded5
L
9806 else
9807 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9808 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'
ce2cded5
L
9809 fi
9810 archive_cmds_need_lc='no'
9811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 ;;
d7040cdb 9814
ce2cded5
L
9815 osf4* | osf5*) # as osf3* with the addition of -msym flag
9816 if test "$GCC" = yes; then
9817 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9818 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'
ce2cded5
L
9819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9820 else
9821 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9822 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'
ce2cded5 9823 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 9824 $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 9825
ce2cded5
L
9826 # Both c and cxx compiler support -rpath directly
9827 hardcode_libdir_flag_spec='-rpath $libdir'
9828 fi
9829 archive_cmds_need_lc='no'
9830 hardcode_libdir_separator=:
9831 ;;
d7040cdb 9832
ce2cded5
L
9833 solaris*)
9834 no_undefined_flag=' -z defs'
9835 if test "$GCC" = yes; then
9836 wlarc='${wl}'
f2c621e4 9837 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9839 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ce2cded5
L
9840 else
9841 case `$CC -V 2>&1` in
9842 *"Compilers 5.0"*)
9843 wlarc=''
9844 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9846 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9847 ;;
9848 *)
9849 wlarc='${wl}'
9850 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9852 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9853 ;;
9854 esac
9855 fi
9856 hardcode_libdir_flag_spec='-R$libdir'
9857 hardcode_shlibpath_var=no
9858 case $host_os in
9859 solaris2.[0-5] | solaris2.[0-5].*) ;;
9860 *)
9861 # The compiler driver will combine and reorder linker options,
9862 # but understands `-z linker_flag'. GCC discards it without `$wl',
9863 # but is careful enough not to reorder.
9864 # Supported since Solaris 2.6 (maybe 2.5.1?)
9865 if test "$GCC" = yes; then
9866 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9867 else
9868 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9869 fi
9870 ;;
9871 esac
9872 link_all_deplibs=yes
d7040cdb 9873 ;;
ce2cded5
L
9874
9875 sunos4*)
9876 if test "x$host_vendor" = xsequent; then
9877 # Use $CC to link under sequent, because it throws in some extra .o
9878 # files that make .init and .fini sections work.
9879 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9880 else
ce2cded5 9881 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9882 fi
ce2cded5
L
9883 hardcode_libdir_flag_spec='-L$libdir'
9884 hardcode_direct=yes
9885 hardcode_minus_L=yes
9886 hardcode_shlibpath_var=no
d7040cdb 9887 ;;
ce2cded5
L
9888
9889 sysv4)
9890 case $host_vendor in
9891 sni)
9892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9893 hardcode_direct=yes # is this really true???
9894 ;;
9895 siemens)
9896 ## LD is ld it makes a PLAMLIB
9897 ## CC just makes a GrossModule.
9898 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9899 reload_cmds='$CC -r -o $output$reload_objs'
9900 hardcode_direct=no
9901 ;;
9902 motorola)
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9905 ;;
9906 esac
9907 runpath_var='LD_RUN_PATH'
9908 hardcode_shlibpath_var=no
d7040cdb 9909 ;;
d7040cdb 9910
ce2cded5
L
9911 sysv4.3*)
9912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913 hardcode_shlibpath_var=no
9914 export_dynamic_flag_spec='-Bexport'
9915 ;;
d7040cdb 9916
ce2cded5
L
9917 sysv4*MP*)
9918 if test -d /usr/nec; then
9919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_shlibpath_var=no
9921 runpath_var=LD_RUN_PATH
9922 hardcode_runpath_var=yes
9923 ld_shlibs=yes
9924 fi
9925 ;;
d7040cdb 9926
ce2cded5
L
9927 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9928 no_undefined_flag='${wl}-z,text'
9929 archive_cmds_need_lc=no
9930 hardcode_shlibpath_var=no
9931 runpath_var='LD_RUN_PATH'
d7040cdb 9932
ce2cded5
L
9933 if test "$GCC" = yes; then
9934 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9936 else
9937 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9939 fi
9940 ;;
d7040cdb 9941
ce2cded5
L
9942 sysv5* | sco3.2v5* | sco5v6*)
9943 # Note: We can NOT use -z defs as we might desire, because we do not
9944 # link with -lc, and that would cause any symbols used from libc to
9945 # always be unresolved, which means just about no library would
9946 # ever link correctly. If we're not using GNU ld we use -z text
9947 # though, which does catch some bad symbols but isn't as heavy-handed
9948 # as -z defs.
9949 no_undefined_flag='${wl}-z,text'
9950 allow_undefined_flag='${wl}-z,nodefs'
9951 archive_cmds_need_lc=no
9952 hardcode_shlibpath_var=no
9953 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9954 hardcode_libdir_separator=':'
9955 link_all_deplibs=yes
9956 export_dynamic_flag_spec='${wl}-Bexport'
9957 runpath_var='LD_RUN_PATH'
d7040cdb 9958
ce2cded5
L
9959 if test "$GCC" = yes; then
9960 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 else
9963 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 fi
d7040cdb 9966 ;;
d7040cdb 9967
ce2cded5
L
9968 uts4*)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_shlibpath_var=no
9972 ;;
d7040cdb 9973
ce2cded5
L
9974 *)
9975 ld_shlibs=no
9976 ;;
9977 esac
9978
9979 if test x$host_vendor = xsni; then
9980 case $host in
9981 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9982 export_dynamic_flag_spec='${wl}-Blargedynsym'
9983 ;;
9984 esac
d7040cdb 9985 fi
ce2cded5 9986 fi
d7040cdb 9987
81ecdfbb
RW
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9989$as_echo "$ld_shlibs" >&6; }
ce2cded5 9990test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9991
ce2cded5 9992with_gnu_ld=$with_gnu_ld
d7040cdb 9993
d7040cdb 9994
d7040cdb 9995
d7040cdb 9996
d7040cdb 9997
d7040cdb 9998
d7040cdb 9999
d7040cdb 10000
d7040cdb 10001
d7040cdb 10002
d7040cdb 10003
d7040cdb 10004
d7040cdb 10005
d7040cdb 10006
d7040cdb 10007
ce2cded5
L
10008#
10009# Do we need to explicitly link libc?
10010#
10011case "x$archive_cmds_need_lc" in
10012x|xyes)
10013 # Assume -lc should be added
10014 archive_cmds_need_lc=yes
d7040cdb 10015
ce2cded5
L
10016 if test "$enable_shared" = yes && test "$GCC" = yes; then
10017 case $archive_cmds in
10018 *'~'*)
10019 # FIXME: we may have to deal with multi-command sequences.
10020 ;;
10021 '$CC '*)
10022 # Test whether the compiler implicitly links with -lc since on some
10023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10024 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10026$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10027if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10028 $as_echo_n "(cached) " >&6
39144654
RW
10029else
10030 $RM conftest*
10031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10032
81ecdfbb 10033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10034 (eval $ac_compile) 2>&5
10035 ac_status=$?
81ecdfbb
RW
10036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10038 soname=conftest
10039 lib=conftest
10040 libobjs=conftest.$ac_objext
10041 deplibs=
10042 wl=$lt_prog_compiler_wl
10043 pic_flag=$lt_prog_compiler_pic
10044 compiler_flags=-v
10045 linker_flags=-v
10046 verstring=
10047 output_objdir=.
10048 libname=conftest
10049 lt_save_allow_undefined_flag=$allow_undefined_flag
10050 allow_undefined_flag=
81ecdfbb 10051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10052 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10053 ac_status=$?
81ecdfbb
RW
10054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10055 test $ac_status = 0; }
39144654
RW
10056 then
10057 lt_cv_archive_cmds_need_lc=no
10058 else
10059 lt_cv_archive_cmds_need_lc=yes
10060 fi
10061 allow_undefined_flag=$lt_save_allow_undefined_flag
10062 else
10063 cat conftest.err 1>&5
10064 fi
10065 $RM conftest*
10066
10067fi
81ecdfbb
RW
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10069$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10070 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10071 ;;
10072 esac
d7040cdb 10073 fi
d7040cdb 10074 ;;
ce2cded5 10075esac
d7040cdb 10076
d7040cdb 10077
d7040cdb 10078
d7040cdb 10079
d7040cdb 10080
d7040cdb 10081
d7040cdb 10082
d7040cdb
SE
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
d7040cdb 10170
d7040cdb 10171
d7040cdb
SE
10172
10173
10174
10175
10176
10177
d7040cdb 10178
d7040cdb 10179
d7040cdb 10180
d7040cdb 10181
d7040cdb 10182
d7040cdb 10183
d7040cdb 10184
d7040cdb 10185
d7040cdb 10186
d7040cdb 10187
d7040cdb 10188
d7040cdb 10189
d7040cdb 10190
d7040cdb 10191
d7040cdb 10192
d7040cdb 10193
d7040cdb 10194
d7040cdb 10195
d7040cdb 10196
d7040cdb 10197
d7040cdb 10198
d7040cdb 10199
d7040cdb 10200
ce2cded5
L
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
81ecdfbb
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10234$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10235
10236if test "$GCC" = yes; then
ce2cded5
L
10237 case $host_os in
10238 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10239 *) lt_awk_arg="/^libraries:/" ;;
10240 esac
3725885a
RW
10241 case $host_os in
10242 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10243 *) lt_sed_strip_eq="s,=/,/,g" ;;
10244 esac
10245 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10246 case $lt_search_path_spec in
10247 *\;*)
ce2cded5
L
10248 # if the path contains ";" then we assume it to be the separator
10249 # otherwise default to the standard path separator (i.e. ":") - it is
10250 # assumed that no part of a normal pathname contains ";" but that should
10251 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10253 ;;
10254 *)
10255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10256 ;;
10257 esac
ce2cded5
L
10258 # Ok, now we have the path, separated by spaces, we can step through it
10259 # and add multilib dir if necessary.
10260 lt_tmp_lt_search_path_spec=
10261 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10262 for lt_sys_path in $lt_search_path_spec; do
10263 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10265 else
10266 test -d "$lt_sys_path" && \
10267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10268 fi
10269 done
3725885a 10270 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10271BEGIN {RS=" "; FS="/|\n";} {
10272 lt_foo="";
10273 lt_count=0;
10274 for (lt_i = NF; lt_i > 0; lt_i--) {
10275 if ($lt_i != "" && $lt_i != ".") {
10276 if ($lt_i == "..") {
10277 lt_count++;
10278 } else {
10279 if (lt_count == 0) {
10280 lt_foo="/" $lt_i lt_foo;
10281 } else {
10282 lt_count--;
10283 }
10284 }
10285 }
10286 }
10287 if (lt_foo != "") { lt_freq[lt_foo]++; }
10288 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10289}'`
3725885a
RW
10290 # AWK program above erroneously prepends '/' to C:/dos/paths
10291 # for these hosts.
10292 case $host_os in
10293 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10294 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10295 esac
10296 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10297else
ce2cded5
L
10298 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10299fi
10300library_names_spec=
10301libname_spec='lib$name'
10302soname_spec=
10303shrext_cmds=".so"
10304postinstall_cmds=
10305postuninstall_cmds=
10306finish_cmds=
10307finish_eval=
10308shlibpath_var=
10309shlibpath_overrides_runpath=unknown
10310version_type=none
10311dynamic_linker="$host_os ld.so"
10312sys_lib_dlsearch_path_spec="/lib /usr/lib"
10313need_lib_prefix=unknown
10314hardcode_into_libs=no
10315
10316# when you set need_version to no, make sure it does not cause -set_version
10317# flags to be left without arguments
10318need_version=unknown
10319
10320case $host_os in
10321aix3*)
10322 version_type=linux
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10324 shlibpath_var=LIBPATH
10325
10326 # AIX 3 has no versioning support, so we append a major version to the name.
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 ;;
10329
50e7d84b 10330aix[4-9]*)
ce2cded5
L
10331 version_type=linux
10332 need_lib_prefix=no
10333 need_version=no
10334 hardcode_into_libs=yes
10335 if test "$host_cpu" = ia64; then
10336 # AIX 5 supports IA64
10337 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 else
10340 # With GCC up to 2.95.x, collect2 would create an import file
10341 # for dependence libraries. The import file would start with
10342 # the line `#! .'. This would cause the generated library to
10343 # depend on `.', always an invalid library. This was fixed in
10344 # development snapshots of GCC prior to 3.0.
10345 case $host_os in
10346 aix4 | aix4.[01] | aix4.[01].*)
10347 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10348 echo ' yes '
10349 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10350 :
10351 else
10352 can_build_shared=no
10353 fi
10354 ;;
10355 esac
10356 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10357 # soname into executable. Probably we can add versioning support to
10358 # collect2, so additional links can be useful in future.
10359 if test "$aix_use_runtimelinking" = yes; then
10360 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10361 # instead of lib<name>.a to let people know that these are not
10362 # typical AIX shared libraries.
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 else
10365 # We preserve .a as extension for shared libraries through AIX4.2
10366 # and later when we are not doing run time linking.
10367 library_names_spec='${libname}${release}.a $libname.a'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 fi
10370 shlibpath_var=LIBPATH
10371 fi
10372 ;;
10373
10374amigaos*)
718a6fd8
SE
10375 case $host_cpu in
10376 powerpc)
10377 # Since July 2007 AmigaOS4 officially supports .so libraries.
10378 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 ;;
10381 m68k)
ce2cded5
L
10382 library_names_spec='$libname.ixlibrary $libname.a'
10383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10384 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
718a6fd8
SE
10385 ;;
10386 esac
ce2cded5
L
10387 ;;
10388
10389beos*)
10390 library_names_spec='${libname}${shared_ext}'
10391 dynamic_linker="$host_os ld.so"
10392 shlibpath_var=LIBRARY_PATH
10393 ;;
10394
10395bsdi[45]*)
10396 version_type=linux
10397 need_version=no
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10403 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10404 # the default ld.so.conf also contains /usr/contrib/lib and
10405 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10406 # libtool to hard-code these into programs
10407 ;;
10408
718a6fd8 10409cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10410 version_type=windows
10411 shrext_cmds=".dll"
10412 need_version=no
10413 need_lib_prefix=no
10414
f2c621e4
AS
10415 case $GCC,$host_os in
10416 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10417 library_names_spec='$libname.dll.a'
10418 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10419 postinstall_cmds='base_file=`basename \${file}`~
10420 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10421 dldir=$destdir/`dirname \$dlpath`~
10422 test -d \$dldir || mkdir -p \$dldir~
10423 $install_prog $dir/$dlname \$dldir/$dlname~
10424 chmod a+x \$dldir/$dlname~
10425 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10426 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10427 fi'
10428 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10429 dlpath=$dir/\$dldll~
10430 $RM \$dlpath'
10431 shlibpath_overrides_runpath=yes
10432
10433 case $host_os in
10434 cygwin*)
10435 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10436 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10437
10438 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10439 ;;
718a6fd8 10440 mingw* | cegcc*)
ce2cded5
L
10441 # MinGW DLLs use traditional 'lib' prefix
10442 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10443 ;;
10444 pw32*)
10445 # pw32 DLLs use 'pw' prefix rather than 'lib'
10446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10447 ;;
10448 esac
10449 ;;
10450
10451 *)
10452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10453 ;;
10454 esac
f2c621e4 10455 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10456 # FIXME: first we should search . and the directory the executable is in
10457 shlibpath_var=PATH
10458 ;;
10459
10460darwin* | rhapsody*)
10461 dynamic_linker="$host_os dyld"
10462 version_type=darwin
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10466 soname_spec='${libname}${release}${major}$shared_ext'
10467 shlibpath_overrides_runpath=yes
10468 shlibpath_var=DYLD_LIBRARY_PATH
10469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10470
10471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10473 ;;
10474
10475dgux*)
10476 version_type=linux
10477 need_lib_prefix=no
10478 need_version=no
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 ;;
10483
ce2cded5
L
10484freebsd* | dragonfly*)
10485 # DragonFly does not have aout. When/if they implement a new
10486 # versioning mechanism, adjust this.
10487 if test -x /usr/bin/objformat; then
10488 objformat=`/usr/bin/objformat`
10489 else
10490 case $host_os in
6d2920c8 10491 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10492 *) objformat=elf ;;
10493 esac
10494 fi
10495 version_type=freebsd-$objformat
10496 case $version_type in
10497 freebsd-elf*)
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10499 need_version=no
10500 need_lib_prefix=no
10501 ;;
10502 freebsd-*)
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10504 need_version=yes
10505 ;;
10506 esac
10507 shlibpath_var=LD_LIBRARY_PATH
10508 case $host_os in
6d2920c8 10509 freebsd2.*)
ce2cded5
L
10510 shlibpath_overrides_runpath=yes
10511 ;;
10512 freebsd3.[01]* | freebsdelf3.[01]*)
10513 shlibpath_overrides_runpath=yes
10514 hardcode_into_libs=yes
10515 ;;
10516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10518 shlibpath_overrides_runpath=no
10519 hardcode_into_libs=yes
10520 ;;
10521 *) # from 4.6 on, and DragonFly
10522 shlibpath_overrides_runpath=yes
10523 hardcode_into_libs=yes
10524 ;;
10525 esac
10526 ;;
10527
10528gnu*)
10529 version_type=linux
10530 need_lib_prefix=no
10531 need_version=no
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 shlibpath_var=LD_LIBRARY_PATH
10535 hardcode_into_libs=yes
10536 ;;
10537
3725885a
RW
10538haiku*)
10539 version_type=linux
10540 need_lib_prefix=no
10541 need_version=no
10542 dynamic_linker="$host_os runtime_loader"
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LIBRARY_PATH
10546 shlibpath_overrides_runpath=yes
f2c621e4 10547 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10548 hardcode_into_libs=yes
10549 ;;
10550
ce2cded5
L
10551hpux9* | hpux10* | hpux11*)
10552 # Give a soname corresponding to the major version so that dld.sl refuses to
10553 # link against other versions.
10554 version_type=sunos
10555 need_lib_prefix=no
10556 need_version=no
10557 case $host_cpu in
10558 ia64*)
10559 shrext_cmds='.so'
10560 hardcode_into_libs=yes
10561 dynamic_linker="$host_os dld.so"
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 if test "X$HPUX_IA64_MODE" = X32; then
10567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10568 else
10569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10570 fi
10571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10572 ;;
10573 hppa*64*)
10574 shrext_cmds='.sl'
10575 hardcode_into_libs=yes
10576 dynamic_linker="$host_os dld.sl"
10577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10583 ;;
10584 *)
10585 shrext_cmds='.sl'
10586 dynamic_linker="$host_os dld.sl"
10587 shlibpath_var=SHLIB_PATH
10588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 ;;
10592 esac
3725885a 10593 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10594 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10595 # or fails outright, so override atomically:
10596 install_override_mode=555
ce2cded5
L
10597 ;;
10598
10599interix[3-9]*)
10600 version_type=linux
10601 need_lib_prefix=no
10602 need_version=no
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10606 shlibpath_var=LD_LIBRARY_PATH
10607 shlibpath_overrides_runpath=no
10608 hardcode_into_libs=yes
10609 ;;
10610
10611irix5* | irix6* | nonstopux*)
10612 case $host_os in
10613 nonstopux*) version_type=nonstopux ;;
10614 *)
10615 if test "$lt_cv_prog_gnu_ld" = yes; then
10616 version_type=linux
10617 else
10618 version_type=irix
10619 fi ;;
10620 esac
10621 need_lib_prefix=no
10622 need_version=no
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10625 case $host_os in
10626 irix5* | nonstopux*)
10627 libsuff= shlibsuff=
10628 ;;
10629 *)
10630 case $LD in # libtool.m4 will add one of these switches to LD
10631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10632 libsuff= shlibsuff= libmagic=32-bit;;
10633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10634 libsuff=32 shlibsuff=N32 libmagic=N32;;
10635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10637 *) libsuff= shlibsuff= libmagic=never-match;;
10638 esac
10639 ;;
10640 esac
10641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10642 shlibpath_overrides_runpath=no
10643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10645 hardcode_into_libs=yes
10646 ;;
d7040cdb 10647
ce2cded5
L
10648# No shared lib support for Linux oldld, aout, or coff.
10649linux*oldld* | linux*aout* | linux*coff*)
10650 dynamic_linker=no
10651 ;;
10652
10653# This must be Linux ELF.
58e24671 10654linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10655 version_type=linux
10656 need_lib_prefix=no
10657 need_version=no
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
39144654 10663
ce2cded5 10664 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10665 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10666 $as_echo_n "(cached) " >&6
39144654
RW
10667else
10668 lt_cv_shlibpath_overrides_runpath=no
10669 save_LDFLAGS=$LDFLAGS
10670 save_libdir=$libdir
10671 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10672 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10674/* end confdefs.h. */
10675
d7040cdb
SE
10676int
10677main ()
10678{
ce2cded5 10679
d7040cdb
SE
10680 ;
10681 return 0;
10682}
10683_ACEOF
81ecdfbb
RW
10684if ac_fn_c_try_link "$LINENO"; then :
10685 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10686 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10687fi
ce2cded5 10688fi
81ecdfbb
RW
10689rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10691 LDFLAGS=$save_LDFLAGS
10692 libdir=$save_libdir
10693
10694fi
10695
10696 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10697
10698 # This implies no fast_install, which is unacceptable.
10699 # Some rework will be needed to allow for fast_install
10700 # before this can be enabled.
10701 hardcode_into_libs=yes
10702
10703 # Append ld.so.conf contents to the search path
10704 if test -f /etc/ld.so.conf; then
3725885a 10705 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
f2c621e4 10706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10707 fi
10708
10709 # We used to test for /lib/ld.so.1 and disable shared libraries on
10710 # powerpc, because MkLinux only supported shared libraries with the
10711 # GNU dynamic linker. Since this was broken with cross compilers,
10712 # most powerpc-linux boxes support dynamic linking these days and
10713 # people can always --disable-shared, the test was removed, and we
10714 # assume the GNU/Linux dynamic linker is in use.
10715 dynamic_linker='GNU/Linux ld.so'
10716 ;;
10717
10718netbsd*)
10719 version_type=sunos
10720 need_lib_prefix=no
10721 need_version=no
10722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10725 dynamic_linker='NetBSD (a.out) ld.so'
10726 else
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 dynamic_linker='NetBSD ld.elf_so'
10730 fi
10731 shlibpath_var=LD_LIBRARY_PATH
10732 shlibpath_overrides_runpath=yes
10733 hardcode_into_libs=yes
10734 ;;
10735
10736newsos6)
10737 version_type=linux
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 shlibpath_overrides_runpath=yes
10741 ;;
10742
10743*nto* | *qnx*)
10744 version_type=qnx
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LD_LIBRARY_PATH
10750 shlibpath_overrides_runpath=no
10751 hardcode_into_libs=yes
10752 dynamic_linker='ldqnx.so'
10753 ;;
10754
10755openbsd*)
10756 version_type=sunos
10757 sys_lib_dlsearch_path_spec="/usr/lib"
10758 need_lib_prefix=no
10759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10760 case $host_os in
10761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10762 *) need_version=no ;;
10763 esac
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10768 case $host_os in
10769 openbsd2.[89] | openbsd2.[89].*)
10770 shlibpath_overrides_runpath=no
10771 ;;
10772 *)
10773 shlibpath_overrides_runpath=yes
10774 ;;
10775 esac
10776 else
10777 shlibpath_overrides_runpath=yes
10778 fi
10779 ;;
10780
10781os2*)
10782 libname_spec='$name'
10783 shrext_cmds=".dll"
10784 need_lib_prefix=no
10785 library_names_spec='$libname${shared_ext} $libname.a'
10786 dynamic_linker='OS/2 ld.exe'
10787 shlibpath_var=LIBPATH
10788 ;;
10789
10790osf3* | osf4* | osf5*)
10791 version_type=osf
10792 need_lib_prefix=no
10793 need_version=no
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 shlibpath_var=LD_LIBRARY_PATH
10797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10799 ;;
10800
10801rdos*)
10802 dynamic_linker=no
10803 ;;
10804
10805solaris*)
10806 version_type=linux
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10814 # ldd complains unless libraries are executable
10815 postinstall_cmds='chmod +x $lib'
10816 ;;
10817
10818sunos4*)
10819 version_type=sunos
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath=yes
10824 if test "$with_gnu_ld" = yes; then
10825 need_lib_prefix=no
10826 fi
10827 need_version=yes
10828 ;;
10829
10830sysv4 | sysv4.3*)
10831 version_type=linux
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 case $host_vendor in
10836 sni)
10837 shlibpath_overrides_runpath=no
10838 need_lib_prefix=no
10839 runpath_var=LD_RUN_PATH
10840 ;;
10841 siemens)
10842 need_lib_prefix=no
10843 ;;
10844 motorola)
10845 need_lib_prefix=no
10846 need_version=no
10847 shlibpath_overrides_runpath=no
10848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10849 ;;
10850 esac
10851 ;;
10852
10853sysv4*MP*)
10854 if test -d /usr/nec ;then
10855 version_type=linux
10856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10857 soname_spec='$libname${shared_ext}.$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 fi
10860 ;;
10861
10862sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10863 version_type=freebsd-elf
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 shlibpath_var=LD_LIBRARY_PATH
10869 shlibpath_overrides_runpath=yes
10870 hardcode_into_libs=yes
10871 if test "$with_gnu_ld" = yes; then
10872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10873 else
10874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10875 case $host_os in
10876 sco3.2v5*)
10877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10878 ;;
10879 esac
10880 fi
10881 sys_lib_dlsearch_path_spec='/usr/lib'
10882 ;;
10883
10884tpf*)
10885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10886 version_type=linux
10887 need_lib_prefix=no
10888 need_version=no
718a6fd8 10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=no
10892 hardcode_into_libs=yes
10893 ;;
d7040cdb 10894
ce2cded5
L
10895uts4*)
10896 version_type=linux
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 ;;
d7040cdb 10901
ce2cded5
L
10902*)
10903 dynamic_linker=no
10904 ;;
10905esac
81ecdfbb
RW
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10907$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10908test "$dynamic_linker" = no && can_build_shared=no
10909
10910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10911if test "$GCC" = yes; then
10912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10913fi
d7040cdb 10914
718a6fd8
SE
10915if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10916 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10917fi
10918if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10920fi
10921
d7040cdb 10922
d7040cdb
SE
10923
10924
d7040cdb
SE
10925
10926
d7040cdb
SE
10927
10928
d7040cdb
SE
10929
10930
d7040cdb
SE
10931
10932
d7040cdb 10933
d7040cdb 10934
d7040cdb 10935
d7040cdb 10936
d7040cdb 10937
d7040cdb 10938
d7040cdb 10939
d7040cdb 10940
d7040cdb 10941
d7040cdb 10942
d7040cdb 10943
d7040cdb 10944
d7040cdb 10945
d7040cdb 10946
d7040cdb
SE
10947
10948
d7040cdb 10949
d7040cdb 10950
d7040cdb 10951
d7040cdb 10952
d7040cdb 10953
d7040cdb 10954
d7040cdb 10955
d7040cdb 10956
d7040cdb 10957
d7040cdb
SE
10958
10959
d7040cdb 10960
d7040cdb 10961
d7040cdb 10962
d7040cdb
SE
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
d7040cdb
SE
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
d7040cdb 10992
d7040cdb 10993
d7040cdb 10994
d7040cdb 10995
d7040cdb
SE
10996
10997
10998
10999
ce2cded5
L
11000
11001
3725885a
RW
11002
11003
11004
11005
11006
ce2cded5
L
11007
11008
11009
11010
11011
11012
81ecdfbb
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11014$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11015hardcode_action=
11016if test -n "$hardcode_libdir_flag_spec" ||
11017 test -n "$runpath_var" ||
11018 test "X$hardcode_automatic" = "Xyes" ; then
11019
11020 # We can hardcode non-existent directories.
11021 if test "$hardcode_direct" != no &&
11022 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11023 # have to relink, otherwise we might link with an installed library
11024 # when we should be linking with a yet-to-be-installed one
11025 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11026 test "$hardcode_minus_L" != no; then
11027 # Linking always hardcodes the temporary library directory.
11028 hardcode_action=relink
11029 else
11030 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11031 hardcode_action=immediate
11032 fi
11033else
11034 # We cannot hardcode anything, or else we can only hardcode existing
11035 # directories.
11036 hardcode_action=unsupported
11037fi
81ecdfbb
RW
11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11039$as_echo "$hardcode_action" >&6; }
ce2cded5
L
11040
11041if test "$hardcode_action" = relink ||
11042 test "$inherit_rpath" = yes; then
11043 # Fast installation is not supported
11044 enable_fast_install=no
11045elif test "$shlibpath_overrides_runpath" = yes ||
11046 test "$enable_shared" = no; then
11047 # Fast installation is not necessary
11048 enable_fast_install=needless
d7040cdb 11049fi
d7040cdb 11050
d7040cdb
SE
11051
11052
11053
11054
11055
ce2cded5
L
11056 if test "x$enable_dlopen" != xyes; then
11057 enable_dlopen=unknown
11058 enable_dlopen_self=unknown
11059 enable_dlopen_self_static=unknown
11060else
11061 lt_cv_dlopen=no
11062 lt_cv_dlopen_libs=
11063
11064 case $host_os in
11065 beos*)
11066 lt_cv_dlopen="load_add_on"
11067 lt_cv_dlopen_libs=
11068 lt_cv_dlopen_self=yes
11069 ;;
d7040cdb 11070
718a6fd8 11071 mingw* | pw32* | cegcc*)
ce2cded5
L
11072 lt_cv_dlopen="LoadLibrary"
11073 lt_cv_dlopen_libs=
11074 ;;
d7040cdb 11075
ce2cded5
L
11076 cygwin*)
11077 lt_cv_dlopen="dlopen"
11078 lt_cv_dlopen_libs=
11079 ;;
d7040cdb 11080
ce2cded5
L
11081 darwin*)
11082 # if libdl is installed we need to link against it
81ecdfbb
RW
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11084$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11085if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11086 $as_echo_n "(cached) " >&6
ce2cded5
L
11087else
11088 ac_check_lib_save_LIBS=$LIBS
11089LIBS="-ldl $LIBS"
81ecdfbb 11090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11091/* end confdefs.h. */
d7040cdb 11092
81ecdfbb
RW
11093/* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
ce2cded5
L
11096#ifdef __cplusplus
11097extern "C"
11098#endif
ce2cded5
L
11099char dlopen ();
11100int
11101main ()
11102{
81ecdfbb 11103return dlopen ();
ce2cded5
L
11104 ;
11105 return 0;
11106}
11107_ACEOF
81ecdfbb 11108if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11109 ac_cv_lib_dl_dlopen=yes
11110else
81ecdfbb 11111 ac_cv_lib_dl_dlopen=no
ce2cded5 11112fi
81ecdfbb
RW
11113rm -f core conftest.err conftest.$ac_objext \
11114 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11115LIBS=$ac_check_lib_save_LIBS
11116fi
81ecdfbb
RW
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11118$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11119if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5
L
11120 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11121else
d7040cdb 11122
ce2cded5
L
11123 lt_cv_dlopen="dyld"
11124 lt_cv_dlopen_libs=
11125 lt_cv_dlopen_self=yes
d7040cdb 11126
ce2cded5 11127fi
d7040cdb 11128
ce2cded5 11129 ;;
d7040cdb 11130
ce2cded5 11131 *)
81ecdfbb 11132 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11133if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11134 lt_cv_dlopen="shl_load"
11135else
81ecdfbb
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11137$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11138if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11139 $as_echo_n "(cached) " >&6
ce2cded5
L
11140else
11141 ac_check_lib_save_LIBS=$LIBS
11142LIBS="-ldld $LIBS"
81ecdfbb 11143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11144/* end confdefs.h. */
d7040cdb 11145
81ecdfbb
RW
11146/* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
ce2cded5
L
11149#ifdef __cplusplus
11150extern "C"
11151#endif
ce2cded5
L
11152char shl_load ();
11153int
11154main ()
11155{
81ecdfbb 11156return shl_load ();
ce2cded5
L
11157 ;
11158 return 0;
11159}
d7040cdb 11160_ACEOF
81ecdfbb 11161if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11162 ac_cv_lib_dld_shl_load=yes
11163else
81ecdfbb 11164 ac_cv_lib_dld_shl_load=no
d7040cdb 11165fi
81ecdfbb
RW
11166rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11168LIBS=$ac_check_lib_save_LIBS
11169fi
81ecdfbb
RW
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11171$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11172if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 11173 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11174else
81ecdfbb 11175 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11176if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11177 lt_cv_dlopen="dlopen"
11178else
81ecdfbb
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11180$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11181if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11182 $as_echo_n "(cached) " >&6
d7040cdb 11183else
ce2cded5
L
11184 ac_check_lib_save_LIBS=$LIBS
11185LIBS="-ldl $LIBS"
81ecdfbb 11186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11187/* end confdefs.h. */
d7040cdb 11188
81ecdfbb
RW
11189/* Override any GCC internal prototype to avoid an error.
11190 Use char because int might match the return type of a GCC
11191 builtin and then its argument prototype would still apply. */
ce2cded5
L
11192#ifdef __cplusplus
11193extern "C"
11194#endif
ce2cded5 11195char dlopen ();
d7040cdb
SE
11196int
11197main ()
11198{
81ecdfbb 11199return dlopen ();
d7040cdb
SE
11200 ;
11201 return 0;
11202}
11203_ACEOF
81ecdfbb 11204if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11205 ac_cv_lib_dl_dlopen=yes
11206else
81ecdfbb 11207 ac_cv_lib_dl_dlopen=no
ce2cded5 11208fi
81ecdfbb
RW
11209rm -f core conftest.err conftest.$ac_objext \
11210 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11211LIBS=$ac_check_lib_save_LIBS
11212fi
81ecdfbb
RW
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11214$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11215if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5
L
11216 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11217else
81ecdfbb
RW
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11219$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11220if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11221 $as_echo_n "(cached) " >&6
ce2cded5
L
11222else
11223 ac_check_lib_save_LIBS=$LIBS
11224LIBS="-lsvld $LIBS"
81ecdfbb 11225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11226/* end confdefs.h. */
d7040cdb 11227
81ecdfbb
RW
11228/* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
ce2cded5
L
11231#ifdef __cplusplus
11232extern "C"
11233#endif
ce2cded5 11234char dlopen ();
d7040cdb
SE
11235int
11236main ()
11237{
81ecdfbb 11238return dlopen ();
d7040cdb
SE
11239 ;
11240 return 0;
11241}
11242_ACEOF
81ecdfbb 11243if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11244 ac_cv_lib_svld_dlopen=yes
d7040cdb 11245else
81ecdfbb 11246 ac_cv_lib_svld_dlopen=no
d7040cdb 11247fi
81ecdfbb
RW
11248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11250LIBS=$ac_check_lib_save_LIBS
11251fi
81ecdfbb
RW
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11253$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11254if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11256else
81ecdfbb
RW
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11258$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11259if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11260 $as_echo_n "(cached) " >&6
d7040cdb 11261else
ce2cded5
L
11262 ac_check_lib_save_LIBS=$LIBS
11263LIBS="-ldld $LIBS"
81ecdfbb 11264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11265/* end confdefs.h. */
ce2cded5 11266
81ecdfbb
RW
11267/* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
ce2cded5
L
11270#ifdef __cplusplus
11271extern "C"
11272#endif
ce2cded5 11273char dld_link ();
d7040cdb
SE
11274int
11275main ()
11276{
81ecdfbb 11277return dld_link ();
d7040cdb
SE
11278 ;
11279 return 0;
11280}
11281_ACEOF
81ecdfbb 11282if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11283 ac_cv_lib_dld_dld_link=yes
11284else
81ecdfbb 11285 ac_cv_lib_dld_dld_link=no
d7040cdb 11286fi
81ecdfbb
RW
11287rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11289LIBS=$ac_check_lib_save_LIBS
11290fi
81ecdfbb
RW
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11292$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11293if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 11294 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11295fi
11296
11297
11298fi
11299
11300
11301fi
11302
11303
11304fi
11305
11306
11307fi
11308
11309
11310fi
11311
11312 ;;
11313 esac
11314
11315 if test "x$lt_cv_dlopen" != xno; then
11316 enable_dlopen=yes
d7040cdb 11317 else
ce2cded5 11318 enable_dlopen=no
d7040cdb 11319 fi
ce2cded5
L
11320
11321 case $lt_cv_dlopen in
11322 dlopen)
11323 save_CPPFLAGS="$CPPFLAGS"
11324 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11325
11326 save_LDFLAGS="$LDFLAGS"
11327 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11328
11329 save_LIBS="$LIBS"
11330 LIBS="$lt_cv_dlopen_libs $LIBS"
11331
81ecdfbb
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11333$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11334if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11335 $as_echo_n "(cached) " >&6
d7040cdb 11336else
ce2cded5
L
11337 if test "$cross_compiling" = yes; then :
11338 lt_cv_dlopen_self=cross
11339else
11340 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11341 lt_status=$lt_dlunknown
11342 cat > conftest.$ac_ext <<_LT_EOF
2dc8dd17 11343#line 11343 "configure"
ce2cded5
L
11344#include "confdefs.h"
11345
11346#if HAVE_DLFCN_H
11347#include <dlfcn.h>
11348#endif
11349
11350#include <stdio.h>
11351
11352#ifdef RTLD_GLOBAL
11353# define LT_DLGLOBAL RTLD_GLOBAL
11354#else
11355# ifdef DL_GLOBAL
11356# define LT_DLGLOBAL DL_GLOBAL
11357# else
11358# define LT_DLGLOBAL 0
11359# endif
11360#endif
11361
11362/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11363 find out it does not work in some platform. */
11364#ifndef LT_DLLAZY_OR_NOW
11365# ifdef RTLD_LAZY
11366# define LT_DLLAZY_OR_NOW RTLD_LAZY
11367# else
11368# ifdef DL_LAZY
11369# define LT_DLLAZY_OR_NOW DL_LAZY
11370# else
11371# ifdef RTLD_NOW
11372# define LT_DLLAZY_OR_NOW RTLD_NOW
11373# else
11374# ifdef DL_NOW
11375# define LT_DLLAZY_OR_NOW DL_NOW
11376# else
11377# define LT_DLLAZY_OR_NOW 0
11378# endif
11379# endif
11380# endif
11381# endif
11382#endif
11383
3725885a
RW
11384/* When -fvisbility=hidden is used, assume the code has been annotated
11385 correspondingly for the symbols needed. */
11386#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11387void fnord () __attribute__((visibility("default")));
3725885a
RW
11388#endif
11389
f2c621e4 11390void fnord () { int i=42; }
ce2cded5
L
11391int main ()
11392{
11393 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11394 int status = $lt_dlunknown;
11395
11396 if (self)
11397 {
11398 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11399 else
11400 {
11401 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11402 else puts (dlerror ());
11403 }
ce2cded5
L
11404 /* dlclose (self); */
11405 }
11406 else
11407 puts (dlerror ());
11408
718a6fd8 11409 return status;
ce2cded5
L
11410}
11411_LT_EOF
81ecdfbb 11412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11413 (eval $ac_link) 2>&5
11414 ac_status=$?
81ecdfbb
RW
11415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11416 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11417 (./conftest; exit; ) >&5 2>/dev/null
11418 lt_status=$?
11419 case x$lt_status in
11420 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11421 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11422 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11423 esac
11424 else :
11425 # compilation failed
11426 lt_cv_dlopen_self=no
11427 fi
11428fi
11429rm -fr conftest*
11430
d7040cdb
SE
11431
11432fi
81ecdfbb
RW
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11434$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11435
11436 if test "x$lt_cv_dlopen_self" = xyes; then
11437 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11439$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11440if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11441 $as_echo_n "(cached) " >&6
d7040cdb 11442else
ce2cded5
L
11443 if test "$cross_compiling" = yes; then :
11444 lt_cv_dlopen_self_static=cross
11445else
11446 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11447 lt_status=$lt_dlunknown
11448 cat > conftest.$ac_ext <<_LT_EOF
2dc8dd17 11449#line 11449 "configure"
ce2cded5
L
11450#include "confdefs.h"
11451
11452#if HAVE_DLFCN_H
11453#include <dlfcn.h>
11454#endif
11455
11456#include <stdio.h>
11457
11458#ifdef RTLD_GLOBAL
11459# define LT_DLGLOBAL RTLD_GLOBAL
11460#else
11461# ifdef DL_GLOBAL
11462# define LT_DLGLOBAL DL_GLOBAL
11463# else
11464# define LT_DLGLOBAL 0
11465# endif
11466#endif
11467
11468/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11469 find out it does not work in some platform. */
11470#ifndef LT_DLLAZY_OR_NOW
11471# ifdef RTLD_LAZY
11472# define LT_DLLAZY_OR_NOW RTLD_LAZY
11473# else
11474# ifdef DL_LAZY
11475# define LT_DLLAZY_OR_NOW DL_LAZY
11476# else
11477# ifdef RTLD_NOW
11478# define LT_DLLAZY_OR_NOW RTLD_NOW
11479# else
11480# ifdef DL_NOW
11481# define LT_DLLAZY_OR_NOW DL_NOW
11482# else
11483# define LT_DLLAZY_OR_NOW 0
11484# endif
11485# endif
11486# endif
11487# endif
11488#endif
11489
3725885a
RW
11490/* When -fvisbility=hidden is used, assume the code has been annotated
11491 correspondingly for the symbols needed. */
11492#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11493void fnord () __attribute__((visibility("default")));
3725885a
RW
11494#endif
11495
f2c621e4 11496void fnord () { int i=42; }
ce2cded5 11497int main ()
d7040cdb 11498{
ce2cded5
L
11499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11500 int status = $lt_dlunknown;
11501
11502 if (self)
11503 {
11504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11505 else
11506 {
11507 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11508 else puts (dlerror ());
11509 }
ce2cded5
L
11510 /* dlclose (self); */
11511 }
11512 else
11513 puts (dlerror ());
11514
718a6fd8 11515 return status;
d7040cdb 11516}
ce2cded5 11517_LT_EOF
81ecdfbb 11518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11519 (eval $ac_link) 2>&5
11520 ac_status=$?
81ecdfbb
RW
11521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11522 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11523 (./conftest; exit; ) >&5 2>/dev/null
11524 lt_status=$?
11525 case x$lt_status in
11526 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11527 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11528 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11529 esac
11530 else :
11531 # compilation failed
11532 lt_cv_dlopen_self_static=no
11533 fi
d7040cdb 11534fi
ce2cded5
L
11535rm -fr conftest*
11536
11537
d7040cdb 11538fi
81ecdfbb
RW
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11540$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11541 fi
11542
11543 CPPFLAGS="$save_CPPFLAGS"
11544 LDFLAGS="$save_LDFLAGS"
11545 LIBS="$save_LIBS"
11546 ;;
11547 esac
11548
11549 case $lt_cv_dlopen_self in
11550 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11551 *) enable_dlopen_self=unknown ;;
11552 esac
11553
11554 case $lt_cv_dlopen_self_static in
11555 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11556 *) enable_dlopen_self_static=unknown ;;
11557 esac
d7040cdb 11558fi
d7040cdb 11559
d7040cdb
SE
11560
11561
d7040cdb 11562
d7040cdb 11563
ce2cded5
L
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576striplib=
11577old_striplib=
81ecdfbb
RW
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11579$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11580if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11581 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11582 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11584$as_echo "yes" >&6; }
ce2cded5
L
11585else
11586# FIXME - insert some real tests, host_os isn't really good enough
11587 case $host_os in
11588 darwin*)
11589 if test -n "$STRIP" ; then
11590 striplib="$STRIP -x"
11591 old_striplib="$STRIP -S"
81ecdfbb
RW
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11593$as_echo "yes" >&6; }
ce2cded5 11594 else
81ecdfbb
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596$as_echo "no" >&6; }
d7040cdb 11597 fi
ce2cded5
L
11598 ;;
11599 *)
81ecdfbb
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
ce2cded5 11602 ;;
d7040cdb 11603 esac
d7040cdb
SE
11604fi
11605
d7040cdb 11606
d7040cdb 11607
d7040cdb 11608
d7040cdb 11609
d7040cdb 11610
d7040cdb 11611
d7040cdb 11612
d7040cdb 11613
d7040cdb 11614
d7040cdb 11615
d7040cdb 11616
ce2cded5 11617 # Report which library types will actually be built
81ecdfbb
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11619$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11621$as_echo "$can_build_shared" >&6; }
d7040cdb 11622
81ecdfbb
RW
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11624$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11625 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11626
ce2cded5
L
11627 # On AIX, shared libraries and static libraries use the same namespace, and
11628 # are all built from PIC.
11629 case $host_os in
11630 aix3*)
11631 test "$enable_shared" = yes && enable_static=no
11632 if test -n "$RANLIB"; then
11633 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11634 postinstall_cmds='$RANLIB $lib'
11635 fi
11636 ;;
d7040cdb 11637
50e7d84b 11638 aix[4-9]*)
ce2cded5
L
11639 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11640 test "$enable_shared" = yes && enable_static=no
11641 fi
11642 ;;
11643 esac
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11645$as_echo "$enable_shared" >&6; }
ce2cded5 11646
81ecdfbb
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11648$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11649 # Make sure either enable_shared or enable_static is yes.
11650 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11652$as_echo "$enable_static" >&6; }
d7040cdb 11653
d7040cdb 11654
d7040cdb 11655
d7040cdb 11656
ce2cded5
L
11657fi
11658ac_ext=c
11659ac_cpp='$CPP $CPPFLAGS'
11660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11662ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11663
ce2cded5 11664CC="$lt_save_CC"
d7040cdb 11665
d7040cdb 11666
d7040cdb 11667
d7040cdb 11668
d7040cdb 11669
d7040cdb 11670
d7040cdb 11671
d7040cdb 11672
d7040cdb 11673
d7040cdb
SE
11674
11675
d7040cdb
SE
11676
11677
81ecdfbb 11678 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11679
11680
d7040cdb 11681
d7040cdb 11682
ce2cded5 11683# Only expand once:
d7040cdb 11684
d7040cdb 11685
d7040cdb 11686
b879806f
AM
11687# The tests for host and target for $enable_largefile require
11688# canonical names.
11689
11690
11691
11692# As the $enable_largefile decision depends on --enable-plugins we must set it
11693# even in directories otherwise not depending on the $plugins option.
11694
11695
11696 maybe_plugins=no
11697 for ac_header in dlfcn.h
11698do :
11699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11700"
d0ac1c44 11701if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11702 cat >>confdefs.h <<_ACEOF
11703#define HAVE_DLFCN_H 1
11704_ACEOF
11705 maybe_plugins=yes
11706fi
11707
11708done
11709
11710 for ac_header in windows.h
11711do :
11712 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11713"
d0ac1c44 11714if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11715 cat >>confdefs.h <<_ACEOF
11716#define HAVE_WINDOWS_H 1
11717_ACEOF
11718 maybe_plugins=yes
11719fi
11720
11721done
11722
11723
11724 # Check whether --enable-plugins was given.
11725if test "${enable_plugins+set}" = set; then :
11726 enableval=$enable_plugins; case "${enableval}" in
11727 no) plugins=no ;;
11728 *) plugins=yes
11729 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11730 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11731 fi ;;
11732 esac
11733else
11734 plugins=$maybe_plugins
11735
11736fi
11737
2974be62 11738 if test "$plugins" = "yes"; then
3cba8b6c
L
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11740$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11741if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11742 $as_echo_n "(cached) " >&6
11743else
11744 ac_func_search_save_LIBS=$LIBS
11745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746/* end confdefs.h. */
11747
11748/* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751#ifdef __cplusplus
11752extern "C"
11753#endif
3cba8b6c 11754char dlsym ();
2974be62
AM
11755int
11756main ()
11757{
3cba8b6c 11758return dlsym ();
2974be62
AM
11759 ;
11760 return 0;
11761}
11762_ACEOF
11763for ac_lib in '' dl; do
11764 if test -z "$ac_lib"; then
11765 ac_res="none required"
11766 else
11767 ac_res=-l$ac_lib
11768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11769 fi
11770 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11771 ac_cv_search_dlsym=$ac_res
2974be62
AM
11772fi
11773rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext
d0ac1c44 11775 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11776 break
11777fi
11778done
d0ac1c44 11779if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11780
11781else
3cba8b6c 11782 ac_cv_search_dlsym=no
2974be62
AM
11783fi
11784rm conftest.$ac_ext
11785LIBS=$ac_func_search_save_LIBS
11786fi
3cba8b6c
L
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11788$as_echo "$ac_cv_search_dlsym" >&6; }
11789ac_res=$ac_cv_search_dlsym
2974be62
AM
11790if test "$ac_res" != no; then :
11791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11792
11793fi
11794
11795 fi
b879806f
AM
11796
11797
11798case "${host}" in
11799 sparc-*-solaris*|i[3-7]86-*-solaris*)
11800 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11801 # are mutually exclusive; and without procfs support, the bfd/ elf module
11802 # cannot provide certain routines such as elfcore_write_prpsinfo
11803 # or elfcore_write_prstatus. So unless the user explicitly requested
11804 # large-file support through the --enable-largefile switch, disable
11805 # large-file support in favor of procfs support.
11806 test "${target}" = "${host}" -a "x$plugins" = xno \
11807 && : ${enable_largefile="no"}
11808 ;;
11809esac
11810
11811# Check whether --enable-largefile was given.
11812if test "${enable_largefile+set}" = set; then :
11813 enableval=$enable_largefile;
11814fi
11815
11816if test "$enable_largefile" != no; then
11817
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11819$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11820if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11821 $as_echo_n "(cached) " >&6
11822else
11823 ac_cv_sys_largefile_CC=no
11824 if test "$GCC" != yes; then
11825 ac_save_CC=$CC
11826 while :; do
11827 # IRIX 6.2 and later do not support large files by default,
11828 # so use the C compiler's -n32 option if that helps.
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830/* end confdefs.h. */
11831#include <sys/types.h>
11832 /* Check that off_t can represent 2**63 - 1 correctly.
11833 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11834 since some C++ compilers masquerading as C compilers
11835 incorrectly reject 9223372036854775807. */
11836#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11837 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11838 && LARGE_OFF_T % 2147483647 == 1)
11839 ? 1 : -1];
11840int
11841main ()
11842{
11843
11844 ;
11845 return 0;
11846}
11847_ACEOF
11848 if ac_fn_c_try_compile "$LINENO"; then :
11849 break
11850fi
11851rm -f core conftest.err conftest.$ac_objext
11852 CC="$CC -n32"
11853 if ac_fn_c_try_compile "$LINENO"; then :
11854 ac_cv_sys_largefile_CC=' -n32'; break
11855fi
11856rm -f core conftest.err conftest.$ac_objext
11857 break
11858 done
11859 CC=$ac_save_CC
11860 rm -f conftest.$ac_ext
11861 fi
11862fi
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11864$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11865 if test "$ac_cv_sys_largefile_CC" != no; then
11866 CC=$CC$ac_cv_sys_largefile_CC
11867 fi
11868
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11870$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11871if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11872 $as_echo_n "(cached) " >&6
11873else
11874 while :; do
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876/* end confdefs.h. */
11877#include <sys/types.h>
11878 /* Check that off_t can represent 2**63 - 1 correctly.
11879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11880 since some C++ compilers masquerading as C compilers
11881 incorrectly reject 9223372036854775807. */
11882#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11884 && LARGE_OFF_T % 2147483647 == 1)
11885 ? 1 : -1];
11886int
11887main ()
11888{
11889
11890 ;
11891 return 0;
11892}
11893_ACEOF
11894if ac_fn_c_try_compile "$LINENO"; then :
11895 ac_cv_sys_file_offset_bits=no; break
11896fi
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899/* end confdefs.h. */
11900#define _FILE_OFFSET_BITS 64
11901#include <sys/types.h>
11902 /* Check that off_t can represent 2**63 - 1 correctly.
11903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11904 since some C++ compilers masquerading as C compilers
11905 incorrectly reject 9223372036854775807. */
11906#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11908 && LARGE_OFF_T % 2147483647 == 1)
11909 ? 1 : -1];
11910int
11911main ()
11912{
11913
11914 ;
11915 return 0;
11916}
11917_ACEOF
11918if ac_fn_c_try_compile "$LINENO"; then :
11919 ac_cv_sys_file_offset_bits=64; break
11920fi
11921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11922 ac_cv_sys_file_offset_bits=unknown
11923 break
11924done
11925fi
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11927$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11928case $ac_cv_sys_file_offset_bits in #(
11929 no | unknown) ;;
11930 *)
11931cat >>confdefs.h <<_ACEOF
11932#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11933_ACEOF
11934;;
11935esac
11936rm -rf conftest*
11937 if test $ac_cv_sys_file_offset_bits = unknown; then
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11939$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11940if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11941 $as_echo_n "(cached) " >&6
11942else
11943 while :; do
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h. */
11946#include <sys/types.h>
11947 /* Check that off_t can represent 2**63 - 1 correctly.
11948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11949 since some C++ compilers masquerading as C compilers
11950 incorrectly reject 9223372036854775807. */
11951#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11953 && LARGE_OFF_T % 2147483647 == 1)
11954 ? 1 : -1];
11955int
11956main ()
11957{
11958
11959 ;
11960 return 0;
11961}
11962_ACEOF
11963if ac_fn_c_try_compile "$LINENO"; then :
11964 ac_cv_sys_large_files=no; break
11965fi
11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968/* end confdefs.h. */
11969#define _LARGE_FILES 1
11970#include <sys/types.h>
11971 /* Check that off_t can represent 2**63 - 1 correctly.
11972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11973 since some C++ compilers masquerading as C compilers
11974 incorrectly reject 9223372036854775807. */
11975#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11977 && LARGE_OFF_T % 2147483647 == 1)
11978 ? 1 : -1];
11979int
11980main ()
11981{
11982
11983 ;
11984 return 0;
11985}
11986_ACEOF
11987if ac_fn_c_try_compile "$LINENO"; then :
11988 ac_cv_sys_large_files=1; break
11989fi
11990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11991 ac_cv_sys_large_files=unknown
11992 break
11993done
11994fi
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11996$as_echo "$ac_cv_sys_large_files" >&6; }
11997case $ac_cv_sys_large_files in #(
11998 no | unknown) ;;
11999 *)
12000cat >>confdefs.h <<_ACEOF
12001#define _LARGE_FILES $ac_cv_sys_large_files
12002_ACEOF
12003;;
12004esac
12005rm -rf conftest*
12006 fi
d0ac1c44
SM
12007
12008
b879806f
AM
12009fi
12010
12011
2d7f2507
AM
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12013$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 12014if ${gcc_cv_prog_cmp_skip+:} false; then :
2d7f2507
AM
12015 $as_echo_n "(cached) " >&6
12016else
12017 echo abfoo >t1
12018 echo cdfoo >t2
da17fe9d 12019 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2d7f2507
AM
12020 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12021 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12022 :
12023 else
12024 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12025 fi
12026 fi
12027 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12028 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12029 :
12030 else
12031 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12032 fi
12033 fi
12034 rm t1 t2
12035
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12038$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12039do_compare="$gcc_cv_prog_cmp_skip"
12040
12041
b879806f 12042
81ecdfbb
RW
12043# Check whether --enable-targets was given.
12044if test "${enable_targets+set}" = set; then :
12045 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 12046 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
12047 ;;
12048 no) enable_targets= ;;
12049 *) enable_targets=$enableval ;;
12050esac
81ecdfbb
RW
12051fi
12052
ce2cded5
L
12053ac_checking=yes
12054if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
12055 ac_checking=
12056fi
81ecdfbb
RW
12057# Check whether --enable-checking was given.
12058if test "${enable_checking+set}" = set; then :
12059 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
12060 no|none) ac_checking= ;;
12061 *) ac_checking=yes ;;
12062esac
81ecdfbb
RW
12063fi
12064if test x$ac_checking != x ; then
d7040cdb 12065
81ecdfbb 12066$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 12067
ce2cded5 12068fi
d7040cdb 12069
6c3bc0f8
NC
12070# PR gas/19109
12071# Decide the default method for compressing debug sections.
12072ac_default_compressed_debug_sections=unset
12073# Provide a configure time option to override our default.
12074# Check whether --enable-compressed_debug_sections was given.
12075if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 12076 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 12077 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 12078 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
12079 *) ac_default_compressed_debug_sections=unset ;;
12080esac
12081fi
12082
0cb4071e
L
12083# PR gas/19520
12084# Decide if x86 assembler should generate relax relocations.
12085ac_default_x86_relax_relocations=unset
12086# Provide a configure time option to override our default.
12087# Check whether --enable-x86_relax_relocations was given.
12088if test "${enable_x86_relax_relocations+set}" = set; then :
12089 enableval=$enable_x86_relax_relocations; case "${enableval}" in
12090 no) ac_default_x86_relax_relocations=0 ;;
12091esac
12092fi
12093
b8871f35
L
12094# Decide if ELF assembler should generate common symbols with the
12095# STT_COMMON type.
12096ac_default_elf_stt_common=unset
12097# Provide a configure time option to override our default.
12098# Check whether --enable-elf_stt_common was given.
12099if test "${enable_elf_stt_common+set}" = set; then :
12100 enableval=$enable_elf_stt_common; case "${enableval}" in
12101 yes) ac_default_elf_stt_common=1 ;;
12102esac
12103fi
12104
0df8ad28
NC
12105
12106# Decide if the ELF assembler should default to generating
12107# GNU Build notes if none are provided by the input.
12108ac_default_generate_build_notes=0
12109# Provide a configuration option to override the default.
12110# Check whether --enable-generate_build_notes was given.
12111if test "${enable_generate_build_notes+set}" = set; then :
12112 enableval=$enable_generate_build_notes; case "${enableval}" in
12113 yes) ac_default_generate_build_notes=1 ;;
12114 no) ac_default_generate_build_notes=0 ;;
12115esac
12116fi
12117
12118
b4a3a7b4
L
12119# Decide if the x86 ELF assembler should default to generating GNU x86
12120# used ISA and feature properties.
12121ac_default_generate_x86_used_note=unset
12122# Provide a configuration option to override the default.
12123# Check whether --enable-x86-used-note was given.
12124if test "${enable_x86_used_note+set}" = set; then :
12125 enableval=$enable_x86_used_note; case "${enableval}" in
12126 yes) ac_default_generate_x86_used_note=1 ;;
12127 no) ac_default_generate_x86_used_note=0 ;;
12128esac
12129fi
12130
2dc8dd17
JW
12131# Decide if the RISC-V ELF assembler should default to generating attribute.
12132ac_default_generate_riscv_attr=unset
12133# Provide a configuration option to override the default.
12134# Check whether --enable-default-riscv-attribute was given.
12135if test "${enable_default_riscv_attribute+set}" = set; then :
12136 enableval=$enable_default_riscv_attribute; case "${enableval}" in
12137 yes) ac_default_generate_riscv_attr=1 ;;
12138 no) ac_default_generate_riscv_attr=0 ;;
12139esac
12140fi
b4a3a7b4 12141
ce2cded5 12142using_cgen=no
d7040cdb 12143
d7040cdb 12144
270c9937
JB
12145# Set the 'development' global.
12146. $srcdir/../bfd/development.sh
12147
c5da1932
VZ
12148# Set acp_cpp_for_build variable
12149ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12150
9780e045 12151# Default set of GCC warnings to enable.
397841b5 12152GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12153GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12154
12155# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157/* end confdefs.h. */
12158__GNUC__
12159_ACEOF
12160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12161 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
12162
12163else
12164 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12165fi
12166rm -f conftest*
12167
d7040cdb 12168
9780e045
NC
12169# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171/* end confdefs.h. */
12172__GNUC__
12173_ACEOF
12174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12175 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
12176
12177else
12178 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12179fi
12180rm -f conftest*
12181
12182
6757cf57
TS
12183# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12184WARN_WRITE_STRINGS=""
12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h. */
12187__GNUC__
12188_ACEOF
12189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12190 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12191
12192else
12193 WARN_WRITE_STRINGS="-Wwrite-strings"
12194fi
12195rm -f conftest*
12196
9780e045 12197
96fe4562 12198# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12199
12200# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202/* end confdefs.h. */
12203__GNUC__
12204_ACEOF
12205if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12206 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12207
12208else
12209 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12210fi
12211rm -f conftest*
12212
12213
12214# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216/* end confdefs.h. */
12217__GNUC__
12218_ACEOF
12219if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12220 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12221
12222else
12223 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12224fi
12225rm -f conftest*
12226
12227
81ecdfbb
RW
12228# Check whether --enable-werror was given.
12229if test "${enable_werror+set}" = set; then :
12230 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
12231 yes | y) ERROR_ON_WARNING="yes" ;;
12232 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12233 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 12234 esac
81ecdfbb
RW
12235fi
12236
d7040cdb 12237
397841b5 12238# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12239case "${host}" in
12240 *-*-mingw32*)
12241 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12242 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12243 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12244 fi
12245 ;;
12246 *) ;;
12247esac
12248
270c9937
JB
12249# Enable -Werror by default when using gcc. Turn it off for releases.
12250if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
12251 ERROR_ON_WARNING=yes
12252fi
12253
12254NO_WERROR=
12255if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12256 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12257 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
ce2cded5
L
12258 NO_WERROR="-Wno-error"
12259fi
12260
12261if test "${GCC}" = yes ; then
12262 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12263 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
ce2cded5
L
12264fi
12265
81ecdfbb
RW
12266# Check whether --enable-build-warnings was given.
12267if test "${enable_build_warnings+set}" = set; then :
12268 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12269 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12270 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
ce2cded5
L
12271 no) if test "${GCC}" = yes ; then
12272 WARN_CFLAGS="-w"
c5da1932 12273 WARN_CFLAGS_FOR_BUILD="-w"
ce2cded5
L
12274 fi;;
12275 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12276 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12277 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
ce2cded5 12278 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12279 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12280 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12281 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12282 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
ce2cded5 12283esac
81ecdfbb
RW
12284fi
12285
d7040cdb 12286
ce2cded5
L
12287if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12288 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12289fi
d7040cdb 12290
d7040cdb 12291
d7040cdb 12292
d7040cdb 12293
d7040cdb 12294
6757cf57 12295
c5da1932 12296
ce2cded5 12297# Generate a header file
81ecdfbb 12298ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 12299
d7040cdb 12300
9004b6bd
AB
12301
12302# Check whether --with-cpu was given.
12303if test "${with_cpu+set}" = set; then :
12304 withval=$with_cpu;
12305cat >>confdefs.h <<_ACEOF
12306#define TARGET_WITH_CPU "${with_cpu}"
12307_ACEOF
12308
12309fi
12310
12311
df7b86aa
NC
12312# PR 14072
12313
12314
ce2cded5
L
12315# If we are on a DOS filesystem, we must use gdb.ini rather than
12316# .gdbinit.
12317case "${host}" in
12318 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
12319 GDBINIT="gdb.ini"
81ecdfbb 12320 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 12321
ce2cded5
L
12322 ;;
12323 *)
12324 GDBINIT=".gdbinit"
81ecdfbb 12325 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 12326
ce2cded5
L
12327 ;;
12328esac
d7040cdb 12329
d7040cdb 12330
a8eb42a8 12331#We need this for the host.
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12333$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 12334if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb
RW
12335 $as_echo_n "(cached) " >&6
12336else
12337 ac_cv_c_bigendian=unknown
12338 # See if we're dealing with a universal compiler.
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340/* end confdefs.h. */
12341#ifndef __APPLE_CC__
12342 not a universal capable compiler
12343 #endif
12344 typedef int dummy;
12345
12346_ACEOF
12347if ac_fn_c_try_compile "$LINENO"; then :
12348
12349 # Check for potential -arch flags. It is not universal unless
12350 # there are at least two -arch flags with different values.
12351 ac_arch=
12352 ac_prev=
12353 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12354 if test -n "$ac_prev"; then
12355 case $ac_word in
12356 i?86 | x86_64 | ppc | ppc64)
12357 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12358 ac_arch=$ac_word
12359 else
12360 ac_cv_c_bigendian=universal
12361 break
12362 fi
12363 ;;
12364 esac
12365 ac_prev=
12366 elif test "x$ac_word" = "x-arch"; then
12367 ac_prev=arch
12368 fi
12369 done
12370fi
12371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 if test $ac_cv_c_bigendian = unknown; then
12373 # See if sys/param.h defines the BYTE_ORDER macro.
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12375/* end confdefs.h. */
12376#include <sys/types.h>
81ecdfbb 12377 #include <sys/param.h>
d7040cdb 12378
ce2cded5
L
12379int
12380main ()
12381{
81ecdfbb
RW
12382#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12383 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12384 && LITTLE_ENDIAN)
12385 bogus endian macros
12386 #endif
d7040cdb 12387
ce2cded5
L
12388 ;
12389 return 0;
12390}
12391_ACEOF
81ecdfbb 12392if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 12393 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12395/* end confdefs.h. */
12396#include <sys/types.h>
81ecdfbb 12397 #include <sys/param.h>
d7040cdb 12398
ce2cded5
L
12399int
12400main ()
12401{
12402#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
12403 not big endian
12404 #endif
d7040cdb 12405
ce2cded5
L
12406 ;
12407 return 0;
12408}
12409_ACEOF
81ecdfbb 12410if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
12411 ac_cv_c_bigendian=yes
12412else
81ecdfbb 12413 ac_cv_c_bigendian=no
ce2cded5 12414fi
81ecdfbb
RW
12415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416fi
12417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 fi
12419 if test $ac_cv_c_bigendian = unknown; then
12420 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422/* end confdefs.h. */
12423#include <limits.h>
d7040cdb 12424
81ecdfbb
RW
12425int
12426main ()
12427{
12428#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12429 bogus endian macros
12430 #endif
12431
12432 ;
12433 return 0;
12434}
ce2cded5 12435_ACEOF
81ecdfbb
RW
12436if ac_fn_c_try_compile "$LINENO"; then :
12437 # It does; now see whether it defined to _BIG_ENDIAN or not.
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12439/* end confdefs.h. */
81ecdfbb
RW
12440#include <limits.h>
12441
ce2cded5
L
12442int
12443main ()
12444{
81ecdfbb
RW
12445#ifndef _BIG_ENDIAN
12446 not big endian
12447 #endif
12448
ce2cded5
L
12449 ;
12450 return 0;
12451}
12452_ACEOF
81ecdfbb 12453if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 12454 ac_cv_c_bigendian=yes
81ecdfbb
RW
12455else
12456 ac_cv_c_bigendian=no
d7040cdb 12457fi
81ecdfbb 12458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12459fi
81ecdfbb
RW
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 fi
12462 if test $ac_cv_c_bigendian = unknown; then
12463 # Compile a test program.
12464 if test "$cross_compiling" = yes; then :
12465 # Try to guess by grepping values from an object file.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h. */
12468short int ascii_mm[] =
12469 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12470 short int ascii_ii[] =
12471 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12472 int use_ascii (int i) {
12473 return ascii_mm[i] + ascii_ii[i];
12474 }
12475 short int ebcdic_ii[] =
12476 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12477 short int ebcdic_mm[] =
12478 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12479 int use_ebcdic (int i) {
12480 return ebcdic_mm[i] + ebcdic_ii[i];
12481 }
12482 extern int foo;
d7040cdb 12483
81ecdfbb
RW
12484int
12485main ()
12486{
12487return use_ascii (foo) == use_ebcdic (foo);
12488 ;
12489 return 0;
12490}
12491_ACEOF
12492if ac_fn_c_try_compile "$LINENO"; then :
12493 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12494 ac_cv_c_bigendian=yes
12495 fi
12496 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12497 if test "$ac_cv_c_bigendian" = unknown; then
12498 ac_cv_c_bigendian=no
12499 else
12500 # finding both strings is unlikely to happen, but who knows?
12501 ac_cv_c_bigendian=unknown
12502 fi
12503 fi
ce2cded5 12504fi
81ecdfbb 12505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12506else
81ecdfbb 12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12508/* end confdefs.h. */
81ecdfbb 12509$ac_includes_default
ce2cded5
L
12510int
12511main ()
12512{
81ecdfbb
RW
12513
12514 /* Are we little or big endian? From Harbison&Steele. */
12515 union
12516 {
12517 long int l;
12518 char c[sizeof (long int)];
12519 } u;
12520 u.l = 1;
12521 return u.c[sizeof (long int) - 1] == 1;
12522
12523 ;
12524 return 0;
ce2cded5 12525}
d7040cdb 12526_ACEOF
81ecdfbb 12527if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
12528 ac_cv_c_bigendian=no
12529else
81ecdfbb 12530 ac_cv_c_bigendian=yes
d7040cdb 12531fi
81ecdfbb
RW
12532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12533 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 12534fi
81ecdfbb
RW
12535
12536 fi
ce2cded5 12537fi
81ecdfbb
RW
12538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12539$as_echo "$ac_cv_c_bigendian" >&6; }
12540 case $ac_cv_c_bigendian in #(
12541 yes)
12542 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12543;; #(
12544 no)
12545 ;; #(
12546 universal)
d7040cdb 12547
81ecdfbb
RW
12548$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12549
12550 ;; #(
12551 *)
d0ac1c44 12552 as_fn_error $? "unknown endianness
81ecdfbb
RW
12553 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12554 esac
d7040cdb 12555
d7040cdb 12556
ce2cded5 12557te_file=generic
d7040cdb 12558
ce2cded5
L
12559# Makefile target for installing gas in $(tooldir)/bin.
12560install_tooldir=install-exec-tooldir
d7040cdb 12561
ce2cded5
L
12562canon_targets=""
12563all_targets=no
12564if test -n "$enable_targets" ; then
12565 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12566 if test $t = "all"; then
12567 all_targets=yes
12568 continue
12569 fi
12570 result=`$ac_config_sub $t 2>/dev/null`
12571 if test -n "$result" ; then
12572 canon_targets="$canon_targets $result"
12573# else
12574# # Permit "all", etc. We don't support it yet though.
12575# canon_targets="$canon_targets $t"
12576 fi
12577 done
12578 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12579_gas_uniq_newlist=""
12580for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12581 case $_gas_uniq_i in
12582 _gas_uniq_dummy) ;;
12583 *) case " $_gas_uniq_newlist " in
12584 *" $_gas_uniq_i "*) ;;
12585 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12586 esac ;;
12587 esac
12588done
ce2cded5 12589canon_targets=$_gas_uniq_newlist
d7040cdb 12590
ce2cded5
L
12591fi
12592
12593emulations=""
12594
12595for this_target in $target $canon_targets ; do
12596
12597 targ=${this_target}
12598 . ${srcdir}/configure.tgt
12599
12600 case ${target_cpu} in
12601 crisv32)
12602
12603cat >>confdefs.h <<_ACEOF
12604#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12605_ACEOF
ce2cded5
L
12606
12607 ;;
12608 esac
12609
12610 if test ${this_target} = $target ; then
12611 target_cpu_type=${cpu_type}
12612 elif test ${target_cpu_type} != ${cpu_type} ; then
12613 continue
12614 fi
12615
12616 generic_target=${cpu_type}-${target_vendor}-${target_os}
12617 case ${generic_target} in
ce2cded5
L
12618 i386-*-msdosdjgpp* \
12619 | i386-*-go32* \
12620 | i386-go32-rtems*)
12621
81ecdfbb 12622$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12623
12624 ;;
12625
0cb4071e
L
12626 i386-*-solaris2 \
12627 | x86_64-*-solaris2 \
12628 | i386-*-solaris2.[0-9] \
12629 | i386-*-solaris2.1[01] \
12630 | x86_64-*-solaris2.1[01])
12631 if test ${this_target} = $target \
12632 && test ${ac_default_x86_relax_relocations} = unset; then
12633 ac_default_x86_relax_relocations=0
12634 fi
12635 ;;
12636
7ba29e2a
NC
12637 microblaze*)
12638 ;;
12639
e5231592 12640 ppc-*-aix[5-9].*)
ce2cded5 12641
81ecdfbb 12642$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12643
ce2cded5
L
12644 ;;
12645 ppc-*-solaris*)
12646 if test ${this_target} = $target; then
12647
81ecdfbb 12648$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12649
12650 fi
12651 if test x${endian} = xbig; then
d0ac1c44 12652 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12653 fi
12654 ;;
d7040cdb 12655 esac
d7040cdb 12656
ce2cded5
L
12657 if test ${this_target} = $target ; then
12658 endian_def=
12659 if test x${endian} = xbig; then
12660 endian_def=1
12661 elif test x${endian} = xlittle; then
12662 endian_def=0
12663 fi
12664 if test x${endian_def} != x; then
12665
12666cat >>confdefs.h <<_ACEOF
12667#define TARGET_BYTES_BIG_ENDIAN $endian_def
12668_ACEOF
12669
12670 fi
12671 fi
12672
12673# Other random stuff.
12674
12675 case ${cpu_type} in
12676 mips)
12677 # Set mips_cpu to the name of the default CPU.
12678 case ${target_cpu} in
12679 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12680 mips_cpu=from-abi
12681 ;;
12682 mipsisa32 | mipsisa32el)
12683 mips_cpu=mips32
12684 ;;
12685 mipsisa32r2 | mipsisa32r2el)
12686 mips_cpu=mips32r2
12687 ;;
ae52f483
AB
12688 mipsisa32r3 | mipsisa32r3el)
12689 mips_cpu=mips32r3
12690 ;;
12691 mipsisa32r5 | mipsisa32r5el)
12692 mips_cpu=mips32r5
12693 ;;
7361da2c
AB
12694 mipsisa32r6 | mipsisa32r6el)
12695 mips_cpu=mips32r6
12696 ;;
ce2cded5
L
12697 mipsisa64 | mipsisa64el)
12698 mips_cpu=mips64
12699 ;;
12700 mipsisa64r2 | mipsisa64r2el)
12701 mips_cpu=mips64r2
12702 ;;
ae52f483
AB
12703 mipsisa64r3 | mipsisa64r3el)
12704 mips_cpu=mips64r3
12705 ;;
12706 mipsisa64r5 | mipsisa64r5el)
12707 mips_cpu=mips64r5
12708 ;;
7361da2c
AB
12709 mipsisa64r6 | mipsisa64r6el)
12710 mips_cpu=mips64r6
12711 ;;
ce2cded5
L
12712 mipstx39 | mipstx39el)
12713 mips_cpu=r3900
12714 ;;
12715 mips64vr | mips64vrel)
12716 mips_cpu=vr4100
12717 ;;
12718 mipsisa32r2* | mipsisa64r2*)
12719 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12720 ;;
7361da2c
AB
12721 mipsisa32r6* | mipsisa64r6*)
12722 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12723 ;;
ce2cded5
L
12724 mips64* | mipsisa64* | mipsisa32*)
12725 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12726 ;;
e407c74b
NC
12727 mips*)
12728 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12729 ;;
ce2cded5 12730 *)
d0ac1c44 12731 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12732 ;;
12733 esac
12734 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12735 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12736 case ${target} in
12737 *-*-irix*)
12738 use_e_mips_abi_o32=0
12739 ;;
12740 *)
12741 use_e_mips_abi_o32=1
12742 ;;
12743 esac
12744 # Decide whether to generate 32-bit or 64-bit code by default.
12745 # Used to resolve -march=from-abi when an embedded ABI is selected.
12746 case ${target} in
12747 mips64*-*-* | mipsisa64*-*-*)
12748 mips_default_64bit=1
12749 ;;
12750 *)
12751 mips_default_64bit=0
12752 ;;
12753 esac
12754 # Decide which ABI to target by default.
12755 case ${target} in
0984958b
MR
12756 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12757 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
ce2cded5
L
12758 mips_default_abi=N32_ABI
12759 ;;
aeffff67 12760 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12761 mips_default_abi=O32_ABI
12762 ;;
12763 mips64*-openbsd*)
12764 mips_default_abi=N64_ABI
12765 ;;
12766 *)
12767 mips_default_abi=NO_ABI
12768 ;;
12769 esac
12770
12771cat >>confdefs.h <<_ACEOF
12772#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12773_ACEOF
d7040cdb
SE
12774
12775
12776cat >>confdefs.h <<_ACEOF
ce2cded5 12777#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12778_ACEOF
12779
12780
12781cat >>confdefs.h <<_ACEOF
ce2cded5 12782#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12783_ACEOF
12784
12785
ce2cded5
L
12786cat >>confdefs.h <<_ACEOF
12787#define MIPS_DEFAULT_ABI $mips_default_abi
12788_ACEOF
d7040cdb 12789
ce2cded5
L
12790 ;;
12791 esac
d7040cdb 12792
ce2cded5
L
12793 # Do we need the opcodes library?
12794 case ${cpu_type} in
12795 vax | tic30)
12796 ;;
d7040cdb 12797
ce2cded5
L
12798 *)
12799 need_opcodes=yes
d7040cdb 12800
ce2cded5
L
12801 case "${enable_shared}" in
12802 yes) shared_opcodes=true ;;
12803 *opcodes*) shared_opcodes=true ;;
12804 *) shared_opcodes=false ;;
12805 esac
12806 ;;
12807 esac
d7040cdb 12808
ce2cded5
L
12809 # Any other special object files needed ?
12810 case ${cpu_type} in
d7040cdb 12811
ce2cded5 12812 bfin)
e11078da
AM
12813 for f in bfin-parse.o bfin-lex-wrapper.o; do
12814 case " $extra_objects " in
12815 *" $f "*) ;;
12816 *) extra_objects="$extra_objects $f" ;;
12817 esac
12818 done
12819 ;;
d7040cdb 12820
73589c9d 12821 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12822 using_cgen=yes
12823 ;;
d7040cdb 12824
ce2cded5
L
12825 m32c)
12826 using_cgen=yes
12827 ;;
12828 frv)
12829 using_cgen=yes
12830 ;;
12831 m68k)
e11078da
AM
12832 f=m68k-parse.o
12833 case " $extra_objects " in
12834 *" $f "*) ;;
12835 *) extra_objects="$extra_objects $f" ;;
ce2cded5
L
12836 esac
12837 ;;
d7040cdb 12838
ce2cded5
L
12839 mep)
12840 using_cgen=yes
12841 ;;
d7040cdb 12842
ce2cded5 12843 mips)
e11078da
AM
12844 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12845 case " $extra_objects " in
12846 *" $f "*) ;;
12847 *) extra_objects="$extra_objects $f" ;;
12848 esac
12849 done
ce2cded5 12850 ;;
d7040cdb 12851
ce2cded5 12852 mt)
e11078da 12853 using_cgen=yes
ce2cded5 12854 ;;
d7040cdb 12855
35c08157 12856 nds32)
fbaf61ad
NC
12857 # setup NDS32_LINUX_TOOLCHAIN definition
12858 if test "linux" = $em; then
12859
12860$as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12861
12862 else
12863
12864$as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12865
12866 fi
12867
e11078da 12868 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
35c08157
KLC
12869 # based on arch_name.
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12871$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12872 if test "x${with_arch}" != x; then
12873 case ${with_arch} in
e11078da 12874 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
35c08157
KLC
12875
12876cat >>confdefs.h <<_ACEOF
12877#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12878_ACEOF
12879
e11078da 12880 ;;
35c08157 12881 *)
d0ac1c44 12882 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
35c08157 12883 ;;
e11078da 12884 esac
35c08157
KLC
12885 fi
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12887$as_echo "$with_arch" >&6; }
12888
e11078da
AM
12889 # Decide features one by one.
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
35c08157 12891$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
6cd8405e 12892 if test "x${enable_dx_regs}" = xyes; then
35c08157
KLC
12893
12894$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12895
12896 else
12897
12898$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12899
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12902$as_echo "$enable_dx_regs" >&6; }
12903
e11078da 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
35c08157 12905$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
6cd8405e 12906 if test "x${enable_perf_ext}" = xno; then
35c08157
KLC
12907
12908$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12909
12910 else
12911
12912$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12913
12914 fi
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12916$as_echo "$enable_perf_ext" >&6; }
12917
e11078da 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
35c08157 12919$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
6cd8405e 12920 if test "x${enable_perf_ext2}" = xno; then
35c08157
KLC
12921
12922$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12923
12924 else
12925
12926$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12927
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12930$as_echo "$enable_perf_ext2" >&6; }
12931
e11078da 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
35c08157 12933$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
6cd8405e 12934 if test "x${enable_string_ext}" = xno; then
35c08157
KLC
12935
12936$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12937
12938 else
12939
12940$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12941
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12944$as_echo "$enable_string_ext" >&6; }
12945
e11078da 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
35c08157 12947$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
6cd8405e 12948 if test "x${enable_audio_ext}" = xno; then
35c08157
KLC
12949
12950$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12951
12952 else
12953
12954$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12955
12956 fi
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12958$as_echo "$enable_audio_ext" >&6; }
fbaf61ad
NC
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12961$as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12962 if test "x${enable_dsp_ext}" = xno; then
12963
12964$as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
12965
12966 else
12967
12968$as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
12969
12970 fi
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
12972$as_echo "$enable_dsp_ext" >&6; }
12973
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
12975$as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
12976 if test "x${enable_zol_ext}" = xno; then
12977
12978$as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
12979
12980 else
12981
12982$as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
12983
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
12986$as_echo "$enable_zol_ext" >&6; }
35c08157
KLC
12987 ;;
12988
3c0367d0 12989 aarch64 | i386 | riscv | s390 | sparc)
ce2cded5 12990 if test $this_target = $target ; then
d7040cdb
SE
12991
12992cat >>confdefs.h <<_ACEOF
ce2cded5 12993#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12994_ACEOF
12995
ce2cded5
L
12996 fi
12997 ;;
d7040cdb 12998
99c513f6 12999 rl78)
e11078da
AM
13000 f=rl78-parse.o
13001 case " $extra_objects " in
13002 *" $f "*) ;;
13003 *) extra_objects="$extra_objects $f" ;;
13004 esac
99c513f6
DD
13005 ;;
13006
c7927a3c 13007 rx)
e11078da
AM
13008 f=rx-parse.o
13009 case " $extra_objects " in
13010 *" $f "*) ;;
13011 *) extra_objects="$extra_objects $f" ;;
13012 esac
c7927a3c
NC
13013 ;;
13014
ce2cded5
L
13015 xstormy16)
13016 using_cgen=yes
13017 ;;
d7040cdb 13018
ce2cded5
L
13019 xc16x)
13020 using_cgen=yes
13021 ;;
d7040cdb 13022
ce2cded5 13023 xtensa)
e11078da
AM
13024 f=config/xtensa-relax.o
13025 case " $extra_objects " in
13026 *" $f "*) ;;
13027 *) extra_objects="$extra_objects $f" ;;
13028 esac
ce2cded5 13029 ;;
d7040cdb 13030
ce2cded5
L
13031 *)
13032 ;;
13033 esac
d7040cdb 13034
ce2cded5 13035 if test $using_cgen = yes ; then
e11078da
AM
13036 f=cgen.o
13037 case " $extra_objects " in
13038 *" $f "*) ;;
13039 *) extra_objects="$extra_objects $f" ;;
ce2cded5
L
13040 esac
13041 fi
d7040cdb 13042
ce2cded5 13043# See if we really can support this configuration with the emulation code.
d7040cdb 13044
ce2cded5
L
13045 if test $this_target = $target ; then
13046 obj_format=$fmt
13047 te_file=$em
13048 fi
d7040cdb 13049
e11078da
AM
13050 case ${te_file} in
13051 vms)
13052 f=config/te-vms.o
13053 case " $extra_objects " in
13054 *" $f "*) ;;
13055 *) extra_objects="$extra_objects $f" ;;
13056 esac ;;
13057 esac
b11d79f2 13058
ce2cded5 13059# From target name and format, produce a list of supported emulations.
d7040cdb 13060
ce2cded5 13061 case ${generic_target}-${fmt} in
e8044f35 13062 mips-*-*-*) case "$endian" in
ce2cded5
L
13063 big) emulation="mipsbelf mipslelf mipself" ;;
13064 *) emulation="mipslelf mipsbelf mipself" ;;
13065 esac ;;
ce2cded5
L
13066 # i386-pc-pe-coff != i386-pc-coff.
13067 i386-*-pe-coff) ;;
13068 # Uncommenting the next line will turn on support for i386 AOUT
13069 # for the default linux configuration
13070 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
13071 #
13072 i386-*-aout) emulation="i386aout" ;;
13073 i386-*-coff) emulation="i386coff" ;;
13074 i386-*-elf) emulation="i386elf" ;;
d7040cdb 13075
ce2cded5
L
13076 # Always all formats. The first stated emulation becomes the default.
13077 cris-*-*aout*) emulation="crisaout criself" ;;
13078 cris-*-*) emulation="criself crisaout" ;;
13079 esac
13b2be9c 13080
ce2cded5 13081 emulations="$emulations $emulation"
13b2be9c 13082
13b2be9c 13083done
13b2be9c 13084
0cb4071e
L
13085if test ${ac_default_x86_relax_relocations} = unset; then
13086 ac_default_x86_relax_relocations=1
13087fi
13088
13089cat >>confdefs.h <<_ACEOF
13090#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
13091_ACEOF
13092
13093
b8871f35
L
13094if test ${ac_default_elf_stt_common} = unset; then
13095 ac_default_elf_stt_common=0
13096fi
13097
13098cat >>confdefs.h <<_ACEOF
13099#define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
13100_ACEOF
13101
13102
0df8ad28
NC
13103
13104cat >>confdefs.h <<_ACEOF
13105#define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
13106_ACEOF
13107
13108
b4a3a7b4
L
13109if test ${ac_default_generate_x86_used_note} = unset; then
13110 ac_default_generate_x86_used_note=0
13111fi
13112
13113cat >>confdefs.h <<_ACEOF
13114#define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
13115_ACEOF
13116
13117
2dc8dd17
JW
13118if test ${ac_default_generate_riscv_attr} = unset; then
13119 case ${target_os} in
13120 elf)
13121 ac_default_generate_riscv_attr=1
13122 ;;
13123 *)
13124 ac_default_generate_riscv_attr=0
13125 ;;
13126 esac
13127fi
13128
13129
13130cat >>confdefs.h <<_ACEOF
13131#define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
13132_ACEOF
13133
13134
348ef89a 13135if test x$ac_default_compressed_debug_sections = xyes ; then
e12fe555
NC
13136
13137$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
13138
6c3bc0f8 13139fi
e12fe555 13140
ce2cded5
L
13141# Turn on all targets if possible
13142if test ${all_targets} = "yes"; then
13143 case ${target_cpu_type} in
13144 i386)
13145 case ${obj_format} in
13146 aout)
13147 emulations="$emulations i386coff i386elf"
13148 ;;
13149 coff)
13150 emulations="$emulations i386aout i386elf"
13151 ;;
13152 elf)
13153 emulations="$emulations i386aout i386coff"
13154 ;;
13155 esac
13156 ;;
13157 x86_64)
13158 case ${obj_format} in
13159 aout)
13160 emulations="$emulations i386coff i386elf"
13161 ;;
13162 coff)
13163 emulations="$emulations i386aout i386elf"
13164 ;;
13165 elf)
13166 emulations="$emulations i386aout i386coff"
13167 ;;
13168 esac
13169 ;;
13170 esac
13b2be9c 13171fi
c8615825 13172
39871c07
AM
13173# PE code has way too many macros tweaking behaviour
13174case ${te_file} in
13175 pe*) emulations="" ;;
13176esac
13177
ce2cded5
L
13178# Assign floating point type. Most processors with FP support
13179# IEEE FP. On those that don't support FP at all, usually IEEE
13180# is emulated.
13181case ${target_cpu} in
13182 vax | pdp11 ) atof=vax ;;
13183 *) atof=ieee ;;
13184esac
c8615825 13185
ce2cded5 13186case "${obj_format}" in
d0ac1c44 13187 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 13188esac
13b2be9c 13189
ce2cded5
L
13190# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
13191cgen_cpu_prefix=""
13192if test $using_cgen = yes ; then
13193 case ${target_cpu} in
73589c9d
CS
13194 or1knd)
13195 cgen_cpu_prefix=or1k ;;
ce2cded5
L
13196 *) cgen_cpu_prefix=${target_cpu} ;;
13197 esac
c8615825 13198
c8615825 13199
81ecdfbb 13200$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 13201
d7040cdb 13202fi
13b2be9c 13203
ce2cded5
L
13204
13205if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
d0ac1c44 13206 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 13207fi
ce2cded5
L
13208
13209if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
d0ac1c44 13210 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
13211fi
13212
ce2cded5
L
13213# Some COFF configurations want these random other flags set.
13214case ${obj_format} in
13215 coff)
13216 case ${target_cpu_type} in
13217 i386)
81ecdfbb 13218$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
13219 ;;
13220 x86_64)
81ecdfbb 13221$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
13222 ;;
13223 esac
13224 ;;
13225esac
13226
13227# Getting this done right is going to be a bitch. Each configuration specified
13228# with --enable-targets=... should be checked for environment, format, cpu
13229# setting.
13230#
13231# For each configuration, the necessary object file support code must be linked
13232# in. This might be only one, it might be up to four. The necessary emulation
13233# code needs to be provided, too.
13234#
13235# And then there's "--enable-targets=all"....
13236#
e8044f35 13237# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
13238
13239formats="${obj_format}"
13240emfiles=""
13241EMULATIONS=""
13242_gas_uniq_list="$emulations"
13243_gas_uniq_newlist=""
13244for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13245 case $_gas_uniq_i in
13246 _gas_uniq_dummy) ;;
13247 *) case " $_gas_uniq_newlist " in
13248 *" $_gas_uniq_i "*) ;;
13249 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13250 esac ;;
13251 esac
13252done
13253emulations=$_gas_uniq_newlist
13254
13255for em in . $emulations ; do
13256 case $em in
13257 .) continue ;;
13258 mipsbelf | mipslelf | mipself)
13259 fmt=elf file=mipself ;;
ce2cded5
L
13260 *coff)
13261 fmt=coff file=$em ;;
13262 *aout)
13263 fmt=aout file=$em ;;
13264 *elf)
13265 fmt=elf file=$em ;;
13266 esac
13267 formats="$formats $fmt"
d0ac1c44 13268 emfiles="$emfiles config/e-$file.o"
ce2cded5
L
13269 EMULATIONS="$EMULATIONS &$em,"
13270done
13271_gas_uniq_list="$formats"
13272_gas_uniq_newlist=""
13273for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13274 case $_gas_uniq_i in
13275 _gas_uniq_dummy) ;;
13276 *) case " $_gas_uniq_newlist " in
13277 *" $_gas_uniq_i "*) ;;
13278 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13279 esac ;;
13280 esac
13b2be9c 13281done
ce2cded5 13282formats=$_gas_uniq_newlist
13b2be9c 13283
ce2cded5
L
13284_gas_uniq_list="$emfiles"
13285_gas_uniq_newlist=""
13286for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13287 case $_gas_uniq_i in
13288 _gas_uniq_dummy) ;;
13289 *) case " $_gas_uniq_newlist " in
13290 *" $_gas_uniq_i "*) ;;
13291 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13292 esac ;;
13293 esac
13294done
13295emfiles=$_gas_uniq_newlist
d7040cdb 13296
ce2cded5
L
13297if test `set . $formats ; shift ; echo $#` -gt 1 ; then
13298 for fmt in $formats ; do
13299 case $fmt in
13300 aout)
81ecdfbb 13301$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
13302 ;;
13303 coff)
81ecdfbb 13304$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
13305 ;;
13306 ecoff)
81ecdfbb 13307$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
13308 ;;
13309 elf)
81ecdfbb 13310$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
13311 ;;
13312 generic)
81ecdfbb 13313$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
13314 ;;
13315 som)
81ecdfbb 13316$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
13317 ;;
13318 esac
d0ac1c44 13319 extra_objects="$extra_objects config/obj-$fmt.o"
ce2cded5
L
13320 done
13321 obj_format=multi
13b2be9c 13322fi
ce2cded5
L
13323if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
13324 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 13325 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
13326 # moment. If only one emulation is specified, then don't define
13327 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
13328 case "${obj_format}${emfiles}" in
e8044f35 13329 multi* | *mipself*)
ce2cded5 13330 extra_objects="$extra_objects $emfiles"
d7040cdb 13331
81ecdfbb 13332$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
13333 ;;
13334 esac
13335fi
d7040cdb 13336
13b2be9c 13337
ce2cded5
L
13338cat >>confdefs.h <<_ACEOF
13339#define EMULATIONS $EMULATIONS
13b2be9c 13340_ACEOF
d7040cdb 13341
d7040cdb 13342
ce2cded5
L
13343cat >>confdefs.h <<_ACEOF
13344#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 13345_ACEOF
d7040cdb 13346
d7040cdb 13347
ce2cded5 13348reject_dev_configs=yes
252b5132 13349
ce2cded5
L
13350case ${reject_dev_configs}-${dev} in
13351 yes-yes) # Oops.
d0ac1c44 13352 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 13353 ;;
d7040cdb
SE
13354esac
13355
13b2be9c 13356
ce2cded5
L
13357
13358
13359
13360
13361
13362# do we need the opcodes library?
13363case "${need_opcodes}" in
13364yes)
13365 OPCODES_LIB=../opcodes/libopcodes.la
13366 ;;
13367esac
13368
13369
13370
13371
13372cat >>confdefs.h <<_ACEOF
13373#define TARGET_ALIAS "${target_alias}"
d7040cdb 13374_ACEOF
20e95c23 13375
20e95c23 13376
ce2cded5
L
13377cat >>confdefs.h <<_ACEOF
13378#define TARGET_CANONICAL "${target}"
13379_ACEOF
20e95c23 13380
d6d788bd 13381
ce2cded5
L
13382cat >>confdefs.h <<_ACEOF
13383#define TARGET_CPU "${target_cpu}"
13384_ACEOF
20e95c23 13385
ce2cded5
L
13386
13387cat >>confdefs.h <<_ACEOF
13388#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
13389_ACEOF
13390
13391
ce2cded5
L
13392cat >>confdefs.h <<_ACEOF
13393#define TARGET_OS "${target_os}"
13394_ACEOF
13395
0efedc4c 13396
d7040cdb
SE
13397for ac_prog in 'bison -y' byacc
13398do
13399 # Extract the first word of "$ac_prog", so it can be a program name with args.
13400set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13402$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13403if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 13404 $as_echo_n "(cached) " >&6
20e95c23 13405else
d7040cdb
SE
13406 if test -n "$YACC"; then
13407 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 13408else
d7040cdb
SE
13409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410for as_dir in $PATH
13411do
13412 IFS=$as_save_IFS
13413 test -z "$as_dir" && as_dir=.
81ecdfbb 13414 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 13416 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 13417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 13418 break 2
20e95c23 13419 fi
d7040cdb 13420done
81ecdfbb
RW
13421 done
13422IFS=$as_save_IFS
20e95c23 13423
d7040cdb
SE
13424fi
13425fi
13426YACC=$ac_cv_prog_YACC
13427if test -n "$YACC"; then
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13429$as_echo "$YACC" >&6; }
d7040cdb 13430else
81ecdfbb
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13432$as_echo "no" >&6; }
d7040cdb 13433fi
20e95c23 13434
81ecdfbb 13435
d7040cdb
SE
13436 test -n "$YACC" && break
13437done
13438test -n "$YACC" || YACC="yacc"
20e95c23 13439
d7040cdb
SE
13440for ac_prog in flex lex
13441do
13442 # Extract the first word of "$ac_prog", so it can be a program name with args.
13443set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13446if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 13447 $as_echo_n "(cached) " >&6
d6d788bd 13448else
d7040cdb
SE
13449 if test -n "$LEX"; then
13450 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13451else
13452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453for as_dir in $PATH
13454do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
81ecdfbb 13457 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 13459 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13461 break 2
13462 fi
13463done
81ecdfbb
RW
13464 done
13465IFS=$as_save_IFS
20e95c23 13466
d7040cdb
SE
13467fi
13468fi
13469LEX=$ac_cv_prog_LEX
13470if test -n "$LEX"; then
81ecdfbb
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13472$as_echo "$LEX" >&6; }
20e95c23 13473else
81ecdfbb
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475$as_echo "no" >&6; }
13b2be9c
DJ
13476fi
13477
81ecdfbb 13478
d7040cdb
SE
13479 test -n "$LEX" && break
13480done
13481test -n "$LEX" || LEX=":"
20e95c23 13482
3d961d0d
AM
13483case "$LEX" in
13484 :|*"missing "*) ;;
13485 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
13486%%
13487a { ECHO; }
13488b { REJECT; }
13489c { yymore (); }
13490d { yyless (1); }
d0ac1c44
SM
13491e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13492 yyless ((input () != 0)); }
81ecdfbb
RW
13493f { unput (yytext[0]); }
13494. { BEGIN INITIAL; }
13495%%
13496#ifdef YYTEXT_POINTER
13497extern char *yytext;
d7040cdb 13498#endif
d7040cdb 13499int
81ecdfbb 13500main (void)
d7040cdb 13501{
81ecdfbb 13502 return ! yylex () + ! yywrap ();
d7040cdb
SE
13503}
13504_ACEOF
81ecdfbb
RW
13505{ { ac_try="$LEX conftest.l"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13511$as_echo "$ac_try_echo"; } >&5
13512 (eval "$LEX conftest.l") 2>&5
d7040cdb 13513 ac_status=$?
81ecdfbb
RW
13514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13515 test $ac_status = 0; }
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13517$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 13518if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 13519 $as_echo_n "(cached) " >&6
d7040cdb 13520else
d5fbea21 13521
81ecdfbb
RW
13522if test -f lex.yy.c; then
13523 ac_cv_prog_lex_root=lex.yy
13524elif test -f lexyy.c; then
13525 ac_cv_prog_lex_root=lexyy
13526else
d0ac1c44 13527 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 13528fi
d7040cdb 13529fi
81ecdfbb
RW
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13531$as_echo "$ac_cv_prog_lex_root" >&6; }
13532LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 13533
81ecdfbb
RW
13534if test -z "${LEXLIB+set}"; then
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13536$as_echo_n "checking lex library... " >&6; }
d0ac1c44 13537if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 13538 $as_echo_n "(cached) " >&6
d7040cdb 13539else
d7040cdb 13540
81ecdfbb
RW
13541 ac_save_LIBS=$LIBS
13542 ac_cv_lib_lex='none needed'
13543 for ac_lib in '' -lfl -ll; do
13544 LIBS="$ac_lib $ac_save_LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546/* end confdefs.h. */
13547`cat $LEX_OUTPUT_ROOT.c`
13548_ACEOF
13549if ac_fn_c_try_link "$LINENO"; then :
13550 ac_cv_lib_lex=$ac_lib
d7040cdb 13551fi
81ecdfbb
RW
13552rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 test "$ac_cv_lib_lex" != 'none needed' && break
13555 done
13556 LIBS=$ac_save_LIBS
d7040cdb
SE
13557
13558fi
81ecdfbb
RW
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13560$as_echo "$ac_cv_lib_lex" >&6; }
13561 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
13562fi
13563
13b2be9c 13564
81ecdfbb
RW
13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13566$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 13567if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 13568 $as_echo_n "(cached) " >&6
d7040cdb
SE
13569else
13570 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 13571# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
13572# not all implementations provide the %pointer and %array declarations.
13573ac_cv_prog_lex_yytext_pointer=no
d7040cdb 13574ac_save_LIBS=$LIBS
81ecdfbb
RW
13575LIBS="$LEXLIB $ac_save_LIBS"
13576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577/* end confdefs.h. */
d0ac1c44
SM
13578
13579 #define YYTEXT_POINTER 1
d7040cdb 13580`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 13581_ACEOF
81ecdfbb 13582if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13583 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 13584fi
81ecdfbb
RW
13585rm -f core conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
d7040cdb 13587LIBS=$ac_save_LIBS
252b5132 13588
9b2b7d69 13589fi
81ecdfbb
RW
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13591$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 13592if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 13593
81ecdfbb 13594$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 13595
d6d788bd 13596fi
81ecdfbb 13597rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
13598 ;;
13599esac
d7040cdb
SE
13600if test "$LEX" = :; then
13601 LEX=${am_missing_run}flex
13602fi
13603
e184813f 13604ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
d7040cdb
SE
13605# If we haven't got the data from the intl directory,
13606# assume NLS is disabled.
13607USE_NLS=no
13608LIBINTL=
13609LIBINTL_DEP=
13610INCINTL=
13611XGETTEXT=
13612GMSGFMT=
13613POSUB=
13614
13615if test -f ../intl/config.intl; then
13616 . ../intl/config.intl
13617fi
81ecdfbb
RW
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13619$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 13620if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622$as_echo "no" >&6; }
d7040cdb 13623else
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13625$as_echo "yes" >&6; }
d7040cdb 13626
81ecdfbb 13627$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13628
13629
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13631$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13632 # Look for .po and .gmo files in the source directory.
13633 CATALOGS=
13634 XLINGUAS=
13635 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13636 # If there aren't any .gmo files the shell will give us the
13637 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13638 # weeded out.
13639 case "$cat" in *\**)
13640 continue;;
13641 esac
13642 # The quadruple backslash is collapsed to a double backslash
13643 # by the backticks, then collapsed again by the double quotes,
13644 # leaving us with one backslash in the sed expression (right
13645 # before the dot that mustn't act as a wildcard).
13646 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13647 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13648 # The user is allowed to set LINGUAS to a list of languages to
13649 # install catalogs for. If it's empty that means "all of them."
13650 if test "x$LINGUAS" = x; then
13651 CATALOGS="$CATALOGS $cat"
13652 XLINGUAS="$XLINGUAS $lang"
13653 else
13654 case "$LINGUAS" in *$lang*)
13655 CATALOGS="$CATALOGS $cat"
13656 XLINGUAS="$XLINGUAS $lang"
13657 ;;
13658 esac
13659 fi
13660 done
13661 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13663$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13664
13665
13666 DATADIRNAME=share
13667
13668 INSTOBJEXT=.mo
13669
13670 GENCAT=gencat
13671
13672 CATOBJEXT=.gmo
13673
13674fi
13675
13676 MKINSTALLDIRS=
13677 if test -n "$ac_aux_dir"; then
13678 case "$ac_aux_dir" in
13679 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13680 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13681 esac
13682 fi
13683 if test -z "$MKINSTALLDIRS"; then
13684 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13685 fi
13686
13687
13688
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13690$as_echo_n "checking whether NLS is requested... " >&6; }
13691 # Check whether --enable-nls was given.
13692if test "${enable_nls+set}" = set; then :
13693 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13694else
13695 USE_NLS=yes
81ecdfbb
RW
13696fi
13697
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13699$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13700
13701
13702
13703
13704
13705
13706# Prepare PATH_SEPARATOR.
13707# The user is always right.
13708if test "${PATH_SEPARATOR+set}" != set; then
13709 echo "#! /bin/sh" >conf$$.sh
13710 echo "exit 0" >>conf$$.sh
13711 chmod +x conf$$.sh
13712 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13713 PATH_SEPARATOR=';'
13b2be9c 13714 else
d7040cdb 13715 PATH_SEPARATOR=:
13b2be9c 13716 fi
d7040cdb 13717 rm -f conf$$.sh
252b5132 13718fi
13b2be9c 13719
d7040cdb
SE
13720# Find out how to test for executable files. Don't use a zero-byte file,
13721# as systems may use methods other than mode bits to determine executability.
13722cat >conf$$.file <<_ASEOF
13723#! /bin/sh
13724exit 0
13725_ASEOF
13726chmod +x conf$$.file
13727if test -x conf$$.file >/dev/null 2>&1; then
13728 ac_executable_p="test -x"
13729else
13730 ac_executable_p="test -f"
13b2be9c 13731fi
d7040cdb 13732rm -f conf$$.file
13b2be9c 13733
d7040cdb
SE
13734# Extract the first word of "msgfmt", so it can be a program name with args.
13735set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13738if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 13739 $as_echo_n "(cached) " >&6
252b5132 13740else
d7040cdb
SE
13741 case "$MSGFMT" in
13742 [\\/]* | ?:[\\/]*)
13743 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13744 ;;
13745 *)
13746 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13747 for ac_dir in $PATH; do
13748 IFS="$ac_save_IFS"
13749 test -z "$ac_dir" && ac_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13752 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13753 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13754 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13755 break 2
13756 fi
13757 fi
13758 done
13759 done
13760 IFS="$ac_save_IFS"
13761 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13762 ;;
13763esac
252b5132 13764fi
d7040cdb
SE
13765MSGFMT="$ac_cv_path_MSGFMT"
13766if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13768$as_echo "$MSGFMT" >&6; }
252b5132 13769else
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771$as_echo "no" >&6; }
252b5132 13772fi
252b5132 13773
d7040cdb
SE
13774 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13775set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13777$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13778if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 13779 $as_echo_n "(cached) " >&6
13b2be9c 13780else
d7040cdb
SE
13781 case $GMSGFMT in
13782 [\\/]* | ?:[\\/]*)
13783 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13784 ;;
13785 *)
13786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
81ecdfbb 13791 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 13793 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13795 break 2
13796 fi
13797done
81ecdfbb
RW
13798 done
13799IFS=$as_save_IFS
252b5132 13800
d7040cdb
SE
13801 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13802 ;;
13803esac
13804fi
13805GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13806if test -n "$GMSGFMT"; then
81ecdfbb
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13808$as_echo "$GMSGFMT" >&6; }
ac48eca1 13809else
81ecdfbb
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811$as_echo "no" >&6; }
6840198f 13812fi
6840198f 13813
13b2be9c 13814
20e95c23 13815
81ecdfbb 13816
d7040cdb
SE
13817# Prepare PATH_SEPARATOR.
13818# The user is always right.
13819if test "${PATH_SEPARATOR+set}" != set; then
13820 echo "#! /bin/sh" >conf$$.sh
13821 echo "exit 0" >>conf$$.sh
13822 chmod +x conf$$.sh
13823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13824 PATH_SEPARATOR=';'
13825 else
13826 PATH_SEPARATOR=:
13827 fi
13828 rm -f conf$$.sh
13829fi
20e95c23 13830
d7040cdb
SE
13831# Find out how to test for executable files. Don't use a zero-byte file,
13832# as systems may use methods other than mode bits to determine executability.
13833cat >conf$$.file <<_ASEOF
13834#! /bin/sh
13835exit 0
13836_ASEOF
13837chmod +x conf$$.file
13838if test -x conf$$.file >/dev/null 2>&1; then
13839 ac_executable_p="test -x"
13b2be9c 13840else
d7040cdb 13841 ac_executable_p="test -f"
13b2be9c 13842fi
d7040cdb 13843rm -f conf$$.file
20e95c23 13844
d7040cdb
SE
13845# Extract the first word of "xgettext", so it can be a program name with args.
13846set dummy xgettext; ac_word=$2
81ecdfbb
RW
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13849if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 13850 $as_echo_n "(cached) " >&6
252b5132 13851else
d7040cdb
SE
13852 case "$XGETTEXT" in
13853 [\\/]* | ?:[\\/]*)
13854 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13855 ;;
13856 *)
13857 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13858 for ac_dir in $PATH; do
13859 IFS="$ac_save_IFS"
13860 test -z "$ac_dir" && ac_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
13862 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13863 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13864 (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
13865 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13866 break 2
13867 fi
13868 fi
13869 done
13870 done
13871 IFS="$ac_save_IFS"
13872 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13873 ;;
13874esac
13b2be9c 13875fi
d7040cdb
SE
13876XGETTEXT="$ac_cv_path_XGETTEXT"
13877if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13879$as_echo "$XGETTEXT" >&6; }
d7040cdb 13880else
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882$as_echo "no" >&6; }
13b2be9c 13883fi
13b2be9c 13884
d7040cdb 13885 rm -f messages.po
20e95c23 13886
13b2be9c 13887
d7040cdb
SE
13888# Prepare PATH_SEPARATOR.
13889# The user is always right.
13890if test "${PATH_SEPARATOR+set}" != set; then
13891 echo "#! /bin/sh" >conf$$.sh
13892 echo "exit 0" >>conf$$.sh
13893 chmod +x conf$$.sh
13894 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13895 PATH_SEPARATOR=';'
13896 else
13897 PATH_SEPARATOR=:
13898 fi
13899 rm -f conf$$.sh
252b5132 13900fi
20e95c23 13901
d7040cdb
SE
13902# Find out how to test for executable files. Don't use a zero-byte file,
13903# as systems may use methods other than mode bits to determine executability.
13904cat >conf$$.file <<_ASEOF
13905#! /bin/sh
13906exit 0
13907_ASEOF
13908chmod +x conf$$.file
13909if test -x conf$$.file >/dev/null 2>&1; then
13910 ac_executable_p="test -x"
252b5132 13911else
d7040cdb
SE
13912 ac_executable_p="test -f"
13913fi
13914rm -f conf$$.file
20e95c23 13915
d7040cdb
SE
13916# Extract the first word of "msgmerge", so it can be a program name with args.
13917set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13919$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13920if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 13921 $as_echo_n "(cached) " >&6
20e95c23 13922else
d7040cdb
SE
13923 case "$MSGMERGE" in
13924 [\\/]* | ?:[\\/]*)
13925 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13926 ;;
13927 *)
13928 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13929 for ac_dir in $PATH; do
13930 IFS="$ac_save_IFS"
13931 test -z "$ac_dir" && ac_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13934 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13935 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13936 break 2
13937 fi
13938 fi
13939 done
13940 done
13941 IFS="$ac_save_IFS"
13942 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13943 ;;
13944esac
20e95c23 13945fi
d7040cdb
SE
13946MSGMERGE="$ac_cv_path_MSGMERGE"
13947if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13949$as_echo "$MSGMERGE" >&6; }
d7040cdb 13950else
81ecdfbb
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952$as_echo "no" >&6; }
20e95c23 13953fi
252b5132 13954
252b5132 13955
d7040cdb
SE
13956 if test "$GMSGFMT" != ":"; then
13957 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13958 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13959 : ;
13960 else
13961 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13963$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13964 GMSGFMT=":"
13965 fi
13966 fi
13b2be9c 13967
d7040cdb
SE
13968 if test "$XGETTEXT" != ":"; then
13969 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13970 (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
13971 : ;
13972 else
81ecdfbb
RW
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13974$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13975 XGETTEXT=":"
13976 fi
13977 rm -f messages.po
13978 fi
252b5132 13979
81ecdfbb 13980 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13981
13b2be9c 13982
81ecdfbb
RW
13983
13984
13985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13986$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13987 # Check whether --enable-maintainer-mode was given.
13988if test "${enable_maintainer_mode+set}" = set; then :
13989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13990else
81ecdfbb 13991 USE_MAINTAINER_MODE=no
13b2be9c 13992fi
13b2be9c 13993
81ecdfbb
RW
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13995$as_echo "$USE_MAINTAINER_MODE" >&6; }
13996 if test $USE_MAINTAINER_MODE = yes; then
13997 MAINTAINER_MODE_TRUE=
13998 MAINTAINER_MODE_FALSE='#'
13999else
14000 MAINTAINER_MODE_TRUE='#'
14001 MAINTAINER_MODE_FALSE=
13b2be9c 14002fi
13b2be9c 14003
81ecdfbb
RW
14004 MAINT=$MAINTAINER_MODE_TRUE
14005
14006
14007 if false; then
14008 GENINSRC_NEVER_TRUE=
14009 GENINSRC_NEVER_FALSE='#'
13b2be9c 14010else
81ecdfbb
RW
14011 GENINSRC_NEVER_TRUE='#'
14012 GENINSRC_NEVER_FALSE=
252b5132 14013fi
13b2be9c 14014
81ecdfbb
RW
14015
14016
58797674 14017for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
81ecdfbb
RW
14018do :
14019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14020ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 14021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13b2be9c 14022 cat >>confdefs.h <<_ACEOF
81ecdfbb 14023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
14024_ACEOF
14025
252b5132 14026fi
13b2be9c 14027
252b5132
RH
14028done
14029
df7b86aa
NC
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14031$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
d0ac1c44 14032if ${gcc_cv_header_string+:} false; then :
df7b86aa
NC
14033 $as_echo_n "(cached) " >&6
14034else
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036/* end confdefs.h. */
14037#include <string.h>
14038#include <strings.h>
14039int
14040main ()
14041{
14042
14043 ;
14044 return 0;
14045}
14046_ACEOF
14047if ac_fn_c_try_compile "$LINENO"; then :
14048 gcc_cv_header_string=yes
14049else
14050 gcc_cv_header_string=no
14051fi
14052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053fi
14054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14055$as_echo "$gcc_cv_header_string" >&6; }
14056if test $gcc_cv_header_string = yes; then
14057
14058$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14059
14060fi
14061
d6d788bd 14062
252b5132
RH
14063# Put this here so that autoconf's "cross-compiling" message doesn't confuse
14064# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
14066$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
14067if test "${host}" = "${target}"; then
14068 cross_gas=no
14069else
14070 cross_gas=yes
13b2be9c 14071
81ecdfbb 14072$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
14073
14074fi
81ecdfbb
RW
14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
14076$as_echo "$cross_gas" >&6; }
252b5132 14077
d0ac1c44
SM
14078ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14079if test "x$ac_cv_type_size_t" = xyes; then :
14080
14081else
14082
14083cat >>confdefs.h <<_ACEOF
14084#define size_t unsigned int
14085_ACEOF
14086
14087fi
14088
252b5132
RH
14089# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14090# for constant arguments. Useless!
81ecdfbb
RW
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14092$as_echo_n "checking for working alloca.h... " >&6; }
d0ac1c44 14093if ${ac_cv_working_alloca_h+:} false; then :
81ecdfbb 14094 $as_echo_n "(cached) " >&6
13b2be9c 14095else
81ecdfbb 14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14097/* end confdefs.h. */
252b5132 14098#include <alloca.h>
13b2be9c
DJ
14099int
14100main ()
14101{
14102char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 14103 if (p) return 0;
13b2be9c
DJ
14104 ;
14105 return 0;
14106}
14107_ACEOF
81ecdfbb 14108if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14109 ac_cv_working_alloca_h=yes
14110else
81ecdfbb 14111 ac_cv_working_alloca_h=no
13b2be9c 14112fi
81ecdfbb
RW
14113rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14115fi
81ecdfbb
RW
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14117$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
14118if test $ac_cv_working_alloca_h = yes; then
14119
81ecdfbb 14120$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
14121
14122fi
14123
81ecdfbb
RW
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14125$as_echo_n "checking for alloca... " >&6; }
d0ac1c44 14126if ${ac_cv_func_alloca_works+:} false; then :
81ecdfbb 14127 $as_echo_n "(cached) " >&6
252b5132 14128else
81ecdfbb 14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14130/* end confdefs.h. */
252b5132
RH
14131#ifdef __GNUC__
14132# define alloca __builtin_alloca
14133#else
14134# ifdef _MSC_VER
14135# include <malloc.h>
14136# define alloca _alloca
14137# else
81ecdfbb 14138# ifdef HAVE_ALLOCA_H
252b5132
RH
14139# include <alloca.h>
14140# else
14141# ifdef _AIX
14142 #pragma alloca
14143# else
14144# ifndef alloca /* predefined by HP cc +Olibcalls */
d0ac1c44 14145void *alloca (size_t);
252b5132
RH
14146# endif
14147# endif
14148# endif
14149# endif
14150#endif
14151
13b2be9c
DJ
14152int
14153main ()
14154{
14155char *p = (char *) alloca (1);
81ecdfbb 14156 if (p) return 0;
13b2be9c
DJ
14157 ;
14158 return 0;
14159}
14160_ACEOF
81ecdfbb 14161if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
14162 ac_cv_func_alloca_works=yes
14163else
81ecdfbb 14164 ac_cv_func_alloca_works=no
252b5132 14165fi
81ecdfbb
RW
14166rm -f core conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
252b5132 14168fi
81ecdfbb
RW
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14170$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 14171
252b5132 14172if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 14173
81ecdfbb 14174$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 14175
13b2be9c 14176else
c8615825 14177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
14178# that cause trouble. Some versions do not even contain alloca or
14179# contain a buggy version. If you still want to use their alloca,
14180# use ar to extract alloca.o from them instead of compiling alloca.c.
14181
81ecdfbb 14182ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 14183
81ecdfbb 14184$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 14185
d6d788bd 14186
81ecdfbb
RW
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14188$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d0ac1c44 14189if ${ac_cv_os_cray+:} false; then :
81ecdfbb 14190 $as_echo_n "(cached) " >&6
252b5132 14191else
81ecdfbb 14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14193/* end confdefs.h. */
81ecdfbb 14194#if defined CRAY && ! defined CRAY2
252b5132
RH
14195webecray
14196#else
14197wenotbecray
14198#endif
14199
13b2be9c 14200_ACEOF
252b5132 14201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 14202 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
14203 ac_cv_os_cray=yes
14204else
252b5132
RH
14205 ac_cv_os_cray=no
14206fi
14207rm -f conftest*
14208
14209fi
81ecdfbb
RW
14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14211$as_echo "$ac_cv_os_cray" >&6; }
252b5132 14212if test $ac_cv_os_cray = yes; then
13b2be9c 14213 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
14214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14215ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14216if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13b2be9c
DJ
14217
14218cat >>confdefs.h <<_ACEOF
252b5132 14219#define CRAY_STACKSEG_END $ac_func
13b2be9c 14220_ACEOF
252b5132 14221
13b2be9c 14222 break
252b5132
RH
14223fi
14224
13b2be9c 14225 done
252b5132
RH
14226fi
14227
81ecdfbb
RW
14228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14229$as_echo_n "checking stack direction for C alloca... " >&6; }
d0ac1c44 14230if ${ac_cv_c_stack_direction+:} false; then :
81ecdfbb 14231 $as_echo_n "(cached) " >&6
252b5132 14232else
81ecdfbb 14233 if test "$cross_compiling" = yes; then :
252b5132
RH
14234 ac_cv_c_stack_direction=0
14235else
81ecdfbb 14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14237/* end confdefs.h. */
81ecdfbb 14238$ac_includes_default
13b2be9c 14239int
d0ac1c44 14240find_stack_direction (int *addr, int depth)
252b5132 14241{
d0ac1c44
SM
14242 int dir, dummy = 0;
14243 if (! addr)
14244 addr = &dummy;
14245 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14246 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14247 return dir + dummy;
252b5132 14248}
13b2be9c
DJ
14249
14250int
d0ac1c44 14251main (int argc, char **argv)
252b5132 14252{
d0ac1c44 14253 return find_stack_direction (0, argc + !argv + 20) < 0;
252b5132 14254}
13b2be9c 14255_ACEOF
81ecdfbb 14256if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
14257 ac_cv_c_stack_direction=1
14258else
81ecdfbb 14259 ac_cv_c_stack_direction=-1
252b5132 14260fi
81ecdfbb
RW
14261rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14262 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 14263fi
252b5132 14264
81ecdfbb
RW
14265fi
14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14267$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 14268cat >>confdefs.h <<_ACEOF
252b5132 14269#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
14270_ACEOF
14271
252b5132
RH
14272
14273fi
14274
81ecdfbb
RW
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14276$as_echo_n "checking for inline... " >&6; }
d0ac1c44 14277if ${ac_cv_c_inline+:} false; then :
81ecdfbb 14278 $as_echo_n "(cached) " >&6
252b5132
RH
14279else
14280 ac_cv_c_inline=no
14281for ac_kw in inline __inline__ __inline; do
81ecdfbb 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14283/* end confdefs.h. */
14284#ifndef __cplusplus
14285typedef int foo_t;
14286static $ac_kw foo_t static_foo () {return 0; }
14287$ac_kw foo_t foo () {return 0; }
14288#endif
252b5132 14289
13b2be9c 14290_ACEOF
81ecdfbb
RW
14291if ac_fn_c_try_compile "$LINENO"; then :
14292 ac_cv_c_inline=$ac_kw
252b5132 14293fi
81ecdfbb
RW
14294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 test "$ac_cv_c_inline" != no && break
252b5132
RH
14296done
14297
14298fi
81ecdfbb
RW
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14300$as_echo "$ac_cv_c_inline" >&6; }
ab509236 14301
13b2be9c 14302case $ac_cv_c_inline in
252b5132 14303 inline | yes) ;;
ab509236
L
14304 *)
14305 case $ac_cv_c_inline in
14306 no) ac_val=;;
14307 *) ac_val=$ac_cv_c_inline;;
14308 esac
14309 cat >>confdefs.h <<_ACEOF
14310#ifndef __cplusplus
14311#define inline $ac_val
14312#endif
13b2be9c 14313_ACEOF
ab509236 14314 ;;
252b5132
RH
14315esac
14316
6840198f 14317
d6d788bd 14318# VMS doesn't have unlink.
252b5132 14319for ac_func in unlink remove
81ecdfbb
RW
14320do :
14321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14323if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13b2be9c 14324 cat >>confdefs.h <<_ACEOF
81ecdfbb 14325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 14326_ACEOF
252b5132 14327 break
252b5132
RH
14328fi
14329done
14330
4b0296ce 14331for ac_func in sbrk setlocale
81ecdfbb 14332do :
a574142b
AM
14333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14334ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14335if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13b2be9c 14336 cat >>confdefs.h <<_ACEOF
a574142b 14337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 14338_ACEOF
252b5132 14339
1ec4b9f2
NS
14340fi
14341done
14342
14343for ac_func in strsignal
14344do :
14345 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
d0ac1c44 14346if test "x$ac_cv_func_strsignal" = xyes; then :
1ec4b9f2
NS
14347 cat >>confdefs.h <<_ACEOF
14348#define HAVE_STRSIGNAL 1
14349_ACEOF
14350
252b5132
RH
14351fi
14352done
14353
d6d788bd 14354
44350750
NC
14355
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14357$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 14358if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
14359 $as_echo_n "(cached) " >&6
14360else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362/* end confdefs.h. */
14363#include <locale.h>
14364int
14365main ()
14366{
14367return LC_MESSAGES
14368 ;
14369 return 0;
14370}
14371_ACEOF
14372if ac_fn_c_try_link "$LINENO"; then :
14373 am_cv_val_LC_MESSAGES=yes
14374else
14375 am_cv_val_LC_MESSAGES=no
14376fi
14377rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379fi
14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14381$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14382 if test $am_cv_val_LC_MESSAGES = yes; then
14383
14384$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14385
14386 fi
14387
14388
39bec121
TW
14389# do we need the math library?
14390case "${need_libm}" in
13b2be9c 14391yes)
39bec121 14392 LIBM=
f9c19112 14393case $host in
3725885a 14394*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 14395 # These system don't have libm, or don't need it
39bec121
TW
14396 ;;
14397*-ncr-sysv4.3*)
81ecdfbb
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14399$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
d0ac1c44 14400if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
81ecdfbb 14401 $as_echo_n "(cached) " >&6
39bec121 14402else
13b2be9c 14403 ac_check_lib_save_LIBS=$LIBS
39bec121 14404LIBS="-lmw $LIBS"
81ecdfbb 14405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14406/* end confdefs.h. */
14407
81ecdfbb
RW
14408/* Override any GCC internal prototype to avoid an error.
14409 Use char because int might match the return type of a GCC
14410 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
14411#ifdef __cplusplus
14412extern "C"
14413#endif
13b2be9c
DJ
14414char _mwvalidcheckl ();
14415int
14416main ()
14417{
81ecdfbb 14418return _mwvalidcheckl ();
13b2be9c
DJ
14419 ;
14420 return 0;
14421}
14422_ACEOF
81ecdfbb 14423if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14424 ac_cv_lib_mw__mwvalidcheckl=yes
14425else
81ecdfbb 14426 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 14427fi
81ecdfbb
RW
14428rm -f core conftest.err conftest.$ac_objext \
14429 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14430LIBS=$ac_check_lib_save_LIBS
14431fi
81ecdfbb
RW
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14433$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
d0ac1c44 14434if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
39bec121 14435 LIBM="-lmw"
39bec121
TW
14436fi
14437
81ecdfbb
RW
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14439$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 14440if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 14441 $as_echo_n "(cached) " >&6
39bec121 14442else
13b2be9c 14443 ac_check_lib_save_LIBS=$LIBS
39bec121 14444LIBS="-lm $LIBS"
81ecdfbb 14445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14446/* end confdefs.h. */
39bec121 14447
81ecdfbb
RW
14448/* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
d7040cdb
SE
14451#ifdef __cplusplus
14452extern "C"
14453#endif
d7040cdb 14454char cos ();
13b2be9c
DJ
14455int
14456main ()
14457{
81ecdfbb 14458return cos ();
13b2be9c
DJ
14459 ;
14460 return 0;
14461}
14462_ACEOF
81ecdfbb 14463if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 14464 ac_cv_lib_m_cos=yes
13b2be9c 14465else
81ecdfbb 14466 ac_cv_lib_m_cos=no
13b2be9c 14467fi
81ecdfbb
RW
14468rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14470LIBS=$ac_check_lib_save_LIBS
14471fi
81ecdfbb
RW
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14473$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 14474if test "x$ac_cv_lib_m_cos" = xyes; then :
39bec121 14475 LIBM="$LIBM -lm"
39bec121
TW
14476fi
14477
14478 ;;
14479*)
81ecdfbb
RW
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14481$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 14482if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 14483 $as_echo_n "(cached) " >&6
39bec121 14484else
13b2be9c 14485 ac_check_lib_save_LIBS=$LIBS
39bec121 14486LIBS="-lm $LIBS"
81ecdfbb 14487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14488/* end confdefs.h. */
39bec121 14489
81ecdfbb
RW
14490/* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
d7040cdb
SE
14493#ifdef __cplusplus
14494extern "C"
14495#endif
d7040cdb 14496char cos ();
13b2be9c
DJ
14497int
14498main ()
14499{
81ecdfbb 14500return cos ();
13b2be9c
DJ
14501 ;
14502 return 0;
14503}
14504_ACEOF
81ecdfbb 14505if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 14506 ac_cv_lib_m_cos=yes
13b2be9c 14507else
81ecdfbb 14508 ac_cv_lib_m_cos=no
13b2be9c 14509fi
81ecdfbb
RW
14510rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14512LIBS=$ac_check_lib_save_LIBS
14513fi
81ecdfbb
RW
14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14515$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 14516if test "x$ac_cv_lib_m_cos" = xyes; then :
39bec121 14517 LIBM="-lm"
39bec121
TW
14518fi
14519
14520 ;;
14521esac
14522
13b2be9c 14523
d7040cdb 14524
39bec121
TW
14525 ;;
14526esac
14527
252b5132
RH
14528# Some non-ANSI preprocessors botch requoting inside strings. That's bad
14529# enough, but on some of those systems, the assert macro relies on requoting
14530# working properly!
81ecdfbb
RW
14531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
14532$as_echo_n "checking for working assert macro... " >&6; }
d0ac1c44 14533if ${gas_cv_assert_ok+:} false; then :
81ecdfbb 14534 $as_echo_n "(cached) " >&6
13b2be9c 14535else
81ecdfbb 14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14537/* end confdefs.h. */
252b5132
RH
14538#include <assert.h>
14539#include <stdio.h>
13b2be9c
DJ
14540int
14541main ()
14542{
252b5132
RH
14543
14544/* check for requoting problems */
14545static int a, b, c, d;
14546static char *s;
14547assert (!strcmp(s, "foo bar baz quux"));
14548/* check for newline handling */
14549assert (a == b
14550 || c == d);
14551
13b2be9c
DJ
14552 ;
14553 return 0;
81ecdfbb
RW
14554}
14555_ACEOF
14556if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
14557 gas_cv_assert_ok=yes
14558else
81ecdfbb 14559 gas_cv_assert_ok=no
252b5132 14560fi
81ecdfbb
RW
14561rm -f core conftest.err conftest.$ac_objext \
14562 conftest$ac_exeext conftest.$ac_ext
252b5132 14563fi
81ecdfbb
RW
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14565$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 14566test $gas_cv_assert_ok = yes ||
81ecdfbb 14567$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 14568
d6d788bd
L
14569
14570
252b5132
RH
14571# On some systems, the system header files may not declare malloc, realloc,
14572# and free. There are places where gas needs these functions to have been
14573# declared -- such as when taking their addresses.
14574gas_test_headers="
14575#ifdef HAVE_MEMORY_H
14576#include <memory.h>
14577#endif
14578#ifdef HAVE_STRING_H
14579#include <string.h>
14580#else
14581#ifdef HAVE_STRINGS_H
14582#include <strings.h>
14583#endif
14584#endif
14585#ifdef HAVE_STDLIB_H
14586#include <stdlib.h>
14587#endif
14588#ifdef HAVE_UNISTD_H
14589#include <unistd.h>
14590#endif
14591"
14592
e8a38df5
AL
14593# Does errno.h declare errno, or do we have to add a separate declaration
14594# for it?
14595
81ecdfbb
RW
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14597$as_echo_n "checking whether declaration is required for errno... " >&6; }
d0ac1c44 14598if ${gas_cv_decl_needed_errno+:} false; then :
81ecdfbb 14599 $as_echo_n "(cached) " >&6
e8a38df5 14600else
81ecdfbb 14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
14602/* end confdefs.h. */
14603
14604#ifdef HAVE_ERRNO_H
14605#include <errno.h>
14606#endif
14607
14608int
14609main ()
14610{
14611
14612typedef int f;
14613f x;
14614x = (f) errno;
14615
14616 ;
14617 return 0;
14618}
14619_ACEOF
81ecdfbb 14620if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
14621 gas_cv_decl_needed_errno=no
14622else
81ecdfbb 14623 gas_cv_decl_needed_errno=yes
e8a38df5 14624fi
81ecdfbb
RW
14625rm -f core conftest.err conftest.$ac_objext \
14626 conftest$ac_exeext conftest.$ac_ext
e8a38df5 14627fi
81ecdfbb
RW
14628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14629$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
14630if test $gas_cv_decl_needed_errno = yes; then
14631
81ecdfbb 14632$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
14633
14634fi
14635
14636
81ecdfbb
RW
14637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14638$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 14639if ${gas_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 14640 $as_echo_n "(cached) " >&6
56f36663 14641else
81ecdfbb 14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14643/* end confdefs.h. */
14644#include <unistd.h>
14645int
14646main ()
14647{
14648extern int getopt (int, char *const*, const char *);
14649 ;
14650 return 0;
14651}
14652_ACEOF
81ecdfbb 14653if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14654 gas_cv_decl_getopt_unistd_h=yes
14655else
81ecdfbb 14656 gas_cv_decl_getopt_unistd_h=no
56f36663 14657fi
81ecdfbb 14658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14659fi
14660
81ecdfbb
RW
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14662$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14663if test $gas_cv_decl_getopt_unistd_h = yes; then
14664
81ecdfbb 14665$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14666
14667fi
14668
e8a38df5 14669
81ecdfbb
RW
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14671$as_echo_n "checking whether declaration is required for environ... " >&6; }
d0ac1c44 14672if ${gas_cv_decl_needed_environ+:} false; then :
81ecdfbb 14673 $as_echo_n "(cached) " >&6
13b2be9c 14674else
81ecdfbb 14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14676/* end confdefs.h. */
252b5132 14677$gas_test_headers
13b2be9c
DJ
14678int
14679main ()
14680{
252b5132 14681
e8a38df5 14682typedef char **f;
252b5132 14683f x;
e8a38df5 14684x = (f) environ;
252b5132 14685
13b2be9c
DJ
14686 ;
14687 return 0;
14688}
14689_ACEOF
81ecdfbb 14690if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14691 gas_cv_decl_needed_environ=no
252b5132 14692else
81ecdfbb 14693 gas_cv_decl_needed_environ=yes
252b5132 14694fi
81ecdfbb
RW
14695rm -f core conftest.err conftest.$ac_objext \
14696 conftest$ac_exeext conftest.$ac_ext
252b5132 14697fi
81ecdfbb
RW
14698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14699$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14700if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14701
81ecdfbb 14702$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14703
14704fi
14705
14706
81ecdfbb
RW
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14708$as_echo_n "checking whether declaration is required for ffs... " >&6; }
d0ac1c44 14709if ${gas_cv_decl_needed_ffs+:} false; then :
81ecdfbb 14710 $as_echo_n "(cached) " >&6
13b2be9c 14711else
81ecdfbb 14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14713/* end confdefs.h. */
14714$gas_test_headers
14715int
14716main ()
14717{
14718
e8a38df5 14719typedef int (*f)(int);
13b2be9c 14720f x;
e8a38df5 14721x = (f) ffs;
13b2be9c
DJ
14722
14723 ;
14724 return 0;
14725}
14726_ACEOF
81ecdfbb 14727if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14728 gas_cv_decl_needed_ffs=no
13b2be9c 14729else
81ecdfbb 14730 gas_cv_decl_needed_ffs=yes
13b2be9c 14731fi
81ecdfbb
RW
14732rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14734fi
81ecdfbb
RW
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14736$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14737if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14738
81ecdfbb 14739$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14740
14741fi
14742
14743
81ecdfbb
RW
14744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14745$as_echo_n "checking whether declaration is required for free... " >&6; }
d0ac1c44 14746if ${gas_cv_decl_needed_free+:} false; then :
81ecdfbb 14747 $as_echo_n "(cached) " >&6
13b2be9c 14748else
81ecdfbb 14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14750/* end confdefs.h. */
14751$gas_test_headers
14752int
14753main ()
14754{
14755
14756typedef void (*f)();
14757f x;
14758x = (f) free;
14759
14760 ;
14761 return 0;
14762}
14763_ACEOF
81ecdfbb 14764if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14765 gas_cv_decl_needed_free=no
14766else
81ecdfbb 14767 gas_cv_decl_needed_free=yes
13b2be9c 14768fi
81ecdfbb
RW
14769rm -f core conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14771fi
81ecdfbb
RW
14772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14773$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14774if test $gas_cv_decl_needed_free = yes; then
14775
81ecdfbb 14776$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14777
14778fi
14779
14780
81ecdfbb
RW
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14782$as_echo_n "checking whether declaration is required for malloc... " >&6; }
d0ac1c44 14783if ${gas_cv_decl_needed_malloc+:} false; then :
81ecdfbb 14784 $as_echo_n "(cached) " >&6
13b2be9c 14785else
81ecdfbb 14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14787/* end confdefs.h. */
14788$gas_test_headers
14789int
14790main ()
14791{
14792
14793typedef char *(*f)();
14794f x;
e8a38df5 14795x = (f) malloc;
13b2be9c
DJ
14796
14797 ;
14798 return 0;
14799}
14800_ACEOF
81ecdfbb 14801if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14802 gas_cv_decl_needed_malloc=no
13b2be9c 14803else
81ecdfbb 14804 gas_cv_decl_needed_malloc=yes
13b2be9c 14805fi
81ecdfbb
RW
14806rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14808fi
81ecdfbb
RW
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14810$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14811if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14812
81ecdfbb 14813$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14814
14815fi
14816
14817
81ecdfbb
RW
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14819$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
d0ac1c44 14820if ${gas_cv_decl_needed_sbrk+:} false; then :
81ecdfbb 14821 $as_echo_n "(cached) " >&6
13b2be9c 14822else
81ecdfbb 14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14824/* end confdefs.h. */
14825$gas_test_headers
14826int
14827main ()
14828{
14829
e8a38df5 14830typedef char *(*f)();
13b2be9c 14831f x;
e8a38df5 14832x = (f) sbrk;
13b2be9c
DJ
14833
14834 ;
14835 return 0;
14836}
14837_ACEOF
81ecdfbb 14838if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14839 gas_cv_decl_needed_sbrk=no
13b2be9c 14840else
81ecdfbb 14841 gas_cv_decl_needed_sbrk=yes
13b2be9c 14842fi
81ecdfbb
RW
14843rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14845fi
81ecdfbb
RW
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14847$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14848if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14849
81ecdfbb 14850$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14851
14852fi
14853
14854
81ecdfbb
RW
14855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14856$as_echo_n "checking whether declaration is required for strstr... " >&6; }
d0ac1c44 14857if ${gas_cv_decl_needed_strstr+:} false; then :
81ecdfbb 14858 $as_echo_n "(cached) " >&6
13b2be9c 14859else
81ecdfbb 14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14861/* end confdefs.h. */
e8a38df5 14862$gas_test_headers
13b2be9c
DJ
14863int
14864main ()
14865{
14866
e8a38df5 14867typedef char *(*f)();
13b2be9c 14868f x;
e8a38df5 14869x = (f) strstr;
13b2be9c
DJ
14870
14871 ;
14872 return 0;
14873}
14874_ACEOF
81ecdfbb 14875if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14876 gas_cv_decl_needed_strstr=no
13b2be9c 14877else
81ecdfbb 14878 gas_cv_decl_needed_strstr=yes
13b2be9c 14879fi
81ecdfbb
RW
14880rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14882fi
81ecdfbb
RW
14883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14884$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14885if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14886
81ecdfbb 14887$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14888
14889fi
14890
14891
4b0296ce 14892ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
d0ac1c44 14893if test "x$ac_cv_have_decl_free" = xyes; then :
4b0296ce
AM
14894 ac_have_decl=1
14895else
14896 ac_have_decl=0
14897fi
14898
14899cat >>confdefs.h <<_ACEOF
14900#define HAVE_DECL_FREE $ac_have_decl
14901_ACEOF
14902ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d0ac1c44 14903if test "x$ac_cv_have_decl_getenv" = xyes; then :
4b0296ce
AM
14904 ac_have_decl=1
14905else
14906 ac_have_decl=0
14907fi
14908
14909cat >>confdefs.h <<_ACEOF
14910#define HAVE_DECL_GETENV $ac_have_decl
14911_ACEOF
14912ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
d0ac1c44 14913if test "x$ac_cv_have_decl_malloc" = xyes; then :
4b0296ce
AM
14914 ac_have_decl=1
14915else
14916 ac_have_decl=0
14917fi
14918
14919cat >>confdefs.h <<_ACEOF
14920#define HAVE_DECL_MALLOC $ac_have_decl
14921_ACEOF
0175442d 14922ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
d0ac1c44 14923if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
0175442d
L
14924 ac_have_decl=1
14925else
14926 ac_have_decl=0
14927fi
14928
14929cat >>confdefs.h <<_ACEOF
14930#define HAVE_DECL_MEMPCPY $ac_have_decl
14931_ACEOF
4b0296ce 14932ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
d0ac1c44 14933if test "x$ac_cv_have_decl_realloc" = xyes; then :
4b0296ce
AM
14934 ac_have_decl=1
14935else
14936 ac_have_decl=0
14937fi
14938
14939cat >>confdefs.h <<_ACEOF
14940#define HAVE_DECL_REALLOC $ac_have_decl
14941_ACEOF
14942ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 14943if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
4b0296ce
AM
14944 ac_have_decl=1
14945else
14946 ac_have_decl=0
14947fi
14948
14949cat >>confdefs.h <<_ACEOF
14950#define HAVE_DECL_STPCPY $ac_have_decl
14951_ACEOF
14952ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
d0ac1c44 14953if test "x$ac_cv_have_decl_strstr" = xyes; then :
4b0296ce
AM
14954 ac_have_decl=1
14955else
14956 ac_have_decl=0
14957fi
0175442d 14958
4b0296ce
AM
14959cat >>confdefs.h <<_ACEOF
14960#define HAVE_DECL_STRSTR $ac_have_decl
14961_ACEOF
81ecdfbb 14962ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
d0ac1c44 14963if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
81ecdfbb 14964 ac_have_decl=1
6d74f28b 14965else
81ecdfbb 14966 ac_have_decl=0
6d74f28b 14967fi
6d74f28b
EB
14968
14969cat >>confdefs.h <<_ACEOF
81ecdfbb 14970#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b 14971_ACEOF
2a7f4fa9 14972ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 14973if test "x$ac_cv_have_decl_asprintf" = xyes; then :
2a7f4fa9
NC
14974 ac_have_decl=1
14975else
14976 ac_have_decl=0
14977fi
14978
14979cat >>confdefs.h <<_ACEOF
14980#define HAVE_DECL_ASPRINTF $ac_have_decl
14981_ACEOF
6d74f28b
EB
14982
14983
13b2be9c 14984
c973bc5c
NC
14985case "${host}" in
14986*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14987
81ecdfbb 14988$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14989 ;;
14990esac
14991
543b7933
L
14992# Link in zlib if we can. This allows us to write compressed debug sections.
14993
14994 # Use the system's zlib library.
39f3de7c
L
14995 zlibdir="-L\$(top_builddir)/../zlib"
14996 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 14997
0138187e
L
14998# Check whether --with-system-zlib was given.
14999if test "${with_system_zlib+set}" = set; then :
afa59b79
L
15000 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15001 zlibdir=
15002 zlibinc=
15003 fi
0acf065b 15004
0acf065b 15005fi
0acf065b 15006
0acf065b
CC
15007
15008
543b7933
L
15009
15010
b11d79f2
TG
15011# Support for VMS timestamps via cross compile
15012
15013if test "$ac_cv_header_time_h" = yes; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
15015$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
d0ac1c44 15016 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
b11d79f2
TG
15017 $as_echo_n "(cached) " >&6
15018else
15019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15020/* end confdefs.h. */
15021
15022#define _BSD_SOURCE 1
15023#include <time.h>
15024int
15025main ()
15026{
15027struct tm avar; void* aref = (void*) &avar.tm_gmtoff
15028 ;
15029 return 0;
15030}
15031_ACEOF
15032if ac_fn_c_try_compile "$LINENO"; then :
15033 gas_cv_have_time_type_member_tm_gmtoff=yes
15034else
15035 gas_cv_have_time_type_member_tm_gmtoff=no
15036
15037fi
15038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039fi
15040
15041 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
15042
15043$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15044
15045 fi
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
15047$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
15048
15049fi
15050
15051if test "$ac_cv_header_sys_stat_h" = yes; then
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
15053$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
d0ac1c44 15054 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
b11d79f2
TG
15055 $as_echo_n "(cached) " >&6
15056else
15057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15058/* end confdefs.h. */
15059
15060#define _BSD_SOURCE 1
15061#include <sys/stat.h>
15062int
15063main ()
15064{
15065struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
15066 ;
15067 return 0;
15068}
15069_ACEOF
15070if ac_fn_c_try_compile "$LINENO"; then :
15071 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
15072else
15073 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
15074
15075fi
15076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077fi
15078
15079 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
15080
15081$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
15082
15083 fi
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
15085$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
15088$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
d0ac1c44 15089 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
b11d79f2
TG
15090 $as_echo_n "(cached) " >&6
15091else
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093/* end confdefs.h. */
15094
15095#define _BSD_SOURCE 1
15096#include <sys/stat.h>
15097int
15098main ()
15099{
15100struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
15101 ;
15102 return 0;
15103}
15104_ACEOF
15105if ac_fn_c_try_compile "$LINENO"; then :
15106 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
15107else
15108 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
15109
15110fi
15111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15112fi
15113
15114 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
15115
15116$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
15117
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
15120$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
15121
15122fi
15123
15124
c973bc5c 15125
13b2be9c 15126
108a6f8e
CD
15127
15128
15129
15130
31dd3154 15131
81ecdfbb 15132ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 15133
81ecdfbb 15134ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
15135
15136
15137cat >confcache <<\_ACEOF
15138# This file is a shell script that caches the results of configure
15139# tests run on this system so they can be shared between configure
15140# scripts and configure runs, see configure's option --config-cache.
15141# It is not useful on other systems. If it contains results you don't
15142# want to keep, you may remove or edit it.
15143#
15144# config.status only pays attention to the cache file if you give it
15145# the --recheck option to rerun configure.
15146#
15147# `ac_cv_env_foo' variables (set or unset) will be overridden when
15148# loading this file, other *unset* `ac_cv_foo' will be assigned the
15149# following values.
15150
15151_ACEOF
15152
15153# The following way of writing the cache mishandles newlines in values,
15154# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15155# So, we kill variables containing newlines.
13b2be9c
DJ
15156# Ultrix sh set writes to stderr and can't be redirected directly,
15157# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15158(
15159 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15160 eval ac_val=\$$ac_var
15161 case $ac_val in #(
15162 *${as_nl}*)
15163 case $ac_var in #(
15164 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15165$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15166 esac
15167 case $ac_var in #(
15168 _ | IFS | as_nl) ;; #(
15169 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15170 *) { eval $ac_var=; unset $ac_var;} ;;
15171 esac ;;
15172 esac
15173 done
15174
13b2be9c 15175 (set) 2>&1 |
81ecdfbb
RW
15176 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15177 *${as_nl}ac_space=\ *)
15178 # `set' does not quote correctly, so add quotes: double-quote
15179 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 15180 sed -n \
ab509236
L
15181 "s/'/'\\\\''/g;
15182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15183 ;; #(
13b2be9c
DJ
15184 *)
15185 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15186 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 15187 ;;
81ecdfbb
RW
15188 esac |
15189 sort
15190) |
13b2be9c 15191 sed '
81ecdfbb 15192 /^ac_cv_env_/b end
13b2be9c 15193 t clear
81ecdfbb 15194 :clear
13b2be9c
DJ
15195 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15196 t end
81ecdfbb
RW
15197 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15198 :end' >>confcache
15199if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15200 if test -w "$cache_file"; then
d0ac1c44 15201 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15203$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15204 if test ! -f "$cache_file" || test -h "$cache_file"; then
15205 cat confcache >"$cache_file"
15206 else
15207 case $cache_file in #(
15208 */* | ?:*)
15209 mv -f confcache "$cache_file"$$ &&
15210 mv -f "$cache_file"$$ "$cache_file" ;; #(
15211 *)
15212 mv -f confcache "$cache_file" ;;
15213 esac
15214 fi
15215 fi
13b2be9c 15216 else
81ecdfbb
RW
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15218$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
15219 fi
15220fi
15221rm -f confcache
15222
15223test "x$prefix" = xNONE && prefix=$ac_default_prefix
15224# Let make expand exec_prefix.
15225test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15226
13b2be9c
DJ
15227DEFS=-DHAVE_CONFIG_H
15228
15229ac_libobjs=
15230ac_ltlibobjs=
d0ac1c44 15231U=
13b2be9c
DJ
15232for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15233 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15237 # will be set to the directory where LIBOBJS objects are built.
15238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
15240done
15241LIBOBJS=$ac_libobjs
15242
15243LTLIBOBJS=$ac_ltlibobjs
15244
15245
d0ac1c44
SM
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15247$as_echo_n "checking that generated files are newer than configure... " >&6; }
15248 if test -n "$am_sleep_pid"; then
15249 # Hide warnings about reused PIDs.
15250 wait $am_sleep_pid 2>/dev/null
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15253$as_echo "done" >&6; }
13b2be9c 15254if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 15255 as_fn_error $? "conditional \"AMDEP\" was never defined.
81ecdfbb 15256Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
15257fi
15258if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 15259 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb
RW
15260Usually this means the macro was only invoked conditionally." "$LINENO" 5
15261fi
15262 if test -n "$EXEEXT"; then
15263 am__EXEEXT_TRUE=
15264 am__EXEEXT_FALSE='#'
15265else
15266 am__EXEEXT_TRUE='#'
15267 am__EXEEXT_FALSE=
13b2be9c 15268fi
81ecdfbb
RW
15269
15270
13b2be9c 15271if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 15272 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 15273Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 15274fi
d5fbea21 15275if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 15276 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 15277Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15278fi
13b2be9c 15279
d0ac1c44 15280: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15281ac_write_fail=0
13b2be9c
DJ
15282ac_clean_files_save=$ac_clean_files
15283ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15284{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15285$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15286as_write_fail=0
15287cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
15288#! $SHELL
15289# Generated by $as_me.
15290# Run this file to recreate the current configuration.
15291# Compiler output produced by configure, useful for debugging
15292# configure, is in config.log if it exists.
15293
15294debug=false
15295ac_cs_recheck=false
15296ac_cs_silent=false
13b2be9c 15297
81ecdfbb
RW
15298SHELL=\${CONFIG_SHELL-$SHELL}
15299export SHELL
15300_ASEOF
15301cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15302## -------------------- ##
15303## M4sh Initialization. ##
15304## -------------------- ##
13b2be9c 15305
81ecdfbb
RW
15306# Be more Bourne compatible
15307DUALCASE=1; export DUALCASE # for MKS sh
15308if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
15309 emulate sh
15310 NULLCMD=:
81ecdfbb 15311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
15312 # is contrary to our usage. Disable this feature.
15313 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15314 setopt NO_GLOB_SUBST
15315else
15316 case `(set -o) 2>/dev/null` in #(
15317 *posix*) :
15318 set -o posix ;; #(
15319 *) :
15320 ;;
15321esac
13b2be9c
DJ
15322fi
15323
81ecdfbb
RW
15324
15325as_nl='
15326'
15327export as_nl
15328# Printing a long string crashes Solaris 7 /usr/bin/printf.
15329as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15330as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15331as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15332# Prefer a ksh shell builtin over an external printf program on Solaris,
15333# but without wasting forks for bash or zsh.
15334if test -z "$BASH_VERSION$ZSH_VERSION" \
15335 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15336 as_echo='print -r --'
15337 as_echo_n='print -rn --'
15338elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15339 as_echo='printf %s\n'
15340 as_echo_n='printf %s'
15341else
15342 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15343 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15344 as_echo_n='/usr/ucb/echo -n'
15345 else
15346 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15347 as_echo_n_body='eval
15348 arg=$1;
15349 case $arg in #(
15350 *"$as_nl"*)
15351 expr "X$arg" : "X\\(.*\\)$as_nl";
15352 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15353 esac;
15354 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15355 '
15356 export as_echo_n_body
15357 as_echo_n='sh -c $as_echo_n_body as_echo'
15358 fi
15359 export as_echo_body
15360 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
15361fi
15362
81ecdfbb
RW
15363# The user is always right.
15364if test "${PATH_SEPARATOR+set}" != set; then
15365 PATH_SEPARATOR=:
15366 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15367 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15368 PATH_SEPARATOR=';'
15369 }
15370fi
15371
15372
15373# IFS
15374# We need space, tab and new line, in precisely that order. Quoting is
15375# there to prevent editors from complaining about space-tab.
15376# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15377# splitting by setting IFS to empty value.)
15378IFS=" "" $as_nl"
15379
15380# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15381as_myself=
81ecdfbb
RW
15382case $0 in #((
15383 *[\\/]* ) as_myself=$0 ;;
15384 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15385for as_dir in $PATH
15386do
15387 IFS=$as_save_IFS
15388 test -z "$as_dir" && as_dir=.
15389 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15390 done
15391IFS=$as_save_IFS
15392
15393 ;;
15394esac
15395# We did not find ourselves, most probably we were run as `sh COMMAND'
15396# in which case we are not to be found in the path.
15397if test "x$as_myself" = x; then
15398 as_myself=$0
15399fi
15400if test ! -f "$as_myself"; then
15401 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15402 exit 1
15403fi
13b2be9c 15404
81ecdfbb
RW
15405# Unset variables that we do not need and which cause bugs (e.g. in
15406# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15407# suppresses any "Segmentation fault" message there. '((' could
15408# trigger a bug in pdksh 5.2.14.
15409for as_var in BASH_ENV ENV MAIL MAILPATH
15410do eval test x\${$as_var+set} = xset \
15411 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15412done
13b2be9c
DJ
15413PS1='$ '
15414PS2='> '
15415PS4='+ '
15416
15417# NLS nuisances.
81ecdfbb
RW
15418LC_ALL=C
15419export LC_ALL
15420LANGUAGE=C
15421export LANGUAGE
15422
15423# CDPATH.
15424(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15425
15426
d0ac1c44
SM
15427# as_fn_error STATUS ERROR [LINENO LOG_FD]
15428# ----------------------------------------
81ecdfbb
RW
15429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15431# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15432as_fn_error ()
15433{
d0ac1c44
SM
15434 as_status=$1; test $as_status -eq 0 && as_status=1
15435 if test "$4"; then
15436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15437 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13b2be9c 15438 fi
d0ac1c44 15439 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15440 as_fn_exit $as_status
15441} # as_fn_error
15442
15443
15444# as_fn_set_status STATUS
15445# -----------------------
15446# Set $? to STATUS, without forking.
15447as_fn_set_status ()
15448{
15449 return $1
15450} # as_fn_set_status
15451
15452# as_fn_exit STATUS
15453# -----------------
15454# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15455as_fn_exit ()
15456{
15457 set +e
15458 as_fn_set_status $1
15459 exit $1
15460} # as_fn_exit
15461
15462# as_fn_unset VAR
15463# ---------------
15464# Portably unset VAR.
15465as_fn_unset ()
15466{
15467 { eval $1=; unset $1;}
15468}
15469as_unset=as_fn_unset
15470# as_fn_append VAR VALUE
15471# ----------------------
15472# Append the text in VALUE to the end of the definition contained in VAR. Take
15473# advantage of any shell optimizations that allow amortized linear growth over
15474# repeated appends, instead of the typical quadratic growth present in naive
15475# implementations.
15476if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15477 eval 'as_fn_append ()
15478 {
15479 eval $1+=\$2
15480 }'
15481else
15482 as_fn_append ()
15483 {
15484 eval $1=\$$1\$2
15485 }
15486fi # as_fn_append
15487
15488# as_fn_arith ARG...
15489# ------------------
15490# Perform arithmetic evaluation on the ARGs, and store the result in the
15491# global $as_val. Take advantage of shells that can avoid forks. The arguments
15492# must be portable across $(()) and expr.
15493if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15494 eval 'as_fn_arith ()
15495 {
15496 as_val=$(( $* ))
15497 }'
15498else
15499 as_fn_arith ()
15500 {
15501 as_val=`expr "$@" || test $? -eq 1`
15502 }
15503fi # as_fn_arith
15504
13b2be9c 15505
81ecdfbb
RW
15506if expr a : '\(a\)' >/dev/null 2>&1 &&
15507 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
15508 as_expr=expr
15509else
15510 as_expr=false
15511fi
15512
81ecdfbb 15513if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
15514 as_basename=basename
15515else
15516 as_basename=false
15517fi
15518
81ecdfbb
RW
15519if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15520 as_dirname=dirname
15521else
15522 as_dirname=false
15523fi
13b2be9c 15524
81ecdfbb 15525as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
15526$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15527 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15528 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15529$as_echo X/"$0" |
15530 sed '/^.*\/\([^/][^/]*\)\/*$/{
15531 s//\1/
15532 q
15533 }
15534 /^X\/\(\/\/\)$/{
15535 s//\1/
15536 q
15537 }
15538 /^X\/\(\/\).*/{
15539 s//\1/
15540 q
15541 }
15542 s/.*/./; q'`
13b2be9c 15543
13b2be9c
DJ
15544# Avoid depending upon Character Ranges.
15545as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15546as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15547as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15548as_cr_digits='0123456789'
15549as_cr_alnum=$as_cr_Letters$as_cr_digits
15550
81ecdfbb
RW
15551ECHO_C= ECHO_N= ECHO_T=
15552case `echo -n x` in #(((((
15553-n*)
15554 case `echo 'xy\c'` in
15555 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15556 xy) ECHO_C='\c';;
15557 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15558 ECHO_T=' ';;
15559 esac;;
15560*)
15561 ECHO_N='-n';;
13b2be9c 15562esac
252b5132 15563
81ecdfbb
RW
15564rm -f conf$$ conf$$.exe conf$$.file
15565if test -d conf$$.dir; then
15566 rm -f conf$$.dir/conf$$.file
252b5132 15567else
81ecdfbb
RW
15568 rm -f conf$$.dir
15569 mkdir conf$$.dir 2>/dev/null
252b5132 15570fi
81ecdfbb
RW
15571if (echo >conf$$.file) 2>/dev/null; then
15572 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 15573 as_ln_s='ln -s'
81ecdfbb
RW
15574 # ... but there are two gotchas:
15575 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15576 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15577 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15578 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15579 as_ln_s='cp -pR'
81ecdfbb
RW
15580 elif ln conf$$.file conf$$ 2>/dev/null; then
15581 as_ln_s=ln
15582 else
d0ac1c44 15583 as_ln_s='cp -pR'
13b2be9c 15584 fi
13b2be9c 15585else
d0ac1c44 15586 as_ln_s='cp -pR'
252b5132 15587fi
81ecdfbb
RW
15588rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15589rmdir conf$$.dir 2>/dev/null
252b5132 15590
81ecdfbb
RW
15591
15592# as_fn_mkdir_p
15593# -------------
15594# Create "$as_dir" as a directory, including parents if necessary.
15595as_fn_mkdir_p ()
15596{
15597
15598 case $as_dir in #(
15599 -*) as_dir=./$as_dir;;
15600 esac
15601 test -d "$as_dir" || eval $as_mkdir_p || {
15602 as_dirs=
15603 while :; do
15604 case $as_dir in #(
15605 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15606 *) as_qdir=$as_dir;;
15607 esac
15608 as_dirs="'$as_qdir' $as_dirs"
15609 as_dir=`$as_dirname -- "$as_dir" ||
15610$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15611 X"$as_dir" : 'X\(//\)[^/]' \| \
15612 X"$as_dir" : 'X\(//\)$' \| \
15613 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15614$as_echo X"$as_dir" |
15615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15616 s//\1/
15617 q
15618 }
15619 /^X\(\/\/\)[^/].*/{
15620 s//\1/
15621 q
15622 }
15623 /^X\(\/\/\)$/{
15624 s//\1/
15625 q
15626 }
15627 /^X\(\/\).*/{
15628 s//\1/
15629 q
15630 }
15631 s/.*/./; q'`
15632 test -d "$as_dir" && break
15633 done
15634 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15635 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
15636
15637
15638} # as_fn_mkdir_p
13b2be9c 15639if mkdir -p . 2>/dev/null; then
81ecdfbb 15640 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 15641else
ab509236 15642 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15643 as_mkdir_p=false
15644fi
81ecdfbb 15645
d0ac1c44
SM
15646
15647# as_fn_executable_p FILE
15648# -----------------------
15649# Test if FILE is an executable regular file.
15650as_fn_executable_p ()
15651{
15652 test -f "$1" && test -x "$1"
15653} # as_fn_executable_p
15654as_test_x='test -x'
15655as_executable_p=as_fn_executable_p
252b5132 15656
13b2be9c 15657# Sed expression to map a string onto a valid CPP name.
ab509236 15658as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15659
13b2be9c 15660# Sed expression to map a string onto a valid variable name.
ab509236 15661as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15662
d6d788bd 15663
13b2be9c 15664exec 6>&1
81ecdfbb
RW
15665## ----------------------------------- ##
15666## Main body of $CONFIG_STATUS script. ##
15667## ----------------------------------- ##
15668_ASEOF
15669test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15670
81ecdfbb
RW
15671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15673# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15674# values after options handling.
15675ac_log="
f48dfe41 15676This file was extended by gas $as_me 2.32.51, which was
d0ac1c44 15677generated by GNU Autoconf 2.69. Invocation command line was
d6d788bd 15678
13b2be9c
DJ
15679 CONFIG_FILES = $CONFIG_FILES
15680 CONFIG_HEADERS = $CONFIG_HEADERS
15681 CONFIG_LINKS = $CONFIG_LINKS
15682 CONFIG_COMMANDS = $CONFIG_COMMANDS
15683 $ $0 $@
252b5132 15684
81ecdfbb
RW
15685on `(hostname || uname -n) 2>/dev/null | sed 1q`
15686"
15687
13b2be9c 15688_ACEOF
252b5132 15689
81ecdfbb
RW
15690case $ac_config_files in *"
15691"*) set x $ac_config_files; shift; ac_config_files=$*;;
15692esac
13b2be9c 15693
81ecdfbb
RW
15694case $ac_config_headers in *"
15695"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15696esac
252b5132 15697
252b5132 15698
81ecdfbb
RW
15699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700# Files that config.status was made for.
15701config_files="$ac_config_files"
15702config_headers="$ac_config_headers"
15703config_commands="$ac_config_commands"
d6d788bd 15704
81ecdfbb 15705_ACEOF
252b5132 15706
81ecdfbb 15707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15708ac_cs_usage="\
81ecdfbb
RW
15709\`$as_me' instantiates files and other configuration actions
15710from templates according to the current configuration. Unless the files
15711and actions are specified as TAGs, all are instantiated by default.
252b5132 15712
81ecdfbb 15713Usage: $0 [OPTION]... [TAG]...
252b5132 15714
13b2be9c 15715 -h, --help print this help, then exit
81ecdfbb 15716 -V, --version print version number and configuration settings, then exit
d0ac1c44 15717 --config print configuration, then exit
81ecdfbb
RW
15718 -q, --quiet, --silent
15719 do not print progress messages
13b2be9c
DJ
15720 -d, --debug don't remove temporary files
15721 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15722 --file=FILE[:TEMPLATE]
15723 instantiate the configuration file FILE
15724 --header=FILE[:TEMPLATE]
15725 instantiate the configuration header FILE
252b5132 15726
13b2be9c
DJ
15727Configuration files:
15728$config_files
252b5132 15729
13b2be9c
DJ
15730Configuration headers:
15731$config_headers
252b5132 15732
13b2be9c
DJ
15733Configuration commands:
15734$config_commands
252b5132 15735
81ecdfbb 15736Report bugs to the package provider."
d6d788bd 15737
81ecdfbb
RW
15738_ACEOF
15739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15740ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13b2be9c 15741ac_cs_version="\\
f48dfe41 15742gas config.status 2.32.51
d0ac1c44
SM
15743configured by $0, generated by GNU Autoconf 2.69,
15744 with options \\"\$ac_cs_config\\"
d6d788bd 15745
d0ac1c44 15746Copyright (C) 2012 Free Software Foundation, Inc.
13b2be9c
DJ
15747This config.status script is free software; the Free Software Foundation
15748gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15749
15750ac_pwd='$ac_pwd'
15751srcdir='$srcdir'
15752INSTALL='$INSTALL'
15753MKDIR_P='$MKDIR_P'
15754AWK='$AWK'
15755test -n "\$AWK" || AWK=awk
13b2be9c 15756_ACEOF
d6d788bd 15757
81ecdfbb
RW
15758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15760ac_need_defaults=:
15761while test $# != 0
15762do
15763 case $1 in
d0ac1c44 15764 --*=?*)
81ecdfbb
RW
15765 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15766 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15767 ac_shift=:
c8615825 15768 ;;
d0ac1c44
SM
15769 --*=)
15770 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15771 ac_optarg=
15772 ac_shift=:
15773 ;;
81ecdfbb 15774 *)
13b2be9c
DJ
15775 ac_option=$1
15776 ac_optarg=$2
15777 ac_shift=shift
c8615825 15778 ;;
13b2be9c 15779 esac
252b5132 15780
13b2be9c
DJ
15781 case $ac_option in
15782 # Handling of the options.
13b2be9c
DJ
15783 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15784 ac_cs_recheck=: ;;
81ecdfbb
RW
15785 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15786 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15787 --config | --confi | --conf | --con | --co | --c )
15788 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15789 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15790 debug=: ;;
15791 --file | --fil | --fi | --f )
15792 $ac_shift
81ecdfbb
RW
15793 case $ac_optarg in
15794 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15795 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15796 esac
15797 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15798 ac_need_defaults=false;;
15799 --header | --heade | --head | --hea )
15800 $ac_shift
81ecdfbb
RW
15801 case $ac_optarg in
15802 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15803 esac
15804 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15805 ac_need_defaults=false;;
81ecdfbb
RW
15806 --he | --h)
15807 # Conflict between --help and --header
d0ac1c44 15808 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
15809Try \`$0 --help' for more information.";;
15810 --help | --hel | -h )
15811 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15814 ac_cs_silent=: ;;
c8615825 15815
13b2be9c 15816 # This is an error.
d0ac1c44 15817 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15818Try \`$0 --help' for more information." ;;
252b5132 15819
81ecdfbb
RW
15820 *) as_fn_append ac_config_targets " $1"
15821 ac_need_defaults=false ;;
252b5132 15822
13b2be9c
DJ
15823 esac
15824 shift
15825done
252b5132 15826
13b2be9c 15827ac_configure_extra_args=
d6d788bd 15828
13b2be9c
DJ
15829if $ac_cs_silent; then
15830 exec 6>/dev/null
15831 ac_configure_extra_args="$ac_configure_extra_args --silent"
15832fi
9b2b7d69 15833
13b2be9c 15834_ACEOF
81ecdfbb 15835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15836if \$ac_cs_recheck; then
d0ac1c44 15837 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15838 shift
15839 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15840 CONFIG_SHELL='$SHELL'
15841 export CONFIG_SHELL
15842 exec "\$@"
13b2be9c
DJ
15843fi
15844
15845_ACEOF
81ecdfbb
RW
15846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15847exec 5>>config.log
15848{
15849 echo
15850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15851## Running $as_me. ##
15852_ASBOX
15853 $as_echo "$ac_log"
15854} >&5
13b2be9c 15855
81ecdfbb
RW
15856_ACEOF
15857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15858#
81ecdfbb 15859# INIT-COMMANDS
9b2b7d69 15860#
13b2be9c 15861AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15862
15863
15864# The HP-UX ksh and POSIX shell print the target directory to stdout
15865# if CDPATH is set.
15866(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15867
15868sed_quote_subst='$sed_quote_subst'
15869double_quote_subst='$double_quote_subst'
15870delay_variable_subst='$delay_variable_subst'
3725885a
RW
15871macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15872macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15873enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15874enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15875pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15876enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15877SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15878ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15879host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15880host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15881host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15882build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15883build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15884build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15885SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15886Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15887GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15888EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15889FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15890LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15891NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15892LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15893max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15894ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15895exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15896lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15897lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15898lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15899reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15900reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15901OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15902deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15903file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15904AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15905AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15906STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15907RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15908old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15909old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15910old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15911lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15912CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15913CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15914compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15915GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15916lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15917lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15918lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15919lt_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"`'
15920objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15921MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15922lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15923lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15924lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15925lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15926lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15927need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15928DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15929NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15930LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15931OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15932OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15933libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15934shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15935extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15936archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15937enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15938export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15939whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15940compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15941old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15942old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15943archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15944archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15945module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15946module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15947with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15948allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15949no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15950hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15951hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15952hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15953hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15954hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15955hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15956hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15957hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15958inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15959link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15960fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15961always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15962export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15963exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15964include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15965prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15966file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15967variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15968need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15969need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15970version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15971runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15972shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15973shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15974libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15975library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15976soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15977install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15978postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15979postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15980finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15981finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15982hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15983sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15984sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15985hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15986enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15987enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15988enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15989old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15990striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15991
15992LTCC='$LTCC'
15993LTCFLAGS='$LTCFLAGS'
15994compiler='$compiler_DEFAULT'
15995
3725885a
RW
15996# A function that is used when there is no print builtin or printf.
15997func_fallback_echo ()
15998{
15999 eval 'cat <<_LTECHO_EOF
16000\$1
16001_LTECHO_EOF'
16002}
16003
d7040cdb 16004# Quote evaled strings.
3725885a
RW
16005for var in SHELL \
16006ECHO \
16007SED \
d7040cdb
SE
16008GREP \
16009EGREP \
16010FGREP \
16011LD \
16012NM \
16013LN_S \
16014lt_SP2NL \
16015lt_NL2SP \
16016reload_flag \
718a6fd8 16017OBJDUMP \
d7040cdb
SE
16018deplibs_check_method \
16019file_magic_cmd \
16020AR \
16021AR_FLAGS \
16022STRIP \
16023RANLIB \
16024CC \
16025CFLAGS \
16026compiler \
16027lt_cv_sys_global_symbol_pipe \
16028lt_cv_sys_global_symbol_to_cdecl \
16029lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16030lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 16031lt_prog_compiler_no_builtin_flag \
df7b86aa 16032lt_prog_compiler_wl \
f2c621e4 16033lt_prog_compiler_pic \
d7040cdb
SE
16034lt_prog_compiler_static \
16035lt_cv_prog_compiler_c_o \
16036need_locks \
718a6fd8
SE
16037DSYMUTIL \
16038NMEDIT \
16039LIPO \
16040OTOOL \
16041OTOOL64 \
d7040cdb
SE
16042shrext_cmds \
16043export_dynamic_flag_spec \
16044whole_archive_flag_spec \
16045compiler_needs_object \
16046with_gnu_ld \
16047allow_undefined_flag \
16048no_undefined_flag \
16049hardcode_libdir_flag_spec \
16050hardcode_libdir_flag_spec_ld \
16051hardcode_libdir_separator \
f2c621e4 16052fix_srcfile_path \
d7040cdb
SE
16053exclude_expsyms \
16054include_expsyms \
16055file_list_spec \
16056variables_saved_for_relink \
16057libname_spec \
16058library_names_spec \
16059soname_spec \
3725885a 16060install_override_mode \
d7040cdb
SE
16061finish_eval \
16062old_striplib \
16063striplib; do
3725885a 16064 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16065 *[\\\\\\\`\\"\\\$]*)
3725885a 16066 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
16067 ;;
16068 *)
16069 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16070 ;;
16071 esac
16072done
16073
16074# Double-quote double-evaled strings.
16075for var in reload_cmds \
16076old_postinstall_cmds \
16077old_postuninstall_cmds \
16078old_archive_cmds \
16079extract_expsyms_cmds \
16080old_archive_from_new_cmds \
16081old_archive_from_expsyms_cmds \
16082archive_cmds \
16083archive_expsym_cmds \
16084module_cmds \
16085module_expsym_cmds \
16086export_symbols_cmds \
16087prelink_cmds \
16088postinstall_cmds \
16089postuninstall_cmds \
16090finish_cmds \
16091sys_lib_search_path_spec \
16092sys_lib_dlsearch_path_spec; do
3725885a 16093 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16094 *[\\\\\\\`\\"\\\$]*)
3725885a 16095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
16096 ;;
16097 *)
16098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16099 ;;
16100 esac
16101done
16102
d7040cdb
SE
16103ac_aux_dir='$ac_aux_dir'
16104xsi_shell='$xsi_shell'
16105lt_shell_append='$lt_shell_append'
16106
16107# See if we are running on zsh, and set the options which allow our
16108# commands through without removal of \ escapes INIT.
16109if test -n "\${ZSH_VERSION+set}" ; then
16110 setopt NO_GLOB_SUBST
16111fi
16112
16113
16114 PACKAGE='$PACKAGE'
16115 VERSION='$VERSION'
16116 TIMESTAMP='$TIMESTAMP'
16117 RM='$RM'
16118 ofile='$ofile'
16119
16120
16121
20e95c23
DJ
16122# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16123 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16124 # from automake.
16125 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16126 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16127 LINGUAS="${LINGUAS-%UNSET%}"
16128
13b2be9c
DJ
16129target_cpu_type=${target_cpu_type}
16130 cgen_cpu_prefix=${cgen_cpu_prefix}
16131 obj_format=${obj_format}
16132 te_file=${te_file}
16133
16134_ACEOF
16135
81ecdfbb 16136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 16137
81ecdfbb 16138# Handling of arguments.
13b2be9c 16139for ac_config_target in $ac_config_targets
9b2b7d69 16140do
81ecdfbb
RW
16141 case $ac_config_target in
16142 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16143 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16144 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16145 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
16146 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16147 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16149 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16150 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16151 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16152
d0ac1c44 16153 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
16154 esac
16155done
16156
81ecdfbb 16157
13b2be9c
DJ
16158# If the user did not use the arguments to specify the items to instantiate,
16159# then the envvar interface is used. Set only those that are not.
16160# We use the long form for the default assignment because of an extremely
16161# bizarre bug on SunOS 4.1.3.
16162if $ac_need_defaults; then
16163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16165 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16166fi
16167
16168# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16169# simply because there is no reason against having it here, and in addition,
13b2be9c 16170# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16171# Hook for its removal unless debugging.
16172# Note that there is a small window in which the directory will not be cleaned:
16173# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
16174$debug ||
16175{
d0ac1c44 16176 tmp= ac_tmp=
81ecdfbb 16177 trap 'exit_status=$?
d0ac1c44
SM
16178 : "${ac_tmp:=$tmp}"
16179 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
16180' 0
16181 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 16182}
13b2be9c 16183# Create a (secure) tmp directory for tmp files.
9b2b7d69 16184
13b2be9c 16185{
81ecdfbb 16186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 16187 test -d "$tmp"
13b2be9c
DJ
16188} ||
16189{
81ecdfbb
RW
16190 tmp=./conf$$-$RANDOM
16191 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
16192} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16193ac_tmp=$tmp
81ecdfbb
RW
16194
16195# Set up the scripts for CONFIG_FILES section.
16196# No need to generate them if there are no CONFIG_FILES.
16197# This happens for instance with `./config.status config.h'.
16198if test -n "$CONFIG_FILES"; then
16199
16200
16201ac_cr=`echo X | tr X '\015'`
16202# On cygwin, bash can eat \r inside `` if the user requested igncr.
16203# But we know of no other shell where ac_cr would be empty at this
16204# point, so we can use a bashism as a fallback.
16205if test "x$ac_cr" = x; then
16206 eval ac_cr=\$\'\\r\'
16207fi
16208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 16210 ac_cs_awk_cr='\\r'
81ecdfbb
RW
16211else
16212 ac_cs_awk_cr=$ac_cr
16213fi
16214
d0ac1c44 16215echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
16216_ACEOF
16217
16218
16219{
16220 echo "cat >conf$$subs.awk <<_ACEOF" &&
16221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16222 echo "_ACEOF"
16223} >conf$$subs.sh ||
d0ac1c44
SM
16224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16225ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
16226ac_delim='%!_!# '
16227for ac_last_try in false false false false false :; do
16228 . ./conf$$subs.sh ||
d0ac1c44 16229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16230
16231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16232 if test $ac_delim_n = $ac_delim_num; then
16233 break
16234 elif $ac_last_try; then
d0ac1c44 16235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16236 else
16237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16238 fi
16239done
16240rm -f conf$$subs.sh
16241
16242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 16243cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
16244_ACEOF
16245sed -n '
16246h
16247s/^/S["/; s/!.*/"]=/
16248p
16249g
16250s/^[^!]*!//
16251:repl
16252t repl
16253s/'"$ac_delim"'$//
16254t delim
16255:nl
16256h
d0ac1c44 16257s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16258t more1
16259s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16260p
16261n
16262b repl
16263:more1
16264s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16265p
16266g
16267s/.\{148\}//
16268t nl
16269:delim
16270h
d0ac1c44 16271s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16272t more2
16273s/["\\]/\\&/g; s/^/"/; s/$/"/
16274p
16275b
16276:more2
16277s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16278p
16279g
16280s/.\{148\}//
16281t delim
16282' <conf$$subs.awk | sed '
16283/^[^""]/{
16284 N
16285 s/\n//
16286}
16287' >>$CONFIG_STATUS || ac_write_fail=1
16288rm -f conf$$subs.awk
16289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290_ACAWK
d0ac1c44 16291cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16292 for (key in S) S_is_set[key] = 1
16293 FS = "\a"
16294
16295}
13b2be9c 16296{
81ecdfbb
RW
16297 line = $ 0
16298 nfields = split(line, field, "@")
16299 substed = 0
16300 len = length(field[1])
16301 for (i = 2; i < nfields; i++) {
16302 key = field[i]
16303 keylen = length(key)
16304 if (S_is_set[key]) {
16305 value = S[key]
16306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16307 len += length(value) + length(field[++i])
16308 substed = 1
16309 } else
16310 len += 1 + keylen
16311 }
16312
16313 print line
13b2be9c 16314}
9b2b7d69 16315
81ecdfbb
RW
16316_ACAWK
16317_ACEOF
16318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16321else
16322 cat
d0ac1c44
SM
16323fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
16325_ACEOF
16326
d0ac1c44
SM
16327# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16328# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16329# trailing colons and then remove the whole line if VPATH becomes empty
16330# (actually we leave an empty line to preserve line numbers).
16331if test "x$srcdir" = x.; then
d0ac1c44
SM
16332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16333h
16334s///
16335s/^/:/
16336s/[ ]*$/:/
16337s/:\$(srcdir):/:/g
16338s/:\${srcdir}:/:/g
16339s/:@srcdir@:/:/g
16340s/^:*//
81ecdfbb 16341s/:*$//
d0ac1c44
SM
16342x
16343s/\(=[ ]*\).*/\1/
16344G
16345s/\n//
81ecdfbb
RW
16346s/^[^=]*=[ ]*$//
16347}'
16348fi
16349
16350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351fi # test -n "$CONFIG_FILES"
13b2be9c 16352
81ecdfbb
RW
16353# Set up the scripts for CONFIG_HEADERS section.
16354# No need to generate them if there are no CONFIG_HEADERS.
16355# This happens for instance with `./config.status Makefile'.
16356if test -n "$CONFIG_HEADERS"; then
d0ac1c44 16357cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
16358BEGIN {
16359_ACEOF
13b2be9c 16360
81ecdfbb
RW
16361# Transform confdefs.h into an awk script `defines.awk', embedded as
16362# here-document in config.status, that substitutes the proper values into
16363# config.h.in to produce config.h.
9b2b7d69 16364
81ecdfbb
RW
16365# Create a delimiter string that does not exist in confdefs.h, to ease
16366# handling of long lines.
16367ac_delim='%!_!# '
16368for ac_last_try in false false :; do
d0ac1c44
SM
16369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16370 if test -z "$ac_tt"; then
81ecdfbb
RW
16371 break
16372 elif $ac_last_try; then
d0ac1c44 16373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
16374 else
16375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16376 fi
16377done
16378
16379# For the awk script, D is an array of macro values keyed by name,
16380# likewise P contains macro parameters if any. Preserve backslash
16381# newline sequences.
16382
16383ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16384sed -n '
16385s/.\{148\}/&'"$ac_delim"'/g
16386t rset
16387:rset
16388s/^[ ]*#[ ]*define[ ][ ]*/ /
16389t def
16390d
16391:def
16392s/\\$//
16393t bsnl
16394s/["\\]/\\&/g
16395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16396D["\1"]=" \3"/p
16397s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16398d
16399:bsnl
16400s/["\\]/\\&/g
16401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16402D["\1"]=" \3\\\\\\n"\\/p
16403t cont
16404s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16405t cont
16406d
16407:cont
16408n
16409s/.\{148\}/&'"$ac_delim"'/g
16410t clear
16411:clear
16412s/\\$//
16413t bsnlc
16414s/["\\]/\\&/g; s/^/"/; s/$/"/p
16415d
16416:bsnlc
16417s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16418b cont
16419' <confdefs.h | sed '
16420s/'"$ac_delim"'/"\\\
16421"/g' >>$CONFIG_STATUS || ac_write_fail=1
16422
16423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16424 for (key in D) D_is_set[key] = 1
16425 FS = "\a"
16426}
16427/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16428 line = \$ 0
16429 split(line, arg, " ")
16430 if (arg[1] == "#") {
16431 defundef = arg[2]
16432 mac1 = arg[3]
16433 } else {
16434 defundef = substr(arg[1], 2)
16435 mac1 = arg[2]
16436 }
16437 split(mac1, mac2, "(") #)
16438 macro = mac2[1]
16439 prefix = substr(line, 1, index(line, defundef) - 1)
16440 if (D_is_set[macro]) {
16441 # Preserve the white space surrounding the "#".
16442 print prefix "define", macro P[macro] D[macro]
16443 next
16444 } else {
16445 # Replace #undef with comments. This is necessary, for example,
16446 # in the case of _POSIX_SOURCE, which is predefined and required
16447 # on some systems where configure will not decide to define it.
16448 if (defundef == "undef") {
16449 print "/*", prefix defundef, macro, "*/"
16450 next
16451 }
16452 }
16453}
16454{ print }
16455_ACAWK
13b2be9c 16456_ACEOF
81ecdfbb 16457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 16458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 16459fi # test -n "$CONFIG_HEADERS"
13b2be9c 16460
81ecdfbb
RW
16461
16462eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16463shift
16464for ac_tag
16465do
16466 case $ac_tag in
16467 :[FHLC]) ac_mode=$ac_tag; continue;;
16468 esac
16469 case $ac_mode$ac_tag in
16470 :[FHL]*:*);;
d0ac1c44 16471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16472 :[FH]-) ac_tag=-:-;;
16473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16474 esac
16475 ac_save_IFS=$IFS
16476 IFS=:
16477 set x $ac_tag
16478 IFS=$ac_save_IFS
16479 shift
16480 ac_file=$1
16481 shift
16482
16483 case $ac_mode in
16484 :L) ac_source=$1;;
16485 :[FH])
16486 ac_file_inputs=
16487 for ac_f
16488 do
16489 case $ac_f in
d0ac1c44 16490 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16491 *) # Look for the file first in the build tree, then in the source tree
16492 # (if the path is not absolute). The absolute path cannot be DOS-style,
16493 # because $ac_f cannot contain `:'.
16494 test -f "$ac_f" ||
16495 case $ac_f in
16496 [\\/$]*) false;;
16497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16498 esac ||
d0ac1c44 16499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16500 esac
16501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16502 as_fn_append ac_file_inputs " '$ac_f'"
16503 done
16504
16505 # Let's still pretend it is `configure' which instantiates (i.e., don't
16506 # use $as_me), people would be surprised to read:
16507 # /* config.h. Generated by config.status. */
16508 configure_input='Generated from '`
16509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16510 `' by configure.'
16511 if test x"$ac_file" != x-; then
16512 configure_input="$ac_file. $configure_input"
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16514$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 16515 fi
81ecdfbb
RW
16516 # Neutralize special characters interpreted by sed in replacement strings.
16517 case $configure_input in #(
16518 *\&* | *\|* | *\\* )
16519 ac_sed_conf_input=`$as_echo "$configure_input" |
16520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16521 *) ac_sed_conf_input=$configure_input;;
16522 esac
252b5132 16523
81ecdfbb 16524 case $ac_tag in
d0ac1c44
SM
16525 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16527 esac
16528 ;;
252b5132 16529 esac
9b2b7d69 16530
81ecdfbb 16531 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 16532$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16533 X"$ac_file" : 'X\(//\)[^/]' \| \
16534 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16536$as_echo X"$ac_file" |
16537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16538 s//\1/
16539 q
16540 }
16541 /^X\(\/\/\)[^/].*/{
16542 s//\1/
16543 q
16544 }
16545 /^X\(\/\/\)$/{
16546 s//\1/
16547 q
16548 }
16549 /^X\(\/\).*/{
16550 s//\1/
16551 q
16552 }
16553 s/.*/./; q'`
16554 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
16555 ac_builddir=.
16556
81ecdfbb
RW
16557case "$ac_dir" in
16558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16559*)
16560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16561 # A ".." for each directory in $ac_dir_suffix.
16562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16563 case $ac_top_builddir_sub in
16564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16566 esac ;;
16567esac
16568ac_abs_top_builddir=$ac_pwd
16569ac_abs_builddir=$ac_pwd$ac_dir_suffix
16570# for backward compatibility:
16571ac_top_builddir=$ac_top_build_prefix
9b2b7d69 16572
13b2be9c 16573case $srcdir in
81ecdfbb 16574 .) # We are building in place.
13b2be9c 16575 ac_srcdir=.
81ecdfbb
RW
16576 ac_top_srcdir=$ac_top_builddir_sub
16577 ac_abs_top_srcdir=$ac_pwd ;;
16578 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 16579 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16580 ac_top_srcdir=$srcdir
16581 ac_abs_top_srcdir=$srcdir ;;
16582 *) # Relative name.
16583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16584 ac_top_srcdir=$ac_top_build_prefix$srcdir
16585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 16586esac
81ecdfbb 16587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 16588
252b5132 16589
81ecdfbb
RW
16590 case $ac_mode in
16591 :F)
16592 #
16593 # CONFIG_FILE
16594 #
9b2b7d69 16595
13b2be9c
DJ
16596 case $INSTALL in
16597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16599 esac
16600 ac_MKDIR_P=$MKDIR_P
16601 case $MKDIR_P in
16602 [\\/$]* | ?:[\\/]* ) ;;
16603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 16604 esac
81ecdfbb 16605_ACEOF
9b2b7d69 16606
81ecdfbb
RW
16607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16608# If the template does not know about datarootdir, expand it.
16609# FIXME: This hack should be removed a few years after 2.60.
16610ac_datarootdir_hack=; ac_datarootdir_seen=
16611ac_sed_dataroot='
16612/datarootdir/ {
16613 p
16614 q
16615}
16616/@datadir@/p
16617/@docdir@/p
16618/@infodir@/p
16619/@localedir@/p
16620/@mandir@/p'
16621case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16622*datarootdir*) ac_datarootdir_seen=yes;;
16623*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16625$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16626_ACEOF
16627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16628 ac_datarootdir_hack='
16629 s&@datadir@&$datadir&g
16630 s&@docdir@&$docdir&g
16631 s&@infodir@&$infodir&g
16632 s&@localedir@&$localedir&g
16633 s&@mandir@&$mandir&g
16634 s&\\\${datarootdir}&$datarootdir&g' ;;
16635esac
13b2be9c 16636_ACEOF
81ecdfbb
RW
16637
16638# Neutralize VPATH when `$srcdir' = `.'.
16639# Shell code in configure.ac might set extrasub.
16640# FIXME: do we really want to maintain this feature?
16641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16642ac_sed_extra="$ac_vpsub
13b2be9c
DJ
16643$extrasub
16644_ACEOF
81ecdfbb 16645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
16646:t
16647/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16648s|@configure_input@|$ac_sed_conf_input|;t t
16649s&@top_builddir@&$ac_top_builddir_sub&;t t
16650s&@top_build_prefix@&$ac_top_build_prefix&;t t
16651s&@srcdir@&$ac_srcdir&;t t
16652s&@abs_srcdir@&$ac_abs_srcdir&;t t
16653s&@top_srcdir@&$ac_top_srcdir&;t t
16654s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16655s&@builddir@&$ac_builddir&;t t
16656s&@abs_builddir@&$ac_abs_builddir&;t t
16657s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16658s&@INSTALL@&$ac_INSTALL&;t t
16659s&@MKDIR_P@&$ac_MKDIR_P&;t t
16660$ac_datarootdir_hack
16661"
d0ac1c44
SM
16662eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16663 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16664
16665test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16666 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16668 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16670which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16671$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16672which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16673
d0ac1c44 16674 rm -f "$ac_tmp/stdin"
13b2be9c 16675 case $ac_file in
d0ac1c44
SM
16676 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16677 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16678 esac \
d0ac1c44 16679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16680 ;;
16681 :H)
16682 #
16683 # CONFIG_HEADER
16684 #
13b2be9c 16685 if test x"$ac_file" != x-; then
81ecdfbb
RW
16686 {
16687 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16688 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16689 } >"$ac_tmp/config.h" \
16690 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16691 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16693$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16694 else
81ecdfbb 16695 rm -f "$ac_file"
d0ac1c44
SM
16696 mv "$ac_tmp/config.h" "$ac_file" \
16697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9b2b7d69 16698 fi
13b2be9c 16699 else
81ecdfbb 16700 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16701 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16702 || as_fn_error $? "could not create -" "$LINENO" 5
9b2b7d69 16703 fi
81ecdfbb
RW
16704# Compute "$ac_file"'s index in $config_headers.
16705_am_arg="$ac_file"
13b2be9c
DJ
16706_am_stamp_count=1
16707for _am_header in $config_headers :; do
16708 case $_am_header in
81ecdfbb 16709 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16710 break ;;
16711 * )
16712 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16713 esac
16714done
81ecdfbb
RW
16715echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16716$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16717 X"$_am_arg" : 'X\(//\)[^/]' \| \
16718 X"$_am_arg" : 'X\(//\)$' \| \
16719 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16720$as_echo X"$_am_arg" |
16721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16722 s//\1/
16723 q
16724 }
16725 /^X\(\/\/\)[^/].*/{
16726 s//\1/
16727 q
16728 }
16729 /^X\(\/\/\)$/{
16730 s//\1/
16731 q
16732 }
16733 /^X\(\/\).*/{
16734 s//\1/
16735 q
16736 }
16737 s/.*/./; q'`/stamp-h$_am_stamp_count
16738 ;;
ab509236 16739
81ecdfbb
RW
16740 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16741$as_echo "$as_me: executing $ac_file commands" >&6;}
16742 ;;
16743 esac
13b2be9c
DJ
16744
16745
81ecdfbb
RW
16746 case $ac_file$ac_mode in
16747 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 16748 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
16749 # are listed without --file. Let's play safe and only enable the eval
16750 # if we detect the quoting.
16751 case $CONFIG_FILES in
16752 *\'*) eval set x "$CONFIG_FILES" ;;
16753 *) set x $CONFIG_FILES ;;
16754 esac
16755 shift
16756 for mf
16757 do
16758 # Strip MF so we end up with the name of the file.
16759 mf=`echo "$mf" | sed -e 's/:.*$//'`
16760 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 16761 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
16762 # some people rename them; so instead we look at the file content.
16763 # Grep'ing the first line is not enough: some people post-process
16764 # each Makefile.in and add a new line on top of each file to say so.
16765 # Grep'ing the whole file is not good either: AIX grep has a line
16766 # limit of 2048, but all sed's we know have understand at least 4000.
16767 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16768 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16769$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16770 X"$mf" : 'X\(//\)[^/]' \| \
16771 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16772 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16773$as_echo X"$mf" |
16774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16775 s//\1/
16776 q
16777 }
16778 /^X\(\/\/\)[^/].*/{
16779 s//\1/
16780 q
16781 }
16782 /^X\(\/\/\)$/{
16783 s//\1/
16784 q
16785 }
16786 /^X\(\/\).*/{
16787 s//\1/
16788 q
16789 }
16790 s/.*/./; q'`
16791 else
16792 continue
16793 fi
16794 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 16795 # from the Makefile without running 'make'.
81ecdfbb
RW
16796 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16797 test -z "$DEPDIR" && continue
16798 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 16799 test -z "$am__include" && continue
81ecdfbb 16800 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
16801 # Find all dependency output files, they are included files with
16802 # $(DEPDIR) in their names. We invoke sed twice because it is the
16803 # simplest approach to changing $(DEPDIR) to its actual value in the
16804 # expansion.
16805 for file in `sed -n "
16806 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 16807 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
16808 # Make sure the directory exists.
16809 test -f "$dirpart/$file" && continue
16810 fdir=`$as_dirname -- "$file" ||
13b2be9c 16811$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16812 X"$file" : 'X\(//\)[^/]' \| \
16813 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16814 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16815$as_echo X"$file" |
16816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16817 s//\1/
16818 q
16819 }
16820 /^X\(\/\/\)[^/].*/{
16821 s//\1/
16822 q
16823 }
16824 /^X\(\/\/\)$/{
16825 s//\1/
16826 q
16827 }
16828 /^X\(\/\).*/{
16829 s//\1/
16830 q
16831 }
16832 s/.*/./; q'`
16833 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16834 # echo "creating $dirpart/$file"
16835 echo '# dummy' > "$dirpart/$file"
13b2be9c 16836 done
13b2be9c 16837 done
81ecdfbb 16838}
d7040cdb 16839 ;;
81ecdfbb 16840 "libtool":C)
d7040cdb
SE
16841
16842 # See if we are running on zsh, and set the options which allow our
16843 # commands through without removal of \ escapes.
16844 if test -n "${ZSH_VERSION+set}" ; then
16845 setopt NO_GLOB_SUBST
16846 fi
16847
16848 cfgfile="${ofile}T"
16849 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16850 $RM "$cfgfile"
16851
16852 cat <<_LT_EOF >> "$cfgfile"
16853#! $SHELL
16854
16855# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16856# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16857# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16858# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16859#
718a6fd8 16860# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16861# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16862# Written by Gordon Matzigkeit, 1996
d7040cdb 16863#
718a6fd8 16864# This file is part of GNU Libtool.
d7040cdb 16865#
718a6fd8
SE
16866# GNU Libtool is free software; you can redistribute it and/or
16867# modify it under the terms of the GNU General Public License as
16868# published by the Free Software Foundation; either version 2 of
16869# the License, or (at your option) any later version.
d7040cdb 16870#
718a6fd8
SE
16871# As a special exception to the GNU General Public License,
16872# if you distribute this file as part of a program or library that
16873# is built using GNU Libtool, you may include this file under the
16874# same distribution terms that you use for the rest of that program.
d7040cdb 16875#
718a6fd8
SE
16876# GNU Libtool is distributed in the hope that it will be useful,
16877# but WITHOUT ANY WARRANTY; without even the implied warranty of
16878# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16879# GNU General Public License for more details.
d7040cdb 16880#
718a6fd8
SE
16881# You should have received a copy of the GNU General Public License
16882# along with GNU Libtool; see the file COPYING. If not, a copy
16883# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16884# obtained by writing to the Free Software Foundation, Inc.,
16885# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16886
16887
16888# The names of the tagged configurations supported by this script.
16889available_tags=""
16890
16891# ### BEGIN LIBTOOL CONFIG
16892
16893# Which release of libtool.m4 was used?
16894macro_version=$macro_version
16895macro_revision=$macro_revision
16896
16897# Whether or not to build shared libraries.
16898build_libtool_libs=$enable_shared
16899
16900# Whether or not to build static libraries.
16901build_old_libs=$enable_static
16902
16903# What type of objects to build.
16904pic_mode=$pic_mode
16905
16906# Whether or not to optimize for fast installation.
16907fast_install=$enable_fast_install
16908
3725885a
RW
16909# Shell to use when invoking shell scripts.
16910SHELL=$lt_SHELL
16911
16912# An echo program that protects backslashes.
16913ECHO=$lt_ECHO
16914
d7040cdb
SE
16915# The host system.
16916host_alias=$host_alias
16917host=$host
16918host_os=$host_os
16919
16920# The build system.
16921build_alias=$build_alias
16922build=$build
16923build_os=$build_os
16924
16925# A sed program that does not truncate output.
16926SED=$lt_SED
16927
16928# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16929Xsed="\$SED -e 1s/^X//"
16930
16931# A grep program that handles long lines.
16932GREP=$lt_GREP
16933
16934# An ERE matcher.
16935EGREP=$lt_EGREP
16936
16937# A literal string matcher.
16938FGREP=$lt_FGREP
16939
16940# A BSD- or MS-compatible name lister.
16941NM=$lt_NM
16942
16943# Whether we need soft or hard links.
16944LN_S=$lt_LN_S
16945
16946# What is the maximum length of a command?
16947max_cmd_len=$max_cmd_len
16948
16949# Object file suffix (normally "o").
16950objext=$ac_objext
16951
16952# Executable file suffix (normally "").
16953exeext=$exeext
16954
16955# whether the shell understands "unset".
16956lt_unset=$lt_unset
16957
16958# turn spaces into newlines.
16959SP2NL=$lt_lt_SP2NL
16960
16961# turn newlines into spaces.
16962NL2SP=$lt_lt_NL2SP
16963
718a6fd8
SE
16964# An object symbol dumper.
16965OBJDUMP=$lt_OBJDUMP
16966
d7040cdb
SE
16967# Method to check whether dependent libraries are shared objects.
16968deplibs_check_method=$lt_deplibs_check_method
16969
f2c621e4 16970# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16971file_magic_cmd=$lt_file_magic_cmd
16972
16973# The archiver.
16974AR=$lt_AR
16975AR_FLAGS=$lt_AR_FLAGS
16976
16977# A symbol stripping program.
16978STRIP=$lt_STRIP
16979
16980# Commands used to install an old-style archive.
16981RANLIB=$lt_RANLIB
16982old_postinstall_cmds=$lt_old_postinstall_cmds
16983old_postuninstall_cmds=$lt_old_postuninstall_cmds
16984
3725885a
RW
16985# Whether to use a lock for old archive extraction.
16986lock_old_archive_extraction=$lock_old_archive_extraction
16987
d7040cdb
SE
16988# A C compiler.
16989LTCC=$lt_CC
16990
16991# LTCC compiler flags.
16992LTCFLAGS=$lt_CFLAGS
16993
16994# Take the output of nm and produce a listing of raw symbols and C names.
16995global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16996
16997# Transform the output of nm in a proper C declaration.
16998global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16999
17000# Transform the output of nm in a C name address pair.
17001global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17002
718a6fd8
SE
17003# Transform the output of nm in a C name address pair when lib prefix is needed.
17004global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17005
d7040cdb
SE
17006# The name of the directory that contains temporary libtool files.
17007objdir=$objdir
17008
d7040cdb
SE
17009# Used to examine libraries when file_magic_cmd begins with "file".
17010MAGIC_CMD=$MAGIC_CMD
17011
17012# Must we lock files when doing compilation?
17013need_locks=$lt_need_locks
17014
718a6fd8
SE
17015# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17016DSYMUTIL=$lt_DSYMUTIL
17017
17018# Tool to change global to local symbols on Mac OS X.
17019NMEDIT=$lt_NMEDIT
17020
17021# Tool to manipulate fat objects and archives on Mac OS X.
17022LIPO=$lt_LIPO
17023
17024# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17025OTOOL=$lt_OTOOL
17026
17027# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17028OTOOL64=$lt_OTOOL64
17029
d7040cdb
SE
17030# Old archive suffix (normally "a").
17031libext=$libext
17032
17033# Shared library suffix (normally ".so").
17034shrext_cmds=$lt_shrext_cmds
17035
17036# The commands to extract the exported symbol list from a shared archive.
17037extract_expsyms_cmds=$lt_extract_expsyms_cmds
17038
17039# Variables whose values should be saved in libtool wrapper scripts and
17040# restored at link time.
17041variables_saved_for_relink=$lt_variables_saved_for_relink
17042
17043# Do we need the "lib" prefix for modules?
17044need_lib_prefix=$need_lib_prefix
17045
17046# Do we need a version for libraries?
17047need_version=$need_version
17048
17049# Library versioning type.
17050version_type=$version_type
17051
17052# Shared library runtime path variable.
17053runpath_var=$runpath_var
17054
17055# Shared library path variable.
17056shlibpath_var=$shlibpath_var
17057
17058# Is shlibpath searched before the hard-coded library search path?
17059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17060
17061# Format of library name prefix.
17062libname_spec=$lt_libname_spec
17063
17064# List of archive names. First name is the real one, the rest are links.
17065# The last name is the one that the linker finds with -lNAME
17066library_names_spec=$lt_library_names_spec
17067
17068# The coded name of the library, if different from the real name.
17069soname_spec=$lt_soname_spec
17070
3725885a
RW
17071# Permission mode override for installation of shared libraries.
17072install_override_mode=$lt_install_override_mode
17073
d7040cdb
SE
17074# Command to use after installation of a shared archive.
17075postinstall_cmds=$lt_postinstall_cmds
17076
17077# Command to use after uninstallation of a shared archive.
17078postuninstall_cmds=$lt_postuninstall_cmds
17079
17080# Commands used to finish a libtool library installation in a directory.
17081finish_cmds=$lt_finish_cmds
17082
17083# As "finish_cmds", except a single script fragment to be evaled but
17084# not shown.
17085finish_eval=$lt_finish_eval
17086
17087# Whether we should hardcode library paths into libraries.
17088hardcode_into_libs=$hardcode_into_libs
17089
17090# Compile-time system search path for libraries.
17091sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17092
17093# Run-time system search path for libraries.
17094sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17095
17096# Whether dlopen is supported.
17097dlopen_support=$enable_dlopen
17098
17099# Whether dlopen of programs is supported.
17100dlopen_self=$enable_dlopen_self
17101
17102# Whether dlopen of statically linked programs is supported.
17103dlopen_self_static=$enable_dlopen_self_static
17104
17105# Commands to strip libraries.
17106old_striplib=$lt_old_striplib
17107striplib=$lt_striplib
17108
17109
17110# The linker used to build libraries.
17111LD=$lt_LD
17112
3725885a
RW
17113# How to create reloadable object files.
17114reload_flag=$lt_reload_flag
17115reload_cmds=$lt_reload_cmds
17116
d7040cdb
SE
17117# Commands used to build an old-style archive.
17118old_archive_cmds=$lt_old_archive_cmds
17119
17120# A language specific compiler.
17121CC=$lt_compiler
17122
17123# Is the compiler the GNU compiler?
17124with_gcc=$GCC
17125
17126# Compiler flag to turn off builtin functions.
17127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17128
df7b86aa
NC
17129# How to pass a linker flag through the compiler.
17130wl=$lt_lt_prog_compiler_wl
17131
f2c621e4
AS
17132# Additional compiler flags for building library objects.
17133pic_flag=$lt_lt_prog_compiler_pic
17134
d7040cdb
SE
17135# Compiler flag to prevent dynamic linking.
17136link_static_flag=$lt_lt_prog_compiler_static
17137
17138# Does compiler simultaneously support -c and -o options?
17139compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17140
17141# Whether or not to add -lc for building shared libraries.
17142build_libtool_need_lc=$archive_cmds_need_lc
17143
17144# Whether or not to disallow shared libs when runtime libs are static.
17145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17146
17147# Compiler flag to allow reflexive dlopens.
17148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17149
17150# Compiler flag to generate shared objects directly from archives.
17151whole_archive_flag_spec=$lt_whole_archive_flag_spec
17152
17153# Whether the compiler copes with passing no objects directly.
17154compiler_needs_object=$lt_compiler_needs_object
17155
17156# Create an old-style archive from a shared archive.
17157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17158
17159# Create a temporary old-style archive to link instead of a shared archive.
17160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17161
17162# Commands used to build a shared archive.
17163archive_cmds=$lt_archive_cmds
17164archive_expsym_cmds=$lt_archive_expsym_cmds
17165
17166# Commands used to build a loadable module if different from building
17167# a shared archive.
17168module_cmds=$lt_module_cmds
17169module_expsym_cmds=$lt_module_expsym_cmds
17170
17171# Whether we are building with GNU ld or not.
17172with_gnu_ld=$lt_with_gnu_ld
17173
17174# Flag that allows shared libraries with undefined symbols to be built.
17175allow_undefined_flag=$lt_allow_undefined_flag
17176
17177# Flag that enforces no undefined symbols.
17178no_undefined_flag=$lt_no_undefined_flag
17179
17180# Flag to hardcode \$libdir into a binary during linking.
17181# This must work even if \$libdir does not exist
17182hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17183
17184# If ld is used when linking, flag to hardcode \$libdir into a binary
17185# during linking. This must work even if \$libdir does not exist.
17186hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17187
17188# Whether we need a single "-rpath" flag with a separated argument.
17189hardcode_libdir_separator=$lt_hardcode_libdir_separator
17190
17191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17192# DIR into the resulting binary.
17193hardcode_direct=$hardcode_direct
17194
17195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17196# DIR into the resulting binary and the resulting library dependency is
17197# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17198# library is relocated.
17199hardcode_direct_absolute=$hardcode_direct_absolute
17200
17201# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17202# into the resulting binary.
17203hardcode_minus_L=$hardcode_minus_L
17204
17205# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17206# into the resulting binary.
17207hardcode_shlibpath_var=$hardcode_shlibpath_var
17208
17209# Set to "yes" if building a shared library automatically hardcodes DIR
17210# into the library and all subsequent libraries and executables linked
17211# against it.
17212hardcode_automatic=$hardcode_automatic
17213
17214# Set to yes if linker adds runtime paths of dependent libraries
17215# to runtime path list.
17216inherit_rpath=$inherit_rpath
17217
17218# Whether libtool must link a program against all its dependency libraries.
17219link_all_deplibs=$link_all_deplibs
17220
f2c621e4
AS
17221# Fix the shell variable \$srcfile for the compiler.
17222fix_srcfile_path=$lt_fix_srcfile_path
17223
d7040cdb
SE
17224# Set to "yes" if exported symbols are required.
17225always_export_symbols=$always_export_symbols
17226
17227# The commands to list exported symbols.
17228export_symbols_cmds=$lt_export_symbols_cmds
17229
17230# Symbols that should not be listed in the preloaded symbols.
17231exclude_expsyms=$lt_exclude_expsyms
17232
17233# Symbols that must always be exported.
17234include_expsyms=$lt_include_expsyms
17235
17236# Commands necessary for linking programs (against libraries) with templates.
17237prelink_cmds=$lt_prelink_cmds
17238
17239# Specify filename containing input files.
17240file_list_spec=$lt_file_list_spec
17241
17242# How to hardcode a shared library path into an executable.
17243hardcode_action=$hardcode_action
17244
17245# ### END LIBTOOL CONFIG
17246
17247_LT_EOF
17248
17249 case $host_os in
17250 aix3*)
17251 cat <<\_LT_EOF >> "$cfgfile"
17252# AIX sometimes has problems with the GCC collect2 program. For some
17253# reason, if we set the COLLECT_NAMES environment variable, the problems
17254# vanish in a puff of smoke.
17255if test "X${COLLECT_NAMES+set}" != Xset; then
17256 COLLECT_NAMES=
17257 export COLLECT_NAMES
17258fi
17259_LT_EOF
17260 ;;
17261 esac
17262
17263
17264ltmain="$ac_aux_dir/ltmain.sh"
17265
17266
17267 # We use sed instead of cat because bash on DJGPP gets confused if
17268 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17269 # text mode, it properly converts lines to CR/LF. This bash problem
17270 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
17271 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17272 || (rm -f "$cfgfile"; exit 1)
17273
17274 case $xsi_shell in
17275 yes)
17276 cat << \_LT_EOF >> "$cfgfile"
17277
17278# func_dirname file append nondir_replacement
17279# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17280# otherwise set result to NONDIR_REPLACEMENT.
17281func_dirname ()
17282{
17283 case ${1} in
17284 */*) func_dirname_result="${1%/*}${2}" ;;
17285 * ) func_dirname_result="${3}" ;;
17286 esac
17287}
17288
17289# func_basename file
17290func_basename ()
17291{
17292 func_basename_result="${1##*/}"
17293}
17294
17295# func_dirname_and_basename file append nondir_replacement
17296# perform func_basename and func_dirname in a single function
17297# call:
17298# dirname: Compute the dirname of FILE. If nonempty,
17299# add APPEND to the result, otherwise set result
17300# to NONDIR_REPLACEMENT.
17301# value returned in "$func_dirname_result"
17302# basename: Compute filename of FILE.
17303# value retuned in "$func_basename_result"
17304# Implementation must be kept synchronized with func_dirname
17305# and func_basename. For efficiency, we do not delegate to
17306# those functions but instead duplicate the functionality here.
17307func_dirname_and_basename ()
17308{
17309 case ${1} in
17310 */*) func_dirname_result="${1%/*}${2}" ;;
17311 * ) func_dirname_result="${3}" ;;
17312 esac
17313 func_basename_result="${1##*/}"
17314}
17315
17316# func_stripname prefix suffix name
17317# strip PREFIX and SUFFIX off of NAME.
17318# PREFIX and SUFFIX must not contain globbing or regex special
17319# characters, hashes, percent signs, but SUFFIX may contain a leading
17320# dot (in which case that matches only a dot).
17321func_stripname ()
17322{
17323 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17324 # positional parameters, so assign one to ordinary parameter first.
17325 func_stripname_result=${3}
17326 func_stripname_result=${func_stripname_result#"${1}"}
17327 func_stripname_result=${func_stripname_result%"${2}"}
17328}
17329
17330# func_opt_split
17331func_opt_split ()
17332{
17333 func_opt_split_opt=${1%%=*}
17334 func_opt_split_arg=${1#*=}
17335}
17336
17337# func_lo2o object
17338func_lo2o ()
17339{
17340 case ${1} in
17341 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17342 *) func_lo2o_result=${1} ;;
17343 esac
17344}
17345
17346# func_xform libobj-or-source
17347func_xform ()
17348{
17349 func_xform_result=${1%.*}.lo
17350}
17351
17352# func_arith arithmetic-term...
17353func_arith ()
17354{
17355 func_arith_result=$(( $* ))
17356}
17357
17358# func_len string
17359# STRING may not start with a hyphen.
17360func_len ()
17361{
17362 func_len_result=${#1}
17363}
17364
17365_LT_EOF
17366 ;;
17367 *) # Bourne compatible functions.
17368 cat << \_LT_EOF >> "$cfgfile"
17369
17370# func_dirname file append nondir_replacement
17371# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17372# otherwise set result to NONDIR_REPLACEMENT.
17373func_dirname ()
17374{
17375 # Extract subdirectory from the argument.
17376 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17377 if test "X$func_dirname_result" = "X${1}"; then
17378 func_dirname_result="${3}"
17379 else
17380 func_dirname_result="$func_dirname_result${2}"
17381 fi
17382}
17383
17384# func_basename file
17385func_basename ()
17386{
17387 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17388}
17389
17390
17391# func_stripname prefix suffix name
17392# strip PREFIX and SUFFIX off of NAME.
17393# PREFIX and SUFFIX must not contain globbing or regex special
17394# characters, hashes, percent signs, but SUFFIX may contain a leading
17395# dot (in which case that matches only a dot).
17396# func_strip_suffix prefix name
17397func_stripname ()
17398{
17399 case ${2} in
17400 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17401 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17402 esac
17403}
17404
17405# sed scripts:
17406my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17407my_sed_long_arg='1s/^-[^=]*=//'
17408
17409# func_opt_split
17410func_opt_split ()
17411{
17412 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17413 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17414}
17415
17416# func_lo2o object
17417func_lo2o ()
17418{
17419 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17420}
17421
17422# func_xform libobj-or-source
17423func_xform ()
17424{
17425 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17426}
17427
17428# func_arith arithmetic-term...
17429func_arith ()
17430{
17431 func_arith_result=`expr "$@"`
17432}
17433
17434# func_len string
17435# STRING may not start with a hyphen.
17436func_len ()
17437{
17438 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17439}
17440
17441_LT_EOF
17442esac
17443
17444case $lt_shell_append in
17445 yes)
17446 cat << \_LT_EOF >> "$cfgfile"
17447
17448# func_append var value
17449# Append VALUE to the end of shell variable VAR.
17450func_append ()
17451{
17452 eval "$1+=\$2"
17453}
17454_LT_EOF
17455 ;;
17456 *)
17457 cat << \_LT_EOF >> "$cfgfile"
17458
17459# func_append var value
17460# Append VALUE to the end of shell variable VAR.
17461func_append ()
17462{
17463 eval "$1=\$$1\$2"
17464}
17465
17466_LT_EOF
17467 ;;
17468 esac
17469
17470
17471 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17472 || (rm -f "$cfgfile"; exit 1)
17473
17474 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
17475 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17476 chmod +x "$ofile"
17477
13b2be9c 17478 ;;
81ecdfbb 17479 "default-1":C)
20e95c23
DJ
17480 for ac_file in $CONFIG_FILES; do
17481 # Support "outfile[:infile[:infile...]]"
17482 case "$ac_file" in
17483 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17484 esac
17485 # PO directories have a Makefile.in generated from Makefile.in.in.
17486 case "$ac_file" in */Makefile.in)
17487 # Adjust a relative srcdir.
17488 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 17489 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
17490 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17491 # In autoconf-2.13 it is called $ac_given_srcdir.
17492 # In autoconf-2.50 it is called $srcdir.
17493 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17494 case "$ac_given_srcdir" in
17495 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17496 /*) top_srcdir="$ac_given_srcdir" ;;
17497 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17498 esac
17499 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17500 rm -f "$ac_dir/POTFILES"
17501 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17502 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17503 POMAKEFILEDEPS="POTFILES.in"
17504 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17505 # on $ac_dir but don't depend on user-specified configuration
17506 # parameters.
17507 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17508 # The LINGUAS file contains the set of available languages.
17509 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 17510 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
17511 fi
17512 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17513 # Hide the ALL_LINGUAS assigment from automake.
17514 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17515 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17516 else
37a42ee9 17517 # The set of available languages was given in configure.ac.
20e95c23
DJ
17518 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17519 fi
17520 case "$ac_given_srcdir" in
17521 .) srcdirpre= ;;
17522 *) srcdirpre='$(srcdir)/' ;;
17523 esac
17524 POFILES=
17525 GMOFILES=
17526 UPDATEPOFILES=
17527 DUMMYPOFILES=
17528 for lang in $ALL_LINGUAS; do
17529 POFILES="$POFILES $srcdirpre$lang.po"
17530 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17531 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17532 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17533 done
17534 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17535 # environment variable.
17536 INST_LINGUAS=
17537 if test -n "$ALL_LINGUAS"; then
17538 for presentlang in $ALL_LINGUAS; do
17539 useit=no
17540 if test "%UNSET%" != "$LINGUAS"; then
17541 desiredlanguages="$LINGUAS"
17542 else
17543 desiredlanguages="$ALL_LINGUAS"
17544 fi
17545 for desiredlang in $desiredlanguages; do
17546 # Use the presentlang catalog if desiredlang is
17547 # a. equal to presentlang, or
17548 # b. a variant of presentlang (because in this case,
17549 # presentlang can be used as a fallback for messages
17550 # which are not translated in the desiredlang catalog).
17551 case "$desiredlang" in
17552 "$presentlang"*) useit=yes;;
17553 esac
17554 done
17555 if test $useit = yes; then
17556 INST_LINGUAS="$INST_LINGUAS $presentlang"
17557 fi
17558 done
17559 fi
17560 CATALOGS=
17561 if test -n "$INST_LINGUAS"; then
17562 for lang in $INST_LINGUAS; do
17563 CATALOGS="$CATALOGS $lang.gmo"
17564 done
17565 fi
17566 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17567 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"
17568 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17569 if test -f "$f"; then
17570 case "$f" in
17571 *.orig | *.bak | *~) ;;
17572 *) cat "$f" >> "$ac_dir/Makefile" ;;
17573 esac
17574 fi
17575 done
17576 fi
17577 ;;
17578 esac
17579 done ;;
81ecdfbb 17580 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
17581 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17582 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17583 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17584 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17585 if test "x$cgen_cpu_prefix" != x ; then
17586 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 17587 fi ;;
81ecdfbb 17588
13b2be9c 17589 esac
81ecdfbb 17590done # for ac_tag
13b2be9c 17591
13b2be9c 17592
81ecdfbb 17593as_fn_exit 0
13b2be9c 17594_ACEOF
13b2be9c
DJ
17595ac_clean_files=$ac_clean_files_save
17596
81ecdfbb 17597test $ac_write_fail = 0 ||
d0ac1c44 17598 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 17599
13b2be9c
DJ
17600
17601# configure is writing to config.log, and then calls config.status.
17602# config.status does its own redirection, appending to config.log.
17603# Unfortunately, on DOS this fails, as config.log is still kept open
17604# by configure, so config.status won't be able to write to it; its
17605# output is simply discarded. So we exec the FD to /dev/null,
17606# effectively closing config.log, so it can be properly (re)opened and
17607# appended to by config.status. When coming back to configure, we
17608# need to make the FD available again.
17609if test "$no_create" != yes; then
17610 ac_cs_success=:
17611 ac_config_status_args=
17612 test "$silent" = yes &&
17613 ac_config_status_args="$ac_config_status_args --quiet"
17614 exec 5>/dev/null
17615 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17616 exec 5>>config.log
17617 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17618 # would make configure fail if this is the last instruction.
d0ac1c44 17619 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
17620fi
17621if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17623$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 17624fi
252b5132 17625
This page took 2.326583 seconds and 4 git commands to generate.