[ARM][GAS] ARMv8.2 should enable ARMv8.1 NEON instructions.
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for gas 2.26.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
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.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
13b2be9c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13b2be9c 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
13b2be9c 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
13b2be9c 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
13b2be9c 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
13b2be9c 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
13b2be9c 418
13b2be9c
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
13b2be9c 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
13b2be9c 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
13b2be9c 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 444 t loop
81ecdfbb 445 s/-\n.*//
13b2be9c 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
13b2be9c
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
13b2be9c
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
13b2be9c
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
13b2be9c 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
13b2be9c 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
13b2be9c 491 fi
13b2be9c
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
13b2be9c
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 500else
ab509236 501 test -d ./-p && rmdir ./-p
13b2be9c
DJ
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
13b2be9c
DJ
527
528# Sed expression to map a string onto a valid CPP name.
ab509236 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
530
531# Sed expression to map a string onto a valid variable name.
ab509236 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c 533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
13b2be9c
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
13b2be9c
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
13b2be9c 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
13b2be9c
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
13b2be9c
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='gas'
558PACKAGE_TARNAME='gas'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='gas 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
13b2be9c
DJ
563
564ac_unique_file="as.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
13b2be9c
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
13b2be9c
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
13b2be9c
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
13b2be9c
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
13b2be9c 592# include <inttypes.h>
13b2be9c 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
13b2be9c
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
0138187e 605zlibinc
543b7933 606zlibdir
81ecdfbb
RW
607LIBM
608ALLOCA
609GENINSRC_NEVER_FALSE
610GENINSRC_NEVER_TRUE
611MAINT
612MAINTAINER_MODE_FALSE
613MAINTAINER_MODE_TRUE
614MSGMERGE
615MSGFMT
616MKINSTALLDIRS
617CATOBJEXT
618GENCAT
619INSTOBJEXT
620DATADIRNAME
621CATALOGS
622POSUB
623GMSGFMT
624XGETTEXT
625INCINTL
626LIBINTL_DEP
627LIBINTL
628USE_NLS
629LEXLIB
630LEX_OUTPUT_ROOT
631LEX
632YFLAGS
633YACC
634OPCODES_LIB
635atof
636install_tooldir
637te_file
638obj_format
639target_cpu_type
640extra_objects
641cgen_cpu_prefix
642GDBINIT
6757cf57 643WARN_WRITE_STRINGS
81ecdfbb
RW
644NO_WERROR
645WARN_CFLAGS
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
81ecdfbb
RW
651RANLIB
652AR
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660SED
661LIBTOOL
662EGREP
663GREP
664CPP
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
6eb7d830 668am__nodep
81ecdfbb
RW
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705target_os
706target_vendor
707target_cpu
708target
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
13b2be9c 755ac_subst_files=''
81ecdfbb
RW
756ac_user_opts='
757enable_option_checking
758enable_dependency_tracking
81ecdfbb
RW
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_gnu_ld
764enable_libtool_lock
b879806f
AM
765enable_plugins
766enable_largefile
81ecdfbb
RW
767enable_targets
768enable_checking
6c3bc0f8 769enable_compressed_debug_sections
0cb4071e 770enable_x86_relax_relocations
b8871f35 771enable_elf_stt_common
81ecdfbb
RW
772enable_werror
773enable_build_warnings
774enable_nls
775enable_maintainer_mode
0138187e 776with_system_zlib
81ecdfbb
RW
777'
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CPP
787YACC
788YFLAGS'
789
252b5132
RH
790
791# Initialize some variables set by options.
13b2be9c
DJ
792ac_init_help=
793ac_init_version=false
81ecdfbb
RW
794ac_unrecognized_opts=
795ac_unrecognized_sep=
252b5132
RH
796# The variables have the same names as the options, with
797# dashes changed to underlines.
13b2be9c 798cache_file=/dev/null
252b5132 799exec_prefix=NONE
252b5132 800no_create=
252b5132
RH
801no_recursion=
802prefix=NONE
803program_prefix=NONE
804program_suffix=NONE
805program_transform_name=s,x,x,
806silent=
807site=
808srcdir=
252b5132
RH
809verbose=
810x_includes=NONE
811x_libraries=NONE
13b2be9c
DJ
812
813# Installation directory options.
814# These are left unexpanded so users can "make install exec_prefix=/foo"
815# and all the variables that are supposed to be based on exec_prefix
816# by default will actually change.
817# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 818# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
819bindir='${exec_prefix}/bin'
820sbindir='${exec_prefix}/sbin'
821libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
822datarootdir='${prefix}/share'
823datadir='${datarootdir}'
252b5132
RH
824sysconfdir='${prefix}/etc'
825sharedstatedir='${prefix}/com'
826localstatedir='${prefix}/var'
252b5132
RH
827includedir='${prefix}/include'
828oldincludedir='/usr/include'
2e98a7bd 829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
830infodir='${datarootdir}/info'
831htmldir='${docdir}'
832dvidir='${docdir}'
833pdfdir='${docdir}'
834psdir='${docdir}'
835libdir='${exec_prefix}/lib'
836localedir='${datarootdir}/locale'
837mandir='${datarootdir}/man'
252b5132 838
252b5132 839ac_prev=
81ecdfbb 840ac_dashdash=
252b5132
RH
841for ac_option
842do
252b5132
RH
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
81ecdfbb 845 eval $ac_prev=\$ac_option
252b5132
RH
846 ac_prev=
847 continue
848 fi
849
81ecdfbb
RW
850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
252b5132
RH
854
855 # Accept the important Cygnus configure options, so we can diagnose typos.
856
81ecdfbb
RW
857 case $ac_dashdash$ac_option in
858 --)
859 ac_dashdash=yes ;;
252b5132
RH
860
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 864 bindir=$ac_optarg ;;
252b5132
RH
865
866 -build | --build | --buil | --bui | --bu)
13b2be9c 867 ac_prev=build_alias ;;
252b5132 868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 869 build_alias=$ac_optarg ;;
252b5132
RH
870
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
876 cache_file=$ac_optarg ;;
877
878 --config-cache | -C)
879 cache_file=config.cache ;;
252b5132 880
81ecdfbb 881 -datadir | --datadir | --datadi | --datad)
252b5132 882 ac_prev=datadir ;;
81ecdfbb 883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 884 datadir=$ac_optarg ;;
252b5132 885
81ecdfbb
RW
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
892
252b5132 893 -disable-* | --disable-*)
81ecdfbb 894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 895 # Reject names that are not valid shell variable names.
81ecdfbb
RW
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
901 *"
902"enable_$ac_useropt"
903"*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
908
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
913
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
252b5132
RH
918
919 -enable-* | --enable-*)
81ecdfbb 920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 921 # Reject names that are not valid shell variable names.
81ecdfbb
RW
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
252b5132 932 esac
81ecdfbb 933 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
934
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
13b2be9c 942 exec_prefix=$ac_optarg ;;
252b5132
RH
943
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
947
13b2be9c
DJ
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
252b5132
RH
954
955 -host | --host | --hos | --ho)
13b2be9c 956 ac_prev=host_alias ;;
252b5132 957 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 958 host_alias=$ac_optarg ;;
252b5132 959
81ecdfbb
RW
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
965
252b5132
RH
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 971 includedir=$ac_optarg ;;
252b5132
RH
972
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 976 infodir=$ac_optarg ;;
252b5132
RH
977
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 981 libdir=$ac_optarg ;;
252b5132
RH
982
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
13b2be9c 988 libexecdir=$ac_optarg ;;
252b5132 989
81ecdfbb
RW
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
994
252b5132 995 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 996 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 1000 localstatedir=$ac_optarg ;;
252b5132
RH
1001
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1005 mandir=$ac_optarg ;;
252b5132
RH
1006
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1010
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1012 | --no-cr | --no-c | -n)
252b5132
RH
1013 no_create=yes ;;
1014
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1018
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1026 oldincludedir=$ac_optarg ;;
252b5132
RH
1027
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1031 prefix=$ac_optarg ;;
252b5132
RH
1032
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1038 program_prefix=$ac_optarg ;;
252b5132
RH
1039
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1045 program_suffix=$ac_optarg ;;
252b5132
RH
1046
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1062 program_transform_name=$ac_optarg ;;
252b5132 1063
81ecdfbb
RW
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1068
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1073
252b5132
RH
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1077
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
13b2be9c 1082 sbindir=$ac_optarg ;;
252b5132
RH
1083
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
13b2be9c 1093 sharedstatedir=$ac_optarg ;;
252b5132
RH
1094
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
13b2be9c 1098 site=$ac_optarg ;;
76bff705 1099
252b5132
RH
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1103 srcdir=$ac_optarg ;;
252b5132
RH
1104
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1110 sysconfdir=$ac_optarg ;;
252b5132
RH
1111
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1113 ac_prev=target_alias ;;
252b5132 1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1115 target_alias=$ac_optarg ;;
252b5132
RH
1116
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1119
13b2be9c
DJ
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
252b5132
RH
1122
1123 -with-* | --with-*)
81ecdfbb 1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1125 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1131 *"
1132"with_$ac_useropt"
1133"*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
252b5132 1136 esac
81ecdfbb 1137 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1138
1139 -without-* | --without-*)
81ecdfbb 1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1141 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
252b5132
RH
1154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1164 x_includes=$ac_optarg ;;
252b5132
RH
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1171 x_libraries=$ac_optarg ;;
252b5132 1172
81ecdfbb
RW
1173 -*) as_fn_error "unrecognized option: \`$ac_option'
1174Try \`$0 --help' for more information."
252b5132
RH
1175 ;;
1176
13b2be9c
DJ
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1185 export $ac_envvar ;;
1186
252b5132 1187 *)
13b2be9c 1188 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
13b2be9c 1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1200 as_fn_error "missing argument to $ac_option"
c8615825 1201fi
c8615825 1202
81ecdfbb
RW
1203if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1208 esac
81ecdfbb 1209fi
252b5132 1210
81ecdfbb
RW
1211# Check all directory arguments for consistency.
1212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
252b5132 1216do
81ecdfbb
RW
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
13b2be9c 1225 case $ac_val in
81ecdfbb
RW
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1228 esac
81ecdfbb 1229 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1230done
1231
13b2be9c
DJ
1232# There might be people who depend on the old broken behavior: `$host'
1233# used to hold the argument of --host etc.
1234# FIXME: To remove some day.
1235build=$build_alias
1236host=$host_alias
1237target=$target_alias
1238
1239# FIXME: To remove some day.
1240if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
81ecdfbb 1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1247 fi
1248fi
9b2b7d69 1249
13b2be9c
DJ
1250ac_tool_prefix=
1251test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
1253test "$silent" = yes && exec 6>/dev/null
252b5132 1254
252b5132 1255
81ecdfbb
RW
1256ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257ac_ls_di=`ls -di .` &&
1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error "working directory cannot be determined"
1260test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error "pwd does not report name of working directory"
1262
1263
252b5132
RH
1264# Find the source files, if location was not specified.
1265if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
81ecdfbb
RW
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273$as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\/\)$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\).*/{
1287 s//\1/
1288 q
1289 }
1290 s/.*/./; q'`
252b5132 1291 srcdir=$ac_confdir
81ecdfbb 1292 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1293 srcdir=..
1294 fi
1295else
1296 ac_srcdir_defaulted=no
1297fi
81ecdfbb
RW
1298if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1301fi
1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1305 pwd)`
1306# When building in place, set srcdir=.
1307if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1309fi
1310# Remove unnecessary trailing slashes from srcdir.
1311# Double slashes in file names in object file debugging info
1312# mess up M-x gdb in Emacs.
1313case $srcdir in
1314*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315esac
1316for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321done
d6d788bd 1322
13b2be9c
DJ
1323#
1324# Report the --help message.
1325#
1326if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
d8bd95ef 1330\`configure' configures gas 2.26.51 to adapt to many kinds of systems.
9b2b7d69 1331
13b2be9c 1332Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1333
13b2be9c
DJ
1334To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1336
13b2be9c 1337Defaults for the options are specified in brackets.
9b2b7d69 1338
13b2be9c
DJ
1339Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
13b2be9c
DJ
1350Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1352 [$ac_default_prefix]
13b2be9c 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1354 [PREFIX]
9b2b7d69 1355
13b2be9c
DJ
1356By default, \`make install' will install all the files in
1357\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359for instance \`--prefix=\$HOME'.
9b2b7d69 1360
13b2be9c 1361For better control, use the options below.
9b2b7d69 1362
13b2be9c 1363Fine tuning of the installation directories:
81ecdfbb
RW
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1383_ACEOF
9b2b7d69 1384
13b2be9c 1385 cat <<\_ACEOF
9b2b7d69 1386
13b2be9c
DJ
1387Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1391
13b2be9c
DJ
1392System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396_ACEOF
9b2b7d69 1397fi
9b2b7d69 1398
13b2be9c 1399if test -n "$ac_init_help"; then
2e98a7bd 1400 case $ac_init_help in
d8bd95ef 1401 short | recursive ) echo "Configuration of gas 2.26.51:";;
2e98a7bd 1402 esac
13b2be9c 1403 cat <<\_ACEOF
9b2b7d69 1404
13b2be9c 1405Optional Features:
81ecdfbb 1406 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1409 --disable-dependency-tracking speeds up one-time build
1410 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
13b2be9c 1415 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1416 --enable-plugins Enable support for plugins
1417 --disable-largefile omit support for large files
241a6c40 1418 --enable-targets alternative target configurations besides the primary
c43a438d 1419 --enable-checking enable run-time checks
4894d80b 1420 --enable-compressed-debug-sections={all,gas,none}
27ba7c94 1421 compress debug sections by default
0cb4071e
L
1422 --enable-x86-relax-relocations
1423 generate x86 relax relocations by default
b8871f35
L
1424 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1425 default
241a6c40
AM
1426 --enable-werror treat compile warnings as errors
1427 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1428 --disable-nls do not use Native Language Support
ab509236
L
1429 --enable-maintainer-mode enable make rules and dependencies not useful
1430 (and sometimes confusing) to the casual installer
9b2b7d69 1431
13b2be9c
DJ
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0138187e 1438 --with-system-zlib use installed libz
9b2b7d69 1439
13b2be9c
DJ
1440Some influential environment variables:
1441 CC C compiler command
1442 CFLAGS C compiler flags
1443 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444 nonstandard directory <lib dir>
81ecdfbb
RW
1445 LIBS libraries to pass to the linker, e.g. -l<library>
1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1447 you have headers in a nonstandard directory <include dir>
13b2be9c 1448 CPP C preprocessor
81ecdfbb
RW
1449 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1450 the first program found out of: `bison -y', `byacc', `yacc'.
1451 YFLAGS The list of arguments that will be passed by default to $YACC.
1452 This script will default YFLAGS to the empty string to avoid a
1453 default value of `-d' given by some make applications.
13b2be9c
DJ
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
81ecdfbb 1458Report bugs to the package provider.
13b2be9c 1459_ACEOF
81ecdfbb 1460ac_status=$?
9b2b7d69 1461fi
9b2b7d69 1462
13b2be9c
DJ
1463if test "$ac_init_help" = "recursive"; then
1464 # If there are subdirs, report their specific --help.
13b2be9c 1465 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1466 test -d "$ac_dir" ||
1467 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 continue
13b2be9c
DJ
1469 ac_builddir=.
1470
81ecdfbb
RW
1471case "$ac_dir" in
1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473*)
1474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475 # A ".." for each directory in $ac_dir_suffix.
1476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481esac
1482ac_abs_top_builddir=$ac_pwd
1483ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484# for backward compatibility:
1485ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1486
13b2be9c 1487case $srcdir in
81ecdfbb 1488 .) # We are building in place.
13b2be9c 1489 ac_srcdir=.
81ecdfbb
RW
1490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1493 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1500esac
81ecdfbb
RW
1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1511 else
81ecdfbb
RW
1512 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1515 done
1516fi
6840198f 1517
81ecdfbb 1518test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1519if $ac_init_version; then
1520 cat <<\_ACEOF
d8bd95ef 1521gas configure 2.26.51
81ecdfbb 1522generated by GNU Autoconf 2.64
c8615825 1523
81ecdfbb 1524Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
81ecdfbb 1528 exit
13b2be9c 1529fi
c8615825 1530
81ecdfbb
RW
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
c8615825 1534
81ecdfbb
RW
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
13b2be9c 1539{
81ecdfbb
RW
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562else
1563 $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1565
81ecdfbb
RW
1566 ac_retval=1
1567fi
1568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 return $ac_retval
13b2be9c 1570
81ecdfbb 1571} # ac_fn_c_try_compile
13b2be9c 1572
81ecdfbb
RW
1573# ac_fn_c_try_link LINENO
1574# -----------------------
1575# Try to link conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_link ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext conftest$ac_exeext
1580 if { { ac_try="$ac_link"
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_link") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest$ac_exeext && {
1599 test "$cross_compiling" = yes ||
1600 $as_test_x conftest$ac_exeext
1601 }; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1610 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1611 # interfere with the next link command; also delete a directory that is
1612 # left behind by Apple's compiler. We do this before executing the actions.
1613 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 return $ac_retval
1616
1617} # ac_fn_c_try_link
1618
1619# ac_fn_c_try_cpp LINENO
1620# ----------------------
1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_c_try_cpp ()
1623{
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_cpp conftest.$ac_ext"
1626case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629esac
1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631$as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1638 fi
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } >/dev/null && {
1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 }; then :
1644 ac_retval=0
1645else
1646 $as_echo "$as_me: failed program was:" >&5
1647sed 's/^/| /' conftest.$ac_ext >&5
1648
1649 ac_retval=1
1650fi
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1652 return $ac_retval
1653
1654} # ac_fn_c_try_cpp
1655
1656# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1657# -------------------------------------------------------
1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1659# the include files in INCLUDES and setting the cache variable VAR
1660# accordingly.
1661ac_fn_c_check_header_mongrel ()
1662{
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
1667if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1668 $as_echo_n "(cached) " >&6
1669fi
1670eval ac_res=\$$3
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672$as_echo "$ac_res" >&6; }
1673else
1674 # Is the header compilable?
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1676$as_echo_n "checking $2 usability... " >&6; }
1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h. */
1679$4
1680#include <$2>
1681_ACEOF
1682if ac_fn_c_try_compile "$LINENO"; then :
1683 ac_header_compiler=yes
1684else
1685 ac_header_compiler=no
1686fi
1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1689$as_echo "$ac_header_compiler" >&6; }
1690
1691# Is the header present?
1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1693$as_echo_n "checking $2 presence... " >&6; }
1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1695/* end confdefs.h. */
1696#include <$2>
1697_ACEOF
1698if ac_fn_c_try_cpp "$LINENO"; then :
1699 ac_header_preproc=yes
1700else
1701 ac_header_preproc=no
1702fi
1703rm -f conftest.err conftest.$ac_ext
1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1705$as_echo "$ac_header_preproc" >&6; }
1706
1707# So? What about this header?
1708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1709 yes:no: )
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ;;
1715 no:yes:* )
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1719$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1723$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 ;;
1727esac
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729$as_echo_n "checking for $2... " >&6; }
1730if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 $as_echo_n "(cached) " >&6
1732else
1733 eval "$3=\$ac_header_compiler"
1734fi
1735eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737$as_echo "$ac_res" >&6; }
1738fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741} # ac_fn_c_check_header_mongrel
1742
1743# ac_fn_c_try_run LINENO
1744# ----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746# that executables *can* be run.
1747ac_fn_c_try_run ()
1748{
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 return $ac_retval
1782
1783} # ac_fn_c_try_run
1784
1785# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786# -------------------------------------------------------
1787# Tests whether HEADER exists and can be compiled using the include files in
1788# INCLUDES, setting the cache variable VAR accordingly.
1789ac_fn_c_check_header_compile ()
1790{
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793$as_echo_n "checking for $2... " >&6; }
1794if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1796else
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798/* end confdefs.h. */
1799$4
1800#include <$2>
1801_ACEOF
1802if ac_fn_c_try_compile "$LINENO"; then :
1803 eval "$3=yes"
1804else
1805 eval "$3=no"
1806fi
1807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808fi
1809eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814} # ac_fn_c_check_header_compile
1815
1816# ac_fn_c_check_func LINENO FUNC VAR
1817# ----------------------------------
1818# Tests whether FUNC exists, setting the cache variable VAR accordingly
1819ac_fn_c_check_func ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823$as_echo_n "checking for $2... " >&6; }
1824if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1826else
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828/* end confdefs.h. */
1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831#define $2 innocuous_$2
1832
1833/* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1837
1838#ifdef __STDC__
1839# include <limits.h>
1840#else
1841# include <assert.h>
1842#endif
1843
1844#undef $2
1845
1846/* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849#ifdef __cplusplus
1850extern "C"
1851#endif
1852char $2 ();
1853/* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856#if defined __stub_$2 || defined __stub___$2
1857choke me
1858#endif
1859
1860int
1861main ()
1862{
1863return $2 ();
1864 ;
1865 return 0;
1866}
1867_ACEOF
1868if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1875fi
1876eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878$as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880
1881} # ac_fn_c_check_func
1882
1883# ac_fn_c_check_decl LINENO SYMBOL VAR
1884# ------------------------------------
1885# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1886ac_fn_c_check_decl ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1889 as_decl_name=`echo $2|sed 's/ *(.*//'`
1890 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1892$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1893if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898$4
1899int
1900main ()
1901{
360cfc9c
AM
1902#ifndef $as_decl_name
1903#ifdef __cplusplus
1904 (void) $as_decl_use;
1905#else
1906 (void) $as_decl_name;
1907#endif
81ecdfbb
RW
1908#endif
1909
1910 ;
1911 return 0;
1912}
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916else
1917 eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926} # ac_fn_c_check_decl
1927cat >config.log <<_ACEOF
1928This file contains any messages produced by compilers while
1929running configure, to aid debugging if configure makes a mistake.
1930
d8bd95ef 1931It was created by gas $as_me 2.26.51, which was
81ecdfbb
RW
1932generated by GNU Autoconf 2.64. Invocation command line was
1933
1934 $ $0 $@
1935
1936_ACEOF
1937exec 5>>config.log
1938{
1939cat <<_ASUNAME
1940## --------- ##
1941## Platform. ##
1942## --------- ##
1943
1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1945uname -m = `(uname -m) 2>/dev/null || echo unknown`
1946uname -r = `(uname -r) 2>/dev/null || echo unknown`
1947uname -s = `(uname -s) 2>/dev/null || echo unknown`
1948uname -v = `(uname -v) 2>/dev/null || echo unknown`
1949
1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1951/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1952
1953/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1954/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1956/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1957/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1958/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1959/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1960
1961_ASUNAME
1962
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966 IFS=$as_save_IFS
1967 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1968 $as_echo "PATH: $as_dir"
1969 done
1970IFS=$as_save_IFS
9b2b7d69 1971
13b2be9c 1972} >&5
6840198f 1973
13b2be9c 1974cat >&5 <<_ACEOF
c8615825 1975
9b2b7d69 1976
13b2be9c
DJ
1977## ----------- ##
1978## Core tests. ##
1979## ----------- ##
87ccc1b0 1980
13b2be9c 1981_ACEOF
9b2b7d69 1982
13b2be9c
DJ
1983
1984# Keep a trace of the command line.
1985# Strip out --no-create and --no-recursion so they do not pile up.
1986# Strip out --silent because we don't want to record it for future runs.
1987# Also quote any args containing shell meta-characters.
1988# Make two passes to allow for proper duplicate-argument suppression.
1989ac_configure_args=
1990ac_configure_args0=
1991ac_configure_args1=
13b2be9c
DJ
1992ac_must_keep_next=false
1993for ac_pass in 1 2
1994do
1995 for ac_arg
1996 do
1997 case $ac_arg in
1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2000 | -silent | --silent | --silen | --sile | --sil)
2001 continue ;;
81ecdfbb
RW
2002 *\'*)
2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2004 esac
2005 case $ac_pass in
81ecdfbb 2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 2007 2)
81ecdfbb 2008 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2009 if test $ac_must_keep_next = true; then
ab509236 2010 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2011 else
ab509236
L
2012 case $ac_arg in
2013 *=* | --config-cache | -C | -disable-* | --disable-* \
2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2016 | -with-* | --with-* | -without-* | --without-* | --x)
2017 case "$ac_configure_args0 " in
2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 esac
2020 ;;
2021 -* ) ac_must_keep_next=true ;;
2022 esac
13b2be9c 2023 fi
81ecdfbb 2024 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2025 ;;
2026 esac
2027 done
13b2be9c 2028done
81ecdfbb
RW
2029{ ac_configure_args0=; unset ac_configure_args0;}
2030{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2031
2032# When interrupted or exit'd, cleanup temporary files, and complete
2033# config.log. We remove comments because anyway the quotes in there
2034# would cause problems or look ugly.
81ecdfbb
RW
2035# WARNING: Use '\'' to represent an apostrophe within the trap.
2036# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2037trap 'exit_status=$?
2038 # Save into config.log some information that might help in debugging.
2039 {
2040 echo
2041
2042 cat <<\_ASBOX
2043## ---------------- ##
2044## Cache variables. ##
2045## ---------------- ##
2046_ASBOX
2047 echo
2048 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2049(
2050 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2051 eval ac_val=\$$ac_var
2052 case $ac_val in #(
2053 *${as_nl}*)
2054 case $ac_var in #(
2055 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2056$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 esac
2058 case $ac_var in #(
2059 _ | IFS | as_nl) ;; #(
2060 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2061 *) { eval $ac_var=; unset $ac_var;} ;;
2062 esac ;;
2063 esac
2064 done
13b2be9c 2065 (set) 2>&1 |
81ecdfbb
RW
2066 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2067 *${as_nl}ac_space=\ *)
13b2be9c 2068 sed -n \
81ecdfbb
RW
2069 "s/'\''/'\''\\\\'\'''\''/g;
2070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 ;; #(
13b2be9c 2072 *)
81ecdfbb 2073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2074 ;;
81ecdfbb
RW
2075 esac |
2076 sort
2077)
13b2be9c
DJ
2078 echo
2079
2080 cat <<\_ASBOX
2081## ----------------- ##
2082## Output variables. ##
2083## ----------------- ##
2084_ASBOX
2085 echo
2086 for ac_var in $ac_subst_vars
2087 do
81ecdfbb
RW
2088 eval ac_val=\$$ac_var
2089 case $ac_val in
2090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2091 esac
2092 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2093 done | sort
2094 echo
2095
2096 if test -n "$ac_subst_files"; then
2097 cat <<\_ASBOX
81ecdfbb
RW
2098## ------------------- ##
2099## File substitutions. ##
2100## ------------------- ##
13b2be9c
DJ
2101_ASBOX
2102 echo
2103 for ac_var in $ac_subst_files
2104 do
81ecdfbb
RW
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2110 done | sort
2111 echo
2112 fi
2113
2114 if test -s confdefs.h; then
2115 cat <<\_ASBOX
2116## ----------- ##
2117## confdefs.h. ##
2118## ----------- ##
2119_ASBOX
2120 echo
81ecdfbb 2121 cat confdefs.h
13b2be9c
DJ
2122 echo
2123 fi
2124 test "$ac_signal" != 0 &&
81ecdfbb
RW
2125 $as_echo "$as_me: caught signal $ac_signal"
2126 $as_echo "$as_me: exit $exit_status"
13b2be9c 2127 } >&5
81ecdfbb
RW
2128 rm -f core *.core core.conftest.* &&
2129 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2130 exit $exit_status
81ecdfbb 2131' 0
13b2be9c 2132for ac_signal in 1 2 13 15; do
81ecdfbb 2133 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2134done
2135ac_signal=0
2136
2137# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2138rm -f -r conftest* confdefs.h
2139
2140$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2141
2142# Predefined preprocessor variables.
2143
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_NAME "$PACKAGE_NAME"
2146_ACEOF
2147
13b2be9c
DJ
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150_ACEOF
2151
13b2be9c
DJ
2152cat >>confdefs.h <<_ACEOF
2153#define PACKAGE_VERSION "$PACKAGE_VERSION"
2154_ACEOF
2155
13b2be9c
DJ
2156cat >>confdefs.h <<_ACEOF
2157#define PACKAGE_STRING "$PACKAGE_STRING"
2158_ACEOF
2159
13b2be9c
DJ
2160cat >>confdefs.h <<_ACEOF
2161#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162_ACEOF
2163
81ecdfbb
RW
2164cat >>confdefs.h <<_ACEOF
2165#define PACKAGE_URL "$PACKAGE_URL"
2166_ACEOF
2167
13b2be9c
DJ
2168
2169# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2170# Prefer an explicitly selected file to automatically selected ones.
2171ac_site_file1=NONE
2172ac_site_file2=NONE
2173if test -n "$CONFIG_SITE"; then
2174 ac_site_file1=$CONFIG_SITE
2175elif test "x$prefix" != xNONE; then
2176 ac_site_file1=$prefix/share/config.site
2177 ac_site_file2=$prefix/etc/config.site
2178else
2179 ac_site_file1=$ac_default_prefix/share/config.site
2180 ac_site_file2=$ac_default_prefix/etc/config.site
2181fi
2182for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2183do
2184 test "x$ac_site_file" = xNONE && continue
13b2be9c 2185 if test -r "$ac_site_file"; then
81ecdfbb
RW
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2187$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2188 sed 's/^/| /' "$ac_site_file" >&5
2189 . "$ac_site_file"
2190 fi
2191done
2192
2193if test -r "$cache_file"; then
2194 # Some versions of bash will fail to source /dev/null (special
2195 # files actually), so we avoid doing that.
2196 if test -f "$cache_file"; then
81ecdfbb
RW
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2198$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2199 case $cache_file in
81ecdfbb
RW
2200 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2201 *) . "./$cache_file";;
13b2be9c
DJ
2202 esac
2203 fi
2204else
81ecdfbb
RW
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2206$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2207 >$cache_file
2208fi
2209
2210# Check that the precious variables saved in the cache have kept the same
2211# value.
2212ac_cache_corrupted=false
81ecdfbb 2213for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2214 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2215 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2216 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2217 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2218 case $ac_old_set,$ac_new_set in
2219 set,)
81ecdfbb
RW
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2221$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2222 ac_cache_corrupted=: ;;
2223 ,set)
81ecdfbb
RW
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2225$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2226 ac_cache_corrupted=: ;;
2227 ,);;
2228 *)
2229 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2230 # differences in whitespace do not lead to failure.
2231 ac_old_val_w=`echo x $ac_old_val`
2232 ac_new_val_w=`echo x $ac_new_val`
2233 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2235$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2236 ac_cache_corrupted=:
2237 else
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2239$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2240 eval $ac_var=\$ac_old_val
2241 fi
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2243$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2245$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2246 fi;;
2247 esac
2248 # Pass precious variables to config.status.
2249 if test "$ac_new_set" = set; then
2250 case $ac_new_val in
81ecdfbb 2251 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2252 *) ac_arg=$ac_var=$ac_new_val ;;
2253 esac
2254 case " $ac_configure_args " in
2255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2256 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2257 esac
2258 fi
2259done
2260if $ac_cache_corrupted; then
81ecdfbb
RW
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2264$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2265 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2266fi
81ecdfbb
RW
2267## -------------------- ##
2268## Main body of script. ##
2269## -------------------- ##
13b2be9c
DJ
2270
2271ac_ext=c
2272ac_cpp='$CPP $CPPFLAGS'
2273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276
2277
2278
13b2be9c 2279
da594c4a 2280
13b2be9c
DJ
2281
2282
2283ac_aux_dir=
81ecdfbb
RW
2284for ac_dir in .. "$srcdir"/..; do
2285 for ac_t in install-sh install.sh shtool; do
2286 if test -f "$ac_dir/$ac_t"; then
2287 ac_aux_dir=$ac_dir
2288 ac_install_sh="$ac_aux_dir/$ac_t -c"
2289 break 2
2290 fi
2291 done
13b2be9c
DJ
2292done
2293if test -z "$ac_aux_dir"; then
81ecdfbb 2294 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2295fi
81ecdfbb
RW
2296
2297# These three variables are undocumented and unsupported,
2298# and are intended to be withdrawn in a future Autoconf release.
2299# They can cause serious problems if a builder's source tree is in a directory
2300# whose full name contains unusual characters.
2301ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
13b2be9c
DJ
2305
2306# Make sure we can run config.sub.
81ecdfbb
RW
2307$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2308 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2309
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2311$as_echo_n "checking build system type... " >&6; }
2312if test "${ac_cv_build+set}" = set; then :
2313 $as_echo_n "(cached) " >&6
2314else
2315 ac_build_alias=$build_alias
2316test "x$ac_build_alias" = x &&
2317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2318test "x$ac_build_alias" = x &&
2319 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2320ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2321 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2322
2323fi
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2325$as_echo "$ac_cv_build" >&6; }
2326case $ac_cv_build in
2327*-*-*) ;;
2328*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2329esac
13b2be9c 2330build=$ac_cv_build
81ecdfbb
RW
2331ac_save_IFS=$IFS; IFS='-'
2332set x $ac_cv_build
2333shift
2334build_cpu=$1
2335build_vendor=$2
2336shift; shift
2337# Remember, the first character of IFS is used to create $*,
2338# except with old shells:
2339build_os=$*
2340IFS=$ac_save_IFS
2341case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2342
2343
81ecdfbb
RW
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2345$as_echo_n "checking host system type... " >&6; }
2346if test "${ac_cv_host+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
13b2be9c 2348else
81ecdfbb
RW
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2354fi
13b2be9c
DJ
2355
2356fi
81ecdfbb
RW
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2358$as_echo "$ac_cv_host" >&6; }
2359case $ac_cv_host in
2360*-*-*) ;;
2361*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2362esac
13b2be9c 2363host=$ac_cv_host
81ecdfbb
RW
2364ac_save_IFS=$IFS; IFS='-'
2365set x $ac_cv_host
2366shift
2367host_cpu=$1
2368host_vendor=$2
2369shift; shift
2370# Remember, the first character of IFS is used to create $*,
2371# except with old shells:
2372host_os=$*
2373IFS=$ac_save_IFS
2374case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2375
2376
81ecdfbb
RW
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2378$as_echo_n "checking target system type... " >&6; }
2379if test "${ac_cv_target+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2381else
2382 if test "x$target_alias" = x; then
2383 ac_cv_target=$ac_cv_host
13b2be9c 2384else
81ecdfbb
RW
2385 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2386 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2387fi
13b2be9c
DJ
2388
2389fi
81ecdfbb
RW
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2391$as_echo "$ac_cv_target" >&6; }
2392case $ac_cv_target in
2393*-*-*) ;;
2394*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2395esac
13b2be9c 2396target=$ac_cv_target
81ecdfbb
RW
2397ac_save_IFS=$IFS; IFS='-'
2398set x $ac_cv_target
2399shift
2400target_cpu=$1
2401target_vendor=$2
2402shift; shift
2403# Remember, the first character of IFS is used to create $*,
2404# except with old shells:
2405target_os=$*
2406IFS=$ac_save_IFS
2407case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2408
2409
2410# The aliases save the names the user supplied, while $host etc.
2411# will get canonicalized.
2412test -n "$target_alias" &&
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
2415 program_prefix=${target_alias}-
2416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
2426if test "${ac_cv_prog_CC+set}" = set; then :
2427 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2441 break 2
2442 fi
2443done
81ecdfbb
RW
2444 done
2445IFS=$as_save_IFS
13b2be9c
DJ
2446
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
81ecdfbb
RW
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452$as_echo "$CC" >&6; }
13b2be9c 2453else
81ecdfbb
RW
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455$as_echo "no" >&6; }
13b2be9c
DJ
2456fi
2457
81ecdfbb 2458
13b2be9c
DJ
2459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463set dummy gcc; ac_word=$2
81ecdfbb
RW
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
2466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2467 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2479 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2481 break 2
2482 fi
2483done
81ecdfbb
RW
2484 done
2485IFS=$as_save_IFS
13b2be9c
DJ
2486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2492$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2493else
81ecdfbb
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
13b2be9c
DJ
2496fi
2497
81ecdfbb
RW
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505ac_tool_warned=yes ;;
2506esac
2507 CC=$ac_ct_CC
2508 fi
13b2be9c
DJ
2509else
2510 CC="$ac_cv_prog_CC"
2511fi
2512
2513if test -z "$CC"; then
81ecdfbb
RW
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2516set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
2519if test "${ac_cv_prog_CC+set}" = set; then :
2520 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2532 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2534 break 2
2535 fi
2536done
81ecdfbb
RW
2537 done
2538IFS=$as_save_IFS
13b2be9c
DJ
2539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
81ecdfbb
RW
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
13b2be9c 2546else
81ecdfbb
RW
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
13b2be9c
DJ
2549fi
2550
13b2be9c 2551
81ecdfbb 2552 fi
13b2be9c
DJ
2553fi
2554if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556set dummy cc; ac_word=$2
81ecdfbb
RW
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
2559if test "${ac_cv_prog_CC+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2561else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564else
2565 ac_prog_rejected=no
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected=yes
2575 continue
2576 fi
2577 ac_cv_prog_CC="cc"
81ecdfbb 2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2579 break 2
2580 fi
2581done
81ecdfbb
RW
2582 done
2583IFS=$as_save_IFS
2584
13b2be9c
DJ
2585if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy $ac_cv_prog_CC
2588 shift
2589 if test $# != 0; then
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2593 shift
2594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2595 fi
2596fi
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
81ecdfbb
RW
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602$as_echo "$CC" >&6; }
13b2be9c 2603else
81ecdfbb
RW
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
13b2be9c
DJ
2606fi
2607
81ecdfbb 2608
13b2be9c
DJ
2609fi
2610if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
81ecdfbb 2612 for ac_prog in cl.exe
13b2be9c
DJ
2613 do
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
2618if test "${ac_cv_prog_CC+set}" = set; then :
2619 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2633 break 2
2634 fi
2635done
81ecdfbb
RW
2636 done
2637IFS=$as_save_IFS
13b2be9c
DJ
2638
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
81ecdfbb
RW
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644$as_echo "$CC" >&6; }
13b2be9c 2645else
81ecdfbb
RW
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
13b2be9c
DJ
2648fi
2649
81ecdfbb 2650
13b2be9c
DJ
2651 test -n "$CC" && break
2652 done
2653fi
2654if test -z "$CC"; then
2655 ac_ct_CC=$CC
81ecdfbb 2656 for ac_prog in cl.exe
13b2be9c
DJ
2657do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
2662if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2664else
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2675 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2677 break 2
2678 fi
2679done
81ecdfbb
RW
2680 done
2681IFS=$as_save_IFS
13b2be9c
DJ
2682
2683fi
2684fi
2685ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2689else
81ecdfbb
RW
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
13b2be9c
DJ
2692fi
2693
81ecdfbb 2694
13b2be9c
DJ
2695 test -n "$ac_ct_CC" && break
2696done
2697
81ecdfbb
RW
2698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702yes:)
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707 CC=$ac_ct_CC
2708 fi
13b2be9c
DJ
2709fi
2710
2711fi
2712
2713
81ecdfbb
RW
2714test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716as_fn_error "no acceptable C compiler found in \$PATH
2717See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2718
2719# Provide some information about the compiler.
81ecdfbb
RW
2720$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2721set X $ac_compile
2722ac_compiler=$2
2723for ac_option in --version -v -V -qversion; do
2724 { { ac_try="$ac_compiler $ac_option >&5"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730$as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2732 ac_status=$?
81ecdfbb
RW
2733 if test -s conftest.err; then
2734 sed '10a\
2735... rest of stderr output deleted ...
2736 10q' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2738 rm -f conftest.er1 conftest.err
2739 fi
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2742done
13b2be9c 2743
81ecdfbb 2744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2745/* end confdefs.h. */
2746
2747int
2748main ()
2749{
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755ac_clean_files_save=$ac_clean_files
81ecdfbb 2756ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2757# Try to create an executable without -o first, disregard a.out.
2758# It will help us diagnose broken compilers, and finding out an intuition
2759# of exeext.
81ecdfbb
RW
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2761$as_echo_n "checking for C compiler default output file name... " >&6; }
2762ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763
2764# The possible output files:
2765ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766
2767ac_rmfiles=
2768for ac_file in $ac_files
2769do
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774done
2775rm -f $ac_rmfiles
2776
2777if { { ac_try="$ac_link_default"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783$as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link_default") 2>&5
2785 ac_status=$?
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790# in a Makefile. We should not override ac_cv_exeext if it was cached,
2791# so that the user can short-circuit this test for compilers unknown to
2792# Autoconf.
2793for ac_file in $ac_files ''
13b2be9c
DJ
2794do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
81ecdfbb 2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2798 ;;
13b2be9c 2799 [ab].out )
ab509236
L
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
13b2be9c 2803 *.* )
81ecdfbb
RW
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
ab509236 2813 break;;
13b2be9c 2814 * )
ab509236 2815 break;;
13b2be9c
DJ
2816 esac
2817done
81ecdfbb
RW
2818test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
13b2be9c 2820else
81ecdfbb
RW
2821 ac_file=''
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2824$as_echo "$ac_file" >&6; }
2825if test -z "$ac_file"; then :
2826 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
81ecdfbb
RW
2829{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831{ as_fn_set_status 77
2832as_fn_error "C compiler cannot create executables
2833See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2834fi
13b2be9c 2835ac_exeext=$ac_cv_exeext
13b2be9c 2836
81ecdfbb 2837# Check that the compiler produces executables we can run. If not, either
13b2be9c 2838# the compiler is broken, or we cross compile.
81ecdfbb
RW
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2840$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2841# If not cross compiling, check that we can run a simple program.
2842if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
81ecdfbb
RW
2844 { { case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2849$as_echo "$ac_try_echo"; } >&5
2850 (eval "$ac_try") 2>&5
13b2be9c 2851 ac_status=$?
81ecdfbb
RW
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }; }; then
13b2be9c
DJ
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
81ecdfbb
RW
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861as_fn_error "cannot run C compiled programs.
13b2be9c 2862If you meant to cross compile, use \`--host'.
81ecdfbb 2863See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2864 fi
2865 fi
2866fi
81ecdfbb
RW
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868$as_echo "yes" >&6; }
13b2be9c 2869
81ecdfbb 2870rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2871ac_clean_files=$ac_clean_files_save
81ecdfbb 2872# Check that the compiler produces executables we can run. If not, either
13b2be9c 2873# the compiler is broken, or we cross compile.
81ecdfbb
RW
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2875$as_echo_n "checking whether we are cross compiling... " >&6; }
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2877$as_echo "$cross_compiling" >&6; }
2878
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2880$as_echo_n "checking for suffix of executables... " >&6; }
2881if { { ac_try="$ac_link"
2882case "(($ac_try" in
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2885esac
2886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887$as_echo "$ac_try_echo"; } >&5
2888 (eval "$ac_link") 2>&5
13b2be9c 2889 ac_status=$?
81ecdfbb
RW
2890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2891 test $ac_status = 0; }; then :
13b2be9c
DJ
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
2896for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
2898 case $ac_file in
81ecdfbb 2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2901 break;;
13b2be9c
DJ
2902 * ) break;;
2903 esac
2904done
2905else
81ecdfbb
RW
2906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2908as_fn_error "cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2910fi
13b2be9c 2911rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2913$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2914
2915rm -f conftest.$ac_ext
2916EXEEXT=$ac_cv_exeext
2917ac_exeext=$EXEEXT
81ecdfbb
RW
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2919$as_echo_n "checking for suffix of object files... " >&6; }
2920if test "${ac_cv_objext+set}" = set; then :
2921 $as_echo_n "(cached) " >&6
13b2be9c 2922else
81ecdfbb 2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2924/* end confdefs.h. */
2925
2926int
2927main ()
2928{
2929
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.o conftest.obj
81ecdfbb
RW
2935if { { ac_try="$ac_compile"
2936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
2940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2941$as_echo "$ac_try_echo"; } >&5
2942 (eval "$ac_compile") 2>&5
2943 ac_status=$?
2944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2945 test $ac_status = 0; }; then :
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
13b2be9c 2948 case $ac_file in
81ecdfbb 2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953done
2954else
81ecdfbb 2955 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
81ecdfbb
RW
2958{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2959$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2960as_fn_error "cannot compute suffix of object files: cannot compile
2961See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2962fi
13b2be9c
DJ
2963rm -f conftest.$ac_cv_objext conftest.$ac_ext
2964fi
81ecdfbb
RW
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2966$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2967OBJEXT=$ac_cv_objext
2968ac_objext=$OBJEXT
81ecdfbb
RW
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2970$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2971if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
13b2be9c 2973else
81ecdfbb 2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2975/* end confdefs.h. */
2976
2977int
2978main ()
2979{
2980#ifndef __GNUC__
2981 choke me
2982#endif
2983
2984 ;
2985 return 0;
2986}
2987_ACEOF
81ecdfbb 2988if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2989 ac_compiler_gnu=yes
2990else
81ecdfbb 2991 ac_compiler_gnu=no
13b2be9c 2992fi
81ecdfbb 2993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2994ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995
2996fi
81ecdfbb
RW
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2998$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2999if test $ac_compiler_gnu = yes; then
3000 GCC=yes
3001else
3002 GCC=
3003fi
13b2be9c
DJ
3004ac_test_CFLAGS=${CFLAGS+set}
3005ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3007$as_echo_n "checking whether $CC accepts -g... " >&6; }
3008if test "${ac_cv_prog_cc_g+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010else
3011 ac_save_c_werror_flag=$ac_c_werror_flag
3012 ac_c_werror_flag=yes
3013 ac_cv_prog_cc_g=no
3014 CFLAGS="-g"
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021
3022 ;
3023 return 0;
3024}
3025_ACEOF
81ecdfbb 3026if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3027 ac_cv_prog_cc_g=yes
3028else
81ecdfbb
RW
3029 CFLAGS=""
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
13b2be9c 3032
81ecdfbb
RW
3033int
3034main ()
3035{
3036
3037 ;
3038 return 0;
3039}
3040_ACEOF
3041if ac_fn_c_try_compile "$LINENO"; then :
3042
3043else
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3045 CFLAGS="-g"
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h. */
3048
3049int
3050main ()
3051{
3052
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057if ac_fn_c_try_compile "$LINENO"; then :
3058 ac_cv_prog_cc_g=yes
3059fi
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3061fi
81ecdfbb 3062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3063fi
81ecdfbb
RW
3064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_c_werror_flag=$ac_save_c_werror_flag
3066fi
3067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3068$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3069if test "$ac_test_CFLAGS" = set; then
3070 CFLAGS=$ac_save_CFLAGS
3071elif test $ac_cv_prog_cc_g = yes; then
3072 if test "$GCC" = yes; then
3073 CFLAGS="-g -O2"
3074 else
3075 CFLAGS="-g"
3076 fi
3077else
3078 if test "$GCC" = yes; then
3079 CFLAGS="-O2"
3080 else
3081 CFLAGS=
3082 fi
3083fi
81ecdfbb
RW
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3085$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3086if test "${ac_cv_prog_cc_c89+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
13b2be9c 3088else
81ecdfbb 3089 ac_cv_prog_cc_c89=no
13b2be9c 3090ac_save_CC=$CC
81ecdfbb 3091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3092/* end confdefs.h. */
3093#include <stdarg.h>
3094#include <stdio.h>
3095#include <sys/types.h>
3096#include <sys/stat.h>
3097/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3098struct buf { int x; };
3099FILE * (*rcsopen) (struct buf *, struct stat *, int);
3100static char *e (p, i)
3101 char **p;
3102 int i;
3103{
3104 return p[i];
3105}
3106static char *f (char * (*g) (char **, int), char **p, ...)
3107{
3108 char *s;
3109 va_list v;
3110 va_start (v,p);
3111 s = g (p, va_arg (v,int));
3112 va_end (v);
3113 return s;
3114}
ab509236
L
3115
3116/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3117 function prototypes and stuff, but not '\xHH' hex character constants.
3118 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3119 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3121 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3122 that's true only with -std. */
ab509236
L
3123int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3124
81ecdfbb
RW
3125/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3126 inside strings and character constants. */
3127#define FOO(x) 'x'
3128int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3129
13b2be9c
DJ
3130int test (int i, double x);
3131struct s1 {int (*f) (int a);};
3132struct s2 {int (*f) (double a);};
3133int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3134int argc;
3135char **argv;
3136int
3137main ()
3138{
3139return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3140 ;
3141 return 0;
3142}
3143_ACEOF
81ecdfbb
RW
3144for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3146do
3147 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3148 if ac_fn_c_try_compile "$LINENO"; then :
3149 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3150fi
81ecdfbb
RW
3151rm -f core conftest.err conftest.$ac_objext
3152 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3153done
81ecdfbb 3154rm -f conftest.$ac_ext
13b2be9c
DJ
3155CC=$ac_save_CC
3156
3157fi
81ecdfbb
RW
3158# AC_CACHE_VAL
3159case "x$ac_cv_prog_cc_c89" in
3160 x)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3162$as_echo "none needed" >&6; } ;;
3163 xno)
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3165$as_echo "unsupported" >&6; } ;;
13b2be9c 3166 *)
81ecdfbb
RW
3167 CC="$CC $ac_cv_prog_cc_c89"
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3169$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3170esac
81ecdfbb 3171if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3172
13b2be9c
DJ
3173fi
3174
13b2be9c
DJ
3175ac_ext=c
3176ac_cpp='$CPP $CPPFLAGS'
3177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
3181
81ecdfbb
RW
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3183$as_echo_n "checking for library containing strerror... " >&6; }
3184if test "${ac_cv_search_strerror+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
13b2be9c 3186else
ab509236 3187 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3189/* end confdefs.h. */
3190
81ecdfbb
RW
3191/* Override any GCC internal prototype to avoid an error.
3192 Use char because int might match the return type of a GCC
3193 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3194#ifdef __cplusplus
3195extern "C"
3196#endif
13b2be9c
DJ
3197char strerror ();
3198int
3199main ()
3200{
81ecdfbb 3201return strerror ();
13b2be9c
DJ
3202 ;
3203 return 0;
3204}
3205_ACEOF
81ecdfbb
RW
3206for ac_lib in '' cposix; do
3207 if test -z "$ac_lib"; then
3208 ac_res="none required"
3209 else
3210 ac_res=-l$ac_lib
ab509236 3211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3212 fi
3213 if ac_fn_c_try_link "$LINENO"; then :
3214 ac_cv_search_strerror=$ac_res
3215fi
3216rm -f core conftest.err conftest.$ac_objext \
3217 conftest$ac_exeext
3218 if test "${ac_cv_search_strerror+set}" = set; then :
3219 break
3220fi
3221done
3222if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3223
ab509236 3224else
81ecdfbb 3225 ac_cv_search_strerror=no
13b2be9c 3226fi
81ecdfbb 3227rm conftest.$ac_ext
ab509236
L
3228LIBS=$ac_func_search_save_LIBS
3229fi
81ecdfbb
RW
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3231$as_echo "$ac_cv_search_strerror" >&6; }
3232ac_res=$ac_cv_search_strerror
3233if test "$ac_res" != no; then :
3234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3235
ab509236 3236fi
13b2be9c
DJ
3237
3238
81ecdfbb
RW
3239am__api_version='1.11'
3240
13b2be9c
DJ
3241# Find a good install program. We prefer a C program (faster),
3242# so one script is as good as another. But avoid the broken or
3243# incompatible versions:
3244# SysV /etc/install, /usr/sbin/install
3245# SunOS /usr/etc/install
3246# IRIX /sbin/install
3247# AIX /bin/install
3248# AmigaOS /C/install, which installs bootblocks on floppy discs
3249# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3250# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3251# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3252# OS/2's system install, which has a completely different semantic
13b2be9c 3253# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3254# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3256$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3257if test -z "$INSTALL"; then
81ecdfbb
RW
3258if test "${ac_cv_path_install+set}" = set; then :
3259 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3260else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262for as_dir in $PATH
3263do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3266 # Account for people who put trailing slashes in PATH elements.
3267case $as_dir/ in #((
3268 ./ | .// | /[cC]/* | \
13b2be9c 3269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3270 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3271 /usr/ucb/* ) ;;
3272 *)
3273 # OSF1 and SCO ODT 3.0 have their own names for install.
3274 # Don't use installbsd from OSF since it installs stuff as root
3275 # by default.
3276 for ac_prog in ginstall scoinst install; do
3277 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3279 if test $ac_prog = install &&
3280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3281 # AIX install. It has an incompatible calling convention.
3282 :
3283 elif test $ac_prog = install &&
3284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3285 # program-specific install script used by HP pwplus--don't use.
3286 :
3287 else
58c85be7
RW
3288 rm -rf conftest.one conftest.two conftest.dir
3289 echo one > conftest.one
3290 echo two > conftest.two
3291 mkdir conftest.dir
3292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3293 test -s conftest.one && test -s conftest.two &&
3294 test -s conftest.dir/conftest.one &&
3295 test -s conftest.dir/conftest.two
3296 then
3297 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3298 break 3
3299 fi
ab509236
L
3300 fi
3301 fi
13b2be9c
DJ
3302 done
3303 done
3304 ;;
3305esac
81ecdfbb
RW
3306
3307 done
3308IFS=$as_save_IFS
13b2be9c 3309
58c85be7 3310rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3311
3312fi
3313 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3314 INSTALL=$ac_cv_path_install
252b5132 3315 else
58c85be7
RW
3316 # As a last resort, use the slow shell script. Don't cache a
3317 # value for INSTALL within a source directory, because that will
252b5132 3318 # break other packages using the cache if that directory is
58c85be7 3319 # removed, or if the value is a relative name.
13b2be9c 3320 INSTALL=$ac_install_sh
252b5132
RH
3321 fi
3322fi
81ecdfbb
RW
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3324$as_echo "$INSTALL" >&6; }
252b5132
RH
3325
3326# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3327# It thinks the first close brace ends the variable substitution.
3328test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3329
13b2be9c 3330test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3331
3332test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3333
81ecdfbb
RW
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3335$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3336# Just in case
3337sleep 1
13b2be9c 3338echo timestamp > conftest.file
81ecdfbb
RW
3339# Reject unsafe characters in $srcdir or the absolute working directory
3340# name. Accept space and tab only in the latter.
3341am_lf='
3342'
3343case `pwd` in
3344 *[\\\"\#\$\&\'\`$am_lf]*)
3345 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3346esac
3347case $srcdir in
3348 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3349 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3350esac
3351
252b5132
RH
3352# Do `set' in a subshell so we don't clobber the current shell's
3353# arguments. Must try -L first in case configure is actually a
3354# symlink; some systems play weird games with the mod time of symlinks
3355# (eg FreeBSD returns the mod time of the symlink's containing
3356# directory).
3357if (
81ecdfbb 3358 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3359 if test "$*" = "X"; then
3360 # -L didn't work.
81ecdfbb 3361 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3362 fi
13b2be9c
DJ
3363 rm -f conftest.file
3364 if test "$*" != "X $srcdir/configure conftest.file" \
3365 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3366
3367 # If neither matched, then we have a broken ls. This can happen
3368 # if, for instance, CONFIG_SHELL is bash and it inherits a
3369 # broken ls alias from the environment. This has actually
3370 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3371 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3372alias in your environment" "$LINENO" 5
252b5132
RH
3373 fi
3374
13b2be9c
DJ
3375 test "$2" = conftest.file
3376 )
3377then
3378 # Ok.
3379 :
3380else
81ecdfbb
RW
3381 as_fn_error "newly created file is older than distributed files!
3382Check your system clock" "$LINENO" 5
13b2be9c 3383fi
81ecdfbb
RW
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3385$as_echo "yes" >&6; }
13b2be9c 3386test "$program_prefix" != NONE &&
81ecdfbb 3387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3388# Use a double $ so make ignores it.
3389test "$program_suffix" != NONE &&
81ecdfbb
RW
3390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3391# Double any \ or $.
13b2be9c 3392# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3393ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3394program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3395
13b2be9c
DJ
3396# expand $ac_aux_dir to an absolute path
3397am_aux_dir=`cd $ac_aux_dir && pwd`
3398
81ecdfbb
RW
3399if test x"${MISSING+set}" != xset; then
3400 case $am_aux_dir in
3401 *\ * | *\ *)
3402 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3403 *)
3404 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3405 esac
3406fi
13b2be9c
DJ
3407# Use eval to expand $SHELL
3408if eval "$MISSING --run true"; then
3409 am_missing_run="$MISSING --run "
3410else
3411 am_missing_run=
81ecdfbb
RW
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3413$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3414fi
3415
81ecdfbb
RW
3416if test x"${install_sh}" != xset; then
3417 case $am_aux_dir in
3418 *\ * | *\ *)
3419 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3420 *)
3421 install_sh="\${SHELL} $am_aux_dir/install-sh"
3422 esac
3423fi
3424
3425# Installed binaries are usually stripped using `strip' when the user
3426# run `make install-strip'. However `strip' might not be the right
3427# tool to use in cross-compilation environments, therefore Automake
3428# will honor the `STRIP' environment variable to overrule this program.
3429if test "$cross_compiling" != no; then
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3432set dummy ${ac_tool_prefix}strip; ac_word=$2
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
3435if test "${ac_cv_prog_STRIP+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
13b2be9c 3437else
81ecdfbb
RW
3438 if test -n "$STRIP"; then
3439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3450 break 2
3451 fi
3452done
81ecdfbb
RW
3453 done
3454IFS=$as_save_IFS
13b2be9c
DJ
3455
3456fi
3457fi
81ecdfbb
RW
3458STRIP=$ac_cv_prog_STRIP
3459if test -n "$STRIP"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3461$as_echo "$STRIP" >&6; }
13b2be9c 3462else
81ecdfbb
RW
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464$as_echo "no" >&6; }
13b2be9c
DJ
3465fi
3466
13b2be9c 3467
81ecdfbb
RW
3468fi
3469if test -z "$ac_cv_prog_STRIP"; then
3470 ac_ct_STRIP=$STRIP
3471 # Extract the first word of "strip", so it can be a program name with args.
3472set dummy strip; ac_word=$2
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474$as_echo_n "checking for $ac_word... " >&6; }
3475if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
13b2be9c 3477else
81ecdfbb
RW
3478 if test -n "$ac_ct_STRIP"; then
3479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3480else
81ecdfbb
RW
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_STRIP="strip"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492done
3493 done
3494IFS=$as_save_IFS
3495
3496fi
3497fi
3498ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3499if test -n "$ac_ct_STRIP"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3501$as_echo "$ac_ct_STRIP" >&6; }
3502else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504$as_echo "no" >&6; }
3505fi
3506
3507 if test "x$ac_ct_STRIP" = x; then
3508 STRIP=":"
3509 else
3510 case $cross_compiling:$ac_tool_warned in
3511yes:)
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514ac_tool_warned=yes ;;
3515esac
3516 STRIP=$ac_ct_STRIP
3517 fi
3518else
3519 STRIP="$ac_cv_prog_STRIP"
3520fi
3521
3522fi
3523INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3524
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3526$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3527if test -z "$MKDIR_P"; then
3528 if test "${ac_cv_path_mkdir+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3533do
3534 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=.
3536 for ac_prog in mkdir gmkdir; do
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3539 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3540 'mkdir (GNU coreutils) '* | \
3541 'mkdir (coreutils) '* | \
3542 'mkdir (fileutils) '4.1*)
3543 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3544 break 3;;
3545 esac
3546 done
3547 done
3548 done
3549IFS=$as_save_IFS
3550
3551fi
3552
3553 if test "${ac_cv_path_mkdir+set}" = set; then
3554 MKDIR_P="$ac_cv_path_mkdir -p"
3555 else
3556 # As a last resort, use the slow shell script. Don't cache a
3557 # value for MKDIR_P within a source directory, because that will
3558 # break other packages using the cache if that directory is
3559 # removed, or if the value is a relative name.
3560 test -d ./--version && rmdir ./--version
3561 MKDIR_P="$ac_install_sh -d"
3562 fi
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3565$as_echo "$MKDIR_P" >&6; }
3566
3567mkdir_p="$MKDIR_P"
3568case $mkdir_p in
3569 [\\/$]* | ?:[\\/]*) ;;
3570 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3571esac
3572
3573for ac_prog in gawk mawk nawk awk
3574do
3575 # Extract the first word of "$ac_prog", so it can be a program name with args.
3576set dummy $ac_prog; ac_word=$2
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578$as_echo_n "checking for $ac_word... " >&6; }
3579if test "${ac_cv_prog_AWK+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3581else
3582 if test -n "$AWK"; then
3583 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3584else
3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586for as_dir in $PATH
3587do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3592 ac_cv_prog_AWK="$ac_prog"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597 done
3598IFS=$as_save_IFS
3599
3600fi
3601fi
3602AWK=$ac_cv_prog_AWK
3603if test -n "$AWK"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3605$as_echo "$AWK" >&6; }
3606else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
13b2be9c 3609fi
81ecdfbb
RW
3610
3611
3612 test -n "$AWK" && break
3613done
3614
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3616$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3617set x ${MAKE-make}
3618ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3619if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3620 $as_echo_n "(cached) " >&6
3621else
3622 cat >conftest.make <<\_ACEOF
3623SHELL = /bin/sh
3624all:
3625 @echo '@@@%%%=$(MAKE)=@@@%%%'
3626_ACEOF
3627# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3628case `${MAKE-make} -f conftest.make 2>/dev/null` in
3629 *@@@%%%=?*=@@@%%%*)
3630 eval ac_cv_prog_make_${ac_make}_set=yes;;
3631 *)
3632 eval ac_cv_prog_make_${ac_make}_set=no;;
3633esac
13b2be9c
DJ
3634rm -f conftest.make
3635fi
81ecdfbb
RW
3636if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638$as_echo "yes" >&6; }
13b2be9c
DJ
3639 SET_MAKE=
3640else
81ecdfbb
RW
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3642$as_echo "no" >&6; }
13b2be9c
DJ
3643 SET_MAKE="MAKE=${MAKE-make}"
3644fi
3645
3646rm -rf .tst 2>/dev/null
3647mkdir .tst 2>/dev/null
3648if test -d .tst; then
3649 am__leading_dot=.
3650else
3651 am__leading_dot=_
3652fi
3653rmdir .tst 2>/dev/null
3654
3655DEPDIR="${am__leading_dot}deps"
3656
81ecdfbb 3657ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3658
3659
3660am_make=${MAKE-make}
3661cat > confinc << 'END'
3662am__doit:
81ecdfbb 3663 @echo this is the am__doit target
13b2be9c
DJ
3664.PHONY: am__doit
3665END
3666# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3668$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3669am__include="#"
3670am__quote=
3671_am_result=none
3672# First try GNU make style include.
3673echo "include confinc" > confmf
81ecdfbb
RW
3674# Ignore all kinds of additional output from `make'.
3675case `$am_make -s -f confmf 2> /dev/null` in #(
3676*the\ am__doit\ target*)
3677 am__include=include
3678 am__quote=
3679 _am_result=GNU
3680 ;;
3681esac
13b2be9c
DJ
3682# Now try BSD make style include.
3683if test "$am__include" = "#"; then
3684 echo '.include "confinc"' > confmf
81ecdfbb
RW
3685 case `$am_make -s -f confmf 2> /dev/null` in #(
3686 *the\ am__doit\ target*)
3687 am__include=.include
3688 am__quote="\""
3689 _am_result=BSD
3690 ;;
3691 esac
13b2be9c
DJ
3692fi
3693
3694
81ecdfbb
RW
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3696$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3697rm -f confinc confmf
3698
81ecdfbb
RW
3699# Check whether --enable-dependency-tracking was given.
3700if test "${enable_dependency_tracking+set}" = set; then :
3701 enableval=$enable_dependency_tracking;
3702fi
13b2be9c 3703
13b2be9c
DJ
3704if test "x$enable_dependency_tracking" != xno; then
3705 am_depcomp="$ac_aux_dir/depcomp"
3706 AMDEPBACKSLASH='\'
6eb7d830 3707 am__nodep='_no'
13b2be9c 3708fi
81ecdfbb 3709 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3710 AMDEP_TRUE=
3711 AMDEP_FALSE='#'
3712else
3713 AMDEP_TRUE='#'
3714 AMDEP_FALSE=
3715fi
3716
3717
81ecdfbb
RW
3718if test "`cd $srcdir && pwd`" != "`pwd`"; then
3719 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3720 # is not polluted with repeated "-I."
3721 am__isrc=' -I$(srcdir)'
3722 # test to see if srcdir already configured
3723 if test -f $srcdir/config.status; then
3724 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3725 fi
13b2be9c
DJ
3726fi
3727
3728# test whether we have cygpath
3729if test -z "$CYGPATH_W"; then
3730 if (cygpath --version) >/dev/null 2>/dev/null; then
3731 CYGPATH_W='cygpath -w'
3732 else
3733 CYGPATH_W=echo
3734 fi
3735fi
3736
3737
3738# Define the identity of the package.
2e98a7bd 3739 PACKAGE='gas'
d8bd95ef 3740 VERSION='2.26.51'
13b2be9c
DJ
3741
3742
3743cat >>confdefs.h <<_ACEOF
3744#define PACKAGE "$PACKAGE"
3745_ACEOF
3746
3747
3748cat >>confdefs.h <<_ACEOF
3749#define VERSION "$VERSION"
3750_ACEOF
3751
3752# Some tools Automake needs.
3753
3754ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3755
3756
3757AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3758
3759
3760AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3761
3762
3763AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3764
3765
3766MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3767
13b2be9c
DJ
3768# We need awk for the "check" target. The system "awk" is bad on
3769# some platforms.
6eb7d830
AM
3770# Always define AMTAR for backward compatibility. Yes, it's still used
3771# in the wild :-( We should find a proper way to deprecate it ...
3772AMTAR='$${TAR-tar}'
8ea2b00f 3773
6eb7d830 3774am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8ea2b00f
AM
3775
3776
252b5132 3777
d6d788bd 3778
13b2be9c 3779depcc="$CC" am_compiler_list=
d6d788bd 3780
81ecdfbb
RW
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782$as_echo_n "checking dependency style of $depcc... " >&6; }
3783if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3784 $as_echo_n "(cached) " >&6
252b5132 3785else
13b2be9c
DJ
3786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787 # We make a subdir and do the tests there. Otherwise we can end up
3788 # making bogus files that we don't know about and never remove. For
3789 # instance it was reported that on HP-UX the gcc test will end up
3790 # making a dummy file named `D' -- because `-MD' means `put the output
3791 # in D'.
6eb7d830 3792 rm -rf conftest.dir
13b2be9c
DJ
3793 mkdir conftest.dir
3794 # Copy depcomp to subdir because otherwise we won't find it if we're
3795 # using a relative directory.
3796 cp "$am_depcomp" conftest.dir
3797 cd conftest.dir
3798 # We will build objects and dependencies in a subdirectory because
3799 # it helps to detect inapplicable dependency modes. For instance
3800 # both Tru64's cc and ICC support -MD to output dependencies as a
3801 # side effect of compilation, but ICC will put the dependencies in
3802 # the current directory while Tru64 will put them in the object
3803 # directory.
3804 mkdir sub
252b5132 3805
13b2be9c
DJ
3806 am_cv_CC_dependencies_compiler_type=none
3807 if test "$am_compiler_list" = ""; then
3808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3809 fi
81ecdfbb
RW
3810 am__universal=false
3811 case " $depcc " in #(
3812 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3813 esac
3814
13b2be9c
DJ
3815 for depmode in $am_compiler_list; do
3816 # Setup a source with many dependencies, because some compilers
3817 # like to wrap large dependency lists on column 80 (with \), and
3818 # we should not choose a depcomp mode which is confused by this.
3819 #
3820 # We need to recreate these files for each test, as the compiler may
3821 # overwrite some of them when testing with obscure command lines.
3822 # This happens at least with the AIX C compiler.
3823 : > sub/conftest.c
3824 for i in 1 2 3 4 5 6; do
3825 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3826 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3827 # Solaris 8's {/usr,}/bin/sh.
3828 touch sub/conftst$i.h
13b2be9c
DJ
3829 done
3830 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831
81ecdfbb
RW
3832 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3833 # mode. It turns out that the SunPro C++ compiler does not properly
3834 # handle `-M -o', and we need to detect this. Also, some Intel
3835 # versions had trouble with output in subdirs
3836 am__obj=sub/conftest.${OBJEXT-o}
3837 am__minus_obj="-o $am__obj"
13b2be9c 3838 case $depmode in
81ecdfbb
RW
3839 gcc)
3840 # This depmode causes a compiler race in universal mode.
3841 test "$am__universal" = false || continue
3842 ;;
13b2be9c
DJ
3843 nosideeffect)
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3847 continue
3848 else
3849 break
3850 fi
3851 ;;
6eb7d830 3852 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
3853 # This compiler won't grok `-c -o', but also, the minuso test has
3854 # not run yet. These depmodes are late enough in the game, and
3855 # so weak that their functioning should not be impacted.
3856 am__obj=conftest.${OBJEXT-o}
3857 am__minus_obj=
3858 ;;
13b2be9c
DJ
3859 none) break ;;
3860 esac
13b2be9c 3861 if depmode=$depmode \
81ecdfbb 3862 source=sub/conftest.c object=$am__obj \
13b2be9c 3863 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3864 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3865 >/dev/null 2>conftest.err &&
81ecdfbb 3866 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3867 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3868 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3869 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3870 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3871 # or remarks (even with -Werror). So we grep stderr for any message
3872 # that says an option was ignored or not supported.
3873 # When given -MP, icc 7.0 and 7.1 complain thusly:
3874 # icc: Command line warning: ignoring option '-M'; no argument required
3875 # The diagnosis changed in icc 8.0:
3876 # icc: Command line remark: option '-MP' not supported
3877 if (grep 'ignoring option' conftest.err ||
3878 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3879 am_cv_CC_dependencies_compiler_type=$depmode
3880 break
3881 fi
3882 fi
3883 done
252b5132 3884
13b2be9c
DJ
3885 cd ..
3886 rm -rf conftest.dir
252b5132 3887else
13b2be9c 3888 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3889fi
3890
252b5132 3891fi
81ecdfbb
RW
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3893$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3894CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3895
81ecdfbb 3896 if
13b2be9c
DJ
3897 test "x$enable_dependency_tracking" != xno \
3898 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899 am__fastdepCC_TRUE=
3900 am__fastdepCC_FALSE='#'
252b5132 3901else
13b2be9c
DJ
3902 am__fastdepCC_TRUE='#'
3903 am__fastdepCC_FALSE=
252b5132
RH
3904fi
3905
d6d788bd
L
3906
3907
13b2be9c 3908
ce2cded5
L
3909ac_ext=c
3910ac_cpp='$CPP $CPPFLAGS'
3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
3919if test "${ac_cv_prog_CC+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
252b5132 3921else
ce2cded5
L
3922 if test -n "$CC"; then
3923 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3924else
ce2cded5
L
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3934 break 2
3935 fi
3936done
81ecdfbb
RW
3937 done
3938IFS=$as_save_IFS
d7040cdb 3939
ce2cded5
L
3940fi
3941fi
3942CC=$ac_cv_prog_CC
3943if test -n "$CC"; then
81ecdfbb
RW
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945$as_echo "$CC" >&6; }
bedf545c 3946else
81ecdfbb
RW
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
ce2cded5 3949fi
d7040cdb 3950
81ecdfbb 3951
ce2cded5
L
3952fi
3953if test -z "$ac_cv_prog_CC"; then
3954 ac_ct_CC=$CC
3955 # Extract the first word of "gcc", so it can be a program name with args.
3956set dummy gcc; ac_word=$2
81ecdfbb
RW
3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958$as_echo_n "checking for $ac_word... " >&6; }
3959if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
d7040cdb 3961else
ce2cded5
L
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964else
d7040cdb
SE
3965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3972 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3974 break 2
d7040cdb 3975 fi
ce2cded5 3976done
81ecdfbb
RW
3977 done
3978IFS=$as_save_IFS
d7040cdb 3979
ce2cded5
L
3980fi
3981fi
3982ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3986else
81ecdfbb
RW
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988$as_echo "no" >&6; }
d7040cdb
SE
3989fi
3990
81ecdfbb
RW
3991 if test "x$ac_ct_CC" = x; then
3992 CC=""
3993 else
3994 case $cross_compiling:$ac_tool_warned in
3995yes:)
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998ac_tool_warned=yes ;;
3999esac
4000 CC=$ac_ct_CC
4001 fi
ce2cded5
L
4002else
4003 CC="$ac_cv_prog_CC"
4004fi
d7040cdb 4005
ce2cded5 4006if test -z "$CC"; then
81ecdfbb
RW
4007 if test -n "$ac_tool_prefix"; then
4008 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4009set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011$as_echo_n "checking for $ac_word... " >&6; }
4012if test "${ac_cv_prog_CC+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
d7040cdb 4014else
ce2cded5
L
4015 if test -n "$CC"; then
4016 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4017else
ce2cded5
L
4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019for as_dir in $PATH
4020do
4021 IFS=$as_save_IFS
4022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4025 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4027 break 2
4028 fi
4029done
81ecdfbb
RW
4030 done
4031IFS=$as_save_IFS
d7040cdb 4032
252b5132
RH
4033fi
4034fi
ce2cded5
L
4035CC=$ac_cv_prog_CC
4036if test -n "$CC"; then
81ecdfbb
RW
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4038$as_echo "$CC" >&6; }
ce2cded5 4039else
81ecdfbb
RW
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041$as_echo "no" >&6; }
d7040cdb 4042fi
f9c19112 4043
ce2cded5 4044
81ecdfbb 4045 fi
ce2cded5
L
4046fi
4047if test -z "$CC"; then
4048 # Extract the first word of "cc", so it can be a program name with args.
4049set dummy cc; ac_word=$2
81ecdfbb
RW
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051$as_echo_n "checking for $ac_word... " >&6; }
4052if test "${ac_cv_prog_CC+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
ce2cded5
L
4054else
4055 if test -n "$CC"; then
4056 ac_cv_prog_CC="$CC" # Let the user override the test.
4057else
4058 ac_prog_rejected=no
4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4066 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067 ac_prog_rejected=yes
4068 continue
4069 fi
4070 ac_cv_prog_CC="cc"
81ecdfbb 4071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4072 break 2
4073 fi
4074done
81ecdfbb
RW
4075 done
4076IFS=$as_save_IFS
ce2cded5
L
4077
4078if test $ac_prog_rejected = yes; then
4079 # We found a bogon in the path, so make sure we never use it.
4080 set dummy $ac_cv_prog_CC
4081 shift
4082 if test $# != 0; then
4083 # We chose a different compiler from the bogus one.
4084 # However, it has the same basename, so the bogon will be chosen
4085 # first if we set CC to just the basename; use the full file name.
4086 shift
4087 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4088 fi
4089fi
4090fi
4091fi
4092CC=$ac_cv_prog_CC
4093if test -n "$CC"; then
81ecdfbb
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095$as_echo "$CC" >&6; }
ce2cded5 4096else
81ecdfbb
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
ce2cded5
L
4099fi
4100
81ecdfbb 4101
ce2cded5
L
4102fi
4103if test -z "$CC"; then
4104 if test -n "$ac_tool_prefix"; then
81ecdfbb 4105 for ac_prog in cl.exe
ce2cded5
L
4106 do
4107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4108set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110$as_echo_n "checking for $ac_word... " >&6; }
4111if test "${ac_cv_prog_CC+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
ce2cded5
L
4113else
4114 if test -n "$CC"; then
4115 ac_cv_prog_CC="$CC" # Let the user override the test.
4116else
4117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118for as_dir in $PATH
4119do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4122 for ac_exec_ext in '' $ac_executable_extensions; do
4123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4124 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4126 break 2
4127 fi
4128done
81ecdfbb
RW
4129 done
4130IFS=$as_save_IFS
ce2cded5
L
4131
4132fi
4133fi
4134CC=$ac_cv_prog_CC
4135if test -n "$CC"; then
81ecdfbb
RW
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137$as_echo "$CC" >&6; }
ce2cded5 4138else
81ecdfbb
RW
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140$as_echo "no" >&6; }
ce2cded5
L
4141fi
4142
81ecdfbb 4143
ce2cded5 4144 test -n "$CC" && break
d7040cdb
SE
4145 done
4146fi
ce2cded5
L
4147if test -z "$CC"; then
4148 ac_ct_CC=$CC
81ecdfbb 4149 for ac_prog in cl.exe
d7040cdb
SE
4150do
4151 # Extract the first word of "$ac_prog", so it can be a program name with args.
4152set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154$as_echo_n "checking for $ac_word... " >&6; }
4155if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4156 $as_echo_n "(cached) " >&6
d7040cdb 4157else
ce2cded5
L
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4160else
4161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4168 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4170 break 2
ac48eca1 4171 fi
d7040cdb 4172done
81ecdfbb
RW
4173 done
4174IFS=$as_save_IFS
ac48eca1 4175
d7040cdb
SE
4176fi
4177fi
ce2cded5
L
4178ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4182else
81ecdfbb
RW
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
d7040cdb 4185fi
ac48eca1 4186
81ecdfbb 4187
ce2cded5 4188 test -n "$ac_ct_CC" && break
d7040cdb 4189done
ac48eca1 4190
81ecdfbb
RW
4191 if test "x$ac_ct_CC" = x; then
4192 CC=""
4193 else
4194 case $cross_compiling:$ac_tool_warned in
4195yes:)
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198ac_tool_warned=yes ;;
4199esac
4200 CC=$ac_ct_CC
4201 fi
d7040cdb 4202fi
ac48eca1 4203
d7040cdb 4204fi
ac48eca1 4205
ac48eca1 4206
81ecdfbb
RW
4207test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209as_fn_error "no acceptable C compiler found in \$PATH
4210See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4211
ce2cded5 4212# Provide some information about the compiler.
81ecdfbb
RW
4213$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4214set X $ac_compile
4215ac_compiler=$2
4216for ac_option in --version -v -V -qversion; do
4217 { { ac_try="$ac_compiler $ac_option >&5"
4218case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223$as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4225 ac_status=$?
81ecdfbb
RW
4226 if test -s conftest.err; then
4227 sed '10a\
4228... rest of stderr output deleted ...
4229 10q' conftest.err >conftest.er1
4230 cat conftest.er1 >&5
4231 rm -f conftest.er1 conftest.err
4232 fi
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; }
4235done
ac48eca1 4236
81ecdfbb
RW
4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4238$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4239if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
d7040cdb 4241else
81ecdfbb 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4243/* end confdefs.h. */
c8615825 4244
ce2cded5
L
4245int
4246main ()
4247{
4248#ifndef __GNUC__
4249 choke me
4250#endif
4251
4252 ;
4253 return 0;
4254}
4255_ACEOF
81ecdfbb 4256if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4257 ac_compiler_gnu=yes
d7040cdb 4258else
81ecdfbb 4259 ac_compiler_gnu=no
d7040cdb 4260fi
81ecdfbb 4261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4262ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4263
ce2cded5 4264fi
81ecdfbb
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4266$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4267if test $ac_compiler_gnu = yes; then
4268 GCC=yes
4269else
4270 GCC=
4271fi
ce2cded5
L
4272ac_test_CFLAGS=${CFLAGS+set}
4273ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275$as_echo_n "checking whether $CC accepts -g... " >&6; }
4276if test "${ac_cv_prog_cc_g+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278else
4279 ac_save_c_werror_flag=$ac_c_werror_flag
4280 ac_c_werror_flag=yes
4281 ac_cv_prog_cc_g=no
4282 CFLAGS="-g"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4284/* end confdefs.h. */
d7040cdb 4285
ce2cded5
L
4286int
4287main ()
4288{
d7040cdb 4289
ce2cded5
L
4290 ;
4291 return 0;
4292}
4293_ACEOF
81ecdfbb 4294if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4295 ac_cv_prog_cc_g=yes
4296else
81ecdfbb
RW
4297 CFLAGS=""
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299/* end confdefs.h. */
4300
4301int
4302main ()
4303{
4304
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309if ac_fn_c_try_compile "$LINENO"; then :
4310
4311else
4312 ac_c_werror_flag=$ac_save_c_werror_flag
4313 CFLAGS="-g"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h. */
d70c5fc7 4316
81ecdfbb
RW
4317int
4318main ()
4319{
4320
4321 ;
4322 return 0;
4323}
4324_ACEOF
4325if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_g=yes
4327fi
4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4329fi
81ecdfbb 4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4331fi
81ecdfbb
RW
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_c_werror_flag=$ac_save_c_werror_flag
4334fi
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4336$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4337if test "$ac_test_CFLAGS" = set; then
4338 CFLAGS=$ac_save_CFLAGS
4339elif test $ac_cv_prog_cc_g = yes; then
4340 if test "$GCC" = yes; then
4341 CFLAGS="-g -O2"
4342 else
4343 CFLAGS="-g"
4344 fi
ac48eca1 4345else
ce2cded5
L
4346 if test "$GCC" = yes; then
4347 CFLAGS="-O2"
4348 else
4349 CFLAGS=
4350 fi
ac48eca1 4351fi
81ecdfbb
RW
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4353$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4354if test "${ac_cv_prog_cc_c89+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
ac48eca1 4356else
81ecdfbb 4357 ac_cv_prog_cc_c89=no
ce2cded5 4358ac_save_CC=$CC
81ecdfbb 4359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4360/* end confdefs.h. */
4361#include <stdarg.h>
4362#include <stdio.h>
4363#include <sys/types.h>
4364#include <sys/stat.h>
4365/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4366struct buf { int x; };
4367FILE * (*rcsopen) (struct buf *, struct stat *, int);
4368static char *e (p, i)
4369 char **p;
4370 int i;
4371{
4372 return p[i];
4373}
4374static char *f (char * (*g) (char **, int), char **p, ...)
4375{
4376 char *s;
4377 va_list v;
4378 va_start (v,p);
4379 s = g (p, va_arg (v,int));
4380 va_end (v);
4381 return s;
4382}
4383
4384/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4385 function prototypes and stuff, but not '\xHH' hex character constants.
4386 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4387 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4389 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4390 that's true only with -std. */
ce2cded5
L
4391int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392
81ecdfbb
RW
4393/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4394 inside strings and character constants. */
4395#define FOO(x) 'x'
4396int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397
ce2cded5
L
4398int test (int i, double x);
4399struct s1 {int (*f) (int a);};
4400struct s2 {int (*f) (double a);};
4401int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4402int argc;
4403char **argv;
4404int
4405main ()
4406{
4407return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4408 ;
4409 return 0;
4410}
4411_ACEOF
81ecdfbb
RW
4412for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4414do
4415 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4416 if ac_fn_c_try_compile "$LINENO"; then :
4417 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4418fi
81ecdfbb
RW
4419rm -f core conftest.err conftest.$ac_objext
4420 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4421done
81ecdfbb 4422rm -f conftest.$ac_ext
ce2cded5
L
4423CC=$ac_save_CC
4424
4425fi
81ecdfbb
RW
4426# AC_CACHE_VAL
4427case "x$ac_cv_prog_cc_c89" in
4428 x)
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4430$as_echo "none needed" >&6; } ;;
4431 xno)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4433$as_echo "unsupported" >&6; } ;;
ce2cded5 4434 *)
81ecdfbb
RW
4435 CC="$CC $ac_cv_prog_cc_c89"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4437$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4438esac
81ecdfbb 4439if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4440
ce2cded5 4441fi
d7040cdb 4442
ce2cded5
L
4443ac_ext=c
4444ac_cpp='$CPP $CPPFLAGS'
4445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4448
7357c5b6
AM
4449ac_ext=c
4450ac_cpp='$CPP $CPPFLAGS'
4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4455$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4456# On Suns, sometimes $CPP names a directory.
4457if test -n "$CPP" && test -d "$CPP"; then
4458 CPP=
4459fi
4460if test -z "$CPP"; then
81ecdfbb
RW
4461 if test "${ac_cv_prog_CPP+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
7357c5b6
AM
4463else
4464 # Double quotes because CPP needs to be expanded
4465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4466 do
4467 ac_preproc_ok=false
4468for ac_c_preproc_warn_flag in '' yes
4469do
4470 # Use a header file that comes with gcc, so configuring glibc
4471 # with a fresh cross-compiler works.
4472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473 # <limits.h> exists even on freestanding compilers.
4474 # On the NeXT, cc -E runs the code through the compiler's parser,
4475 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4477/* end confdefs.h. */
4478#ifdef __STDC__
4479# include <limits.h>
4480#else
4481# include <assert.h>
4482#endif
4483 Syntax error
4484_ACEOF
81ecdfbb 4485if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4486
81ecdfbb 4487else
7357c5b6
AM
4488 # Broken: fails on valid input.
4489continue
4490fi
4491rm -f conftest.err conftest.$ac_ext
d7040cdb 4492
81ecdfbb 4493 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4494 # can be detected and how.
81ecdfbb 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4496/* end confdefs.h. */
4497#include <ac_nonexistent.h>
4498_ACEOF
81ecdfbb 4499if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4500 # Broken: success on invalid input.
4501continue
4502else
7357c5b6
AM
4503 # Passes both tests.
4504ac_preproc_ok=:
4505break
4506fi
4507rm -f conftest.err conftest.$ac_ext
d7040cdb 4508
7357c5b6
AM
4509done
4510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511rm -f conftest.err conftest.$ac_ext
81ecdfbb 4512if $ac_preproc_ok; then :
7357c5b6
AM
4513 break
4514fi
d7040cdb 4515
7357c5b6
AM
4516 done
4517 ac_cv_prog_CPP=$CPP
d7040cdb 4518
7357c5b6
AM
4519fi
4520 CPP=$ac_cv_prog_CPP
4521else
4522 ac_cv_prog_CPP=$CPP
4523fi
81ecdfbb
RW
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4525$as_echo "$CPP" >&6; }
7357c5b6
AM
4526ac_preproc_ok=false
4527for ac_c_preproc_warn_flag in '' yes
4528do
4529 # Use a header file that comes with gcc, so configuring glibc
4530 # with a fresh cross-compiler works.
4531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4532 # <limits.h> exists even on freestanding compilers.
4533 # On the NeXT, cc -E runs the code through the compiler's parser,
4534 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4536/* end confdefs.h. */
4537#ifdef __STDC__
4538# include <limits.h>
4539#else
4540# include <assert.h>
4541#endif
4542 Syntax error
4543_ACEOF
81ecdfbb 4544if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4545
81ecdfbb 4546else
7357c5b6
AM
4547 # Broken: fails on valid input.
4548continue
4549fi
4550rm -f conftest.err conftest.$ac_ext
d7040cdb 4551
81ecdfbb 4552 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4553 # can be detected and how.
81ecdfbb 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4555/* end confdefs.h. */
4556#include <ac_nonexistent.h>
4557_ACEOF
81ecdfbb 4558if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4559 # Broken: success on invalid input.
4560continue
4561else
7357c5b6
AM
4562 # Passes both tests.
4563ac_preproc_ok=:
4564break
4565fi
4566rm -f conftest.err conftest.$ac_ext
d7040cdb 4567
7357c5b6
AM
4568done
4569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4570rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4571if $ac_preproc_ok; then :
4572
7357c5b6 4573else
81ecdfbb
RW
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576as_fn_error "C preprocessor \"$CPP\" fails sanity check
4577See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4578fi
ac48eca1 4579
7357c5b6
AM
4580ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4585
ac48eca1 4586
81ecdfbb
RW
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4588$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4589if test "${ac_cv_path_GREP+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
7357c5b6 4591else
81ecdfbb
RW
4592 if test -z "$GREP"; then
4593 ac_path_GREP_found=false
4594 # Loop through the user's path and test for each of PROGNAME-LIST
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_prog in grep ggrep; do
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4603 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4604# Check for GNU ac_path_GREP and select it if it is found.
4605 # Check for GNU $ac_path_GREP
4606case `"$ac_path_GREP" --version 2>&1` in
4607*GNU*)
4608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4609*)
4610 ac_count=0
4611 $as_echo_n 0123456789 >"conftest.in"
4612 while :
4613 do
4614 cat "conftest.in" "conftest.in" >"conftest.tmp"
4615 mv "conftest.tmp" "conftest.in"
4616 cp "conftest.in" "conftest.nl"
4617 $as_echo 'GREP' >> "conftest.nl"
4618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620 as_fn_arith $ac_count + 1 && ac_count=$as_val
4621 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4622 # Best one so far, save it but keep looking for a better one
4623 ac_cv_path_GREP="$ac_path_GREP"
4624 ac_path_GREP_max=$ac_count
7357c5b6 4625 fi
81ecdfbb
RW
4626 # 10*(2^10) chars as input seems more than enough
4627 test $ac_count -gt 10 && break
4628 done
4629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630esac
4631
4632 $ac_path_GREP_found && break 3
4633 done
4634 done
4635 done
4636IFS=$as_save_IFS
4637 if test -z "$ac_cv_path_GREP"; then
4638 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 fi
4640else
4641 ac_cv_path_GREP=$GREP
7357c5b6 4642fi
81ecdfbb
RW
4643
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4646$as_echo "$ac_cv_path_GREP" >&6; }
4647 GREP="$ac_cv_path_GREP"
ac48eca1 4648
d7040cdb 4649
81ecdfbb
RW
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4651$as_echo_n "checking for egrep... " >&6; }
4652if test "${ac_cv_path_EGREP+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
7357c5b6 4654else
81ecdfbb
RW
4655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656 then ac_cv_path_EGREP="$GREP -E"
4657 else
4658 if test -z "$EGREP"; then
4659 ac_path_EGREP_found=false
4660 # Loop through the user's path and test for each of PROGNAME-LIST
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_prog in egrep; do
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670# Check for GNU ac_path_EGREP and select it if it is found.
4671 # Check for GNU $ac_path_EGREP
4672case `"$ac_path_EGREP" --version 2>&1` in
4673*GNU*)
4674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675*)
4676 ac_count=0
4677 $as_echo_n 0123456789 >"conftest.in"
4678 while :
4679 do
4680 cat "conftest.in" "conftest.in" >"conftest.tmp"
4681 mv "conftest.tmp" "conftest.in"
4682 cp "conftest.in" "conftest.nl"
4683 $as_echo 'EGREP' >> "conftest.nl"
4684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686 as_fn_arith $ac_count + 1 && ac_count=$as_val
4687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688 # Best one so far, save it but keep looking for a better one
4689 ac_cv_path_EGREP="$ac_path_EGREP"
4690 ac_path_EGREP_max=$ac_count
4691 fi
4692 # 10*(2^10) chars as input seems more than enough
4693 test $ac_count -gt 10 && break
4694 done
4695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696esac
4697
4698 $ac_path_EGREP_found && break 3
4699 done
4700 done
4701 done
4702IFS=$as_save_IFS
4703 if test -z "$ac_cv_path_EGREP"; then
4704 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4705 fi
4706else
4707 ac_cv_path_EGREP=$EGREP
4708fi
4709
4710 fi
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4713$as_echo "$ac_cv_path_EGREP" >&6; }
4714 EGREP="$ac_cv_path_EGREP"
4715
4716
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4718$as_echo_n "checking for ANSI C header files... " >&6; }
4719if test "${ac_cv_header_stdc+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721else
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4723/* end confdefs.h. */
4724#include <stdlib.h>
4725#include <stdarg.h>
4726#include <string.h>
4727#include <float.h>
d7040cdb 4728
7357c5b6
AM
4729int
4730main ()
4731{
d7040cdb 4732
7357c5b6
AM
4733 ;
4734 return 0;
4735}
4736_ACEOF
81ecdfbb 4737if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4738 ac_cv_header_stdc=yes
4739else
81ecdfbb 4740 ac_cv_header_stdc=no
7357c5b6 4741fi
81ecdfbb 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4743
7357c5b6
AM
4744if test $ac_cv_header_stdc = yes; then
4745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4747/* end confdefs.h. */
4748#include <string.h>
d7040cdb 4749
7357c5b6
AM
4750_ACEOF
4751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4752 $EGREP "memchr" >/dev/null 2>&1; then :
4753
ce2cded5 4754else
7357c5b6
AM
4755 ac_cv_header_stdc=no
4756fi
4757rm -f conftest*
d7040cdb 4758
7357c5b6 4759fi
d7040cdb 4760
7357c5b6
AM
4761if test $ac_cv_header_stdc = yes; then
4762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4764/* end confdefs.h. */
4765#include <stdlib.h>
ac48eca1 4766
7357c5b6
AM
4767_ACEOF
4768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4769 $EGREP "free" >/dev/null 2>&1; then :
4770
7357c5b6
AM
4771else
4772 ac_cv_header_stdc=no
4773fi
4774rm -f conftest*
d7040cdb 4775
7357c5b6 4776fi
d7040cdb 4777
7357c5b6
AM
4778if test $ac_cv_header_stdc = yes; then
4779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4780 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4781 :
4782else
81ecdfbb 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4784/* end confdefs.h. */
4785#include <ctype.h>
81ecdfbb 4786#include <stdlib.h>
7357c5b6
AM
4787#if ((' ' & 0x0FF) == 0x020)
4788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4790#else
4791# define ISLOWER(c) \
4792 (('a' <= (c) && (c) <= 'i') \
4793 || ('j' <= (c) && (c) <= 'r') \
4794 || ('s' <= (c) && (c) <= 'z'))
4795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4796#endif
d7040cdb 4797
7357c5b6
AM
4798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4799int
4800main ()
4801{
4802 int i;
4803 for (i = 0; i < 256; i++)
4804 if (XOR (islower (i), ISLOWER (i))
4805 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4806 return 2;
4807 return 0;
7357c5b6
AM
4808}
4809_ACEOF
81ecdfbb 4810if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4811
81ecdfbb
RW
4812else
4813 ac_cv_header_stdc=no
7357c5b6 4814fi
81ecdfbb
RW
4815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4816 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4817fi
81ecdfbb 4818
7357c5b6
AM
4819fi
4820fi
81ecdfbb
RW
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4822$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4823if test $ac_cv_header_stdc = yes; then
d7040cdb 4824
81ecdfbb 4825$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4826
7357c5b6 4827fi
d7040cdb 4828
7357c5b6 4829# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4830for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4831 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4832do :
4833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4835"
4836eval as_val=\$$as_ac_Header
4837 if test "x$as_val" = x""yes; then :
7357c5b6 4838 cat >>confdefs.h <<_ACEOF
81ecdfbb 4839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4840_ACEOF
ce2cded5 4841
7357c5b6 4842fi
ce2cded5 4843
7357c5b6 4844done
ce2cded5
L
4845
4846
4847
81ecdfbb
RW
4848 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4849if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4850 MINIX=yes
4851else
4852 MINIX=
4853fi
d7040cdb
SE
4854
4855
7357c5b6 4856 if test "$MINIX" = yes; then
d7040cdb 4857
81ecdfbb 4858$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4859
4860
81ecdfbb 4861$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4862
4863
81ecdfbb 4864$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4865
7357c5b6 4866 fi
d7040cdb
SE
4867
4868
81ecdfbb
RW
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4870$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4871if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
ac48eca1 4873else
81ecdfbb 4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4875/* end confdefs.h. */
ac48eca1 4876
7357c5b6
AM
4877# define __EXTENSIONS__ 1
4878 $ac_includes_default
4879int
4880main ()
4881{
13b2be9c 4882
7357c5b6
AM
4883 ;
4884 return 0;
4885}
4886_ACEOF
81ecdfbb 4887if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4888 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4889else
81ecdfbb 4890 ac_cv_safe_to_define___extensions__=no
d6d788bd 4891fi
81ecdfbb 4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4893fi
81ecdfbb
RW
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4895$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4896 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4897 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4898
81ecdfbb 4899 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4900
81ecdfbb 4901 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4902
81ecdfbb 4903 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4904
81ecdfbb 4905 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4906
a74801ba 4907
d053aef8 4908
81ecdfbb 4909
da2f07f1 4910
718a6fd8
SE
4911case `pwd` in
4912 *\ * | *\ *)
81ecdfbb
RW
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4914$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4915esac
13b2be9c 4916
252b5132 4917
7357c5b6 4918
f2c621e4
AS
4919macro_version='2.2.7a'
4920macro_revision='1.3134'
7357c5b6
AM
4921
4922
4923
4924
4925
4926
7357c5b6
AM
4927
4928
4929
4930
4931
4932
4933
718a6fd8 4934ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4935
3725885a
RW
4936# Backslashify metacharacters that are still active within
4937# double-quoted strings.
4938sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4939
4940# Same as above, but do not quote variable references.
4941double_quote_subst='s/\(["`\\]\)/\\\1/g'
4942
4943# Sed substitution to delay expansion of an escaped shell variable in a
4944# double_quote_subst'ed string.
4945delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4946
4947# Sed substitution to delay expansion of an escaped single quote.
4948delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4949
4950# Sed substitution to avoid accidental globbing in evaled expressions
4951no_glob_subst='s/\*/\\\*/g'
4952
4953ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4954ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4955ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4956
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4958$as_echo_n "checking how to print strings... " >&6; }
4959# Test print first, because it will be a builtin if present.
f2c621e4 4960if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4961 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4962 ECHO='print -r --'
4963elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4964 ECHO='printf %s\n'
4965else
4966 # Use this function as a fallback that always works.
4967 func_fallback_echo ()
4968 {
4969 eval 'cat <<_LTECHO_EOF
4970$1
4971_LTECHO_EOF'
4972 }
4973 ECHO='func_fallback_echo'
4974fi
4975
4976# func_echo_all arg...
4977# Invoke $ECHO with all args, space-separated.
4978func_echo_all ()
4979{
4980 $ECHO ""
4981}
4982
4983case "$ECHO" in
4984 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4985$as_echo "printf" >&6; } ;;
4986 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4987$as_echo "print -r" >&6; } ;;
4988 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4989$as_echo "cat" >&6; } ;;
4990esac
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
81ecdfbb
RW
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5006$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5007if test "${ac_cv_path_SED+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5009else
5010 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5011 for ac_i in 1 2 3 4 5 6 7; do
5012 ac_script="$ac_script$as_nl$ac_script"
5013 done
5014 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5015 { ac_script=; unset ac_script;}
5016 if test -z "$SED"; then
5017 ac_path_SED_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
81ecdfbb 5024 for ac_prog in sed gsed; do
7357c5b6 5025 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5026 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5027 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5028# Check for GNU ac_path_SED and select it if it is found.
5029 # Check for GNU $ac_path_SED
5030case `"$ac_path_SED" --version 2>&1` in
5031*GNU*)
5032 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5033*)
5034 ac_count=0
5035 $as_echo_n 0123456789 >"conftest.in"
5036 while :
5037 do
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo '' >> "conftest.nl"
5042 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_SED_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_SED="$ac_path_SED"
5048 ac_path_SED_max=$ac_count
5049 fi
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054esac
5055
5056 $ac_path_SED_found && break 3
7357c5b6
AM
5057 done
5058 done
81ecdfbb 5059 done
7357c5b6 5060IFS=$as_save_IFS
81ecdfbb
RW
5061 if test -z "$ac_cv_path_SED"; then
5062 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5063 fi
81ecdfbb
RW
5064else
5065 ac_cv_path_SED=$SED
7357c5b6
AM
5066fi
5067
81ecdfbb
RW
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5070$as_echo "$ac_cv_path_SED" >&6; }
5071 SED="$ac_cv_path_SED"
5072 rm -f conftest.sed
7357c5b6
AM
5073
5074test -z "$SED" && SED=sed
5075Xsed="$SED -e 1s/^X//"
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
81ecdfbb
RW
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5088$as_echo_n "checking for fgrep... " >&6; }
5089if test "${ac_cv_path_FGREP+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
7357c5b6 5091else
81ecdfbb
RW
5092 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5093 then ac_cv_path_FGREP="$GREP -F"
5094 else
5095 if test -z "$FGREP"; then
5096 ac_path_FGREP_found=false
5097 # Loop through the user's path and test for each of PROGNAME-LIST
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_prog in fgrep; do
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5106 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5107# Check for GNU ac_path_FGREP and select it if it is found.
5108 # Check for GNU $ac_path_FGREP
5109case `"$ac_path_FGREP" --version 2>&1` in
5110*GNU*)
5111 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5112*)
5113 ac_count=0
5114 $as_echo_n 0123456789 >"conftest.in"
5115 while :
5116 do
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo 'FGREP' >> "conftest.nl"
5121 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5123 as_fn_arith $ac_count + 1 && ac_count=$as_val
5124 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_FGREP="$ac_path_FGREP"
5127 ac_path_FGREP_max=$ac_count
7357c5b6 5128 fi
81ecdfbb
RW
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5131 done
5132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5133esac
5134
5135 $ac_path_FGREP_found && break 3
5136 done
5137 done
5138 done
5139IFS=$as_save_IFS
5140 if test -z "$ac_cv_path_FGREP"; then
5141 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5142 fi
5143else
5144 ac_cv_path_FGREP=$FGREP
7357c5b6 5145fi
81ecdfbb
RW
5146
5147 fi
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5150$as_echo "$ac_cv_path_FGREP" >&6; }
5151 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5152
5153
5154test -z "$GREP" && GREP=grep
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
81ecdfbb
RW
5174# Check whether --with-gnu-ld was given.
5175if test "${with_gnu_ld+set}" = set; then :
5176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5177else
5178 with_gnu_ld=no
81ecdfbb
RW
5179fi
5180
ce2cded5
L
5181ac_prog=ld
5182if test "$GCC" = yes; then
5183 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5185$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5186 case $host in
5187 *-*-mingw*)
5188 # gcc leaves a trailing carriage return which upsets mingw
5189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5190 *)
5191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5192 esac
5193 case $ac_prog in
5194 # Accept absolute paths.
5195 [\\/]* | ?:[\\/]*)
5196 re_direlt='/[^/][^/]*/\.\./'
5197 # Canonicalize the pathname of ld
5198 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5199 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5200 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5201 done
5202 test -z "$LD" && LD="$ac_prog"
5203 ;;
5204 "")
5205 # If it fails, then pretend we aren't using GCC.
5206 ac_prog=ld
5207 ;;
5208 *)
5209 # If it is relative, then search for the first ld in PATH.
5210 with_gnu_ld=unknown
5211 ;;
5212 esac
5213elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5215$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5216else
81ecdfbb
RW
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5218$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5219fi
81ecdfbb
RW
5220if test "${lt_cv_path_LD+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
ce2cded5
L
5222else
5223 if test -z "$LD"; then
5224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5225 for ac_dir in $PATH; do
5226 IFS="$lt_save_ifs"
5227 test -z "$ac_dir" && ac_dir=.
5228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5229 lt_cv_path_LD="$ac_dir/$ac_prog"
5230 # Check to see if the program is GNU ld. I'd rather use --version,
5231 # but apparently some variants of GNU ld only accept -v.
5232 # Break only if it was the GNU/non-GNU ld that we prefer.
5233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5234 *GNU* | *'with BFD'*)
5235 test "$with_gnu_ld" != no && break
5236 ;;
5237 *)
5238 test "$with_gnu_ld" != yes && break
5239 ;;
5240 esac
5241 fi
5242 done
5243 IFS="$lt_save_ifs"
5244else
5245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5246fi
5247fi
5248
5249LD="$lt_cv_path_LD"
5250if test -n "$LD"; then
81ecdfbb
RW
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5252$as_echo "$LD" >&6; }
ce2cded5 5253else
81ecdfbb
RW
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255$as_echo "no" >&6; }
ce2cded5 5256fi
81ecdfbb
RW
5257test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5259$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5260if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
ce2cded5
L
5262else
5263 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5264case `$LD -v 2>&1 </dev/null` in
5265*GNU* | *'with BFD'*)
5266 lt_cv_prog_gnu_ld=yes
5267 ;;
5268*)
5269 lt_cv_prog_gnu_ld=no
5270 ;;
5271esac
5272fi
81ecdfbb
RW
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5274$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5275with_gnu_ld=$lt_cv_prog_gnu_ld
5276
5277
5278
5279
5280
5281
5282
5283
5284
81ecdfbb
RW
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5286$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5287if test "${lt_cv_path_NM+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
ce2cded5
L
5289else
5290 if test -n "$NM"; then
5291 # Let the user override the test.
5292 lt_cv_path_NM="$NM"
5293else
5294 lt_nm_to_check="${ac_tool_prefix}nm"
5295 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5296 lt_nm_to_check="$lt_nm_to_check nm"
5297 fi
5298 for lt_tmp_nm in $lt_nm_to_check; do
5299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5301 IFS="$lt_save_ifs"
5302 test -z "$ac_dir" && ac_dir=.
5303 tmp_nm="$ac_dir/$lt_tmp_nm"
5304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305 # Check to see if the nm accepts a BSD-compat flag.
5306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307 # nm: unknown option "B" ignored
5308 # Tru64's nm complains that /dev/null is an invalid object file
5309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310 */dev/null* | *'Invalid file or object type'*)
5311 lt_cv_path_NM="$tmp_nm -B"
5312 break
5313 ;;
5314 *)
5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5316 */dev/null*)
5317 lt_cv_path_NM="$tmp_nm -p"
5318 break
5319 ;;
5320 *)
5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322 continue # so that we can try to find one that supports BSD flags
5323 ;;
5324 esac
5325 ;;
5326 esac
5327 fi
5328 done
5329 IFS="$lt_save_ifs"
5330 done
5331 : ${lt_cv_path_NM=no}
5332fi
5333fi
81ecdfbb
RW
5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5335$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5336if test "$lt_cv_path_NM" != "no"; then
5337 NM="$lt_cv_path_NM"
5338else
5339 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5340 if test -n "$DUMPBIN"; then :
5341 # Let the user override the test.
5342 else
5343 if test -n "$ac_tool_prefix"; then
5344 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5345 do
5346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
5350if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
d7040cdb 5352else
ce2cded5
L
5353 if test -n "$DUMPBIN"; then
5354 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5363 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5365 break 2
d70c5fc7 5366 fi
d7040cdb 5367done
81ecdfbb
RW
5368 done
5369IFS=$as_save_IFS
d70c5fc7 5370
d7040cdb
SE
5371fi
5372fi
ce2cded5
L
5373DUMPBIN=$ac_cv_prog_DUMPBIN
5374if test -n "$DUMPBIN"; then
81ecdfbb
RW
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5376$as_echo "$DUMPBIN" >&6; }
bedf545c 5377else
81ecdfbb
RW
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379$as_echo "no" >&6; }
d7040cdb 5380fi
13b2be9c 5381
81ecdfbb 5382
ce2cded5
L
5383 test -n "$DUMPBIN" && break
5384 done
5385fi
5386if test -z "$DUMPBIN"; then
5387 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5388 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5389do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
d7040cdb 5396else
ce2cded5
L
5397 if test -n "$ac_ct_DUMPBIN"; then
5398 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5409 break 2
5410 fi
5411done
81ecdfbb
RW
5412 done
5413IFS=$as_save_IFS
ce2cded5
L
5414
5415fi
5416fi
5417ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5418if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5420$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5421else
81ecdfbb
RW
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
d7040cdb
SE
5424fi
5425
81ecdfbb 5426
ce2cded5
L
5427 test -n "$ac_ct_DUMPBIN" && break
5428done
13b2be9c 5429
81ecdfbb
RW
5430 if test "x$ac_ct_DUMPBIN" = x; then
5431 DUMPBIN=":"
5432 else
5433 case $cross_compiling:$ac_tool_warned in
5434yes:)
5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437ac_tool_warned=yes ;;
5438esac
5439 DUMPBIN=$ac_ct_DUMPBIN
5440 fi
ce2cded5 5441fi
13b2be9c 5442
3725885a
RW
5443 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5444 *COFF*)
5445 DUMPBIN="$DUMPBIN -symbols"
5446 ;;
5447 *)
5448 DUMPBIN=:
5449 ;;
5450 esac
5451 fi
bedf545c 5452
ce2cded5
L
5453 if test "$DUMPBIN" != ":"; then
5454 NM="$DUMPBIN"
5455 fi
5456fi
5457test -z "$NM" && NM=nm
6840198f 5458
13b2be9c 5459
ac48eca1 5460
d7040cdb 5461
ce2cded5
L
5462
5463
81ecdfbb
RW
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5465$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5466if test "${lt_cv_nm_interface+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
ce2cded5
L
5468else
5469 lt_cv_nm_interface="BSD nm"
5470 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5471 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5472 (eval "$ac_compile" 2>conftest.err)
5473 cat conftest.err >&5
3725885a 5474 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5475 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5476 cat conftest.err >&5
3725885a 5477 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5478 cat conftest.out >&5
5479 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5480 lt_cv_nm_interface="MS dumpbin"
5481 fi
5482 rm -f conftest*
5483fi
81ecdfbb
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5485$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5486
81ecdfbb
RW
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5488$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5489LN_S=$as_ln_s
5490if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492$as_echo "yes" >&6; }
ce2cded5 5493else
81ecdfbb
RW
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5495$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5496fi
5497
5498# find the maximum length of command line arguments
81ecdfbb
RW
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5500$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5501if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
ce2cded5
L
5503else
5504 i=0
5505 teststring="ABCD"
5506
5507 case $build_os in
5508 msdosdjgpp*)
5509 # On DJGPP, this test can blow up pretty badly due to problems in libc
5510 # (any single argument exceeding 2000 bytes causes a buffer overrun
5511 # during glob expansion). Even if it were fixed, the result of this
5512 # check would be larger than it should be.
5513 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5514 ;;
5515
5516 gnu*)
5517 # Under GNU Hurd, this test is not required because there is
5518 # no limit to the length of command line arguments.
5519 # Libtool will interpret -1 as no limit whatsoever
5520 lt_cv_sys_max_cmd_len=-1;
5521 ;;
5522
718a6fd8 5523 cygwin* | mingw* | cegcc*)
ce2cded5
L
5524 # On Win9x/ME, this test blows up -- it succeeds, but takes
5525 # about 5 minutes as the teststring grows exponentially.
5526 # Worse, since 9x/ME are not pre-emptively multitasking,
5527 # you end up with a "frozen" computer, even though with patience
5528 # the test eventually succeeds (with a max line length of 256k).
5529 # Instead, let's just punt: use the minimum linelength reported by
5530 # all of the supported platforms: 8192 (on NT/2K/XP).
5531 lt_cv_sys_max_cmd_len=8192;
5532 ;;
5533
3725885a
RW
5534 mint*)
5535 # On MiNT this can take a long time and run out of memory.
5536 lt_cv_sys_max_cmd_len=8192;
5537 ;;
5538
ce2cded5
L
5539 amigaos*)
5540 # On AmigaOS with pdksh, this test takes hours, literally.
5541 # So we just punt and use a minimum line length of 8192.
5542 lt_cv_sys_max_cmd_len=8192;
5543 ;;
5544
5545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5546 # This has been around since 386BSD, at least. Likely further.
5547 if test -x /sbin/sysctl; then
5548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5549 elif test -x /usr/sbin/sysctl; then
5550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5551 else
5552 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5553 fi
5554 # And add a safety zone
5555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5557 ;;
5558
5559 interix*)
5560 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5561 lt_cv_sys_max_cmd_len=196608
5562 ;;
5563
5564 osf*)
5565 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5566 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5567 # nice to cause kernel panics so lets avoid the loop below.
5568 # First set a reasonable default.
5569 lt_cv_sys_max_cmd_len=16384
5570 #
5571 if test -x /sbin/sysconfig; then
5572 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5573 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5574 esac
5575 fi
5576 ;;
5577 sco3.2v5*)
5578 lt_cv_sys_max_cmd_len=102400
5579 ;;
5580 sysv5* | sco5v6* | sysv4.2uw2*)
5581 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5582 if test -n "$kargmax"; then
5583 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5584 else
5585 lt_cv_sys_max_cmd_len=32768
5586 fi
d7040cdb
SE
5587 ;;
5588 *)
718a6fd8
SE
5589 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5590 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5593 else
5594 # Make teststring a little bigger before we do anything with it.
5595 # a 1K string should be a reasonable start.
5596 for i in 1 2 3 4 5 6 7 8 ; do
5597 teststring=$teststring$teststring
5598 done
5599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5600 # If test is not a shell built-in, we'll probably end up computing a
5601 # maximum length that is only half of the actual maximum length, but
5602 # we can't tell.
3725885a
RW
5603 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5604 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5605 test $i != 17 # 1/2 MB should be enough
5606 do
5607 i=`expr $i + 1`
5608 teststring=$teststring$teststring
5609 done
5610 # Only check the string length outside the loop.
5611 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5612 teststring=
5613 # Add a significant safety factor because C++ compilers can tack on
5614 # massive amounts of additional arguments before passing them to the
5615 # linker. It appears as though 1/2 is a usable value.
5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5617 fi
d7040cdb
SE
5618 ;;
5619 esac
252b5132 5620
ce2cded5 5621fi
d6d788bd 5622
ce2cded5 5623if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5625$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5626else
81ecdfbb
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5628$as_echo "none" >&6; }
ce2cded5
L
5629fi
5630max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5631
d6d788bd 5632
13b2be9c 5633
13b2be9c 5634
bedf545c 5635
252b5132 5636
ce2cded5
L
5637: ${CP="cp -f"}
5638: ${MV="mv -f"}
5639: ${RM="rm -f"}
d6d788bd 5640
81ecdfbb
RW
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5642$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5643# Try some XSI features
5644xsi_shell=no
5645( _lt_dummy="a/b/c"
f2c621e4
AS
5646 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5647 = c,a/b,, \
718a6fd8
SE
5648 && eval 'test $(( 1 + 1 )) -eq 2 \
5649 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5650 && xsi_shell=yes
81ecdfbb
RW
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5652$as_echo "$xsi_shell" >&6; }
bedf545c 5653
bedf545c 5654
81ecdfbb
RW
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5656$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5657lt_shell_append=no
5658( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5659 >/dev/null 2>&1 \
5660 && lt_shell_append=yes
81ecdfbb
RW
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5662$as_echo "$lt_shell_append" >&6; }
252b5132 5663
d6d788bd 5664
ce2cded5
L
5665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5666 lt_unset=unset
5667else
5668 lt_unset=false
5669fi
13b2be9c
DJ
5670
5671
5672
5673
d6d788bd 5674
ce2cded5
L
5675# test EBCDIC or ASCII
5676case `echo X|tr X '\101'` in
5677 A) # ASCII based system
5678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5679 lt_SP2NL='tr \040 \012'
5680 lt_NL2SP='tr \015\012 \040\040'
5681 ;;
5682 *) # EBCDIC based system
5683 lt_SP2NL='tr \100 \n'
5684 lt_NL2SP='tr \r\n \100\100'
5685 ;;
5686esac
c43a438d 5687
c43a438d 5688
c43a438d 5689
252b5132 5690
ad22bfe8 5691
1ad12f97 5692
1ad12f97 5693
9e9b66a9 5694
1ad12f97 5695
81ecdfbb
RW
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5697$as_echo_n "checking for $LD option to reload object files... " >&6; }
5698if test "${lt_cv_ld_reload_flag+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
ce2cded5
L
5700else
5701 lt_cv_ld_reload_flag='-r'
5702fi
81ecdfbb
RW
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5704$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5705reload_flag=$lt_cv_ld_reload_flag
5706case $reload_flag in
5707"" | " "*) ;;
5708*) reload_flag=" $reload_flag" ;;
5709esac
5710reload_cmds='$LD$reload_flag -o $output$reload_objs'
5711case $host_os in
5712 darwin*)
5713 if test "$GCC" = yes; then
5714 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5715 else
5716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5717 fi
5718 ;;
5719esac
a541e3ce 5720
9e9b66a9 5721
a2d91340 5722
d6d788bd 5723
9e9b66a9
AM
5724
5725
5726
d6d788bd 5727
252b5132 5728
718a6fd8
SE
5729if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5731set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733$as_echo_n "checking for $ac_word... " >&6; }
5734if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
718a6fd8
SE
5736else
5737 if test -n "$OBJDUMP"; then
5738 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5739else
5740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741for as_dir in $PATH
5742do
5743 IFS=$as_save_IFS
5744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5747 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5749 break 2
5750 fi
5751done
81ecdfbb
RW
5752 done
5753IFS=$as_save_IFS
718a6fd8
SE
5754
5755fi
5756fi
5757OBJDUMP=$ac_cv_prog_OBJDUMP
5758if test -n "$OBJDUMP"; then
81ecdfbb
RW
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5760$as_echo "$OBJDUMP" >&6; }
718a6fd8 5761else
81ecdfbb
RW
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763$as_echo "no" >&6; }
718a6fd8
SE
5764fi
5765
81ecdfbb 5766
718a6fd8
SE
5767fi
5768if test -z "$ac_cv_prog_OBJDUMP"; then
5769 ac_ct_OBJDUMP=$OBJDUMP
5770 # Extract the first word of "objdump", so it can be a program name with args.
5771set dummy objdump; ac_word=$2
81ecdfbb
RW
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773$as_echo_n "checking for $ac_word... " >&6; }
5774if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5775 $as_echo_n "(cached) " >&6
718a6fd8
SE
5776else
5777 if test -n "$ac_ct_OBJDUMP"; then
5778 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5787 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5789 break 2
5790 fi
5791done
81ecdfbb
RW
5792 done
5793IFS=$as_save_IFS
718a6fd8 5794
718a6fd8
SE
5795fi
5796fi
5797ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5798if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5800$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5801else
81ecdfbb
RW
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803$as_echo "no" >&6; }
718a6fd8
SE
5804fi
5805
81ecdfbb
RW
5806 if test "x$ac_ct_OBJDUMP" = x; then
5807 OBJDUMP="false"
5808 else
5809 case $cross_compiling:$ac_tool_warned in
5810yes:)
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813ac_tool_warned=yes ;;
5814esac
5815 OBJDUMP=$ac_ct_OBJDUMP
5816 fi
718a6fd8
SE
5817else
5818 OBJDUMP="$ac_cv_prog_OBJDUMP"
5819fi
5820
5821test -z "$OBJDUMP" && OBJDUMP=objdump
5822
5823
5824
5825
5826
5827
5828
5829
13b2be9c 5830
81ecdfbb
RW
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5832$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5833if test "${lt_cv_deplibs_check_method+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
d7040cdb 5835else
ce2cded5
L
5836 lt_cv_file_magic_cmd='$MAGIC_CMD'
5837lt_cv_file_magic_test_file=
5838lt_cv_deplibs_check_method='unknown'
5839# Need to set the preceding variable on all platforms that support
5840# interlibrary dependencies.
5841# 'none' -- dependencies not supported.
5842# `unknown' -- same as none, but documents that we really don't know.
5843# 'pass_all' -- all dependencies passed with no checks.
5844# 'test_compile' -- check by making test program.
5845# 'file_magic [[regex]]' -- check by looking for files in library path
5846# which responds to the $file_magic_cmd with a given extended regex.
5847# If you have `file' or equivalent on your system and you're not sure
5848# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5849
ce2cded5 5850case $host_os in
50e7d84b 5851aix[4-9]*)
ce2cded5
L
5852 lt_cv_deplibs_check_method=pass_all
5853 ;;
d7040cdb 5854
ce2cded5
L
5855beos*)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
d7040cdb 5858
ce2cded5
L
5859bsdi[45]*)
5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5861 lt_cv_file_magic_cmd='/usr/bin/file -L'
5862 lt_cv_file_magic_test_file=/shlib/libc.so
5863 ;;
d7040cdb 5864
ce2cded5
L
5865cygwin*)
5866 # func_win32_libid is a shell function defined in ltmain.sh
5867 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5868 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5869 ;;
ce2cded5
L
5870
5871mingw* | pw32*)
5872 # Base MSYS/MinGW do not provide the 'file' command needed by
5873 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5874 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5875 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5876 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
5877 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5878 lt_cv_file_magic_cmd='func_win32_libid'
5879 else
f2c621e4 5880 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
5881 lt_cv_file_magic_cmd='$OBJDUMP -f'
5882 fi
d7040cdb 5883 ;;
ce2cded5 5884
3725885a 5885cegcc*)
718a6fd8
SE
5886 # use the weaker test based on 'objdump'. See mingw*.
5887 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5888 lt_cv_file_magic_cmd='$OBJDUMP -f'
5889 ;;
5890
ce2cded5
L
5891darwin* | rhapsody*)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894
5895freebsd* | dragonfly*)
5896 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 case $host_cpu in
5898 i*86 )
5899 # Not sure whether the presence of OpenBSD here was a mistake.
5900 # Let's accept both of them until this is cleared up.
5901 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5902 lt_cv_file_magic_cmd=/usr/bin/file
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5904 ;;
5905 esac
5906 else
5907 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5908 fi
5909 ;;
ce2cded5
L
5910
5911gnu*)
5912 lt_cv_deplibs_check_method=pass_all
d7040cdb 5913 ;;
ce2cded5 5914
3725885a
RW
5915haiku*)
5916 lt_cv_deplibs_check_method=pass_all
5917 ;;
5918
ce2cded5
L
5919hpux10.20* | hpux11*)
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 case $host_cpu in
5922 ia64*)
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925 ;;
5926 hppa*64*)
3725885a 5927 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
5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929 ;;
5930 *)
3725885a 5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5933 ;;
5934 esac
d7040cdb 5935 ;;
ce2cded5
L
5936
5937interix[3-9]*)
5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5940 ;;
ce2cded5
L
5941
5942irix5* | irix6* | nonstopux*)
5943 case $LD in
5944 *-32|*"-32 ") libmagic=32-bit;;
5945 *-n32|*"-n32 ") libmagic=N32;;
5946 *-64|*"-64 ") libmagic=64-bit;;
5947 *) libmagic=never-match;;
5948 esac
5949 lt_cv_deplibs_check_method=pass_all
d7040cdb 5950 ;;
ce2cded5
L
5951
5952# This must be Linux ELF.
58e24671 5953linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 5954 lt_cv_deplibs_check_method=pass_all
d7040cdb 5955 ;;
ce2cded5
L
5956
5957netbsd*)
5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5960 else
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5962 fi
d7040cdb 5963 ;;
ce2cded5
L
5964
5965newos6*)
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5967 lt_cv_file_magic_cmd=/usr/bin/file
5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5969 ;;
76a27922 5970
ce2cded5
L
5971*nto* | *qnx*)
5972 lt_cv_deplibs_check_method=pass_all
5973 ;;
d6d788bd 5974
ce2cded5
L
5975openbsd*)
5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5978 else
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5980 fi
5981 ;;
44f2f9d2 5982
ce2cded5
L
5983osf3* | osf4* | osf5*)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
44f2f9d2 5986
ce2cded5
L
5987rdos*)
5988 lt_cv_deplibs_check_method=pass_all
5989 ;;
5990
5991solaris*)
5992 lt_cv_deplibs_check_method=pass_all
5993 ;;
5994
5995sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5996 lt_cv_deplibs_check_method=pass_all
5997 ;;
5998
5999sysv4 | sysv4.3*)
6000 case $host_vendor in
6001 motorola)
6002 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]'
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004 ;;
6005 ncr)
6006 lt_cv_deplibs_check_method=pass_all
6007 ;;
6008 sequent)
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011 ;;
6012 sni)
6013 lt_cv_file_magic_cmd='/bin/file'
6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6015 lt_cv_file_magic_test_file=/lib/libc.so
6016 ;;
6017 siemens)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020 pc)
6021 lt_cv_deplibs_check_method=pass_all
6022 ;;
6023 esac
6024 ;;
6025
6026tpf*)
6027 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6028 ;;
6029esac
6030
ce2cded5 6031fi
81ecdfbb
RW
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6033$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6034file_magic_cmd=$lt_cv_file_magic_cmd
6035deplibs_check_method=$lt_cv_deplibs_check_method
6036test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6037
d7040cdb 6038
d7040cdb 6039
d7040cdb 6040
d7040cdb 6041
44f2f9d2 6042
d7040cdb 6043
d7040cdb 6044
d7040cdb 6045
d7040cdb 6046
44f2f9d2 6047
d7040cdb 6048
ce2cded5 6049if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6051set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
6054if test "${ac_cv_prog_AR+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
ce2cded5
L
6056else
6057 if test -n "$AR"; then
6058 ac_cv_prog_AR="$AR" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6067 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6069 break 2
d7040cdb
SE
6070 fi
6071done
81ecdfbb
RW
6072 done
6073IFS=$as_save_IFS
44f2f9d2 6074
ce2cded5
L
6075fi
6076fi
6077AR=$ac_cv_prog_AR
6078if test -n "$AR"; then
81ecdfbb
RW
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6080$as_echo "$AR" >&6; }
ce2cded5 6081else
81ecdfbb
RW
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
44f2f9d2 6084fi
d7040cdb 6085
81ecdfbb 6086
d7040cdb 6087fi
f2c621e4 6088if test -z "$ac_cv_prog_AR"; then
ce2cded5 6089 ac_ct_AR=$AR
f2c621e4
AS
6090 # Extract the first word of "ar", so it can be a program name with args.
6091set dummy ar; ac_word=$2
81ecdfbb
RW
6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
44f2f9d2 6096else
ce2cded5
L
6097 if test -n "$ac_ct_AR"; then
6098 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6107 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6109 break 2
6110 fi
6111done
81ecdfbb
RW
6112 done
6113IFS=$as_save_IFS
ce2cded5 6114
ce2cded5
L
6115fi
6116fi
6117ac_ct_AR=$ac_cv_prog_ac_ct_AR
6118if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6120$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6121else
81ecdfbb
RW
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123$as_echo "no" >&6; }
d7040cdb 6124fi
44f2f9d2 6125
81ecdfbb
RW
6126 if test "x$ac_ct_AR" = x; then
6127 AR="false"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130yes:)
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133ac_tool_warned=yes ;;
6134esac
6135 AR=$ac_ct_AR
6136 fi
df7b86aa 6137else
f2c621e4
AS
6138 AR="$ac_cv_prog_AR"
6139fi
df7b86aa 6140
f2c621e4
AS
6141test -z "$AR" && AR=ar
6142test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6143
df7b86aa 6144
df7b86aa 6145
df7b86aa 6146
df7b86aa
NC
6147
6148
6149
6150
6151
6152
d7040cdb 6153
ce2cded5
L
6154if test -n "$ac_tool_prefix"; then
6155 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6156set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
6159if test "${ac_cv_prog_STRIP+set}" = set; then :
6160 $as_echo_n "(cached) " >&6
ce2cded5
L
6161else
6162 if test -n "$STRIP"; then
6163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6172 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6174 break 2
6175 fi
6176done
81ecdfbb
RW
6177 done
6178IFS=$as_save_IFS
d7040cdb 6179
ce2cded5
L
6180fi
6181fi
6182STRIP=$ac_cv_prog_STRIP
6183if test -n "$STRIP"; then
81ecdfbb
RW
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6185$as_echo "$STRIP" >&6; }
ce2cded5 6186else
81ecdfbb
RW
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
ce2cded5 6189fi
d7040cdb 6190
81ecdfbb 6191
ce2cded5
L
6192fi
6193if test -z "$ac_cv_prog_STRIP"; then
6194 ac_ct_STRIP=$STRIP
6195 # Extract the first word of "strip", so it can be a program name with args.
6196set dummy strip; ac_word=$2
81ecdfbb
RW
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198$as_echo_n "checking for $ac_word... " >&6; }
6199if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
ce2cded5
L
6201else
6202 if test -n "$ac_ct_STRIP"; then
6203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6204else
6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206for as_dir in $PATH
6207do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6212 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6214 break 2
6215 fi
6216done
81ecdfbb
RW
6217 done
6218IFS=$as_save_IFS
d7040cdb 6219
ce2cded5
L
6220fi
6221fi
6222ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6223if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6225$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6226else
81ecdfbb
RW
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228$as_echo "no" >&6; }
ce2cded5 6229fi
d7040cdb 6230
81ecdfbb
RW
6231 if test "x$ac_ct_STRIP" = x; then
6232 STRIP=":"
6233 else
6234 case $cross_compiling:$ac_tool_warned in
6235yes:)
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6238ac_tool_warned=yes ;;
6239esac
6240 STRIP=$ac_ct_STRIP
6241 fi
ce2cded5
L
6242else
6243 STRIP="$ac_cv_prog_STRIP"
6244fi
d7040cdb 6245
ce2cded5 6246test -z "$STRIP" && STRIP=:
d7040cdb 6247
d7040cdb 6248
d7040cdb 6249
d7040cdb 6250
d7040cdb 6251
d7040cdb 6252
ce2cded5
L
6253if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6255set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257$as_echo_n "checking for $ac_word... " >&6; }
6258if test "${ac_cv_prog_RANLIB+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
44f2f9d2 6260else
ce2cded5
L
6261 if test -n "$RANLIB"; then
6262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6273 break 2
6274 fi
6275done
81ecdfbb
RW
6276 done
6277IFS=$as_save_IFS
44f2f9d2 6278
d7040cdb 6279fi
44f2f9d2 6280fi
ce2cded5
L
6281RANLIB=$ac_cv_prog_RANLIB
6282if test -n "$RANLIB"; then
81ecdfbb
RW
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6284$as_echo "$RANLIB" >&6; }
ce2cded5 6285else
81ecdfbb
RW
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287$as_echo "no" >&6; }
ce2cded5 6288fi
d7040cdb 6289
81ecdfbb 6290
d7040cdb 6291fi
ce2cded5
L
6292if test -z "$ac_cv_prog_RANLIB"; then
6293 ac_ct_RANLIB=$RANLIB
6294 # Extract the first word of "ranlib", so it can be a program name with args.
6295set dummy ranlib; ac_word=$2
81ecdfbb
RW
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297$as_echo_n "checking for $ac_word... " >&6; }
6298if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
44f2f9d2 6300else
ce2cded5
L
6301 if test -n "$ac_ct_RANLIB"; then
6302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6303else
6304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305for as_dir in $PATH
d7040cdb 6306do
ce2cded5
L
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6311 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6313 break 2
d7040cdb 6314 fi
ce2cded5 6315done
81ecdfbb
RW
6316 done
6317IFS=$as_save_IFS
ce2cded5 6318
d7040cdb 6319fi
ce2cded5
L
6320fi
6321ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6322if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6324$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6325else
81ecdfbb
RW
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327$as_echo "no" >&6; }
44f2f9d2 6328fi
44f2f9d2 6329
81ecdfbb
RW
6330 if test "x$ac_ct_RANLIB" = x; then
6331 RANLIB=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334yes:)
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337ac_tool_warned=yes ;;
6338esac
6339 RANLIB=$ac_ct_RANLIB
6340 fi
d7040cdb 6341else
ce2cded5 6342 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6343fi
252b5132 6344
ce2cded5 6345test -z "$RANLIB" && RANLIB=:
252b5132 6346
252b5132 6347
ae57792d 6348
252b5132 6349
13b2be9c 6350
14ee9f48 6351
ce2cded5 6352# Determine commands to create old-style static archives.
718a6fd8 6353old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6354old_postinstall_cmds='chmod 644 $oldlib'
6355old_postuninstall_cmds=
14ee9f48 6356
ce2cded5
L
6357if test -n "$RANLIB"; then
6358 case $host_os in
6359 openbsd*)
6360 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6361 ;;
6362 *)
6363 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6364 ;;
6365 esac
6366 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6367fi
14ee9f48 6368
3725885a
RW
6369case $host_os in
6370 darwin*)
6371 lock_old_archive_extraction=yes ;;
6372 *)
6373 lock_old_archive_extraction=no ;;
6374esac
6375
6376
6377
6378
6379
6380
f8fc3443 6381
f8fc3443 6382
252b5132 6383
85fbca6a 6384
85fbca6a 6385
13b2be9c 6386
13b2be9c 6387
d7040cdb 6388
d7040cdb
SE
6389
6390
6391
252b5132 6392
93fbbb04 6393
93fbbb04 6394
d70c5fc7 6395
e0001a05 6396
252b5132 6397
252b5132 6398
252b5132 6399
252b5132 6400
252b5132 6401
3bcbcc3d 6402
252b5132 6403
252b5132 6404
252b5132 6405
15886821 6406
252b5132 6407
252b5132 6408
13b2be9c
DJ
6409
6410
252b5132 6411
252b5132 6412
d6d788bd 6413
ce2cded5
L
6414# If no C compiler was specified, use CC.
6415LTCC=${LTCC-"$CC"}
252b5132 6416
ce2cded5
L
6417# If no C compiler flags were specified, use CFLAGS.
6418LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6419
ce2cded5
L
6420# Allow CC to be a program name with arguments.
6421compiler=$CC
252b5132 6422
252b5132 6423
ce2cded5 6424# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6426$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6427if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
ce2cded5 6429else
252b5132 6430
ce2cded5
L
6431# These are sane defaults that work on at least a few old systems.
6432# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6433
ce2cded5
L
6434# Character class describing NM global symbol codes.
6435symcode='[BCDEGRST]'
252b5132 6436
ce2cded5
L
6437# Regexp to match symbols that can be accessed directly from C.
6438sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6439
ce2cded5
L
6440# Define system-specific variables.
6441case $host_os in
6442aix*)
6443 symcode='[BCDT]'
6444 ;;
718a6fd8 6445cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6446 symcode='[ABCDGISTW]'
6447 ;;
6448hpux*)
6449 if test "$host_cpu" = ia64; then
6450 symcode='[ABCDEGRST]'
6451 fi
6452 ;;
6453irix* | nonstopux*)
6454 symcode='[BCDEGRST]'
6455 ;;
6456osf*)
6457 symcode='[BCDEGQRST]'
6458 ;;
6459solaris*)
6460 symcode='[BDRT]'
6461 ;;
6462sco3.2v5*)
6463 symcode='[DT]'
6464 ;;
6465sysv4.2uw2*)
6466 symcode='[DT]'
6467 ;;
6468sysv5* | sco5v6* | unixware* | OpenUNIX*)
6469 symcode='[ABDT]'
6470 ;;
6471sysv4)
6472 symcode='[DFNSTU]'
6473 ;;
6474esac
6475
6476# If we're using GNU nm, then use its standard symbol codes.
6477case `$NM -V 2>&1` in
6478*GNU* | *'with BFD'*)
6479 symcode='[ABCDGIRSTW]' ;;
6480esac
252b5132 6481
ce2cded5
L
6482# Transform an extracted symbol line into a proper C declaration.
6483# Some systems (esp. on ia64) link data and code symbols differently,
6484# so use this general approach.
6485lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6486
ce2cded5 6487# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6488lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6489lt_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 6490
7357c5b6
AM
6491# Handle CRLF in mingw tool chain
6492opt_cr=
6493case $build_os in
6494mingw*)
6495 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6496 ;;
6497esac
d7040cdb 6498
7357c5b6
AM
6499# Try without a prefix underscore, then with it.
6500for ac_symprfx in "" "_"; do
d7040cdb 6501
7357c5b6
AM
6502 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6503 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6504
7357c5b6
AM
6505 # Write the raw and C identifiers.
6506 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6507 # Fake it for dumpbin and say T for any non-static function
6508 # and D for any global variable.
6509 # Also find C++ and __fastcall symbols from MSVC++,
6510 # which start with @ or ?.
6511 lt_cv_sys_global_symbol_pipe="$AWK '"\
6512" {last_section=section; section=\$ 3};"\
6513" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6514" \$ 0!~/External *\|/{next};"\
6515" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6516" {if(hide[section]) next};"\
6517" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6518" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6519" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6520" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6521" ' prfx=^$ac_symprfx"
6522 else
6523 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6524 fi
d7040cdb 6525
7357c5b6
AM
6526 # Check to see that the pipe works correctly.
6527 pipe_works=no
d7040cdb 6528
7357c5b6
AM
6529 rm -f conftest*
6530 cat > conftest.$ac_ext <<_LT_EOF
6531#ifdef __cplusplus
6532extern "C" {
6533#endif
6534char nm_test_var;
6535void nm_test_func(void);
6536void nm_test_func(void){}
6537#ifdef __cplusplus
ce2cded5 6538}
7357c5b6
AM
6539#endif
6540int main(){nm_test_var='a';nm_test_func();return(0);}
6541_LT_EOF
6542
81ecdfbb 6543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6544 (eval $ac_compile) 2>&5
ce2cded5 6545 ac_status=$?
81ecdfbb
RW
6546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547 test $ac_status = 0; }; then
7357c5b6
AM
6548 # Now try to grab the symbols.
6549 nlist=conftest.nm
3725885a
RW
6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6552 ac_status=$?
81ecdfbb
RW
6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6554 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6555 # Try sorting and uniquifying the output.
6556 if sort "$nlist" | uniq > "$nlist"T; then
6557 mv -f "$nlist"T "$nlist"
6558 else
6559 rm -f "$nlist"T
6560 fi
13b2be9c 6561
7357c5b6
AM
6562 # Make sure that we snagged all the symbols we need.
6563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6565 cat <<_LT_EOF > conftest.$ac_ext
6566#ifdef __cplusplus
6567extern "C" {
6568#endif
13b2be9c 6569
7357c5b6
AM
6570_LT_EOF
6571 # Now generate the symbol file.
6572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6573
7357c5b6 6574 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6575
7357c5b6 6576/* The mapping between symbol names and symbols. */
f2c621e4 6577const struct {
7357c5b6
AM
6578 const char *name;
6579 void *address;
6580}
6581lt__PROGRAM__LTX_preloaded_symbols[] =
6582{
6583 { "@PROGRAM@", (void *) 0 },
6584_LT_EOF
6585 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6586 cat <<\_LT_EOF >> conftest.$ac_ext
6587 {0, (void *) 0}
6588};
d7040cdb 6589
7357c5b6
AM
6590/* This works around a problem in FreeBSD linker */
6591#ifdef FREEBSD_WORKAROUND
6592static const void *lt_preloaded_setup() {
6593 return lt__PROGRAM__LTX_preloaded_symbols;
6594}
ce2cded5 6595#endif
d7040cdb 6596
7357c5b6 6597#ifdef __cplusplus
ce2cded5 6598}
7357c5b6
AM
6599#endif
6600_LT_EOF
6601 # Now try linking the two files.
6602 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6603 lt_save_LIBS="$LIBS"
6604 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6605 LIBS="conftstm.$ac_objext"
6606 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6608 (eval $ac_link) 2>&5
6609 ac_status=$?
81ecdfbb
RW
6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6612 pipe_works=yes
6613 fi
f2c621e4
AS
6614 LIBS="$lt_save_LIBS"
6615 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6616 else
6617 echo "cannot find nm_test_func in $nlist" >&5
6618 fi
6619 else
6620 echo "cannot find nm_test_var in $nlist" >&5
6621 fi
6622 else
6623 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6624 fi
6625 else
6626 echo "$progname: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 fi
718a6fd8 6629 rm -rf conftest* conftst*
7357c5b6
AM
6630
6631 # Do not use the global_symbol_pipe unless it works.
6632 if test "$pipe_works" = yes; then
6633 break
6634 else
6635 lt_cv_sys_global_symbol_pipe=
6636 fi
6637done
d7040cdb 6638
ce2cded5 6639fi
7357c5b6
AM
6640
6641if test -z "$lt_cv_sys_global_symbol_pipe"; then
6642 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6643fi
7357c5b6 6644if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6646$as_echo "failed" >&6; }
7357c5b6 6647else
81ecdfbb
RW
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6649$as_echo "ok" >&6; }
ce2cded5 6650fi
d7040cdb 6651
df7b86aa
NC
6652
6653
6654
d7040cdb 6655
d7040cdb 6656
d7040cdb 6657
d7040cdb 6658
d7040cdb 6659
d7040cdb 6660
d7040cdb 6661
d7040cdb 6662
d7040cdb 6663
d7040cdb 6664
d7040cdb 6665
7357c5b6
AM
6666
6667
718a6fd8
SE
6668
6669
6670
7357c5b6
AM
6671
6672
81ecdfbb
RW
6673# Check whether --enable-libtool-lock was given.
6674if test "${enable_libtool_lock+set}" = set; then :
6675 enableval=$enable_libtool_lock;
6676fi
7357c5b6 6677
7357c5b6
AM
6678test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6679
6680# Some flags need to be propagated to the compiler or linker for good
6681# libtool support.
6682case $host in
6683ia64-*-hpux*)
6684 # Find out which ABI we are using.
6685 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6687 (eval $ac_compile) 2>&5
6688 ac_status=$?
81ecdfbb
RW
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; }; then
7357c5b6
AM
6691 case `/usr/bin/file conftest.$ac_objext` in
6692 *ELF-32*)
6693 HPUX_IA64_MODE="32"
6694 ;;
6695 *ELF-64*)
6696 HPUX_IA64_MODE="64"
6697 ;;
6698 esac
6699 fi
6700 rm -rf conftest*
6701 ;;
6702*-*-irix6*)
6703 # Find out which ABI we are using.
3725885a 6704 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6706 (eval $ac_compile) 2>&5
6707 ac_status=$?
81ecdfbb
RW
6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709 test $ac_status = 0; }; then
7357c5b6
AM
6710 if test "$lt_cv_prog_gnu_ld" = yes; then
6711 case `/usr/bin/file conftest.$ac_objext` in
6712 *32-bit*)
6713 LD="${LD-ld} -melf32bsmip"
6714 ;;
6715 *N32*)
6716 LD="${LD-ld} -melf32bmipn32"
6717 ;;
6718 *64-bit*)
6719 LD="${LD-ld} -melf64bmip"
6720 ;;
6721 esac
6722 else
6723 case `/usr/bin/file conftest.$ac_objext` in
6724 *32-bit*)
6725 LD="${LD-ld} -32"
6726 ;;
6727 *N32*)
6728 LD="${LD-ld} -n32"
6729 ;;
6730 *64-bit*)
6731 LD="${LD-ld} -64"
6732 ;;
6733 esac
6734 fi
6735 fi
6736 rm -rf conftest*
6737 ;;
6738
cc9afea3 6739x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6740s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6741 # Find out which ABI we are using.
6742 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6743 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6744 (eval $ac_compile) 2>&5
6745 ac_status=$?
81ecdfbb
RW
6746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747 test $ac_status = 0; }; then
7357c5b6
AM
6748 case `/usr/bin/file conftest.o` in
6749 *32-bit*)
6750 case $host in
6751 x86_64-*kfreebsd*-gnu)
6752 LD="${LD-ld} -m elf_i386_fbsd"
6753 ;;
6754 x86_64-*linux*)
6d2920c8
L
6755 case `/usr/bin/file conftest.o` in
6756 *x86-64*)
6757 LD="${LD-ld} -m elf32_x86_64"
6758 ;;
6759 *)
6760 LD="${LD-ld} -m elf_i386"
6761 ;;
6762 esac
7357c5b6 6763 ;;
cc9afea3
AM
6764 powerpc64le-*linux*)
6765 LD="${LD-ld} -m elf32lppclinux"
6766 ;;
6767 powerpc64-*linux*)
7357c5b6
AM
6768 LD="${LD-ld} -m elf32ppclinux"
6769 ;;
6770 s390x-*linux*)
6771 LD="${LD-ld} -m elf_s390"
6772 ;;
6773 sparc64-*linux*)
6774 LD="${LD-ld} -m elf32_sparc"
6775 ;;
6776 esac
6777 ;;
6778 *64-bit*)
6779 case $host in
6780 x86_64-*kfreebsd*-gnu)
6781 LD="${LD-ld} -m elf_x86_64_fbsd"
6782 ;;
6783 x86_64-*linux*)
6784 LD="${LD-ld} -m elf_x86_64"
6785 ;;
cc9afea3
AM
6786 powerpcle-*linux*)
6787 LD="${LD-ld} -m elf64lppc"
6788 ;;
6789 powerpc-*linux*)
7357c5b6
AM
6790 LD="${LD-ld} -m elf64ppc"
6791 ;;
6792 s390*-*linux*|s390*-*tpf*)
6793 LD="${LD-ld} -m elf64_s390"
6794 ;;
6795 sparc*-*linux*)
6796 LD="${LD-ld} -m elf64_sparc"
6797 ;;
6798 esac
6799 ;;
6800 esac
6801 fi
6802 rm -rf conftest*
6803 ;;
6804
6805*-*-sco3.2v5*)
6806 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6807 SAVE_CFLAGS="$CFLAGS"
6808 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6810$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6811if test "${lt_cv_cc_needs_belf+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
ce2cded5 6813else
7357c5b6
AM
6814 ac_ext=c
6815ac_cpp='$CPP $CPPFLAGS'
6816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
81ecdfbb 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 6821/* end confdefs.h. */
d7040cdb 6822
7357c5b6
AM
6823int
6824main ()
6825{
6826
6827 ;
6828 return 0;
6829}
ce2cded5 6830_ACEOF
81ecdfbb 6831if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6832 lt_cv_cc_needs_belf=yes
ce2cded5 6833else
81ecdfbb 6834 lt_cv_cc_needs_belf=no
ce2cded5 6835fi
81ecdfbb
RW
6836rm -f core conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6838 ac_ext=c
6839ac_cpp='$CPP $CPPFLAGS'
6840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6843
ce2cded5 6844fi
81ecdfbb
RW
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6846$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6847 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6848 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6849 CFLAGS="$SAVE_CFLAGS"
6850 fi
6851 ;;
6852sparc*-*solaris*)
6853 # Find out which ABI we are using.
6854 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6856 (eval $ac_compile) 2>&5
6857 ac_status=$?
81ecdfbb
RW
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; }; then
7357c5b6
AM
6860 case `/usr/bin/file conftest.o` in
6861 *64-bit*)
6862 case $lt_cv_prog_gnu_ld in
6863 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6864 *)
6865 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6866 LD="${LD-ld} -64"
6867 fi
6868 ;;
7357c5b6
AM
6869 esac
6870 ;;
6871 esac
6872 fi
6873 rm -rf conftest*
6874 ;;
6875esac
d7040cdb 6876
df7b86aa
NC
6877need_locks="$enable_libtool_lock"
6878
718a6fd8
SE
6879
6880 case $host_os in
6881 rhapsody* | darwin*)
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6884set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886$as_echo_n "checking for $ac_word... " >&6; }
6887if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
718a6fd8
SE
6889else
6890 if test -n "$DSYMUTIL"; then
6891 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6892else
6893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6900 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6902 break 2
6903 fi
6904done
81ecdfbb
RW
6905 done
6906IFS=$as_save_IFS
718a6fd8
SE
6907
6908fi
6909fi
6910DSYMUTIL=$ac_cv_prog_DSYMUTIL
6911if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6913$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6914else
81ecdfbb
RW
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916$as_echo "no" >&6; }
718a6fd8
SE
6917fi
6918
81ecdfbb 6919
718a6fd8
SE
6920fi
6921if test -z "$ac_cv_prog_DSYMUTIL"; then
6922 ac_ct_DSYMUTIL=$DSYMUTIL
6923 # Extract the first word of "dsymutil", so it can be a program name with args.
6924set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926$as_echo_n "checking for $ac_word... " >&6; }
6927if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
718a6fd8
SE
6929else
6930 if test -n "$ac_ct_DSYMUTIL"; then
6931 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6932else
6933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6940 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6942 break 2
6943 fi
6944done
81ecdfbb
RW
6945 done
6946IFS=$as_save_IFS
718a6fd8 6947
718a6fd8
SE
6948fi
6949fi
6950ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6951if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6953$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6954else
81ecdfbb
RW
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956$as_echo "no" >&6; }
718a6fd8
SE
6957fi
6958
81ecdfbb
RW
6959 if test "x$ac_ct_DSYMUTIL" = x; then
6960 DSYMUTIL=":"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963yes:)
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966ac_tool_warned=yes ;;
6967esac
6968 DSYMUTIL=$ac_ct_DSYMUTIL
6969 fi
718a6fd8
SE
6970else
6971 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6972fi
6973
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6976set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978$as_echo_n "checking for $ac_word... " >&6; }
6979if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6980 $as_echo_n "(cached) " >&6
718a6fd8
SE
6981else
6982 if test -n "$NMEDIT"; then
6983 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6984else
6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986for as_dir in $PATH
6987do
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6992 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6994 break 2
6995 fi
6996done
81ecdfbb
RW
6997 done
6998IFS=$as_save_IFS
718a6fd8
SE
6999
7000fi
7001fi
7002NMEDIT=$ac_cv_prog_NMEDIT
7003if test -n "$NMEDIT"; then
81ecdfbb
RW
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7005$as_echo "$NMEDIT" >&6; }
718a6fd8 7006else
81ecdfbb
RW
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008$as_echo "no" >&6; }
718a6fd8
SE
7009fi
7010
81ecdfbb 7011
718a6fd8
SE
7012fi
7013if test -z "$ac_cv_prog_NMEDIT"; then
7014 ac_ct_NMEDIT=$NMEDIT
7015 # Extract the first word of "nmedit", so it can be a program name with args.
7016set dummy nmedit; ac_word=$2
81ecdfbb
RW
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018$as_echo_n "checking for $ac_word... " >&6; }
7019if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
718a6fd8
SE
7021else
7022 if test -n "$ac_ct_NMEDIT"; then
7023 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7024else
7025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7032 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7034 break 2
7035 fi
7036done
81ecdfbb
RW
7037 done
7038IFS=$as_save_IFS
718a6fd8 7039
718a6fd8
SE
7040fi
7041fi
7042ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7043if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7045$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7046else
81ecdfbb
RW
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048$as_echo "no" >&6; }
718a6fd8
SE
7049fi
7050
81ecdfbb
RW
7051 if test "x$ac_ct_NMEDIT" = x; then
7052 NMEDIT=":"
7053 else
7054 case $cross_compiling:$ac_tool_warned in
7055yes:)
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7058ac_tool_warned=yes ;;
7059esac
7060 NMEDIT=$ac_ct_NMEDIT
7061 fi
718a6fd8
SE
7062else
7063 NMEDIT="$ac_cv_prog_NMEDIT"
7064fi
7065
7066 if test -n "$ac_tool_prefix"; then
7067 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7068set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070$as_echo_n "checking for $ac_word... " >&6; }
7071if test "${ac_cv_prog_LIPO+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
718a6fd8
SE
7073else
7074 if test -n "$LIPO"; then
7075 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7076else
7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078for as_dir in $PATH
7079do
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7084 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7086 break 2
7087 fi
7088done
81ecdfbb
RW
7089 done
7090IFS=$as_save_IFS
718a6fd8
SE
7091
7092fi
7093fi
7094LIPO=$ac_cv_prog_LIPO
7095if test -n "$LIPO"; then
81ecdfbb
RW
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7097$as_echo "$LIPO" >&6; }
718a6fd8 7098else
81ecdfbb
RW
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100$as_echo "no" >&6; }
718a6fd8
SE
7101fi
7102
81ecdfbb 7103
718a6fd8
SE
7104fi
7105if test -z "$ac_cv_prog_LIPO"; then
7106 ac_ct_LIPO=$LIPO
7107 # Extract the first word of "lipo", so it can be a program name with args.
7108set dummy lipo; ac_word=$2
81ecdfbb
RW
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110$as_echo_n "checking for $ac_word... " >&6; }
7111if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
718a6fd8
SE
7113else
7114 if test -n "$ac_ct_LIPO"; then
7115 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7116else
7117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118for as_dir in $PATH
7119do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7124 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7126 break 2
7127 fi
7128done
81ecdfbb
RW
7129 done
7130IFS=$as_save_IFS
718a6fd8 7131
718a6fd8
SE
7132fi
7133fi
7134ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7135if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7137$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7138else
81ecdfbb
RW
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140$as_echo "no" >&6; }
718a6fd8
SE
7141fi
7142
81ecdfbb
RW
7143 if test "x$ac_ct_LIPO" = x; then
7144 LIPO=":"
7145 else
7146 case $cross_compiling:$ac_tool_warned in
7147yes:)
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7150ac_tool_warned=yes ;;
7151esac
7152 LIPO=$ac_ct_LIPO
7153 fi
718a6fd8
SE
7154else
7155 LIPO="$ac_cv_prog_LIPO"
7156fi
7157
7158 if test -n "$ac_tool_prefix"; then
7159 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7160set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162$as_echo_n "checking for $ac_word... " >&6; }
7163if test "${ac_cv_prog_OTOOL+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
718a6fd8
SE
7165else
7166 if test -n "$OTOOL"; then
7167 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7168else
7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170for as_dir in $PATH
7171do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7176 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7178 break 2
7179 fi
7180done
81ecdfbb
RW
7181 done
7182IFS=$as_save_IFS
718a6fd8
SE
7183
7184fi
7185fi
7186OTOOL=$ac_cv_prog_OTOOL
7187if test -n "$OTOOL"; then
81ecdfbb
RW
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7189$as_echo "$OTOOL" >&6; }
718a6fd8 7190else
81ecdfbb
RW
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192$as_echo "no" >&6; }
718a6fd8
SE
7193fi
7194
81ecdfbb 7195
718a6fd8
SE
7196fi
7197if test -z "$ac_cv_prog_OTOOL"; then
7198 ac_ct_OTOOL=$OTOOL
7199 # Extract the first word of "otool", so it can be a program name with args.
7200set dummy otool; ac_word=$2
81ecdfbb
RW
7201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202$as_echo_n "checking for $ac_word... " >&6; }
7203if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
718a6fd8
SE
7205else
7206 if test -n "$ac_ct_OTOOL"; then
7207 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7208else
7209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210for as_dir in $PATH
7211do
7212 IFS=$as_save_IFS
7213 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7216 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7218 break 2
7219 fi
7220done
81ecdfbb
RW
7221 done
7222IFS=$as_save_IFS
718a6fd8 7223
718a6fd8
SE
7224fi
7225fi
7226ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7227if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7229$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7230else
81ecdfbb
RW
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232$as_echo "no" >&6; }
718a6fd8
SE
7233fi
7234
81ecdfbb
RW
7235 if test "x$ac_ct_OTOOL" = x; then
7236 OTOOL=":"
7237 else
7238 case $cross_compiling:$ac_tool_warned in
7239yes:)
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7242ac_tool_warned=yes ;;
7243esac
7244 OTOOL=$ac_ct_OTOOL
7245 fi
718a6fd8
SE
7246else
7247 OTOOL="$ac_cv_prog_OTOOL"
7248fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7252set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254$as_echo_n "checking for $ac_word... " >&6; }
7255if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
718a6fd8
SE
7257else
7258 if test -n "$OTOOL64"; then
7259 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7260else
7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262for as_dir in $PATH
7263do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7268 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7270 break 2
7271 fi
7272done
81ecdfbb
RW
7273 done
7274IFS=$as_save_IFS
718a6fd8
SE
7275
7276fi
7277fi
7278OTOOL64=$ac_cv_prog_OTOOL64
7279if test -n "$OTOOL64"; then
81ecdfbb
RW
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7281$as_echo "$OTOOL64" >&6; }
718a6fd8 7282else
81ecdfbb
RW
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284$as_echo "no" >&6; }
718a6fd8
SE
7285fi
7286
81ecdfbb 7287
718a6fd8
SE
7288fi
7289if test -z "$ac_cv_prog_OTOOL64"; then
7290 ac_ct_OTOOL64=$OTOOL64
7291 # Extract the first word of "otool64", so it can be a program name with args.
7292set dummy otool64; ac_word=$2
81ecdfbb
RW
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294$as_echo_n "checking for $ac_word... " >&6; }
7295if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
718a6fd8
SE
7297else
7298 if test -n "$ac_ct_OTOOL64"; then
7299 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7300else
7301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302for as_dir in $PATH
7303do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7308 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7310 break 2
7311 fi
7312done
81ecdfbb
RW
7313 done
7314IFS=$as_save_IFS
718a6fd8 7315
718a6fd8
SE
7316fi
7317fi
7318ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7319if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7321$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7322else
81ecdfbb
RW
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324$as_echo "no" >&6; }
718a6fd8
SE
7325fi
7326
81ecdfbb
RW
7327 if test "x$ac_ct_OTOOL64" = x; then
7328 OTOOL64=":"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331yes:)
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334ac_tool_warned=yes ;;
7335esac
7336 OTOOL64=$ac_ct_OTOOL64
7337 fi
718a6fd8
SE
7338else
7339 OTOOL64="$ac_cv_prog_OTOOL64"
7340fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
81ecdfbb
RW
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7369$as_echo_n "checking for -single_module linker flag... " >&6; }
7370if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
718a6fd8
SE
7372else
7373 lt_cv_apple_cc_single_mod=no
7374 if test -z "${LT_MULTI_MODULE}"; then
7375 # By default we will add the -single_module flag. You can override
7376 # by either setting the environment variable LT_MULTI_MODULE
7377 # non-empty at configure time, or by adding -multi_module to the
7378 # link flags.
7379 rm -rf libconftest.dylib*
7380 echo "int foo(void){return 1;}" > conftest.c
7381 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7382-dynamiclib -Wl,-single_module conftest.c" >&5
7383 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7384 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7385 _lt_result=$?
7386 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7387 lt_cv_apple_cc_single_mod=yes
7388 else
7389 cat conftest.err >&5
7390 fi
7391 rm -rf libconftest.dylib*
7392 rm -f conftest.*
7393 fi
7394fi
81ecdfbb
RW
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7396$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7398$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7399if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
718a6fd8
SE
7401else
7402 lt_cv_ld_exported_symbols_list=no
7403 save_LDFLAGS=$LDFLAGS
7404 echo "_main" > conftest.sym
7405 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7407/* end confdefs.h. */
7408
7409int
7410main ()
7411{
7412
7413 ;
7414 return 0;
7415}
7416_ACEOF
81ecdfbb 7417if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7418 lt_cv_ld_exported_symbols_list=yes
7419else
81ecdfbb 7420 lt_cv_ld_exported_symbols_list=no
718a6fd8 7421fi
81ecdfbb
RW
7422rm -f core conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7424 LDFLAGS="$save_LDFLAGS"
7425
7426fi
81ecdfbb
RW
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7428$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7430$as_echo_n "checking for -force_load linker flag... " >&6; }
7431if test "${lt_cv_ld_force_load+set}" = set; then :
7432 $as_echo_n "(cached) " >&6
7433else
7434 lt_cv_ld_force_load=no
7435 cat > conftest.c << _LT_EOF
7436int forced_loaded() { return 2;}
7437_LT_EOF
7438 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7439 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7440 echo "$AR cru libconftest.a conftest.o" >&5
7441 $AR cru libconftest.a conftest.o 2>&5
7442 cat > conftest.c << _LT_EOF
7443int main() { return 0;}
7444_LT_EOF
7445 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7446 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7447 _lt_result=$?
7448 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7449 lt_cv_ld_force_load=yes
7450 else
7451 cat conftest.err >&5
7452 fi
7453 rm -f conftest.err libconftest.a conftest conftest.c
7454 rm -rf conftest.dSYM
7455
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7458$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7459 case $host_os in
7460 rhapsody* | darwin1.[012])
7461 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7462 darwin1.*)
7463 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7464 darwin*) # darwin 5.x on
7465 # if running on 10.5 or later, the deployment target defaults
7466 # to the OS version, if on x86, and 10.4, the deployment
7467 # target defaults to 10.4. Don't you love it?
7468 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7469 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7471 10.[012][,.]*)
718a6fd8
SE
7472 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7473 10.*)
7474 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7475 esac
7476 ;;
7477 esac
7478 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7479 _lt_dar_single_mod='$single_module'
7480 fi
7481 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7482 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7483 else
7484 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7485 fi
3725885a 7486 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7487 _lt_dsymutil='~$DSYMUTIL $lib || :'
7488 else
7489 _lt_dsymutil=
7490 fi
7491 ;;
7492 esac
7493
718a6fd8 7494for ac_header in dlfcn.h
81ecdfbb
RW
7495do :
7496 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7497"
7498if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7499 cat >>confdefs.h <<_ACEOF
81ecdfbb 7500#define HAVE_DLFCN_H 1
718a6fd8
SE
7501_ACEOF
7502
7503fi
7504
7505done
7506
7507
7508
3725885a
RW
7509
7510
718a6fd8
SE
7511# Set options
7512
7513
7514
7515 enable_dlopen=no
7516
7517
7518 enable_win32_dll=no
7519
7520
81ecdfbb
RW
7521 # Check whether --enable-shared was given.
7522if test "${enable_shared+set}" = set; then :
7523 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7524 case $enableval in
7525 yes) enable_shared=yes ;;
7526 no) enable_shared=no ;;
7527 *)
7528 enable_shared=no
7529 # Look at the argument we got. We use all the common list separators.
7530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7531 for pkg in $enableval; do
7532 IFS="$lt_save_ifs"
7533 if test "X$pkg" = "X$p"; then
7534 enable_shared=yes
7535 fi
7536 done
7537 IFS="$lt_save_ifs"
7538 ;;
7539 esac
7540else
7541 enable_shared=yes
81ecdfbb
RW
7542fi
7543
718a6fd8
SE
7544
7545
7546
7547
7548
7549
7550
7551
81ecdfbb
RW
7552 # Check whether --enable-static was given.
7553if test "${enable_static+set}" = set; then :
7554 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7555 case $enableval in
7556 yes) enable_static=yes ;;
7557 no) enable_static=no ;;
7558 *)
7559 enable_static=no
7560 # Look at the argument we got. We use all the common list separators.
7561 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7562 for pkg in $enableval; do
7563 IFS="$lt_save_ifs"
7564 if test "X$pkg" = "X$p"; then
7565 enable_static=yes
7566 fi
7567 done
7568 IFS="$lt_save_ifs"
7569 ;;
7570 esac
7571else
7572 enable_static=yes
81ecdfbb
RW
7573fi
7574
718a6fd8
SE
7575
7576
d7040cdb 7577
d7040cdb 7578
718a6fd8
SE
7579
7580
7581
7582
7583
81ecdfbb
RW
7584# Check whether --with-pic was given.
7585if test "${with_pic+set}" = set; then :
7586 withval=$with_pic; pic_mode="$withval"
ce2cded5 7587else
718a6fd8 7588 pic_mode=default
81ecdfbb
RW
7589fi
7590
d7040cdb 7591
718a6fd8
SE
7592test -z "$pic_mode" && pic_mode=default
7593
7594
7595
7596
7597
7598
7599
81ecdfbb
RW
7600 # Check whether --enable-fast-install was given.
7601if test "${enable_fast_install+set}" = set; then :
7602 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7603 case $enableval in
7604 yes) enable_fast_install=yes ;;
7605 no) enable_fast_install=no ;;
7606 *)
7607 enable_fast_install=no
7608 # Look at the argument we got. We use all the common list separators.
7609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7610 for pkg in $enableval; do
7611 IFS="$lt_save_ifs"
7612 if test "X$pkg" = "X$p"; then
7613 enable_fast_install=yes
7614 fi
7615 done
7616 IFS="$lt_save_ifs"
7617 ;;
7618 esac
ce2cded5 7619else
718a6fd8 7620 enable_fast_install=yes
81ecdfbb
RW
7621fi
7622
718a6fd8
SE
7623
7624
7625
7626
d7040cdb 7627
d7040cdb 7628
d7040cdb 7629
d7040cdb 7630
d7040cdb 7631
d7040cdb 7632
ce2cded5
L
7633# This can be used to rebuild libtool when needed
7634LIBTOOL_DEPS="$ltmain"
d7040cdb 7635
ce2cded5
L
7636# Always use our own libtool.
7637LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7638
d7040cdb 7639
d7040cdb 7640
d7040cdb
SE
7641
7642
7643
7644
7645
7646
d7040cdb 7647
d7040cdb 7648
ab509236 7649
ab509236 7650
d7040cdb
SE
7651
7652
7653
7654
7655
13b2be9c 7656
13b2be9c 7657
13b2be9c 7658
13b2be9c 7659
d7040cdb 7660
3725885a 7661
d7040cdb
SE
7662
7663
ce2cded5 7664test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7665
7666
d7040cdb 7667
d7040cdb 7668
d7040cdb
SE
7669
7670
7671
7672
7673
7674
ce2cded5
L
7675
7676
7677
7678
7679if test -n "${ZSH_VERSION+set}" ; then
7680 setopt NO_GLOB_SUBST
7681fi
7682
81ecdfbb
RW
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7684$as_echo_n "checking for objdir... " >&6; }
7685if test "${lt_cv_objdir+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
d7040cdb 7687else
ce2cded5
L
7688 rm -f .libs 2>/dev/null
7689mkdir .libs 2>/dev/null
7690if test -d .libs; then
7691 lt_cv_objdir=.libs
7692else
7693 # MS-DOS does not allow filenames that begin with a dot.
7694 lt_cv_objdir=_libs
d7040cdb 7695fi
ce2cded5
L
7696rmdir .libs 2>/dev/null
7697fi
81ecdfbb
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7699$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7700objdir=$lt_cv_objdir
d7040cdb
SE
7701
7702
7703
7704
d7040cdb 7705
ce2cded5
L
7706cat >>confdefs.h <<_ACEOF
7707#define LT_OBJDIR "$lt_cv_objdir/"
7708_ACEOF
d7040cdb
SE
7709
7710
7711
7712
ce2cded5
L
7713case $host_os in
7714aix3*)
7715 # AIX sometimes has problems with the GCC collect2 program. For some
7716 # reason, if we set the COLLECT_NAMES environment variable, the problems
7717 # vanish in a puff of smoke.
7718 if test "X${COLLECT_NAMES+set}" != Xset; then
7719 COLLECT_NAMES=
7720 export COLLECT_NAMES
7721 fi
7722 ;;
7723esac
d7040cdb 7724
ce2cded5
L
7725# Global variables:
7726ofile=libtool
7727can_build_shared=yes
d7040cdb 7728
ce2cded5
L
7729# All known linkers require a `.a' archive for static linking (except MSVC,
7730# which needs '.lib').
7731libext=a
d7040cdb 7732
ce2cded5 7733with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7734
ce2cded5
L
7735old_CC="$CC"
7736old_CFLAGS="$CFLAGS"
d7040cdb 7737
ce2cded5
L
7738# Set sane defaults for various variables
7739test -z "$CC" && CC=cc
7740test -z "$LTCC" && LTCC=$CC
7741test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7742test -z "$LD" && LD=ld
7743test -z "$ac_objext" && ac_objext=o
7744
7745for cc_temp in $compiler""; do
7746 case $cc_temp in
7747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7749 \-*) ;;
7750 *) break;;
7751 esac
7752done
3725885a 7753cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
7754
7755
7756# Only perform the check for file, if the check method requires it
7757test -z "$MAGIC_CMD" && MAGIC_CMD=file
7758case $deplibs_check_method in
7759file_magic*)
7760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7762$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7763if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
ce2cded5
L
7765else
7766 case $MAGIC_CMD in
7767[\\/*] | ?:[\\/]*)
7768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769 ;;
7770*)
7771 lt_save_MAGIC_CMD="$MAGIC_CMD"
7772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774 for ac_dir in $ac_dummy; do
7775 IFS="$lt_save_ifs"
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f $ac_dir/${ac_tool_prefix}file; then
7778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7779 if test -n "$file_magic_test_file"; then
7780 case $deplibs_check_method in
7781 "file_magic "*)
7782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785 $EGREP "$file_magic_regex" > /dev/null; then
7786 :
d7040cdb 7787 else
ce2cded5 7788 cat <<_LT_EOF 1>&2
d7040cdb 7789
ce2cded5
L
7790*** Warning: the command libtool uses to detect shared libraries,
7791*** $file_magic_cmd, produces output that libtool cannot recognize.
7792*** The result is that libtool may fail to recognize shared libraries
7793*** as such. This will affect the creation of libtool libraries that
7794*** depend on shared libraries, but programs linked with such libtool
7795*** libraries will work regardless of this problem. Nevertheless, you
7796*** may want to report the problem to your system manager and/or to
7797*** bug-libtool@gnu.org
d7040cdb 7798
ce2cded5
L
7799_LT_EOF
7800 fi ;;
7801 esac
d7040cdb 7802 fi
ce2cded5 7803 break
d7040cdb 7804 fi
ce2cded5
L
7805 done
7806 IFS="$lt_save_ifs"
7807 MAGIC_CMD="$lt_save_MAGIC_CMD"
7808 ;;
7809esac
7810fi
d7040cdb 7811
ce2cded5
L
7812MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7815$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7816else
81ecdfbb
RW
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818$as_echo "no" >&6; }
ce2cded5 7819fi
d7040cdb 7820
d7040cdb 7821
d7040cdb 7822
d7040cdb 7823
d7040cdb 7824
ce2cded5
L
7825if test -z "$lt_cv_path_MAGIC_CMD"; then
7826 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7828$as_echo_n "checking for file... " >&6; }
7829if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
ce2cded5
L
7831else
7832 case $MAGIC_CMD in
7833[\\/*] | ?:[\\/]*)
7834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7835 ;;
7836*)
7837 lt_save_MAGIC_CMD="$MAGIC_CMD"
7838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7840 for ac_dir in $ac_dummy; do
7841 IFS="$lt_save_ifs"
7842 test -z "$ac_dir" && ac_dir=.
7843 if test -f $ac_dir/file; then
7844 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7845 if test -n "$file_magic_test_file"; then
7846 case $deplibs_check_method in
7847 "file_magic "*)
7848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7851 $EGREP "$file_magic_regex" > /dev/null; then
7852 :
d7040cdb 7853 else
ce2cded5
L
7854 cat <<_LT_EOF 1>&2
7855
7856*** Warning: the command libtool uses to detect shared libraries,
7857*** $file_magic_cmd, produces output that libtool cannot recognize.
7858*** The result is that libtool may fail to recognize shared libraries
7859*** as such. This will affect the creation of libtool libraries that
7860*** depend on shared libraries, but programs linked with such libtool
7861*** libraries will work regardless of this problem. Nevertheless, you
7862*** may want to report the problem to your system manager and/or to
7863*** bug-libtool@gnu.org
7864
7865_LT_EOF
7866 fi ;;
d7040cdb 7867 esac
d7040cdb 7868 fi
ce2cded5
L
7869 break
7870 fi
7871 done
7872 IFS="$lt_save_ifs"
7873 MAGIC_CMD="$lt_save_MAGIC_CMD"
7874 ;;
7875esac
7876fi
d7040cdb 7877
ce2cded5
L
7878MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7881$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7882else
81ecdfbb
RW
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
ce2cded5 7885fi
d7040cdb 7886
d7040cdb 7887
ce2cded5
L
7888 else
7889 MAGIC_CMD=:
7890 fi
d7040cdb 7891fi
d7040cdb 7892
ce2cded5
L
7893 fi
7894 ;;
7895esac
d7040cdb 7896
ce2cded5 7897# Use C for the default configuration in the libtool script
d7040cdb 7898
ce2cded5
L
7899lt_save_CC="$CC"
7900ac_ext=c
7901ac_cpp='$CPP $CPPFLAGS'
7902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7905
d7040cdb 7906
ce2cded5
L
7907# Source file extension for C test sources.
7908ac_ext=c
d7040cdb 7909
ce2cded5
L
7910# Object file extension for compiled C test sources.
7911objext=o
7912objext=$objext
d7040cdb 7913
ce2cded5
L
7914# Code to be used in simple compile tests
7915lt_simple_compile_test_code="int some_variable = 0;"
7916
7917# Code to be used in simple link tests
7918lt_simple_link_test_code='int main(){return(0);}'
7919
7920
7921
7922
7923
7924
7925
7926# If no C compiler was specified, use CC.
7927LTCC=${LTCC-"$CC"}
7928
7929# If no C compiler flags were specified, use CFLAGS.
7930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7931
7932# Allow CC to be a program name with arguments.
7933compiler=$CC
7934
7935# Save the default compiler, since it gets overwritten when the other
7936# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7937compiler_DEFAULT=$CC
7938
7939# save warnings/boilerplate of simple test code
7940ac_outfile=conftest.$ac_objext
7941echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7942eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943_lt_compiler_boilerplate=`cat conftest.err`
7944$RM conftest*
7945
7946ac_outfile=conftest.$ac_objext
7947echo "$lt_simple_link_test_code" >conftest.$ac_ext
7948eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7949_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7950$RM -r conftest*
ce2cded5
L
7951
7952
f2c621e4
AS
7953## CAVEAT EMPTOR:
7954## There is no encapsulation within the following macros, do not change
7955## the running order or otherwise move them around unless you know exactly
7956## what you are doing...
ce2cded5
L
7957if test -n "$compiler"; then
7958
7959lt_prog_compiler_no_builtin_flag=
7960
7961if test "$GCC" = yes; then
3725885a
RW
7962 case $cc_basename in
7963 nvcc*)
7964 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7965 *)
7966 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7967 esac
ce2cded5 7968
81ecdfbb
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7970$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7971if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
ce2cded5
L
7973else
7974 lt_cv_prog_compiler_rtti_exceptions=no
7975 ac_outfile=conftest.$ac_objext
7976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977 lt_compiler_flag="-fno-rtti -fno-exceptions"
7978 # Insert the option either (1) after the last *FLAGS variable, or
7979 # (2) before a word containing "conftest.", or (3) at the end.
7980 # Note that $ac_compile itself does not contain backslashes and begins
7981 # with a dollar sign (not a hyphen), so the echo should work correctly.
7982 # The option is referenced via a variable to avoid confusing sed.
7983 lt_compile=`echo "$ac_compile" | $SED \
7984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986 -e 's:$: $lt_compiler_flag:'`
3725885a 7987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7988 (eval "$lt_compile" 2>conftest.err)
7989 ac_status=$?
7990 cat conftest.err >&5
3725885a 7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7992 if (exit $ac_status) && test -s "$ac_outfile"; then
7993 # The compiler can only warn and ignore the option if not recognized
7994 # So say no if there are warnings other than the usual output.
3725885a 7995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7998 lt_cv_prog_compiler_rtti_exceptions=yes
7999 fi
8000 fi
8001 $RM conftest*
8002
8003fi
81ecdfbb
RW
8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8005$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8006
8007if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8008 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8009else
8010 :
8011fi
8012
8013fi
8014
8015
8016
8017
8018
8019
8020 lt_prog_compiler_wl=
8021lt_prog_compiler_pic=
8022lt_prog_compiler_static=
8023
f2c621e4
AS
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8025$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8026
8027 if test "$GCC" = yes; then
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_static='-static'
8030
8031 case $host_os in
8032 aix*)
8033 # All AIX code is PIC.
8034 if test "$host_cpu" = ia64; then
8035 # AIX 5 now supports IA64 processor
8036 lt_prog_compiler_static='-Bstatic'
8037 fi
6c9c0a50 8038 lt_prog_compiler_pic='-fPIC'
ce2cded5 8039 ;;
d7040cdb
SE
8040
8041 amigaos*)
718a6fd8
SE
8042 case $host_cpu in
8043 powerpc)
8044 # see comment about AmigaOS4 .so support
8045 lt_prog_compiler_pic='-fPIC'
8046 ;;
8047 m68k)
8048 # FIXME: we need at least 68020 code to build shared libraries, but
8049 # adding the `-m68020' flag to GCC prevents building anything better,
8050 # like `-m68040'.
8051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8052 ;;
8053 esac
d7040cdb
SE
8054 ;;
8055
ce2cded5
L
8056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8057 # PIC is the default for these OSes.
d7040cdb
SE
8058 ;;
8059
718a6fd8 8060 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8061 # This hack is so that the source file can tell whether it is being
8062 # built for inclusion in a dll (and should export symbols for example).
8063 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8064 # (--disable-auto-import) libraries
8065 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8066 ;;
8067
8068 darwin* | rhapsody*)
ce2cded5
L
8069 # PIC is the default on this platform
8070 # Common symbols not allowed in MH_DYLIB files
8071 lt_prog_compiler_pic='-fno-common'
8072 ;;
8073
3725885a
RW
8074 haiku*)
8075 # PIC is the default for Haiku.
8076 # The "-static" flag exists, but is broken.
8077 lt_prog_compiler_static=
8078 ;;
8079
ce2cded5 8080 hpux*)
718a6fd8
SE
8081 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8082 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8083 # sets the default TLS model and affects inlining.
ce2cded5 8084 case $host_cpu in
718a6fd8 8085 hppa*64*)
ce2cded5 8086 # +Z the default
d7040cdb 8087 ;;
ce2cded5
L
8088 *)
8089 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8090 ;;
8091 esac
ce2cded5 8092 ;;
d7040cdb 8093
ce2cded5
L
8094 interix[3-9]*)
8095 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8096 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8097 ;;
8098
ce2cded5
L
8099 msdosdjgpp*)
8100 # Just because we use GCC doesn't mean we suddenly get shared libraries
8101 # on systems that don't support them.
8102 lt_prog_compiler_can_build_shared=no
8103 enable_shared=no
d7040cdb
SE
8104 ;;
8105
ce2cded5
L
8106 *nto* | *qnx*)
8107 # QNX uses GNU C++, but need to define -shared option too, otherwise
8108 # it will coredump.
8109 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8110 ;;
8111
ce2cded5
L
8112 sysv4*MP*)
8113 if test -d /usr/nec; then
8114 lt_prog_compiler_pic=-Kconform_pic
8115 fi
d7040cdb
SE
8116 ;;
8117
ce2cded5
L
8118 *)
8119 lt_prog_compiler_pic='-fPIC'
d7040cdb 8120 ;;
ce2cded5 8121 esac
3725885a
RW
8122
8123 case $cc_basename in
8124 nvcc*) # Cuda Compiler Driver 2.2
8125 lt_prog_compiler_wl='-Xlinker '
8126 lt_prog_compiler_pic='-Xcompiler -fPIC'
8127 ;;
8128 esac
ce2cded5
L
8129 else
8130 # PORTME Check for flag to pass linker flags through the system compiler.
8131 case $host_os in
8132 aix*)
8133 lt_prog_compiler_wl='-Wl,'
8134 if test "$host_cpu" = ia64; then
8135 # AIX 5 now supports IA64 processor
8136 lt_prog_compiler_static='-Bstatic'
d7040cdb 8137 else
ce2cded5 8138 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8139 fi
ce2cded5 8140 ;;
d7040cdb 8141
718a6fd8 8142 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8143 # This hack is so that the source file can tell whether it is being
8144 # built for inclusion in a dll (and should export symbols for example).
8145 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8146 ;;
8147
ce2cded5
L
8148 hpux9* | hpux10* | hpux11*)
8149 lt_prog_compiler_wl='-Wl,'
8150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8151 # not for PA HP-UX.
8152 case $host_cpu in
8153 hppa*64*|ia64*)
8154 # +Z the default
8155 ;;
8156 *)
8157 lt_prog_compiler_pic='+Z'
8158 ;;
8159 esac
8160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8161 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8162 ;;
8163
ce2cded5
L
8164 irix5* | irix6* | nonstopux*)
8165 lt_prog_compiler_wl='-Wl,'
8166 # PIC (with -KPIC) is the default.
8167 lt_prog_compiler_static='-non_shared'
8168 ;;
d7040cdb 8169
58e24671 8170 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8171 case $cc_basename in
718a6fd8
SE
8172 # old Intel for x86_64 which still supported -KPIC.
8173 ecc*)
ce2cded5
L
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='-KPIC'
8176 lt_prog_compiler_static='-static'
8177 ;;
718a6fd8
SE
8178 # icc used to be incompatible with GCC.
8179 # ICC 10 doesn't accept -KPIC any more.
8180 icc* | ifort*)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fPIC'
8183 lt_prog_compiler_static='-static'
8184 ;;
8185 # Lahey Fortran 8.1.
8186 lf95*)
8187 lt_prog_compiler_wl='-Wl,'
8188 lt_prog_compiler_pic='--shared'
8189 lt_prog_compiler_static='--static'
8190 ;;
3725885a 8191 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8192 # Portland Group compilers (*not* the Pentium gcc compiler,
8193 # which looks to be a dead project)
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_pic='-fpic'
8196 lt_prog_compiler_static='-Bstatic'
8197 ;;
8198 ccc*)
8199 lt_prog_compiler_wl='-Wl,'
8200 # All Alpha code is PIC.
8201 lt_prog_compiler_static='-non_shared'
8202 ;;
3725885a
RW
8203 xl* | bgxl* | bgf* | mpixl*)
8204 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8205 lt_prog_compiler_wl='-Wl,'
8206 lt_prog_compiler_pic='-qpic'
8207 lt_prog_compiler_static='-qstaticlink'
8208 ;;
ce2cded5
L
8209 *)
8210 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8211 *Sun\ F* | *Sun*Fortran*)
8212 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8213 lt_prog_compiler_pic='-KPIC'
8214 lt_prog_compiler_static='-Bstatic'
3725885a 8215 lt_prog_compiler_wl=''
d7040cdb 8216 ;;
3725885a
RW
8217 *Sun\ C*)
8218 # Sun C 5.9
ce2cded5
L
8219 lt_prog_compiler_pic='-KPIC'
8220 lt_prog_compiler_static='-Bstatic'
3725885a 8221 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8222 ;;
8223 esac
ce2cded5
L
8224 ;;
8225 esac
d7040cdb
SE
8226 ;;
8227
ce2cded5
L
8228 newsos6)
8229 lt_prog_compiler_pic='-KPIC'
8230 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8231 ;;
8232
ce2cded5
L
8233 *nto* | *qnx*)
8234 # QNX uses GNU C++, but need to define -shared option too, otherwise
8235 # it will coredump.
8236 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8237 ;;
8238
ce2cded5
L
8239 osf3* | osf4* | osf5*)
8240 lt_prog_compiler_wl='-Wl,'
8241 # All OSF/1 code is PIC.
8242 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8243 ;;
8244
ce2cded5
L
8245 rdos*)
8246 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8247 ;;
8248
8249 solaris*)
ce2cded5
L
8250 lt_prog_compiler_pic='-KPIC'
8251 lt_prog_compiler_static='-Bstatic'
8252 case $cc_basename in
f2c621e4 8253 f77* | f90* | f95*)
ce2cded5 8254 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8255 *)
ce2cded5 8256 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8257 esac
d7040cdb
SE
8258 ;;
8259
8260 sunos4*)
ce2cded5
L
8261 lt_prog_compiler_wl='-Qoption ld '
8262 lt_prog_compiler_pic='-PIC'
8263 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8264 ;;
8265
ce2cded5
L
8266 sysv4 | sysv4.2uw2* | sysv4.3*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8270 ;;
8271
8272 sysv4*MP*)
ce2cded5
L
8273 if test -d /usr/nec ;then
8274 lt_prog_compiler_pic='-Kconform_pic'
8275 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8276 fi
8277 ;;
8278
ce2cded5
L
8279 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8280 lt_prog_compiler_wl='-Wl,'
8281 lt_prog_compiler_pic='-KPIC'
8282 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8283 ;;
8284
ce2cded5
L
8285 unicos*)
8286 lt_prog_compiler_wl='-Wl,'
8287 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8288 ;;
8289
8290 uts4*)
ce2cded5
L
8291 lt_prog_compiler_pic='-pic'
8292 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8293 ;;
8294
8295 *)
ce2cded5 8296 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8297 ;;
8298 esac
d7040cdb
SE
8299 fi
8300
ce2cded5
L
8301case $host_os in
8302 # For platforms which do not support PIC, -DPIC is meaningless:
8303 *djgpp*)
8304 lt_prog_compiler_pic=
8305 ;;
8306 *)
8307 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8308 ;;
8309esac
f2c621e4
AS
8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8311$as_echo "$lt_prog_compiler_pic" >&6; }
8312
8313
8314
8315
d7040cdb
SE
8316
8317
8318#
ce2cded5 8319# Check to make sure the PIC flag actually works.
d7040cdb 8320#
ce2cded5 8321if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8324if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
ce2cded5 8326else
718a6fd8 8327 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 # The option is referenced via a variable to avoid confusing sed.
8336 lt_compile=`echo "$ac_compile" | $SED \
8337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339 -e 's:$: $lt_compiler_flag:'`
3725885a 8340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8341 (eval "$lt_compile" 2>conftest.err)
8342 ac_status=$?
8343 cat conftest.err >&5
3725885a 8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8345 if (exit $ac_status) && test -s "$ac_outfile"; then
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings other than the usual output.
3725885a 8348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8351 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8352 fi
8353 fi
8354 $RM conftest*
d7040cdb 8355
ce2cded5 8356fi
81ecdfbb
RW
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8358$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8359
718a6fd8 8360if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8361 case $lt_prog_compiler_pic in
8362 "" | " "*) ;;
8363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8364 esac
8365else
8366 lt_prog_compiler_pic=
8367 lt_prog_compiler_can_build_shared=no
8368fi
d7040cdb 8369
ce2cded5 8370fi
d7040cdb
SE
8371
8372
8373
8374
8375
8376
ce2cded5
L
8377#
8378# Check to make sure the static flag actually works.
8379#
8380wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8382$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8383if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
ce2cded5 8385else
718a6fd8 8386 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8387 save_LDFLAGS="$LDFLAGS"
8388 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8389 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8390 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8391 # The linker can only warn and ignore the option if not recognized
8392 # So say no if there are warnings
8393 if test -s conftest.err; then
8394 # Append any errors to the config.log.
8395 cat conftest.err 1>&5
3725885a 8396 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8399 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8400 fi
8401 else
718a6fd8 8402 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8403 fi
8404 fi
718a6fd8 8405 $RM -r conftest*
ce2cded5 8406 LDFLAGS="$save_LDFLAGS"
d7040cdb 8407
ce2cded5 8408fi
81ecdfbb
RW
8409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8410$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8411
718a6fd8 8412if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8413 :
8414else
8415 lt_prog_compiler_static=
8416fi
d7040cdb
SE
8417
8418
8419
8420
8421
8422
8423
81ecdfbb
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8425$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8426if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
ce2cded5
L
8428else
8429 lt_cv_prog_compiler_c_o=no
8430 $RM -r conftest 2>/dev/null
8431 mkdir conftest
8432 cd conftest
8433 mkdir out
8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8435
ce2cded5
L
8436 lt_compiler_flag="-o out/conftest2.$ac_objext"
8437 # Insert the option either (1) after the last *FLAGS variable, or
8438 # (2) before a word containing "conftest.", or (3) at the end.
8439 # Note that $ac_compile itself does not contain backslashes and begins
8440 # with a dollar sign (not a hyphen), so the echo should work correctly.
8441 lt_compile=`echo "$ac_compile" | $SED \
8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8444 -e 's:$: $lt_compiler_flag:'`
3725885a 8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8446 (eval "$lt_compile" 2>out/conftest.err)
8447 ac_status=$?
8448 cat out/conftest.err >&5
3725885a 8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8450 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8451 then
8452 # The compiler can only warn and ignore the option if not recognized
8453 # So say no if there are warnings
3725885a 8454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8455 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8456 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8457 lt_cv_prog_compiler_c_o=yes
8458 fi
8459 fi
8460 chmod u+w . 2>&5
8461 $RM conftest*
8462 # SGI C++ compiler will create directory out/ii_files/ for
8463 # template instantiation
8464 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8465 $RM out/* && rmdir out
8466 cd ..
8467 $RM -r conftest
8468 $RM conftest*
d7040cdb 8469
ce2cded5 8470fi
81ecdfbb
RW
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8472$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8473
8474
8475
8476
8477
8478
81ecdfbb
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8480$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8481if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
ce2cded5
L
8483else
8484 lt_cv_prog_compiler_c_o=no
8485 $RM -r conftest 2>/dev/null
8486 mkdir conftest
8487 cd conftest
8488 mkdir out
8489 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8490
ce2cded5
L
8491 lt_compiler_flag="-o out/conftest2.$ac_objext"
8492 # Insert the option either (1) after the last *FLAGS variable, or
8493 # (2) before a word containing "conftest.", or (3) at the end.
8494 # Note that $ac_compile itself does not contain backslashes and begins
8495 # with a dollar sign (not a hyphen), so the echo should work correctly.
8496 lt_compile=`echo "$ac_compile" | $SED \
8497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8499 -e 's:$: $lt_compiler_flag:'`
3725885a 8500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8501 (eval "$lt_compile" 2>out/conftest.err)
8502 ac_status=$?
8503 cat out/conftest.err >&5
3725885a 8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8505 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8506 then
8507 # The compiler can only warn and ignore the option if not recognized
8508 # So say no if there are warnings
3725885a 8509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8510 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8511 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8512 lt_cv_prog_compiler_c_o=yes
8513 fi
8514 fi
8515 chmod u+w . 2>&5
8516 $RM conftest*
8517 # SGI C++ compiler will create directory out/ii_files/ for
8518 # template instantiation
8519 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8520 $RM out/* && rmdir out
8521 cd ..
8522 $RM -r conftest
8523 $RM conftest*
d7040cdb 8524
ce2cded5 8525fi
81ecdfbb
RW
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8527$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8528
8529
8530
8531
ce2cded5
L
8532hard_links="nottested"
8533if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8534 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8536$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8537 hard_links=yes
8538 $RM conftest*
8539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8540 touch conftest.a
8541 ln conftest.a conftest.b 2>&5 || hard_links=no
8542 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8544$as_echo "$hard_links" >&6; }
ce2cded5 8545 if test "$hard_links" = no; then
81ecdfbb
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8547$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8548 need_locks=warn
8549 fi
8550else
8551 need_locks=no
8552fi
d7040cdb
SE
8553
8554
8555
8556
8557
8558
81ecdfbb
RW
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8560$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8561
ce2cded5
L
8562 runpath_var=
8563 allow_undefined_flag=
8564 always_export_symbols=no
8565 archive_cmds=
8566 archive_expsym_cmds=
8567 compiler_needs_object=no
8568 enable_shared_with_static_runtimes=no
8569 export_dynamic_flag_spec=
8570 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8571 hardcode_automatic=no
8572 hardcode_direct=no
8573 hardcode_direct_absolute=no
8574 hardcode_libdir_flag_spec=
8575 hardcode_libdir_flag_spec_ld=
8576 hardcode_libdir_separator=
8577 hardcode_minus_L=no
8578 hardcode_shlibpath_var=unsupported
8579 inherit_rpath=no
8580 link_all_deplibs=unknown
8581 module_cmds=
8582 module_expsym_cmds=
8583 old_archive_from_new_cmds=
8584 old_archive_from_expsyms_cmds=
8585 thread_safe_flag_spec=
8586 whole_archive_flag_spec=
8587 # include_expsyms should be a list of space-separated symbols to be *always*
8588 # included in the symbol list
8589 include_expsyms=
8590 # exclude_expsyms can be an extended regexp of symbols to exclude
8591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8593 # as well as any symbol that contains `d'.
718a6fd8 8594 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8596 # platforms (ab)use it in PIC code, but their linkers get confused if
8597 # the symbol is explicitly referenced. Since portable code cannot
8598 # rely on this symbol name, it's probably fine to never include it in
8599 # preloaded symbol tables.
718a6fd8 8600 # Exclude shared library initialization/finalization symbols.
ce2cded5 8601 extract_expsyms_cmds=
d7040cdb 8602
ce2cded5 8603 case $host_os in
718a6fd8 8604 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8605 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8606 # When not using gcc, we currently assume that we are using
8607 # Microsoft Visual C++.
8608 if test "$GCC" != yes; then
8609 with_gnu_ld=no
8610 fi
8611 ;;
8612 interix*)
8613 # we just hope/assume this is gcc and not c89 (= MSVC++)
8614 with_gnu_ld=yes
8615 ;;
8616 openbsd*)
8617 with_gnu_ld=no
8618 ;;
8619 esac
d7040cdb 8620
ce2cded5 8621 ld_shlibs=yes
3725885a
RW
8622
8623 # On some targets, GNU ld is compatible enough with the native linker
8624 # that we're better off using the native interface for both.
8625 lt_use_gnu_ld_interface=no
ce2cded5 8626 if test "$with_gnu_ld" = yes; then
3725885a
RW
8627 case $host_os in
8628 aix*)
8629 # The AIX port of GNU ld has always aspired to compatibility
8630 # with the native linker. However, as the warning in the GNU ld
8631 # block says, versions before 2.19.5* couldn't really create working
8632 # shared libraries, regardless of the interface used.
8633 case `$LD -v 2>&1` in
8634 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8635 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8636 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8637 *)
8638 lt_use_gnu_ld_interface=yes
8639 ;;
8640 esac
8641 ;;
8642 *)
8643 lt_use_gnu_ld_interface=yes
8644 ;;
8645 esac
8646 fi
8647
8648 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8649 # If archive_cmds runs LD, not CC, wlarc should be empty
8650 wlarc='${wl}'
d7040cdb 8651
ce2cded5
L
8652 # Set some defaults for GNU ld with shared library support. These
8653 # are reset later if shared libraries are not supported. Putting them
8654 # here allows them to be overridden if necessary.
8655 runpath_var=LD_RUN_PATH
8656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8657 export_dynamic_flag_spec='${wl}--export-dynamic'
8658 # ancient GNU ld didn't support --whole-archive et. al.
8659 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8660 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8661 else
8662 whole_archive_flag_spec=
8663 fi
8664 supports_anon_versioning=no
8665 case `$LD -v 2>&1` in
3725885a 8666 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8667 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8668 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8669 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8670 *\ 2.11.*) ;; # other 2.11 versions
8671 *) supports_anon_versioning=yes ;;
8672 esac
d7040cdb 8673
ce2cded5
L
8674 # See if GNU ld supports shared libraries.
8675 case $host_os in
50e7d84b 8676 aix[3-9]*)
ce2cded5
L
8677 # On AIX/PPC, the GNU linker is very broken
8678 if test "$host_cpu" != ia64; then
8679 ld_shlibs=no
8680 cat <<_LT_EOF 1>&2
d7040cdb 8681
3725885a 8682*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8683*** to be unable to reliably create shared libraries on AIX.
8684*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8685*** really care for shared libraries, you may want to install binutils
8686*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8687*** You will then need to restart the configuration process.
d7040cdb 8688
ce2cded5
L
8689_LT_EOF
8690 fi
8691 ;;
d7040cdb 8692
ce2cded5 8693 amigaos*)
718a6fd8
SE
8694 case $host_cpu in
8695 powerpc)
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8699 ;;
8700 m68k)
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8704 ;;
8705 esac
ce2cded5 8706 ;;
d7040cdb 8707
ce2cded5
L
8708 beos*)
8709 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8710 allow_undefined_flag=unsupported
8711 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8712 # support --undefined. This deserves some investigation. FIXME
8713 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
d7040cdb 8718
718a6fd8 8719 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8720 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8721 # as there is no search path for DLLs.
8722 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8723 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8724 allow_undefined_flag=unsupported
8725 always_export_symbols=no
8726 enable_shared_with_static_runtimes=yes
f2c621e4 8727 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8728
ce2cded5
L
8729 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8731 # If the export-symbols file already is a .def file (1st line
8732 # is EXPORTS), use it as is; otherwise, prepend...
8733 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8734 cp $export_symbols $output_objdir/$soname.def;
8735 else
8736 echo EXPORTS > $output_objdir/$soname.def;
8737 cat $export_symbols >> $output_objdir/$soname.def;
8738 fi~
8739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8740 else
8741 ld_shlibs=no
8742 fi
8743 ;;
d7040cdb 8744
3725885a
RW
8745 haiku*)
8746 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747 link_all_deplibs=yes
8748 ;;
8749
ce2cded5
L
8750 interix[3-9]*)
8751 hardcode_direct=no
8752 hardcode_shlibpath_var=no
8753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8754 export_dynamic_flag_spec='${wl}-E'
8755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8756 # Instead, shared libraries are loaded at an image base (0x10000000 by
8757 # default) and relocated if they conflict, which is a slow very memory
8758 # consuming and fragmenting process. To avoid this, we pick a random,
8759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8762 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'
8763 ;;
d7040cdb 8764
58e24671 8765 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8766 tmp_diet=no
8767 if test "$host_os" = linux-dietlibc; then
8768 case $cc_basename in
8769 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8770 esac
8771 fi
8772 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8773 && test "$tmp_diet" = no
8774 then
6e733cce 8775 tmp_addflag=' $pic_flag'
718a6fd8 8776 tmp_sharedflag='-shared'
ce2cded5
L
8777 case $cc_basename,$host_cpu in
8778 pgcc*) # Portland Group C compiler
3725885a 8779 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
8780 tmp_addflag=' $pic_flag'
8781 ;;
3725885a
RW
8782 pgf77* | pgf90* | pgf95* | pgfortran*)
8783 # Portland Group f77 and f90 compilers
8784 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
8785 tmp_addflag=' $pic_flag -Mnomain' ;;
8786 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8787 tmp_addflag=' -i_dynamic' ;;
8788 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8789 tmp_addflag=' -i_dynamic -nofor_main' ;;
8790 ifc* | ifort*) # Intel Fortran compiler
8791 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8792 lf95*) # Lahey Fortran 8.1
8793 whole_archive_flag_spec=
8794 tmp_sharedflag='--shared' ;;
3725885a 8795 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8796 tmp_sharedflag='-qmkshrobj'
8797 tmp_addflag= ;;
3725885a
RW
8798 nvcc*) # Cuda Compiler Driver 2.2
8799 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'
8800 compiler_needs_object=yes
8801 ;;
ce2cded5
L
8802 esac
8803 case `$CC -V 2>&1 | sed 5q` in
8804 *Sun\ C*) # Sun C 5.9
3725885a 8805 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
8806 compiler_needs_object=yes
8807 tmp_sharedflag='-G' ;;
8808 *Sun\ F*) # Sun Fortran 8.3
8809 tmp_sharedflag='-G' ;;
ce2cded5
L
8810 esac
8811 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8812
ce2cded5
L
8813 if test "x$supports_anon_versioning" = xyes; then
8814 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8816 echo "local: *; };" >> $output_objdir/$libname.ver~
8817 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8818 fi
718a6fd8
SE
8819
8820 case $cc_basename in
3725885a 8821 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8822 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8823 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8824 hardcode_libdir_flag_spec=
8825 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8826 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8827 if test "x$supports_anon_versioning" = xyes; then
8828 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8829 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8830 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8831 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8832 fi
8833 ;;
8834 esac
ce2cded5
L
8835 else
8836 ld_shlibs=no
8837 fi
8838 ;;
d7040cdb 8839
ce2cded5
L
8840 netbsd*)
8841 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8842 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8843 wlarc=
8844 else
f2c621e4
AS
8845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8847 fi
8848 ;;
d7040cdb 8849
ce2cded5
L
8850 solaris*)
8851 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8852 ld_shlibs=no
8853 cat <<_LT_EOF 1>&2
d7040cdb 8854
ce2cded5
L
8855*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8856*** create shared libraries on Solaris systems. Therefore, libtool
8857*** is disabling shared libraries support. We urge you to upgrade GNU
8858*** binutils to release 2.9.1 or newer. Another option is to modify
8859*** your PATH or compiler configuration so that the native linker is
8860*** used, and then restart.
d7040cdb 8861
ce2cded5
L
8862_LT_EOF
8863 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8866 else
8867 ld_shlibs=no
8868 fi
8869 ;;
d7040cdb 8870
ce2cded5
L
8871 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8872 case `$LD -v 2>&1` in
8873 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8874 ld_shlibs=no
8875 cat <<_LT_EOF 1>&2
d7040cdb 8876
ce2cded5
L
8877*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8878*** reliably create shared libraries on SCO systems. Therefore, libtool
8879*** is disabling shared libraries support. We urge you to upgrade GNU
8880*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8881*** your PATH or compiler configuration so that the native linker is
8882*** used, and then restart.
d7040cdb 8883
ce2cded5
L
8884_LT_EOF
8885 ;;
8886 *)
8887 # For security reasons, it is highly recommended that you always
8888 # use absolute paths for naming shared libraries, and exclude the
8889 # DT_RUNPATH tag from executables and libraries. But doing so
8890 # requires that you compile everything twice, which is a pain.
8891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8892 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8895 else
8896 ld_shlibs=no
8897 fi
8898 ;;
8899 esac
8900 ;;
d7040cdb 8901
ce2cded5
L
8902 sunos4*)
8903 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8904 wlarc=
8905 hardcode_direct=yes
8906 hardcode_shlibpath_var=no
8907 ;;
d7040cdb 8908
ce2cded5
L
8909 *)
8910 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8913 else
8914 ld_shlibs=no
8915 fi
8916 ;;
8917 esac
d7040cdb 8918
ce2cded5
L
8919 if test "$ld_shlibs" = no; then
8920 runpath_var=
8921 hardcode_libdir_flag_spec=
8922 export_dynamic_flag_spec=
8923 whole_archive_flag_spec=
8924 fi
8925 else
8926 # PORTME fill in a description of your system's linker (not GNU ld)
8927 case $host_os in
8928 aix3*)
8929 allow_undefined_flag=unsupported
8930 always_export_symbols=yes
8931 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'
8932 # Note: this linker hardcodes the directories in LIBPATH if there
8933 # are no directories specified by -L.
8934 hardcode_minus_L=yes
8935 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8936 # Neither direct hardcoding nor static linking is supported with a
8937 # broken collect2.
8938 hardcode_direct=unsupported
8939 fi
8940 ;;
d7040cdb 8941
50e7d84b 8942 aix[4-9]*)
ce2cded5
L
8943 if test "$host_cpu" = ia64; then
8944 # On IA64, the linker does run time linking by default, so we don't
8945 # have to do anything special.
8946 aix_use_runtimelinking=no
8947 exp_sym_flag='-Bexport'
8948 no_entry_flag=""
8949 else
8950 # If we're using GNU nm, then we don't want the "-C" option.
8951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8952 # Also, AIX nm treats weak defined symbols like other global
8953 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8954 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8955 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 8956 else
5c14705f 8957 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
8958 fi
8959 aix_use_runtimelinking=no
d7040cdb 8960
ce2cded5
L
8961 # Test if we are trying to use run time linking or normal
8962 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8963 # need to do runtime linking.
50e7d84b 8964 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8965 for ld_flag in $LDFLAGS; do
8966 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8967 aix_use_runtimelinking=yes
8968 break
8969 fi
8970 done
8971 ;;
8972 esac
d7040cdb 8973
ce2cded5
L
8974 exp_sym_flag='-bexport'
8975 no_entry_flag='-bnoentry'
8976 fi
d7040cdb 8977
ce2cded5
L
8978 # When large executables or shared objects are built, AIX ld can
8979 # have problems creating the table of contents. If linking a library
8980 # or program results in "error TOC overflow" add -mminimal-toc to
8981 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8982 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8983
ce2cded5
L
8984 archive_cmds=''
8985 hardcode_direct=yes
8986 hardcode_direct_absolute=yes
8987 hardcode_libdir_separator=':'
8988 link_all_deplibs=yes
8989 file_list_spec='${wl}-f,'
d7040cdb 8990
ce2cded5
L
8991 if test "$GCC" = yes; then
8992 case $host_os in aix4.[012]|aix4.[012].*)
8993 # We only want to do this on AIX 4.2 and lower, the check
8994 # below for broken collect2 doesn't work under 4.3+
8995 collect2name=`${CC} -print-prog-name=collect2`
8996 if test -f "$collect2name" &&
8997 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8998 then
8999 # We have reworked collect2
9000 :
9001 else
9002 # We have old collect2
9003 hardcode_direct=unsupported
9004 # It fails to find uninstalled libraries when the uninstalled
9005 # path is not listed in the libpath. Setting hardcode_minus_L
9006 # to unsupported forces relinking
9007 hardcode_minus_L=yes
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 hardcode_libdir_separator=
9010 fi
9011 ;;
9012 esac
9013 shared_flag='-shared'
9014 if test "$aix_use_runtimelinking" = yes; then
9015 shared_flag="$shared_flag "'${wl}-G'
9016 fi
9017 else
9018 # not using gcc
9019 if test "$host_cpu" = ia64; then
9020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9021 # chokes on -Wl,-G. The following line is correct:
9022 shared_flag='-G'
9023 else
9024 if test "$aix_use_runtimelinking" = yes; then
9025 shared_flag='${wl}-G'
9026 else
9027 shared_flag='${wl}-bM:SRE'
9028 fi
9029 fi
9030 fi
d7040cdb 9031
718a6fd8 9032 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9033 # It seems that -bexpall does not export symbols beginning with
9034 # underscore (_), so it is better to generate a list of symbols to export.
9035 always_export_symbols=yes
9036 if test "$aix_use_runtimelinking" = yes; then
9037 # Warning - without using the other runtime loading flags (-brtl),
9038 # -berok will link without error, but may produce a broken library.
9039 allow_undefined_flag='-berok'
9040 # Determine the default libpath from the value encoded in an
9041 # empty executable.
f2c621e4 9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9043/* end confdefs.h. */
d7040cdb 9044
ce2cded5
L
9045int
9046main ()
9047{
d7040cdb 9048
ce2cded5
L
9049 ;
9050 return 0;
9051}
9052_ACEOF
81ecdfbb 9053if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9054
f2c621e4
AS
9055lt_aix_libpath_sed='
9056 /Import File Strings/,/^$/ {
9057 /^0/ {
9058 s/^0 *\(.*\)$/\1/
9059 p
9060 }
9061 }'
9062aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063# Check for a 64-bit object if we didn't find anything.
9064if test -z "$aix_libpath"; then
9065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9066fi
ce2cded5 9067fi
81ecdfbb
RW
9068rm -f core conftest.err conftest.$ac_objext \
9069 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9070if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9071
ce2cded5 9072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9073 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
9074 else
9075 if test "$host_cpu" = ia64; then
9076 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9077 allow_undefined_flag="-z nodefs"
9078 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"
9079 else
9080 # Determine the default libpath from the value encoded in an
9081 # empty executable.
f2c621e4 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9083/* end confdefs.h. */
d7040cdb 9084
ce2cded5
L
9085int
9086main ()
9087{
d7040cdb 9088
ce2cded5
L
9089 ;
9090 return 0;
9091}
9092_ACEOF
81ecdfbb 9093if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9094
f2c621e4
AS
9095lt_aix_libpath_sed='
9096 /Import File Strings/,/^$/ {
9097 /^0/ {
9098 s/^0 *\(.*\)$/\1/
9099 p
9100 }
9101 }'
9102aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9103# Check for a 64-bit object if we didn't find anything.
9104if test -z "$aix_libpath"; then
9105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9106fi
ce2cded5 9107fi
81ecdfbb
RW
9108rm -f core conftest.err conftest.$ac_objext \
9109 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9110if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9111
ce2cded5
L
9112 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9113 # Warning - without using the other run time loading flags,
9114 # -berok will link without error, but may produce a broken library.
9115 no_undefined_flag=' ${wl}-bernotok'
9116 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9117 if test "$with_gnu_ld" = yes; then
9118 # We only use this code for GNU lds that support --whole-archive.
9119 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9120 else
9121 # Exported symbols can be pulled into shared objects from archives
9122 whole_archive_flag_spec='$convenience'
9123 fi
ce2cded5
L
9124 archive_cmds_need_lc=yes
9125 # This is similar to how AIX traditionally builds its shared libraries.
9126 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'
9127 fi
9128 fi
9129 ;;
d7040cdb 9130
ce2cded5 9131 amigaos*)
718a6fd8
SE
9132 case $host_cpu in
9133 powerpc)
9134 # see comment about AmigaOS4 .so support
9135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 archive_expsym_cmds=''
9137 ;;
9138 m68k)
9139 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)'
9140 hardcode_libdir_flag_spec='-L$libdir'
9141 hardcode_minus_L=yes
9142 ;;
9143 esac
ce2cded5 9144 ;;
d7040cdb 9145
ce2cded5
L
9146 bsdi[45]*)
9147 export_dynamic_flag_spec=-rdynamic
9148 ;;
d7040cdb 9149
718a6fd8 9150 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9151 # When not using gcc, we currently assume that we are using
9152 # Microsoft Visual C++.
9153 # hardcode_libdir_flag_spec is actually meaningless, as there is
9154 # no search path for DLLs.
f2c621e4
AS
9155 hardcode_libdir_flag_spec=' '
9156 allow_undefined_flag=unsupported
9157 # Tell ltmain to make .lib files, not .a files.
9158 libext=lib
9159 # Tell ltmain to make .dll files, not .so files.
9160 shrext_cmds=".dll"
9161 # FIXME: Setting linknames here is a bad hack.
9162 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9163 # The linker will automatically build a .lib file if we build a DLL.
9164 old_archive_from_new_cmds='true'
9165 # FIXME: Should let the user specify the lib program.
9166 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9167 fix_srcfile_path='`cygpath -w "$srcfile"`'
9168 enable_shared_with_static_runtimes=yes
ce2cded5 9169 ;;
d7040cdb 9170
ce2cded5 9171 darwin* | rhapsody*)
d7040cdb 9172
718a6fd8
SE
9173
9174 archive_cmds_need_lc=no
9175 hardcode_direct=no
9176 hardcode_automatic=yes
9177 hardcode_shlibpath_var=unsupported
3725885a
RW
9178 if test "$lt_cv_ld_force_load" = "yes"; then
9179 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\"`'
9180 else
9181 whole_archive_flag_spec=''
9182 fi
718a6fd8
SE
9183 link_all_deplibs=yes
9184 allow_undefined_flag="$_lt_dar_allow_undefined"
9185 case $cc_basename in
9186 ifort*) _lt_dar_can_shared=yes ;;
9187 *) _lt_dar_can_shared=$GCC ;;
9188 esac
9189 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9190 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9191 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9192 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9193 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}"
9194 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}"
9195
9196 else
9197 ld_shlibs=no
9198 fi
9199
ce2cded5 9200 ;;
d7040cdb 9201
ce2cded5
L
9202 dgux*)
9203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9204 hardcode_libdir_flag_spec='-L$libdir'
9205 hardcode_shlibpath_var=no
9206 ;;
d7040cdb 9207
ce2cded5
L
9208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9209 # support. Future versions do this automatically, but an explicit c++rt0.o
9210 # does not break anything, and helps significantly (at the cost of a little
9211 # extra space).
9212 freebsd2.2*)
9213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9214 hardcode_libdir_flag_spec='-R$libdir'
9215 hardcode_direct=yes
9216 hardcode_shlibpath_var=no
9217 ;;
d7040cdb 9218
ce2cded5 9219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9220 freebsd2.*)
ce2cded5
L
9221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9222 hardcode_direct=yes
9223 hardcode_minus_L=yes
9224 hardcode_shlibpath_var=no
9225 ;;
d7040cdb 9226
ce2cded5
L
9227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9228 freebsd* | dragonfly*)
f2c621e4 9229 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9230 hardcode_libdir_flag_spec='-R$libdir'
9231 hardcode_direct=yes
9232 hardcode_shlibpath_var=no
9233 ;;
d7040cdb 9234
ce2cded5
L
9235 hpux9*)
9236 if test "$GCC" = yes; then
f2c621e4 9237 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
9238 else
9239 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'
9240 fi
9241 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9242 hardcode_libdir_separator=:
9243 hardcode_direct=yes
d7040cdb 9244
ce2cded5
L
9245 # hardcode_minus_L: Not really in the search PATH,
9246 # but as the default location of the library.
9247 hardcode_minus_L=yes
9248 export_dynamic_flag_spec='${wl}-E'
9249 ;;
d7040cdb 9250
ce2cded5 9251 hpux10*)
3725885a 9252 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9253 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9254 else
9255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9256 fi
9257 if test "$with_gnu_ld" = no; then
9258 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259 hardcode_libdir_flag_spec_ld='+b $libdir'
9260 hardcode_libdir_separator=:
9261 hardcode_direct=yes
9262 hardcode_direct_absolute=yes
9263 export_dynamic_flag_spec='${wl}-E'
9264 # hardcode_minus_L: Not really in the search PATH,
9265 # but as the default location of the library.
9266 hardcode_minus_L=yes
9267 fi
9268 ;;
d7040cdb 9269
ce2cded5 9270 hpux11*)
3725885a 9271 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9272 case $host_cpu in
9273 hppa*64*)
9274 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9275 ;;
9276 ia64*)
f2c621e4 9277 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9278 ;;
9279 *)
f2c621e4 9280 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9281 ;;
9282 esac
9283 else
9284 case $host_cpu in
9285 hppa*64*)
9286 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9287 ;;
9288 ia64*)
9289 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9290 ;;
9291 *)
3725885a
RW
9292
9293 # Older versions of the 11.00 compiler do not understand -b yet
9294 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9296$as_echo_n "checking if $CC understands -b... " >&6; }
9297if test "${lt_cv_prog_compiler__b+set}" = set; then :
9298 $as_echo_n "(cached) " >&6
9299else
9300 lt_cv_prog_compiler__b=no
9301 save_LDFLAGS="$LDFLAGS"
9302 LDFLAGS="$LDFLAGS -b"
9303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9305 # The linker can only warn and ignore the option if not recognized
9306 # So say no if there are warnings
9307 if test -s conftest.err; then
9308 # Append any errors to the config.log.
9309 cat conftest.err 1>&5
9310 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9312 if diff conftest.exp conftest.er2 >/dev/null; then
9313 lt_cv_prog_compiler__b=yes
9314 fi
9315 else
9316 lt_cv_prog_compiler__b=yes
9317 fi
9318 fi
9319 $RM -r conftest*
9320 LDFLAGS="$save_LDFLAGS"
9321
9322fi
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9324$as_echo "$lt_cv_prog_compiler__b" >&6; }
9325
9326if test x"$lt_cv_prog_compiler__b" = xyes; then
9327 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9328else
9329 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9330fi
9331
ce2cded5
L
9332 ;;
9333 esac
9334 fi
9335 if test "$with_gnu_ld" = no; then
9336 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9337 hardcode_libdir_separator=:
d7040cdb 9338
ce2cded5
L
9339 case $host_cpu in
9340 hppa*64*|ia64*)
9341 hardcode_direct=no
9342 hardcode_shlibpath_var=no
9343 ;;
9344 *)
9345 hardcode_direct=yes
9346 hardcode_direct_absolute=yes
9347 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9348
ce2cded5
L
9349 # hardcode_minus_L: Not really in the search PATH,
9350 # but as the default location of the library.
9351 hardcode_minus_L=yes
9352 ;;
9353 esac
9354 fi
9355 ;;
9356
9357 irix5* | irix6* | nonstopux*)
9358 if test "$GCC" = yes; then
f2c621e4 9359 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
9360 # Try to use the -exported_symbol ld option, if it does not
9361 # work, assume that -exports_file does not work either and
9362 # implicitly export all symbols.
f2c621e4
AS
9363 save_LDFLAGS="$LDFLAGS"
9364 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9366/* end confdefs.h. */
f2c621e4 9367int foo(void) {}
ce2cded5 9368_ACEOF
81ecdfbb 9369if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9370 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'
9371
d7040cdb 9372fi
81ecdfbb
RW
9373rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9375 LDFLAGS="$save_LDFLAGS"
ce2cded5 9376 else
3725885a
RW
9377 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'
9378 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
9379 fi
9380 archive_cmds_need_lc='no'
9381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382 hardcode_libdir_separator=:
9383 inherit_rpath=yes
9384 link_all_deplibs=yes
9385 ;;
d7040cdb 9386
ce2cded5
L
9387 netbsd*)
9388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9390 else
9391 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9392 fi
9393 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_direct=yes
9395 hardcode_shlibpath_var=no
9396 ;;
d7040cdb 9397
ce2cded5
L
9398 newsos6)
9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9400 hardcode_direct=yes
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402 hardcode_libdir_separator=:
9403 hardcode_shlibpath_var=no
9404 ;;
d7040cdb 9405
ce2cded5
L
9406 *nto* | *qnx*)
9407 ;;
d7040cdb 9408
ce2cded5 9409 openbsd*)
718a6fd8
SE
9410 if test -f /usr/libexec/ld.so; then
9411 hardcode_direct=yes
9412 hardcode_shlibpath_var=no
9413 hardcode_direct_absolute=yes
9414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9416 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9417 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9418 export_dynamic_flag_spec='${wl}-E'
9419 else
9420 case $host_os in
9421 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_libdir_flag_spec='-R$libdir'
9424 ;;
9425 *)
9426 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9428 ;;
9429 esac
9430 fi
9431 else
9432 ld_shlibs=no
d7040cdb
SE
9433 fi
9434 ;;
d7040cdb 9435
ce2cded5
L
9436 os2*)
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9439 allow_undefined_flag=unsupported
3725885a 9440 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
9441 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9442 ;;
d7040cdb 9443
ce2cded5
L
9444 osf3*)
9445 if test "$GCC" = yes; then
9446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9447 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
9448 else
9449 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9450 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
9451 fi
9452 archive_cmds_need_lc='no'
9453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454 hardcode_libdir_separator=:
9455 ;;
d7040cdb 9456
ce2cded5
L
9457 osf4* | osf5*) # as osf3* with the addition of -msym flag
9458 if test "$GCC" = yes; then
9459 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9460 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
9461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9462 else
9463 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9464 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 9465 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 9466 $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 9467
ce2cded5
L
9468 # Both c and cxx compiler support -rpath directly
9469 hardcode_libdir_flag_spec='-rpath $libdir'
9470 fi
9471 archive_cmds_need_lc='no'
9472 hardcode_libdir_separator=:
9473 ;;
d7040cdb 9474
ce2cded5
L
9475 solaris*)
9476 no_undefined_flag=' -z defs'
9477 if test "$GCC" = yes; then
9478 wlarc='${wl}'
f2c621e4 9479 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9481 $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
9482 else
9483 case `$CC -V 2>&1` in
9484 *"Compilers 5.0"*)
9485 wlarc=''
9486 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9488 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9489 ;;
9490 *)
9491 wlarc='${wl}'
9492 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9494 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9495 ;;
9496 esac
9497 fi
9498 hardcode_libdir_flag_spec='-R$libdir'
9499 hardcode_shlibpath_var=no
9500 case $host_os in
9501 solaris2.[0-5] | solaris2.[0-5].*) ;;
9502 *)
9503 # The compiler driver will combine and reorder linker options,
9504 # but understands `-z linker_flag'. GCC discards it without `$wl',
9505 # but is careful enough not to reorder.
9506 # Supported since Solaris 2.6 (maybe 2.5.1?)
9507 if test "$GCC" = yes; then
9508 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9509 else
9510 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9511 fi
9512 ;;
9513 esac
9514 link_all_deplibs=yes
d7040cdb 9515 ;;
ce2cded5
L
9516
9517 sunos4*)
9518 if test "x$host_vendor" = xsequent; then
9519 # Use $CC to link under sequent, because it throws in some extra .o
9520 # files that make .init and .fini sections work.
9521 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9522 else
ce2cded5 9523 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9524 fi
ce2cded5
L
9525 hardcode_libdir_flag_spec='-L$libdir'
9526 hardcode_direct=yes
9527 hardcode_minus_L=yes
9528 hardcode_shlibpath_var=no
d7040cdb 9529 ;;
ce2cded5
L
9530
9531 sysv4)
9532 case $host_vendor in
9533 sni)
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=yes # is this really true???
9536 ;;
9537 siemens)
9538 ## LD is ld it makes a PLAMLIB
9539 ## CC just makes a GrossModule.
9540 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9541 reload_cmds='$CC -r -o $output$reload_objs'
9542 hardcode_direct=no
9543 ;;
9544 motorola)
9545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9546 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9547 ;;
9548 esac
9549 runpath_var='LD_RUN_PATH'
9550 hardcode_shlibpath_var=no
d7040cdb 9551 ;;
d7040cdb 9552
ce2cded5
L
9553 sysv4.3*)
9554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9555 hardcode_shlibpath_var=no
9556 export_dynamic_flag_spec='-Bexport'
9557 ;;
d7040cdb 9558
ce2cded5
L
9559 sysv4*MP*)
9560 if test -d /usr/nec; then
9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_shlibpath_var=no
9563 runpath_var=LD_RUN_PATH
9564 hardcode_runpath_var=yes
9565 ld_shlibs=yes
9566 fi
9567 ;;
d7040cdb 9568
ce2cded5
L
9569 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9570 no_undefined_flag='${wl}-z,text'
9571 archive_cmds_need_lc=no
9572 hardcode_shlibpath_var=no
9573 runpath_var='LD_RUN_PATH'
d7040cdb 9574
ce2cded5
L
9575 if test "$GCC" = yes; then
9576 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9578 else
9579 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581 fi
9582 ;;
d7040cdb 9583
ce2cded5
L
9584 sysv5* | sco3.2v5* | sco5v6*)
9585 # Note: We can NOT use -z defs as we might desire, because we do not
9586 # link with -lc, and that would cause any symbols used from libc to
9587 # always be unresolved, which means just about no library would
9588 # ever link correctly. If we're not using GNU ld we use -z text
9589 # though, which does catch some bad symbols but isn't as heavy-handed
9590 # as -z defs.
9591 no_undefined_flag='${wl}-z,text'
9592 allow_undefined_flag='${wl}-z,nodefs'
9593 archive_cmds_need_lc=no
9594 hardcode_shlibpath_var=no
9595 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9596 hardcode_libdir_separator=':'
9597 link_all_deplibs=yes
9598 export_dynamic_flag_spec='${wl}-Bexport'
9599 runpath_var='LD_RUN_PATH'
d7040cdb 9600
ce2cded5
L
9601 if test "$GCC" = yes; then
9602 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 else
9605 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 fi
d7040cdb 9608 ;;
d7040cdb 9609
ce2cded5
L
9610 uts4*)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_shlibpath_var=no
9614 ;;
d7040cdb 9615
ce2cded5
L
9616 *)
9617 ld_shlibs=no
9618 ;;
9619 esac
9620
9621 if test x$host_vendor = xsni; then
9622 case $host in
9623 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9624 export_dynamic_flag_spec='${wl}-Blargedynsym'
9625 ;;
9626 esac
d7040cdb 9627 fi
ce2cded5 9628 fi
d7040cdb 9629
81ecdfbb
RW
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9631$as_echo "$ld_shlibs" >&6; }
ce2cded5 9632test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9633
ce2cded5 9634with_gnu_ld=$with_gnu_ld
d7040cdb 9635
d7040cdb 9636
d7040cdb 9637
d7040cdb 9638
d7040cdb 9639
d7040cdb 9640
d7040cdb 9641
d7040cdb 9642
d7040cdb 9643
d7040cdb 9644
d7040cdb 9645
d7040cdb 9646
d7040cdb 9647
d7040cdb 9648
d7040cdb 9649
ce2cded5
L
9650#
9651# Do we need to explicitly link libc?
9652#
9653case "x$archive_cmds_need_lc" in
9654x|xyes)
9655 # Assume -lc should be added
9656 archive_cmds_need_lc=yes
d7040cdb 9657
ce2cded5
L
9658 if test "$enable_shared" = yes && test "$GCC" = yes; then
9659 case $archive_cmds in
9660 *'~'*)
9661 # FIXME: we may have to deal with multi-command sequences.
9662 ;;
9663 '$CC '*)
9664 # Test whether the compiler implicitly links with -lc since on some
9665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9666 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9668$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9669if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9670 $as_echo_n "(cached) " >&6
39144654
RW
9671else
9672 $RM conftest*
9673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9674
81ecdfbb 9675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9676 (eval $ac_compile) 2>&5
9677 ac_status=$?
81ecdfbb
RW
9678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9679 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9680 soname=conftest
9681 lib=conftest
9682 libobjs=conftest.$ac_objext
9683 deplibs=
9684 wl=$lt_prog_compiler_wl
9685 pic_flag=$lt_prog_compiler_pic
9686 compiler_flags=-v
9687 linker_flags=-v
9688 verstring=
9689 output_objdir=.
9690 libname=conftest
9691 lt_save_allow_undefined_flag=$allow_undefined_flag
9692 allow_undefined_flag=
81ecdfbb 9693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9694 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9695 ac_status=$?
81ecdfbb
RW
9696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9697 test $ac_status = 0; }
39144654
RW
9698 then
9699 lt_cv_archive_cmds_need_lc=no
9700 else
9701 lt_cv_archive_cmds_need_lc=yes
9702 fi
9703 allow_undefined_flag=$lt_save_allow_undefined_flag
9704 else
9705 cat conftest.err 1>&5
9706 fi
9707 $RM conftest*
9708
9709fi
81ecdfbb
RW
9710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9711$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9712 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9713 ;;
9714 esac
d7040cdb 9715 fi
d7040cdb 9716 ;;
ce2cded5 9717esac
d7040cdb 9718
d7040cdb 9719
d7040cdb 9720
d7040cdb 9721
d7040cdb 9722
d7040cdb 9723
d7040cdb 9724
d7040cdb
SE
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
d7040cdb 9812
d7040cdb 9813
d7040cdb
SE
9814
9815
9816
9817
9818
9819
d7040cdb 9820
d7040cdb 9821
d7040cdb 9822
d7040cdb 9823
d7040cdb 9824
d7040cdb 9825
d7040cdb 9826
d7040cdb 9827
d7040cdb 9828
d7040cdb 9829
d7040cdb 9830
d7040cdb 9831
d7040cdb 9832
d7040cdb 9833
d7040cdb 9834
d7040cdb 9835
d7040cdb 9836
d7040cdb 9837
d7040cdb 9838
d7040cdb 9839
d7040cdb 9840
d7040cdb 9841
d7040cdb 9842
ce2cded5
L
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
81ecdfbb
RW
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9876$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9877
9878if test "$GCC" = yes; then
ce2cded5
L
9879 case $host_os in
9880 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9881 *) lt_awk_arg="/^libraries:/" ;;
9882 esac
3725885a
RW
9883 case $host_os in
9884 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9885 *) lt_sed_strip_eq="s,=/,/,g" ;;
9886 esac
9887 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9888 case $lt_search_path_spec in
9889 *\;*)
ce2cded5
L
9890 # if the path contains ";" then we assume it to be the separator
9891 # otherwise default to the standard path separator (i.e. ":") - it is
9892 # assumed that no part of a normal pathname contains ";" but that should
9893 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9895 ;;
9896 *)
9897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9898 ;;
9899 esac
ce2cded5
L
9900 # Ok, now we have the path, separated by spaces, we can step through it
9901 # and add multilib dir if necessary.
9902 lt_tmp_lt_search_path_spec=
9903 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9904 for lt_sys_path in $lt_search_path_spec; do
9905 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9906 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9907 else
9908 test -d "$lt_sys_path" && \
9909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9910 fi
9911 done
3725885a 9912 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9913BEGIN {RS=" "; FS="/|\n";} {
9914 lt_foo="";
9915 lt_count=0;
9916 for (lt_i = NF; lt_i > 0; lt_i--) {
9917 if ($lt_i != "" && $lt_i != ".") {
9918 if ($lt_i == "..") {
9919 lt_count++;
9920 } else {
9921 if (lt_count == 0) {
9922 lt_foo="/" $lt_i lt_foo;
9923 } else {
9924 lt_count--;
9925 }
9926 }
9927 }
9928 }
9929 if (lt_foo != "") { lt_freq[lt_foo]++; }
9930 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9931}'`
3725885a
RW
9932 # AWK program above erroneously prepends '/' to C:/dos/paths
9933 # for these hosts.
9934 case $host_os in
9935 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9936 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9937 esac
9938 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 9939else
ce2cded5
L
9940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9941fi
9942library_names_spec=
9943libname_spec='lib$name'
9944soname_spec=
9945shrext_cmds=".so"
9946postinstall_cmds=
9947postuninstall_cmds=
9948finish_cmds=
9949finish_eval=
9950shlibpath_var=
9951shlibpath_overrides_runpath=unknown
9952version_type=none
9953dynamic_linker="$host_os ld.so"
9954sys_lib_dlsearch_path_spec="/lib /usr/lib"
9955need_lib_prefix=unknown
9956hardcode_into_libs=no
9957
9958# when you set need_version to no, make sure it does not cause -set_version
9959# flags to be left without arguments
9960need_version=unknown
9961
9962case $host_os in
9963aix3*)
9964 version_type=linux
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9966 shlibpath_var=LIBPATH
9967
9968 # AIX 3 has no versioning support, so we append a major version to the name.
9969 soname_spec='${libname}${release}${shared_ext}$major'
9970 ;;
9971
50e7d84b 9972aix[4-9]*)
ce2cded5
L
9973 version_type=linux
9974 need_lib_prefix=no
9975 need_version=no
9976 hardcode_into_libs=yes
9977 if test "$host_cpu" = ia64; then
9978 # AIX 5 supports IA64
9979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9980 shlibpath_var=LD_LIBRARY_PATH
9981 else
9982 # With GCC up to 2.95.x, collect2 would create an import file
9983 # for dependence libraries. The import file would start with
9984 # the line `#! .'. This would cause the generated library to
9985 # depend on `.', always an invalid library. This was fixed in
9986 # development snapshots of GCC prior to 3.0.
9987 case $host_os in
9988 aix4 | aix4.[01] | aix4.[01].*)
9989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9990 echo ' yes '
9991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9992 :
9993 else
9994 can_build_shared=no
9995 fi
9996 ;;
9997 esac
9998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9999 # soname into executable. Probably we can add versioning support to
10000 # collect2, so additional links can be useful in future.
10001 if test "$aix_use_runtimelinking" = yes; then
10002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10003 # instead of lib<name>.a to let people know that these are not
10004 # typical AIX shared libraries.
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006 else
10007 # We preserve .a as extension for shared libraries through AIX4.2
10008 # and later when we are not doing run time linking.
10009 library_names_spec='${libname}${release}.a $libname.a'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 fi
10012 shlibpath_var=LIBPATH
10013 fi
10014 ;;
10015
10016amigaos*)
718a6fd8
SE
10017 case $host_cpu in
10018 powerpc)
10019 # Since July 2007 AmigaOS4 officially supports .so libraries.
10020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 ;;
10023 m68k)
ce2cded5
L
10024 library_names_spec='$libname.ixlibrary $libname.a'
10025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10026 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
10027 ;;
10028 esac
ce2cded5
L
10029 ;;
10030
10031beos*)
10032 library_names_spec='${libname}${shared_ext}'
10033 dynamic_linker="$host_os ld.so"
10034 shlibpath_var=LIBRARY_PATH
10035 ;;
10036
10037bsdi[45]*)
10038 version_type=linux
10039 need_version=no
10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10041 soname_spec='${libname}${release}${shared_ext}$major'
10042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10046 # the default ld.so.conf also contains /usr/contrib/lib and
10047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10048 # libtool to hard-code these into programs
10049 ;;
10050
718a6fd8 10051cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10052 version_type=windows
10053 shrext_cmds=".dll"
10054 need_version=no
10055 need_lib_prefix=no
10056
f2c621e4
AS
10057 case $GCC,$host_os in
10058 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10059 library_names_spec='$libname.dll.a'
10060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10061 postinstall_cmds='base_file=`basename \${file}`~
10062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10063 dldir=$destdir/`dirname \$dlpath`~
10064 test -d \$dldir || mkdir -p \$dldir~
10065 $install_prog $dir/$dlname \$dldir/$dlname~
10066 chmod a+x \$dldir/$dlname~
10067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10069 fi'
10070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10071 dlpath=$dir/\$dldll~
10072 $RM \$dlpath'
10073 shlibpath_overrides_runpath=yes
10074
10075 case $host_os in
10076 cygwin*)
10077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10079
10080 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10081 ;;
718a6fd8 10082 mingw* | cegcc*)
ce2cded5
L
10083 # MinGW DLLs use traditional 'lib' prefix
10084 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10085 ;;
10086 pw32*)
10087 # pw32 DLLs use 'pw' prefix rather than 'lib'
10088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10089 ;;
10090 esac
10091 ;;
10092
10093 *)
10094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10095 ;;
10096 esac
f2c621e4 10097 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10098 # FIXME: first we should search . and the directory the executable is in
10099 shlibpath_var=PATH
10100 ;;
10101
10102darwin* | rhapsody*)
10103 dynamic_linker="$host_os dyld"
10104 version_type=darwin
10105 need_lib_prefix=no
10106 need_version=no
10107 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10108 soname_spec='${libname}${release}${major}$shared_ext'
10109 shlibpath_overrides_runpath=yes
10110 shlibpath_var=DYLD_LIBRARY_PATH
10111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10112
10113 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10115 ;;
10116
10117dgux*)
10118 version_type=linux
10119 need_lib_prefix=no
10120 need_version=no
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 shlibpath_var=LD_LIBRARY_PATH
10124 ;;
10125
ce2cded5
L
10126freebsd* | dragonfly*)
10127 # DragonFly does not have aout. When/if they implement a new
10128 # versioning mechanism, adjust this.
10129 if test -x /usr/bin/objformat; then
10130 objformat=`/usr/bin/objformat`
10131 else
10132 case $host_os in
6d2920c8 10133 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10134 *) objformat=elf ;;
10135 esac
10136 fi
10137 version_type=freebsd-$objformat
10138 case $version_type in
10139 freebsd-elf*)
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10141 need_version=no
10142 need_lib_prefix=no
10143 ;;
10144 freebsd-*)
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10146 need_version=yes
10147 ;;
10148 esac
10149 shlibpath_var=LD_LIBRARY_PATH
10150 case $host_os in
6d2920c8 10151 freebsd2.*)
ce2cded5
L
10152 shlibpath_overrides_runpath=yes
10153 ;;
10154 freebsd3.[01]* | freebsdelf3.[01]*)
10155 shlibpath_overrides_runpath=yes
10156 hardcode_into_libs=yes
10157 ;;
10158 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10159 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10162 ;;
10163 *) # from 4.6 on, and DragonFly
10164 shlibpath_overrides_runpath=yes
10165 hardcode_into_libs=yes
10166 ;;
10167 esac
10168 ;;
10169
10170gnu*)
10171 version_type=linux
10172 need_lib_prefix=no
10173 need_version=no
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 hardcode_into_libs=yes
10178 ;;
10179
3725885a
RW
10180haiku*)
10181 version_type=linux
10182 need_lib_prefix=no
10183 need_version=no
10184 dynamic_linker="$host_os runtime_loader"
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10187 shlibpath_var=LIBRARY_PATH
10188 shlibpath_overrides_runpath=yes
f2c621e4 10189 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10190 hardcode_into_libs=yes
10191 ;;
10192
ce2cded5
L
10193hpux9* | hpux10* | hpux11*)
10194 # Give a soname corresponding to the major version so that dld.sl refuses to
10195 # link against other versions.
10196 version_type=sunos
10197 need_lib_prefix=no
10198 need_version=no
10199 case $host_cpu in
10200 ia64*)
10201 shrext_cmds='.so'
10202 hardcode_into_libs=yes
10203 dynamic_linker="$host_os dld.so"
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 if test "X$HPUX_IA64_MODE" = X32; then
10209 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10210 else
10211 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10212 fi
10213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214 ;;
10215 hppa*64*)
10216 shrext_cmds='.sl'
10217 hardcode_into_libs=yes
10218 dynamic_linker="$host_os dld.sl"
10219 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10225 ;;
10226 *)
10227 shrext_cmds='.sl'
10228 dynamic_linker="$host_os dld.sl"
10229 shlibpath_var=SHLIB_PATH
10230 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 ;;
10234 esac
3725885a 10235 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10236 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10237 # or fails outright, so override atomically:
10238 install_override_mode=555
ce2cded5
L
10239 ;;
10240
10241interix[3-9]*)
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=no
10250 hardcode_into_libs=yes
10251 ;;
10252
10253irix5* | irix6* | nonstopux*)
10254 case $host_os in
10255 nonstopux*) version_type=nonstopux ;;
10256 *)
10257 if test "$lt_cv_prog_gnu_ld" = yes; then
10258 version_type=linux
10259 else
10260 version_type=irix
10261 fi ;;
10262 esac
10263 need_lib_prefix=no
10264 need_version=no
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10267 case $host_os in
10268 irix5* | nonstopux*)
10269 libsuff= shlibsuff=
10270 ;;
10271 *)
10272 case $LD in # libtool.m4 will add one of these switches to LD
10273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10274 libsuff= shlibsuff= libmagic=32-bit;;
10275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10276 libsuff=32 shlibsuff=N32 libmagic=N32;;
10277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10279 *) libsuff= shlibsuff= libmagic=never-match;;
10280 esac
10281 ;;
10282 esac
10283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10284 shlibpath_overrides_runpath=no
10285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10287 hardcode_into_libs=yes
10288 ;;
d7040cdb 10289
ce2cded5
L
10290# No shared lib support for Linux oldld, aout, or coff.
10291linux*oldld* | linux*aout* | linux*coff*)
10292 dynamic_linker=no
10293 ;;
10294
10295# This must be Linux ELF.
58e24671 10296linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10297 version_type=linux
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10303 shlibpath_var=LD_LIBRARY_PATH
10304 shlibpath_overrides_runpath=no
39144654 10305
ce2cded5 10306 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10307 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10308 $as_echo_n "(cached) " >&6
39144654
RW
10309else
10310 lt_cv_shlibpath_overrides_runpath=no
10311 save_LDFLAGS=$LDFLAGS
10312 save_libdir=$libdir
10313 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10314 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10316/* end confdefs.h. */
10317
d7040cdb
SE
10318int
10319main ()
10320{
ce2cded5 10321
d7040cdb
SE
10322 ;
10323 return 0;
10324}
10325_ACEOF
81ecdfbb
RW
10326if ac_fn_c_try_link "$LINENO"; then :
10327 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10328 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10329fi
ce2cded5 10330fi
81ecdfbb
RW
10331rm -f core conftest.err conftest.$ac_objext \
10332 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10333 LDFLAGS=$save_LDFLAGS
10334 libdir=$save_libdir
10335
10336fi
10337
10338 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10339
10340 # This implies no fast_install, which is unacceptable.
10341 # Some rework will be needed to allow for fast_install
10342 # before this can be enabled.
10343 hardcode_into_libs=yes
10344
10345 # Append ld.so.conf contents to the search path
10346 if test -f /etc/ld.so.conf; then
3725885a 10347 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 10348 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10349 fi
10350
10351 # We used to test for /lib/ld.so.1 and disable shared libraries on
10352 # powerpc, because MkLinux only supported shared libraries with the
10353 # GNU dynamic linker. Since this was broken with cross compilers,
10354 # most powerpc-linux boxes support dynamic linking these days and
10355 # people can always --disable-shared, the test was removed, and we
10356 # assume the GNU/Linux dynamic linker is in use.
10357 dynamic_linker='GNU/Linux ld.so'
10358 ;;
10359
10360netbsd*)
10361 version_type=sunos
10362 need_lib_prefix=no
10363 need_version=no
10364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10367 dynamic_linker='NetBSD (a.out) ld.so'
10368 else
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='NetBSD ld.elf_so'
10372 fi
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=yes
10375 hardcode_into_libs=yes
10376 ;;
10377
10378newsos6)
10379 version_type=linux
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=yes
10383 ;;
10384
10385*nto* | *qnx*)
10386 version_type=qnx
10387 need_lib_prefix=no
10388 need_version=no
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=no
10393 hardcode_into_libs=yes
10394 dynamic_linker='ldqnx.so'
10395 ;;
10396
10397openbsd*)
10398 version_type=sunos
10399 sys_lib_dlsearch_path_spec="/usr/lib"
10400 need_lib_prefix=no
10401 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10402 case $host_os in
10403 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10404 *) need_version=no ;;
10405 esac
10406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10408 shlibpath_var=LD_LIBRARY_PATH
10409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10410 case $host_os in
10411 openbsd2.[89] | openbsd2.[89].*)
10412 shlibpath_overrides_runpath=no
10413 ;;
10414 *)
10415 shlibpath_overrides_runpath=yes
10416 ;;
10417 esac
10418 else
10419 shlibpath_overrides_runpath=yes
10420 fi
10421 ;;
10422
10423os2*)
10424 libname_spec='$name'
10425 shrext_cmds=".dll"
10426 need_lib_prefix=no
10427 library_names_spec='$libname${shared_ext} $libname.a'
10428 dynamic_linker='OS/2 ld.exe'
10429 shlibpath_var=LIBPATH
10430 ;;
10431
10432osf3* | osf4* | osf5*)
10433 version_type=osf
10434 need_lib_prefix=no
10435 need_version=no
10436 soname_spec='${libname}${release}${shared_ext}$major'
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10440 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10441 ;;
10442
10443rdos*)
10444 dynamic_linker=no
10445 ;;
10446
10447solaris*)
10448 version_type=linux
10449 need_lib_prefix=no
10450 need_version=no
10451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452 soname_spec='${libname}${release}${shared_ext}$major'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=yes
10455 hardcode_into_libs=yes
10456 # ldd complains unless libraries are executable
10457 postinstall_cmds='chmod +x $lib'
10458 ;;
10459
10460sunos4*)
10461 version_type=sunos
10462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10464 shlibpath_var=LD_LIBRARY_PATH
10465 shlibpath_overrides_runpath=yes
10466 if test "$with_gnu_ld" = yes; then
10467 need_lib_prefix=no
10468 fi
10469 need_version=yes
10470 ;;
10471
10472sysv4 | sysv4.3*)
10473 version_type=linux
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 case $host_vendor in
10478 sni)
10479 shlibpath_overrides_runpath=no
10480 need_lib_prefix=no
10481 runpath_var=LD_RUN_PATH
10482 ;;
10483 siemens)
10484 need_lib_prefix=no
10485 ;;
10486 motorola)
10487 need_lib_prefix=no
10488 need_version=no
10489 shlibpath_overrides_runpath=no
10490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10491 ;;
10492 esac
10493 ;;
10494
10495sysv4*MP*)
10496 if test -d /usr/nec ;then
10497 version_type=linux
10498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10499 soname_spec='$libname${shared_ext}.$major'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 fi
10502 ;;
10503
10504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10505 version_type=freebsd-elf
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10512 hardcode_into_libs=yes
10513 if test "$with_gnu_ld" = yes; then
10514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10515 else
10516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10517 case $host_os in
10518 sco3.2v5*)
10519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10520 ;;
10521 esac
10522 fi
10523 sys_lib_dlsearch_path_spec='/usr/lib'
10524 ;;
10525
10526tpf*)
10527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
718a6fd8 10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10535 ;;
d7040cdb 10536
ce2cded5
L
10537uts4*)
10538 version_type=linux
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 soname_spec='${libname}${release}${shared_ext}$major'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 ;;
d7040cdb 10543
ce2cded5
L
10544*)
10545 dynamic_linker=no
10546 ;;
10547esac
81ecdfbb
RW
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10549$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10550test "$dynamic_linker" = no && can_build_shared=no
10551
10552variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10553if test "$GCC" = yes; then
10554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10555fi
d7040cdb 10556
718a6fd8
SE
10557if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10559fi
10560if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10561 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10562fi
10563
d7040cdb 10564
d7040cdb
SE
10565
10566
d7040cdb
SE
10567
10568
d7040cdb
SE
10569
10570
d7040cdb
SE
10571
10572
d7040cdb
SE
10573
10574
d7040cdb 10575
d7040cdb 10576
d7040cdb 10577
d7040cdb 10578
d7040cdb 10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb 10585
d7040cdb 10586
d7040cdb 10587
d7040cdb 10588
d7040cdb
SE
10589
10590
d7040cdb 10591
d7040cdb 10592
d7040cdb 10593
d7040cdb 10594
d7040cdb 10595
d7040cdb 10596
d7040cdb 10597
d7040cdb 10598
d7040cdb 10599
d7040cdb
SE
10600
10601
d7040cdb 10602
d7040cdb 10603
d7040cdb 10604
d7040cdb
SE
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
d7040cdb
SE
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
d7040cdb 10634
d7040cdb 10635
d7040cdb 10636
d7040cdb 10637
d7040cdb
SE
10638
10639
10640
10641
ce2cded5
L
10642
10643
3725885a
RW
10644
10645
10646
10647
10648
ce2cded5
L
10649
10650
10651
10652
10653
10654
81ecdfbb
RW
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10656$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10657hardcode_action=
10658if test -n "$hardcode_libdir_flag_spec" ||
10659 test -n "$runpath_var" ||
10660 test "X$hardcode_automatic" = "Xyes" ; then
10661
10662 # We can hardcode non-existent directories.
10663 if test "$hardcode_direct" != no &&
10664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10665 # have to relink, otherwise we might link with an installed library
10666 # when we should be linking with a yet-to-be-installed one
10667 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10668 test "$hardcode_minus_L" != no; then
10669 # Linking always hardcodes the temporary library directory.
10670 hardcode_action=relink
10671 else
10672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10673 hardcode_action=immediate
10674 fi
10675else
10676 # We cannot hardcode anything, or else we can only hardcode existing
10677 # directories.
10678 hardcode_action=unsupported
10679fi
81ecdfbb
RW
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10681$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10682
10683if test "$hardcode_action" = relink ||
10684 test "$inherit_rpath" = yes; then
10685 # Fast installation is not supported
10686 enable_fast_install=no
10687elif test "$shlibpath_overrides_runpath" = yes ||
10688 test "$enable_shared" = no; then
10689 # Fast installation is not necessary
10690 enable_fast_install=needless
d7040cdb 10691fi
d7040cdb 10692
d7040cdb
SE
10693
10694
10695
10696
10697
ce2cded5
L
10698 if test "x$enable_dlopen" != xyes; then
10699 enable_dlopen=unknown
10700 enable_dlopen_self=unknown
10701 enable_dlopen_self_static=unknown
10702else
10703 lt_cv_dlopen=no
10704 lt_cv_dlopen_libs=
10705
10706 case $host_os in
10707 beos*)
10708 lt_cv_dlopen="load_add_on"
10709 lt_cv_dlopen_libs=
10710 lt_cv_dlopen_self=yes
10711 ;;
d7040cdb 10712
718a6fd8 10713 mingw* | pw32* | cegcc*)
ce2cded5
L
10714 lt_cv_dlopen="LoadLibrary"
10715 lt_cv_dlopen_libs=
10716 ;;
d7040cdb 10717
ce2cded5
L
10718 cygwin*)
10719 lt_cv_dlopen="dlopen"
10720 lt_cv_dlopen_libs=
10721 ;;
d7040cdb 10722
ce2cded5
L
10723 darwin*)
10724 # if libdl is installed we need to link against it
81ecdfbb
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10726$as_echo_n "checking for dlopen in -ldl... " >&6; }
10727if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
ce2cded5
L
10729else
10730 ac_check_lib_save_LIBS=$LIBS
10731LIBS="-ldl $LIBS"
81ecdfbb 10732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10733/* end confdefs.h. */
d7040cdb 10734
81ecdfbb
RW
10735/* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
ce2cded5
L
10738#ifdef __cplusplus
10739extern "C"
10740#endif
ce2cded5
L
10741char dlopen ();
10742int
10743main ()
10744{
81ecdfbb 10745return dlopen ();
ce2cded5
L
10746 ;
10747 return 0;
10748}
10749_ACEOF
81ecdfbb 10750if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10751 ac_cv_lib_dl_dlopen=yes
10752else
81ecdfbb 10753 ac_cv_lib_dl_dlopen=no
ce2cded5 10754fi
81ecdfbb
RW
10755rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10757LIBS=$ac_check_lib_save_LIBS
10758fi
81ecdfbb
RW
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10760$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10761if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10763else
d7040cdb 10764
ce2cded5
L
10765 lt_cv_dlopen="dyld"
10766 lt_cv_dlopen_libs=
10767 lt_cv_dlopen_self=yes
d7040cdb 10768
ce2cded5 10769fi
d7040cdb 10770
ce2cded5 10771 ;;
d7040cdb 10772
ce2cded5 10773 *)
81ecdfbb
RW
10774 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10775if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10776 lt_cv_dlopen="shl_load"
10777else
81ecdfbb
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10779$as_echo_n "checking for shl_load in -ldld... " >&6; }
10780if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
ce2cded5
L
10782else
10783 ac_check_lib_save_LIBS=$LIBS
10784LIBS="-ldld $LIBS"
81ecdfbb 10785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10786/* end confdefs.h. */
d7040cdb 10787
81ecdfbb
RW
10788/* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
ce2cded5
L
10791#ifdef __cplusplus
10792extern "C"
10793#endif
ce2cded5
L
10794char shl_load ();
10795int
10796main ()
10797{
81ecdfbb 10798return shl_load ();
ce2cded5
L
10799 ;
10800 return 0;
10801}
d7040cdb 10802_ACEOF
81ecdfbb 10803if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10804 ac_cv_lib_dld_shl_load=yes
10805else
81ecdfbb 10806 ac_cv_lib_dld_shl_load=no
d7040cdb 10807fi
81ecdfbb
RW
10808rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10810LIBS=$ac_check_lib_save_LIBS
10811fi
81ecdfbb
RW
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10813$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10814if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10815 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10816else
81ecdfbb
RW
10817 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10818if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10819 lt_cv_dlopen="dlopen"
10820else
81ecdfbb
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10822$as_echo_n "checking for dlopen in -ldl... " >&6; }
10823if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
d7040cdb 10825else
ce2cded5
L
10826 ac_check_lib_save_LIBS=$LIBS
10827LIBS="-ldl $LIBS"
81ecdfbb 10828cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10829/* end confdefs.h. */
d7040cdb 10830
81ecdfbb
RW
10831/* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
ce2cded5
L
10834#ifdef __cplusplus
10835extern "C"
10836#endif
ce2cded5 10837char dlopen ();
d7040cdb
SE
10838int
10839main ()
10840{
81ecdfbb 10841return dlopen ();
d7040cdb
SE
10842 ;
10843 return 0;
10844}
10845_ACEOF
81ecdfbb 10846if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10847 ac_cv_lib_dl_dlopen=yes
10848else
81ecdfbb 10849 ac_cv_lib_dl_dlopen=no
ce2cded5 10850fi
81ecdfbb
RW
10851rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10853LIBS=$ac_check_lib_save_LIBS
10854fi
81ecdfbb
RW
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10856$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10857if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10859else
81ecdfbb
RW
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10861$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10862if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
ce2cded5
L
10864else
10865 ac_check_lib_save_LIBS=$LIBS
10866LIBS="-lsvld $LIBS"
81ecdfbb 10867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10868/* end confdefs.h. */
d7040cdb 10869
81ecdfbb
RW
10870/* Override any GCC internal prototype to avoid an error.
10871 Use char because int might match the return type of a GCC
10872 builtin and then its argument prototype would still apply. */
ce2cded5
L
10873#ifdef __cplusplus
10874extern "C"
10875#endif
ce2cded5 10876char dlopen ();
d7040cdb
SE
10877int
10878main ()
10879{
81ecdfbb 10880return dlopen ();
d7040cdb
SE
10881 ;
10882 return 0;
10883}
10884_ACEOF
81ecdfbb 10885if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10886 ac_cv_lib_svld_dlopen=yes
d7040cdb 10887else
81ecdfbb 10888 ac_cv_lib_svld_dlopen=no
d7040cdb 10889fi
81ecdfbb
RW
10890rm -f core conftest.err conftest.$ac_objext \
10891 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10892LIBS=$ac_check_lib_save_LIBS
10893fi
81ecdfbb
RW
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10895$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10896if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10898else
81ecdfbb
RW
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10900$as_echo_n "checking for dld_link in -ldld... " >&6; }
10901if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10902 $as_echo_n "(cached) " >&6
d7040cdb 10903else
ce2cded5
L
10904 ac_check_lib_save_LIBS=$LIBS
10905LIBS="-ldld $LIBS"
81ecdfbb 10906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10907/* end confdefs.h. */
ce2cded5 10908
81ecdfbb
RW
10909/* Override any GCC internal prototype to avoid an error.
10910 Use char because int might match the return type of a GCC
10911 builtin and then its argument prototype would still apply. */
ce2cded5
L
10912#ifdef __cplusplus
10913extern "C"
10914#endif
ce2cded5 10915char dld_link ();
d7040cdb
SE
10916int
10917main ()
10918{
81ecdfbb 10919return dld_link ();
d7040cdb
SE
10920 ;
10921 return 0;
10922}
10923_ACEOF
81ecdfbb 10924if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10925 ac_cv_lib_dld_dld_link=yes
10926else
81ecdfbb 10927 ac_cv_lib_dld_dld_link=no
d7040cdb 10928fi
81ecdfbb
RW
10929rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10931LIBS=$ac_check_lib_save_LIBS
10932fi
81ecdfbb
RW
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10934$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10935if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 10936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10937fi
10938
10939
10940fi
10941
10942
10943fi
10944
10945
10946fi
10947
10948
10949fi
10950
10951
10952fi
10953
10954 ;;
10955 esac
10956
10957 if test "x$lt_cv_dlopen" != xno; then
10958 enable_dlopen=yes
d7040cdb 10959 else
ce2cded5 10960 enable_dlopen=no
d7040cdb 10961 fi
ce2cded5
L
10962
10963 case $lt_cv_dlopen in
10964 dlopen)
10965 save_CPPFLAGS="$CPPFLAGS"
10966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10967
10968 save_LDFLAGS="$LDFLAGS"
10969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10970
10971 save_LIBS="$LIBS"
10972 LIBS="$lt_cv_dlopen_libs $LIBS"
10973
81ecdfbb
RW
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10975$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10976if test "${lt_cv_dlopen_self+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
d7040cdb 10978else
ce2cded5
L
10979 if test "$cross_compiling" = yes; then :
10980 lt_cv_dlopen_self=cross
10981else
10982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10983 lt_status=$lt_dlunknown
10984 cat > conftest.$ac_ext <<_LT_EOF
6eb7d830 10985#line 10985 "configure"
ce2cded5
L
10986#include "confdefs.h"
10987
10988#if HAVE_DLFCN_H
10989#include <dlfcn.h>
10990#endif
10991
10992#include <stdio.h>
10993
10994#ifdef RTLD_GLOBAL
10995# define LT_DLGLOBAL RTLD_GLOBAL
10996#else
10997# ifdef DL_GLOBAL
10998# define LT_DLGLOBAL DL_GLOBAL
10999# else
11000# define LT_DLGLOBAL 0
11001# endif
11002#endif
11003
11004/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11005 find out it does not work in some platform. */
11006#ifndef LT_DLLAZY_OR_NOW
11007# ifdef RTLD_LAZY
11008# define LT_DLLAZY_OR_NOW RTLD_LAZY
11009# else
11010# ifdef DL_LAZY
11011# define LT_DLLAZY_OR_NOW DL_LAZY
11012# else
11013# ifdef RTLD_NOW
11014# define LT_DLLAZY_OR_NOW RTLD_NOW
11015# else
11016# ifdef DL_NOW
11017# define LT_DLLAZY_OR_NOW DL_NOW
11018# else
11019# define LT_DLLAZY_OR_NOW 0
11020# endif
11021# endif
11022# endif
11023# endif
11024#endif
11025
3725885a
RW
11026/* When -fvisbility=hidden is used, assume the code has been annotated
11027 correspondingly for the symbols needed. */
11028#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11029void fnord () __attribute__((visibility("default")));
3725885a
RW
11030#endif
11031
f2c621e4 11032void fnord () { int i=42; }
ce2cded5
L
11033int main ()
11034{
11035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11036 int status = $lt_dlunknown;
11037
11038 if (self)
11039 {
11040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11041 else
11042 {
11043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11044 else puts (dlerror ());
11045 }
ce2cded5
L
11046 /* dlclose (self); */
11047 }
11048 else
11049 puts (dlerror ());
11050
718a6fd8 11051 return status;
ce2cded5
L
11052}
11053_LT_EOF
81ecdfbb 11054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
81ecdfbb
RW
11057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11058 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11059 (./conftest; exit; ) >&5 2>/dev/null
11060 lt_status=$?
11061 case x$lt_status in
11062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11064 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11065 esac
11066 else :
11067 # compilation failed
11068 lt_cv_dlopen_self=no
11069 fi
11070fi
11071rm -fr conftest*
11072
d7040cdb
SE
11073
11074fi
81ecdfbb
RW
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11076$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11077
11078 if test "x$lt_cv_dlopen_self" = xyes; then
11079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11081$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11082if test "${lt_cv_dlopen_self_static+set}" = set; then :
11083 $as_echo_n "(cached) " >&6
d7040cdb 11084else
ce2cded5
L
11085 if test "$cross_compiling" = yes; then :
11086 lt_cv_dlopen_self_static=cross
11087else
11088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11089 lt_status=$lt_dlunknown
11090 cat > conftest.$ac_ext <<_LT_EOF
6eb7d830 11091#line 11091 "configure"
ce2cded5
L
11092#include "confdefs.h"
11093
11094#if HAVE_DLFCN_H
11095#include <dlfcn.h>
11096#endif
11097
11098#include <stdio.h>
11099
11100#ifdef RTLD_GLOBAL
11101# define LT_DLGLOBAL RTLD_GLOBAL
11102#else
11103# ifdef DL_GLOBAL
11104# define LT_DLGLOBAL DL_GLOBAL
11105# else
11106# define LT_DLGLOBAL 0
11107# endif
11108#endif
11109
11110/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11111 find out it does not work in some platform. */
11112#ifndef LT_DLLAZY_OR_NOW
11113# ifdef RTLD_LAZY
11114# define LT_DLLAZY_OR_NOW RTLD_LAZY
11115# else
11116# ifdef DL_LAZY
11117# define LT_DLLAZY_OR_NOW DL_LAZY
11118# else
11119# ifdef RTLD_NOW
11120# define LT_DLLAZY_OR_NOW RTLD_NOW
11121# else
11122# ifdef DL_NOW
11123# define LT_DLLAZY_OR_NOW DL_NOW
11124# else
11125# define LT_DLLAZY_OR_NOW 0
11126# endif
11127# endif
11128# endif
11129# endif
11130#endif
11131
3725885a
RW
11132/* When -fvisbility=hidden is used, assume the code has been annotated
11133 correspondingly for the symbols needed. */
11134#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11135void fnord () __attribute__((visibility("default")));
3725885a
RW
11136#endif
11137
f2c621e4 11138void fnord () { int i=42; }
ce2cded5 11139int main ()
d7040cdb 11140{
ce2cded5
L
11141 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11142 int status = $lt_dlunknown;
11143
11144 if (self)
11145 {
11146 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11147 else
11148 {
11149 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11150 else puts (dlerror ());
11151 }
ce2cded5
L
11152 /* dlclose (self); */
11153 }
11154 else
11155 puts (dlerror ());
11156
718a6fd8 11157 return status;
d7040cdb 11158}
ce2cded5 11159_LT_EOF
81ecdfbb 11160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11161 (eval $ac_link) 2>&5
11162 ac_status=$?
81ecdfbb
RW
11163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11164 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11165 (./conftest; exit; ) >&5 2>/dev/null
11166 lt_status=$?
11167 case x$lt_status in
11168 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11169 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11170 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11171 esac
11172 else :
11173 # compilation failed
11174 lt_cv_dlopen_self_static=no
11175 fi
d7040cdb 11176fi
ce2cded5
L
11177rm -fr conftest*
11178
11179
d7040cdb 11180fi
81ecdfbb
RW
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11182$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11183 fi
11184
11185 CPPFLAGS="$save_CPPFLAGS"
11186 LDFLAGS="$save_LDFLAGS"
11187 LIBS="$save_LIBS"
11188 ;;
11189 esac
11190
11191 case $lt_cv_dlopen_self in
11192 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11193 *) enable_dlopen_self=unknown ;;
11194 esac
11195
11196 case $lt_cv_dlopen_self_static in
11197 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11198 *) enable_dlopen_self_static=unknown ;;
11199 esac
d7040cdb 11200fi
d7040cdb 11201
d7040cdb
SE
11202
11203
d7040cdb 11204
d7040cdb 11205
ce2cded5
L
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218striplib=
11219old_striplib=
81ecdfbb
RW
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11221$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11222if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11223 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11224 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11226$as_echo "yes" >&6; }
ce2cded5
L
11227else
11228# FIXME - insert some real tests, host_os isn't really good enough
11229 case $host_os in
11230 darwin*)
11231 if test -n "$STRIP" ; then
11232 striplib="$STRIP -x"
11233 old_striplib="$STRIP -S"
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11235$as_echo "yes" >&6; }
ce2cded5 11236 else
81ecdfbb
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
d7040cdb 11239 fi
ce2cded5
L
11240 ;;
11241 *)
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
ce2cded5 11244 ;;
d7040cdb 11245 esac
d7040cdb
SE
11246fi
11247
d7040cdb 11248
d7040cdb 11249
d7040cdb 11250
d7040cdb 11251
d7040cdb 11252
d7040cdb 11253
d7040cdb 11254
d7040cdb 11255
d7040cdb 11256
d7040cdb 11257
d7040cdb 11258
ce2cded5 11259 # Report which library types will actually be built
81ecdfbb
RW
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11261$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11263$as_echo "$can_build_shared" >&6; }
d7040cdb 11264
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11266$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11267 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11268
ce2cded5
L
11269 # On AIX, shared libraries and static libraries use the same namespace, and
11270 # are all built from PIC.
11271 case $host_os in
11272 aix3*)
11273 test "$enable_shared" = yes && enable_static=no
11274 if test -n "$RANLIB"; then
11275 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11276 postinstall_cmds='$RANLIB $lib'
11277 fi
11278 ;;
d7040cdb 11279
50e7d84b 11280 aix[4-9]*)
ce2cded5
L
11281 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11282 test "$enable_shared" = yes && enable_static=no
11283 fi
11284 ;;
11285 esac
81ecdfbb
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11287$as_echo "$enable_shared" >&6; }
ce2cded5 11288
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11290$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11291 # Make sure either enable_shared or enable_static is yes.
11292 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11294$as_echo "$enable_static" >&6; }
d7040cdb 11295
d7040cdb 11296
d7040cdb 11297
d7040cdb 11298
ce2cded5
L
11299fi
11300ac_ext=c
11301ac_cpp='$CPP $CPPFLAGS'
11302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11305
ce2cded5 11306CC="$lt_save_CC"
d7040cdb 11307
d7040cdb 11308
d7040cdb 11309
d7040cdb 11310
d7040cdb 11311
d7040cdb 11312
d7040cdb 11313
d7040cdb 11314
d7040cdb 11315
d7040cdb
SE
11316
11317
d7040cdb
SE
11318
11319
81ecdfbb 11320 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11321
11322
d7040cdb 11323
d7040cdb 11324
ce2cded5 11325# Only expand once:
d7040cdb 11326
d7040cdb 11327
d7040cdb 11328
b879806f
AM
11329# The tests for host and target for $enable_largefile require
11330# canonical names.
11331
11332
11333
11334# As the $enable_largefile decision depends on --enable-plugins we must set it
11335# even in directories otherwise not depending on the $plugins option.
11336
11337
11338 maybe_plugins=no
11339 for ac_header in dlfcn.h
11340do :
11341 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11342"
11343if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11344 cat >>confdefs.h <<_ACEOF
11345#define HAVE_DLFCN_H 1
11346_ACEOF
11347 maybe_plugins=yes
11348fi
11349
11350done
11351
11352 for ac_header in windows.h
11353do :
11354 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11355"
11356if test "x$ac_cv_header_windows_h" = x""yes; then :
11357 cat >>confdefs.h <<_ACEOF
11358#define HAVE_WINDOWS_H 1
11359_ACEOF
11360 maybe_plugins=yes
11361fi
11362
11363done
11364
11365
11366 # Check whether --enable-plugins was given.
11367if test "${enable_plugins+set}" = set; then :
11368 enableval=$enable_plugins; case "${enableval}" in
11369 no) plugins=no ;;
11370 *) plugins=yes
11371 if test "$maybe_plugins" != "yes" ; then
11372 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11373 fi ;;
11374 esac
11375else
11376 plugins=$maybe_plugins
11377
11378fi
11379
2974be62
AM
11380 if test "$plugins" = "yes"; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11382$as_echo_n "checking for library containing dlopen... " >&6; }
11383if test "${ac_cv_search_dlopen+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
11385else
11386 ac_func_search_save_LIBS=$LIBS
11387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388/* end confdefs.h. */
11389
11390/* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393#ifdef __cplusplus
11394extern "C"
11395#endif
11396char dlopen ();
11397int
11398main ()
11399{
11400return dlopen ();
11401 ;
11402 return 0;
11403}
11404_ACEOF
11405for ac_lib in '' dl; do
11406 if test -z "$ac_lib"; then
11407 ac_res="none required"
11408 else
11409 ac_res=-l$ac_lib
11410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11411 fi
11412 if ac_fn_c_try_link "$LINENO"; then :
11413 ac_cv_search_dlopen=$ac_res
11414fi
11415rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext
11417 if test "${ac_cv_search_dlopen+set}" = set; then :
11418 break
11419fi
11420done
11421if test "${ac_cv_search_dlopen+set}" = set; then :
11422
11423else
11424 ac_cv_search_dlopen=no
11425fi
11426rm conftest.$ac_ext
11427LIBS=$ac_func_search_save_LIBS
11428fi
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11430$as_echo "$ac_cv_search_dlopen" >&6; }
11431ac_res=$ac_cv_search_dlopen
11432if test "$ac_res" != no; then :
11433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11434
11435fi
11436
11437 fi
b879806f
AM
11438
11439
11440case "${host}" in
11441 sparc-*-solaris*|i[3-7]86-*-solaris*)
11442 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11443 # are mutually exclusive; and without procfs support, the bfd/ elf module
11444 # cannot provide certain routines such as elfcore_write_prpsinfo
11445 # or elfcore_write_prstatus. So unless the user explicitly requested
11446 # large-file support through the --enable-largefile switch, disable
11447 # large-file support in favor of procfs support.
11448 test "${target}" = "${host}" -a "x$plugins" = xno \
11449 && : ${enable_largefile="no"}
11450 ;;
11451esac
11452
11453# Check whether --enable-largefile was given.
11454if test "${enable_largefile+set}" = set; then :
11455 enableval=$enable_largefile;
11456fi
11457
11458if test "$enable_largefile" != no; then
11459
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11461$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11462if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11464else
11465 ac_cv_sys_largefile_CC=no
11466 if test "$GCC" != yes; then
11467 ac_save_CC=$CC
11468 while :; do
11469 # IRIX 6.2 and later do not support large files by default,
11470 # so use the C compiler's -n32 option if that helps.
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472/* end confdefs.h. */
11473#include <sys/types.h>
11474 /* Check that off_t can represent 2**63 - 1 correctly.
11475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11476 since some C++ compilers masquerading as C compilers
11477 incorrectly reject 9223372036854775807. */
11478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11480 && LARGE_OFF_T % 2147483647 == 1)
11481 ? 1 : -1];
11482int
11483main ()
11484{
11485
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491 break
11492fi
11493rm -f core conftest.err conftest.$ac_objext
11494 CC="$CC -n32"
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496 ac_cv_sys_largefile_CC=' -n32'; break
11497fi
11498rm -f core conftest.err conftest.$ac_objext
11499 break
11500 done
11501 CC=$ac_save_CC
11502 rm -f conftest.$ac_ext
11503 fi
11504fi
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11506$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11507 if test "$ac_cv_sys_largefile_CC" != no; then
11508 CC=$CC$ac_cv_sys_largefile_CC
11509 fi
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11512$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11513if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11515else
11516 while :; do
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518/* end confdefs.h. */
11519#include <sys/types.h>
11520 /* Check that off_t can represent 2**63 - 1 correctly.
11521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11522 since some C++ compilers masquerading as C compilers
11523 incorrectly reject 9223372036854775807. */
11524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11526 && LARGE_OFF_T % 2147483647 == 1)
11527 ? 1 : -1];
11528int
11529main ()
11530{
11531
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536if ac_fn_c_try_compile "$LINENO"; then :
11537 ac_cv_sys_file_offset_bits=no; break
11538fi
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h. */
11542#define _FILE_OFFSET_BITS 64
11543#include <sys/types.h>
11544 /* Check that off_t can represent 2**63 - 1 correctly.
11545 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11546 since some C++ compilers masquerading as C compilers
11547 incorrectly reject 9223372036854775807. */
11548#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11550 && LARGE_OFF_T % 2147483647 == 1)
11551 ? 1 : -1];
11552int
11553main ()
11554{
11555
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560if ac_fn_c_try_compile "$LINENO"; then :
11561 ac_cv_sys_file_offset_bits=64; break
11562fi
11563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 ac_cv_sys_file_offset_bits=unknown
11565 break
11566done
11567fi
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11569$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11570case $ac_cv_sys_file_offset_bits in #(
11571 no | unknown) ;;
11572 *)
11573cat >>confdefs.h <<_ACEOF
11574#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11575_ACEOF
11576;;
11577esac
11578rm -rf conftest*
11579 if test $ac_cv_sys_file_offset_bits = unknown; then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11581$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11582if test "${ac_cv_sys_large_files+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
11584else
11585 while :; do
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587/* end confdefs.h. */
11588#include <sys/types.h>
11589 /* Check that off_t can represent 2**63 - 1 correctly.
11590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11591 since some C++ compilers masquerading as C compilers
11592 incorrectly reject 9223372036854775807. */
11593#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11595 && LARGE_OFF_T % 2147483647 == 1)
11596 ? 1 : -1];
11597int
11598main ()
11599{
11600
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605if ac_fn_c_try_compile "$LINENO"; then :
11606 ac_cv_sys_large_files=no; break
11607fi
11608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11610/* end confdefs.h. */
11611#define _LARGE_FILES 1
11612#include <sys/types.h>
11613 /* Check that off_t can represent 2**63 - 1 correctly.
11614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11615 since some C++ compilers masquerading as C compilers
11616 incorrectly reject 9223372036854775807. */
11617#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11619 && LARGE_OFF_T % 2147483647 == 1)
11620 ? 1 : -1];
11621int
11622main ()
11623{
11624
11625 ;
11626 return 0;
11627}
11628_ACEOF
11629if ac_fn_c_try_compile "$LINENO"; then :
11630 ac_cv_sys_large_files=1; break
11631fi
11632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11633 ac_cv_sys_large_files=unknown
11634 break
11635done
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11638$as_echo "$ac_cv_sys_large_files" >&6; }
11639case $ac_cv_sys_large_files in #(
11640 no | unknown) ;;
11641 *)
11642cat >>confdefs.h <<_ACEOF
11643#define _LARGE_FILES $ac_cv_sys_large_files
11644_ACEOF
11645;;
11646esac
11647rm -rf conftest*
11648 fi
11649fi
11650
11651
11652
81ecdfbb
RW
11653# Check whether --enable-targets was given.
11654if test "${enable_targets+set}" = set; then :
11655 enableval=$enable_targets; case "${enableval}" in
11656 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11657 ;;
11658 no) enable_targets= ;;
11659 *) enable_targets=$enableval ;;
11660esac
81ecdfbb
RW
11661fi
11662
ce2cded5
L
11663ac_checking=yes
11664if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11665 ac_checking=
11666fi
81ecdfbb
RW
11667# Check whether --enable-checking was given.
11668if test "${enable_checking+set}" = set; then :
11669 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11670 no|none) ac_checking= ;;
11671 *) ac_checking=yes ;;
11672esac
81ecdfbb
RW
11673fi
11674if test x$ac_checking != x ; then
d7040cdb 11675
81ecdfbb 11676$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11677
ce2cded5 11678fi
d7040cdb 11679
6c3bc0f8
NC
11680# PR gas/19109
11681# Decide the default method for compressing debug sections.
11682ac_default_compressed_debug_sections=unset
11683# Provide a configure time option to override our default.
11684# Check whether --enable-compressed_debug_sections was given.
11685if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 11686 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 11687 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 11688 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
11689 *) ac_default_compressed_debug_sections=unset ;;
11690esac
11691fi
11692
0cb4071e
L
11693# PR gas/19520
11694# Decide if x86 assembler should generate relax relocations.
11695ac_default_x86_relax_relocations=unset
11696# Provide a configure time option to override our default.
11697# Check whether --enable-x86_relax_relocations was given.
11698if test "${enable_x86_relax_relocations+set}" = set; then :
11699 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11700 no) ac_default_x86_relax_relocations=0 ;;
11701esac
11702fi
11703
b8871f35
L
11704# Decide if ELF assembler should generate common symbols with the
11705# STT_COMMON type.
11706ac_default_elf_stt_common=unset
11707# Provide a configure time option to override our default.
11708# Check whether --enable-elf_stt_common was given.
11709if test "${enable_elf_stt_common+set}" = set; then :
11710 enableval=$enable_elf_stt_common; case "${enableval}" in
11711 yes) ac_default_elf_stt_common=1 ;;
11712esac
11713fi
11714
ce2cded5 11715using_cgen=no
d7040cdb 11716
d7040cdb 11717
270c9937
JB
11718# Set the 'development' global.
11719. $srcdir/../bfd/development.sh
11720
9780e045 11721# Default set of GCC warnings to enable.
397841b5 11722GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11723
11724# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726/* end confdefs.h. */
11727__GNUC__
11728_ACEOF
11729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11730 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11731
11732else
11733 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11734fi
11735rm -f conftest*
11736
d7040cdb 11737
9780e045
NC
11738# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740/* end confdefs.h. */
11741__GNUC__
11742_ACEOF
11743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11744 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11745
11746else
11747 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11748fi
11749rm -f conftest*
11750
11751
6757cf57
TS
11752# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11753WARN_WRITE_STRINGS=""
11754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755/* end confdefs.h. */
11756__GNUC__
11757_ACEOF
11758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11760
11761else
11762 WARN_WRITE_STRINGS="-Wwrite-strings"
11763fi
11764rm -f conftest*
11765
9780e045 11766
81ecdfbb
RW
11767# Check whether --enable-werror was given.
11768if test "${enable_werror+set}" = set; then :
11769 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11770 yes | y) ERROR_ON_WARNING="yes" ;;
11771 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11772 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11773 esac
81ecdfbb
RW
11774fi
11775
d7040cdb 11776
397841b5 11777# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11778case "${host}" in
11779 *-*-mingw32*)
11780 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11781 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11782 fi
11783 ;;
11784 *) ;;
11785esac
11786
270c9937
JB
11787# Enable -Werror by default when using gcc. Turn it off for releases.
11788if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
11789 ERROR_ON_WARNING=yes
11790fi
11791
11792NO_WERROR=
11793if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 11794 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
ce2cded5
L
11795 NO_WERROR="-Wno-error"
11796fi
11797
11798if test "${GCC}" = yes ; then
11799 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11800fi
11801
81ecdfbb
RW
11802# Check whether --enable-build-warnings was given.
11803if test "${enable_build_warnings+set}" = set; then :
11804 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11805 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11806 no) if test "${GCC}" = yes ; then
11807 WARN_CFLAGS="-w"
11808 fi;;
11809 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11810 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11811 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11812 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11813 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11814esac
81ecdfbb
RW
11815fi
11816
d7040cdb 11817
ce2cded5
L
11818if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11819 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11820fi
d7040cdb 11821
d7040cdb 11822
d7040cdb 11823
d7040cdb 11824
d7040cdb 11825
6757cf57 11826
ce2cded5 11827# Generate a header file
81ecdfbb 11828ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11829
d7040cdb 11830
df7b86aa
NC
11831# PR 14072
11832
11833
ce2cded5
L
11834# If we are on a DOS filesystem, we must use gdb.ini rather than
11835# .gdbinit.
11836case "${host}" in
11837 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11838 GDBINIT="gdb.ini"
81ecdfbb 11839 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11840
ce2cded5
L
11841 ;;
11842 *)
11843 GDBINIT=".gdbinit"
81ecdfbb 11844 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11845
ce2cded5
L
11846 ;;
11847esac
d7040cdb 11848
d7040cdb 11849
ce2cded5 11850#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11852$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11853if test "${ac_cv_c_bigendian+set}" = set; then :
11854 $as_echo_n "(cached) " >&6
11855else
11856 ac_cv_c_bigendian=unknown
11857 # See if we're dealing with a universal compiler.
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859/* end confdefs.h. */
11860#ifndef __APPLE_CC__
11861 not a universal capable compiler
11862 #endif
11863 typedef int dummy;
11864
11865_ACEOF
11866if ac_fn_c_try_compile "$LINENO"; then :
11867
11868 # Check for potential -arch flags. It is not universal unless
11869 # there are at least two -arch flags with different values.
11870 ac_arch=
11871 ac_prev=
11872 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11873 if test -n "$ac_prev"; then
11874 case $ac_word in
11875 i?86 | x86_64 | ppc | ppc64)
11876 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11877 ac_arch=$ac_word
11878 else
11879 ac_cv_c_bigendian=universal
11880 break
11881 fi
11882 ;;
11883 esac
11884 ac_prev=
11885 elif test "x$ac_word" = "x-arch"; then
11886 ac_prev=arch
11887 fi
11888 done
11889fi
11890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 if test $ac_cv_c_bigendian = unknown; then
11892 # See if sys/param.h defines the BYTE_ORDER macro.
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11894/* end confdefs.h. */
11895#include <sys/types.h>
81ecdfbb 11896 #include <sys/param.h>
d7040cdb 11897
ce2cded5
L
11898int
11899main ()
11900{
81ecdfbb
RW
11901#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11902 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11903 && LITTLE_ENDIAN)
11904 bogus endian macros
11905 #endif
d7040cdb 11906
ce2cded5
L
11907 ;
11908 return 0;
11909}
11910_ACEOF
81ecdfbb 11911if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11912 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11914/* end confdefs.h. */
11915#include <sys/types.h>
81ecdfbb 11916 #include <sys/param.h>
d7040cdb 11917
ce2cded5
L
11918int
11919main ()
11920{
11921#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11922 not big endian
11923 #endif
d7040cdb 11924
ce2cded5
L
11925 ;
11926 return 0;
11927}
11928_ACEOF
81ecdfbb 11929if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11930 ac_cv_c_bigendian=yes
11931else
81ecdfbb 11932 ac_cv_c_bigendian=no
ce2cded5 11933fi
81ecdfbb
RW
11934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11935fi
11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 fi
11938 if test $ac_cv_c_bigendian = unknown; then
11939 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h. */
11942#include <limits.h>
d7040cdb 11943
81ecdfbb
RW
11944int
11945main ()
11946{
11947#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11948 bogus endian macros
11949 #endif
11950
11951 ;
11952 return 0;
11953}
ce2cded5 11954_ACEOF
81ecdfbb
RW
11955if ac_fn_c_try_compile "$LINENO"; then :
11956 # It does; now see whether it defined to _BIG_ENDIAN or not.
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11958/* end confdefs.h. */
81ecdfbb
RW
11959#include <limits.h>
11960
ce2cded5
L
11961int
11962main ()
11963{
81ecdfbb
RW
11964#ifndef _BIG_ENDIAN
11965 not big endian
11966 #endif
11967
ce2cded5
L
11968 ;
11969 return 0;
11970}
11971_ACEOF
81ecdfbb 11972if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11973 ac_cv_c_bigendian=yes
81ecdfbb
RW
11974else
11975 ac_cv_c_bigendian=no
d7040cdb 11976fi
81ecdfbb 11977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11978fi
81ecdfbb
RW
11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 if test $ac_cv_c_bigendian = unknown; then
11982 # Compile a test program.
11983 if test "$cross_compiling" = yes; then :
11984 # Try to guess by grepping values from an object file.
11985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986/* end confdefs.h. */
11987short int ascii_mm[] =
11988 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11989 short int ascii_ii[] =
11990 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11991 int use_ascii (int i) {
11992 return ascii_mm[i] + ascii_ii[i];
11993 }
11994 short int ebcdic_ii[] =
11995 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11996 short int ebcdic_mm[] =
11997 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11998 int use_ebcdic (int i) {
11999 return ebcdic_mm[i] + ebcdic_ii[i];
12000 }
12001 extern int foo;
d7040cdb 12002
81ecdfbb
RW
12003int
12004main ()
12005{
12006return use_ascii (foo) == use_ebcdic (foo);
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011if ac_fn_c_try_compile "$LINENO"; then :
12012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12013 ac_cv_c_bigendian=yes
12014 fi
12015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12016 if test "$ac_cv_c_bigendian" = unknown; then
12017 ac_cv_c_bigendian=no
12018 else
12019 # finding both strings is unlikely to happen, but who knows?
12020 ac_cv_c_bigendian=unknown
12021 fi
12022 fi
ce2cded5 12023fi
81ecdfbb 12024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12025else
81ecdfbb 12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12027/* end confdefs.h. */
81ecdfbb 12028$ac_includes_default
ce2cded5
L
12029int
12030main ()
12031{
81ecdfbb
RW
12032
12033 /* Are we little or big endian? From Harbison&Steele. */
12034 union
12035 {
12036 long int l;
12037 char c[sizeof (long int)];
12038 } u;
12039 u.l = 1;
12040 return u.c[sizeof (long int) - 1] == 1;
12041
12042 ;
12043 return 0;
ce2cded5 12044}
d7040cdb 12045_ACEOF
81ecdfbb 12046if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
12047 ac_cv_c_bigendian=no
12048else
81ecdfbb 12049 ac_cv_c_bigendian=yes
d7040cdb 12050fi
81ecdfbb
RW
12051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12052 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 12053fi
81ecdfbb
RW
12054
12055 fi
ce2cded5 12056fi
81ecdfbb
RW
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12058$as_echo "$ac_cv_c_bigendian" >&6; }
12059 case $ac_cv_c_bigendian in #(
12060 yes)
12061 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12062;; #(
12063 no)
12064 ;; #(
12065 universal)
d7040cdb 12066
81ecdfbb
RW
12067$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12068
12069 ;; #(
12070 *)
12071 as_fn_error "unknown endianness
12072 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12073 esac
d7040cdb 12074
d7040cdb 12075
ce2cded5 12076te_file=generic
d7040cdb 12077
ce2cded5
L
12078# Makefile target for installing gas in $(tooldir)/bin.
12079install_tooldir=install-exec-tooldir
d7040cdb 12080
ce2cded5
L
12081canon_targets=""
12082all_targets=no
12083if test -n "$enable_targets" ; then
12084 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12085 if test $t = "all"; then
12086 all_targets=yes
12087 continue
12088 fi
12089 result=`$ac_config_sub $t 2>/dev/null`
12090 if test -n "$result" ; then
12091 canon_targets="$canon_targets $result"
12092# else
12093# # Permit "all", etc. We don't support it yet though.
12094# canon_targets="$canon_targets $t"
12095 fi
12096 done
12097 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12098_gas_uniq_newlist=""
12099for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12100 case $_gas_uniq_i in
12101 _gas_uniq_dummy) ;;
12102 *) case " $_gas_uniq_newlist " in
12103 *" $_gas_uniq_i "*) ;;
12104 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12105 esac ;;
12106 esac
12107done
ce2cded5 12108canon_targets=$_gas_uniq_newlist
d7040cdb 12109
ce2cded5
L
12110fi
12111
12112emulations=""
12113
12114for this_target in $target $canon_targets ; do
12115
12116 targ=${this_target}
12117 . ${srcdir}/configure.tgt
12118
12119 case ${target_cpu} in
12120 crisv32)
12121
12122cat >>confdefs.h <<_ACEOF
12123#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12124_ACEOF
ce2cded5
L
12125
12126 ;;
12127 esac
12128
12129 if test ${this_target} = $target ; then
12130 target_cpu_type=${cpu_type}
12131 elif test ${target_cpu_type} != ${cpu_type} ; then
12132 continue
12133 fi
12134
12135 generic_target=${cpu_type}-${target_vendor}-${target_os}
12136 case ${generic_target} in
12137 i386-*-sco3.2v5*)
12138 if test ${this_target} = $target; then
12139
81ecdfbb 12140$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
12141
12142 fi
12143 ;;
12144
12145 i386-*-msdosdjgpp* \
12146 | i386-*-go32* \
12147 | i386-go32-rtems*)
12148
81ecdfbb 12149$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12150
12151 ;;
12152
0cb4071e
L
12153 i386-*-solaris2 \
12154 | x86_64-*-solaris2 \
12155 | i386-*-solaris2.[0-9] \
12156 | i386-*-solaris2.1[01] \
12157 | x86_64-*-solaris2.1[01])
12158 if test ${this_target} = $target \
12159 && test ${ac_default_x86_relax_relocations} = unset; then
12160 ac_default_x86_relax_relocations=0
12161 fi
12162 ;;
12163
ce2cded5 12164 i860-*-*)
81ecdfbb
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12166$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
12167 ;;
12168
7ba29e2a
NC
12169 microblaze*)
12170 ;;
12171
e5231592 12172 ppc-*-aix[5-9].*)
ce2cded5 12173
81ecdfbb 12174$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12175
ce2cded5
L
12176 ;;
12177 ppc-*-solaris*)
12178 if test ${this_target} = $target; then
12179
81ecdfbb 12180$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12181
12182 fi
12183 if test x${endian} = xbig; then
81ecdfbb 12184 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12185 fi
12186 ;;
12187
12188 sh*-*-symbianelf*)
12189
81ecdfbb 12190$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
12191
12192 ;;
d7040cdb 12193 esac
d7040cdb 12194
ce2cded5
L
12195 if test ${this_target} = $target ; then
12196 endian_def=
12197 if test x${endian} = xbig; then
12198 endian_def=1
12199 elif test x${endian} = xlittle; then
12200 endian_def=0
12201 fi
12202 if test x${endian_def} != x; then
12203
12204cat >>confdefs.h <<_ACEOF
12205#define TARGET_BYTES_BIG_ENDIAN $endian_def
12206_ACEOF
12207
12208 fi
12209 fi
12210
12211# Other random stuff.
12212
12213 case ${cpu_type} in
12214 mips)
12215 # Set mips_cpu to the name of the default CPU.
12216 case ${target_cpu} in
12217 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12218 mips_cpu=from-abi
12219 ;;
12220 mipsisa32 | mipsisa32el)
12221 mips_cpu=mips32
12222 ;;
12223 mipsisa32r2 | mipsisa32r2el)
12224 mips_cpu=mips32r2
12225 ;;
ae52f483
AB
12226 mipsisa32r3 | mipsisa32r3el)
12227 mips_cpu=mips32r3
12228 ;;
12229 mipsisa32r5 | mipsisa32r5el)
12230 mips_cpu=mips32r5
12231 ;;
7361da2c
AB
12232 mipsisa32r6 | mipsisa32r6el)
12233 mips_cpu=mips32r6
12234 ;;
ce2cded5
L
12235 mipsisa64 | mipsisa64el)
12236 mips_cpu=mips64
12237 ;;
12238 mipsisa64r2 | mipsisa64r2el)
12239 mips_cpu=mips64r2
12240 ;;
ae52f483
AB
12241 mipsisa64r3 | mipsisa64r3el)
12242 mips_cpu=mips64r3
12243 ;;
12244 mipsisa64r5 | mipsisa64r5el)
12245 mips_cpu=mips64r5
12246 ;;
7361da2c
AB
12247 mipsisa64r6 | mipsisa64r6el)
12248 mips_cpu=mips64r6
12249 ;;
ce2cded5
L
12250 mipstx39 | mipstx39el)
12251 mips_cpu=r3900
12252 ;;
12253 mips64vr | mips64vrel)
12254 mips_cpu=vr4100
12255 ;;
12256 mipsisa32r2* | mipsisa64r2*)
12257 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12258 ;;
7361da2c
AB
12259 mipsisa32r6* | mipsisa64r6*)
12260 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12261 ;;
ce2cded5
L
12262 mips64* | mipsisa64* | mipsisa32*)
12263 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12264 ;;
e407c74b
NC
12265 mips*)
12266 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12267 ;;
ce2cded5 12268 *)
81ecdfbb 12269 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12270 ;;
12271 esac
12272 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12273 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12274 case ${target} in
12275 *-*-irix*)
12276 use_e_mips_abi_o32=0
12277 ;;
12278 *)
12279 use_e_mips_abi_o32=1
12280 ;;
12281 esac
12282 # Decide whether to generate 32-bit or 64-bit code by default.
12283 # Used to resolve -march=from-abi when an embedded ABI is selected.
12284 case ${target} in
12285 mips64*-*-* | mipsisa64*-*-*)
12286 mips_default_64bit=1
12287 ;;
12288 *)
12289 mips_default_64bit=0
12290 ;;
12291 esac
12292 # Decide which ABI to target by default.
12293 case ${target} in
aeffff67 12294 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
ce2cded5
L
12295 mips_default_abi=N32_ABI
12296 ;;
aeffff67 12297 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12298 mips_default_abi=O32_ABI
12299 ;;
12300 mips64*-openbsd*)
12301 mips_default_abi=N64_ABI
12302 ;;
12303 *)
12304 mips_default_abi=NO_ABI
12305 ;;
12306 esac
12307
12308cat >>confdefs.h <<_ACEOF
12309#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12310_ACEOF
d7040cdb
SE
12311
12312
12313cat >>confdefs.h <<_ACEOF
ce2cded5 12314#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12315_ACEOF
12316
12317
12318cat >>confdefs.h <<_ACEOF
ce2cded5 12319#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12320_ACEOF
12321
12322
ce2cded5
L
12323cat >>confdefs.h <<_ACEOF
12324#define MIPS_DEFAULT_ABI $mips_default_abi
12325_ACEOF
d7040cdb 12326
ce2cded5
L
12327 ;;
12328 esac
d7040cdb 12329
ce2cded5
L
12330 # Do we need the opcodes library?
12331 case ${cpu_type} in
12332 vax | tic30)
12333 ;;
d7040cdb 12334
ce2cded5
L
12335 *)
12336 need_opcodes=yes
d7040cdb 12337
ce2cded5
L
12338 case "${enable_shared}" in
12339 yes) shared_opcodes=true ;;
12340 *opcodes*) shared_opcodes=true ;;
12341 *) shared_opcodes=false ;;
12342 esac
12343 ;;
12344 esac
d7040cdb 12345
ce2cded5
L
12346 # Any other special object files needed ?
12347 case ${cpu_type} in
d7040cdb 12348
ce2cded5
L
12349 bfin)
12350 echo ${extra_objects} | grep -s "bfin-parse.o"
12351 if test $? -ne 0 ; then
12352 extra_objects="$extra_objects bfin-parse.o"
12353 fi
d7040cdb 12354
df7b86aa 12355 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
ce2cded5 12356 if test $? -ne 0 ; then
df7b86aa 12357 extra_objects="$extra_objects bfin-lex-wrapper.o"
ce2cded5
L
12358 fi
12359 ;;
d7040cdb 12360
73589c9d 12361 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12362 using_cgen=yes
12363 ;;
d7040cdb 12364
ce2cded5
L
12365 m32c)
12366 using_cgen=yes
12367 ;;
12368 frv)
12369 using_cgen=yes
12370 ;;
12371 m68k)
12372 case ${extra_objects} in
12373 *m68k-parse.o*) ;;
12374 *) extra_objects="$extra_objects m68k-parse.o" ;;
12375 esac
12376 ;;
d7040cdb 12377
ce2cded5
L
12378 mep)
12379 using_cgen=yes
12380 ;;
d7040cdb 12381
ce2cded5
L
12382 mips)
12383 echo ${extra_objects} | grep -s "itbl-parse.o"
12384 if test $? -ne 0 ; then
12385 extra_objects="$extra_objects itbl-parse.o"
12386 fi
d7040cdb 12387
df7b86aa 12388 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
ce2cded5 12389 if test $? -ne 0 ; then
df7b86aa 12390 extra_objects="$extra_objects itbl-lex-wrapper.o"
ce2cded5 12391 fi
d7040cdb 12392
ce2cded5
L
12393 echo ${extra_objects} | grep -s "itbl-ops.o"
12394 if test $? -ne 0 ; then
12395 extra_objects="$extra_objects itbl-ops.o"
12396 fi
12397 ;;
d7040cdb 12398
ce2cded5
L
12399 mt)
12400 using_cgen=yes
12401 ;;
d7040cdb 12402
35c08157
KLC
12403 nds32)
12404 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12405 # based on arch_name.
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12407$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12408 if test "x${with_arch}" != x; then
12409 case ${with_arch} in
12410 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12411
12412cat >>confdefs.h <<_ACEOF
12413#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12414_ACEOF
12415
12416 ;;
12417 *)
12418 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12419 ;;
12420 esac
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12423$as_echo "$with_arch" >&6; }
12424
12425 # Decide features one by one.
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12427$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
6cd8405e 12428 if test "x${enable_dx_regs}" = xyes; then
35c08157
KLC
12429
12430$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12431
12432 else
12433
12434$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12435
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12438$as_echo "$enable_dx_regs" >&6; }
12439
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12441$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
6cd8405e 12442 if test "x${enable_perf_ext}" = xno; then
35c08157
KLC
12443
12444$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12445
12446 else
12447
12448$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12449
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12452$as_echo "$enable_perf_ext" >&6; }
12453
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12455$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
6cd8405e 12456 if test "x${enable_perf_ext2}" = xno; then
35c08157
KLC
12457
12458$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12459
12460 else
12461
12462$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12463
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12466$as_echo "$enable_perf_ext2" >&6; }
12467
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12469$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
6cd8405e 12470 if test "x${enable_string_ext}" = xno; then
35c08157
KLC
12471
12472$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12473
12474 else
12475
12476$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12480$as_echo "$enable_string_ext" >&6; }
12481
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12483$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
6cd8405e 12484 if test "x${enable_audio_ext}" = xno; then
35c08157
KLC
12485
12486$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12487
12488 else
12489
12490$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12491
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12494$as_echo "$enable_audio_ext" >&6; }
12495 ;;
12496
ce2cded5
L
12497 i386 | s390 | sparc)
12498 if test $this_target = $target ; then
d7040cdb
SE
12499
12500cat >>confdefs.h <<_ACEOF
ce2cded5 12501#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12502_ACEOF
12503
ce2cded5
L
12504 fi
12505 ;;
d7040cdb 12506
99c513f6
DD
12507 rl78)
12508 echo ${extra_objects} | grep -s "rl78-parse.o"
12509 if test $? -ne 0 ; then
12510 extra_objects="$extra_objects rl78-parse.o"
12511 fi
12512 ;;
12513
c7927a3c
NC
12514 rx)
12515 echo ${extra_objects} | grep -s "rx-parse.o"
12516 if test $? -ne 0 ; then
12517 extra_objects="$extra_objects rx-parse.o"
12518 fi
12519 ;;
12520
ce2cded5
L
12521 xstormy16)
12522 using_cgen=yes
12523 ;;
d7040cdb 12524
ce2cded5
L
12525 xc16x)
12526 using_cgen=yes
12527 ;;
d7040cdb 12528
ce2cded5
L
12529 xtensa)
12530 echo ${extra_objects} | grep -s "xtensa-relax.o"
12531 if test $? -ne 0 ; then
12532 extra_objects="$extra_objects xtensa-relax.o"
12533 fi
12534 ;;
d7040cdb 12535
ce2cded5
L
12536 *)
12537 ;;
12538 esac
d7040cdb 12539
ce2cded5
L
12540 if test $using_cgen = yes ; then
12541 case "x${extra_objects}" in
12542 *cgen.o*) ;;
12543 *) extra_objects="$extra_objects cgen.o" ;;
12544 esac
12545 fi
d7040cdb 12546
ce2cded5 12547# See if we really can support this configuration with the emulation code.
d7040cdb 12548
ce2cded5
L
12549 if test $this_target = $target ; then
12550 obj_format=$fmt
12551 te_file=$em
12552 fi
d7040cdb 12553
b11d79f2
TG
12554 case ${te_file} in
12555 vms) extra_objects="$extra_objects te-vms.o" ;;
12556 esac
12557
ce2cded5 12558# From target name and format, produce a list of supported emulations.
d7040cdb 12559
ce2cded5 12560 case ${generic_target}-${fmt} in
e8044f35 12561 mips-*-*-*) case "$endian" in
ce2cded5
L
12562 big) emulation="mipsbelf mipslelf mipself" ;;
12563 *) emulation="mipslelf mipsbelf mipself" ;;
12564 esac ;;
ce2cded5
L
12565 # i386-pc-pe-coff != i386-pc-coff.
12566 i386-*-pe-coff) ;;
12567 # Uncommenting the next line will turn on support for i386 AOUT
12568 # for the default linux configuration
12569 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12570 #
12571 i386-*-aout) emulation="i386aout" ;;
12572 i386-*-coff) emulation="i386coff" ;;
12573 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12574
ce2cded5
L
12575 # Always all formats. The first stated emulation becomes the default.
12576 cris-*-*aout*) emulation="crisaout criself" ;;
12577 cris-*-*) emulation="criself crisaout" ;;
12578 esac
13b2be9c 12579
ce2cded5 12580 emulations="$emulations $emulation"
13b2be9c 12581
13b2be9c 12582done
13b2be9c 12583
0cb4071e
L
12584if test ${ac_default_x86_relax_relocations} = unset; then
12585 ac_default_x86_relax_relocations=1
12586fi
12587
12588cat >>confdefs.h <<_ACEOF
12589#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12590_ACEOF
12591
12592
b8871f35
L
12593if test ${ac_default_elf_stt_common} = unset; then
12594 ac_default_elf_stt_common=0
12595fi
12596
12597cat >>confdefs.h <<_ACEOF
12598#define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12599_ACEOF
12600
12601
348ef89a 12602if test x$ac_default_compressed_debug_sections = xyes ; then
e12fe555
NC
12603
12604$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12605
6c3bc0f8 12606fi
e12fe555 12607
ce2cded5
L
12608# Turn on all targets if possible
12609if test ${all_targets} = "yes"; then
12610 case ${target_cpu_type} in
12611 i386)
12612 case ${obj_format} in
12613 aout)
12614 emulations="$emulations i386coff i386elf"
12615 ;;
12616 coff)
12617 emulations="$emulations i386aout i386elf"
12618 ;;
12619 elf)
12620 emulations="$emulations i386aout i386coff"
12621 ;;
12622 esac
12623 ;;
12624 x86_64)
12625 case ${obj_format} in
12626 aout)
12627 emulations="$emulations i386coff i386elf"
12628 ;;
12629 coff)
12630 emulations="$emulations i386aout i386elf"
12631 ;;
12632 elf)
12633 emulations="$emulations i386aout i386coff"
12634 ;;
12635 esac
12636 ;;
12637 esac
13b2be9c 12638fi
c8615825 12639
39871c07
AM
12640# PE code has way too many macros tweaking behaviour
12641case ${te_file} in
12642 pe*) emulations="" ;;
12643esac
12644
ce2cded5
L
12645# Assign floating point type. Most processors with FP support
12646# IEEE FP. On those that don't support FP at all, usually IEEE
12647# is emulated.
12648case ${target_cpu} in
12649 vax | pdp11 ) atof=vax ;;
12650 *) atof=ieee ;;
12651esac
c8615825 12652
ce2cded5 12653case "${obj_format}" in
81ecdfbb 12654 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12655esac
13b2be9c 12656
ce2cded5
L
12657# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12658cgen_cpu_prefix=""
12659if test $using_cgen = yes ; then
12660 case ${target_cpu} in
73589c9d
CS
12661 or1knd)
12662 cgen_cpu_prefix=or1k ;;
ce2cded5
L
12663 *) cgen_cpu_prefix=${target_cpu} ;;
12664 esac
c8615825 12665
c8615825 12666
81ecdfbb 12667$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12668
d7040cdb 12669fi
13b2be9c 12670
ce2cded5
L
12671
12672if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12673 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12674fi
ce2cded5
L
12675
12676if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12677 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12678fi
12679
ce2cded5
L
12680# Some COFF configurations want these random other flags set.
12681case ${obj_format} in
12682 coff)
12683 case ${target_cpu_type} in
12684 i386)
81ecdfbb 12685$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12686 ;;
12687 m68k)
81ecdfbb 12688$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12689 ;;
12690 m88k)
81ecdfbb 12691$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12692 ;;
12693 x86_64)
81ecdfbb 12694$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12695 ;;
12696 esac
12697 ;;
12698esac
12699
12700# Getting this done right is going to be a bitch. Each configuration specified
12701# with --enable-targets=... should be checked for environment, format, cpu
12702# setting.
12703#
12704# For each configuration, the necessary object file support code must be linked
12705# in. This might be only one, it might be up to four. The necessary emulation
12706# code needs to be provided, too.
12707#
12708# And then there's "--enable-targets=all"....
12709#
e8044f35 12710# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
12711
12712formats="${obj_format}"
12713emfiles=""
12714EMULATIONS=""
12715_gas_uniq_list="$emulations"
12716_gas_uniq_newlist=""
12717for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12718 case $_gas_uniq_i in
12719 _gas_uniq_dummy) ;;
12720 *) case " $_gas_uniq_newlist " in
12721 *" $_gas_uniq_i "*) ;;
12722 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12723 esac ;;
12724 esac
12725done
12726emulations=$_gas_uniq_newlist
12727
12728for em in . $emulations ; do
12729 case $em in
12730 .) continue ;;
12731 mipsbelf | mipslelf | mipself)
12732 fmt=elf file=mipself ;;
ce2cded5
L
12733 *coff)
12734 fmt=coff file=$em ;;
12735 *aout)
12736 fmt=aout file=$em ;;
12737 *elf)
12738 fmt=elf file=$em ;;
12739 esac
12740 formats="$formats $fmt"
12741 emfiles="$emfiles e-$file.o"
12742 EMULATIONS="$EMULATIONS &$em,"
12743done
12744_gas_uniq_list="$formats"
12745_gas_uniq_newlist=""
12746for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12747 case $_gas_uniq_i in
12748 _gas_uniq_dummy) ;;
12749 *) case " $_gas_uniq_newlist " in
12750 *" $_gas_uniq_i "*) ;;
12751 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12752 esac ;;
12753 esac
13b2be9c 12754done
ce2cded5 12755formats=$_gas_uniq_newlist
13b2be9c 12756
ce2cded5
L
12757_gas_uniq_list="$emfiles"
12758_gas_uniq_newlist=""
12759for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12760 case $_gas_uniq_i in
12761 _gas_uniq_dummy) ;;
12762 *) case " $_gas_uniq_newlist " in
12763 *" $_gas_uniq_i "*) ;;
12764 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12765 esac ;;
12766 esac
12767done
12768emfiles=$_gas_uniq_newlist
d7040cdb 12769
ce2cded5
L
12770if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12771 for fmt in $formats ; do
12772 case $fmt in
12773 aout)
81ecdfbb 12774$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12775 ;;
12776 bout)
81ecdfbb 12777$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12778 ;;
12779 coff)
81ecdfbb 12780$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12781 ;;
12782 ecoff)
81ecdfbb 12783$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12784 ;;
12785 elf)
81ecdfbb 12786$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12787 ;;
12788 generic)
81ecdfbb 12789$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12790 ;;
12791 som)
81ecdfbb 12792$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12793 ;;
12794 esac
12795 extra_objects="$extra_objects obj-$fmt.o"
12796 done
12797 obj_format=multi
13b2be9c 12798fi
ce2cded5
L
12799if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12800 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 12801 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
12802 # moment. If only one emulation is specified, then don't define
12803 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12804 case "${obj_format}${emfiles}" in
e8044f35 12805 multi* | *mipself*)
ce2cded5 12806 extra_objects="$extra_objects $emfiles"
d7040cdb 12807
81ecdfbb 12808$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12809 ;;
12810 esac
12811fi
d7040cdb 12812
13b2be9c 12813
ce2cded5
L
12814cat >>confdefs.h <<_ACEOF
12815#define EMULATIONS $EMULATIONS
13b2be9c 12816_ACEOF
d7040cdb 12817
d7040cdb 12818
ce2cded5
L
12819cat >>confdefs.h <<_ACEOF
12820#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12821_ACEOF
d7040cdb 12822
d7040cdb 12823
ce2cded5 12824reject_dev_configs=yes
252b5132 12825
ce2cded5
L
12826case ${reject_dev_configs}-${dev} in
12827 yes-yes) # Oops.
81ecdfbb 12828 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12829 ;;
d7040cdb
SE
12830esac
12831
13b2be9c 12832
ce2cded5
L
12833
12834
12835
12836
12837
12838# do we need the opcodes library?
12839case "${need_opcodes}" in
12840yes)
12841 OPCODES_LIB=../opcodes/libopcodes.la
12842 ;;
12843esac
12844
12845
12846
12847
12848cat >>confdefs.h <<_ACEOF
12849#define TARGET_ALIAS "${target_alias}"
d7040cdb 12850_ACEOF
20e95c23 12851
20e95c23 12852
ce2cded5
L
12853cat >>confdefs.h <<_ACEOF
12854#define TARGET_CANONICAL "${target}"
12855_ACEOF
20e95c23 12856
d6d788bd 12857
ce2cded5
L
12858cat >>confdefs.h <<_ACEOF
12859#define TARGET_CPU "${target_cpu}"
12860_ACEOF
20e95c23 12861
ce2cded5
L
12862
12863cat >>confdefs.h <<_ACEOF
12864#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12865_ACEOF
12866
12867
ce2cded5
L
12868cat >>confdefs.h <<_ACEOF
12869#define TARGET_OS "${target_os}"
12870_ACEOF
12871
0efedc4c 12872
d7040cdb
SE
12873for ac_prog in 'bison -y' byacc
12874do
12875 # Extract the first word of "$ac_prog", so it can be a program name with args.
12876set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
12879if test "${ac_cv_prog_YACC+set}" = set; then :
12880 $as_echo_n "(cached) " >&6
20e95c23 12881else
d7040cdb
SE
12882 if test -n "$YACC"; then
12883 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12884else
d7040cdb
SE
12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886for as_dir in $PATH
12887do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12892 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12894 break 2
20e95c23 12895 fi
d7040cdb 12896done
81ecdfbb
RW
12897 done
12898IFS=$as_save_IFS
20e95c23 12899
d7040cdb
SE
12900fi
12901fi
12902YACC=$ac_cv_prog_YACC
12903if test -n "$YACC"; then
81ecdfbb
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12905$as_echo "$YACC" >&6; }
d7040cdb 12906else
81ecdfbb
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
d7040cdb 12909fi
20e95c23 12910
81ecdfbb 12911
d7040cdb
SE
12912 test -n "$YACC" && break
12913done
12914test -n "$YACC" || YACC="yacc"
20e95c23 12915
d7040cdb
SE
12916for ac_prog in flex lex
12917do
12918 # Extract the first word of "$ac_prog", so it can be a program name with args.
12919set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12921$as_echo_n "checking for $ac_word... " >&6; }
12922if test "${ac_cv_prog_LEX+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
d6d788bd 12924else
d7040cdb
SE
12925 if test -n "$LEX"; then
12926 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12927else
12928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929for as_dir in $PATH
12930do
12931 IFS=$as_save_IFS
12932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12935 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12937 break 2
12938 fi
12939done
81ecdfbb
RW
12940 done
12941IFS=$as_save_IFS
20e95c23 12942
d7040cdb
SE
12943fi
12944fi
12945LEX=$ac_cv_prog_LEX
12946if test -n "$LEX"; then
81ecdfbb
RW
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12948$as_echo "$LEX" >&6; }
20e95c23 12949else
81ecdfbb
RW
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951$as_echo "no" >&6; }
13b2be9c
DJ
12952fi
12953
81ecdfbb 12954
d7040cdb
SE
12955 test -n "$LEX" && break
12956done
12957test -n "$LEX" || LEX=":"
20e95c23 12958
3d961d0d
AM
12959case "$LEX" in
12960 :|*"missing "*) ;;
12961 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
12962%%
12963a { ECHO; }
12964b { REJECT; }
12965c { yymore (); }
12966d { yyless (1); }
12967e { yyless (input () != 0); }
12968f { unput (yytext[0]); }
12969. { BEGIN INITIAL; }
12970%%
12971#ifdef YYTEXT_POINTER
12972extern char *yytext;
d7040cdb 12973#endif
d7040cdb 12974int
81ecdfbb 12975main (void)
d7040cdb 12976{
81ecdfbb 12977 return ! yylex () + ! yywrap ();
d7040cdb
SE
12978}
12979_ACEOF
81ecdfbb
RW
12980{ { ac_try="$LEX conftest.l"
12981case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984esac
12985eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12986$as_echo "$ac_try_echo"; } >&5
12987 (eval "$LEX conftest.l") 2>&5
d7040cdb 12988 ac_status=$?
81ecdfbb
RW
12989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990 test $ac_status = 0; }
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12992$as_echo_n "checking lex output file root... " >&6; }
12993if test "${ac_cv_prog_lex_root+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
d7040cdb 12995else
d5fbea21 12996
81ecdfbb
RW
12997if test -f lex.yy.c; then
12998 ac_cv_prog_lex_root=lex.yy
12999elif test -f lexyy.c; then
13000 ac_cv_prog_lex_root=lexyy
13001else
13002 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 13003fi
d7040cdb 13004fi
81ecdfbb
RW
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13006$as_echo "$ac_cv_prog_lex_root" >&6; }
13007LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 13008
81ecdfbb
RW
13009if test -z "${LEXLIB+set}"; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13011$as_echo_n "checking lex library... " >&6; }
13012if test "${ac_cv_lib_lex+set}" = set; then :
13013 $as_echo_n "(cached) " >&6
d7040cdb 13014else
d7040cdb 13015
81ecdfbb
RW
13016 ac_save_LIBS=$LIBS
13017 ac_cv_lib_lex='none needed'
13018 for ac_lib in '' -lfl -ll; do
13019 LIBS="$ac_lib $ac_save_LIBS"
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h. */
13022`cat $LEX_OUTPUT_ROOT.c`
13023_ACEOF
13024if ac_fn_c_try_link "$LINENO"; then :
13025 ac_cv_lib_lex=$ac_lib
d7040cdb 13026fi
81ecdfbb
RW
13027rm -f core conftest.err conftest.$ac_objext \
13028 conftest$ac_exeext conftest.$ac_ext
13029 test "$ac_cv_lib_lex" != 'none needed' && break
13030 done
13031 LIBS=$ac_save_LIBS
d7040cdb
SE
13032
13033fi
81ecdfbb
RW
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13035$as_echo "$ac_cv_lib_lex" >&6; }
13036 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
13037fi
13038
13b2be9c 13039
81ecdfbb
RW
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13041$as_echo_n "checking whether yytext is a pointer... " >&6; }
13042if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
d7040cdb
SE
13044else
13045 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 13046# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
13047# not all implementations provide the %pointer and %array declarations.
13048ac_cv_prog_lex_yytext_pointer=no
d7040cdb 13049ac_save_LIBS=$LIBS
81ecdfbb
RW
13050LIBS="$LEXLIB $ac_save_LIBS"
13051cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052/* end confdefs.h. */
13053#define YYTEXT_POINTER 1
d7040cdb 13054`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 13055_ACEOF
81ecdfbb 13056if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13057 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 13058fi
81ecdfbb
RW
13059rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
d7040cdb 13061LIBS=$ac_save_LIBS
252b5132 13062
9b2b7d69 13063fi
81ecdfbb
RW
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13065$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 13066if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 13067
81ecdfbb 13068$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 13069
d6d788bd 13070fi
81ecdfbb 13071rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
13072 ;;
13073esac
d7040cdb
SE
13074if test "$LEX" = :; then
13075 LEX=${am_missing_run}flex
13076fi
13077
f8c2a965 13078ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
d7040cdb
SE
13079# If we haven't got the data from the intl directory,
13080# assume NLS is disabled.
13081USE_NLS=no
13082LIBINTL=
13083LIBINTL_DEP=
13084INCINTL=
13085XGETTEXT=
13086GMSGFMT=
13087POSUB=
13088
13089if test -f ../intl/config.intl; then
13090 . ../intl/config.intl
13091fi
81ecdfbb
RW
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13093$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 13094if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096$as_echo "no" >&6; }
d7040cdb 13097else
81ecdfbb
RW
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099$as_echo "yes" >&6; }
d7040cdb 13100
81ecdfbb 13101$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13102
13103
81ecdfbb
RW
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13105$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13106 # Look for .po and .gmo files in the source directory.
13107 CATALOGS=
13108 XLINGUAS=
13109 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13110 # If there aren't any .gmo files the shell will give us the
13111 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13112 # weeded out.
13113 case "$cat" in *\**)
13114 continue;;
13115 esac
13116 # The quadruple backslash is collapsed to a double backslash
13117 # by the backticks, then collapsed again by the double quotes,
13118 # leaving us with one backslash in the sed expression (right
13119 # before the dot that mustn't act as a wildcard).
13120 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13121 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13122 # The user is allowed to set LINGUAS to a list of languages to
13123 # install catalogs for. If it's empty that means "all of them."
13124 if test "x$LINGUAS" = x; then
13125 CATALOGS="$CATALOGS $cat"
13126 XLINGUAS="$XLINGUAS $lang"
13127 else
13128 case "$LINGUAS" in *$lang*)
13129 CATALOGS="$CATALOGS $cat"
13130 XLINGUAS="$XLINGUAS $lang"
13131 ;;
13132 esac
13133 fi
13134 done
13135 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13137$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13138
13139
13140 DATADIRNAME=share
13141
13142 INSTOBJEXT=.mo
13143
13144 GENCAT=gencat
13145
13146 CATOBJEXT=.gmo
13147
13148fi
13149
13150 MKINSTALLDIRS=
13151 if test -n "$ac_aux_dir"; then
13152 case "$ac_aux_dir" in
13153 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13154 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13155 esac
13156 fi
13157 if test -z "$MKINSTALLDIRS"; then
13158 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13159 fi
13160
13161
13162
81ecdfbb
RW
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13164$as_echo_n "checking whether NLS is requested... " >&6; }
13165 # Check whether --enable-nls was given.
13166if test "${enable_nls+set}" = set; then :
13167 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13168else
13169 USE_NLS=yes
81ecdfbb
RW
13170fi
13171
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13173$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13174
13175
13176
13177
13178
13179
13180# Prepare PATH_SEPARATOR.
13181# The user is always right.
13182if test "${PATH_SEPARATOR+set}" != set; then
13183 echo "#! /bin/sh" >conf$$.sh
13184 echo "exit 0" >>conf$$.sh
13185 chmod +x conf$$.sh
13186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13187 PATH_SEPARATOR=';'
13b2be9c 13188 else
d7040cdb 13189 PATH_SEPARATOR=:
13b2be9c 13190 fi
d7040cdb 13191 rm -f conf$$.sh
252b5132 13192fi
13b2be9c 13193
d7040cdb
SE
13194# Find out how to test for executable files. Don't use a zero-byte file,
13195# as systems may use methods other than mode bits to determine executability.
13196cat >conf$$.file <<_ASEOF
13197#! /bin/sh
13198exit 0
13199_ASEOF
13200chmod +x conf$$.file
13201if test -x conf$$.file >/dev/null 2>&1; then
13202 ac_executable_p="test -x"
13203else
13204 ac_executable_p="test -f"
13b2be9c 13205fi
d7040cdb 13206rm -f conf$$.file
13b2be9c 13207
d7040cdb
SE
13208# Extract the first word of "msgfmt", so it can be a program name with args.
13209set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211$as_echo_n "checking for $ac_word... " >&6; }
13212if test "${ac_cv_path_MSGFMT+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
252b5132 13214else
d7040cdb
SE
13215 case "$MSGFMT" in
13216 [\\/]* | ?:[\\/]*)
13217 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13218 ;;
13219 *)
13220 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13221 for ac_dir in $PATH; do
13222 IFS="$ac_save_IFS"
13223 test -z "$ac_dir" && ac_dir=.
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13226 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13227 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13228 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13229 break 2
13230 fi
13231 fi
13232 done
13233 done
13234 IFS="$ac_save_IFS"
13235 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13236 ;;
13237esac
252b5132 13238fi
d7040cdb
SE
13239MSGFMT="$ac_cv_path_MSGFMT"
13240if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13242$as_echo "$MSGFMT" >&6; }
252b5132 13243else
81ecdfbb
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245$as_echo "no" >&6; }
252b5132 13246fi
252b5132 13247
d7040cdb
SE
13248 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13249set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13251$as_echo_n "checking for $ac_word... " >&6; }
13252if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13253 $as_echo_n "(cached) " >&6
13b2be9c 13254else
d7040cdb
SE
13255 case $GMSGFMT in
13256 [\\/]* | ?:[\\/]*)
13257 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13258 ;;
13259 *)
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13267 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13269 break 2
13270 fi
13271done
81ecdfbb
RW
13272 done
13273IFS=$as_save_IFS
252b5132 13274
d7040cdb
SE
13275 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13276 ;;
13277esac
13278fi
13279GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13280if test -n "$GMSGFMT"; then
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13282$as_echo "$GMSGFMT" >&6; }
ac48eca1 13283else
81ecdfbb
RW
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13285$as_echo "no" >&6; }
6840198f 13286fi
6840198f 13287
13b2be9c 13288
20e95c23 13289
81ecdfbb 13290
d7040cdb
SE
13291# Prepare PATH_SEPARATOR.
13292# The user is always right.
13293if test "${PATH_SEPARATOR+set}" != set; then
13294 echo "#! /bin/sh" >conf$$.sh
13295 echo "exit 0" >>conf$$.sh
13296 chmod +x conf$$.sh
13297 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13298 PATH_SEPARATOR=';'
13299 else
13300 PATH_SEPARATOR=:
13301 fi
13302 rm -f conf$$.sh
13303fi
20e95c23 13304
d7040cdb
SE
13305# Find out how to test for executable files. Don't use a zero-byte file,
13306# as systems may use methods other than mode bits to determine executability.
13307cat >conf$$.file <<_ASEOF
13308#! /bin/sh
13309exit 0
13310_ASEOF
13311chmod +x conf$$.file
13312if test -x conf$$.file >/dev/null 2>&1; then
13313 ac_executable_p="test -x"
13b2be9c 13314else
d7040cdb 13315 ac_executable_p="test -f"
13b2be9c 13316fi
d7040cdb 13317rm -f conf$$.file
20e95c23 13318
d7040cdb
SE
13319# Extract the first word of "xgettext", so it can be a program name with args.
13320set dummy xgettext; ac_word=$2
81ecdfbb
RW
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13322$as_echo_n "checking for $ac_word... " >&6; }
13323if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13324 $as_echo_n "(cached) " >&6
252b5132 13325else
d7040cdb
SE
13326 case "$XGETTEXT" in
13327 [\\/]* | ?:[\\/]*)
13328 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13329 ;;
13330 *)
13331 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13332 for ac_dir in $PATH; do
13333 IFS="$ac_save_IFS"
13334 test -z "$ac_dir" && ac_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13337 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13338 (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
13339 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13340 break 2
13341 fi
13342 fi
13343 done
13344 done
13345 IFS="$ac_save_IFS"
13346 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13347 ;;
13348esac
13b2be9c 13349fi
d7040cdb
SE
13350XGETTEXT="$ac_cv_path_XGETTEXT"
13351if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13353$as_echo "$XGETTEXT" >&6; }
d7040cdb 13354else
81ecdfbb
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356$as_echo "no" >&6; }
13b2be9c 13357fi
13b2be9c 13358
d7040cdb 13359 rm -f messages.po
20e95c23 13360
13b2be9c 13361
d7040cdb
SE
13362# Prepare PATH_SEPARATOR.
13363# The user is always right.
13364if test "${PATH_SEPARATOR+set}" != set; then
13365 echo "#! /bin/sh" >conf$$.sh
13366 echo "exit 0" >>conf$$.sh
13367 chmod +x conf$$.sh
13368 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13369 PATH_SEPARATOR=';'
13370 else
13371 PATH_SEPARATOR=:
13372 fi
13373 rm -f conf$$.sh
252b5132 13374fi
20e95c23 13375
d7040cdb
SE
13376# Find out how to test for executable files. Don't use a zero-byte file,
13377# as systems may use methods other than mode bits to determine executability.
13378cat >conf$$.file <<_ASEOF
13379#! /bin/sh
13380exit 0
13381_ASEOF
13382chmod +x conf$$.file
13383if test -x conf$$.file >/dev/null 2>&1; then
13384 ac_executable_p="test -x"
252b5132 13385else
d7040cdb
SE
13386 ac_executable_p="test -f"
13387fi
13388rm -f conf$$.file
20e95c23 13389
d7040cdb
SE
13390# Extract the first word of "msgmerge", so it can be a program name with args.
13391set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393$as_echo_n "checking for $ac_word... " >&6; }
13394if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
20e95c23 13396else
d7040cdb
SE
13397 case "$MSGMERGE" in
13398 [\\/]* | ?:[\\/]*)
13399 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13400 ;;
13401 *)
13402 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13403 for ac_dir in $PATH; do
13404 IFS="$ac_save_IFS"
13405 test -z "$ac_dir" && ac_dir=.
13406 for ac_exec_ext in '' $ac_executable_extensions; do
13407 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13408 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13409 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13410 break 2
13411 fi
13412 fi
13413 done
13414 done
13415 IFS="$ac_save_IFS"
13416 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13417 ;;
13418esac
20e95c23 13419fi
d7040cdb
SE
13420MSGMERGE="$ac_cv_path_MSGMERGE"
13421if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13423$as_echo "$MSGMERGE" >&6; }
d7040cdb 13424else
81ecdfbb
RW
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426$as_echo "no" >&6; }
20e95c23 13427fi
252b5132 13428
252b5132 13429
d7040cdb
SE
13430 if test "$GMSGFMT" != ":"; then
13431 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13432 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13433 : ;
13434 else
13435 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13437$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13438 GMSGFMT=":"
13439 fi
13440 fi
13b2be9c 13441
d7040cdb
SE
13442 if test "$XGETTEXT" != ":"; then
13443 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13444 (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
13445 : ;
13446 else
81ecdfbb
RW
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13448$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13449 XGETTEXT=":"
13450 fi
13451 rm -f messages.po
13452 fi
252b5132 13453
81ecdfbb 13454 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13455
13b2be9c 13456
81ecdfbb
RW
13457
13458
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13460$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13461 # Check whether --enable-maintainer-mode was given.
13462if test "${enable_maintainer_mode+set}" = set; then :
13463 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13464else
81ecdfbb 13465 USE_MAINTAINER_MODE=no
13b2be9c 13466fi
13b2be9c 13467
81ecdfbb
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13469$as_echo "$USE_MAINTAINER_MODE" >&6; }
13470 if test $USE_MAINTAINER_MODE = yes; then
13471 MAINTAINER_MODE_TRUE=
13472 MAINTAINER_MODE_FALSE='#'
13473else
13474 MAINTAINER_MODE_TRUE='#'
13475 MAINTAINER_MODE_FALSE=
13b2be9c 13476fi
13b2be9c 13477
81ecdfbb
RW
13478 MAINT=$MAINTAINER_MODE_TRUE
13479
13480
13481 if false; then
13482 GENINSRC_NEVER_TRUE=
13483 GENINSRC_NEVER_FALSE='#'
13b2be9c 13484else
81ecdfbb
RW
13485 GENINSRC_NEVER_TRUE='#'
13486 GENINSRC_NEVER_FALSE=
252b5132 13487fi
13b2be9c 13488
81ecdfbb
RW
13489
13490
58797674 13491for 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
13492do :
13493 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13494ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13495eval as_val=\$$as_ac_Header
13496 if test "x$as_val" = x""yes; then :
13b2be9c 13497 cat >>confdefs.h <<_ACEOF
81ecdfbb 13498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13499_ACEOF
13500
252b5132 13501fi
13b2be9c 13502
252b5132
RH
13503done
13504
df7b86aa
NC
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13506$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13507if test "${gcc_cv_header_string+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509else
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511/* end confdefs.h. */
13512#include <string.h>
13513#include <strings.h>
13514int
13515main ()
13516{
13517
13518 ;
13519 return 0;
13520}
13521_ACEOF
13522if ac_fn_c_try_compile "$LINENO"; then :
13523 gcc_cv_header_string=yes
13524else
13525 gcc_cv_header_string=no
13526fi
13527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528fi
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13530$as_echo "$gcc_cv_header_string" >&6; }
13531if test $gcc_cv_header_string = yes; then
13532
13533$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13534
13535fi
13536
d6d788bd 13537
252b5132
RH
13538# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13539# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13541$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13542if test "${host}" = "${target}"; then
13543 cross_gas=no
13544else
13545 cross_gas=yes
13b2be9c 13546
81ecdfbb 13547$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13548
13549fi
81ecdfbb
RW
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13551$as_echo "$cross_gas" >&6; }
252b5132
RH
13552
13553# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13554# for constant arguments. Useless!
81ecdfbb
RW
13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13556$as_echo_n "checking for working alloca.h... " >&6; }
13557if test "${ac_cv_working_alloca_h+set}" = set; then :
13558 $as_echo_n "(cached) " >&6
13b2be9c 13559else
81ecdfbb 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13561/* end confdefs.h. */
252b5132 13562#include <alloca.h>
13b2be9c
DJ
13563int
13564main ()
13565{
13566char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13567 if (p) return 0;
13b2be9c
DJ
13568 ;
13569 return 0;
13570}
13571_ACEOF
81ecdfbb 13572if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13573 ac_cv_working_alloca_h=yes
13574else
81ecdfbb 13575 ac_cv_working_alloca_h=no
13b2be9c 13576fi
81ecdfbb
RW
13577rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13579fi
81ecdfbb
RW
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13581$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13582if test $ac_cv_working_alloca_h = yes; then
13583
81ecdfbb 13584$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13585
13586fi
13587
81ecdfbb
RW
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13589$as_echo_n "checking for alloca... " >&6; }
13590if test "${ac_cv_func_alloca_works+set}" = set; then :
13591 $as_echo_n "(cached) " >&6
252b5132 13592else
81ecdfbb 13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13594/* end confdefs.h. */
252b5132
RH
13595#ifdef __GNUC__
13596# define alloca __builtin_alloca
13597#else
13598# ifdef _MSC_VER
13599# include <malloc.h>
13600# define alloca _alloca
13601# else
81ecdfbb 13602# ifdef HAVE_ALLOCA_H
252b5132
RH
13603# include <alloca.h>
13604# else
13605# ifdef _AIX
13606 #pragma alloca
13607# else
13608# ifndef alloca /* predefined by HP cc +Olibcalls */
13609char *alloca ();
13610# endif
13611# endif
13612# endif
13613# endif
13614#endif
13615
13b2be9c
DJ
13616int
13617main ()
13618{
13619char *p = (char *) alloca (1);
81ecdfbb 13620 if (p) return 0;
13b2be9c
DJ
13621 ;
13622 return 0;
13623}
13624_ACEOF
81ecdfbb 13625if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13626 ac_cv_func_alloca_works=yes
13627else
81ecdfbb 13628 ac_cv_func_alloca_works=no
252b5132 13629fi
81ecdfbb
RW
13630rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
252b5132 13632fi
81ecdfbb
RW
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13634$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13635
252b5132 13636if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13637
81ecdfbb 13638$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13639
13b2be9c 13640else
c8615825 13641 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13642# that cause trouble. Some versions do not even contain alloca or
13643# contain a buggy version. If you still want to use their alloca,
13644# use ar to extract alloca.o from them instead of compiling alloca.c.
13645
81ecdfbb 13646ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13647
81ecdfbb 13648$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13649
d6d788bd 13650
81ecdfbb
RW
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13652$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13653if test "${ac_cv_os_cray+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
252b5132 13655else
81ecdfbb 13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13657/* end confdefs.h. */
81ecdfbb 13658#if defined CRAY && ! defined CRAY2
252b5132
RH
13659webecray
13660#else
13661wenotbecray
13662#endif
13663
13b2be9c 13664_ACEOF
252b5132 13665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13666 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13667 ac_cv_os_cray=yes
13668else
252b5132
RH
13669 ac_cv_os_cray=no
13670fi
13671rm -f conftest*
13672
13673fi
81ecdfbb
RW
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13675$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13676if test $ac_cv_os_cray = yes; then
13b2be9c 13677 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13678 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13679ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13680eval as_val=\$$as_ac_var
13681 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13682
13683cat >>confdefs.h <<_ACEOF
252b5132 13684#define CRAY_STACKSEG_END $ac_func
13b2be9c 13685_ACEOF
252b5132 13686
13b2be9c 13687 break
252b5132
RH
13688fi
13689
13b2be9c 13690 done
252b5132
RH
13691fi
13692
81ecdfbb
RW
13693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13694$as_echo_n "checking stack direction for C alloca... " >&6; }
13695if test "${ac_cv_c_stack_direction+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
252b5132 13697else
81ecdfbb 13698 if test "$cross_compiling" = yes; then :
252b5132
RH
13699 ac_cv_c_stack_direction=0
13700else
81ecdfbb 13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13702/* end confdefs.h. */
81ecdfbb 13703$ac_includes_default
13b2be9c 13704int
252b5132
RH
13705find_stack_direction ()
13706{
13707 static char *addr = 0;
13708 auto char dummy;
13709 if (addr == 0)
13710 {
13711 addr = &dummy;
13712 return find_stack_direction ();
13713 }
13714 else
13715 return (&dummy > addr) ? 1 : -1;
13716}
13b2be9c
DJ
13717
13718int
252b5132
RH
13719main ()
13720{
81ecdfbb 13721 return find_stack_direction () < 0;
252b5132 13722}
13b2be9c 13723_ACEOF
81ecdfbb 13724if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13725 ac_cv_c_stack_direction=1
13726else
81ecdfbb 13727 ac_cv_c_stack_direction=-1
252b5132 13728fi
81ecdfbb
RW
13729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13730 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13731fi
252b5132 13732
81ecdfbb
RW
13733fi
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13735$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13736cat >>confdefs.h <<_ACEOF
252b5132 13737#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13738_ACEOF
13739
252b5132
RH
13740
13741fi
13742
81ecdfbb
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13744$as_echo_n "checking for inline... " >&6; }
13745if test "${ac_cv_c_inline+set}" = set; then :
13746 $as_echo_n "(cached) " >&6
252b5132
RH
13747else
13748 ac_cv_c_inline=no
13749for ac_kw in inline __inline__ __inline; do
81ecdfbb 13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13751/* end confdefs.h. */
13752#ifndef __cplusplus
13753typedef int foo_t;
13754static $ac_kw foo_t static_foo () {return 0; }
13755$ac_kw foo_t foo () {return 0; }
13756#endif
252b5132 13757
13b2be9c 13758_ACEOF
81ecdfbb
RW
13759if ac_fn_c_try_compile "$LINENO"; then :
13760 ac_cv_c_inline=$ac_kw
252b5132 13761fi
81ecdfbb
RW
13762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 test "$ac_cv_c_inline" != no && break
252b5132
RH
13764done
13765
13766fi
81ecdfbb
RW
13767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13768$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13769
13b2be9c 13770case $ac_cv_c_inline in
252b5132 13771 inline | yes) ;;
ab509236
L
13772 *)
13773 case $ac_cv_c_inline in
13774 no) ac_val=;;
13775 *) ac_val=$ac_cv_c_inline;;
13776 esac
13777 cat >>confdefs.h <<_ACEOF
13778#ifndef __cplusplus
13779#define inline $ac_val
13780#endif
13b2be9c 13781_ACEOF
ab509236 13782 ;;
252b5132
RH
13783esac
13784
6840198f 13785
d6d788bd 13786# VMS doesn't have unlink.
252b5132 13787for ac_func in unlink remove
81ecdfbb
RW
13788do :
13789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13790ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13791eval as_val=\$$as_ac_var
13792 if test "x$as_val" = x""yes; then :
13b2be9c 13793 cat >>confdefs.h <<_ACEOF
81ecdfbb 13794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13795_ACEOF
252b5132 13796 break
252b5132
RH
13797fi
13798done
13799
4b0296ce 13800for ac_func in sbrk setlocale
81ecdfbb 13801do :
a574142b
AM
13802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13803ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13804eval as_val=\$$as_ac_var
13805 if test "x$as_val" = x""yes; then :
13b2be9c 13806 cat >>confdefs.h <<_ACEOF
a574142b 13807#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13808_ACEOF
252b5132 13809
252b5132
RH
13810fi
13811done
13812
d6d788bd 13813
44350750
NC
13814
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13816$as_echo_n "checking for LC_MESSAGES... " >&6; }
13817if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13818 $as_echo_n "(cached) " >&6
13819else
13820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821/* end confdefs.h. */
13822#include <locale.h>
13823int
13824main ()
13825{
13826return LC_MESSAGES
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831if ac_fn_c_try_link "$LINENO"; then :
13832 am_cv_val_LC_MESSAGES=yes
13833else
13834 am_cv_val_LC_MESSAGES=no
13835fi
13836rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838fi
13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13840$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13841 if test $am_cv_val_LC_MESSAGES = yes; then
13842
13843$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13844
13845 fi
13846
13847
39bec121
TW
13848# do we need the math library?
13849case "${need_libm}" in
13b2be9c 13850yes)
39bec121 13851 LIBM=
f9c19112 13852case $host in
3725885a 13853*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 13854 # These system don't have libm, or don't need it
39bec121
TW
13855 ;;
13856*-ncr-sysv4.3*)
81ecdfbb
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13858$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13859if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13860 $as_echo_n "(cached) " >&6
39bec121 13861else
13b2be9c 13862 ac_check_lib_save_LIBS=$LIBS
39bec121 13863LIBS="-lmw $LIBS"
81ecdfbb 13864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13865/* end confdefs.h. */
13866
81ecdfbb
RW
13867/* Override any GCC internal prototype to avoid an error.
13868 Use char because int might match the return type of a GCC
13869 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13870#ifdef __cplusplus
13871extern "C"
13872#endif
13b2be9c
DJ
13873char _mwvalidcheckl ();
13874int
13875main ()
13876{
81ecdfbb 13877return _mwvalidcheckl ();
13b2be9c
DJ
13878 ;
13879 return 0;
13880}
13881_ACEOF
81ecdfbb 13882if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13883 ac_cv_lib_mw__mwvalidcheckl=yes
13884else
81ecdfbb 13885 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13886fi
81ecdfbb
RW
13887rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13889LIBS=$ac_check_lib_save_LIBS
13890fi
81ecdfbb
RW
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13892$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13893if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13894 LIBM="-lmw"
39bec121
TW
13895fi
13896
81ecdfbb
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13898$as_echo_n "checking for cos in -lm... " >&6; }
13899if test "${ac_cv_lib_m_cos+set}" = set; then :
13900 $as_echo_n "(cached) " >&6
39bec121 13901else
13b2be9c 13902 ac_check_lib_save_LIBS=$LIBS
39bec121 13903LIBS="-lm $LIBS"
81ecdfbb 13904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13905/* end confdefs.h. */
39bec121 13906
81ecdfbb
RW
13907/* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13910#ifdef __cplusplus
13911extern "C"
13912#endif
d7040cdb 13913char cos ();
13b2be9c
DJ
13914int
13915main ()
13916{
81ecdfbb 13917return cos ();
13b2be9c
DJ
13918 ;
13919 return 0;
13920}
13921_ACEOF
81ecdfbb 13922if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13923 ac_cv_lib_m_cos=yes
13b2be9c 13924else
81ecdfbb 13925 ac_cv_lib_m_cos=no
13b2be9c 13926fi
81ecdfbb
RW
13927rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13929LIBS=$ac_check_lib_save_LIBS
13930fi
81ecdfbb
RW
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13932$as_echo "$ac_cv_lib_m_cos" >&6; }
13933if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13934 LIBM="$LIBM -lm"
39bec121
TW
13935fi
13936
13937 ;;
13938*)
81ecdfbb
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13940$as_echo_n "checking for cos in -lm... " >&6; }
13941if test "${ac_cv_lib_m_cos+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
39bec121 13943else
13b2be9c 13944 ac_check_lib_save_LIBS=$LIBS
39bec121 13945LIBS="-lm $LIBS"
81ecdfbb 13946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13947/* end confdefs.h. */
39bec121 13948
81ecdfbb
RW
13949/* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13952#ifdef __cplusplus
13953extern "C"
13954#endif
d7040cdb 13955char cos ();
13b2be9c
DJ
13956int
13957main ()
13958{
81ecdfbb 13959return cos ();
13b2be9c
DJ
13960 ;
13961 return 0;
13962}
13963_ACEOF
81ecdfbb 13964if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13965 ac_cv_lib_m_cos=yes
13b2be9c 13966else
81ecdfbb 13967 ac_cv_lib_m_cos=no
13b2be9c 13968fi
81ecdfbb
RW
13969rm -f core conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13971LIBS=$ac_check_lib_save_LIBS
13972fi
81ecdfbb
RW
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13974$as_echo "$ac_cv_lib_m_cos" >&6; }
13975if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13976 LIBM="-lm"
39bec121
TW
13977fi
13978
13979 ;;
13980esac
13981
13b2be9c 13982
d7040cdb 13983
39bec121
TW
13984 ;;
13985esac
13986
252b5132
RH
13987# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13988# enough, but on some of those systems, the assert macro relies on requoting
13989# working properly!
81ecdfbb
RW
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13991$as_echo_n "checking for working assert macro... " >&6; }
13992if test "${gas_cv_assert_ok+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13b2be9c 13994else
81ecdfbb 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13996/* end confdefs.h. */
252b5132
RH
13997#include <assert.h>
13998#include <stdio.h>
13b2be9c
DJ
13999int
14000main ()
14001{
252b5132
RH
14002
14003/* check for requoting problems */
14004static int a, b, c, d;
14005static char *s;
14006assert (!strcmp(s, "foo bar baz quux"));
14007/* check for newline handling */
14008assert (a == b
14009 || c == d);
14010
13b2be9c
DJ
14011 ;
14012 return 0;
81ecdfbb
RW
14013}
14014_ACEOF
14015if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
14016 gas_cv_assert_ok=yes
14017else
81ecdfbb 14018 gas_cv_assert_ok=no
252b5132 14019fi
81ecdfbb
RW
14020rm -f core conftest.err conftest.$ac_objext \
14021 conftest$ac_exeext conftest.$ac_ext
252b5132 14022fi
81ecdfbb
RW
14023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14024$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 14025test $gas_cv_assert_ok = yes ||
81ecdfbb 14026$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 14027
d6d788bd
L
14028
14029
252b5132
RH
14030# On some systems, the system header files may not declare malloc, realloc,
14031# and free. There are places where gas needs these functions to have been
14032# declared -- such as when taking their addresses.
14033gas_test_headers="
14034#ifdef HAVE_MEMORY_H
14035#include <memory.h>
14036#endif
14037#ifdef HAVE_STRING_H
14038#include <string.h>
14039#else
14040#ifdef HAVE_STRINGS_H
14041#include <strings.h>
14042#endif
14043#endif
14044#ifdef HAVE_STDLIB_H
14045#include <stdlib.h>
14046#endif
14047#ifdef HAVE_UNISTD_H
14048#include <unistd.h>
14049#endif
14050"
14051
e8a38df5
AL
14052# Does errno.h declare errno, or do we have to add a separate declaration
14053# for it?
14054
81ecdfbb
RW
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14056$as_echo_n "checking whether declaration is required for errno... " >&6; }
14057if test "${gas_cv_decl_needed_errno+set}" = set; then :
14058 $as_echo_n "(cached) " >&6
e8a38df5 14059else
81ecdfbb 14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
14061/* end confdefs.h. */
14062
14063#ifdef HAVE_ERRNO_H
14064#include <errno.h>
14065#endif
14066
14067int
14068main ()
14069{
14070
14071typedef int f;
14072f x;
14073x = (f) errno;
14074
14075 ;
14076 return 0;
14077}
14078_ACEOF
81ecdfbb 14079if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
14080 gas_cv_decl_needed_errno=no
14081else
81ecdfbb 14082 gas_cv_decl_needed_errno=yes
e8a38df5 14083fi
81ecdfbb
RW
14084rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
e8a38df5 14086fi
81ecdfbb
RW
14087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14088$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
14089if test $gas_cv_decl_needed_errno = yes; then
14090
81ecdfbb 14091$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
14092
14093fi
14094
14095
81ecdfbb
RW
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14097$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14098if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14099 $as_echo_n "(cached) " >&6
56f36663 14100else
81ecdfbb 14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14102/* end confdefs.h. */
14103#include <unistd.h>
14104int
14105main ()
14106{
14107extern int getopt (int, char *const*, const char *);
14108 ;
14109 return 0;
14110}
14111_ACEOF
81ecdfbb 14112if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14113 gas_cv_decl_getopt_unistd_h=yes
14114else
81ecdfbb 14115 gas_cv_decl_getopt_unistd_h=no
56f36663 14116fi
81ecdfbb 14117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14118fi
14119
81ecdfbb
RW
14120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14121$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14122if test $gas_cv_decl_getopt_unistd_h = yes; then
14123
81ecdfbb 14124$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14125
14126fi
14127
e8a38df5 14128
81ecdfbb
RW
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14130$as_echo_n "checking whether declaration is required for environ... " >&6; }
14131if test "${gas_cv_decl_needed_environ+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
13b2be9c 14133else
81ecdfbb 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14135/* end confdefs.h. */
252b5132 14136$gas_test_headers
13b2be9c
DJ
14137int
14138main ()
14139{
252b5132 14140
e8a38df5 14141typedef char **f;
252b5132 14142f x;
e8a38df5 14143x = (f) environ;
252b5132 14144
13b2be9c
DJ
14145 ;
14146 return 0;
14147}
14148_ACEOF
81ecdfbb 14149if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14150 gas_cv_decl_needed_environ=no
252b5132 14151else
81ecdfbb 14152 gas_cv_decl_needed_environ=yes
252b5132 14153fi
81ecdfbb
RW
14154rm -f core conftest.err conftest.$ac_objext \
14155 conftest$ac_exeext conftest.$ac_ext
252b5132 14156fi
81ecdfbb
RW
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14158$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14159if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14160
81ecdfbb 14161$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14162
14163fi
14164
14165
81ecdfbb
RW
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14167$as_echo_n "checking whether declaration is required for ffs... " >&6; }
14168if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14169 $as_echo_n "(cached) " >&6
13b2be9c 14170else
81ecdfbb 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14172/* end confdefs.h. */
14173$gas_test_headers
14174int
14175main ()
14176{
14177
e8a38df5 14178typedef int (*f)(int);
13b2be9c 14179f x;
e8a38df5 14180x = (f) ffs;
13b2be9c
DJ
14181
14182 ;
14183 return 0;
14184}
14185_ACEOF
81ecdfbb 14186if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14187 gas_cv_decl_needed_ffs=no
13b2be9c 14188else
81ecdfbb 14189 gas_cv_decl_needed_ffs=yes
13b2be9c 14190fi
81ecdfbb
RW
14191rm -f core conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14193fi
81ecdfbb
RW
14194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14195$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14196if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14197
81ecdfbb 14198$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14199
14200fi
14201
14202
81ecdfbb
RW
14203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14204$as_echo_n "checking whether declaration is required for free... " >&6; }
14205if test "${gas_cv_decl_needed_free+set}" = set; then :
14206 $as_echo_n "(cached) " >&6
13b2be9c 14207else
81ecdfbb 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14209/* end confdefs.h. */
14210$gas_test_headers
14211int
14212main ()
14213{
14214
14215typedef void (*f)();
14216f x;
14217x = (f) free;
14218
14219 ;
14220 return 0;
14221}
14222_ACEOF
81ecdfbb 14223if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14224 gas_cv_decl_needed_free=no
14225else
81ecdfbb 14226 gas_cv_decl_needed_free=yes
13b2be9c 14227fi
81ecdfbb
RW
14228rm -f core conftest.err conftest.$ac_objext \
14229 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14230fi
81ecdfbb
RW
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14232$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14233if test $gas_cv_decl_needed_free = yes; then
14234
81ecdfbb 14235$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14236
14237fi
14238
14239
81ecdfbb
RW
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14241$as_echo_n "checking whether declaration is required for malloc... " >&6; }
14242if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14243 $as_echo_n "(cached) " >&6
13b2be9c 14244else
81ecdfbb 14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14246/* end confdefs.h. */
14247$gas_test_headers
14248int
14249main ()
14250{
14251
14252typedef char *(*f)();
14253f x;
e8a38df5 14254x = (f) malloc;
13b2be9c
DJ
14255
14256 ;
14257 return 0;
14258}
14259_ACEOF
81ecdfbb 14260if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14261 gas_cv_decl_needed_malloc=no
13b2be9c 14262else
81ecdfbb 14263 gas_cv_decl_needed_malloc=yes
13b2be9c 14264fi
81ecdfbb
RW
14265rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14267fi
81ecdfbb
RW
14268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14269$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14270if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14271
81ecdfbb 14272$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14273
14274fi
14275
14276
81ecdfbb
RW
14277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14278$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14279if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14280 $as_echo_n "(cached) " >&6
13b2be9c 14281else
81ecdfbb 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14283/* end confdefs.h. */
14284$gas_test_headers
14285int
14286main ()
14287{
14288
e8a38df5 14289typedef char *(*f)();
13b2be9c 14290f x;
e8a38df5 14291x = (f) sbrk;
13b2be9c
DJ
14292
14293 ;
14294 return 0;
14295}
14296_ACEOF
81ecdfbb 14297if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14298 gas_cv_decl_needed_sbrk=no
13b2be9c 14299else
81ecdfbb 14300 gas_cv_decl_needed_sbrk=yes
13b2be9c 14301fi
81ecdfbb
RW
14302rm -f core conftest.err conftest.$ac_objext \
14303 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14304fi
81ecdfbb
RW
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14306$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14307if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14308
81ecdfbb 14309$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14310
14311fi
14312
14313
81ecdfbb
RW
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14315$as_echo_n "checking whether declaration is required for strstr... " >&6; }
14316if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14317 $as_echo_n "(cached) " >&6
13b2be9c 14318else
81ecdfbb 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14320/* end confdefs.h. */
e8a38df5 14321$gas_test_headers
13b2be9c
DJ
14322int
14323main ()
14324{
14325
e8a38df5 14326typedef char *(*f)();
13b2be9c 14327f x;
e8a38df5 14328x = (f) strstr;
13b2be9c
DJ
14329
14330 ;
14331 return 0;
14332}
14333_ACEOF
81ecdfbb 14334if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14335 gas_cv_decl_needed_strstr=no
13b2be9c 14336else
81ecdfbb 14337 gas_cv_decl_needed_strstr=yes
13b2be9c 14338fi
81ecdfbb
RW
14339rm -f core conftest.err conftest.$ac_objext \
14340 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14341fi
81ecdfbb
RW
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14343$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14344if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14345
81ecdfbb 14346$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14347
14348fi
14349
14350
4b0296ce
AM
14351ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14352if test "x$ac_cv_have_decl_free" = x""yes; then :
14353 ac_have_decl=1
14354else
14355 ac_have_decl=0
14356fi
14357
14358cat >>confdefs.h <<_ACEOF
14359#define HAVE_DECL_FREE $ac_have_decl
14360_ACEOF
14361ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14362if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14363 ac_have_decl=1
14364else
14365 ac_have_decl=0
14366fi
14367
14368cat >>confdefs.h <<_ACEOF
14369#define HAVE_DECL_GETENV $ac_have_decl
14370_ACEOF
14371ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14372if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14373 ac_have_decl=1
14374else
14375 ac_have_decl=0
14376fi
14377
14378cat >>confdefs.h <<_ACEOF
14379#define HAVE_DECL_MALLOC $ac_have_decl
14380_ACEOF
0175442d
L
14381ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14382if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14383 ac_have_decl=1
14384else
14385 ac_have_decl=0
14386fi
14387
14388cat >>confdefs.h <<_ACEOF
14389#define HAVE_DECL_MEMPCPY $ac_have_decl
14390_ACEOF
4b0296ce
AM
14391ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14392if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14393 ac_have_decl=1
14394else
14395 ac_have_decl=0
14396fi
14397
14398cat >>confdefs.h <<_ACEOF
14399#define HAVE_DECL_REALLOC $ac_have_decl
14400_ACEOF
14401ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14402if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14403 ac_have_decl=1
14404else
14405 ac_have_decl=0
14406fi
14407
14408cat >>confdefs.h <<_ACEOF
14409#define HAVE_DECL_STPCPY $ac_have_decl
14410_ACEOF
14411ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14412if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14413 ac_have_decl=1
14414else
14415 ac_have_decl=0
14416fi
0175442d 14417
4b0296ce
AM
14418cat >>confdefs.h <<_ACEOF
14419#define HAVE_DECL_STRSTR $ac_have_decl
14420_ACEOF
81ecdfbb
RW
14421ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14422if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14423 ac_have_decl=1
6d74f28b 14424else
81ecdfbb 14425 ac_have_decl=0
6d74f28b 14426fi
6d74f28b
EB
14427
14428cat >>confdefs.h <<_ACEOF
81ecdfbb 14429#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b 14430_ACEOF
2a7f4fa9
NC
14431ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14432if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14433 ac_have_decl=1
14434else
14435 ac_have_decl=0
14436fi
14437
14438cat >>confdefs.h <<_ACEOF
14439#define HAVE_DECL_ASPRINTF $ac_have_decl
14440_ACEOF
6d74f28b
EB
14441
14442
13b2be9c 14443
c973bc5c
NC
14444case "${host}" in
14445*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14446
81ecdfbb 14447$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14448 ;;
14449esac
14450
543b7933
L
14451# Link in zlib if we can. This allows us to write compressed debug sections.
14452
14453 # Use the system's zlib library.
39f3de7c
L
14454 zlibdir="-L\$(top_builddir)/../zlib"
14455 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 14456
0138187e
L
14457# Check whether --with-system-zlib was given.
14458if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14459 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14460 zlibdir=
14461 zlibinc=
14462 fi
0acf065b 14463
0acf065b 14464fi
0acf065b 14465
0acf065b
CC
14466
14467
543b7933
L
14468
14469
b11d79f2
TG
14470# Support for VMS timestamps via cross compile
14471
14472if test "$ac_cv_header_time_h" = yes; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14474$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14475 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14476 $as_echo_n "(cached) " >&6
14477else
14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14479/* end confdefs.h. */
14480
14481#define _BSD_SOURCE 1
14482#include <time.h>
14483int
14484main ()
14485{
14486struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14487 ;
14488 return 0;
14489}
14490_ACEOF
14491if ac_fn_c_try_compile "$LINENO"; then :
14492 gas_cv_have_time_type_member_tm_gmtoff=yes
14493else
14494 gas_cv_have_time_type_member_tm_gmtoff=no
14495
14496fi
14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498fi
14499
14500 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14501
14502$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14503
14504 fi
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14506$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14507
14508fi
14509
14510if test "$ac_cv_header_sys_stat_h" = yes; then
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14512$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14513 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515else
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h. */
14518
14519#define _BSD_SOURCE 1
14520#include <sys/stat.h>
14521int
14522main ()
14523{
14524struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529if ac_fn_c_try_compile "$LINENO"; then :
14530 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14531else
14532 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14533
14534fi
14535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536fi
14537
14538 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14539
14540$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14541
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14544$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14545
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14547$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14548 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14550else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552/* end confdefs.h. */
14553
14554#define _BSD_SOURCE 1
14555#include <sys/stat.h>
14556int
14557main ()
14558{
14559struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14560 ;
14561 return 0;
14562}
14563_ACEOF
14564if ac_fn_c_try_compile "$LINENO"; then :
14565 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14566else
14567 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14568
14569fi
14570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571fi
14572
14573 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14574
14575$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14576
14577 fi
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14579$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14580
14581fi
14582
14583
c973bc5c 14584
13b2be9c 14585
108a6f8e
CD
14586
14587
14588
14589
31dd3154 14590
81ecdfbb 14591ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14592
81ecdfbb 14593ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14594
14595
14596cat >confcache <<\_ACEOF
14597# This file is a shell script that caches the results of configure
14598# tests run on this system so they can be shared between configure
14599# scripts and configure runs, see configure's option --config-cache.
14600# It is not useful on other systems. If it contains results you don't
14601# want to keep, you may remove or edit it.
14602#
14603# config.status only pays attention to the cache file if you give it
14604# the --recheck option to rerun configure.
14605#
14606# `ac_cv_env_foo' variables (set or unset) will be overridden when
14607# loading this file, other *unset* `ac_cv_foo' will be assigned the
14608# following values.
14609
14610_ACEOF
14611
14612# The following way of writing the cache mishandles newlines in values,
14613# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14614# So, we kill variables containing newlines.
13b2be9c
DJ
14615# Ultrix sh set writes to stderr and can't be redirected directly,
14616# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14617(
14618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14619 eval ac_val=\$$ac_var
14620 case $ac_val in #(
14621 *${as_nl}*)
14622 case $ac_var in #(
14623 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14624$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14625 esac
14626 case $ac_var in #(
14627 _ | IFS | as_nl) ;; #(
14628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14629 *) { eval $ac_var=; unset $ac_var;} ;;
14630 esac ;;
14631 esac
14632 done
14633
13b2be9c 14634 (set) 2>&1 |
81ecdfbb
RW
14635 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14636 *${as_nl}ac_space=\ *)
14637 # `set' does not quote correctly, so add quotes: double-quote
14638 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14639 sed -n \
ab509236
L
14640 "s/'/'\\\\''/g;
14641 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14642 ;; #(
13b2be9c
DJ
14643 *)
14644 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14645 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14646 ;;
81ecdfbb
RW
14647 esac |
14648 sort
14649) |
13b2be9c 14650 sed '
81ecdfbb 14651 /^ac_cv_env_/b end
13b2be9c 14652 t clear
81ecdfbb 14653 :clear
13b2be9c
DJ
14654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14655 t end
81ecdfbb
RW
14656 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14657 :end' >>confcache
14658if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14659 if test -w "$cache_file"; then
14660 test "x$cache_file" != "x/dev/null" &&
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14662$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14663 cat confcache >$cache_file
14664 else
81ecdfbb
RW
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14666$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14667 fi
14668fi
14669rm -f confcache
14670
14671test "x$prefix" = xNONE && prefix=$ac_default_prefix
14672# Let make expand exec_prefix.
14673test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14674
13b2be9c
DJ
14675DEFS=-DHAVE_CONFIG_H
14676
14677ac_libobjs=
14678ac_ltlibobjs=
14679for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14680 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14684 # will be set to the directory where LIBOBJS objects are built.
14685 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14686 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14687done
14688LIBOBJS=$ac_libobjs
14689
14690LTLIBOBJS=$ac_ltlibobjs
14691
14692
14693if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14694 as_fn_error "conditional \"AMDEP\" was never defined.
14695Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14696fi
14697if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14698 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14699Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700fi
14701 if test -n "$EXEEXT"; then
14702 am__EXEEXT_TRUE=
14703 am__EXEEXT_FALSE='#'
14704else
14705 am__EXEEXT_TRUE='#'
14706 am__EXEEXT_FALSE=
13b2be9c 14707fi
81ecdfbb
RW
14708
14709
13b2be9c 14710if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14711 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14712Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14713fi
d5fbea21 14714if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14715 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14716Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14717fi
13b2be9c
DJ
14718
14719: ${CONFIG_STATUS=./config.status}
81ecdfbb 14720ac_write_fail=0
13b2be9c
DJ
14721ac_clean_files_save=$ac_clean_files
14722ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14723{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14724$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14725as_write_fail=0
14726cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14727#! $SHELL
14728# Generated by $as_me.
14729# Run this file to recreate the current configuration.
14730# Compiler output produced by configure, useful for debugging
14731# configure, is in config.log if it exists.
14732
14733debug=false
14734ac_cs_recheck=false
14735ac_cs_silent=false
13b2be9c 14736
81ecdfbb
RW
14737SHELL=\${CONFIG_SHELL-$SHELL}
14738export SHELL
14739_ASEOF
14740cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14741## -------------------- ##
14742## M4sh Initialization. ##
14743## -------------------- ##
13b2be9c 14744
81ecdfbb
RW
14745# Be more Bourne compatible
14746DUALCASE=1; export DUALCASE # for MKS sh
14747if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14748 emulate sh
14749 NULLCMD=:
81ecdfbb 14750 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14751 # is contrary to our usage. Disable this feature.
14752 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14753 setopt NO_GLOB_SUBST
14754else
14755 case `(set -o) 2>/dev/null` in #(
14756 *posix*) :
14757 set -o posix ;; #(
14758 *) :
14759 ;;
14760esac
13b2be9c
DJ
14761fi
14762
81ecdfbb
RW
14763
14764as_nl='
14765'
14766export as_nl
14767# Printing a long string crashes Solaris 7 /usr/bin/printf.
14768as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14769as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14771# Prefer a ksh shell builtin over an external printf program on Solaris,
14772# but without wasting forks for bash or zsh.
14773if test -z "$BASH_VERSION$ZSH_VERSION" \
14774 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14775 as_echo='print -r --'
14776 as_echo_n='print -rn --'
14777elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14778 as_echo='printf %s\n'
14779 as_echo_n='printf %s'
14780else
14781 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14782 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14783 as_echo_n='/usr/ucb/echo -n'
14784 else
14785 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14786 as_echo_n_body='eval
14787 arg=$1;
14788 case $arg in #(
14789 *"$as_nl"*)
14790 expr "X$arg" : "X\\(.*\\)$as_nl";
14791 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14792 esac;
14793 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14794 '
14795 export as_echo_n_body
14796 as_echo_n='sh -c $as_echo_n_body as_echo'
14797 fi
14798 export as_echo_body
14799 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14800fi
14801
81ecdfbb
RW
14802# The user is always right.
14803if test "${PATH_SEPARATOR+set}" != set; then
14804 PATH_SEPARATOR=:
14805 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14806 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14807 PATH_SEPARATOR=';'
14808 }
14809fi
14810
14811
14812# IFS
14813# We need space, tab and new line, in precisely that order. Quoting is
14814# there to prevent editors from complaining about space-tab.
14815# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14816# splitting by setting IFS to empty value.)
14817IFS=" "" $as_nl"
14818
14819# Find who we are. Look in the path if we contain no directory separator.
14820case $0 in #((
14821 *[\\/]* ) as_myself=$0 ;;
14822 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14823for as_dir in $PATH
14824do
14825 IFS=$as_save_IFS
14826 test -z "$as_dir" && as_dir=.
14827 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14828 done
14829IFS=$as_save_IFS
14830
14831 ;;
14832esac
14833# We did not find ourselves, most probably we were run as `sh COMMAND'
14834# in which case we are not to be found in the path.
14835if test "x$as_myself" = x; then
14836 as_myself=$0
14837fi
14838if test ! -f "$as_myself"; then
14839 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14840 exit 1
14841fi
13b2be9c 14842
81ecdfbb
RW
14843# Unset variables that we do not need and which cause bugs (e.g. in
14844# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14845# suppresses any "Segmentation fault" message there. '((' could
14846# trigger a bug in pdksh 5.2.14.
14847for as_var in BASH_ENV ENV MAIL MAILPATH
14848do eval test x\${$as_var+set} = xset \
14849 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14850done
13b2be9c
DJ
14851PS1='$ '
14852PS2='> '
14853PS4='+ '
14854
14855# NLS nuisances.
81ecdfbb
RW
14856LC_ALL=C
14857export LC_ALL
14858LANGUAGE=C
14859export LANGUAGE
14860
14861# CDPATH.
14862(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14863
14864
14865# as_fn_error ERROR [LINENO LOG_FD]
14866# ---------------------------------
14867# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14868# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14869# script with status $?, using 1 if that was 0.
14870as_fn_error ()
14871{
14872 as_status=$?; test $as_status -eq 0 && as_status=1
14873 if test "$3"; then
14874 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14875 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14876 fi
81ecdfbb
RW
14877 $as_echo "$as_me: error: $1" >&2
14878 as_fn_exit $as_status
14879} # as_fn_error
14880
14881
14882# as_fn_set_status STATUS
14883# -----------------------
14884# Set $? to STATUS, without forking.
14885as_fn_set_status ()
14886{
14887 return $1
14888} # as_fn_set_status
14889
14890# as_fn_exit STATUS
14891# -----------------
14892# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14893as_fn_exit ()
14894{
14895 set +e
14896 as_fn_set_status $1
14897 exit $1
14898} # as_fn_exit
14899
14900# as_fn_unset VAR
14901# ---------------
14902# Portably unset VAR.
14903as_fn_unset ()
14904{
14905 { eval $1=; unset $1;}
14906}
14907as_unset=as_fn_unset
14908# as_fn_append VAR VALUE
14909# ----------------------
14910# Append the text in VALUE to the end of the definition contained in VAR. Take
14911# advantage of any shell optimizations that allow amortized linear growth over
14912# repeated appends, instead of the typical quadratic growth present in naive
14913# implementations.
14914if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14915 eval 'as_fn_append ()
14916 {
14917 eval $1+=\$2
14918 }'
14919else
14920 as_fn_append ()
14921 {
14922 eval $1=\$$1\$2
14923 }
14924fi # as_fn_append
14925
14926# as_fn_arith ARG...
14927# ------------------
14928# Perform arithmetic evaluation on the ARGs, and store the result in the
14929# global $as_val. Take advantage of shells that can avoid forks. The arguments
14930# must be portable across $(()) and expr.
14931if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14932 eval 'as_fn_arith ()
14933 {
14934 as_val=$(( $* ))
14935 }'
14936else
14937 as_fn_arith ()
14938 {
14939 as_val=`expr "$@" || test $? -eq 1`
14940 }
14941fi # as_fn_arith
14942
13b2be9c 14943
81ecdfbb
RW
14944if expr a : '\(a\)' >/dev/null 2>&1 &&
14945 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14946 as_expr=expr
14947else
14948 as_expr=false
14949fi
14950
81ecdfbb 14951if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14952 as_basename=basename
14953else
14954 as_basename=false
14955fi
14956
81ecdfbb
RW
14957if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14958 as_dirname=dirname
14959else
14960 as_dirname=false
14961fi
13b2be9c 14962
81ecdfbb 14963as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14964$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14965 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14966 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14967$as_echo X/"$0" |
14968 sed '/^.*\/\([^/][^/]*\)\/*$/{
14969 s//\1/
14970 q
14971 }
14972 /^X\/\(\/\/\)$/{
14973 s//\1/
14974 q
14975 }
14976 /^X\/\(\/\).*/{
14977 s//\1/
14978 q
14979 }
14980 s/.*/./; q'`
13b2be9c 14981
13b2be9c
DJ
14982# Avoid depending upon Character Ranges.
14983as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14984as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14985as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14986as_cr_digits='0123456789'
14987as_cr_alnum=$as_cr_Letters$as_cr_digits
14988
81ecdfbb
RW
14989ECHO_C= ECHO_N= ECHO_T=
14990case `echo -n x` in #(((((
14991-n*)
14992 case `echo 'xy\c'` in
14993 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14994 xy) ECHO_C='\c';;
14995 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14996 ECHO_T=' ';;
14997 esac;;
14998*)
14999 ECHO_N='-n';;
13b2be9c 15000esac
252b5132 15001
81ecdfbb
RW
15002rm -f conf$$ conf$$.exe conf$$.file
15003if test -d conf$$.dir; then
15004 rm -f conf$$.dir/conf$$.file
252b5132 15005else
81ecdfbb
RW
15006 rm -f conf$$.dir
15007 mkdir conf$$.dir 2>/dev/null
252b5132 15008fi
81ecdfbb
RW
15009if (echo >conf$$.file) 2>/dev/null; then
15010 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 15011 as_ln_s='ln -s'
81ecdfbb
RW
15012 # ... but there are two gotchas:
15013 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15014 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15015 # In both cases, we have to default to `cp -p'.
15016 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15017 as_ln_s='cp -p'
15018 elif ln conf$$.file conf$$ 2>/dev/null; then
15019 as_ln_s=ln
15020 else
15021 as_ln_s='cp -p'
13b2be9c 15022 fi
13b2be9c
DJ
15023else
15024 as_ln_s='cp -p'
252b5132 15025fi
81ecdfbb
RW
15026rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15027rmdir conf$$.dir 2>/dev/null
252b5132 15028
81ecdfbb
RW
15029
15030# as_fn_mkdir_p
15031# -------------
15032# Create "$as_dir" as a directory, including parents if necessary.
15033as_fn_mkdir_p ()
15034{
15035
15036 case $as_dir in #(
15037 -*) as_dir=./$as_dir;;
15038 esac
15039 test -d "$as_dir" || eval $as_mkdir_p || {
15040 as_dirs=
15041 while :; do
15042 case $as_dir in #(
15043 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15044 *) as_qdir=$as_dir;;
15045 esac
15046 as_dirs="'$as_qdir' $as_dirs"
15047 as_dir=`$as_dirname -- "$as_dir" ||
15048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15049 X"$as_dir" : 'X\(//\)[^/]' \| \
15050 X"$as_dir" : 'X\(//\)$' \| \
15051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15052$as_echo X"$as_dir" |
15053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\/\)[^/].*/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\/\)$/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\).*/{
15066 s//\1/
15067 q
15068 }
15069 s/.*/./; q'`
15070 test -d "$as_dir" && break
15071 done
15072 test -z "$as_dirs" || eval "mkdir $as_dirs"
15073 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15074
15075
15076} # as_fn_mkdir_p
13b2be9c 15077if mkdir -p . 2>/dev/null; then
81ecdfbb 15078 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 15079else
ab509236 15080 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15081 as_mkdir_p=false
15082fi
81ecdfbb
RW
15083
15084if test -x / >/dev/null 2>&1; then
15085 as_test_x='test -x'
15086else
15087 if ls -dL / >/dev/null 2>&1; then
15088 as_ls_L_option=L
15089 else
15090 as_ls_L_option=
15091 fi
15092 as_test_x='
15093 eval sh -c '\''
15094 if test -d "$1"; then
15095 test -d "$1/.";
15096 else
15097 case $1 in #(
15098 -*)set "./$1";;
15099 esac;
15100 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15101 ???[sx]*):;;*)false;;esac;fi
15102 '\'' sh
15103 '
15104fi
15105as_executable_p=$as_test_x
252b5132 15106
13b2be9c 15107# Sed expression to map a string onto a valid CPP name.
ab509236 15108as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15109
13b2be9c 15110# Sed expression to map a string onto a valid variable name.
ab509236 15111as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15112
d6d788bd 15113
13b2be9c 15114exec 6>&1
81ecdfbb
RW
15115## ----------------------------------- ##
15116## Main body of $CONFIG_STATUS script. ##
15117## ----------------------------------- ##
15118_ASEOF
15119test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15120
81ecdfbb
RW
15121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15123# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15124# values after options handling.
15125ac_log="
d8bd95ef 15126This file was extended by gas $as_me 2.26.51, which was
81ecdfbb 15127generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 15128
13b2be9c
DJ
15129 CONFIG_FILES = $CONFIG_FILES
15130 CONFIG_HEADERS = $CONFIG_HEADERS
15131 CONFIG_LINKS = $CONFIG_LINKS
15132 CONFIG_COMMANDS = $CONFIG_COMMANDS
15133 $ $0 $@
252b5132 15134
81ecdfbb
RW
15135on `(hostname || uname -n) 2>/dev/null | sed 1q`
15136"
15137
13b2be9c 15138_ACEOF
252b5132 15139
81ecdfbb
RW
15140case $ac_config_files in *"
15141"*) set x $ac_config_files; shift; ac_config_files=$*;;
15142esac
13b2be9c 15143
81ecdfbb
RW
15144case $ac_config_headers in *"
15145"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15146esac
252b5132 15147
252b5132 15148
81ecdfbb
RW
15149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150# Files that config.status was made for.
15151config_files="$ac_config_files"
15152config_headers="$ac_config_headers"
15153config_commands="$ac_config_commands"
d6d788bd 15154
81ecdfbb 15155_ACEOF
252b5132 15156
81ecdfbb 15157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15158ac_cs_usage="\
81ecdfbb
RW
15159\`$as_me' instantiates files and other configuration actions
15160from templates according to the current configuration. Unless the files
15161and actions are specified as TAGs, all are instantiated by default.
252b5132 15162
81ecdfbb 15163Usage: $0 [OPTION]... [TAG]...
252b5132 15164
13b2be9c 15165 -h, --help print this help, then exit
81ecdfbb
RW
15166 -V, --version print version number and configuration settings, then exit
15167 -q, --quiet, --silent
15168 do not print progress messages
13b2be9c
DJ
15169 -d, --debug don't remove temporary files
15170 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15171 --file=FILE[:TEMPLATE]
15172 instantiate the configuration file FILE
15173 --header=FILE[:TEMPLATE]
15174 instantiate the configuration header FILE
252b5132 15175
13b2be9c
DJ
15176Configuration files:
15177$config_files
252b5132 15178
13b2be9c
DJ
15179Configuration headers:
15180$config_headers
252b5132 15181
13b2be9c
DJ
15182Configuration commands:
15183$config_commands
252b5132 15184
81ecdfbb 15185Report bugs to the package provider."
d6d788bd 15186
81ecdfbb
RW
15187_ACEOF
15188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15189ac_cs_version="\\
d8bd95ef 15190gas config.status 2.26.51
81ecdfbb
RW
15191configured by $0, generated by GNU Autoconf 2.64,
15192 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15193
81ecdfbb 15194Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
15195This config.status script is free software; the Free Software Foundation
15196gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15197
15198ac_pwd='$ac_pwd'
15199srcdir='$srcdir'
15200INSTALL='$INSTALL'
15201MKDIR_P='$MKDIR_P'
15202AWK='$AWK'
15203test -n "\$AWK" || AWK=awk
13b2be9c 15204_ACEOF
d6d788bd 15205
81ecdfbb
RW
15206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15207# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15208ac_need_defaults=:
15209while test $# != 0
15210do
15211 case $1 in
15212 --*=*)
81ecdfbb
RW
15213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15214 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15215 ac_shift=:
c8615825 15216 ;;
81ecdfbb 15217 *)
13b2be9c
DJ
15218 ac_option=$1
15219 ac_optarg=$2
15220 ac_shift=shift
c8615825 15221 ;;
13b2be9c 15222 esac
252b5132 15223
13b2be9c
DJ
15224 case $ac_option in
15225 # Handling of the options.
13b2be9c
DJ
15226 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15227 ac_cs_recheck=: ;;
81ecdfbb
RW
15228 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15229 $as_echo "$ac_cs_version"; exit ;;
15230 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15231 debug=: ;;
15232 --file | --fil | --fi | --f )
15233 $ac_shift
81ecdfbb
RW
15234 case $ac_optarg in
15235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15236 esac
15237 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15238 ac_need_defaults=false;;
15239 --header | --heade | --head | --hea )
15240 $ac_shift
81ecdfbb
RW
15241 case $ac_optarg in
15242 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15243 esac
15244 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15245 ac_need_defaults=false;;
81ecdfbb
RW
15246 --he | --h)
15247 # Conflict between --help and --header
15248 as_fn_error "ambiguous option: \`$1'
15249Try \`$0 --help' for more information.";;
15250 --help | --hel | -h )
15251 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15253 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15254 ac_cs_silent=: ;;
c8615825 15255
13b2be9c 15256 # This is an error.
81ecdfbb
RW
15257 -*) as_fn_error "unrecognized option: \`$1'
15258Try \`$0 --help' for more information." ;;
252b5132 15259
81ecdfbb
RW
15260 *) as_fn_append ac_config_targets " $1"
15261 ac_need_defaults=false ;;
252b5132 15262
13b2be9c
DJ
15263 esac
15264 shift
15265done
252b5132 15266
13b2be9c 15267ac_configure_extra_args=
d6d788bd 15268
13b2be9c
DJ
15269if $ac_cs_silent; then
15270 exec 6>/dev/null
15271 ac_configure_extra_args="$ac_configure_extra_args --silent"
15272fi
9b2b7d69 15273
13b2be9c 15274_ACEOF
81ecdfbb 15275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15276if \$ac_cs_recheck; then
81ecdfbb
RW
15277 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15278 shift
15279 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15280 CONFIG_SHELL='$SHELL'
15281 export CONFIG_SHELL
15282 exec "\$@"
13b2be9c
DJ
15283fi
15284
15285_ACEOF
81ecdfbb
RW
15286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15287exec 5>>config.log
15288{
15289 echo
15290 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15291## Running $as_me. ##
15292_ASBOX
15293 $as_echo "$ac_log"
15294} >&5
13b2be9c 15295
81ecdfbb
RW
15296_ACEOF
15297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15298#
81ecdfbb 15299# INIT-COMMANDS
9b2b7d69 15300#
13b2be9c 15301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15302
15303
15304# The HP-UX ksh and POSIX shell print the target directory to stdout
15305# if CDPATH is set.
15306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15307
15308sed_quote_subst='$sed_quote_subst'
15309double_quote_subst='$double_quote_subst'
15310delay_variable_subst='$delay_variable_subst'
3725885a
RW
15311macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15312macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15313enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15314enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15315pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15316enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15317SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15318ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15319host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15320host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15321host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15322build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15323build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15324build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15325SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15326Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15327GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15328EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15329FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15330LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15331NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15332LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15333max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15334ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15335exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15336lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15337lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15338lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15339reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15340reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15341OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15342deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15343file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15344AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15345AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15346STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15347RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15348old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15349old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15350old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15351lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15352CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15353CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15354compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15355GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15356lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15357lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15358lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15359lt_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"`'
15360objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15361MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15362lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15363lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15364lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15365lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15366lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15367need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15368DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15369NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15370LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15371OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15372OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15373libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15374shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15375extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15376archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15377enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15378export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15379whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15380compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15381old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15382old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15383archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15384archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15385module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15386module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15387with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15388allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15389no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15390hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15391hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15392hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15393hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15394hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15395hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15396hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15397hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15398inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15399link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15400fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15401always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15402export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15403exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15404include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15405prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15406file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15407variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15408need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15409need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15410version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15411runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15412shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15413shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15414libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15415library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15416soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15417install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15418postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15419postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15420finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15421finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15422hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15423sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15424sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15425hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15426enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15427enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15428enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15429old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15430striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15431
15432LTCC='$LTCC'
15433LTCFLAGS='$LTCFLAGS'
15434compiler='$compiler_DEFAULT'
15435
3725885a
RW
15436# A function that is used when there is no print builtin or printf.
15437func_fallback_echo ()
15438{
15439 eval 'cat <<_LTECHO_EOF
15440\$1
15441_LTECHO_EOF'
15442}
15443
d7040cdb 15444# Quote evaled strings.
3725885a
RW
15445for var in SHELL \
15446ECHO \
15447SED \
d7040cdb
SE
15448GREP \
15449EGREP \
15450FGREP \
15451LD \
15452NM \
15453LN_S \
15454lt_SP2NL \
15455lt_NL2SP \
15456reload_flag \
718a6fd8 15457OBJDUMP \
d7040cdb
SE
15458deplibs_check_method \
15459file_magic_cmd \
15460AR \
15461AR_FLAGS \
15462STRIP \
15463RANLIB \
15464CC \
15465CFLAGS \
15466compiler \
15467lt_cv_sys_global_symbol_pipe \
15468lt_cv_sys_global_symbol_to_cdecl \
15469lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15470lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15471lt_prog_compiler_no_builtin_flag \
df7b86aa 15472lt_prog_compiler_wl \
f2c621e4 15473lt_prog_compiler_pic \
d7040cdb
SE
15474lt_prog_compiler_static \
15475lt_cv_prog_compiler_c_o \
15476need_locks \
718a6fd8
SE
15477DSYMUTIL \
15478NMEDIT \
15479LIPO \
15480OTOOL \
15481OTOOL64 \
d7040cdb
SE
15482shrext_cmds \
15483export_dynamic_flag_spec \
15484whole_archive_flag_spec \
15485compiler_needs_object \
15486with_gnu_ld \
15487allow_undefined_flag \
15488no_undefined_flag \
15489hardcode_libdir_flag_spec \
15490hardcode_libdir_flag_spec_ld \
15491hardcode_libdir_separator \
f2c621e4 15492fix_srcfile_path \
d7040cdb
SE
15493exclude_expsyms \
15494include_expsyms \
15495file_list_spec \
15496variables_saved_for_relink \
15497libname_spec \
15498library_names_spec \
15499soname_spec \
3725885a 15500install_override_mode \
d7040cdb
SE
15501finish_eval \
15502old_striplib \
15503striplib; do
3725885a 15504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15505 *[\\\\\\\`\\"\\\$]*)
3725885a 15506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15507 ;;
15508 *)
15509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15510 ;;
15511 esac
15512done
15513
15514# Double-quote double-evaled strings.
15515for var in reload_cmds \
15516old_postinstall_cmds \
15517old_postuninstall_cmds \
15518old_archive_cmds \
15519extract_expsyms_cmds \
15520old_archive_from_new_cmds \
15521old_archive_from_expsyms_cmds \
15522archive_cmds \
15523archive_expsym_cmds \
15524module_cmds \
15525module_expsym_cmds \
15526export_symbols_cmds \
15527prelink_cmds \
15528postinstall_cmds \
15529postuninstall_cmds \
15530finish_cmds \
15531sys_lib_search_path_spec \
15532sys_lib_dlsearch_path_spec; do
3725885a 15533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15534 *[\\\\\\\`\\"\\\$]*)
3725885a 15535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15536 ;;
15537 *)
15538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15539 ;;
15540 esac
15541done
15542
d7040cdb
SE
15543ac_aux_dir='$ac_aux_dir'
15544xsi_shell='$xsi_shell'
15545lt_shell_append='$lt_shell_append'
15546
15547# See if we are running on zsh, and set the options which allow our
15548# commands through without removal of \ escapes INIT.
15549if test -n "\${ZSH_VERSION+set}" ; then
15550 setopt NO_GLOB_SUBST
15551fi
15552
15553
15554 PACKAGE='$PACKAGE'
15555 VERSION='$VERSION'
15556 TIMESTAMP='$TIMESTAMP'
15557 RM='$RM'
15558 ofile='$ofile'
15559
15560
15561
20e95c23
DJ
15562# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15563 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15564 # from automake.
15565 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15566 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15567 LINGUAS="${LINGUAS-%UNSET%}"
15568
13b2be9c
DJ
15569target_cpu_type=${target_cpu_type}
15570 cgen_cpu_prefix=${cgen_cpu_prefix}
15571 obj_format=${obj_format}
15572 te_file=${te_file}
15573
15574_ACEOF
15575
81ecdfbb 15576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15577
81ecdfbb 15578# Handling of arguments.
13b2be9c 15579for ac_config_target in $ac_config_targets
9b2b7d69 15580do
81ecdfbb
RW
15581 case $ac_config_target in
15582 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15583 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15584 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15585 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15586 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15587 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15589 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15590 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15591 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15592
15593 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15594 esac
15595done
15596
81ecdfbb 15597
13b2be9c
DJ
15598# If the user did not use the arguments to specify the items to instantiate,
15599# then the envvar interface is used. Set only those that are not.
15600# We use the long form for the default assignment because of an extremely
15601# bizarre bug on SunOS 4.1.3.
15602if $ac_need_defaults; then
15603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15606fi
15607
15608# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15609# simply because there is no reason against having it here, and in addition,
13b2be9c 15610# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15611# Hook for its removal unless debugging.
15612# Note that there is a small window in which the directory will not be cleaned:
15613# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15614$debug ||
15615{
81ecdfbb
RW
15616 tmp=
15617 trap 'exit_status=$?
15618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15619' 0
15620 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15621}
13b2be9c 15622# Create a (secure) tmp directory for tmp files.
9b2b7d69 15623
13b2be9c 15624{
81ecdfbb 15625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15626 test -n "$tmp" && test -d "$tmp"
15627} ||
15628{
81ecdfbb
RW
15629 tmp=./conf$$-$RANDOM
15630 (umask 077 && mkdir "$tmp")
15631} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15632
15633# Set up the scripts for CONFIG_FILES section.
15634# No need to generate them if there are no CONFIG_FILES.
15635# This happens for instance with `./config.status config.h'.
15636if test -n "$CONFIG_FILES"; then
15637
15638
15639ac_cr=`echo X | tr X '\015'`
15640# On cygwin, bash can eat \r inside `` if the user requested igncr.
15641# But we know of no other shell where ac_cr would be empty at this
15642# point, so we can use a bashism as a fallback.
15643if test "x$ac_cr" = x; then
15644 eval ac_cr=\$\'\\r\'
15645fi
15646ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15647if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15648 ac_cs_awk_cr='\r'
15649else
15650 ac_cs_awk_cr=$ac_cr
15651fi
15652
15653echo 'BEGIN {' >"$tmp/subs1.awk" &&
15654_ACEOF
15655
15656
15657{
15658 echo "cat >conf$$subs.awk <<_ACEOF" &&
15659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15660 echo "_ACEOF"
15661} >conf$$subs.sh ||
15662 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15663ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15664ac_delim='%!_!# '
15665for ac_last_try in false false false false false :; do
15666 . ./conf$$subs.sh ||
15667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15668
15669 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15670 if test $ac_delim_n = $ac_delim_num; then
15671 break
15672 elif $ac_last_try; then
15673 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15674 else
15675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15676 fi
15677done
15678rm -f conf$$subs.sh
15679
15680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15681cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15682_ACEOF
15683sed -n '
15684h
15685s/^/S["/; s/!.*/"]=/
15686p
15687g
15688s/^[^!]*!//
15689:repl
15690t repl
15691s/'"$ac_delim"'$//
15692t delim
15693:nl
15694h
15695s/\(.\{148\}\).*/\1/
15696t more1
15697s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15698p
15699n
15700b repl
15701:more1
15702s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15703p
15704g
15705s/.\{148\}//
15706t nl
15707:delim
15708h
15709s/\(.\{148\}\).*/\1/
15710t more2
15711s/["\\]/\\&/g; s/^/"/; s/$/"/
15712p
15713b
15714:more2
15715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15716p
15717g
15718s/.\{148\}//
15719t delim
15720' <conf$$subs.awk | sed '
15721/^[^""]/{
15722 N
15723 s/\n//
15724}
15725' >>$CONFIG_STATUS || ac_write_fail=1
15726rm -f conf$$subs.awk
15727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15728_ACAWK
15729cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15730 for (key in S) S_is_set[key] = 1
15731 FS = "\a"
15732
15733}
13b2be9c 15734{
81ecdfbb
RW
15735 line = $ 0
15736 nfields = split(line, field, "@")
15737 substed = 0
15738 len = length(field[1])
15739 for (i = 2; i < nfields; i++) {
15740 key = field[i]
15741 keylen = length(key)
15742 if (S_is_set[key]) {
15743 value = S[key]
15744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15745 len += length(value) + length(field[++i])
15746 substed = 1
15747 } else
15748 len += 1 + keylen
15749 }
15750
15751 print line
13b2be9c 15752}
9b2b7d69 15753
81ecdfbb
RW
15754_ACAWK
15755_ACEOF
15756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15758 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15759else
15760 cat
15761fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15762 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15763_ACEOF
15764
81ecdfbb
RW
15765# VPATH may cause trouble with some makes, so we remove $(srcdir),
15766# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15767# trailing colons and then remove the whole line if VPATH becomes empty
15768# (actually we leave an empty line to preserve line numbers).
15769if test "x$srcdir" = x.; then
15770 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15771s/:*\$(srcdir):*/:/
15772s/:*\${srcdir}:*/:/
15773s/:*@srcdir@:*/:/
15774s/^\([^=]*=[ ]*\):*/\1/
15775s/:*$//
15776s/^[^=]*=[ ]*$//
15777}'
15778fi
15779
15780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15781fi # test -n "$CONFIG_FILES"
13b2be9c 15782
81ecdfbb
RW
15783# Set up the scripts for CONFIG_HEADERS section.
15784# No need to generate them if there are no CONFIG_HEADERS.
15785# This happens for instance with `./config.status Makefile'.
15786if test -n "$CONFIG_HEADERS"; then
15787cat >"$tmp/defines.awk" <<\_ACAWK ||
15788BEGIN {
15789_ACEOF
13b2be9c 15790
81ecdfbb
RW
15791# Transform confdefs.h into an awk script `defines.awk', embedded as
15792# here-document in config.status, that substitutes the proper values into
15793# config.h.in to produce config.h.
9b2b7d69 15794
81ecdfbb
RW
15795# Create a delimiter string that does not exist in confdefs.h, to ease
15796# handling of long lines.
15797ac_delim='%!_!# '
15798for ac_last_try in false false :; do
15799 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15800 if test -z "$ac_t"; then
15801 break
15802 elif $ac_last_try; then
15803 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15804 else
15805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15806 fi
15807done
15808
15809# For the awk script, D is an array of macro values keyed by name,
15810# likewise P contains macro parameters if any. Preserve backslash
15811# newline sequences.
15812
15813ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15814sed -n '
15815s/.\{148\}/&'"$ac_delim"'/g
15816t rset
15817:rset
15818s/^[ ]*#[ ]*define[ ][ ]*/ /
15819t def
15820d
15821:def
15822s/\\$//
15823t bsnl
15824s/["\\]/\\&/g
15825s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15826D["\1"]=" \3"/p
15827s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15828d
15829:bsnl
15830s/["\\]/\\&/g
15831s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15832D["\1"]=" \3\\\\\\n"\\/p
15833t cont
15834s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15835t cont
15836d
15837:cont
15838n
15839s/.\{148\}/&'"$ac_delim"'/g
15840t clear
15841:clear
15842s/\\$//
15843t bsnlc
15844s/["\\]/\\&/g; s/^/"/; s/$/"/p
15845d
15846:bsnlc
15847s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15848b cont
15849' <confdefs.h | sed '
15850s/'"$ac_delim"'/"\\\
15851"/g' >>$CONFIG_STATUS || ac_write_fail=1
15852
15853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15854 for (key in D) D_is_set[key] = 1
15855 FS = "\a"
15856}
15857/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15858 line = \$ 0
15859 split(line, arg, " ")
15860 if (arg[1] == "#") {
15861 defundef = arg[2]
15862 mac1 = arg[3]
15863 } else {
15864 defundef = substr(arg[1], 2)
15865 mac1 = arg[2]
15866 }
15867 split(mac1, mac2, "(") #)
15868 macro = mac2[1]
15869 prefix = substr(line, 1, index(line, defundef) - 1)
15870 if (D_is_set[macro]) {
15871 # Preserve the white space surrounding the "#".
15872 print prefix "define", macro P[macro] D[macro]
15873 next
15874 } else {
15875 # Replace #undef with comments. This is necessary, for example,
15876 # in the case of _POSIX_SOURCE, which is predefined and required
15877 # on some systems where configure will not decide to define it.
15878 if (defundef == "undef") {
15879 print "/*", prefix defundef, macro, "*/"
15880 next
15881 }
15882 }
15883}
15884{ print }
15885_ACAWK
13b2be9c 15886_ACEOF
81ecdfbb
RW
15887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15888 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15889fi # test -n "$CONFIG_HEADERS"
13b2be9c 15890
81ecdfbb
RW
15891
15892eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15893shift
15894for ac_tag
15895do
15896 case $ac_tag in
15897 :[FHLC]) ac_mode=$ac_tag; continue;;
15898 esac
15899 case $ac_mode$ac_tag in
15900 :[FHL]*:*);;
15901 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15902 :[FH]-) ac_tag=-:-;;
15903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15904 esac
15905 ac_save_IFS=$IFS
15906 IFS=:
15907 set x $ac_tag
15908 IFS=$ac_save_IFS
15909 shift
15910 ac_file=$1
15911 shift
15912
15913 case $ac_mode in
15914 :L) ac_source=$1;;
15915 :[FH])
15916 ac_file_inputs=
15917 for ac_f
15918 do
15919 case $ac_f in
15920 -) ac_f="$tmp/stdin";;
15921 *) # Look for the file first in the build tree, then in the source tree
15922 # (if the path is not absolute). The absolute path cannot be DOS-style,
15923 # because $ac_f cannot contain `:'.
15924 test -f "$ac_f" ||
15925 case $ac_f in
15926 [\\/$]*) false;;
15927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15928 esac ||
15929 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15930 esac
15931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15932 as_fn_append ac_file_inputs " '$ac_f'"
15933 done
15934
15935 # Let's still pretend it is `configure' which instantiates (i.e., don't
15936 # use $as_me), people would be surprised to read:
15937 # /* config.h. Generated by config.status. */
15938 configure_input='Generated from '`
15939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15940 `' by configure.'
15941 if test x"$ac_file" != x-; then
15942 configure_input="$ac_file. $configure_input"
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15944$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15945 fi
81ecdfbb
RW
15946 # Neutralize special characters interpreted by sed in replacement strings.
15947 case $configure_input in #(
15948 *\&* | *\|* | *\\* )
15949 ac_sed_conf_input=`$as_echo "$configure_input" |
15950 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15951 *) ac_sed_conf_input=$configure_input;;
15952 esac
252b5132 15953
81ecdfbb
RW
15954 case $ac_tag in
15955 *:-:* | *:-) cat >"$tmp/stdin" \
15956 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15957 esac
15958 ;;
252b5132 15959 esac
9b2b7d69 15960
81ecdfbb 15961 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15962$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15963 X"$ac_file" : 'X\(//\)[^/]' \| \
15964 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15966$as_echo X"$ac_file" |
15967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15968 s//\1/
15969 q
15970 }
15971 /^X\(\/\/\)[^/].*/{
15972 s//\1/
15973 q
15974 }
15975 /^X\(\/\/\)$/{
15976 s//\1/
15977 q
15978 }
15979 /^X\(\/\).*/{
15980 s//\1/
15981 q
15982 }
15983 s/.*/./; q'`
15984 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15985 ac_builddir=.
15986
81ecdfbb
RW
15987case "$ac_dir" in
15988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15989*)
15990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15991 # A ".." for each directory in $ac_dir_suffix.
15992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15993 case $ac_top_builddir_sub in
15994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15996 esac ;;
15997esac
15998ac_abs_top_builddir=$ac_pwd
15999ac_abs_builddir=$ac_pwd$ac_dir_suffix
16000# for backward compatibility:
16001ac_top_builddir=$ac_top_build_prefix
9b2b7d69 16002
13b2be9c 16003case $srcdir in
81ecdfbb 16004 .) # We are building in place.
13b2be9c 16005 ac_srcdir=.
81ecdfbb
RW
16006 ac_top_srcdir=$ac_top_builddir_sub
16007 ac_abs_top_srcdir=$ac_pwd ;;
16008 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 16009 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16010 ac_top_srcdir=$srcdir
16011 ac_abs_top_srcdir=$srcdir ;;
16012 *) # Relative name.
16013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16014 ac_top_srcdir=$ac_top_build_prefix$srcdir
16015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 16016esac
81ecdfbb 16017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 16018
252b5132 16019
81ecdfbb
RW
16020 case $ac_mode in
16021 :F)
16022 #
16023 # CONFIG_FILE
16024 #
9b2b7d69 16025
13b2be9c
DJ
16026 case $INSTALL in
16027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16029 esac
16030 ac_MKDIR_P=$MKDIR_P
16031 case $MKDIR_P in
16032 [\\/$]* | ?:[\\/]* ) ;;
16033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 16034 esac
81ecdfbb 16035_ACEOF
9b2b7d69 16036
81ecdfbb
RW
16037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16038# If the template does not know about datarootdir, expand it.
16039# FIXME: This hack should be removed a few years after 2.60.
16040ac_datarootdir_hack=; ac_datarootdir_seen=
16041ac_sed_dataroot='
16042/datarootdir/ {
16043 p
16044 q
16045}
16046/@datadir@/p
16047/@docdir@/p
16048/@infodir@/p
16049/@localedir@/p
16050/@mandir@/p'
16051case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16052*datarootdir*) ac_datarootdir_seen=yes;;
16053*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16055$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16056_ACEOF
16057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16058 ac_datarootdir_hack='
16059 s&@datadir@&$datadir&g
16060 s&@docdir@&$docdir&g
16061 s&@infodir@&$infodir&g
16062 s&@localedir@&$localedir&g
16063 s&@mandir@&$mandir&g
16064 s&\\\${datarootdir}&$datarootdir&g' ;;
16065esac
13b2be9c 16066_ACEOF
81ecdfbb
RW
16067
16068# Neutralize VPATH when `$srcdir' = `.'.
16069# Shell code in configure.ac might set extrasub.
16070# FIXME: do we really want to maintain this feature?
16071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072ac_sed_extra="$ac_vpsub
13b2be9c
DJ
16073$extrasub
16074_ACEOF
81ecdfbb 16075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
16076:t
16077/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16078s|@configure_input@|$ac_sed_conf_input|;t t
16079s&@top_builddir@&$ac_top_builddir_sub&;t t
16080s&@top_build_prefix@&$ac_top_build_prefix&;t t
16081s&@srcdir@&$ac_srcdir&;t t
16082s&@abs_srcdir@&$ac_abs_srcdir&;t t
16083s&@top_srcdir@&$ac_top_srcdir&;t t
16084s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16085s&@builddir@&$ac_builddir&;t t
16086s&@abs_builddir@&$ac_abs_builddir&;t t
16087s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16088s&@INSTALL@&$ac_INSTALL&;t t
16089s&@MKDIR_P@&$ac_MKDIR_P&;t t
16090$ac_datarootdir_hack
16091"
16092eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16093 || as_fn_error "could not create $ac_file" "$LINENO" 5
16094
16095test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16096 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16099which seems to be undefined. Please make sure it is defined." >&5
16100$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16101which seems to be undefined. Please make sure it is defined." >&2;}
16102
16103 rm -f "$tmp/stdin"
13b2be9c 16104 case $ac_file in
81ecdfbb
RW
16105 -) cat "$tmp/out" && rm -f "$tmp/out";;
16106 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16107 esac \
16108 || as_fn_error "could not create $ac_file" "$LINENO" 5
16109 ;;
16110 :H)
16111 #
16112 # CONFIG_HEADER
16113 #
13b2be9c 16114 if test x"$ac_file" != x-; then
81ecdfbb
RW
16115 {
16116 $as_echo "/* $configure_input */" \
16117 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16118 } >"$tmp/config.h" \
16119 || as_fn_error "could not create $ac_file" "$LINENO" 5
16120 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16122$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16123 else
81ecdfbb
RW
16124 rm -f "$ac_file"
16125 mv "$tmp/config.h" "$ac_file" \
16126 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 16127 fi
13b2be9c 16128 else
81ecdfbb
RW
16129 $as_echo "/* $configure_input */" \
16130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16131 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 16132 fi
81ecdfbb
RW
16133# Compute "$ac_file"'s index in $config_headers.
16134_am_arg="$ac_file"
13b2be9c
DJ
16135_am_stamp_count=1
16136for _am_header in $config_headers :; do
16137 case $_am_header in
81ecdfbb 16138 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16139 break ;;
16140 * )
16141 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16142 esac
16143done
81ecdfbb
RW
16144echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16145$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146 X"$_am_arg" : 'X\(//\)[^/]' \| \
16147 X"$_am_arg" : 'X\(//\)$' \| \
16148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16149$as_echo X"$_am_arg" |
16150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151 s//\1/
16152 q
16153 }
16154 /^X\(\/\/\)[^/].*/{
16155 s//\1/
16156 q
16157 }
16158 /^X\(\/\/\)$/{
16159 s//\1/
16160 q
16161 }
16162 /^X\(\/\).*/{
16163 s//\1/
16164 q
16165 }
16166 s/.*/./; q'`/stamp-h$_am_stamp_count
16167 ;;
ab509236 16168
81ecdfbb
RW
16169 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16170$as_echo "$as_me: executing $ac_file commands" >&6;}
16171 ;;
16172 esac
13b2be9c
DJ
16173
16174
81ecdfbb
RW
16175 case $ac_file$ac_mode in
16176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16177 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16178 # are listed without --file. Let's play safe and only enable the eval
16179 # if we detect the quoting.
16180 case $CONFIG_FILES in
16181 *\'*) eval set x "$CONFIG_FILES" ;;
16182 *) set x $CONFIG_FILES ;;
16183 esac
16184 shift
16185 for mf
16186 do
16187 # Strip MF so we end up with the name of the file.
16188 mf=`echo "$mf" | sed -e 's/:.*$//'`
16189 # Check whether this is an Automake generated Makefile or not.
16190 # We used to match only the files named `Makefile.in', but
16191 # some people rename them; so instead we look at the file content.
16192 # Grep'ing the first line is not enough: some people post-process
16193 # each Makefile.in and add a new line on top of each file to say so.
16194 # Grep'ing the whole file is not good either: AIX grep has a line
16195 # limit of 2048, but all sed's we know have understand at least 4000.
16196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16197 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16198$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16199 X"$mf" : 'X\(//\)[^/]' \| \
16200 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16202$as_echo X"$mf" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)[^/].*/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\/\)$/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\).*/{
16216 s//\1/
16217 q
16218 }
16219 s/.*/./; q'`
16220 else
16221 continue
16222 fi
16223 # Extract the definition of DEPDIR, am__include, and am__quote
16224 # from the Makefile without running `make'.
16225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16226 test -z "$DEPDIR" && continue
16227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16228 test -z "am__include" && continue
16229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16230 # When using ansi2knr, U may be empty or an underscore; expand it
16231 U=`sed -n 's/^U = //p' < "$mf"`
16232 # Find all dependency output files, they are included files with
16233 # $(DEPDIR) in their names. We invoke sed twice because it is the
16234 # simplest approach to changing $(DEPDIR) to its actual value in the
16235 # expansion.
16236 for file in `sed -n "
16237 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16238 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16239 # Make sure the directory exists.
16240 test -f "$dirpart/$file" && continue
16241 fdir=`$as_dirname -- "$file" ||
13b2be9c 16242$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16243 X"$file" : 'X\(//\)[^/]' \| \
16244 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16245 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16246$as_echo X"$file" |
16247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16248 s//\1/
16249 q
16250 }
16251 /^X\(\/\/\)[^/].*/{
16252 s//\1/
16253 q
16254 }
16255 /^X\(\/\/\)$/{
16256 s//\1/
16257 q
16258 }
16259 /^X\(\/\).*/{
16260 s//\1/
16261 q
16262 }
16263 s/.*/./; q'`
16264 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16265 # echo "creating $dirpart/$file"
16266 echo '# dummy' > "$dirpart/$file"
13b2be9c 16267 done
13b2be9c 16268 done
81ecdfbb 16269}
d7040cdb 16270 ;;
81ecdfbb 16271 "libtool":C)
d7040cdb
SE
16272
16273 # See if we are running on zsh, and set the options which allow our
16274 # commands through without removal of \ escapes.
16275 if test -n "${ZSH_VERSION+set}" ; then
16276 setopt NO_GLOB_SUBST
16277 fi
16278
16279 cfgfile="${ofile}T"
16280 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16281 $RM "$cfgfile"
16282
16283 cat <<_LT_EOF >> "$cfgfile"
16284#! $SHELL
16285
16286# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16287# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16288# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16289# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16290#
718a6fd8 16291# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16292# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16293# Written by Gordon Matzigkeit, 1996
d7040cdb 16294#
718a6fd8 16295# This file is part of GNU Libtool.
d7040cdb 16296#
718a6fd8
SE
16297# GNU Libtool is free software; you can redistribute it and/or
16298# modify it under the terms of the GNU General Public License as
16299# published by the Free Software Foundation; either version 2 of
16300# the License, or (at your option) any later version.
d7040cdb 16301#
718a6fd8
SE
16302# As a special exception to the GNU General Public License,
16303# if you distribute this file as part of a program or library that
16304# is built using GNU Libtool, you may include this file under the
16305# same distribution terms that you use for the rest of that program.
d7040cdb 16306#
718a6fd8
SE
16307# GNU Libtool is distributed in the hope that it will be useful,
16308# but WITHOUT ANY WARRANTY; without even the implied warranty of
16309# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16310# GNU General Public License for more details.
d7040cdb 16311#
718a6fd8
SE
16312# You should have received a copy of the GNU General Public License
16313# along with GNU Libtool; see the file COPYING. If not, a copy
16314# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16315# obtained by writing to the Free Software Foundation, Inc.,
16316# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16317
16318
16319# The names of the tagged configurations supported by this script.
16320available_tags=""
16321
16322# ### BEGIN LIBTOOL CONFIG
16323
16324# Which release of libtool.m4 was used?
16325macro_version=$macro_version
16326macro_revision=$macro_revision
16327
16328# Whether or not to build shared libraries.
16329build_libtool_libs=$enable_shared
16330
16331# Whether or not to build static libraries.
16332build_old_libs=$enable_static
16333
16334# What type of objects to build.
16335pic_mode=$pic_mode
16336
16337# Whether or not to optimize for fast installation.
16338fast_install=$enable_fast_install
16339
3725885a
RW
16340# Shell to use when invoking shell scripts.
16341SHELL=$lt_SHELL
16342
16343# An echo program that protects backslashes.
16344ECHO=$lt_ECHO
16345
d7040cdb
SE
16346# The host system.
16347host_alias=$host_alias
16348host=$host
16349host_os=$host_os
16350
16351# The build system.
16352build_alias=$build_alias
16353build=$build
16354build_os=$build_os
16355
16356# A sed program that does not truncate output.
16357SED=$lt_SED
16358
16359# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16360Xsed="\$SED -e 1s/^X//"
16361
16362# A grep program that handles long lines.
16363GREP=$lt_GREP
16364
16365# An ERE matcher.
16366EGREP=$lt_EGREP
16367
16368# A literal string matcher.
16369FGREP=$lt_FGREP
16370
16371# A BSD- or MS-compatible name lister.
16372NM=$lt_NM
16373
16374# Whether we need soft or hard links.
16375LN_S=$lt_LN_S
16376
16377# What is the maximum length of a command?
16378max_cmd_len=$max_cmd_len
16379
16380# Object file suffix (normally "o").
16381objext=$ac_objext
16382
16383# Executable file suffix (normally "").
16384exeext=$exeext
16385
16386# whether the shell understands "unset".
16387lt_unset=$lt_unset
16388
16389# turn spaces into newlines.
16390SP2NL=$lt_lt_SP2NL
16391
16392# turn newlines into spaces.
16393NL2SP=$lt_lt_NL2SP
16394
718a6fd8
SE
16395# An object symbol dumper.
16396OBJDUMP=$lt_OBJDUMP
16397
d7040cdb
SE
16398# Method to check whether dependent libraries are shared objects.
16399deplibs_check_method=$lt_deplibs_check_method
16400
f2c621e4 16401# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16402file_magic_cmd=$lt_file_magic_cmd
16403
16404# The archiver.
16405AR=$lt_AR
16406AR_FLAGS=$lt_AR_FLAGS
16407
16408# A symbol stripping program.
16409STRIP=$lt_STRIP
16410
16411# Commands used to install an old-style archive.
16412RANLIB=$lt_RANLIB
16413old_postinstall_cmds=$lt_old_postinstall_cmds
16414old_postuninstall_cmds=$lt_old_postuninstall_cmds
16415
3725885a
RW
16416# Whether to use a lock for old archive extraction.
16417lock_old_archive_extraction=$lock_old_archive_extraction
16418
d7040cdb
SE
16419# A C compiler.
16420LTCC=$lt_CC
16421
16422# LTCC compiler flags.
16423LTCFLAGS=$lt_CFLAGS
16424
16425# Take the output of nm and produce a listing of raw symbols and C names.
16426global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16427
16428# Transform the output of nm in a proper C declaration.
16429global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16430
16431# Transform the output of nm in a C name address pair.
16432global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16433
718a6fd8
SE
16434# Transform the output of nm in a C name address pair when lib prefix is needed.
16435global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16436
d7040cdb
SE
16437# The name of the directory that contains temporary libtool files.
16438objdir=$objdir
16439
d7040cdb
SE
16440# Used to examine libraries when file_magic_cmd begins with "file".
16441MAGIC_CMD=$MAGIC_CMD
16442
16443# Must we lock files when doing compilation?
16444need_locks=$lt_need_locks
16445
718a6fd8
SE
16446# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16447DSYMUTIL=$lt_DSYMUTIL
16448
16449# Tool to change global to local symbols on Mac OS X.
16450NMEDIT=$lt_NMEDIT
16451
16452# Tool to manipulate fat objects and archives on Mac OS X.
16453LIPO=$lt_LIPO
16454
16455# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16456OTOOL=$lt_OTOOL
16457
16458# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16459OTOOL64=$lt_OTOOL64
16460
d7040cdb
SE
16461# Old archive suffix (normally "a").
16462libext=$libext
16463
16464# Shared library suffix (normally ".so").
16465shrext_cmds=$lt_shrext_cmds
16466
16467# The commands to extract the exported symbol list from a shared archive.
16468extract_expsyms_cmds=$lt_extract_expsyms_cmds
16469
16470# Variables whose values should be saved in libtool wrapper scripts and
16471# restored at link time.
16472variables_saved_for_relink=$lt_variables_saved_for_relink
16473
16474# Do we need the "lib" prefix for modules?
16475need_lib_prefix=$need_lib_prefix
16476
16477# Do we need a version for libraries?
16478need_version=$need_version
16479
16480# Library versioning type.
16481version_type=$version_type
16482
16483# Shared library runtime path variable.
16484runpath_var=$runpath_var
16485
16486# Shared library path variable.
16487shlibpath_var=$shlibpath_var
16488
16489# Is shlibpath searched before the hard-coded library search path?
16490shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16491
16492# Format of library name prefix.
16493libname_spec=$lt_libname_spec
16494
16495# List of archive names. First name is the real one, the rest are links.
16496# The last name is the one that the linker finds with -lNAME
16497library_names_spec=$lt_library_names_spec
16498
16499# The coded name of the library, if different from the real name.
16500soname_spec=$lt_soname_spec
16501
3725885a
RW
16502# Permission mode override for installation of shared libraries.
16503install_override_mode=$lt_install_override_mode
16504
d7040cdb
SE
16505# Command to use after installation of a shared archive.
16506postinstall_cmds=$lt_postinstall_cmds
16507
16508# Command to use after uninstallation of a shared archive.
16509postuninstall_cmds=$lt_postuninstall_cmds
16510
16511# Commands used to finish a libtool library installation in a directory.
16512finish_cmds=$lt_finish_cmds
16513
16514# As "finish_cmds", except a single script fragment to be evaled but
16515# not shown.
16516finish_eval=$lt_finish_eval
16517
16518# Whether we should hardcode library paths into libraries.
16519hardcode_into_libs=$hardcode_into_libs
16520
16521# Compile-time system search path for libraries.
16522sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16523
16524# Run-time system search path for libraries.
16525sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16526
16527# Whether dlopen is supported.
16528dlopen_support=$enable_dlopen
16529
16530# Whether dlopen of programs is supported.
16531dlopen_self=$enable_dlopen_self
16532
16533# Whether dlopen of statically linked programs is supported.
16534dlopen_self_static=$enable_dlopen_self_static
16535
16536# Commands to strip libraries.
16537old_striplib=$lt_old_striplib
16538striplib=$lt_striplib
16539
16540
16541# The linker used to build libraries.
16542LD=$lt_LD
16543
3725885a
RW
16544# How to create reloadable object files.
16545reload_flag=$lt_reload_flag
16546reload_cmds=$lt_reload_cmds
16547
d7040cdb
SE
16548# Commands used to build an old-style archive.
16549old_archive_cmds=$lt_old_archive_cmds
16550
16551# A language specific compiler.
16552CC=$lt_compiler
16553
16554# Is the compiler the GNU compiler?
16555with_gcc=$GCC
16556
16557# Compiler flag to turn off builtin functions.
16558no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16559
df7b86aa
NC
16560# How to pass a linker flag through the compiler.
16561wl=$lt_lt_prog_compiler_wl
16562
f2c621e4
AS
16563# Additional compiler flags for building library objects.
16564pic_flag=$lt_lt_prog_compiler_pic
16565
d7040cdb
SE
16566# Compiler flag to prevent dynamic linking.
16567link_static_flag=$lt_lt_prog_compiler_static
16568
16569# Does compiler simultaneously support -c and -o options?
16570compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16571
16572# Whether or not to add -lc for building shared libraries.
16573build_libtool_need_lc=$archive_cmds_need_lc
16574
16575# Whether or not to disallow shared libs when runtime libs are static.
16576allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16577
16578# Compiler flag to allow reflexive dlopens.
16579export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16580
16581# Compiler flag to generate shared objects directly from archives.
16582whole_archive_flag_spec=$lt_whole_archive_flag_spec
16583
16584# Whether the compiler copes with passing no objects directly.
16585compiler_needs_object=$lt_compiler_needs_object
16586
16587# Create an old-style archive from a shared archive.
16588old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16589
16590# Create a temporary old-style archive to link instead of a shared archive.
16591old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16592
16593# Commands used to build a shared archive.
16594archive_cmds=$lt_archive_cmds
16595archive_expsym_cmds=$lt_archive_expsym_cmds
16596
16597# Commands used to build a loadable module if different from building
16598# a shared archive.
16599module_cmds=$lt_module_cmds
16600module_expsym_cmds=$lt_module_expsym_cmds
16601
16602# Whether we are building with GNU ld or not.
16603with_gnu_ld=$lt_with_gnu_ld
16604
16605# Flag that allows shared libraries with undefined symbols to be built.
16606allow_undefined_flag=$lt_allow_undefined_flag
16607
16608# Flag that enforces no undefined symbols.
16609no_undefined_flag=$lt_no_undefined_flag
16610
16611# Flag to hardcode \$libdir into a binary during linking.
16612# This must work even if \$libdir does not exist
16613hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16614
16615# If ld is used when linking, flag to hardcode \$libdir into a binary
16616# during linking. This must work even if \$libdir does not exist.
16617hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16618
16619# Whether we need a single "-rpath" flag with a separated argument.
16620hardcode_libdir_separator=$lt_hardcode_libdir_separator
16621
16622# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16623# DIR into the resulting binary.
16624hardcode_direct=$hardcode_direct
16625
16626# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16627# DIR into the resulting binary and the resulting library dependency is
16628# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16629# library is relocated.
16630hardcode_direct_absolute=$hardcode_direct_absolute
16631
16632# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16633# into the resulting binary.
16634hardcode_minus_L=$hardcode_minus_L
16635
16636# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16637# into the resulting binary.
16638hardcode_shlibpath_var=$hardcode_shlibpath_var
16639
16640# Set to "yes" if building a shared library automatically hardcodes DIR
16641# into the library and all subsequent libraries and executables linked
16642# against it.
16643hardcode_automatic=$hardcode_automatic
16644
16645# Set to yes if linker adds runtime paths of dependent libraries
16646# to runtime path list.
16647inherit_rpath=$inherit_rpath
16648
16649# Whether libtool must link a program against all its dependency libraries.
16650link_all_deplibs=$link_all_deplibs
16651
f2c621e4
AS
16652# Fix the shell variable \$srcfile for the compiler.
16653fix_srcfile_path=$lt_fix_srcfile_path
16654
d7040cdb
SE
16655# Set to "yes" if exported symbols are required.
16656always_export_symbols=$always_export_symbols
16657
16658# The commands to list exported symbols.
16659export_symbols_cmds=$lt_export_symbols_cmds
16660
16661# Symbols that should not be listed in the preloaded symbols.
16662exclude_expsyms=$lt_exclude_expsyms
16663
16664# Symbols that must always be exported.
16665include_expsyms=$lt_include_expsyms
16666
16667# Commands necessary for linking programs (against libraries) with templates.
16668prelink_cmds=$lt_prelink_cmds
16669
16670# Specify filename containing input files.
16671file_list_spec=$lt_file_list_spec
16672
16673# How to hardcode a shared library path into an executable.
16674hardcode_action=$hardcode_action
16675
16676# ### END LIBTOOL CONFIG
16677
16678_LT_EOF
16679
16680 case $host_os in
16681 aix3*)
16682 cat <<\_LT_EOF >> "$cfgfile"
16683# AIX sometimes has problems with the GCC collect2 program. For some
16684# reason, if we set the COLLECT_NAMES environment variable, the problems
16685# vanish in a puff of smoke.
16686if test "X${COLLECT_NAMES+set}" != Xset; then
16687 COLLECT_NAMES=
16688 export COLLECT_NAMES
16689fi
16690_LT_EOF
16691 ;;
16692 esac
16693
16694
16695ltmain="$ac_aux_dir/ltmain.sh"
16696
16697
16698 # We use sed instead of cat because bash on DJGPP gets confused if
16699 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16700 # text mode, it properly converts lines to CR/LF. This bash problem
16701 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16702 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16703 || (rm -f "$cfgfile"; exit 1)
16704
16705 case $xsi_shell in
16706 yes)
16707 cat << \_LT_EOF >> "$cfgfile"
16708
16709# func_dirname file append nondir_replacement
16710# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16711# otherwise set result to NONDIR_REPLACEMENT.
16712func_dirname ()
16713{
16714 case ${1} in
16715 */*) func_dirname_result="${1%/*}${2}" ;;
16716 * ) func_dirname_result="${3}" ;;
16717 esac
16718}
16719
16720# func_basename file
16721func_basename ()
16722{
16723 func_basename_result="${1##*/}"
16724}
16725
16726# func_dirname_and_basename file append nondir_replacement
16727# perform func_basename and func_dirname in a single function
16728# call:
16729# dirname: Compute the dirname of FILE. If nonempty,
16730# add APPEND to the result, otherwise set result
16731# to NONDIR_REPLACEMENT.
16732# value returned in "$func_dirname_result"
16733# basename: Compute filename of FILE.
16734# value retuned in "$func_basename_result"
16735# Implementation must be kept synchronized with func_dirname
16736# and func_basename. For efficiency, we do not delegate to
16737# those functions but instead duplicate the functionality here.
16738func_dirname_and_basename ()
16739{
16740 case ${1} in
16741 */*) func_dirname_result="${1%/*}${2}" ;;
16742 * ) func_dirname_result="${3}" ;;
16743 esac
16744 func_basename_result="${1##*/}"
16745}
16746
16747# func_stripname prefix suffix name
16748# strip PREFIX and SUFFIX off of NAME.
16749# PREFIX and SUFFIX must not contain globbing or regex special
16750# characters, hashes, percent signs, but SUFFIX may contain a leading
16751# dot (in which case that matches only a dot).
16752func_stripname ()
16753{
16754 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16755 # positional parameters, so assign one to ordinary parameter first.
16756 func_stripname_result=${3}
16757 func_stripname_result=${func_stripname_result#"${1}"}
16758 func_stripname_result=${func_stripname_result%"${2}"}
16759}
16760
16761# func_opt_split
16762func_opt_split ()
16763{
16764 func_opt_split_opt=${1%%=*}
16765 func_opt_split_arg=${1#*=}
16766}
16767
16768# func_lo2o object
16769func_lo2o ()
16770{
16771 case ${1} in
16772 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16773 *) func_lo2o_result=${1} ;;
16774 esac
16775}
16776
16777# func_xform libobj-or-source
16778func_xform ()
16779{
16780 func_xform_result=${1%.*}.lo
16781}
16782
16783# func_arith arithmetic-term...
16784func_arith ()
16785{
16786 func_arith_result=$(( $* ))
16787}
16788
16789# func_len string
16790# STRING may not start with a hyphen.
16791func_len ()
16792{
16793 func_len_result=${#1}
16794}
16795
16796_LT_EOF
16797 ;;
16798 *) # Bourne compatible functions.
16799 cat << \_LT_EOF >> "$cfgfile"
16800
16801# func_dirname file append nondir_replacement
16802# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16803# otherwise set result to NONDIR_REPLACEMENT.
16804func_dirname ()
16805{
16806 # Extract subdirectory from the argument.
16807 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16808 if test "X$func_dirname_result" = "X${1}"; then
16809 func_dirname_result="${3}"
16810 else
16811 func_dirname_result="$func_dirname_result${2}"
16812 fi
16813}
16814
16815# func_basename file
16816func_basename ()
16817{
16818 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16819}
16820
16821
16822# func_stripname prefix suffix name
16823# strip PREFIX and SUFFIX off of NAME.
16824# PREFIX and SUFFIX must not contain globbing or regex special
16825# characters, hashes, percent signs, but SUFFIX may contain a leading
16826# dot (in which case that matches only a dot).
16827# func_strip_suffix prefix name
16828func_stripname ()
16829{
16830 case ${2} in
16831 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16832 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16833 esac
16834}
16835
16836# sed scripts:
16837my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16838my_sed_long_arg='1s/^-[^=]*=//'
16839
16840# func_opt_split
16841func_opt_split ()
16842{
16843 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16844 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16845}
16846
16847# func_lo2o object
16848func_lo2o ()
16849{
16850 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16851}
16852
16853# func_xform libobj-or-source
16854func_xform ()
16855{
16856 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16857}
16858
16859# func_arith arithmetic-term...
16860func_arith ()
16861{
16862 func_arith_result=`expr "$@"`
16863}
16864
16865# func_len string
16866# STRING may not start with a hyphen.
16867func_len ()
16868{
16869 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16870}
16871
16872_LT_EOF
16873esac
16874
16875case $lt_shell_append in
16876 yes)
16877 cat << \_LT_EOF >> "$cfgfile"
16878
16879# func_append var value
16880# Append VALUE to the end of shell variable VAR.
16881func_append ()
16882{
16883 eval "$1+=\$2"
16884}
16885_LT_EOF
16886 ;;
16887 *)
16888 cat << \_LT_EOF >> "$cfgfile"
16889
16890# func_append var value
16891# Append VALUE to the end of shell variable VAR.
16892func_append ()
16893{
16894 eval "$1=\$$1\$2"
16895}
16896
16897_LT_EOF
16898 ;;
16899 esac
16900
16901
16902 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16903 || (rm -f "$cfgfile"; exit 1)
16904
16905 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16907 chmod +x "$ofile"
16908
13b2be9c 16909 ;;
81ecdfbb 16910 "default-1":C)
20e95c23
DJ
16911 for ac_file in $CONFIG_FILES; do
16912 # Support "outfile[:infile[:infile...]]"
16913 case "$ac_file" in
16914 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16915 esac
16916 # PO directories have a Makefile.in generated from Makefile.in.in.
16917 case "$ac_file" in */Makefile.in)
16918 # Adjust a relative srcdir.
16919 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16920 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16921 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16922 # In autoconf-2.13 it is called $ac_given_srcdir.
16923 # In autoconf-2.50 it is called $srcdir.
16924 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16925 case "$ac_given_srcdir" in
16926 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16927 /*) top_srcdir="$ac_given_srcdir" ;;
16928 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16929 esac
16930 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16931 rm -f "$ac_dir/POTFILES"
16932 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16933 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16934 POMAKEFILEDEPS="POTFILES.in"
16935 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16936 # on $ac_dir but don't depend on user-specified configuration
16937 # parameters.
16938 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16939 # The LINGUAS file contains the set of available languages.
16940 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 16941 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
16942 fi
16943 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16944 # Hide the ALL_LINGUAS assigment from automake.
16945 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16946 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16947 else
37a42ee9 16948 # The set of available languages was given in configure.ac.
20e95c23
DJ
16949 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16950 fi
16951 case "$ac_given_srcdir" in
16952 .) srcdirpre= ;;
16953 *) srcdirpre='$(srcdir)/' ;;
16954 esac
16955 POFILES=
16956 GMOFILES=
16957 UPDATEPOFILES=
16958 DUMMYPOFILES=
16959 for lang in $ALL_LINGUAS; do
16960 POFILES="$POFILES $srcdirpre$lang.po"
16961 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16962 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16963 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16964 done
16965 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16966 # environment variable.
16967 INST_LINGUAS=
16968 if test -n "$ALL_LINGUAS"; then
16969 for presentlang in $ALL_LINGUAS; do
16970 useit=no
16971 if test "%UNSET%" != "$LINGUAS"; then
16972 desiredlanguages="$LINGUAS"
16973 else
16974 desiredlanguages="$ALL_LINGUAS"
16975 fi
16976 for desiredlang in $desiredlanguages; do
16977 # Use the presentlang catalog if desiredlang is
16978 # a. equal to presentlang, or
16979 # b. a variant of presentlang (because in this case,
16980 # presentlang can be used as a fallback for messages
16981 # which are not translated in the desiredlang catalog).
16982 case "$desiredlang" in
16983 "$presentlang"*) useit=yes;;
16984 esac
16985 done
16986 if test $useit = yes; then
16987 INST_LINGUAS="$INST_LINGUAS $presentlang"
16988 fi
16989 done
16990 fi
16991 CATALOGS=
16992 if test -n "$INST_LINGUAS"; then
16993 for lang in $INST_LINGUAS; do
16994 CATALOGS="$CATALOGS $lang.gmo"
16995 done
16996 fi
16997 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16998 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"
16999 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17000 if test -f "$f"; then
17001 case "$f" in
17002 *.orig | *.bak | *~) ;;
17003 *) cat "$f" >> "$ac_dir/Makefile" ;;
17004 esac
17005 fi
17006 done
17007 fi
17008 ;;
17009 esac
17010 done ;;
81ecdfbb 17011 "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
17012 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17013 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17014 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17015 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17016 if test "x$cgen_cpu_prefix" != x ; then
17017 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 17018 fi ;;
81ecdfbb 17019
13b2be9c 17020 esac
81ecdfbb 17021done # for ac_tag
13b2be9c 17022
13b2be9c 17023
81ecdfbb 17024as_fn_exit 0
13b2be9c 17025_ACEOF
13b2be9c
DJ
17026ac_clean_files=$ac_clean_files_save
17027
81ecdfbb
RW
17028test $ac_write_fail = 0 ||
17029 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17030
13b2be9c
DJ
17031
17032# configure is writing to config.log, and then calls config.status.
17033# config.status does its own redirection, appending to config.log.
17034# Unfortunately, on DOS this fails, as config.log is still kept open
17035# by configure, so config.status won't be able to write to it; its
17036# output is simply discarded. So we exec the FD to /dev/null,
17037# effectively closing config.log, so it can be properly (re)opened and
17038# appended to by config.status. When coming back to configure, we
17039# need to make the FD available again.
17040if test "$no_create" != yes; then
17041 ac_cs_success=:
17042 ac_config_status_args=
17043 test "$silent" = yes &&
17044 ac_config_status_args="$ac_config_status_args --quiet"
17045 exec 5>/dev/null
17046 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17047 exec 5>>config.log
17048 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17049 # would make configure fail if this is the last instruction.
81ecdfbb
RW
17050 $ac_cs_success || as_fn_exit $?
17051fi
17052if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17054$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 17055fi
252b5132 17056
This page took 1.948226 seconds and 4 git commands to generate.