Sync toplevel files with GCC
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
91dc4e0a 3# Generated by GNU Autoconf 2.64 for gas 2.25.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'
91dc4e0a
TG
559PACKAGE_VERSION='2.25.51'
560PACKAGE_STRING='gas 2.25.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
643NO_WERROR
644WARN_CFLAGS
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
81ecdfbb
RW
650RANLIB
651AR
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661EGREP
662GREP
663CPP
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703target_os
704target_vendor
705target_cpu
706target
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
13b2be9c 753ac_subst_files=''
81ecdfbb
RW
754ac_user_opts='
755enable_option_checking
756enable_dependency_tracking
81ecdfbb
RW
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762enable_libtool_lock
b879806f
AM
763enable_plugins
764enable_largefile
81ecdfbb
RW
765enable_targets
766enable_checking
767enable_werror
768enable_build_warnings
769enable_nls
770enable_maintainer_mode
0138187e 771with_system_zlib
81ecdfbb
RW
772'
773 ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781CPP
782YACC
783YFLAGS'
784
252b5132
RH
785
786# Initialize some variables set by options.
13b2be9c
DJ
787ac_init_help=
788ac_init_version=false
81ecdfbb
RW
789ac_unrecognized_opts=
790ac_unrecognized_sep=
252b5132
RH
791# The variables have the same names as the options, with
792# dashes changed to underlines.
13b2be9c 793cache_file=/dev/null
252b5132 794exec_prefix=NONE
252b5132 795no_create=
252b5132
RH
796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
252b5132
RH
804verbose=
805x_includes=NONE
806x_libraries=NONE
13b2be9c
DJ
807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 813# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
252b5132
RH
819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
252b5132
RH
822includedir='${prefix}/include'
823oldincludedir='/usr/include'
2e98a7bd 824docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
252b5132 833
252b5132 834ac_prev=
81ecdfbb 835ac_dashdash=
252b5132
RH
836for ac_option
837do
252b5132
RH
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
81ecdfbb 840 eval $ac_prev=\$ac_option
252b5132
RH
841 ac_prev=
842 continue
843 fi
844
81ecdfbb
RW
845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
252b5132
RH
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
81ecdfbb
RW
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
252b5132
RH
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 859 bindir=$ac_optarg ;;
252b5132
RH
860
861 -build | --build | --buil | --bui | --bu)
13b2be9c 862 ac_prev=build_alias ;;
252b5132 863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 864 build_alias=$ac_optarg ;;
252b5132
RH
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
252b5132 875
81ecdfbb 876 -datadir | --datadir | --datadi | --datad)
252b5132 877 ac_prev=datadir ;;
81ecdfbb 878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 879 datadir=$ac_optarg ;;
252b5132 880
81ecdfbb
RW
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
252b5132 888 -disable-* | --disable-*)
81ecdfbb 889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 890 # Reject names that are not valid shell variable names.
81ecdfbb
RW
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897"enable_$ac_useropt"
898"*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
252b5132
RH
913
914 -enable-* | --enable-*)
81ecdfbb 915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 916 # Reject names that are not valid shell variable names.
81ecdfbb
RW
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923"enable_$ac_useropt"
924"*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
252b5132 927 esac
81ecdfbb 928 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
13b2be9c 937 exec_prefix=$ac_optarg ;;
252b5132
RH
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
13b2be9c
DJ
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
252b5132
RH
949
950 -host | --host | --hos | --ho)
13b2be9c 951 ac_prev=host_alias ;;
252b5132 952 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 953 host_alias=$ac_optarg ;;
252b5132 954
81ecdfbb
RW
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
252b5132
RH
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 966 includedir=$ac_optarg ;;
252b5132
RH
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 971 infodir=$ac_optarg ;;
252b5132
RH
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 976 libdir=$ac_optarg ;;
252b5132
RH
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
13b2be9c 983 libexecdir=$ac_optarg ;;
252b5132 984
81ecdfbb
RW
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
252b5132 990 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 991 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 995 localstatedir=$ac_optarg ;;
252b5132
RH
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1000 mandir=$ac_optarg ;;
252b5132
RH
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1007 | --no-cr | --no-c | -n)
252b5132
RH
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1021 oldincludedir=$ac_optarg ;;
252b5132
RH
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1026 prefix=$ac_optarg ;;
252b5132
RH
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1033 program_prefix=$ac_optarg ;;
252b5132
RH
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1040 program_suffix=$ac_optarg ;;
252b5132
RH
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1057 program_transform_name=$ac_optarg ;;
252b5132 1058
81ecdfbb
RW
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
252b5132
RH
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1074 ac_prev=sbindir ;;
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1076 | --sbi=* | --sb=*)
13b2be9c 1077 sbindir=$ac_optarg ;;
252b5132
RH
1078
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1082 | --sha | --sh)
1083 ac_prev=sharedstatedir ;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1087 | --sha=* | --sh=*)
13b2be9c 1088 sharedstatedir=$ac_optarg ;;
252b5132
RH
1089
1090 -site | --site | --sit)
1091 ac_prev=site ;;
1092 -site=* | --site=* | --sit=*)
13b2be9c 1093 site=$ac_optarg ;;
76bff705 1094
252b5132
RH
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1096 ac_prev=srcdir ;;
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1098 srcdir=$ac_optarg ;;
252b5132
RH
1099
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev=sysconfdir ;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1105 sysconfdir=$ac_optarg ;;
252b5132
RH
1106
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1108 ac_prev=target_alias ;;
252b5132 1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1110 target_alias=$ac_optarg ;;
252b5132
RH
1111
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 verbose=yes ;;
1114
13b2be9c
DJ
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version=: ;;
252b5132
RH
1117
1118 -with-* | --with-*)
81ecdfbb 1119 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1120 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid package name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1126 *"
1127"with_$ac_useropt"
1128"*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
252b5132 1131 esac
81ecdfbb 1132 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1133
1134 -without-* | --without-*)
81ecdfbb 1135 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1136 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1142 *"
1143"with_$ac_useropt"
1144"*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=no ;;
252b5132
RH
1149
1150 --x)
1151 # Obsolete; use --with-x.
1152 with_x=yes ;;
1153
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1159 x_includes=$ac_optarg ;;
252b5132
RH
1160
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1166 x_libraries=$ac_optarg ;;
252b5132 1167
81ecdfbb
RW
1168 -*) as_fn_error "unrecognized option: \`$ac_option'
1169Try \`$0 --help' for more information."
252b5132
RH
1170 ;;
1171
13b2be9c
DJ
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1178 esac
1179 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1180 export $ac_envvar ;;
1181
252b5132 1182 *)
13b2be9c 1183 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1188 ;;
1189
1190 esac
1191done
1192
1193if test -n "$ac_prev"; then
13b2be9c 1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1195 as_fn_error "missing argument to $ac_option"
c8615825 1196fi
c8615825 1197
81ecdfbb
RW
1198if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1200 no) ;;
1201 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1203 esac
81ecdfbb 1204fi
252b5132 1205
81ecdfbb
RW
1206# Check all directory arguments for consistency.
1207for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
252b5132 1211do
81ecdfbb
RW
1212 eval ac_val=\$$ac_var
1213 # Remove trailing slashes.
1214 case $ac_val in
1215 */ )
1216 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\$ac_val;;
1218 esac
1219 # Be sure to have absolute directory names.
13b2be9c 1220 case $ac_val in
81ecdfbb
RW
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1223 esac
81ecdfbb 1224 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1225done
1226
13b2be9c
DJ
1227# There might be people who depend on the old broken behavior: `$host'
1228# used to hold the argument of --host etc.
1229# FIXME: To remove some day.
1230build=$build_alias
1231host=$host_alias
1232target=$target_alias
1233
1234# FIXME: To remove some day.
1235if test "x$host_alias" != x; then
1236 if test "x$build_alias" = x; then
1237 cross_compiling=maybe
81ecdfbb 1238 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1239 If a cross compiler is detected then cross compile mode will be used." >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1241 cross_compiling=yes
1242 fi
1243fi
9b2b7d69 1244
13b2be9c
DJ
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
252b5132 1249
252b5132 1250
81ecdfbb
RW
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error "working directory cannot be determined"
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error "pwd does not report name of working directory"
1257
1258
252b5132
RH
1259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261 ac_srcdir_defaulted=yes
81ecdfbb
RW
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir=`$as_dirname -- "$as_myself" ||
1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268$as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)[^/].*/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\/\)$/{
1278 s//\1/
1279 q
1280 }
1281 /^X\(\/\).*/{
1282 s//\1/
1283 q
1284 }
1285 s/.*/./; q'`
252b5132 1286 srcdir=$ac_confdir
81ecdfbb 1287 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1288 srcdir=..
1289 fi
1290else
1291 ac_srcdir_defaulted=no
1292fi
81ecdfbb
RW
1293if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1296fi
1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298ac_abs_confdir=`(
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1300 pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_env_${ac_var}_value=\$${ac_var}
1314 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
d6d788bd 1317
13b2be9c
DJ
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1324 cat <<_ACEOF
91dc4e0a 1325\`configure' configures gas 2.25.51 to adapt to many kinds of systems.
9b2b7d69 1326
13b2be9c 1327Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1328
13b2be9c
DJ
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1331
13b2be9c 1332Defaults for the options are specified in brackets.
9b2b7d69 1333
13b2be9c
DJ
1334Configuration:
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344
13b2be9c
DJ
1345Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1347 [$ac_default_prefix]
13b2be9c 1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1349 [PREFIX]
9b2b7d69 1350
13b2be9c
DJ
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
9b2b7d69 1355
13b2be9c 1356For better control, use the options below.
9b2b7d69 1357
13b2be9c 1358Fine tuning of the installation directories:
81ecdfbb
RW
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1373 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1378_ACEOF
9b2b7d69 1379
13b2be9c 1380 cat <<\_ACEOF
9b2b7d69 1381
13b2be9c
DJ
1382Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1386
13b2be9c
DJ
1387System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1391_ACEOF
9b2b7d69 1392fi
9b2b7d69 1393
13b2be9c 1394if test -n "$ac_init_help"; then
2e98a7bd 1395 case $ac_init_help in
91dc4e0a 1396 short | recursive ) echo "Configuration of gas 2.25.51:";;
2e98a7bd 1397 esac
13b2be9c 1398 cat <<\_ACEOF
9b2b7d69 1399
13b2be9c 1400Optional Features:
81ecdfbb 1401 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1406 --enable-shared[=PKGS] build shared libraries [default=yes]
1407 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1408 --enable-fast-install[=PKGS]
1409 optimize for fast installation [default=yes]
13b2be9c 1410 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1411 --enable-plugins Enable support for plugins
1412 --disable-largefile omit support for large files
241a6c40 1413 --enable-targets alternative target configurations besides the primary
c43a438d 1414 --enable-checking enable run-time checks
241a6c40
AM
1415 --enable-werror treat compile warnings as errors
1416 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1417 --disable-nls do not use Native Language Support
ab509236
L
1418 --enable-maintainer-mode enable make rules and dependencies not useful
1419 (and sometimes confusing) to the casual installer
9b2b7d69 1420
13b2be9c
DJ
1421Optional Packages:
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
0138187e 1427 --with-system-zlib use installed libz
9b2b7d69 1428
13b2be9c
DJ
1429Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
81ecdfbb
RW
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
13b2be9c 1437 CPP C preprocessor
81ecdfbb
RW
1438 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1439 the first program found out of: `bison -y', `byacc', `yacc'.
1440 YFLAGS The list of arguments that will be passed by default to $YACC.
1441 This script will default YFLAGS to the empty string to avoid a
1442 default value of `-d' given by some make applications.
13b2be9c
DJ
1443
1444Use these variables to override the choices made by `configure' or to help
1445it to find libraries and programs with nonstandard names/locations.
1446
81ecdfbb 1447Report bugs to the package provider.
13b2be9c 1448_ACEOF
81ecdfbb 1449ac_status=$?
9b2b7d69 1450fi
9b2b7d69 1451
13b2be9c
DJ
1452if test "$ac_init_help" = "recursive"; then
1453 # If there are subdirs, report their specific --help.
13b2be9c 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1455 test -d "$ac_dir" ||
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1457 continue
13b2be9c
DJ
1458 ac_builddir=.
1459
81ecdfbb
RW
1460case "$ac_dir" in
1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462*)
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1464 # A ".." for each directory in $ac_dir_suffix.
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1466 case $ac_top_builddir_sub in
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1469 esac ;;
1470esac
1471ac_abs_top_builddir=$ac_pwd
1472ac_abs_builddir=$ac_pwd$ac_dir_suffix
1473# for backward compatibility:
1474ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1475
13b2be9c 1476case $srcdir in
81ecdfbb 1477 .) # We are building in place.
13b2be9c 1478 ac_srcdir=.
81ecdfbb
RW
1479 ac_top_srcdir=$ac_top_builddir_sub
1480 ac_abs_top_srcdir=$ac_pwd ;;
1481 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1482 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1483 ac_top_srcdir=$srcdir
1484 ac_abs_top_srcdir=$srcdir ;;
1485 *) # Relative name.
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1489esac
81ecdfbb
RW
1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491
1492 cd "$ac_dir" || { ac_status=$?; continue; }
1493 # Check for guested configure.
1494 if test -f "$ac_srcdir/configure.gnu"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1497 elif test -f "$ac_srcdir/configure"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1500 else
81ecdfbb
RW
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 fi || ac_status=$?
1503 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1504 done
1505fi
6840198f 1506
81ecdfbb 1507test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1508if $ac_init_version; then
1509 cat <<\_ACEOF
91dc4e0a 1510gas configure 2.25.51
81ecdfbb 1511generated by GNU Autoconf 2.64
c8615825 1512
81ecdfbb 1513Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1514This configure script is free software; the Free Software Foundation
1515gives unlimited permission to copy, distribute and modify it.
1516_ACEOF
81ecdfbb 1517 exit
13b2be9c 1518fi
c8615825 1519
81ecdfbb
RW
1520## ------------------------ ##
1521## Autoconf initialization. ##
1522## ------------------------ ##
c8615825 1523
81ecdfbb
RW
1524# ac_fn_c_try_compile LINENO
1525# --------------------------
1526# Try to compile conftest.$ac_ext, and return whether this succeeded.
1527ac_fn_c_try_compile ()
13b2be9c 1528{
81ecdfbb
RW
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 rm -f conftest.$ac_objext
1531 if { { ac_try="$ac_compile"
1532case "(($ac_try" in
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534 *) ac_try_echo=$ac_try;;
1535esac
1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537$as_echo "$ac_try_echo"; } >&5
1538 (eval "$ac_compile") 2>conftest.err
1539 ac_status=$?
1540 if test -s conftest.err; then
1541 grep -v '^ *+' conftest.err >conftest.er1
1542 cat conftest.er1 >&5
1543 mv -f conftest.er1 conftest.err
1544 fi
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546 test $ac_status = 0; } && {
1547 test -z "$ac_c_werror_flag" ||
1548 test ! -s conftest.err
1549 } && test -s conftest.$ac_objext; then :
1550 ac_retval=0
1551else
1552 $as_echo "$as_me: failed program was:" >&5
1553sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1554
81ecdfbb
RW
1555 ac_retval=1
1556fi
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 return $ac_retval
13b2be9c 1559
81ecdfbb 1560} # ac_fn_c_try_compile
13b2be9c 1561
81ecdfbb
RW
1562# ac_fn_c_try_link LINENO
1563# -----------------------
1564# Try to link conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_link ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 $as_test_x conftest$ac_exeext
1590 }; then :
1591 ac_retval=0
1592else
1593 $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1
1597fi
1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1600 # interfere with the next link command; also delete a directory that is
1601 # left behind by Apple's compiler. We do this before executing the actions.
1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1604 return $ac_retval
1605
1606} # ac_fn_c_try_link
1607
1608# ac_fn_c_try_cpp LINENO
1609# ----------------------
1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611ac_fn_c_try_cpp ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_cpp conftest.$ac_ext"
1615case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } >/dev/null && {
1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
1637
1638 ac_retval=1
1639fi
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 return $ac_retval
1642
1643} # ac_fn_c_try_cpp
1644
1645# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1646# -------------------------------------------------------
1647# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1648# the include files in INCLUDES and setting the cache variable VAR
1649# accordingly.
1650ac_fn_c_check_header_mongrel ()
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1657 $as_echo_n "(cached) " >&6
1658fi
1659eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661$as_echo "$ac_res" >&6; }
1662else
1663 # Is the header compilable?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1665$as_echo_n "checking $2 usability... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668$4
1669#include <$2>
1670_ACEOF
1671if ac_fn_c_try_compile "$LINENO"; then :
1672 ac_header_compiler=yes
1673else
1674 ac_header_compiler=no
1675fi
1676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1678$as_echo "$ac_header_compiler" >&6; }
1679
1680# Is the header present?
1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1682$as_echo_n "checking $2 presence... " >&6; }
1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684/* end confdefs.h. */
1685#include <$2>
1686_ACEOF
1687if ac_fn_c_try_cpp "$LINENO"; then :
1688 ac_header_preproc=yes
1689else
1690 ac_header_preproc=no
1691fi
1692rm -f conftest.err conftest.$ac_ext
1693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1694$as_echo "$ac_header_preproc" >&6; }
1695
1696# So? What about this header?
1697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1698 yes:no: )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1700$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 no:yes:* )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1706$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1708$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1710$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1712$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1715 ;;
1716esac
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718$as_echo_n "checking for $2... " >&6; }
1719if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 $as_echo_n "(cached) " >&6
1721else
1722 eval "$3=\$ac_header_compiler"
1723fi
1724eval ac_res=\$$3
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726$as_echo "$ac_res" >&6; }
1727fi
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729
1730} # ac_fn_c_check_header_mongrel
1731
1732# ac_fn_c_try_run LINENO
1733# ----------------------
1734# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735# that executables *can* be run.
1736ac_fn_c_try_run ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_link"
1740case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1743esac
1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745$as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_link") 2>&5
1747 ac_status=$?
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750 { { case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_try") 2>&5
1757 ac_status=$?
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; }; }; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: program exited with status $ac_status" >&5
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=$ac_status
1767fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 return $ac_retval
1771
1772} # ac_fn_c_try_run
1773
1774# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists and can be compiled using the include files in
1777# INCLUDES, setting the cache variable VAR accordingly.
1778ac_fn_c_check_header_compile ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782$as_echo_n "checking for $2... " >&6; }
1783if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789#include <$2>
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 eval "$3=yes"
1793else
1794 eval "$3=no"
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803} # ac_fn_c_check_header_compile
1804
1805# ac_fn_c_check_func LINENO FUNC VAR
1806# ----------------------------------
1807# Tests whether FUNC exists, setting the cache variable VAR accordingly
1808ac_fn_c_check_func ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1815else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820#define $2 innocuous_$2
1821
1822/* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827#ifdef __STDC__
1828# include <limits.h>
1829#else
1830# include <assert.h>
1831#endif
1832
1833#undef $2
1834
1835/* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838#ifdef __cplusplus
1839extern "C"
1840#endif
1841char $2 ();
1842/* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845#if defined __stub_$2 || defined __stub___$2
1846choke me
1847#endif
1848
1849int
1850main ()
1851{
1852return $2 ();
1853 ;
1854 return 0;
1855}
1856_ACEOF
1857if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859else
1860 eval "$3=no"
1861fi
1862rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870} # ac_fn_c_check_func
1871
1872# ac_fn_c_check_decl LINENO SYMBOL VAR
1873# ------------------------------------
1874# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1875ac_fn_c_check_decl ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1878 as_decl_name=`echo $2|sed 's/ *(.*//'`
1879 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1881$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1882if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1883 $as_echo_n "(cached) " >&6
1884else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h. */
1887$4
1888int
1889main ()
1890{
360cfc9c
AM
1891#ifndef $as_decl_name
1892#ifdef __cplusplus
1893 (void) $as_decl_use;
1894#else
1895 (void) $as_decl_name;
1896#endif
81ecdfbb
RW
1897#endif
1898
1899 ;
1900 return 0;
1901}
1902_ACEOF
1903if ac_fn_c_try_compile "$LINENO"; then :
1904 eval "$3=yes"
1905else
1906 eval "$3=no"
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
1915} # ac_fn_c_check_decl
1916cat >config.log <<_ACEOF
1917This file contains any messages produced by compilers while
1918running configure, to aid debugging if configure makes a mistake.
1919
91dc4e0a 1920It was created by gas $as_me 2.25.51, which was
81ecdfbb
RW
1921generated by GNU Autoconf 2.64. Invocation command line was
1922
1923 $ $0 $@
1924
1925_ACEOF
1926exec 5>>config.log
1927{
1928cat <<_ASUNAME
1929## --------- ##
1930## Platform. ##
1931## --------- ##
1932
1933hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1934uname -m = `(uname -m) 2>/dev/null || echo unknown`
1935uname -r = `(uname -r) 2>/dev/null || echo unknown`
1936uname -s = `(uname -s) 2>/dev/null || echo unknown`
1937uname -v = `(uname -v) 2>/dev/null || echo unknown`
1938
1939/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1940/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1941
1942/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1943/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1944/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1945/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1946/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1947/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1948/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1949
1950_ASUNAME
1951
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1957 $as_echo "PATH: $as_dir"
1958 done
1959IFS=$as_save_IFS
9b2b7d69 1960
13b2be9c 1961} >&5
6840198f 1962
13b2be9c 1963cat >&5 <<_ACEOF
c8615825 1964
9b2b7d69 1965
13b2be9c
DJ
1966## ----------- ##
1967## Core tests. ##
1968## ----------- ##
87ccc1b0 1969
13b2be9c 1970_ACEOF
9b2b7d69 1971
13b2be9c
DJ
1972
1973# Keep a trace of the command line.
1974# Strip out --no-create and --no-recursion so they do not pile up.
1975# Strip out --silent because we don't want to record it for future runs.
1976# Also quote any args containing shell meta-characters.
1977# Make two passes to allow for proper duplicate-argument suppression.
1978ac_configure_args=
1979ac_configure_args0=
1980ac_configure_args1=
13b2be9c
DJ
1981ac_must_keep_next=false
1982for ac_pass in 1 2
1983do
1984 for ac_arg
1985 do
1986 case $ac_arg in
1987 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1989 | -silent | --silent | --silen | --sile | --sil)
1990 continue ;;
81ecdfbb
RW
1991 *\'*)
1992 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
1993 esac
1994 case $ac_pass in
81ecdfbb 1995 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 1996 2)
81ecdfbb 1997 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 1998 if test $ac_must_keep_next = true; then
ab509236 1999 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2000 else
ab509236
L
2001 case $ac_arg in
2002 *=* | --config-cache | -C | -disable-* | --disable-* \
2003 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2004 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2005 | -with-* | --with-* | -without-* | --without-* | --x)
2006 case "$ac_configure_args0 " in
2007 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008 esac
2009 ;;
2010 -* ) ac_must_keep_next=true ;;
2011 esac
13b2be9c 2012 fi
81ecdfbb 2013 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2014 ;;
2015 esac
2016 done
13b2be9c 2017done
81ecdfbb
RW
2018{ ac_configure_args0=; unset ac_configure_args0;}
2019{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2020
2021# When interrupted or exit'd, cleanup temporary files, and complete
2022# config.log. We remove comments because anyway the quotes in there
2023# would cause problems or look ugly.
81ecdfbb
RW
2024# WARNING: Use '\'' to represent an apostrophe within the trap.
2025# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2026trap 'exit_status=$?
2027 # Save into config.log some information that might help in debugging.
2028 {
2029 echo
2030
2031 cat <<\_ASBOX
2032## ---------------- ##
2033## Cache variables. ##
2034## ---------------- ##
2035_ASBOX
2036 echo
2037 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2038(
2039 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2040 eval ac_val=\$$ac_var
2041 case $ac_val in #(
2042 *${as_nl}*)
2043 case $ac_var in #(
2044 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2045$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2046 esac
2047 case $ac_var in #(
2048 _ | IFS | as_nl) ;; #(
2049 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2050 *) { eval $ac_var=; unset $ac_var;} ;;
2051 esac ;;
2052 esac
2053 done
13b2be9c 2054 (set) 2>&1 |
81ecdfbb
RW
2055 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2056 *${as_nl}ac_space=\ *)
13b2be9c 2057 sed -n \
81ecdfbb
RW
2058 "s/'\''/'\''\\\\'\'''\''/g;
2059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2060 ;; #(
13b2be9c 2061 *)
81ecdfbb 2062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2063 ;;
81ecdfbb
RW
2064 esac |
2065 sort
2066)
13b2be9c
DJ
2067 echo
2068
2069 cat <<\_ASBOX
2070## ----------------- ##
2071## Output variables. ##
2072## ----------------- ##
2073_ASBOX
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
81ecdfbb
RW
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
2086 cat <<\_ASBOX
81ecdfbb
RW
2087## ------------------- ##
2088## File substitutions. ##
2089## ------------------- ##
13b2be9c
DJ
2090_ASBOX
2091 echo
2092 for ac_var in $ac_subst_files
2093 do
81ecdfbb
RW
2094 eval ac_val=\$$ac_var
2095 case $ac_val in
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097 esac
2098 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2099 done | sort
2100 echo
2101 fi
2102
2103 if test -s confdefs.h; then
2104 cat <<\_ASBOX
2105## ----------- ##
2106## confdefs.h. ##
2107## ----------- ##
2108_ASBOX
2109 echo
81ecdfbb 2110 cat confdefs.h
13b2be9c
DJ
2111 echo
2112 fi
2113 test "$ac_signal" != 0 &&
81ecdfbb
RW
2114 $as_echo "$as_me: caught signal $ac_signal"
2115 $as_echo "$as_me: exit $exit_status"
13b2be9c 2116 } >&5
81ecdfbb
RW
2117 rm -f core *.core core.conftest.* &&
2118 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2119 exit $exit_status
81ecdfbb 2120' 0
13b2be9c 2121for ac_signal in 1 2 13 15; do
81ecdfbb 2122 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2123done
2124ac_signal=0
2125
2126# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2127rm -f -r conftest* confdefs.h
2128
2129$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2130
2131# Predefined preprocessor variables.
2132
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_NAME "$PACKAGE_NAME"
2135_ACEOF
2136
13b2be9c
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139_ACEOF
2140
13b2be9c
DJ
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_VERSION "$PACKAGE_VERSION"
2143_ACEOF
2144
13b2be9c
DJ
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_STRING "$PACKAGE_STRING"
2147_ACEOF
2148
13b2be9c
DJ
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151_ACEOF
2152
81ecdfbb
RW
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_URL "$PACKAGE_URL"
2155_ACEOF
2156
13b2be9c
DJ
2157
2158# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2159# Prefer an explicitly selected file to automatically selected ones.
2160ac_site_file1=NONE
2161ac_site_file2=NONE
2162if test -n "$CONFIG_SITE"; then
2163 ac_site_file1=$CONFIG_SITE
2164elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2167else
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2170fi
2171for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172do
2173 test "x$ac_site_file" = xNONE && continue
13b2be9c 2174 if test -r "$ac_site_file"; then
81ecdfbb
RW
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2177 sed 's/^/| /' "$ac_site_file" >&5
2178 . "$ac_site_file"
2179 fi
2180done
2181
2182if test -r "$cache_file"; then
2183 # Some versions of bash will fail to source /dev/null (special
2184 # files actually), so we avoid doing that.
2185 if test -f "$cache_file"; then
81ecdfbb
RW
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2187$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2188 case $cache_file in
81ecdfbb
RW
2189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
13b2be9c
DJ
2191 esac
2192 fi
2193else
81ecdfbb
RW
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2195$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2196 >$cache_file
2197fi
2198
2199# Check that the precious variables saved in the cache have kept the same
2200# value.
2201ac_cache_corrupted=false
81ecdfbb 2202for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2207 case $ac_old_set,$ac_new_set in
2208 set,)
81ecdfbb
RW
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2210$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2211 ac_cache_corrupted=: ;;
2212 ,set)
81ecdfbb
RW
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2214$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2215 ac_cache_corrupted=: ;;
2216 ,);;
2217 *)
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2224$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2228$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2230 fi
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2232$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2234$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
81ecdfbb 2240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2246 esac
2247 fi
2248done
2249if $ac_cache_corrupted; then
81ecdfbb
RW
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2253$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2254 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2255fi
81ecdfbb
RW
2256## -------------------- ##
2257## Main body of script. ##
2258## -------------------- ##
13b2be9c
DJ
2259
2260ac_ext=c
2261ac_cpp='$CPP $CPPFLAGS'
2262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265
2266
2267
13b2be9c 2268
da594c4a 2269
13b2be9c
DJ
2270
2271
2272ac_aux_dir=
81ecdfbb
RW
2273for ac_dir in .. "$srcdir"/..; do
2274 for ac_t in install-sh install.sh shtool; do
2275 if test -f "$ac_dir/$ac_t"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/$ac_t -c"
2278 break 2
2279 fi
2280 done
13b2be9c
DJ
2281done
2282if test -z "$ac_aux_dir"; then
81ecdfbb 2283 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2284fi
81ecdfbb
RW
2285
2286# These three variables are undocumented and unsupported,
2287# and are intended to be withdrawn in a future Autoconf release.
2288# They can cause serious problems if a builder's source tree is in a directory
2289# whose full name contains unusual characters.
2290ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2291ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2292ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293
13b2be9c
DJ
2294
2295# Make sure we can run config.sub.
81ecdfbb
RW
2296$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2297 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2298
2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2300$as_echo_n "checking build system type... " >&6; }
2301if test "${ac_cv_build+set}" = set; then :
2302 $as_echo_n "(cached) " >&6
2303else
2304 ac_build_alias=$build_alias
2305test "x$ac_build_alias" = x &&
2306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2307test "x$ac_build_alias" = x &&
2308 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2309ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2310 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2311
2312fi
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2314$as_echo "$ac_cv_build" >&6; }
2315case $ac_cv_build in
2316*-*-*) ;;
2317*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2318esac
13b2be9c 2319build=$ac_cv_build
81ecdfbb
RW
2320ac_save_IFS=$IFS; IFS='-'
2321set x $ac_cv_build
2322shift
2323build_cpu=$1
2324build_vendor=$2
2325shift; shift
2326# Remember, the first character of IFS is used to create $*,
2327# except with old shells:
2328build_os=$*
2329IFS=$ac_save_IFS
2330case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2331
2332
81ecdfbb
RW
2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2334$as_echo_n "checking host system type... " >&6; }
2335if test "${ac_cv_host+set}" = set; then :
2336 $as_echo_n "(cached) " >&6
13b2be9c 2337else
81ecdfbb
RW
2338 if test "x$host_alias" = x; then
2339 ac_cv_host=$ac_cv_build
2340else
2341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2342 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2343fi
13b2be9c
DJ
2344
2345fi
81ecdfbb
RW
2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2347$as_echo "$ac_cv_host" >&6; }
2348case $ac_cv_host in
2349*-*-*) ;;
2350*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2351esac
13b2be9c 2352host=$ac_cv_host
81ecdfbb
RW
2353ac_save_IFS=$IFS; IFS='-'
2354set x $ac_cv_host
2355shift
2356host_cpu=$1
2357host_vendor=$2
2358shift; shift
2359# Remember, the first character of IFS is used to create $*,
2360# except with old shells:
2361host_os=$*
2362IFS=$ac_save_IFS
2363case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2364
2365
81ecdfbb
RW
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2367$as_echo_n "checking target system type... " >&6; }
2368if test "${ac_cv_target+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2370else
2371 if test "x$target_alias" = x; then
2372 ac_cv_target=$ac_cv_host
13b2be9c 2373else
81ecdfbb
RW
2374 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2376fi
13b2be9c
DJ
2377
2378fi
81ecdfbb
RW
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2380$as_echo "$ac_cv_target" >&6; }
2381case $ac_cv_target in
2382*-*-*) ;;
2383*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2384esac
13b2be9c 2385target=$ac_cv_target
81ecdfbb
RW
2386ac_save_IFS=$IFS; IFS='-'
2387set x $ac_cv_target
2388shift
2389target_cpu=$1
2390target_vendor=$2
2391shift; shift
2392# Remember, the first character of IFS is used to create $*,
2393# except with old shells:
2394target_os=$*
2395IFS=$ac_save_IFS
2396case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2397
2398
2399# The aliases save the names the user supplied, while $host etc.
2400# will get canonicalized.
2401test -n "$target_alias" &&
2402 test "$program_prefix$program_suffix$program_transform_name" = \
2403 NONENONEs,x,x, &&
2404 program_prefix=${target_alias}-
2405ac_ext=c
2406ac_cpp='$CPP $CPPFLAGS'
2407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414$as_echo_n "checking for $ac_word... " >&6; }
2415if test "${ac_cv_prog_CC+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2417else
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2420else
2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422for as_dir in $PATH
2423do
2424 IFS=$as_save_IFS
2425 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2430 break 2
2431 fi
2432done
81ecdfbb
RW
2433 done
2434IFS=$as_save_IFS
13b2be9c
DJ
2435
2436fi
2437fi
2438CC=$ac_cv_prog_CC
2439if test -n "$CC"; then
81ecdfbb
RW
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2441$as_echo "$CC" >&6; }
13b2be9c 2442else
81ecdfbb
RW
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444$as_echo "no" >&6; }
13b2be9c
DJ
2445fi
2446
81ecdfbb 2447
13b2be9c
DJ
2448fi
2449if test -z "$ac_cv_prog_CC"; then
2450 ac_ct_CC=$CC
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452set dummy gcc; ac_word=$2
81ecdfbb
RW
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454$as_echo_n "checking for $ac_word... " >&6; }
2455if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2456 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2457else
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2460else
2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462for as_dir in $PATH
2463do
2464 IFS=$as_save_IFS
2465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2468 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2470 break 2
2471 fi
2472done
81ecdfbb
RW
2473 done
2474IFS=$as_save_IFS
13b2be9c
DJ
2475
2476fi
2477fi
2478ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2481$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2482else
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484$as_echo "no" >&6; }
13b2be9c
DJ
2485fi
2486
81ecdfbb
RW
2487 if test "x$ac_ct_CC" = x; then
2488 CC=""
2489 else
2490 case $cross_compiling:$ac_tool_warned in
2491yes:)
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2494ac_tool_warned=yes ;;
2495esac
2496 CC=$ac_ct_CC
2497 fi
13b2be9c
DJ
2498else
2499 CC="$ac_cv_prog_CC"
2500fi
2501
2502if test -z "$CC"; then
81ecdfbb
RW
2503 if test -n "$ac_tool_prefix"; then
2504 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2505set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507$as_echo_n "checking for $ac_word... " >&6; }
2508if test "${ac_cv_prog_CC+set}" = set; then :
2509 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2510else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513else
2514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515for as_dir in $PATH
2516do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2521 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2523 break 2
2524 fi
2525done
81ecdfbb
RW
2526 done
2527IFS=$as_save_IFS
13b2be9c
DJ
2528
2529fi
2530fi
2531CC=$ac_cv_prog_CC
2532if test -n "$CC"; then
81ecdfbb
RW
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2534$as_echo "$CC" >&6; }
13b2be9c 2535else
81ecdfbb
RW
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537$as_echo "no" >&6; }
13b2be9c
DJ
2538fi
2539
13b2be9c 2540
81ecdfbb 2541 fi
13b2be9c
DJ
2542fi
2543if test -z "$CC"; then
2544 # Extract the first word of "cc", so it can be a program name with args.
2545set dummy cc; ac_word=$2
81ecdfbb
RW
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547$as_echo_n "checking for $ac_word... " >&6; }
2548if test "${ac_cv_prog_CC+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2550else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553else
2554 ac_prog_rejected=no
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2562 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2563 ac_prog_rejected=yes
2564 continue
2565 fi
2566 ac_cv_prog_CC="cc"
81ecdfbb 2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2568 break 2
2569 fi
2570done
81ecdfbb
RW
2571 done
2572IFS=$as_save_IFS
2573
13b2be9c
DJ
2574if test $ac_prog_rejected = yes; then
2575 # We found a bogon in the path, so make sure we never use it.
2576 set dummy $ac_cv_prog_CC
2577 shift
2578 if test $# != 0; then
2579 # We chose a different compiler from the bogus one.
2580 # However, it has the same basename, so the bogon will be chosen
2581 # first if we set CC to just the basename; use the full file name.
2582 shift
2583 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2584 fi
2585fi
2586fi
2587fi
2588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
81ecdfbb
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2591$as_echo "$CC" >&6; }
13b2be9c 2592else
81ecdfbb
RW
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594$as_echo "no" >&6; }
13b2be9c
DJ
2595fi
2596
81ecdfbb 2597
13b2be9c
DJ
2598fi
2599if test -z "$CC"; then
2600 if test -n "$ac_tool_prefix"; then
81ecdfbb 2601 for ac_prog in cl.exe
13b2be9c
DJ
2602 do
2603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606$as_echo_n "checking for $ac_word... " >&6; }
2607if test "${ac_cv_prog_CC+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2609else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612else
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2622 break 2
2623 fi
2624done
81ecdfbb
RW
2625 done
2626IFS=$as_save_IFS
13b2be9c
DJ
2627
2628fi
2629fi
2630CC=$ac_cv_prog_CC
2631if test -n "$CC"; then
81ecdfbb
RW
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633$as_echo "$CC" >&6; }
13b2be9c 2634else
81ecdfbb
RW
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636$as_echo "no" >&6; }
13b2be9c
DJ
2637fi
2638
81ecdfbb 2639
13b2be9c
DJ
2640 test -n "$CC" && break
2641 done
2642fi
2643if test -z "$CC"; then
2644 ac_ct_CC=$CC
81ecdfbb 2645 for ac_prog in cl.exe
13b2be9c
DJ
2646do
2647 # Extract the first word of "$ac_prog", so it can be a program name with args.
2648set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650$as_echo_n "checking for $ac_word... " >&6; }
2651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2653else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2664 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2666 break 2
2667 fi
2668done
81ecdfbb
RW
2669 done
2670IFS=$as_save_IFS
13b2be9c
DJ
2671
2672fi
2673fi
2674ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2678else
81ecdfbb
RW
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680$as_echo "no" >&6; }
13b2be9c
DJ
2681fi
2682
81ecdfbb 2683
13b2be9c
DJ
2684 test -n "$ac_ct_CC" && break
2685done
2686
81ecdfbb
RW
2687 if test "x$ac_ct_CC" = x; then
2688 CC=""
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691yes:)
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694ac_tool_warned=yes ;;
2695esac
2696 CC=$ac_ct_CC
2697 fi
13b2be9c
DJ
2698fi
2699
2700fi
2701
2702
81ecdfbb
RW
2703test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705as_fn_error "no acceptable C compiler found in \$PATH
2706See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2707
2708# Provide some information about the compiler.
81ecdfbb
RW
2709$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2710set X $ac_compile
2711ac_compiler=$2
2712for ac_option in --version -v -V -qversion; do
2713 { { ac_try="$ac_compiler $ac_option >&5"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719$as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2721 ac_status=$?
81ecdfbb
RW
2722 if test -s conftest.err; then
2723 sed '10a\
2724... rest of stderr output deleted ...
2725 10q' conftest.err >conftest.er1
2726 cat conftest.er1 >&5
2727 rm -f conftest.er1 conftest.err
2728 fi
2729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730 test $ac_status = 0; }
2731done
13b2be9c 2732
81ecdfbb 2733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2734/* end confdefs.h. */
2735
2736int
2737main ()
2738{
2739
2740 ;
2741 return 0;
2742}
2743_ACEOF
2744ac_clean_files_save=$ac_clean_files
81ecdfbb 2745ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2746# Try to create an executable without -o first, disregard a.out.
2747# It will help us diagnose broken compilers, and finding out an intuition
2748# of exeext.
81ecdfbb
RW
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2750$as_echo_n "checking for C compiler default output file name... " >&6; }
2751ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2752
2753# The possible output files:
2754ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2755
2756ac_rmfiles=
2757for ac_file in $ac_files
2758do
2759 case $ac_file in
2760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2761 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762 esac
2763done
2764rm -f $ac_rmfiles
2765
2766if { { ac_try="$ac_link_default"
2767case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
2771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2772$as_echo "$ac_try_echo"; } >&5
2773 (eval "$ac_link_default") 2>&5
2774 ac_status=$?
2775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2776 test $ac_status = 0; }; then :
2777 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2778# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2779# in a Makefile. We should not override ac_cv_exeext if it was cached,
2780# so that the user can short-circuit this test for compilers unknown to
2781# Autoconf.
2782for ac_file in $ac_files ''
13b2be9c
DJ
2783do
2784 test -f "$ac_file" || continue
2785 case $ac_file in
81ecdfbb 2786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2787 ;;
13b2be9c 2788 [ab].out )
ab509236
L
2789 # We found the default executable, but exeext='' is most
2790 # certainly right.
2791 break;;
13b2be9c 2792 *.* )
81ecdfbb
RW
2793 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2794 then :; else
2795 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2796 fi
2797 # We set ac_cv_exeext here because the later test for it is not
2798 # safe: cross compilers may not add the suffix if given an `-o'
2799 # argument, so we may need to know it at that point already.
2800 # Even if this section looks crufty: it has the advantage of
2801 # actually working.
ab509236 2802 break;;
13b2be9c 2803 * )
ab509236 2804 break;;
13b2be9c
DJ
2805 esac
2806done
81ecdfbb
RW
2807test "$ac_cv_exeext" = no && ac_cv_exeext=
2808
13b2be9c 2809else
81ecdfbb
RW
2810 ac_file=''
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2813$as_echo "$ac_file" >&6; }
2814if test -z "$ac_file"; then :
2815 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2816sed 's/^/| /' conftest.$ac_ext >&5
2817
81ecdfbb
RW
2818{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2820{ as_fn_set_status 77
2821as_fn_error "C compiler cannot create executables
2822See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2823fi
13b2be9c 2824ac_exeext=$ac_cv_exeext
13b2be9c 2825
81ecdfbb 2826# Check that the compiler produces executables we can run. If not, either
13b2be9c 2827# the compiler is broken, or we cross compile.
81ecdfbb
RW
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2829$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2830# If not cross compiling, check that we can run a simple program.
2831if test "$cross_compiling" != yes; then
2832 if { ac_try='./$ac_file'
81ecdfbb
RW
2833 { { case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838$as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_try") 2>&5
13b2be9c 2840 ac_status=$?
81ecdfbb
RW
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }; }; then
13b2be9c
DJ
2843 cross_compiling=no
2844 else
2845 if test "$cross_compiling" = maybe; then
2846 cross_compiling=yes
2847 else
81ecdfbb
RW
2848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2850as_fn_error "cannot run C compiled programs.
13b2be9c 2851If you meant to cross compile, use \`--host'.
81ecdfbb 2852See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2853 fi
2854 fi
2855fi
81ecdfbb
RW
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2857$as_echo "yes" >&6; }
13b2be9c 2858
81ecdfbb 2859rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2860ac_clean_files=$ac_clean_files_save
81ecdfbb 2861# Check that the compiler produces executables we can run. If not, either
13b2be9c 2862# the compiler is broken, or we cross compile.
81ecdfbb
RW
2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2864$as_echo_n "checking whether we are cross compiling... " >&6; }
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2866$as_echo "$cross_compiling" >&6; }
2867
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2869$as_echo_n "checking for suffix of executables... " >&6; }
2870if { { ac_try="$ac_link"
2871case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874esac
2875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876$as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_link") 2>&5
13b2be9c 2878 ac_status=$?
81ecdfbb
RW
2879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2880 test $ac_status = 0; }; then :
13b2be9c
DJ
2881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2882# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2883# work properly (i.e., refer to `conftest.exe'), while it won't with
2884# `rm'.
2885for ac_file in conftest.exe conftest conftest.*; do
2886 test -f "$ac_file" || continue
2887 case $ac_file in
81ecdfbb 2888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2890 break;;
13b2be9c
DJ
2891 * ) break;;
2892 esac
2893done
2894else
81ecdfbb
RW
2895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897as_fn_error "cannot compute suffix of executables: cannot compile and link
2898See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2899fi
13b2be9c 2900rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2902$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2903
2904rm -f conftest.$ac_ext
2905EXEEXT=$ac_cv_exeext
2906ac_exeext=$EXEEXT
81ecdfbb
RW
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2908$as_echo_n "checking for suffix of object files... " >&6; }
2909if test "${ac_cv_objext+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
13b2be9c 2911else
81ecdfbb 2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2913/* end confdefs.h. */
2914
2915int
2916main ()
2917{
2918
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.o conftest.obj
81ecdfbb
RW
2924if { { ac_try="$ac_compile"
2925case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2928esac
2929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930$as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_compile") 2>&5
2932 ac_status=$?
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; then :
2935 for ac_file in conftest.o conftest.obj conftest.*; do
2936 test -f "$ac_file" || continue;
13b2be9c 2937 case $ac_file in
81ecdfbb 2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2939 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2940 break;;
2941 esac
2942done
2943else
81ecdfbb 2944 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
81ecdfbb
RW
2947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949as_fn_error "cannot compute suffix of object files: cannot compile
2950See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2951fi
13b2be9c
DJ
2952rm -f conftest.$ac_cv_objext conftest.$ac_ext
2953fi
81ecdfbb
RW
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2955$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2956OBJEXT=$ac_cv_objext
2957ac_objext=$OBJEXT
81ecdfbb
RW
2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2959$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2960if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
13b2be9c 2962else
81ecdfbb 2963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2964/* end confdefs.h. */
2965
2966int
2967main ()
2968{
2969#ifndef __GNUC__
2970 choke me
2971#endif
2972
2973 ;
2974 return 0;
2975}
2976_ACEOF
81ecdfbb 2977if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2978 ac_compiler_gnu=yes
2979else
81ecdfbb 2980 ac_compiler_gnu=no
13b2be9c 2981fi
81ecdfbb 2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2983ac_cv_c_compiler_gnu=$ac_compiler_gnu
2984
2985fi
81ecdfbb
RW
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2987$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2988if test $ac_compiler_gnu = yes; then
2989 GCC=yes
2990else
2991 GCC=
2992fi
13b2be9c
DJ
2993ac_test_CFLAGS=${CFLAGS+set}
2994ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2996$as_echo_n "checking whether $CC accepts -g... " >&6; }
2997if test "${ac_cv_prog_cc_g+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
2999else
3000 ac_save_c_werror_flag=$ac_c_werror_flag
3001 ac_c_werror_flag=yes
3002 ac_cv_prog_cc_g=no
3003 CFLAGS="-g"
3004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3005/* end confdefs.h. */
3006
3007int
3008main ()
3009{
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
81ecdfbb 3015if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3016 ac_cv_prog_cc_g=yes
3017else
81ecdfbb
RW
3018 CFLAGS=""
3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
13b2be9c 3021
81ecdfbb
RW
3022int
3023main ()
3024{
3025
3026 ;
3027 return 0;
3028}
3029_ACEOF
3030if ac_fn_c_try_compile "$LINENO"; then :
3031
3032else
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3034 CFLAGS="-g"
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036/* end confdefs.h. */
3037
3038int
3039main ()
3040{
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
3046if ac_fn_c_try_compile "$LINENO"; then :
3047 ac_cv_prog_cc_g=yes
3048fi
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3050fi
81ecdfbb 3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3052fi
81ecdfbb
RW
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3055fi
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3057$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3058if test "$ac_test_CFLAGS" = set; then
3059 CFLAGS=$ac_save_CFLAGS
3060elif test $ac_cv_prog_cc_g = yes; then
3061 if test "$GCC" = yes; then
3062 CFLAGS="-g -O2"
3063 else
3064 CFLAGS="-g"
3065 fi
3066else
3067 if test "$GCC" = yes; then
3068 CFLAGS="-O2"
3069 else
3070 CFLAGS=
3071 fi
3072fi
81ecdfbb
RW
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3074$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3075if test "${ac_cv_prog_cc_c89+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
13b2be9c 3077else
81ecdfbb 3078 ac_cv_prog_cc_c89=no
13b2be9c 3079ac_save_CC=$CC
81ecdfbb 3080cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3081/* end confdefs.h. */
3082#include <stdarg.h>
3083#include <stdio.h>
3084#include <sys/types.h>
3085#include <sys/stat.h>
3086/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3087struct buf { int x; };
3088FILE * (*rcsopen) (struct buf *, struct stat *, int);
3089static char *e (p, i)
3090 char **p;
3091 int i;
3092{
3093 return p[i];
3094}
3095static char *f (char * (*g) (char **, int), char **p, ...)
3096{
3097 char *s;
3098 va_list v;
3099 va_start (v,p);
3100 s = g (p, va_arg (v,int));
3101 va_end (v);
3102 return s;
3103}
ab509236
L
3104
3105/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3106 function prototypes and stuff, but not '\xHH' hex character constants.
3107 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3108 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3110 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3111 that's true only with -std. */
ab509236
L
3112int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3113
81ecdfbb
RW
3114/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3115 inside strings and character constants. */
3116#define FOO(x) 'x'
3117int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3118
13b2be9c
DJ
3119int test (int i, double x);
3120struct s1 {int (*f) (int a);};
3121struct s2 {int (*f) (double a);};
3122int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3123int argc;
3124char **argv;
3125int
3126main ()
3127{
3128return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3129 ;
3130 return 0;
3131}
3132_ACEOF
81ecdfbb
RW
3133for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3135do
3136 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3137 if ac_fn_c_try_compile "$LINENO"; then :
3138 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3139fi
81ecdfbb
RW
3140rm -f core conftest.err conftest.$ac_objext
3141 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3142done
81ecdfbb 3143rm -f conftest.$ac_ext
13b2be9c
DJ
3144CC=$ac_save_CC
3145
3146fi
81ecdfbb
RW
3147# AC_CACHE_VAL
3148case "x$ac_cv_prog_cc_c89" in
3149 x)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3151$as_echo "none needed" >&6; } ;;
3152 xno)
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3154$as_echo "unsupported" >&6; } ;;
13b2be9c 3155 *)
81ecdfbb
RW
3156 CC="$CC $ac_cv_prog_cc_c89"
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3158$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3159esac
81ecdfbb 3160if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3161
13b2be9c
DJ
3162fi
3163
13b2be9c
DJ
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
81ecdfbb
RW
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3172$as_echo_n "checking for library containing strerror... " >&6; }
3173if test "${ac_cv_search_strerror+set}" = set; then :
3174 $as_echo_n "(cached) " >&6
13b2be9c 3175else
ab509236 3176 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3178/* end confdefs.h. */
3179
81ecdfbb
RW
3180/* Override any GCC internal prototype to avoid an error.
3181 Use char because int might match the return type of a GCC
3182 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3183#ifdef __cplusplus
3184extern "C"
3185#endif
13b2be9c
DJ
3186char strerror ();
3187int
3188main ()
3189{
81ecdfbb 3190return strerror ();
13b2be9c
DJ
3191 ;
3192 return 0;
3193}
3194_ACEOF
81ecdfbb
RW
3195for ac_lib in '' cposix; do
3196 if test -z "$ac_lib"; then
3197 ac_res="none required"
3198 else
3199 ac_res=-l$ac_lib
ab509236 3200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3201 fi
3202 if ac_fn_c_try_link "$LINENO"; then :
3203 ac_cv_search_strerror=$ac_res
3204fi
3205rm -f core conftest.err conftest.$ac_objext \
3206 conftest$ac_exeext
3207 if test "${ac_cv_search_strerror+set}" = set; then :
3208 break
3209fi
3210done
3211if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3212
ab509236 3213else
81ecdfbb 3214 ac_cv_search_strerror=no
13b2be9c 3215fi
81ecdfbb 3216rm conftest.$ac_ext
ab509236
L
3217LIBS=$ac_func_search_save_LIBS
3218fi
81ecdfbb
RW
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3220$as_echo "$ac_cv_search_strerror" >&6; }
3221ac_res=$ac_cv_search_strerror
3222if test "$ac_res" != no; then :
3223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3224
ab509236 3225fi
13b2be9c
DJ
3226
3227
81ecdfbb
RW
3228am__api_version='1.11'
3229
13b2be9c
DJ
3230# Find a good install program. We prefer a C program (faster),
3231# so one script is as good as another. But avoid the broken or
3232# incompatible versions:
3233# SysV /etc/install, /usr/sbin/install
3234# SunOS /usr/etc/install
3235# IRIX /sbin/install
3236# AIX /bin/install
3237# AmigaOS /C/install, which installs bootblocks on floppy discs
3238# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3239# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3240# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3241# OS/2's system install, which has a completely different semantic
13b2be9c 3242# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3243# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3245$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3246if test -z "$INSTALL"; then
81ecdfbb
RW
3247if test "${ac_cv_path_install+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3249else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253 IFS=$as_save_IFS
3254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3255 # Account for people who put trailing slashes in PATH elements.
3256case $as_dir/ in #((
3257 ./ | .// | /[cC]/* | \
13b2be9c 3258 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3259 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3260 /usr/ucb/* ) ;;
3261 *)
3262 # OSF1 and SCO ODT 3.0 have their own names for install.
3263 # Don't use installbsd from OSF since it installs stuff as root
3264 # by default.
3265 for ac_prog in ginstall scoinst install; do
3266 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3267 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3268 if test $ac_prog = install &&
3269 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3270 # AIX install. It has an incompatible calling convention.
3271 :
3272 elif test $ac_prog = install &&
3273 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3274 # program-specific install script used by HP pwplus--don't use.
3275 :
3276 else
58c85be7
RW
3277 rm -rf conftest.one conftest.two conftest.dir
3278 echo one > conftest.one
3279 echo two > conftest.two
3280 mkdir conftest.dir
3281 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3282 test -s conftest.one && test -s conftest.two &&
3283 test -s conftest.dir/conftest.one &&
3284 test -s conftest.dir/conftest.two
3285 then
3286 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3287 break 3
3288 fi
ab509236
L
3289 fi
3290 fi
13b2be9c
DJ
3291 done
3292 done
3293 ;;
3294esac
81ecdfbb
RW
3295
3296 done
3297IFS=$as_save_IFS
13b2be9c 3298
58c85be7 3299rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3300
3301fi
3302 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3303 INSTALL=$ac_cv_path_install
252b5132 3304 else
58c85be7
RW
3305 # As a last resort, use the slow shell script. Don't cache a
3306 # value for INSTALL within a source directory, because that will
252b5132 3307 # break other packages using the cache if that directory is
58c85be7 3308 # removed, or if the value is a relative name.
13b2be9c 3309 INSTALL=$ac_install_sh
252b5132
RH
3310 fi
3311fi
81ecdfbb
RW
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3313$as_echo "$INSTALL" >&6; }
252b5132
RH
3314
3315# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3316# It thinks the first close brace ends the variable substitution.
3317test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3318
13b2be9c 3319test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3320
3321test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3322
81ecdfbb
RW
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3324$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3325# Just in case
3326sleep 1
13b2be9c 3327echo timestamp > conftest.file
81ecdfbb
RW
3328# Reject unsafe characters in $srcdir or the absolute working directory
3329# name. Accept space and tab only in the latter.
3330am_lf='
3331'
3332case `pwd` in
3333 *[\\\"\#\$\&\'\`$am_lf]*)
3334 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3335esac
3336case $srcdir in
3337 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3338 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3339esac
3340
252b5132
RH
3341# Do `set' in a subshell so we don't clobber the current shell's
3342# arguments. Must try -L first in case configure is actually a
3343# symlink; some systems play weird games with the mod time of symlinks
3344# (eg FreeBSD returns the mod time of the symlink's containing
3345# directory).
3346if (
81ecdfbb 3347 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3348 if test "$*" = "X"; then
3349 # -L didn't work.
81ecdfbb 3350 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3351 fi
13b2be9c
DJ
3352 rm -f conftest.file
3353 if test "$*" != "X $srcdir/configure conftest.file" \
3354 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3355
3356 # If neither matched, then we have a broken ls. This can happen
3357 # if, for instance, CONFIG_SHELL is bash and it inherits a
3358 # broken ls alias from the environment. This has actually
3359 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3360 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3361alias in your environment" "$LINENO" 5
252b5132
RH
3362 fi
3363
13b2be9c
DJ
3364 test "$2" = conftest.file
3365 )
3366then
3367 # Ok.
3368 :
3369else
81ecdfbb
RW
3370 as_fn_error "newly created file is older than distributed files!
3371Check your system clock" "$LINENO" 5
13b2be9c 3372fi
81ecdfbb
RW
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374$as_echo "yes" >&6; }
13b2be9c 3375test "$program_prefix" != NONE &&
81ecdfbb 3376 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3377# Use a double $ so make ignores it.
3378test "$program_suffix" != NONE &&
81ecdfbb
RW
3379 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3380# Double any \ or $.
13b2be9c 3381# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3382ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3383program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3384
13b2be9c
DJ
3385# expand $ac_aux_dir to an absolute path
3386am_aux_dir=`cd $ac_aux_dir && pwd`
3387
81ecdfbb
RW
3388if test x"${MISSING+set}" != xset; then
3389 case $am_aux_dir in
3390 *\ * | *\ *)
3391 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3392 *)
3393 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3394 esac
3395fi
13b2be9c
DJ
3396# Use eval to expand $SHELL
3397if eval "$MISSING --run true"; then
3398 am_missing_run="$MISSING --run "
3399else
3400 am_missing_run=
81ecdfbb
RW
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3402$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3403fi
3404
81ecdfbb
RW
3405if test x"${install_sh}" != xset; then
3406 case $am_aux_dir in
3407 *\ * | *\ *)
3408 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3409 *)
3410 install_sh="\${SHELL} $am_aux_dir/install-sh"
3411 esac
3412fi
3413
3414# Installed binaries are usually stripped using `strip' when the user
3415# run `make install-strip'. However `strip' might not be the right
3416# tool to use in cross-compilation environments, therefore Automake
3417# will honor the `STRIP' environment variable to overrule this program.
3418if test "$cross_compiling" != no; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3421set dummy ${ac_tool_prefix}strip; ac_word=$2
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
3424if test "${ac_cv_prog_STRIP+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
13b2be9c 3426else
81ecdfbb
RW
3427 if test -n "$STRIP"; then
3428 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3439 break 2
3440 fi
3441done
81ecdfbb
RW
3442 done
3443IFS=$as_save_IFS
13b2be9c
DJ
3444
3445fi
3446fi
81ecdfbb
RW
3447STRIP=$ac_cv_prog_STRIP
3448if test -n "$STRIP"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3450$as_echo "$STRIP" >&6; }
13b2be9c 3451else
81ecdfbb
RW
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
13b2be9c
DJ
3454fi
3455
13b2be9c 3456
81ecdfbb
RW
3457fi
3458if test -z "$ac_cv_prog_STRIP"; then
3459 ac_ct_STRIP=$STRIP
3460 # Extract the first word of "strip", so it can be a program name with args.
3461set dummy strip; ac_word=$2
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463$as_echo_n "checking for $ac_word... " >&6; }
3464if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
13b2be9c 3466else
81ecdfbb
RW
3467 if test -n "$ac_ct_STRIP"; then
3468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3469else
81ecdfbb
RW
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3477 ac_cv_prog_ac_ct_STRIP="strip"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3480 fi
3481done
3482 done
3483IFS=$as_save_IFS
3484
3485fi
3486fi
3487ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3488if test -n "$ac_ct_STRIP"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3490$as_echo "$ac_ct_STRIP" >&6; }
3491else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493$as_echo "no" >&6; }
3494fi
3495
3496 if test "x$ac_ct_STRIP" = x; then
3497 STRIP=":"
3498 else
3499 case $cross_compiling:$ac_tool_warned in
3500yes:)
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3503ac_tool_warned=yes ;;
3504esac
3505 STRIP=$ac_ct_STRIP
3506 fi
3507else
3508 STRIP="$ac_cv_prog_STRIP"
3509fi
3510
3511fi
3512INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3513
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3515$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3516if test -z "$MKDIR_P"; then
3517 if test "${ac_cv_path_mkdir+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519else
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3522do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_prog in mkdir gmkdir; do
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3528 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3529 'mkdir (GNU coreutils) '* | \
3530 'mkdir (coreutils) '* | \
3531 'mkdir (fileutils) '4.1*)
3532 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3533 break 3;;
3534 esac
3535 done
3536 done
3537 done
3538IFS=$as_save_IFS
3539
3540fi
3541
3542 if test "${ac_cv_path_mkdir+set}" = set; then
3543 MKDIR_P="$ac_cv_path_mkdir -p"
3544 else
3545 # As a last resort, use the slow shell script. Don't cache a
3546 # value for MKDIR_P within a source directory, because that will
3547 # break other packages using the cache if that directory is
3548 # removed, or if the value is a relative name.
3549 test -d ./--version && rmdir ./--version
3550 MKDIR_P="$ac_install_sh -d"
3551 fi
3552fi
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3554$as_echo "$MKDIR_P" >&6; }
3555
3556mkdir_p="$MKDIR_P"
3557case $mkdir_p in
3558 [\\/$]* | ?:[\\/]*) ;;
3559 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3560esac
3561
3562for ac_prog in gawk mawk nawk awk
3563do
3564 # Extract the first word of "$ac_prog", so it can be a program name with args.
3565set dummy $ac_prog; ac_word=$2
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567$as_echo_n "checking for $ac_word... " >&6; }
3568if test "${ac_cv_prog_AWK+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570else
3571 if test -n "$AWK"; then
3572 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3573else
3574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH
3576do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3581 ac_cv_prog_AWK="$ac_prog"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3584 fi
3585done
3586 done
3587IFS=$as_save_IFS
3588
3589fi
3590fi
3591AWK=$ac_cv_prog_AWK
3592if test -n "$AWK"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3594$as_echo "$AWK" >&6; }
3595else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
13b2be9c 3598fi
81ecdfbb
RW
3599
3600
3601 test -n "$AWK" && break
3602done
3603
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3605$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3606set x ${MAKE-make}
3607ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3608if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3609 $as_echo_n "(cached) " >&6
3610else
3611 cat >conftest.make <<\_ACEOF
3612SHELL = /bin/sh
3613all:
3614 @echo '@@@%%%=$(MAKE)=@@@%%%'
3615_ACEOF
3616# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3617case `${MAKE-make} -f conftest.make 2>/dev/null` in
3618 *@@@%%%=?*=@@@%%%*)
3619 eval ac_cv_prog_make_${ac_make}_set=yes;;
3620 *)
3621 eval ac_cv_prog_make_${ac_make}_set=no;;
3622esac
13b2be9c
DJ
3623rm -f conftest.make
3624fi
81ecdfbb
RW
3625if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3627$as_echo "yes" >&6; }
13b2be9c
DJ
3628 SET_MAKE=
3629else
81ecdfbb
RW
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
13b2be9c
DJ
3632 SET_MAKE="MAKE=${MAKE-make}"
3633fi
3634
3635rm -rf .tst 2>/dev/null
3636mkdir .tst 2>/dev/null
3637if test -d .tst; then
3638 am__leading_dot=.
3639else
3640 am__leading_dot=_
3641fi
3642rmdir .tst 2>/dev/null
3643
3644DEPDIR="${am__leading_dot}deps"
3645
81ecdfbb 3646ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3647
3648
3649am_make=${MAKE-make}
3650cat > confinc << 'END'
3651am__doit:
81ecdfbb 3652 @echo this is the am__doit target
13b2be9c
DJ
3653.PHONY: am__doit
3654END
3655# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3657$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3658am__include="#"
3659am__quote=
3660_am_result=none
3661# First try GNU make style include.
3662echo "include confinc" > confmf
81ecdfbb
RW
3663# Ignore all kinds of additional output from `make'.
3664case `$am_make -s -f confmf 2> /dev/null` in #(
3665*the\ am__doit\ target*)
3666 am__include=include
3667 am__quote=
3668 _am_result=GNU
3669 ;;
3670esac
13b2be9c
DJ
3671# Now try BSD make style include.
3672if test "$am__include" = "#"; then
3673 echo '.include "confinc"' > confmf
81ecdfbb
RW
3674 case `$am_make -s -f confmf 2> /dev/null` in #(
3675 *the\ am__doit\ target*)
3676 am__include=.include
3677 am__quote="\""
3678 _am_result=BSD
3679 ;;
3680 esac
13b2be9c
DJ
3681fi
3682
3683
81ecdfbb
RW
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3685$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3686rm -f confinc confmf
3687
81ecdfbb
RW
3688# Check whether --enable-dependency-tracking was given.
3689if test "${enable_dependency_tracking+set}" = set; then :
3690 enableval=$enable_dependency_tracking;
3691fi
13b2be9c 3692
13b2be9c
DJ
3693if test "x$enable_dependency_tracking" != xno; then
3694 am_depcomp="$ac_aux_dir/depcomp"
3695 AMDEPBACKSLASH='\'
3696fi
81ecdfbb 3697 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3698 AMDEP_TRUE=
3699 AMDEP_FALSE='#'
3700else
3701 AMDEP_TRUE='#'
3702 AMDEP_FALSE=
3703fi
3704
3705
81ecdfbb
RW
3706if test "`cd $srcdir && pwd`" != "`pwd`"; then
3707 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3708 # is not polluted with repeated "-I."
3709 am__isrc=' -I$(srcdir)'
3710 # test to see if srcdir already configured
3711 if test -f $srcdir/config.status; then
3712 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3713 fi
13b2be9c
DJ
3714fi
3715
3716# test whether we have cygpath
3717if test -z "$CYGPATH_W"; then
3718 if (cygpath --version) >/dev/null 2>/dev/null; then
3719 CYGPATH_W='cygpath -w'
3720 else
3721 CYGPATH_W=echo
3722 fi
3723fi
3724
3725
3726# Define the identity of the package.
2e98a7bd 3727 PACKAGE='gas'
91dc4e0a 3728 VERSION='2.25.51'
13b2be9c
DJ
3729
3730
3731cat >>confdefs.h <<_ACEOF
3732#define PACKAGE "$PACKAGE"
3733_ACEOF
3734
3735
3736cat >>confdefs.h <<_ACEOF
3737#define VERSION "$VERSION"
3738_ACEOF
3739
3740# Some tools Automake needs.
3741
3742ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3743
3744
3745AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3746
3747
3748AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3749
3750
3751AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3752
3753
3754MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3755
13b2be9c
DJ
3756# We need awk for the "check" target. The system "awk" is bad on
3757# some platforms.
8ea2b00f
AM
3758# Always define AMTAR for backward compatibility.
3759
3760AMTAR=${AMTAR-"${am_missing_run}tar"}
3761
3762am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3763
3764
252b5132 3765
d6d788bd 3766
13b2be9c 3767depcc="$CC" am_compiler_list=
d6d788bd 3768
81ecdfbb
RW
3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770$as_echo_n "checking dependency style of $depcc... " >&6; }
3771if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
252b5132 3773else
13b2be9c
DJ
3774 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775 # We make a subdir and do the tests there. Otherwise we can end up
3776 # making bogus files that we don't know about and never remove. For
3777 # instance it was reported that on HP-UX the gcc test will end up
3778 # making a dummy file named `D' -- because `-MD' means `put the output
3779 # in D'.
3780 mkdir conftest.dir
3781 # Copy depcomp to subdir because otherwise we won't find it if we're
3782 # using a relative directory.
3783 cp "$am_depcomp" conftest.dir
3784 cd conftest.dir
3785 # We will build objects and dependencies in a subdirectory because
3786 # it helps to detect inapplicable dependency modes. For instance
3787 # both Tru64's cc and ICC support -MD to output dependencies as a
3788 # side effect of compilation, but ICC will put the dependencies in
3789 # the current directory while Tru64 will put them in the object
3790 # directory.
3791 mkdir sub
252b5132 3792
13b2be9c
DJ
3793 am_cv_CC_dependencies_compiler_type=none
3794 if test "$am_compiler_list" = ""; then
3795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796 fi
81ecdfbb
RW
3797 am__universal=false
3798 case " $depcc " in #(
3799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800 esac
3801
13b2be9c
DJ
3802 for depmode in $am_compiler_list; do
3803 # Setup a source with many dependencies, because some compilers
3804 # like to wrap large dependency lists on column 80 (with \), and
3805 # we should not choose a depcomp mode which is confused by this.
3806 #
3807 # We need to recreate these files for each test, as the compiler may
3808 # overwrite some of them when testing with obscure command lines.
3809 # This happens at least with the AIX C compiler.
3810 : > sub/conftest.c
3811 for i in 1 2 3 4 5 6; do
3812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3813 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814 # Solaris 8's {/usr,}/bin/sh.
3815 touch sub/conftst$i.h
13b2be9c
DJ
3816 done
3817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
81ecdfbb
RW
3819 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820 # mode. It turns out that the SunPro C++ compiler does not properly
3821 # handle `-M -o', and we need to detect this. Also, some Intel
3822 # versions had trouble with output in subdirs
3823 am__obj=sub/conftest.${OBJEXT-o}
3824 am__minus_obj="-o $am__obj"
13b2be9c 3825 case $depmode in
81ecdfbb
RW
3826 gcc)
3827 # This depmode causes a compiler race in universal mode.
3828 test "$am__universal" = false || continue
3829 ;;
13b2be9c
DJ
3830 nosideeffect)
3831 # after this tag, mechanisms are not by side-effect, so they'll
3832 # only be used when explicitly requested
3833 if test "x$enable_dependency_tracking" = xyes; then
3834 continue
3835 else
3836 break
3837 fi
3838 ;;
81ecdfbb
RW
3839 msvisualcpp | msvcmsys)
3840 # This compiler won't grok `-c -o', but also, the minuso test has
3841 # not run yet. These depmodes are late enough in the game, and
3842 # so weak that their functioning should not be impacted.
3843 am__obj=conftest.${OBJEXT-o}
3844 am__minus_obj=
3845 ;;
13b2be9c
DJ
3846 none) break ;;
3847 esac
13b2be9c 3848 if depmode=$depmode \
81ecdfbb 3849 source=sub/conftest.c object=$am__obj \
13b2be9c 3850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3852 >/dev/null 2>conftest.err &&
81ecdfbb 3853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3858 # or remarks (even with -Werror). So we grep stderr for any message
3859 # that says an option was ignored or not supported.
3860 # When given -MP, icc 7.0 and 7.1 complain thusly:
3861 # icc: Command line warning: ignoring option '-M'; no argument required
3862 # The diagnosis changed in icc 8.0:
3863 # icc: Command line remark: option '-MP' not supported
3864 if (grep 'ignoring option' conftest.err ||
3865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3866 am_cv_CC_dependencies_compiler_type=$depmode
3867 break
3868 fi
3869 fi
3870 done
252b5132 3871
13b2be9c
DJ
3872 cd ..
3873 rm -rf conftest.dir
252b5132 3874else
13b2be9c 3875 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3876fi
3877
252b5132 3878fi
81ecdfbb
RW
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3881CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3882
81ecdfbb 3883 if
13b2be9c
DJ
3884 test "x$enable_dependency_tracking" != xno \
3885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886 am__fastdepCC_TRUE=
3887 am__fastdepCC_FALSE='#'
252b5132 3888else
13b2be9c
DJ
3889 am__fastdepCC_TRUE='#'
3890 am__fastdepCC_FALSE=
252b5132
RH
3891fi
3892
d6d788bd
L
3893
3894
13b2be9c 3895
ce2cded5
L
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3903set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905$as_echo_n "checking for $ac_word... " >&6; }
3906if test "${ac_cv_prog_CC+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
252b5132 3908else
ce2cded5
L
3909 if test -n "$CC"; then
3910 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3911else
ce2cded5
L
3912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913for as_dir in $PATH
3914do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3921 break 2
3922 fi
3923done
81ecdfbb
RW
3924 done
3925IFS=$as_save_IFS
d7040cdb 3926
ce2cded5
L
3927fi
3928fi
3929CC=$ac_cv_prog_CC
3930if test -n "$CC"; then
81ecdfbb
RW
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3932$as_echo "$CC" >&6; }
bedf545c 3933else
81ecdfbb
RW
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935$as_echo "no" >&6; }
ce2cded5 3936fi
d7040cdb 3937
81ecdfbb 3938
ce2cded5
L
3939fi
3940if test -z "$ac_cv_prog_CC"; then
3941 ac_ct_CC=$CC
3942 # Extract the first word of "gcc", so it can be a program name with args.
3943set dummy gcc; ac_word=$2
81ecdfbb
RW
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
3946if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
d7040cdb 3948else
ce2cded5
L
3949 if test -n "$ac_ct_CC"; then
3950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951else
d7040cdb
SE
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3959 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3961 break 2
d7040cdb 3962 fi
ce2cded5 3963done
81ecdfbb
RW
3964 done
3965IFS=$as_save_IFS
d7040cdb 3966
ce2cded5
L
3967fi
3968fi
3969ac_ct_CC=$ac_cv_prog_ac_ct_CC
3970if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3972$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3973else
81ecdfbb
RW
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975$as_echo "no" >&6; }
d7040cdb
SE
3976fi
3977
81ecdfbb
RW
3978 if test "x$ac_ct_CC" = x; then
3979 CC=""
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982yes:)
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985ac_tool_warned=yes ;;
3986esac
3987 CC=$ac_ct_CC
3988 fi
ce2cded5
L
3989else
3990 CC="$ac_cv_prog_CC"
3991fi
d7040cdb 3992
ce2cded5 3993if test -z "$CC"; then
81ecdfbb
RW
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3996set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
3999if test "${ac_cv_prog_CC+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
d7040cdb 4001else
ce2cded5
L
4002 if test -n "$CC"; then
4003 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4004else
ce2cded5
L
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4012 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4014 break 2
4015 fi
4016done
81ecdfbb
RW
4017 done
4018IFS=$as_save_IFS
d7040cdb 4019
252b5132
RH
4020fi
4021fi
ce2cded5
L
4022CC=$ac_cv_prog_CC
4023if test -n "$CC"; then
81ecdfbb
RW
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4025$as_echo "$CC" >&6; }
ce2cded5 4026else
81ecdfbb
RW
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
d7040cdb 4029fi
f9c19112 4030
ce2cded5 4031
81ecdfbb 4032 fi
ce2cded5
L
4033fi
4034if test -z "$CC"; then
4035 # Extract the first word of "cc", so it can be a program name with args.
4036set dummy cc; ac_word=$2
81ecdfbb
RW
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038$as_echo_n "checking for $ac_word... " >&6; }
4039if test "${ac_cv_prog_CC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
ce2cded5
L
4041else
4042 if test -n "$CC"; then
4043 ac_cv_prog_CC="$CC" # Let the user override the test.
4044else
4045 ac_prog_rejected=no
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4054 ac_prog_rejected=yes
4055 continue
4056 fi
4057 ac_cv_prog_CC="cc"
81ecdfbb 4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4059 break 2
4060 fi
4061done
81ecdfbb
RW
4062 done
4063IFS=$as_save_IFS
ce2cded5
L
4064
4065if test $ac_prog_rejected = yes; then
4066 # We found a bogon in the path, so make sure we never use it.
4067 set dummy $ac_cv_prog_CC
4068 shift
4069 if test $# != 0; then
4070 # We chose a different compiler from the bogus one.
4071 # However, it has the same basename, so the bogon will be chosen
4072 # first if we set CC to just the basename; use the full file name.
4073 shift
4074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4075 fi
4076fi
4077fi
4078fi
4079CC=$ac_cv_prog_CC
4080if test -n "$CC"; then
81ecdfbb
RW
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4082$as_echo "$CC" >&6; }
ce2cded5 4083else
81ecdfbb
RW
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085$as_echo "no" >&6; }
ce2cded5
L
4086fi
4087
81ecdfbb 4088
ce2cded5
L
4089fi
4090if test -z "$CC"; then
4091 if test -n "$ac_tool_prefix"; then
81ecdfbb 4092 for ac_prog in cl.exe
ce2cded5
L
4093 do
4094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4095set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097$as_echo_n "checking for $ac_word... " >&6; }
4098if test "${ac_cv_prog_CC+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
ce2cded5
L
4100else
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4109 for ac_exec_ext in '' $ac_executable_extensions; do
4110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4113 break 2
4114 fi
4115done
81ecdfbb
RW
4116 done
4117IFS=$as_save_IFS
ce2cded5
L
4118
4119fi
4120fi
4121CC=$ac_cv_prog_CC
4122if test -n "$CC"; then
81ecdfbb
RW
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124$as_echo "$CC" >&6; }
ce2cded5 4125else
81ecdfbb
RW
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127$as_echo "no" >&6; }
ce2cded5
L
4128fi
4129
81ecdfbb 4130
ce2cded5 4131 test -n "$CC" && break
d7040cdb
SE
4132 done
4133fi
ce2cded5
L
4134if test -z "$CC"; then
4135 ac_ct_CC=$CC
81ecdfbb 4136 for ac_prog in cl.exe
d7040cdb
SE
4137do
4138 # Extract the first word of "$ac_prog", so it can be a program name with args.
4139set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
4142if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
d7040cdb 4144else
ce2cded5
L
4145 if test -n "$ac_ct_CC"; then
4146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4155 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4157 break 2
ac48eca1 4158 fi
d7040cdb 4159done
81ecdfbb
RW
4160 done
4161IFS=$as_save_IFS
ac48eca1 4162
d7040cdb
SE
4163fi
4164fi
ce2cded5
L
4165ac_ct_CC=$ac_cv_prog_ac_ct_CC
4166if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4168$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4169else
81ecdfbb
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
d7040cdb 4172fi
ac48eca1 4173
81ecdfbb 4174
ce2cded5 4175 test -n "$ac_ct_CC" && break
d7040cdb 4176done
ac48eca1 4177
81ecdfbb
RW
4178 if test "x$ac_ct_CC" = x; then
4179 CC=""
4180 else
4181 case $cross_compiling:$ac_tool_warned in
4182yes:)
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4185ac_tool_warned=yes ;;
4186esac
4187 CC=$ac_ct_CC
4188 fi
d7040cdb 4189fi
ac48eca1 4190
d7040cdb 4191fi
ac48eca1 4192
ac48eca1 4193
81ecdfbb
RW
4194test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196as_fn_error "no acceptable C compiler found in \$PATH
4197See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4198
ce2cded5 4199# Provide some information about the compiler.
81ecdfbb
RW
4200$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4201set X $ac_compile
4202ac_compiler=$2
4203for ac_option in --version -v -V -qversion; do
4204 { { ac_try="$ac_compiler $ac_option >&5"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210$as_echo "$ac_try_echo"; } >&5
4211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4212 ac_status=$?
81ecdfbb
RW
4213 if test -s conftest.err; then
4214 sed '10a\
4215... rest of stderr output deleted ...
4216 10q' conftest.err >conftest.er1
4217 cat conftest.er1 >&5
4218 rm -f conftest.er1 conftest.err
4219 fi
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; }
4222done
ac48eca1 4223
81ecdfbb
RW
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4225$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4226if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4227 $as_echo_n "(cached) " >&6
d7040cdb 4228else
81ecdfbb 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4230/* end confdefs.h. */
c8615825 4231
ce2cded5
L
4232int
4233main ()
4234{
4235#ifndef __GNUC__
4236 choke me
4237#endif
4238
4239 ;
4240 return 0;
4241}
4242_ACEOF
81ecdfbb 4243if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4244 ac_compiler_gnu=yes
d7040cdb 4245else
81ecdfbb 4246 ac_compiler_gnu=no
d7040cdb 4247fi
81ecdfbb 4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4249ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4250
ce2cded5 4251fi
81ecdfbb
RW
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4253$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4254if test $ac_compiler_gnu = yes; then
4255 GCC=yes
4256else
4257 GCC=
4258fi
ce2cded5
L
4259ac_test_CFLAGS=${CFLAGS+set}
4260ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4262$as_echo_n "checking whether $CC accepts -g... " >&6; }
4263if test "${ac_cv_prog_cc_g+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 ac_save_c_werror_flag=$ac_c_werror_flag
4267 ac_c_werror_flag=yes
4268 ac_cv_prog_cc_g=no
4269 CFLAGS="-g"
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4271/* end confdefs.h. */
d7040cdb 4272
ce2cded5
L
4273int
4274main ()
4275{
d7040cdb 4276
ce2cded5
L
4277 ;
4278 return 0;
4279}
4280_ACEOF
81ecdfbb 4281if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4282 ac_cv_prog_cc_g=yes
4283else
81ecdfbb
RW
4284 CFLAGS=""
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h. */
4287
4288int
4289main ()
4290{
4291
4292 ;
4293 return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_compile "$LINENO"; then :
4297
4298else
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300 CFLAGS="-g"
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302/* end confdefs.h. */
d70c5fc7 4303
81ecdfbb
RW
4304int
4305main ()
4306{
4307
4308 ;
4309 return 0;
4310}
4311_ACEOF
4312if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_prog_cc_g=yes
4314fi
4315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4316fi
81ecdfbb 4317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4318fi
81ecdfbb
RW
4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 ac_c_werror_flag=$ac_save_c_werror_flag
4321fi
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4323$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4324if test "$ac_test_CFLAGS" = set; then
4325 CFLAGS=$ac_save_CFLAGS
4326elif test $ac_cv_prog_cc_g = yes; then
4327 if test "$GCC" = yes; then
4328 CFLAGS="-g -O2"
4329 else
4330 CFLAGS="-g"
4331 fi
ac48eca1 4332else
ce2cded5
L
4333 if test "$GCC" = yes; then
4334 CFLAGS="-O2"
4335 else
4336 CFLAGS=
4337 fi
ac48eca1 4338fi
81ecdfbb
RW
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4340$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4341if test "${ac_cv_prog_cc_c89+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
ac48eca1 4343else
81ecdfbb 4344 ac_cv_prog_cc_c89=no
ce2cded5 4345ac_save_CC=$CC
81ecdfbb 4346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4347/* end confdefs.h. */
4348#include <stdarg.h>
4349#include <stdio.h>
4350#include <sys/types.h>
4351#include <sys/stat.h>
4352/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4353struct buf { int x; };
4354FILE * (*rcsopen) (struct buf *, struct stat *, int);
4355static char *e (p, i)
4356 char **p;
4357 int i;
4358{
4359 return p[i];
4360}
4361static char *f (char * (*g) (char **, int), char **p, ...)
4362{
4363 char *s;
4364 va_list v;
4365 va_start (v,p);
4366 s = g (p, va_arg (v,int));
4367 va_end (v);
4368 return s;
4369}
4370
4371/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4372 function prototypes and stuff, but not '\xHH' hex character constants.
4373 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4374 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4375 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4376 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4377 that's true only with -std. */
ce2cded5
L
4378int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4379
81ecdfbb
RW
4380/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4381 inside strings and character constants. */
4382#define FOO(x) 'x'
4383int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4384
ce2cded5
L
4385int test (int i, double x);
4386struct s1 {int (*f) (int a);};
4387struct s2 {int (*f) (double a);};
4388int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4389int argc;
4390char **argv;
4391int
4392main ()
4393{
4394return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4395 ;
4396 return 0;
4397}
4398_ACEOF
81ecdfbb
RW
4399for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4400 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4401do
4402 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4405fi
81ecdfbb
RW
4406rm -f core conftest.err conftest.$ac_objext
4407 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4408done
81ecdfbb 4409rm -f conftest.$ac_ext
ce2cded5
L
4410CC=$ac_save_CC
4411
4412fi
81ecdfbb
RW
4413# AC_CACHE_VAL
4414case "x$ac_cv_prog_cc_c89" in
4415 x)
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4417$as_echo "none needed" >&6; } ;;
4418 xno)
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420$as_echo "unsupported" >&6; } ;;
ce2cded5 4421 *)
81ecdfbb
RW
4422 CC="$CC $ac_cv_prog_cc_c89"
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4424$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4425esac
81ecdfbb 4426if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4427
ce2cded5 4428fi
d7040cdb 4429
ce2cded5
L
4430ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4435
7357c5b6
AM
4436ac_ext=c
4437ac_cpp='$CPP $CPPFLAGS'
4438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4440ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4442$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4443# On Suns, sometimes $CPP names a directory.
4444if test -n "$CPP" && test -d "$CPP"; then
4445 CPP=
4446fi
4447if test -z "$CPP"; then
81ecdfbb
RW
4448 if test "${ac_cv_prog_CPP+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
7357c5b6
AM
4450else
4451 # Double quotes because CPP needs to be expanded
4452 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4453 do
4454 ac_preproc_ok=false
4455for ac_c_preproc_warn_flag in '' yes
4456do
4457 # Use a header file that comes with gcc, so configuring glibc
4458 # with a fresh cross-compiler works.
4459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4460 # <limits.h> exists even on freestanding compilers.
4461 # On the NeXT, cc -E runs the code through the compiler's parser,
4462 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4464/* end confdefs.h. */
4465#ifdef __STDC__
4466# include <limits.h>
4467#else
4468# include <assert.h>
4469#endif
4470 Syntax error
4471_ACEOF
81ecdfbb 4472if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4473
81ecdfbb 4474else
7357c5b6
AM
4475 # Broken: fails on valid input.
4476continue
4477fi
4478rm -f conftest.err conftest.$ac_ext
d7040cdb 4479
81ecdfbb 4480 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4481 # can be detected and how.
81ecdfbb 4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4483/* end confdefs.h. */
4484#include <ac_nonexistent.h>
4485_ACEOF
81ecdfbb 4486if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4487 # Broken: success on invalid input.
4488continue
4489else
7357c5b6
AM
4490 # Passes both tests.
4491ac_preproc_ok=:
4492break
4493fi
4494rm -f conftest.err conftest.$ac_ext
d7040cdb 4495
7357c5b6
AM
4496done
4497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4498rm -f conftest.err conftest.$ac_ext
81ecdfbb 4499if $ac_preproc_ok; then :
7357c5b6
AM
4500 break
4501fi
d7040cdb 4502
7357c5b6
AM
4503 done
4504 ac_cv_prog_CPP=$CPP
d7040cdb 4505
7357c5b6
AM
4506fi
4507 CPP=$ac_cv_prog_CPP
4508else
4509 ac_cv_prog_CPP=$CPP
4510fi
81ecdfbb
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4512$as_echo "$CPP" >&6; }
7357c5b6
AM
4513ac_preproc_ok=false
4514for ac_c_preproc_warn_flag in '' yes
4515do
4516 # Use a header file that comes with gcc, so configuring glibc
4517 # with a fresh cross-compiler works.
4518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4519 # <limits.h> exists even on freestanding compilers.
4520 # On the NeXT, cc -E runs the code through the compiler's parser,
4521 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4523/* end confdefs.h. */
4524#ifdef __STDC__
4525# include <limits.h>
4526#else
4527# include <assert.h>
4528#endif
4529 Syntax error
4530_ACEOF
81ecdfbb 4531if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4532
81ecdfbb 4533else
7357c5b6
AM
4534 # Broken: fails on valid input.
4535continue
4536fi
4537rm -f conftest.err conftest.$ac_ext
d7040cdb 4538
81ecdfbb 4539 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4540 # can be detected and how.
81ecdfbb 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4542/* end confdefs.h. */
4543#include <ac_nonexistent.h>
4544_ACEOF
81ecdfbb 4545if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4546 # Broken: success on invalid input.
4547continue
4548else
7357c5b6
AM
4549 # Passes both tests.
4550ac_preproc_ok=:
4551break
4552fi
4553rm -f conftest.err conftest.$ac_ext
d7040cdb 4554
7357c5b6
AM
4555done
4556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4557rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4558if $ac_preproc_ok; then :
4559
7357c5b6 4560else
81ecdfbb
RW
4561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563as_fn_error "C preprocessor \"$CPP\" fails sanity check
4564See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4565fi
ac48eca1 4566
7357c5b6
AM
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4572
ac48eca1 4573
81ecdfbb
RW
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4575$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4576if test "${ac_cv_path_GREP+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
7357c5b6 4578else
81ecdfbb
RW
4579 if test -z "$GREP"; then
4580 ac_path_GREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in grep ggrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4591# Check for GNU ac_path_GREP and select it if it is found.
4592 # Check for GNU $ac_path_GREP
4593case `"$ac_path_GREP" --version 2>&1` in
4594*GNU*)
4595 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4596*)
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4600 do
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo 'GREP' >> "conftest.nl"
4605 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_GREP="$ac_path_GREP"
4611 ac_path_GREP_max=$ac_count
7357c5b6 4612 fi
81ecdfbb
RW
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617esac
4618
4619 $ac_path_GREP_found && break 3
4620 done
4621 done
4622 done
4623IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_GREP"; then
4625 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4626 fi
4627else
4628 ac_cv_path_GREP=$GREP
7357c5b6 4629fi
81ecdfbb
RW
4630
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4633$as_echo "$ac_cv_path_GREP" >&6; }
4634 GREP="$ac_cv_path_GREP"
ac48eca1 4635
d7040cdb 4636
81ecdfbb
RW
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4638$as_echo_n "checking for egrep... " >&6; }
4639if test "${ac_cv_path_EGREP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
7357c5b6 4641else
81ecdfbb
RW
4642 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4643 then ac_cv_path_EGREP="$GREP -E"
4644 else
4645 if test -z "$EGREP"; then
4646 ac_path_EGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in egrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657# Check for GNU ac_path_EGREP and select it if it is found.
4658 # Check for GNU $ac_path_EGREP
4659case `"$ac_path_EGREP" --version 2>&1` in
4660*GNU*)
4661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4662*)
4663 ac_count=0
4664 $as_echo_n 0123456789 >"conftest.in"
4665 while :
4666 do
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 $as_echo 'EGREP' >> "conftest.nl"
4671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 as_fn_arith $ac_count + 1 && ac_count=$as_val
4674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_EGREP="$ac_path_EGREP"
4677 ac_path_EGREP_max=$ac_count
4678 fi
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4681 done
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4683esac
4684
4685 $ac_path_EGREP_found && break 3
4686 done
4687 done
4688 done
4689IFS=$as_save_IFS
4690 if test -z "$ac_cv_path_EGREP"; then
4691 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4692 fi
4693else
4694 ac_cv_path_EGREP=$EGREP
4695fi
4696
4697 fi
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4700$as_echo "$ac_cv_path_EGREP" >&6; }
4701 EGREP="$ac_cv_path_EGREP"
4702
4703
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4705$as_echo_n "checking for ANSI C header files... " >&6; }
4706if test "${ac_cv_header_stdc+set}" = set; then :
4707 $as_echo_n "(cached) " >&6
4708else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4710/* end confdefs.h. */
4711#include <stdlib.h>
4712#include <stdarg.h>
4713#include <string.h>
4714#include <float.h>
d7040cdb 4715
7357c5b6
AM
4716int
4717main ()
4718{
d7040cdb 4719
7357c5b6
AM
4720 ;
4721 return 0;
4722}
4723_ACEOF
81ecdfbb 4724if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4725 ac_cv_header_stdc=yes
4726else
81ecdfbb 4727 ac_cv_header_stdc=no
7357c5b6 4728fi
81ecdfbb 4729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4730
7357c5b6
AM
4731if test $ac_cv_header_stdc = yes; then
4732 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4734/* end confdefs.h. */
4735#include <string.h>
d7040cdb 4736
7357c5b6
AM
4737_ACEOF
4738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4739 $EGREP "memchr" >/dev/null 2>&1; then :
4740
ce2cded5 4741else
7357c5b6
AM
4742 ac_cv_header_stdc=no
4743fi
4744rm -f conftest*
d7040cdb 4745
7357c5b6 4746fi
d7040cdb 4747
7357c5b6
AM
4748if test $ac_cv_header_stdc = yes; then
4749 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4751/* end confdefs.h. */
4752#include <stdlib.h>
ac48eca1 4753
7357c5b6
AM
4754_ACEOF
4755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4756 $EGREP "free" >/dev/null 2>&1; then :
4757
7357c5b6
AM
4758else
4759 ac_cv_header_stdc=no
4760fi
4761rm -f conftest*
d7040cdb 4762
7357c5b6 4763fi
d7040cdb 4764
7357c5b6
AM
4765if test $ac_cv_header_stdc = yes; then
4766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4767 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4768 :
4769else
81ecdfbb 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4771/* end confdefs.h. */
4772#include <ctype.h>
81ecdfbb 4773#include <stdlib.h>
7357c5b6
AM
4774#if ((' ' & 0x0FF) == 0x020)
4775# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4776# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4777#else
4778# define ISLOWER(c) \
4779 (('a' <= (c) && (c) <= 'i') \
4780 || ('j' <= (c) && (c) <= 'r') \
4781 || ('s' <= (c) && (c) <= 'z'))
4782# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4783#endif
d7040cdb 4784
7357c5b6
AM
4785#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4786int
4787main ()
4788{
4789 int i;
4790 for (i = 0; i < 256; i++)
4791 if (XOR (islower (i), ISLOWER (i))
4792 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4793 return 2;
4794 return 0;
7357c5b6
AM
4795}
4796_ACEOF
81ecdfbb 4797if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4798
81ecdfbb
RW
4799else
4800 ac_cv_header_stdc=no
7357c5b6 4801fi
81ecdfbb
RW
4802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4803 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4804fi
81ecdfbb 4805
7357c5b6
AM
4806fi
4807fi
81ecdfbb
RW
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4809$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4810if test $ac_cv_header_stdc = yes; then
d7040cdb 4811
81ecdfbb 4812$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4813
7357c5b6 4814fi
d7040cdb 4815
7357c5b6 4816# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4817for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4818 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4819do :
4820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4821ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4822"
4823eval as_val=\$$as_ac_Header
4824 if test "x$as_val" = x""yes; then :
7357c5b6 4825 cat >>confdefs.h <<_ACEOF
81ecdfbb 4826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4827_ACEOF
ce2cded5 4828
7357c5b6 4829fi
ce2cded5 4830
7357c5b6 4831done
ce2cded5
L
4832
4833
4834
81ecdfbb
RW
4835 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4836if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4837 MINIX=yes
4838else
4839 MINIX=
4840fi
d7040cdb
SE
4841
4842
7357c5b6 4843 if test "$MINIX" = yes; then
d7040cdb 4844
81ecdfbb 4845$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4846
4847
81ecdfbb 4848$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4849
4850
81ecdfbb 4851$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4852
7357c5b6 4853 fi
d7040cdb
SE
4854
4855
81ecdfbb
RW
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4857$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4858if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
ac48eca1 4860else
81ecdfbb 4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4862/* end confdefs.h. */
ac48eca1 4863
7357c5b6
AM
4864# define __EXTENSIONS__ 1
4865 $ac_includes_default
4866int
4867main ()
4868{
13b2be9c 4869
7357c5b6
AM
4870 ;
4871 return 0;
4872}
4873_ACEOF
81ecdfbb 4874if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4875 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4876else
81ecdfbb 4877 ac_cv_safe_to_define___extensions__=no
d6d788bd 4878fi
81ecdfbb 4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4880fi
81ecdfbb
RW
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4882$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4883 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4884 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4885
81ecdfbb 4886 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4887
81ecdfbb 4888 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4889
81ecdfbb 4890 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4891
81ecdfbb 4892 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4893
a74801ba 4894
d053aef8 4895
81ecdfbb 4896
da2f07f1 4897
718a6fd8
SE
4898case `pwd` in
4899 *\ * | *\ *)
81ecdfbb
RW
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4901$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4902esac
13b2be9c 4903
252b5132 4904
7357c5b6 4905
f2c621e4
AS
4906macro_version='2.2.7a'
4907macro_revision='1.3134'
7357c5b6
AM
4908
4909
4910
4911
4912
4913
7357c5b6
AM
4914
4915
4916
4917
4918
4919
4920
718a6fd8 4921ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4922
3725885a
RW
4923# Backslashify metacharacters that are still active within
4924# double-quoted strings.
4925sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4926
4927# Same as above, but do not quote variable references.
4928double_quote_subst='s/\(["`\\]\)/\\\1/g'
4929
4930# Sed substitution to delay expansion of an escaped shell variable in a
4931# double_quote_subst'ed string.
4932delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4933
4934# Sed substitution to delay expansion of an escaped single quote.
4935delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4936
4937# Sed substitution to avoid accidental globbing in evaled expressions
4938no_glob_subst='s/\*/\\\*/g'
4939
4940ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4941ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4945$as_echo_n "checking how to print strings... " >&6; }
4946# Test print first, because it will be a builtin if present.
f2c621e4 4947if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4949 ECHO='print -r --'
4950elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4951 ECHO='printf %s\n'
4952else
4953 # Use this function as a fallback that always works.
4954 func_fallback_echo ()
4955 {
4956 eval 'cat <<_LTECHO_EOF
4957$1
4958_LTECHO_EOF'
4959 }
4960 ECHO='func_fallback_echo'
4961fi
4962
4963# func_echo_all arg...
4964# Invoke $ECHO with all args, space-separated.
4965func_echo_all ()
4966{
4967 $ECHO ""
4968}
4969
4970case "$ECHO" in
4971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4972$as_echo "printf" >&6; } ;;
4973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4974$as_echo "print -r" >&6; } ;;
4975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4976$as_echo "cat" >&6; } ;;
4977esac
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
81ecdfbb
RW
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4993$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4994if test "${ac_cv_path_SED+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4996else
4997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4998 for ac_i in 1 2 3 4 5 6 7; do
4999 ac_script="$ac_script$as_nl$ac_script"
5000 done
5001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5002 { ac_script=; unset ac_script;}
5003 if test -z "$SED"; then
5004 ac_path_SED_found=false
5005 # Loop through the user's path and test for each of PROGNAME-LIST
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
81ecdfbb 5011 for ac_prog in sed gsed; do
7357c5b6 5012 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5014 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5015# Check for GNU ac_path_SED and select it if it is found.
5016 # Check for GNU $ac_path_SED
5017case `"$ac_path_SED" --version 2>&1` in
5018*GNU*)
5019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5020*)
5021 ac_count=0
5022 $as_echo_n 0123456789 >"conftest.in"
5023 while :
5024 do
5025 cat "conftest.in" "conftest.in" >"conftest.tmp"
5026 mv "conftest.tmp" "conftest.in"
5027 cp "conftest.in" "conftest.nl"
5028 $as_echo '' >> "conftest.nl"
5029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5031 as_fn_arith $ac_count + 1 && ac_count=$as_val
5032 if test $ac_count -gt ${ac_path_SED_max-0}; then
5033 # Best one so far, save it but keep looking for a better one
5034 ac_cv_path_SED="$ac_path_SED"
5035 ac_path_SED_max=$ac_count
5036 fi
5037 # 10*(2^10) chars as input seems more than enough
5038 test $ac_count -gt 10 && break
5039 done
5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041esac
5042
5043 $ac_path_SED_found && break 3
7357c5b6
AM
5044 done
5045 done
81ecdfbb 5046 done
7357c5b6 5047IFS=$as_save_IFS
81ecdfbb
RW
5048 if test -z "$ac_cv_path_SED"; then
5049 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5050 fi
81ecdfbb
RW
5051else
5052 ac_cv_path_SED=$SED
7357c5b6
AM
5053fi
5054
81ecdfbb
RW
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5057$as_echo "$ac_cv_path_SED" >&6; }
5058 SED="$ac_cv_path_SED"
5059 rm -f conftest.sed
7357c5b6
AM
5060
5061test -z "$SED" && SED=sed
5062Xsed="$SED -e 1s/^X//"
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
81ecdfbb
RW
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5075$as_echo_n "checking for fgrep... " >&6; }
5076if test "${ac_cv_path_FGREP+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
7357c5b6 5078else
81ecdfbb
RW
5079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5080 then ac_cv_path_FGREP="$GREP -F"
5081 else
5082 if test -z "$FGREP"; then
5083 ac_path_FGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087do
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in fgrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5094# Check for GNU ac_path_FGREP and select it if it is found.
5095 # Check for GNU $ac_path_FGREP
5096case `"$ac_path_FGREP" --version 2>&1` in
5097*GNU*)
5098 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5099*)
5100 ac_count=0
5101 $as_echo_n 0123456789 >"conftest.in"
5102 while :
5103 do
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 $as_echo 'FGREP' >> "conftest.nl"
5108 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 as_fn_arith $ac_count + 1 && ac_count=$as_val
5111 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_FGREP="$ac_path_FGREP"
5114 ac_path_FGREP_max=$ac_count
7357c5b6 5115 fi
81ecdfbb
RW
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120esac
5121
5122 $ac_path_FGREP_found && break 3
5123 done
5124 done
5125 done
5126IFS=$as_save_IFS
5127 if test -z "$ac_cv_path_FGREP"; then
5128 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5129 fi
5130else
5131 ac_cv_path_FGREP=$FGREP
7357c5b6 5132fi
81ecdfbb
RW
5133
5134 fi
5135fi
5136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5137$as_echo "$ac_cv_path_FGREP" >&6; }
5138 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5139
5140
5141test -z "$GREP" && GREP=grep
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
81ecdfbb
RW
5161# Check whether --with-gnu-ld was given.
5162if test "${with_gnu_ld+set}" = set; then :
5163 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5164else
5165 with_gnu_ld=no
81ecdfbb
RW
5166fi
5167
ce2cded5
L
5168ac_prog=ld
5169if test "$GCC" = yes; then
5170 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5172$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5173 case $host in
5174 *-*-mingw*)
5175 # gcc leaves a trailing carriage return which upsets mingw
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5177 *)
5178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179 esac
5180 case $ac_prog in
5181 # Accept absolute paths.
5182 [\\/]* | ?:[\\/]*)
5183 re_direlt='/[^/][^/]*/\.\./'
5184 # Canonicalize the pathname of ld
5185 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5186 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5187 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5188 done
5189 test -z "$LD" && LD="$ac_prog"
5190 ;;
5191 "")
5192 # If it fails, then pretend we aren't using GCC.
5193 ac_prog=ld
5194 ;;
5195 *)
5196 # If it is relative, then search for the first ld in PATH.
5197 with_gnu_ld=unknown
5198 ;;
5199 esac
5200elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5202$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5203else
81ecdfbb
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5205$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5206fi
81ecdfbb
RW
5207if test "${lt_cv_path_LD+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
ce2cded5
L
5209else
5210 if test -z "$LD"; then
5211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5212 for ac_dir in $PATH; do
5213 IFS="$lt_save_ifs"
5214 test -z "$ac_dir" && ac_dir=.
5215 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216 lt_cv_path_LD="$ac_dir/$ac_prog"
5217 # Check to see if the program is GNU ld. I'd rather use --version,
5218 # but apparently some variants of GNU ld only accept -v.
5219 # Break only if it was the GNU/non-GNU ld that we prefer.
5220 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5221 *GNU* | *'with BFD'*)
5222 test "$with_gnu_ld" != no && break
5223 ;;
5224 *)
5225 test "$with_gnu_ld" != yes && break
5226 ;;
5227 esac
5228 fi
5229 done
5230 IFS="$lt_save_ifs"
5231else
5232 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5233fi
5234fi
5235
5236LD="$lt_cv_path_LD"
5237if test -n "$LD"; then
81ecdfbb
RW
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5239$as_echo "$LD" >&6; }
ce2cded5 5240else
81ecdfbb
RW
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242$as_echo "no" >&6; }
ce2cded5 5243fi
81ecdfbb
RW
5244test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5246$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5247if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
ce2cded5
L
5249else
5250 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5251case `$LD -v 2>&1 </dev/null` in
5252*GNU* | *'with BFD'*)
5253 lt_cv_prog_gnu_ld=yes
5254 ;;
5255*)
5256 lt_cv_prog_gnu_ld=no
5257 ;;
5258esac
5259fi
81ecdfbb
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5261$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5262with_gnu_ld=$lt_cv_prog_gnu_ld
5263
5264
5265
5266
5267
5268
5269
5270
5271
81ecdfbb
RW
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5273$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5274if test "${lt_cv_path_NM+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
ce2cded5
L
5276else
5277 if test -n "$NM"; then
5278 # Let the user override the test.
5279 lt_cv_path_NM="$NM"
5280else
5281 lt_nm_to_check="${ac_tool_prefix}nm"
5282 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5283 lt_nm_to_check="$lt_nm_to_check nm"
5284 fi
5285 for lt_tmp_nm in $lt_nm_to_check; do
5286 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5287 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5288 IFS="$lt_save_ifs"
5289 test -z "$ac_dir" && ac_dir=.
5290 tmp_nm="$ac_dir/$lt_tmp_nm"
5291 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5292 # Check to see if the nm accepts a BSD-compat flag.
5293 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5294 # nm: unknown option "B" ignored
5295 # Tru64's nm complains that /dev/null is an invalid object file
5296 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5297 */dev/null* | *'Invalid file or object type'*)
5298 lt_cv_path_NM="$tmp_nm -B"
5299 break
5300 ;;
5301 *)
5302 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5303 */dev/null*)
5304 lt_cv_path_NM="$tmp_nm -p"
5305 break
5306 ;;
5307 *)
5308 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5309 continue # so that we can try to find one that supports BSD flags
5310 ;;
5311 esac
5312 ;;
5313 esac
5314 fi
5315 done
5316 IFS="$lt_save_ifs"
5317 done
5318 : ${lt_cv_path_NM=no}
5319fi
5320fi
81ecdfbb
RW
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5322$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5323if test "$lt_cv_path_NM" != "no"; then
5324 NM="$lt_cv_path_NM"
5325else
5326 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5327 if test -n "$DUMPBIN"; then :
5328 # Let the user override the test.
5329 else
5330 if test -n "$ac_tool_prefix"; then
5331 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5332 do
5333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336$as_echo_n "checking for $ac_word... " >&6; }
5337if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
d7040cdb 5339else
ce2cded5
L
5340 if test -n "$DUMPBIN"; then
5341 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5350 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5352 break 2
d70c5fc7 5353 fi
d7040cdb 5354done
81ecdfbb
RW
5355 done
5356IFS=$as_save_IFS
d70c5fc7 5357
d7040cdb
SE
5358fi
5359fi
ce2cded5
L
5360DUMPBIN=$ac_cv_prog_DUMPBIN
5361if test -n "$DUMPBIN"; then
81ecdfbb
RW
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5363$as_echo "$DUMPBIN" >&6; }
bedf545c 5364else
81ecdfbb
RW
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
d7040cdb 5367fi
13b2be9c 5368
81ecdfbb 5369
ce2cded5
L
5370 test -n "$DUMPBIN" && break
5371 done
5372fi
5373if test -z "$DUMPBIN"; then
5374 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5375 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5376do
5377 # Extract the first word of "$ac_prog", so it can be a program name with args.
5378set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
d7040cdb 5383else
ce2cded5
L
5384 if test -n "$ac_ct_DUMPBIN"; then
5385 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5396 break 2
5397 fi
5398done
81ecdfbb
RW
5399 done
5400IFS=$as_save_IFS
ce2cded5
L
5401
5402fi
5403fi
5404ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5405if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5407$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5408else
81ecdfbb
RW
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
d7040cdb
SE
5411fi
5412
81ecdfbb 5413
ce2cded5
L
5414 test -n "$ac_ct_DUMPBIN" && break
5415done
13b2be9c 5416
81ecdfbb
RW
5417 if test "x$ac_ct_DUMPBIN" = x; then
5418 DUMPBIN=":"
5419 else
5420 case $cross_compiling:$ac_tool_warned in
5421yes:)
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426 DUMPBIN=$ac_ct_DUMPBIN
5427 fi
ce2cded5 5428fi
13b2be9c 5429
3725885a
RW
5430 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5431 *COFF*)
5432 DUMPBIN="$DUMPBIN -symbols"
5433 ;;
5434 *)
5435 DUMPBIN=:
5436 ;;
5437 esac
5438 fi
bedf545c 5439
ce2cded5
L
5440 if test "$DUMPBIN" != ":"; then
5441 NM="$DUMPBIN"
5442 fi
5443fi
5444test -z "$NM" && NM=nm
6840198f 5445
13b2be9c 5446
ac48eca1 5447
d7040cdb 5448
ce2cded5
L
5449
5450
81ecdfbb
RW
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5452$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5453if test "${lt_cv_nm_interface+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
ce2cded5
L
5455else
5456 lt_cv_nm_interface="BSD nm"
5457 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5458 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5459 (eval "$ac_compile" 2>conftest.err)
5460 cat conftest.err >&5
3725885a 5461 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5462 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5463 cat conftest.err >&5
3725885a 5464 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5465 cat conftest.out >&5
5466 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5467 lt_cv_nm_interface="MS dumpbin"
5468 fi
5469 rm -f conftest*
5470fi
81ecdfbb
RW
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5472$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5473
81ecdfbb
RW
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5475$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5476LN_S=$as_ln_s
5477if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479$as_echo "yes" >&6; }
ce2cded5 5480else
81ecdfbb
RW
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5482$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5483fi
5484
5485# find the maximum length of command line arguments
81ecdfbb
RW
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5487$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5488if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
ce2cded5
L
5490else
5491 i=0
5492 teststring="ABCD"
5493
5494 case $build_os in
5495 msdosdjgpp*)
5496 # On DJGPP, this test can blow up pretty badly due to problems in libc
5497 # (any single argument exceeding 2000 bytes causes a buffer overrun
5498 # during glob expansion). Even if it were fixed, the result of this
5499 # check would be larger than it should be.
5500 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5501 ;;
5502
5503 gnu*)
5504 # Under GNU Hurd, this test is not required because there is
5505 # no limit to the length of command line arguments.
5506 # Libtool will interpret -1 as no limit whatsoever
5507 lt_cv_sys_max_cmd_len=-1;
5508 ;;
5509
718a6fd8 5510 cygwin* | mingw* | cegcc*)
ce2cded5
L
5511 # On Win9x/ME, this test blows up -- it succeeds, but takes
5512 # about 5 minutes as the teststring grows exponentially.
5513 # Worse, since 9x/ME are not pre-emptively multitasking,
5514 # you end up with a "frozen" computer, even though with patience
5515 # the test eventually succeeds (with a max line length of 256k).
5516 # Instead, let's just punt: use the minimum linelength reported by
5517 # all of the supported platforms: 8192 (on NT/2K/XP).
5518 lt_cv_sys_max_cmd_len=8192;
5519 ;;
5520
3725885a
RW
5521 mint*)
5522 # On MiNT this can take a long time and run out of memory.
5523 lt_cv_sys_max_cmd_len=8192;
5524 ;;
5525
ce2cded5
L
5526 amigaos*)
5527 # On AmigaOS with pdksh, this test takes hours, literally.
5528 # So we just punt and use a minimum line length of 8192.
5529 lt_cv_sys_max_cmd_len=8192;
5530 ;;
5531
5532 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5533 # This has been around since 386BSD, at least. Likely further.
5534 if test -x /sbin/sysctl; then
5535 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5536 elif test -x /usr/sbin/sysctl; then
5537 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5538 else
5539 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5540 fi
5541 # And add a safety zone
5542 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5544 ;;
5545
5546 interix*)
5547 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5548 lt_cv_sys_max_cmd_len=196608
5549 ;;
5550
5551 osf*)
5552 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5553 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5554 # nice to cause kernel panics so lets avoid the loop below.
5555 # First set a reasonable default.
5556 lt_cv_sys_max_cmd_len=16384
5557 #
5558 if test -x /sbin/sysconfig; then
5559 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5560 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5561 esac
5562 fi
5563 ;;
5564 sco3.2v5*)
5565 lt_cv_sys_max_cmd_len=102400
5566 ;;
5567 sysv5* | sco5v6* | sysv4.2uw2*)
5568 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5569 if test -n "$kargmax"; then
5570 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5571 else
5572 lt_cv_sys_max_cmd_len=32768
5573 fi
d7040cdb
SE
5574 ;;
5575 *)
718a6fd8
SE
5576 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5577 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5580 else
5581 # Make teststring a little bigger before we do anything with it.
5582 # a 1K string should be a reasonable start.
5583 for i in 1 2 3 4 5 6 7 8 ; do
5584 teststring=$teststring$teststring
5585 done
5586 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5587 # If test is not a shell built-in, we'll probably end up computing a
5588 # maximum length that is only half of the actual maximum length, but
5589 # we can't tell.
3725885a
RW
5590 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5591 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5592 test $i != 17 # 1/2 MB should be enough
5593 do
5594 i=`expr $i + 1`
5595 teststring=$teststring$teststring
5596 done
5597 # Only check the string length outside the loop.
5598 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5599 teststring=
5600 # Add a significant safety factor because C++ compilers can tack on
5601 # massive amounts of additional arguments before passing them to the
5602 # linker. It appears as though 1/2 is a usable value.
5603 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5604 fi
d7040cdb
SE
5605 ;;
5606 esac
252b5132 5607
ce2cded5 5608fi
d6d788bd 5609
ce2cded5 5610if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5612$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5613else
81ecdfbb
RW
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5615$as_echo "none" >&6; }
ce2cded5
L
5616fi
5617max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5618
d6d788bd 5619
13b2be9c 5620
13b2be9c 5621
bedf545c 5622
252b5132 5623
ce2cded5
L
5624: ${CP="cp -f"}
5625: ${MV="mv -f"}
5626: ${RM="rm -f"}
d6d788bd 5627
81ecdfbb
RW
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5629$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5630# Try some XSI features
5631xsi_shell=no
5632( _lt_dummy="a/b/c"
f2c621e4
AS
5633 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5634 = c,a/b,, \
718a6fd8
SE
5635 && eval 'test $(( 1 + 1 )) -eq 2 \
5636 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5637 && xsi_shell=yes
81ecdfbb
RW
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5639$as_echo "$xsi_shell" >&6; }
bedf545c 5640
bedf545c 5641
81ecdfbb
RW
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5643$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5644lt_shell_append=no
5645( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5646 >/dev/null 2>&1 \
5647 && lt_shell_append=yes
81ecdfbb
RW
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5649$as_echo "$lt_shell_append" >&6; }
252b5132 5650
d6d788bd 5651
ce2cded5
L
5652if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5653 lt_unset=unset
5654else
5655 lt_unset=false
5656fi
13b2be9c
DJ
5657
5658
5659
5660
d6d788bd 5661
ce2cded5
L
5662# test EBCDIC or ASCII
5663case `echo X|tr X '\101'` in
5664 A) # ASCII based system
5665 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5666 lt_SP2NL='tr \040 \012'
5667 lt_NL2SP='tr \015\012 \040\040'
5668 ;;
5669 *) # EBCDIC based system
5670 lt_SP2NL='tr \100 \n'
5671 lt_NL2SP='tr \r\n \100\100'
5672 ;;
5673esac
c43a438d 5674
c43a438d 5675
c43a438d 5676
252b5132 5677
ad22bfe8 5678
1ad12f97 5679
1ad12f97 5680
9e9b66a9 5681
1ad12f97 5682
81ecdfbb
RW
5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5684$as_echo_n "checking for $LD option to reload object files... " >&6; }
5685if test "${lt_cv_ld_reload_flag+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
ce2cded5
L
5687else
5688 lt_cv_ld_reload_flag='-r'
5689fi
81ecdfbb
RW
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5691$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5692reload_flag=$lt_cv_ld_reload_flag
5693case $reload_flag in
5694"" | " "*) ;;
5695*) reload_flag=" $reload_flag" ;;
5696esac
5697reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698case $host_os in
5699 darwin*)
5700 if test "$GCC" = yes; then
5701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5702 else
5703 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704 fi
5705 ;;
5706esac
a541e3ce 5707
9e9b66a9 5708
a2d91340 5709
d6d788bd 5710
9e9b66a9
AM
5711
5712
5713
d6d788bd 5714
252b5132 5715
718a6fd8
SE
5716if test -n "$ac_tool_prefix"; then
5717 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5718set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720$as_echo_n "checking for $ac_word... " >&6; }
5721if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5722 $as_echo_n "(cached) " >&6
718a6fd8
SE
5723else
5724 if test -n "$OBJDUMP"; then
5725 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5726else
5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728for as_dir in $PATH
5729do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5734 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5736 break 2
5737 fi
5738done
81ecdfbb
RW
5739 done
5740IFS=$as_save_IFS
718a6fd8
SE
5741
5742fi
5743fi
5744OBJDUMP=$ac_cv_prog_OBJDUMP
5745if test -n "$OBJDUMP"; then
81ecdfbb
RW
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5747$as_echo "$OBJDUMP" >&6; }
718a6fd8 5748else
81ecdfbb
RW
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750$as_echo "no" >&6; }
718a6fd8
SE
5751fi
5752
81ecdfbb 5753
718a6fd8
SE
5754fi
5755if test -z "$ac_cv_prog_OBJDUMP"; then
5756 ac_ct_OBJDUMP=$OBJDUMP
5757 # Extract the first word of "objdump", so it can be a program name with args.
5758set dummy objdump; ac_word=$2
81ecdfbb
RW
5759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760$as_echo_n "checking for $ac_word... " >&6; }
5761if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
718a6fd8
SE
5763else
5764 if test -n "$ac_ct_OBJDUMP"; then
5765 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5766else
5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5774 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5776 break 2
5777 fi
5778done
81ecdfbb
RW
5779 done
5780IFS=$as_save_IFS
718a6fd8 5781
718a6fd8
SE
5782fi
5783fi
5784ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5785if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5787$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5788else
81ecdfbb
RW
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790$as_echo "no" >&6; }
718a6fd8
SE
5791fi
5792
81ecdfbb
RW
5793 if test "x$ac_ct_OBJDUMP" = x; then
5794 OBJDUMP="false"
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797yes:)
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5800ac_tool_warned=yes ;;
5801esac
5802 OBJDUMP=$ac_ct_OBJDUMP
5803 fi
718a6fd8
SE
5804else
5805 OBJDUMP="$ac_cv_prog_OBJDUMP"
5806fi
5807
5808test -z "$OBJDUMP" && OBJDUMP=objdump
5809
5810
5811
5812
5813
5814
5815
5816
13b2be9c 5817
81ecdfbb
RW
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5819$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5820if test "${lt_cv_deplibs_check_method+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
d7040cdb 5822else
ce2cded5
L
5823 lt_cv_file_magic_cmd='$MAGIC_CMD'
5824lt_cv_file_magic_test_file=
5825lt_cv_deplibs_check_method='unknown'
5826# Need to set the preceding variable on all platforms that support
5827# interlibrary dependencies.
5828# 'none' -- dependencies not supported.
5829# `unknown' -- same as none, but documents that we really don't know.
5830# 'pass_all' -- all dependencies passed with no checks.
5831# 'test_compile' -- check by making test program.
5832# 'file_magic [[regex]]' -- check by looking for files in library path
5833# which responds to the $file_magic_cmd with a given extended regex.
5834# If you have `file' or equivalent on your system and you're not sure
5835# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 5836
ce2cded5 5837case $host_os in
50e7d84b 5838aix[4-9]*)
ce2cded5
L
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
d7040cdb 5841
ce2cded5
L
5842beos*)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
d7040cdb 5845
ce2cded5
L
5846bsdi[45]*)
5847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5848 lt_cv_file_magic_cmd='/usr/bin/file -L'
5849 lt_cv_file_magic_test_file=/shlib/libc.so
5850 ;;
d7040cdb 5851
ce2cded5
L
5852cygwin*)
5853 # func_win32_libid is a shell function defined in ltmain.sh
5854 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5855 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 5856 ;;
ce2cded5
L
5857
5858mingw* | pw32*)
5859 # Base MSYS/MinGW do not provide the 'file' command needed by
5860 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5861 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5862 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5863 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
5864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865 lt_cv_file_magic_cmd='func_win32_libid'
5866 else
f2c621e4 5867 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
5868 lt_cv_file_magic_cmd='$OBJDUMP -f'
5869 fi
d7040cdb 5870 ;;
ce2cded5 5871
3725885a 5872cegcc*)
718a6fd8
SE
5873 # use the weaker test based on 'objdump'. See mingw*.
5874 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5875 lt_cv_file_magic_cmd='$OBJDUMP -f'
5876 ;;
5877
ce2cded5
L
5878darwin* | rhapsody*)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881
5882freebsd* | dragonfly*)
5883 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5884 case $host_cpu in
5885 i*86 )
5886 # Not sure whether the presence of OpenBSD here was a mistake.
5887 # Let's accept both of them until this is cleared up.
5888 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5889 lt_cv_file_magic_cmd=/usr/bin/file
5890 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5891 ;;
5892 esac
5893 else
5894 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
5895 fi
5896 ;;
ce2cded5
L
5897
5898gnu*)
5899 lt_cv_deplibs_check_method=pass_all
d7040cdb 5900 ;;
ce2cded5 5901
3725885a
RW
5902haiku*)
5903 lt_cv_deplibs_check_method=pass_all
5904 ;;
5905
ce2cded5
L
5906hpux10.20* | hpux11*)
5907 lt_cv_file_magic_cmd=/usr/bin/file
5908 case $host_cpu in
5909 ia64*)
5910 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5911 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5912 ;;
5913 hppa*64*)
3725885a 5914 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
5915 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5916 ;;
5917 *)
3725885a 5918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
5919 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5920 ;;
5921 esac
d7040cdb 5922 ;;
ce2cded5
L
5923
5924interix[3-9]*)
5925 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 5927 ;;
ce2cded5
L
5928
5929irix5* | irix6* | nonstopux*)
5930 case $LD in
5931 *-32|*"-32 ") libmagic=32-bit;;
5932 *-n32|*"-n32 ") libmagic=N32;;
5933 *-64|*"-64 ") libmagic=64-bit;;
5934 *) libmagic=never-match;;
5935 esac
5936 lt_cv_deplibs_check_method=pass_all
d7040cdb 5937 ;;
ce2cded5
L
5938
5939# This must be Linux ELF.
58e24671 5940linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 5941 lt_cv_deplibs_check_method=pass_all
d7040cdb 5942 ;;
ce2cded5
L
5943
5944netbsd*)
5945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5946 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5947 else
5948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5949 fi
d7040cdb 5950 ;;
ce2cded5
L
5951
5952newos6*)
5953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5954 lt_cv_file_magic_cmd=/usr/bin/file
5955 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 5956 ;;
76a27922 5957
ce2cded5
L
5958*nto* | *qnx*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
d6d788bd 5961
ce2cded5
L
5962openbsd*)
5963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5965 else
5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5967 fi
5968 ;;
44f2f9d2 5969
ce2cded5
L
5970osf3* | osf4* | osf5*)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
44f2f9d2 5973
ce2cded5
L
5974rdos*)
5975 lt_cv_deplibs_check_method=pass_all
5976 ;;
5977
5978solaris*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986sysv4 | sysv4.3*)
5987 case $host_vendor in
5988 motorola)
5989 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]'
5990 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5991 ;;
5992 ncr)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995 sequent)
5996 lt_cv_file_magic_cmd='/bin/file'
5997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5998 ;;
5999 sni)
6000 lt_cv_file_magic_cmd='/bin/file'
6001 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6002 lt_cv_file_magic_test_file=/lib/libc.so
6003 ;;
6004 siemens)
6005 lt_cv_deplibs_check_method=pass_all
6006 ;;
6007 pc)
6008 lt_cv_deplibs_check_method=pass_all
6009 ;;
6010 esac
6011 ;;
6012
6013tpf*)
6014 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6015 ;;
6016esac
6017
ce2cded5 6018fi
81ecdfbb
RW
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6020$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6021file_magic_cmd=$lt_cv_file_magic_cmd
6022deplibs_check_method=$lt_cv_deplibs_check_method
6023test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6024
d7040cdb 6025
d7040cdb 6026
d7040cdb 6027
d7040cdb 6028
44f2f9d2 6029
d7040cdb 6030
d7040cdb 6031
d7040cdb 6032
d7040cdb 6033
44f2f9d2 6034
d7040cdb 6035
ce2cded5 6036if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6038set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
6041if test "${ac_cv_prog_AR+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
ce2cded5
L
6043else
6044 if test -n "$AR"; then
6045 ac_cv_prog_AR="$AR" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6054 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6056 break 2
d7040cdb
SE
6057 fi
6058done
81ecdfbb
RW
6059 done
6060IFS=$as_save_IFS
44f2f9d2 6061
ce2cded5
L
6062fi
6063fi
6064AR=$ac_cv_prog_AR
6065if test -n "$AR"; then
81ecdfbb
RW
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6067$as_echo "$AR" >&6; }
ce2cded5 6068else
81ecdfbb
RW
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070$as_echo "no" >&6; }
44f2f9d2 6071fi
d7040cdb 6072
81ecdfbb 6073
d7040cdb 6074fi
f2c621e4 6075if test -z "$ac_cv_prog_AR"; then
ce2cded5 6076 ac_ct_AR=$AR
f2c621e4
AS
6077 # Extract the first word of "ar", so it can be a program name with args.
6078set dummy ar; ac_word=$2
81ecdfbb
RW
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
44f2f9d2 6083else
ce2cded5
L
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6094 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6096 break 2
6097 fi
6098done
81ecdfbb
RW
6099 done
6100IFS=$as_save_IFS
ce2cded5 6101
ce2cded5
L
6102fi
6103fi
6104ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6108else
81ecdfbb
RW
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
d7040cdb 6111fi
44f2f9d2 6112
81ecdfbb
RW
6113 if test "x$ac_ct_AR" = x; then
6114 AR="false"
6115 else
6116 case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122 AR=$ac_ct_AR
6123 fi
df7b86aa 6124else
f2c621e4
AS
6125 AR="$ac_cv_prog_AR"
6126fi
df7b86aa 6127
f2c621e4
AS
6128test -z "$AR" && AR=ar
6129test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6130
df7b86aa 6131
df7b86aa 6132
df7b86aa 6133
df7b86aa
NC
6134
6135
6136
6137
6138
6139
d7040cdb 6140
ce2cded5
L
6141if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6143set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6145$as_echo_n "checking for $ac_word... " >&6; }
6146if test "${ac_cv_prog_STRIP+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
ce2cded5
L
6148else
6149 if test -n "$STRIP"; then
6150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6151else
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6157 for ac_exec_ext in '' $ac_executable_extensions; do
6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6159 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6161 break 2
6162 fi
6163done
81ecdfbb
RW
6164 done
6165IFS=$as_save_IFS
d7040cdb 6166
ce2cded5
L
6167fi
6168fi
6169STRIP=$ac_cv_prog_STRIP
6170if test -n "$STRIP"; then
81ecdfbb
RW
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6172$as_echo "$STRIP" >&6; }
ce2cded5 6173else
81ecdfbb
RW
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175$as_echo "no" >&6; }
ce2cded5 6176fi
d7040cdb 6177
81ecdfbb 6178
ce2cded5
L
6179fi
6180if test -z "$ac_cv_prog_STRIP"; then
6181 ac_ct_STRIP=$STRIP
6182 # Extract the first word of "strip", so it can be a program name with args.
6183set dummy strip; ac_word=$2
81ecdfbb
RW
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6187 $as_echo_n "(cached) " >&6
ce2cded5
L
6188else
6189 if test -n "$ac_ct_STRIP"; then
6190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6199 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6201 break 2
6202 fi
6203done
81ecdfbb
RW
6204 done
6205IFS=$as_save_IFS
d7040cdb 6206
ce2cded5
L
6207fi
6208fi
6209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6210if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6212$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6213else
81ecdfbb
RW
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215$as_echo "no" >&6; }
ce2cded5 6216fi
d7040cdb 6217
81ecdfbb
RW
6218 if test "x$ac_ct_STRIP" = x; then
6219 STRIP=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6225ac_tool_warned=yes ;;
6226esac
6227 STRIP=$ac_ct_STRIP
6228 fi
ce2cded5
L
6229else
6230 STRIP="$ac_cv_prog_STRIP"
6231fi
d7040cdb 6232
ce2cded5 6233test -z "$STRIP" && STRIP=:
d7040cdb 6234
d7040cdb 6235
d7040cdb 6236
d7040cdb 6237
d7040cdb 6238
d7040cdb 6239
ce2cded5
L
6240if test -n "$ac_tool_prefix"; then
6241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6242set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if test "${ac_cv_prog_RANLIB+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
44f2f9d2 6247else
ce2cded5
L
6248 if test -n "$RANLIB"; then
6249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6260 break 2
6261 fi
6262done
81ecdfbb
RW
6263 done
6264IFS=$as_save_IFS
44f2f9d2 6265
d7040cdb 6266fi
44f2f9d2 6267fi
ce2cded5
L
6268RANLIB=$ac_cv_prog_RANLIB
6269if test -n "$RANLIB"; then
81ecdfbb
RW
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6271$as_echo "$RANLIB" >&6; }
ce2cded5 6272else
81ecdfbb
RW
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
ce2cded5 6275fi
d7040cdb 6276
81ecdfbb 6277
d7040cdb 6278fi
ce2cded5
L
6279if test -z "$ac_cv_prog_RANLIB"; then
6280 ac_ct_RANLIB=$RANLIB
6281 # Extract the first word of "ranlib", so it can be a program name with args.
6282set dummy ranlib; ac_word=$2
81ecdfbb
RW
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284$as_echo_n "checking for $ac_word... " >&6; }
6285if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6286 $as_echo_n "(cached) " >&6
44f2f9d2 6287else
ce2cded5
L
6288 if test -n "$ac_ct_RANLIB"; then
6289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
d7040cdb 6293do
ce2cded5
L
6294 IFS=$as_save_IFS
6295 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6298 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6300 break 2
d7040cdb 6301 fi
ce2cded5 6302done
81ecdfbb
RW
6303 done
6304IFS=$as_save_IFS
ce2cded5 6305
d7040cdb 6306fi
ce2cded5
L
6307fi
6308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6309if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6311$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6312else
81ecdfbb
RW
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314$as_echo "no" >&6; }
44f2f9d2 6315fi
44f2f9d2 6316
81ecdfbb
RW
6317 if test "x$ac_ct_RANLIB" = x; then
6318 RANLIB=":"
6319 else
6320 case $cross_compiling:$ac_tool_warned in
6321yes:)
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6324ac_tool_warned=yes ;;
6325esac
6326 RANLIB=$ac_ct_RANLIB
6327 fi
d7040cdb 6328else
ce2cded5 6329 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6330fi
252b5132 6331
ce2cded5 6332test -z "$RANLIB" && RANLIB=:
252b5132 6333
252b5132 6334
ae57792d 6335
252b5132 6336
13b2be9c 6337
14ee9f48 6338
ce2cded5 6339# Determine commands to create old-style static archives.
718a6fd8 6340old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6341old_postinstall_cmds='chmod 644 $oldlib'
6342old_postuninstall_cmds=
14ee9f48 6343
ce2cded5
L
6344if test -n "$RANLIB"; then
6345 case $host_os in
6346 openbsd*)
6347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6348 ;;
6349 *)
6350 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6351 ;;
6352 esac
6353 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6354fi
14ee9f48 6355
3725885a
RW
6356case $host_os in
6357 darwin*)
6358 lock_old_archive_extraction=yes ;;
6359 *)
6360 lock_old_archive_extraction=no ;;
6361esac
6362
6363
6364
6365
6366
6367
f8fc3443 6368
f8fc3443 6369
252b5132 6370
85fbca6a 6371
85fbca6a 6372
13b2be9c 6373
13b2be9c 6374
d7040cdb 6375
d7040cdb
SE
6376
6377
6378
252b5132 6379
93fbbb04 6380
93fbbb04 6381
d70c5fc7 6382
e0001a05 6383
252b5132 6384
252b5132 6385
252b5132 6386
252b5132 6387
252b5132 6388
3bcbcc3d 6389
252b5132 6390
252b5132 6391
252b5132 6392
15886821 6393
252b5132 6394
252b5132 6395
13b2be9c
DJ
6396
6397
252b5132 6398
252b5132 6399
d6d788bd 6400
ce2cded5
L
6401# If no C compiler was specified, use CC.
6402LTCC=${LTCC-"$CC"}
252b5132 6403
ce2cded5
L
6404# If no C compiler flags were specified, use CFLAGS.
6405LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6406
ce2cded5
L
6407# Allow CC to be a program name with arguments.
6408compiler=$CC
252b5132 6409
252b5132 6410
ce2cded5 6411# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6413$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6414if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6415 $as_echo_n "(cached) " >&6
ce2cded5 6416else
252b5132 6417
ce2cded5
L
6418# These are sane defaults that work on at least a few old systems.
6419# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6420
ce2cded5
L
6421# Character class describing NM global symbol codes.
6422symcode='[BCDEGRST]'
252b5132 6423
ce2cded5
L
6424# Regexp to match symbols that can be accessed directly from C.
6425sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6426
ce2cded5
L
6427# Define system-specific variables.
6428case $host_os in
6429aix*)
6430 symcode='[BCDT]'
6431 ;;
718a6fd8 6432cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6433 symcode='[ABCDGISTW]'
6434 ;;
6435hpux*)
6436 if test "$host_cpu" = ia64; then
6437 symcode='[ABCDEGRST]'
6438 fi
6439 ;;
6440irix* | nonstopux*)
6441 symcode='[BCDEGRST]'
6442 ;;
6443osf*)
6444 symcode='[BCDEGQRST]'
6445 ;;
6446solaris*)
6447 symcode='[BDRT]'
6448 ;;
6449sco3.2v5*)
6450 symcode='[DT]'
6451 ;;
6452sysv4.2uw2*)
6453 symcode='[DT]'
6454 ;;
6455sysv5* | sco5v6* | unixware* | OpenUNIX*)
6456 symcode='[ABDT]'
6457 ;;
6458sysv4)
6459 symcode='[DFNSTU]'
6460 ;;
6461esac
6462
6463# If we're using GNU nm, then use its standard symbol codes.
6464case `$NM -V 2>&1` in
6465*GNU* | *'with BFD'*)
6466 symcode='[ABCDGIRSTW]' ;;
6467esac
252b5132 6468
ce2cded5
L
6469# Transform an extracted symbol line into a proper C declaration.
6470# Some systems (esp. on ia64) link data and code symbols differently,
6471# so use this general approach.
6472lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6473
ce2cded5 6474# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6475lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6476lt_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 6477
7357c5b6
AM
6478# Handle CRLF in mingw tool chain
6479opt_cr=
6480case $build_os in
6481mingw*)
6482 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6483 ;;
6484esac
d7040cdb 6485
7357c5b6
AM
6486# Try without a prefix underscore, then with it.
6487for ac_symprfx in "" "_"; do
d7040cdb 6488
7357c5b6
AM
6489 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6490 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6491
7357c5b6
AM
6492 # Write the raw and C identifiers.
6493 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6494 # Fake it for dumpbin and say T for any non-static function
6495 # and D for any global variable.
6496 # Also find C++ and __fastcall symbols from MSVC++,
6497 # which start with @ or ?.
6498 lt_cv_sys_global_symbol_pipe="$AWK '"\
6499" {last_section=section; section=\$ 3};"\
6500" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6501" \$ 0!~/External *\|/{next};"\
6502" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6503" {if(hide[section]) next};"\
6504" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6505" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6506" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6507" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6508" ' prfx=^$ac_symprfx"
6509 else
6510 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6511 fi
d7040cdb 6512
7357c5b6
AM
6513 # Check to see that the pipe works correctly.
6514 pipe_works=no
d7040cdb 6515
7357c5b6
AM
6516 rm -f conftest*
6517 cat > conftest.$ac_ext <<_LT_EOF
6518#ifdef __cplusplus
6519extern "C" {
6520#endif
6521char nm_test_var;
6522void nm_test_func(void);
6523void nm_test_func(void){}
6524#ifdef __cplusplus
ce2cded5 6525}
7357c5b6
AM
6526#endif
6527int main(){nm_test_var='a';nm_test_func();return(0);}
6528_LT_EOF
6529
81ecdfbb 6530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6531 (eval $ac_compile) 2>&5
ce2cded5 6532 ac_status=$?
81ecdfbb
RW
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }; then
7357c5b6
AM
6535 # Now try to grab the symbols.
6536 nlist=conftest.nm
3725885a
RW
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6538 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6539 ac_status=$?
81ecdfbb
RW
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6542 # Try sorting and uniquifying the output.
6543 if sort "$nlist" | uniq > "$nlist"T; then
6544 mv -f "$nlist"T "$nlist"
6545 else
6546 rm -f "$nlist"T
6547 fi
13b2be9c 6548
7357c5b6
AM
6549 # Make sure that we snagged all the symbols we need.
6550 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6551 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6552 cat <<_LT_EOF > conftest.$ac_ext
6553#ifdef __cplusplus
6554extern "C" {
6555#endif
13b2be9c 6556
7357c5b6
AM
6557_LT_EOF
6558 # Now generate the symbol file.
6559 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6560
7357c5b6 6561 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6562
7357c5b6 6563/* The mapping between symbol names and symbols. */
f2c621e4 6564const struct {
7357c5b6
AM
6565 const char *name;
6566 void *address;
6567}
6568lt__PROGRAM__LTX_preloaded_symbols[] =
6569{
6570 { "@PROGRAM@", (void *) 0 },
6571_LT_EOF
6572 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6573 cat <<\_LT_EOF >> conftest.$ac_ext
6574 {0, (void *) 0}
6575};
d7040cdb 6576
7357c5b6
AM
6577/* This works around a problem in FreeBSD linker */
6578#ifdef FREEBSD_WORKAROUND
6579static const void *lt_preloaded_setup() {
6580 return lt__PROGRAM__LTX_preloaded_symbols;
6581}
ce2cded5 6582#endif
d7040cdb 6583
7357c5b6 6584#ifdef __cplusplus
ce2cded5 6585}
7357c5b6
AM
6586#endif
6587_LT_EOF
6588 # Now try linking the two files.
6589 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6590 lt_save_LIBS="$LIBS"
6591 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6592 LIBS="conftstm.$ac_objext"
6593 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6595 (eval $ac_link) 2>&5
6596 ac_status=$?
81ecdfbb
RW
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6599 pipe_works=yes
6600 fi
f2c621e4
AS
6601 LIBS="$lt_save_LIBS"
6602 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6603 else
6604 echo "cannot find nm_test_func in $nlist" >&5
6605 fi
6606 else
6607 echo "cannot find nm_test_var in $nlist" >&5
6608 fi
6609 else
6610 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6611 fi
6612 else
6613 echo "$progname: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 fi
718a6fd8 6616 rm -rf conftest* conftst*
7357c5b6
AM
6617
6618 # Do not use the global_symbol_pipe unless it works.
6619 if test "$pipe_works" = yes; then
6620 break
6621 else
6622 lt_cv_sys_global_symbol_pipe=
6623 fi
6624done
d7040cdb 6625
ce2cded5 6626fi
7357c5b6
AM
6627
6628if test -z "$lt_cv_sys_global_symbol_pipe"; then
6629 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6630fi
7357c5b6 6631if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6633$as_echo "failed" >&6; }
7357c5b6 6634else
81ecdfbb
RW
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6636$as_echo "ok" >&6; }
ce2cded5 6637fi
d7040cdb 6638
df7b86aa
NC
6639
6640
6641
d7040cdb 6642
d7040cdb 6643
d7040cdb 6644
d7040cdb 6645
d7040cdb 6646
d7040cdb 6647
d7040cdb 6648
d7040cdb 6649
d7040cdb 6650
d7040cdb 6651
d7040cdb 6652
7357c5b6
AM
6653
6654
718a6fd8
SE
6655
6656
6657
7357c5b6
AM
6658
6659
81ecdfbb
RW
6660# Check whether --enable-libtool-lock was given.
6661if test "${enable_libtool_lock+set}" = set; then :
6662 enableval=$enable_libtool_lock;
6663fi
7357c5b6 6664
7357c5b6
AM
6665test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6666
6667# Some flags need to be propagated to the compiler or linker for good
6668# libtool support.
6669case $host in
6670ia64-*-hpux*)
6671 # Find out which ABI we are using.
6672 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6674 (eval $ac_compile) 2>&5
6675 ac_status=$?
81ecdfbb
RW
6676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677 test $ac_status = 0; }; then
7357c5b6
AM
6678 case `/usr/bin/file conftest.$ac_objext` in
6679 *ELF-32*)
6680 HPUX_IA64_MODE="32"
6681 ;;
6682 *ELF-64*)
6683 HPUX_IA64_MODE="64"
6684 ;;
6685 esac
6686 fi
6687 rm -rf conftest*
6688 ;;
6689*-*-irix6*)
6690 # Find out which ABI we are using.
3725885a 6691 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6693 (eval $ac_compile) 2>&5
6694 ac_status=$?
81ecdfbb
RW
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; }; then
7357c5b6
AM
6697 if test "$lt_cv_prog_gnu_ld" = yes; then
6698 case `/usr/bin/file conftest.$ac_objext` in
6699 *32-bit*)
6700 LD="${LD-ld} -melf32bsmip"
6701 ;;
6702 *N32*)
6703 LD="${LD-ld} -melf32bmipn32"
6704 ;;
6705 *64-bit*)
6706 LD="${LD-ld} -melf64bmip"
6707 ;;
6708 esac
6709 else
6710 case `/usr/bin/file conftest.$ac_objext` in
6711 *32-bit*)
6712 LD="${LD-ld} -32"
6713 ;;
6714 *N32*)
6715 LD="${LD-ld} -n32"
6716 ;;
6717 *64-bit*)
6718 LD="${LD-ld} -64"
6719 ;;
6720 esac
6721 fi
6722 fi
6723 rm -rf conftest*
6724 ;;
6725
cc9afea3 6726x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6727s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6728 # Find out which ABI we are using.
6729 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6731 (eval $ac_compile) 2>&5
6732 ac_status=$?
81ecdfbb
RW
6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734 test $ac_status = 0; }; then
7357c5b6
AM
6735 case `/usr/bin/file conftest.o` in
6736 *32-bit*)
6737 case $host in
6738 x86_64-*kfreebsd*-gnu)
6739 LD="${LD-ld} -m elf_i386_fbsd"
6740 ;;
6741 x86_64-*linux*)
6d2920c8
L
6742 case `/usr/bin/file conftest.o` in
6743 *x86-64*)
6744 LD="${LD-ld} -m elf32_x86_64"
6745 ;;
6746 *)
6747 LD="${LD-ld} -m elf_i386"
6748 ;;
6749 esac
7357c5b6 6750 ;;
cc9afea3
AM
6751 powerpc64le-*linux*)
6752 LD="${LD-ld} -m elf32lppclinux"
6753 ;;
6754 powerpc64-*linux*)
7357c5b6
AM
6755 LD="${LD-ld} -m elf32ppclinux"
6756 ;;
6757 s390x-*linux*)
6758 LD="${LD-ld} -m elf_s390"
6759 ;;
6760 sparc64-*linux*)
6761 LD="${LD-ld} -m elf32_sparc"
6762 ;;
6763 esac
6764 ;;
6765 *64-bit*)
6766 case $host in
6767 x86_64-*kfreebsd*-gnu)
6768 LD="${LD-ld} -m elf_x86_64_fbsd"
6769 ;;
6770 x86_64-*linux*)
6771 LD="${LD-ld} -m elf_x86_64"
6772 ;;
cc9afea3
AM
6773 powerpcle-*linux*)
6774 LD="${LD-ld} -m elf64lppc"
6775 ;;
6776 powerpc-*linux*)
7357c5b6
AM
6777 LD="${LD-ld} -m elf64ppc"
6778 ;;
6779 s390*-*linux*|s390*-*tpf*)
6780 LD="${LD-ld} -m elf64_s390"
6781 ;;
6782 sparc*-*linux*)
6783 LD="${LD-ld} -m elf64_sparc"
6784 ;;
6785 esac
6786 ;;
6787 esac
6788 fi
6789 rm -rf conftest*
6790 ;;
6791
6792*-*-sco3.2v5*)
6793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6794 SAVE_CFLAGS="$CFLAGS"
6795 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6797$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6798if test "${lt_cv_cc_needs_belf+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
ce2cded5 6800else
7357c5b6
AM
6801 ac_ext=c
6802ac_cpp='$CPP $CPPFLAGS'
6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806
81ecdfbb 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 6808/* end confdefs.h. */
d7040cdb 6809
7357c5b6
AM
6810int
6811main ()
6812{
6813
6814 ;
6815 return 0;
6816}
ce2cded5 6817_ACEOF
81ecdfbb 6818if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6819 lt_cv_cc_needs_belf=yes
ce2cded5 6820else
81ecdfbb 6821 lt_cv_cc_needs_belf=no
ce2cded5 6822fi
81ecdfbb
RW
6823rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6825 ac_ext=c
6826ac_cpp='$CPP $CPPFLAGS'
6827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 6830
ce2cded5 6831fi
81ecdfbb
RW
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6833$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
6834 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6836 CFLAGS="$SAVE_CFLAGS"
6837 fi
6838 ;;
6839sparc*-*solaris*)
6840 # Find out which ABI we are using.
6841 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6843 (eval $ac_compile) 2>&5
6844 ac_status=$?
81ecdfbb
RW
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; then
7357c5b6
AM
6847 case `/usr/bin/file conftest.o` in
6848 *64-bit*)
6849 case $lt_cv_prog_gnu_ld in
6850 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
6851 *)
6852 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6853 LD="${LD-ld} -64"
6854 fi
6855 ;;
7357c5b6
AM
6856 esac
6857 ;;
6858 esac
6859 fi
6860 rm -rf conftest*
6861 ;;
6862esac
d7040cdb 6863
df7b86aa
NC
6864need_locks="$enable_libtool_lock"
6865
718a6fd8
SE
6866
6867 case $host_os in
6868 rhapsody* | darwin*)
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6871set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873$as_echo_n "checking for $ac_word... " >&6; }
6874if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
718a6fd8
SE
6876else
6877 if test -n "$DSYMUTIL"; then
6878 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6879else
6880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6887 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6889 break 2
6890 fi
6891done
81ecdfbb
RW
6892 done
6893IFS=$as_save_IFS
718a6fd8
SE
6894
6895fi
6896fi
6897DSYMUTIL=$ac_cv_prog_DSYMUTIL
6898if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6900$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6901else
81ecdfbb
RW
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903$as_echo "no" >&6; }
718a6fd8
SE
6904fi
6905
81ecdfbb 6906
718a6fd8
SE
6907fi
6908if test -z "$ac_cv_prog_DSYMUTIL"; then
6909 ac_ct_DSYMUTIL=$DSYMUTIL
6910 # Extract the first word of "dsymutil", so it can be a program name with args.
6911set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913$as_echo_n "checking for $ac_word... " >&6; }
6914if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
718a6fd8
SE
6916else
6917 if test -n "$ac_ct_DSYMUTIL"; then
6918 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6927 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6929 break 2
6930 fi
6931done
81ecdfbb
RW
6932 done
6933IFS=$as_save_IFS
718a6fd8 6934
718a6fd8
SE
6935fi
6936fi
6937ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6938if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6940$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6941else
81ecdfbb
RW
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943$as_echo "no" >&6; }
718a6fd8
SE
6944fi
6945
81ecdfbb
RW
6946 if test "x$ac_ct_DSYMUTIL" = x; then
6947 DSYMUTIL=":"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950yes:)
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953ac_tool_warned=yes ;;
6954esac
6955 DSYMUTIL=$ac_ct_DSYMUTIL
6956 fi
718a6fd8
SE
6957else
6958 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6959fi
6960
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6963set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965$as_echo_n "checking for $ac_word... " >&6; }
6966if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
718a6fd8
SE
6968else
6969 if test -n "$NMEDIT"; then
6970 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6979 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6981 break 2
6982 fi
6983done
81ecdfbb
RW
6984 done
6985IFS=$as_save_IFS
718a6fd8
SE
6986
6987fi
6988fi
6989NMEDIT=$ac_cv_prog_NMEDIT
6990if test -n "$NMEDIT"; then
81ecdfbb
RW
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6992$as_echo "$NMEDIT" >&6; }
718a6fd8 6993else
81ecdfbb
RW
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995$as_echo "no" >&6; }
718a6fd8
SE
6996fi
6997
81ecdfbb 6998
718a6fd8
SE
6999fi
7000if test -z "$ac_cv_prog_NMEDIT"; then
7001 ac_ct_NMEDIT=$NMEDIT
7002 # Extract the first word of "nmedit", so it can be a program name with args.
7003set dummy nmedit; ac_word=$2
81ecdfbb
RW
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005$as_echo_n "checking for $ac_word... " >&6; }
7006if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
718a6fd8
SE
7008else
7009 if test -n "$ac_ct_NMEDIT"; then
7010 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7019 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7021 break 2
7022 fi
7023done
81ecdfbb
RW
7024 done
7025IFS=$as_save_IFS
718a6fd8 7026
718a6fd8
SE
7027fi
7028fi
7029ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7030if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7032$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7033else
81ecdfbb
RW
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
718a6fd8
SE
7036fi
7037
81ecdfbb
RW
7038 if test "x$ac_ct_NMEDIT" = x; then
7039 NMEDIT=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042yes:)
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045ac_tool_warned=yes ;;
7046esac
7047 NMEDIT=$ac_ct_NMEDIT
7048 fi
718a6fd8
SE
7049else
7050 NMEDIT="$ac_cv_prog_NMEDIT"
7051fi
7052
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7055set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057$as_echo_n "checking for $ac_word... " >&6; }
7058if test "${ac_cv_prog_LIPO+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
718a6fd8
SE
7060else
7061 if test -n "$LIPO"; then
7062 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7063else
7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065for as_dir in $PATH
7066do
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7071 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7073 break 2
7074 fi
7075done
81ecdfbb
RW
7076 done
7077IFS=$as_save_IFS
718a6fd8
SE
7078
7079fi
7080fi
7081LIPO=$ac_cv_prog_LIPO
7082if test -n "$LIPO"; then
81ecdfbb
RW
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7084$as_echo "$LIPO" >&6; }
718a6fd8 7085else
81ecdfbb
RW
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087$as_echo "no" >&6; }
718a6fd8
SE
7088fi
7089
81ecdfbb 7090
718a6fd8
SE
7091fi
7092if test -z "$ac_cv_prog_LIPO"; then
7093 ac_ct_LIPO=$LIPO
7094 # Extract the first word of "lipo", so it can be a program name with args.
7095set dummy lipo; ac_word=$2
81ecdfbb
RW
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
718a6fd8
SE
7100else
7101 if test -n "$ac_ct_LIPO"; then
7102 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7111 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7113 break 2
7114 fi
7115done
81ecdfbb
RW
7116 done
7117IFS=$as_save_IFS
718a6fd8 7118
718a6fd8
SE
7119fi
7120fi
7121ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7122if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7124$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7125else
81ecdfbb
RW
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
718a6fd8
SE
7128fi
7129
81ecdfbb
RW
7130 if test "x$ac_ct_LIPO" = x; then
7131 LIPO=":"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134yes:)
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137ac_tool_warned=yes ;;
7138esac
7139 LIPO=$ac_ct_LIPO
7140 fi
718a6fd8
SE
7141else
7142 LIPO="$ac_cv_prog_LIPO"
7143fi
7144
7145 if test -n "$ac_tool_prefix"; then
7146 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7147set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149$as_echo_n "checking for $ac_word... " >&6; }
7150if test "${ac_cv_prog_OTOOL+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
718a6fd8
SE
7152else
7153 if test -n "$OTOOL"; then
7154 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7155else
7156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157for as_dir in $PATH
7158do
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7165 break 2
7166 fi
7167done
81ecdfbb
RW
7168 done
7169IFS=$as_save_IFS
718a6fd8
SE
7170
7171fi
7172fi
7173OTOOL=$ac_cv_prog_OTOOL
7174if test -n "$OTOOL"; then
81ecdfbb
RW
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7176$as_echo "$OTOOL" >&6; }
718a6fd8 7177else
81ecdfbb
RW
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179$as_echo "no" >&6; }
718a6fd8
SE
7180fi
7181
81ecdfbb 7182
718a6fd8
SE
7183fi
7184if test -z "$ac_cv_prog_OTOOL"; then
7185 ac_ct_OTOOL=$OTOOL
7186 # Extract the first word of "otool", so it can be a program name with args.
7187set dummy otool; ac_word=$2
81ecdfbb
RW
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
718a6fd8
SE
7192else
7193 if test -n "$ac_ct_OTOOL"; then
7194 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7203 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7205 break 2
7206 fi
7207done
81ecdfbb
RW
7208 done
7209IFS=$as_save_IFS
718a6fd8 7210
718a6fd8
SE
7211fi
7212fi
7213ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7214if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7216$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7217else
81ecdfbb
RW
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
718a6fd8
SE
7220fi
7221
81ecdfbb
RW
7222 if test "x$ac_ct_OTOOL" = x; then
7223 OTOOL=":"
7224 else
7225 case $cross_compiling:$ac_tool_warned in
7226yes:)
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229ac_tool_warned=yes ;;
7230esac
7231 OTOOL=$ac_ct_OTOOL
7232 fi
718a6fd8
SE
7233else
7234 OTOOL="$ac_cv_prog_OTOOL"
7235fi
7236
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7239set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241$as_echo_n "checking for $ac_word... " >&6; }
7242if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
718a6fd8
SE
7244else
7245 if test -n "$OTOOL64"; then
7246 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7255 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7257 break 2
7258 fi
7259done
81ecdfbb
RW
7260 done
7261IFS=$as_save_IFS
718a6fd8
SE
7262
7263fi
7264fi
7265OTOOL64=$ac_cv_prog_OTOOL64
7266if test -n "$OTOOL64"; then
81ecdfbb
RW
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7268$as_echo "$OTOOL64" >&6; }
718a6fd8 7269else
81ecdfbb
RW
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271$as_echo "no" >&6; }
718a6fd8
SE
7272fi
7273
81ecdfbb 7274
718a6fd8
SE
7275fi
7276if test -z "$ac_cv_prog_OTOOL64"; then
7277 ac_ct_OTOOL64=$OTOOL64
7278 # Extract the first word of "otool64", so it can be a program name with args.
7279set dummy otool64; ac_word=$2
81ecdfbb
RW
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
718a6fd8
SE
7284else
7285 if test -n "$ac_ct_OTOOL64"; then
7286 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7295 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7297 break 2
7298 fi
7299done
81ecdfbb
RW
7300 done
7301IFS=$as_save_IFS
718a6fd8 7302
718a6fd8
SE
7303fi
7304fi
7305ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7306if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7308$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7309else
81ecdfbb
RW
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
718a6fd8
SE
7312fi
7313
81ecdfbb
RW
7314 if test "x$ac_ct_OTOOL64" = x; then
7315 OTOOL64=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318yes:)
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321ac_tool_warned=yes ;;
7322esac
7323 OTOOL64=$ac_ct_OTOOL64
7324 fi
718a6fd8
SE
7325else
7326 OTOOL64="$ac_cv_prog_OTOOL64"
7327fi
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
81ecdfbb
RW
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7356$as_echo_n "checking for -single_module linker flag... " >&6; }
7357if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
718a6fd8
SE
7359else
7360 lt_cv_apple_cc_single_mod=no
7361 if test -z "${LT_MULTI_MODULE}"; then
7362 # By default we will add the -single_module flag. You can override
7363 # by either setting the environment variable LT_MULTI_MODULE
7364 # non-empty at configure time, or by adding -multi_module to the
7365 # link flags.
7366 rm -rf libconftest.dylib*
7367 echo "int foo(void){return 1;}" > conftest.c
7368 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7369-dynamiclib -Wl,-single_module conftest.c" >&5
7370 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7371 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7372 _lt_result=$?
7373 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7374 lt_cv_apple_cc_single_mod=yes
7375 else
7376 cat conftest.err >&5
7377 fi
7378 rm -rf libconftest.dylib*
7379 rm -f conftest.*
7380 fi
7381fi
81ecdfbb
RW
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7383$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7386if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
718a6fd8
SE
7388else
7389 lt_cv_ld_exported_symbols_list=no
7390 save_LDFLAGS=$LDFLAGS
7391 echo "_main" > conftest.sym
7392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7394/* end confdefs.h. */
7395
7396int
7397main ()
7398{
7399
7400 ;
7401 return 0;
7402}
7403_ACEOF
81ecdfbb 7404if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7405 lt_cv_ld_exported_symbols_list=yes
7406else
81ecdfbb 7407 lt_cv_ld_exported_symbols_list=no
718a6fd8 7408fi
81ecdfbb
RW
7409rm -f core conftest.err conftest.$ac_objext \
7410 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7411 LDFLAGS="$save_LDFLAGS"
7412
7413fi
81ecdfbb
RW
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7415$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7417$as_echo_n "checking for -force_load linker flag... " >&6; }
7418if test "${lt_cv_ld_force_load+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420else
7421 lt_cv_ld_force_load=no
7422 cat > conftest.c << _LT_EOF
7423int forced_loaded() { return 2;}
7424_LT_EOF
7425 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7426 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7427 echo "$AR cru libconftest.a conftest.o" >&5
7428 $AR cru libconftest.a conftest.o 2>&5
7429 cat > conftest.c << _LT_EOF
7430int main() { return 0;}
7431_LT_EOF
7432 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7433 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7434 _lt_result=$?
7435 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7436 lt_cv_ld_force_load=yes
7437 else
7438 cat conftest.err >&5
7439 fi
7440 rm -f conftest.err libconftest.a conftest conftest.c
7441 rm -rf conftest.dSYM
7442
7443fi
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7445$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7446 case $host_os in
7447 rhapsody* | darwin1.[012])
7448 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7449 darwin1.*)
7450 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7451 darwin*) # darwin 5.x on
7452 # if running on 10.5 or later, the deployment target defaults
7453 # to the OS version, if on x86, and 10.4, the deployment
7454 # target defaults to 10.4. Don't you love it?
7455 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7456 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7458 10.[012][,.]*)
718a6fd8
SE
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 10.*)
7461 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7462 esac
7463 ;;
7464 esac
7465 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7466 _lt_dar_single_mod='$single_module'
7467 fi
7468 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7469 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7470 else
7471 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7472 fi
3725885a 7473 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7474 _lt_dsymutil='~$DSYMUTIL $lib || :'
7475 else
7476 _lt_dsymutil=
7477 fi
7478 ;;
7479 esac
7480
718a6fd8 7481for ac_header in dlfcn.h
81ecdfbb
RW
7482do :
7483 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7484"
7485if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7486 cat >>confdefs.h <<_ACEOF
81ecdfbb 7487#define HAVE_DLFCN_H 1
718a6fd8
SE
7488_ACEOF
7489
7490fi
7491
7492done
7493
7494
7495
3725885a
RW
7496
7497
718a6fd8
SE
7498# Set options
7499
7500
7501
7502 enable_dlopen=no
7503
7504
7505 enable_win32_dll=no
7506
7507
81ecdfbb
RW
7508 # Check whether --enable-shared was given.
7509if test "${enable_shared+set}" = set; then :
7510 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7511 case $enableval in
7512 yes) enable_shared=yes ;;
7513 no) enable_shared=no ;;
7514 *)
7515 enable_shared=no
7516 # Look at the argument we got. We use all the common list separators.
7517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7518 for pkg in $enableval; do
7519 IFS="$lt_save_ifs"
7520 if test "X$pkg" = "X$p"; then
7521 enable_shared=yes
7522 fi
7523 done
7524 IFS="$lt_save_ifs"
7525 ;;
7526 esac
7527else
7528 enable_shared=yes
81ecdfbb
RW
7529fi
7530
718a6fd8
SE
7531
7532
7533
7534
7535
7536
7537
7538
81ecdfbb
RW
7539 # Check whether --enable-static was given.
7540if test "${enable_static+set}" = set; then :
7541 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7542 case $enableval in
7543 yes) enable_static=yes ;;
7544 no) enable_static=no ;;
7545 *)
7546 enable_static=no
7547 # Look at the argument we got. We use all the common list separators.
7548 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7549 for pkg in $enableval; do
7550 IFS="$lt_save_ifs"
7551 if test "X$pkg" = "X$p"; then
7552 enable_static=yes
7553 fi
7554 done
7555 IFS="$lt_save_ifs"
7556 ;;
7557 esac
7558else
7559 enable_static=yes
81ecdfbb
RW
7560fi
7561
718a6fd8
SE
7562
7563
d7040cdb 7564
d7040cdb 7565
718a6fd8
SE
7566
7567
7568
7569
7570
81ecdfbb
RW
7571# Check whether --with-pic was given.
7572if test "${with_pic+set}" = set; then :
7573 withval=$with_pic; pic_mode="$withval"
ce2cded5 7574else
718a6fd8 7575 pic_mode=default
81ecdfbb
RW
7576fi
7577
d7040cdb 7578
718a6fd8
SE
7579test -z "$pic_mode" && pic_mode=default
7580
7581
7582
7583
7584
7585
7586
81ecdfbb
RW
7587 # Check whether --enable-fast-install was given.
7588if test "${enable_fast_install+set}" = set; then :
7589 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7590 case $enableval in
7591 yes) enable_fast_install=yes ;;
7592 no) enable_fast_install=no ;;
7593 *)
7594 enable_fast_install=no
7595 # Look at the argument we got. We use all the common list separators.
7596 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7597 for pkg in $enableval; do
7598 IFS="$lt_save_ifs"
7599 if test "X$pkg" = "X$p"; then
7600 enable_fast_install=yes
7601 fi
7602 done
7603 IFS="$lt_save_ifs"
7604 ;;
7605 esac
ce2cded5 7606else
718a6fd8 7607 enable_fast_install=yes
81ecdfbb
RW
7608fi
7609
718a6fd8
SE
7610
7611
7612
7613
d7040cdb 7614
d7040cdb 7615
d7040cdb 7616
d7040cdb 7617
d7040cdb 7618
d7040cdb 7619
ce2cded5
L
7620# This can be used to rebuild libtool when needed
7621LIBTOOL_DEPS="$ltmain"
d7040cdb 7622
ce2cded5
L
7623# Always use our own libtool.
7624LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7625
d7040cdb 7626
d7040cdb 7627
d7040cdb
SE
7628
7629
7630
7631
7632
7633
d7040cdb 7634
d7040cdb 7635
ab509236 7636
ab509236 7637
d7040cdb
SE
7638
7639
7640
7641
7642
13b2be9c 7643
13b2be9c 7644
13b2be9c 7645
13b2be9c 7646
d7040cdb 7647
3725885a 7648
d7040cdb
SE
7649
7650
ce2cded5 7651test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7652
7653
d7040cdb 7654
d7040cdb 7655
d7040cdb
SE
7656
7657
7658
7659
7660
7661
ce2cded5
L
7662
7663
7664
7665
7666if test -n "${ZSH_VERSION+set}" ; then
7667 setopt NO_GLOB_SUBST
7668fi
7669
81ecdfbb
RW
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7671$as_echo_n "checking for objdir... " >&6; }
7672if test "${lt_cv_objdir+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
d7040cdb 7674else
ce2cded5
L
7675 rm -f .libs 2>/dev/null
7676mkdir .libs 2>/dev/null
7677if test -d .libs; then
7678 lt_cv_objdir=.libs
7679else
7680 # MS-DOS does not allow filenames that begin with a dot.
7681 lt_cv_objdir=_libs
d7040cdb 7682fi
ce2cded5
L
7683rmdir .libs 2>/dev/null
7684fi
81ecdfbb
RW
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7686$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7687objdir=$lt_cv_objdir
d7040cdb
SE
7688
7689
7690
7691
d7040cdb 7692
ce2cded5
L
7693cat >>confdefs.h <<_ACEOF
7694#define LT_OBJDIR "$lt_cv_objdir/"
7695_ACEOF
d7040cdb
SE
7696
7697
7698
7699
ce2cded5
L
7700case $host_os in
7701aix3*)
7702 # AIX sometimes has problems with the GCC collect2 program. For some
7703 # reason, if we set the COLLECT_NAMES environment variable, the problems
7704 # vanish in a puff of smoke.
7705 if test "X${COLLECT_NAMES+set}" != Xset; then
7706 COLLECT_NAMES=
7707 export COLLECT_NAMES
7708 fi
7709 ;;
7710esac
d7040cdb 7711
ce2cded5
L
7712# Global variables:
7713ofile=libtool
7714can_build_shared=yes
d7040cdb 7715
ce2cded5
L
7716# All known linkers require a `.a' archive for static linking (except MSVC,
7717# which needs '.lib').
7718libext=a
d7040cdb 7719
ce2cded5 7720with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7721
ce2cded5
L
7722old_CC="$CC"
7723old_CFLAGS="$CFLAGS"
d7040cdb 7724
ce2cded5
L
7725# Set sane defaults for various variables
7726test -z "$CC" && CC=cc
7727test -z "$LTCC" && LTCC=$CC
7728test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7729test -z "$LD" && LD=ld
7730test -z "$ac_objext" && ac_objext=o
7731
7732for cc_temp in $compiler""; do
7733 case $cc_temp in
7734 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7735 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7736 \-*) ;;
7737 *) break;;
7738 esac
7739done
3725885a 7740cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
7741
7742
7743# Only perform the check for file, if the check method requires it
7744test -z "$MAGIC_CMD" && MAGIC_CMD=file
7745case $deplibs_check_method in
7746file_magic*)
7747 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7749$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7750if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
ce2cded5
L
7752else
7753 case $MAGIC_CMD in
7754[\\/*] | ?:[\\/]*)
7755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7756 ;;
7757*)
7758 lt_save_MAGIC_CMD="$MAGIC_CMD"
7759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7761 for ac_dir in $ac_dummy; do
7762 IFS="$lt_save_ifs"
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f $ac_dir/${ac_tool_prefix}file; then
7765 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7766 if test -n "$file_magic_test_file"; then
7767 case $deplibs_check_method in
7768 "file_magic "*)
7769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7772 $EGREP "$file_magic_regex" > /dev/null; then
7773 :
d7040cdb 7774 else
ce2cded5 7775 cat <<_LT_EOF 1>&2
d7040cdb 7776
ce2cded5
L
7777*** Warning: the command libtool uses to detect shared libraries,
7778*** $file_magic_cmd, produces output that libtool cannot recognize.
7779*** The result is that libtool may fail to recognize shared libraries
7780*** as such. This will affect the creation of libtool libraries that
7781*** depend on shared libraries, but programs linked with such libtool
7782*** libraries will work regardless of this problem. Nevertheless, you
7783*** may want to report the problem to your system manager and/or to
7784*** bug-libtool@gnu.org
d7040cdb 7785
ce2cded5
L
7786_LT_EOF
7787 fi ;;
7788 esac
d7040cdb 7789 fi
ce2cded5 7790 break
d7040cdb 7791 fi
ce2cded5
L
7792 done
7793 IFS="$lt_save_ifs"
7794 MAGIC_CMD="$lt_save_MAGIC_CMD"
7795 ;;
7796esac
7797fi
d7040cdb 7798
ce2cded5
L
7799MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7800if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7802$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7803else
81ecdfbb
RW
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
ce2cded5 7806fi
d7040cdb 7807
d7040cdb 7808
d7040cdb 7809
d7040cdb 7810
d7040cdb 7811
ce2cded5
L
7812if test -z "$lt_cv_path_MAGIC_CMD"; then
7813 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7815$as_echo_n "checking for file... " >&6; }
7816if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7817 $as_echo_n "(cached) " >&6
ce2cded5
L
7818else
7819 case $MAGIC_CMD in
7820[\\/*] | ?:[\\/]*)
7821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7822 ;;
7823*)
7824 lt_save_MAGIC_CMD="$MAGIC_CMD"
7825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7827 for ac_dir in $ac_dummy; do
7828 IFS="$lt_save_ifs"
7829 test -z "$ac_dir" && ac_dir=.
7830 if test -f $ac_dir/file; then
7831 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7832 if test -n "$file_magic_test_file"; then
7833 case $deplibs_check_method in
7834 "file_magic "*)
7835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7838 $EGREP "$file_magic_regex" > /dev/null; then
7839 :
d7040cdb 7840 else
ce2cded5
L
7841 cat <<_LT_EOF 1>&2
7842
7843*** Warning: the command libtool uses to detect shared libraries,
7844*** $file_magic_cmd, produces output that libtool cannot recognize.
7845*** The result is that libtool may fail to recognize shared libraries
7846*** as such. This will affect the creation of libtool libraries that
7847*** depend on shared libraries, but programs linked with such libtool
7848*** libraries will work regardless of this problem. Nevertheless, you
7849*** may want to report the problem to your system manager and/or to
7850*** bug-libtool@gnu.org
7851
7852_LT_EOF
7853 fi ;;
d7040cdb 7854 esac
d7040cdb 7855 fi
ce2cded5
L
7856 break
7857 fi
7858 done
7859 IFS="$lt_save_ifs"
7860 MAGIC_CMD="$lt_save_MAGIC_CMD"
7861 ;;
7862esac
7863fi
d7040cdb 7864
ce2cded5
L
7865MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7866if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7868$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 7869else
81ecdfbb
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
ce2cded5 7872fi
d7040cdb 7873
d7040cdb 7874
ce2cded5
L
7875 else
7876 MAGIC_CMD=:
7877 fi
d7040cdb 7878fi
d7040cdb 7879
ce2cded5
L
7880 fi
7881 ;;
7882esac
d7040cdb 7883
ce2cded5 7884# Use C for the default configuration in the libtool script
d7040cdb 7885
ce2cded5
L
7886lt_save_CC="$CC"
7887ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7892
d7040cdb 7893
ce2cded5
L
7894# Source file extension for C test sources.
7895ac_ext=c
d7040cdb 7896
ce2cded5
L
7897# Object file extension for compiled C test sources.
7898objext=o
7899objext=$objext
d7040cdb 7900
ce2cded5
L
7901# Code to be used in simple compile tests
7902lt_simple_compile_test_code="int some_variable = 0;"
7903
7904# Code to be used in simple link tests
7905lt_simple_link_test_code='int main(){return(0);}'
7906
7907
7908
7909
7910
7911
7912
7913# If no C compiler was specified, use CC.
7914LTCC=${LTCC-"$CC"}
7915
7916# If no C compiler flags were specified, use CFLAGS.
7917LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7918
7919# Allow CC to be a program name with arguments.
7920compiler=$CC
7921
7922# Save the default compiler, since it gets overwritten when the other
7923# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7924compiler_DEFAULT=$CC
7925
7926# save warnings/boilerplate of simple test code
7927ac_outfile=conftest.$ac_objext
7928echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7929eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7930_lt_compiler_boilerplate=`cat conftest.err`
7931$RM conftest*
7932
7933ac_outfile=conftest.$ac_objext
7934echo "$lt_simple_link_test_code" >conftest.$ac_ext
7935eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7937$RM -r conftest*
ce2cded5
L
7938
7939
f2c621e4
AS
7940## CAVEAT EMPTOR:
7941## There is no encapsulation within the following macros, do not change
7942## the running order or otherwise move them around unless you know exactly
7943## what you are doing...
ce2cded5
L
7944if test -n "$compiler"; then
7945
7946lt_prog_compiler_no_builtin_flag=
7947
7948if test "$GCC" = yes; then
3725885a
RW
7949 case $cc_basename in
7950 nvcc*)
7951 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7952 *)
7953 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7954 esac
ce2cded5 7955
81ecdfbb
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7957$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7958if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
ce2cded5
L
7960else
7961 lt_cv_prog_compiler_rtti_exceptions=no
7962 ac_outfile=conftest.$ac_objext
7963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7964 lt_compiler_flag="-fno-rtti -fno-exceptions"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 # The option is referenced via a variable to avoid confusing sed.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
3725885a 7974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
7975 (eval "$lt_compile" 2>conftest.err)
7976 ac_status=$?
7977 cat conftest.err >&5
3725885a 7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
7979 if (exit $ac_status) && test -s "$ac_outfile"; then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings other than the usual output.
3725885a 7982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
7983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_cv_prog_compiler_rtti_exceptions=yes
7986 fi
7987 fi
7988 $RM conftest*
7989
7990fi
81ecdfbb
RW
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7992$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
7993
7994if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7995 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7996else
7997 :
7998fi
7999
8000fi
8001
8002
8003
8004
8005
8006
8007 lt_prog_compiler_wl=
8008lt_prog_compiler_pic=
8009lt_prog_compiler_static=
8010
f2c621e4
AS
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8012$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8013
8014 if test "$GCC" = yes; then
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_static='-static'
8017
8018 case $host_os in
8019 aix*)
8020 # All AIX code is PIC.
8021 if test "$host_cpu" = ia64; then
8022 # AIX 5 now supports IA64 processor
8023 lt_prog_compiler_static='-Bstatic'
8024 fi
6c9c0a50 8025 lt_prog_compiler_pic='-fPIC'
ce2cded5 8026 ;;
d7040cdb
SE
8027
8028 amigaos*)
718a6fd8
SE
8029 case $host_cpu in
8030 powerpc)
8031 # see comment about AmigaOS4 .so support
8032 lt_prog_compiler_pic='-fPIC'
8033 ;;
8034 m68k)
8035 # FIXME: we need at least 68020 code to build shared libraries, but
8036 # adding the `-m68020' flag to GCC prevents building anything better,
8037 # like `-m68040'.
8038 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8039 ;;
8040 esac
d7040cdb
SE
8041 ;;
8042
ce2cded5
L
8043 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8044 # PIC is the default for these OSes.
d7040cdb
SE
8045 ;;
8046
718a6fd8 8047 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8048 # This hack is so that the source file can tell whether it is being
8049 # built for inclusion in a dll (and should export symbols for example).
8050 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8051 # (--disable-auto-import) libraries
8052 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8053 ;;
8054
8055 darwin* | rhapsody*)
ce2cded5
L
8056 # PIC is the default on this platform
8057 # Common symbols not allowed in MH_DYLIB files
8058 lt_prog_compiler_pic='-fno-common'
8059 ;;
8060
3725885a
RW
8061 haiku*)
8062 # PIC is the default for Haiku.
8063 # The "-static" flag exists, but is broken.
8064 lt_prog_compiler_static=
8065 ;;
8066
ce2cded5 8067 hpux*)
718a6fd8
SE
8068 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8069 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8070 # sets the default TLS model and affects inlining.
ce2cded5 8071 case $host_cpu in
718a6fd8 8072 hppa*64*)
ce2cded5 8073 # +Z the default
d7040cdb 8074 ;;
ce2cded5
L
8075 *)
8076 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8077 ;;
8078 esac
ce2cded5 8079 ;;
d7040cdb 8080
ce2cded5
L
8081 interix[3-9]*)
8082 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8083 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8084 ;;
8085
ce2cded5
L
8086 msdosdjgpp*)
8087 # Just because we use GCC doesn't mean we suddenly get shared libraries
8088 # on systems that don't support them.
8089 lt_prog_compiler_can_build_shared=no
8090 enable_shared=no
d7040cdb
SE
8091 ;;
8092
ce2cded5
L
8093 *nto* | *qnx*)
8094 # QNX uses GNU C++, but need to define -shared option too, otherwise
8095 # it will coredump.
8096 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8097 ;;
8098
ce2cded5
L
8099 sysv4*MP*)
8100 if test -d /usr/nec; then
8101 lt_prog_compiler_pic=-Kconform_pic
8102 fi
d7040cdb
SE
8103 ;;
8104
ce2cded5
L
8105 *)
8106 lt_prog_compiler_pic='-fPIC'
d7040cdb 8107 ;;
ce2cded5 8108 esac
3725885a
RW
8109
8110 case $cc_basename in
8111 nvcc*) # Cuda Compiler Driver 2.2
8112 lt_prog_compiler_wl='-Xlinker '
8113 lt_prog_compiler_pic='-Xcompiler -fPIC'
8114 ;;
8115 esac
ce2cded5
L
8116 else
8117 # PORTME Check for flag to pass linker flags through the system compiler.
8118 case $host_os in
8119 aix*)
8120 lt_prog_compiler_wl='-Wl,'
8121 if test "$host_cpu" = ia64; then
8122 # AIX 5 now supports IA64 processor
8123 lt_prog_compiler_static='-Bstatic'
d7040cdb 8124 else
ce2cded5 8125 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8126 fi
ce2cded5 8127 ;;
d7040cdb 8128
718a6fd8 8129 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8130 # This hack is so that the source file can tell whether it is being
8131 # built for inclusion in a dll (and should export symbols for example).
8132 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8133 ;;
8134
ce2cded5
L
8135 hpux9* | hpux10* | hpux11*)
8136 lt_prog_compiler_wl='-Wl,'
8137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8138 # not for PA HP-UX.
8139 case $host_cpu in
8140 hppa*64*|ia64*)
8141 # +Z the default
8142 ;;
8143 *)
8144 lt_prog_compiler_pic='+Z'
8145 ;;
8146 esac
8147 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8148 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8149 ;;
8150
ce2cded5
L
8151 irix5* | irix6* | nonstopux*)
8152 lt_prog_compiler_wl='-Wl,'
8153 # PIC (with -KPIC) is the default.
8154 lt_prog_compiler_static='-non_shared'
8155 ;;
d7040cdb 8156
58e24671 8157 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8158 case $cc_basename in
718a6fd8
SE
8159 # old Intel for x86_64 which still supported -KPIC.
8160 ecc*)
ce2cded5
L
8161 lt_prog_compiler_wl='-Wl,'
8162 lt_prog_compiler_pic='-KPIC'
8163 lt_prog_compiler_static='-static'
8164 ;;
718a6fd8
SE
8165 # icc used to be incompatible with GCC.
8166 # ICC 10 doesn't accept -KPIC any more.
8167 icc* | ifort*)
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_pic='-fPIC'
8170 lt_prog_compiler_static='-static'
8171 ;;
8172 # Lahey Fortran 8.1.
8173 lf95*)
8174 lt_prog_compiler_wl='-Wl,'
8175 lt_prog_compiler_pic='--shared'
8176 lt_prog_compiler_static='--static'
8177 ;;
3725885a 8178 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8179 # Portland Group compilers (*not* the Pentium gcc compiler,
8180 # which looks to be a dead project)
8181 lt_prog_compiler_wl='-Wl,'
8182 lt_prog_compiler_pic='-fpic'
8183 lt_prog_compiler_static='-Bstatic'
8184 ;;
8185 ccc*)
8186 lt_prog_compiler_wl='-Wl,'
8187 # All Alpha code is PIC.
8188 lt_prog_compiler_static='-non_shared'
8189 ;;
3725885a
RW
8190 xl* | bgxl* | bgf* | mpixl*)
8191 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='-qpic'
8194 lt_prog_compiler_static='-qstaticlink'
8195 ;;
ce2cded5
L
8196 *)
8197 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8198 *Sun\ F* | *Sun*Fortran*)
8199 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8200 lt_prog_compiler_pic='-KPIC'
8201 lt_prog_compiler_static='-Bstatic'
3725885a 8202 lt_prog_compiler_wl=''
d7040cdb 8203 ;;
3725885a
RW
8204 *Sun\ C*)
8205 # Sun C 5.9
ce2cded5
L
8206 lt_prog_compiler_pic='-KPIC'
8207 lt_prog_compiler_static='-Bstatic'
3725885a 8208 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8209 ;;
8210 esac
ce2cded5
L
8211 ;;
8212 esac
d7040cdb
SE
8213 ;;
8214
ce2cded5
L
8215 newsos6)
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8218 ;;
8219
ce2cded5
L
8220 *nto* | *qnx*)
8221 # QNX uses GNU C++, but need to define -shared option too, otherwise
8222 # it will coredump.
8223 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8224 ;;
8225
ce2cded5
L
8226 osf3* | osf4* | osf5*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # All OSF/1 code is PIC.
8229 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8230 ;;
8231
ce2cded5
L
8232 rdos*)
8233 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8234 ;;
8235
8236 solaris*)
ce2cded5
L
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 case $cc_basename in
f2c621e4 8240 f77* | f90* | f95*)
ce2cded5 8241 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8242 *)
ce2cded5 8243 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8244 esac
d7040cdb
SE
8245 ;;
8246
8247 sunos4*)
ce2cded5
L
8248 lt_prog_compiler_wl='-Qoption ld '
8249 lt_prog_compiler_pic='-PIC'
8250 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8251 ;;
8252
ce2cded5
L
8253 sysv4 | sysv4.2uw2* | sysv4.3*)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8257 ;;
8258
8259 sysv4*MP*)
ce2cded5
L
8260 if test -d /usr/nec ;then
8261 lt_prog_compiler_pic='-Kconform_pic'
8262 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8263 fi
8264 ;;
8265
ce2cded5
L
8266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8270 ;;
8271
ce2cded5
L
8272 unicos*)
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8275 ;;
8276
8277 uts4*)
ce2cded5
L
8278 lt_prog_compiler_pic='-pic'
8279 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8280 ;;
8281
8282 *)
ce2cded5 8283 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8284 ;;
8285 esac
d7040cdb
SE
8286 fi
8287
ce2cded5
L
8288case $host_os in
8289 # For platforms which do not support PIC, -DPIC is meaningless:
8290 *djgpp*)
8291 lt_prog_compiler_pic=
8292 ;;
8293 *)
8294 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8295 ;;
8296esac
f2c621e4
AS
8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8298$as_echo "$lt_prog_compiler_pic" >&6; }
8299
8300
8301
8302
d7040cdb
SE
8303
8304
8305#
ce2cded5 8306# Check to make sure the PIC flag actually works.
d7040cdb 8307#
ce2cded5 8308if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8310$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8311if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
ce2cded5 8313else
718a6fd8 8314 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8315 ac_outfile=conftest.$ac_objext
8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8318 # Insert the option either (1) after the last *FLAGS variable, or
8319 # (2) before a word containing "conftest.", or (3) at the end.
8320 # Note that $ac_compile itself does not contain backslashes and begins
8321 # with a dollar sign (not a hyphen), so the echo should work correctly.
8322 # The option is referenced via a variable to avoid confusing sed.
8323 lt_compile=`echo "$ac_compile" | $SED \
8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8326 -e 's:$: $lt_compiler_flag:'`
3725885a 8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8328 (eval "$lt_compile" 2>conftest.err)
8329 ac_status=$?
8330 cat conftest.err >&5
3725885a 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8332 if (exit $ac_status) && test -s "$ac_outfile"; then
8333 # The compiler can only warn and ignore the option if not recognized
8334 # So say no if there are warnings other than the usual output.
3725885a 8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8338 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8339 fi
8340 fi
8341 $RM conftest*
d7040cdb 8342
ce2cded5 8343fi
81ecdfbb
RW
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8345$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8346
718a6fd8 8347if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8348 case $lt_prog_compiler_pic in
8349 "" | " "*) ;;
8350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8351 esac
8352else
8353 lt_prog_compiler_pic=
8354 lt_prog_compiler_can_build_shared=no
8355fi
d7040cdb 8356
ce2cded5 8357fi
d7040cdb
SE
8358
8359
8360
8361
8362
8363
ce2cded5
L
8364#
8365# Check to make sure the static flag actually works.
8366#
8367wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8369$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8370if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
ce2cded5 8372else
718a6fd8 8373 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8374 save_LDFLAGS="$LDFLAGS"
8375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8376 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8378 # The linker can only warn and ignore the option if not recognized
8379 # So say no if there are warnings
8380 if test -s conftest.err; then
8381 # Append any errors to the config.log.
8382 cat conftest.err 1>&5
3725885a 8383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8385 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8386 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8387 fi
8388 else
718a6fd8 8389 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8390 fi
8391 fi
718a6fd8 8392 $RM -r conftest*
ce2cded5 8393 LDFLAGS="$save_LDFLAGS"
d7040cdb 8394
ce2cded5 8395fi
81ecdfbb
RW
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8397$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8398
718a6fd8 8399if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8400 :
8401else
8402 lt_prog_compiler_static=
8403fi
d7040cdb
SE
8404
8405
8406
8407
8408
8409
8410
81ecdfbb
RW
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8412$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8413if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
ce2cded5
L
8415else
8416 lt_cv_prog_compiler_c_o=no
8417 $RM -r conftest 2>/dev/null
8418 mkdir conftest
8419 cd conftest
8420 mkdir out
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8422
ce2cded5
L
8423 lt_compiler_flag="-o out/conftest2.$ac_objext"
8424 # Insert the option either (1) after the last *FLAGS variable, or
8425 # (2) before a word containing "conftest.", or (3) at the end.
8426 # Note that $ac_compile itself does not contain backslashes and begins
8427 # with a dollar sign (not a hyphen), so the echo should work correctly.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
3725885a 8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8433 (eval "$lt_compile" 2>out/conftest.err)
8434 ac_status=$?
8435 cat out/conftest.err >&5
3725885a 8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8437 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8438 then
8439 # The compiler can only warn and ignore the option if not recognized
8440 # So say no if there are warnings
3725885a 8441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8442 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8443 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8444 lt_cv_prog_compiler_c_o=yes
8445 fi
8446 fi
8447 chmod u+w . 2>&5
8448 $RM conftest*
8449 # SGI C++ compiler will create directory out/ii_files/ for
8450 # template instantiation
8451 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8452 $RM out/* && rmdir out
8453 cd ..
8454 $RM -r conftest
8455 $RM conftest*
d7040cdb 8456
ce2cded5 8457fi
81ecdfbb
RW
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8459$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8460
8461
8462
8463
8464
8465
81ecdfbb
RW
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8467$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8468if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
ce2cded5
L
8470else
8471 lt_cv_prog_compiler_c_o=no
8472 $RM -r conftest 2>/dev/null
8473 mkdir conftest
8474 cd conftest
8475 mkdir out
8476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8477
ce2cded5
L
8478 lt_compiler_flag="-o out/conftest2.$ac_objext"
8479 # Insert the option either (1) after the last *FLAGS variable, or
8480 # (2) before a word containing "conftest.", or (3) at the end.
8481 # Note that $ac_compile itself does not contain backslashes and begins
8482 # with a dollar sign (not a hyphen), so the echo should work correctly.
8483 lt_compile=`echo "$ac_compile" | $SED \
8484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8486 -e 's:$: $lt_compiler_flag:'`
3725885a 8487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8488 (eval "$lt_compile" 2>out/conftest.err)
8489 ac_status=$?
8490 cat out/conftest.err >&5
3725885a 8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8493 then
8494 # The compiler can only warn and ignore the option if not recognized
8495 # So say no if there are warnings
3725885a 8496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8499 lt_cv_prog_compiler_c_o=yes
8500 fi
8501 fi
8502 chmod u+w . 2>&5
8503 $RM conftest*
8504 # SGI C++ compiler will create directory out/ii_files/ for
8505 # template instantiation
8506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8507 $RM out/* && rmdir out
8508 cd ..
8509 $RM -r conftest
8510 $RM conftest*
d7040cdb 8511
ce2cded5 8512fi
81ecdfbb
RW
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8514$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8515
8516
8517
8518
ce2cded5
L
8519hard_links="nottested"
8520if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8521 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8523$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8524 hard_links=yes
8525 $RM conftest*
8526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8527 touch conftest.a
8528 ln conftest.a conftest.b 2>&5 || hard_links=no
8529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8531$as_echo "$hard_links" >&6; }
ce2cded5 8532 if test "$hard_links" = no; then
81ecdfbb
RW
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8534$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8535 need_locks=warn
8536 fi
8537else
8538 need_locks=no
8539fi
d7040cdb
SE
8540
8541
8542
8543
8544
8545
81ecdfbb
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8547$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8548
ce2cded5
L
8549 runpath_var=
8550 allow_undefined_flag=
8551 always_export_symbols=no
8552 archive_cmds=
8553 archive_expsym_cmds=
8554 compiler_needs_object=no
8555 enable_shared_with_static_runtimes=no
8556 export_dynamic_flag_spec=
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8558 hardcode_automatic=no
8559 hardcode_direct=no
8560 hardcode_direct_absolute=no
8561 hardcode_libdir_flag_spec=
8562 hardcode_libdir_flag_spec_ld=
8563 hardcode_libdir_separator=
8564 hardcode_minus_L=no
8565 hardcode_shlibpath_var=unsupported
8566 inherit_rpath=no
8567 link_all_deplibs=unknown
8568 module_cmds=
8569 module_expsym_cmds=
8570 old_archive_from_new_cmds=
8571 old_archive_from_expsyms_cmds=
8572 thread_safe_flag_spec=
8573 whole_archive_flag_spec=
8574 # include_expsyms should be a list of space-separated symbols to be *always*
8575 # included in the symbol list
8576 include_expsyms=
8577 # exclude_expsyms can be an extended regexp of symbols to exclude
8578 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8579 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8580 # as well as any symbol that contains `d'.
718a6fd8 8581 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8582 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8583 # platforms (ab)use it in PIC code, but their linkers get confused if
8584 # the symbol is explicitly referenced. Since portable code cannot
8585 # rely on this symbol name, it's probably fine to never include it in
8586 # preloaded symbol tables.
718a6fd8 8587 # Exclude shared library initialization/finalization symbols.
ce2cded5 8588 extract_expsyms_cmds=
d7040cdb 8589
ce2cded5 8590 case $host_os in
718a6fd8 8591 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8592 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8593 # When not using gcc, we currently assume that we are using
8594 # Microsoft Visual C++.
8595 if test "$GCC" != yes; then
8596 with_gnu_ld=no
8597 fi
8598 ;;
8599 interix*)
8600 # we just hope/assume this is gcc and not c89 (= MSVC++)
8601 with_gnu_ld=yes
8602 ;;
8603 openbsd*)
8604 with_gnu_ld=no
8605 ;;
8606 esac
d7040cdb 8607
ce2cded5 8608 ld_shlibs=yes
3725885a
RW
8609
8610 # On some targets, GNU ld is compatible enough with the native linker
8611 # that we're better off using the native interface for both.
8612 lt_use_gnu_ld_interface=no
ce2cded5 8613 if test "$with_gnu_ld" = yes; then
3725885a
RW
8614 case $host_os in
8615 aix*)
8616 # The AIX port of GNU ld has always aspired to compatibility
8617 # with the native linker. However, as the warning in the GNU ld
8618 # block says, versions before 2.19.5* couldn't really create working
8619 # shared libraries, regardless of the interface used.
8620 case `$LD -v 2>&1` in
8621 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8622 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8623 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8624 *)
8625 lt_use_gnu_ld_interface=yes
8626 ;;
8627 esac
8628 ;;
8629 *)
8630 lt_use_gnu_ld_interface=yes
8631 ;;
8632 esac
8633 fi
8634
8635 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8636 # If archive_cmds runs LD, not CC, wlarc should be empty
8637 wlarc='${wl}'
d7040cdb 8638
ce2cded5
L
8639 # Set some defaults for GNU ld with shared library support. These
8640 # are reset later if shared libraries are not supported. Putting them
8641 # here allows them to be overridden if necessary.
8642 runpath_var=LD_RUN_PATH
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 export_dynamic_flag_spec='${wl}--export-dynamic'
8645 # ancient GNU ld didn't support --whole-archive et. al.
8646 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8647 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8648 else
8649 whole_archive_flag_spec=
8650 fi
8651 supports_anon_versioning=no
8652 case `$LD -v 2>&1` in
3725885a 8653 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8654 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8657 *\ 2.11.*) ;; # other 2.11 versions
8658 *) supports_anon_versioning=yes ;;
8659 esac
d7040cdb 8660
ce2cded5
L
8661 # See if GNU ld supports shared libraries.
8662 case $host_os in
50e7d84b 8663 aix[3-9]*)
ce2cded5
L
8664 # On AIX/PPC, the GNU linker is very broken
8665 if test "$host_cpu" != ia64; then
8666 ld_shlibs=no
8667 cat <<_LT_EOF 1>&2
d7040cdb 8668
3725885a 8669*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8670*** to be unable to reliably create shared libraries on AIX.
8671*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8672*** really care for shared libraries, you may want to install binutils
8673*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8674*** You will then need to restart the configuration process.
d7040cdb 8675
ce2cded5
L
8676_LT_EOF
8677 fi
8678 ;;
d7040cdb 8679
ce2cded5 8680 amigaos*)
718a6fd8
SE
8681 case $host_cpu in
8682 powerpc)
8683 # see comment about AmigaOS4 .so support
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds=''
8686 ;;
8687 m68k)
8688 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)'
8689 hardcode_libdir_flag_spec='-L$libdir'
8690 hardcode_minus_L=yes
8691 ;;
8692 esac
ce2cded5 8693 ;;
d7040cdb 8694
ce2cded5
L
8695 beos*)
8696 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8697 allow_undefined_flag=unsupported
8698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8699 # support --undefined. This deserves some investigation. FIXME
8700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 else
8702 ld_shlibs=no
8703 fi
8704 ;;
d7040cdb 8705
718a6fd8 8706 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8707 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8708 # as there is no search path for DLLs.
8709 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8710 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8711 allow_undefined_flag=unsupported
8712 always_export_symbols=no
8713 enable_shared_with_static_runtimes=yes
f2c621e4 8714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8715
ce2cded5
L
8716 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8718 # If the export-symbols file already is a .def file (1st line
8719 # is EXPORTS), use it as is; otherwise, prepend...
8720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8721 cp $export_symbols $output_objdir/$soname.def;
8722 else
8723 echo EXPORTS > $output_objdir/$soname.def;
8724 cat $export_symbols >> $output_objdir/$soname.def;
8725 fi~
8726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 else
8728 ld_shlibs=no
8729 fi
8730 ;;
d7040cdb 8731
3725885a
RW
8732 haiku*)
8733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734 link_all_deplibs=yes
8735 ;;
8736
ce2cded5
L
8737 interix[3-9]*)
8738 hardcode_direct=no
8739 hardcode_shlibpath_var=no
8740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8741 export_dynamic_flag_spec='${wl}-E'
8742 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8743 # Instead, shared libraries are loaded at an image base (0x10000000 by
8744 # default) and relocated if they conflict, which is a slow very memory
8745 # consuming and fragmenting process. To avoid this, we pick a random,
8746 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8747 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8748 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8749 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'
8750 ;;
d7040cdb 8751
58e24671 8752 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8753 tmp_diet=no
8754 if test "$host_os" = linux-dietlibc; then
8755 case $cc_basename in
8756 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8757 esac
8758 fi
8759 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8760 && test "$tmp_diet" = no
8761 then
6e733cce 8762 tmp_addflag=' $pic_flag'
718a6fd8 8763 tmp_sharedflag='-shared'
ce2cded5
L
8764 case $cc_basename,$host_cpu in
8765 pgcc*) # Portland Group C compiler
3725885a 8766 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
8767 tmp_addflag=' $pic_flag'
8768 ;;
3725885a
RW
8769 pgf77* | pgf90* | pgf95* | pgfortran*)
8770 # Portland Group f77 and f90 compilers
8771 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
8772 tmp_addflag=' $pic_flag -Mnomain' ;;
8773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8774 tmp_addflag=' -i_dynamic' ;;
8775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8776 tmp_addflag=' -i_dynamic -nofor_main' ;;
8777 ifc* | ifort*) # Intel Fortran compiler
8778 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8779 lf95*) # Lahey Fortran 8.1
8780 whole_archive_flag_spec=
8781 tmp_sharedflag='--shared' ;;
3725885a 8782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8783 tmp_sharedflag='-qmkshrobj'
8784 tmp_addflag= ;;
3725885a
RW
8785 nvcc*) # Cuda Compiler Driver 2.2
8786 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'
8787 compiler_needs_object=yes
8788 ;;
ce2cded5
L
8789 esac
8790 case `$CC -V 2>&1 | sed 5q` in
8791 *Sun\ C*) # Sun C 5.9
3725885a 8792 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
8793 compiler_needs_object=yes
8794 tmp_sharedflag='-G' ;;
8795 *Sun\ F*) # Sun Fortran 8.3
8796 tmp_sharedflag='-G' ;;
ce2cded5
L
8797 esac
8798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8799
ce2cded5
L
8800 if test "x$supports_anon_versioning" = xyes; then
8801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8803 echo "local: *; };" >> $output_objdir/$libname.ver~
8804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8805 fi
718a6fd8
SE
8806
8807 case $cc_basename in
3725885a 8808 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8809 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8810 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8811 hardcode_libdir_flag_spec=
8812 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8813 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8814 if test "x$supports_anon_versioning" = xyes; then
8815 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8817 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8818 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8819 fi
8820 ;;
8821 esac
ce2cded5
L
8822 else
8823 ld_shlibs=no
8824 fi
8825 ;;
d7040cdb 8826
ce2cded5
L
8827 netbsd*)
8828 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8829 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8830 wlarc=
8831 else
f2c621e4
AS
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8834 fi
8835 ;;
d7040cdb 8836
ce2cded5
L
8837 solaris*)
8838 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8839 ld_shlibs=no
8840 cat <<_LT_EOF 1>&2
d7040cdb 8841
ce2cded5
L
8842*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8843*** create shared libraries on Solaris systems. Therefore, libtool
8844*** is disabling shared libraries support. We urge you to upgrade GNU
8845*** binutils to release 2.9.1 or newer. Another option is to modify
8846*** your PATH or compiler configuration so that the native linker is
8847*** used, and then restart.
d7040cdb 8848
ce2cded5
L
8849_LT_EOF
8850 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8853 else
8854 ld_shlibs=no
8855 fi
8856 ;;
d7040cdb 8857
ce2cded5
L
8858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8859 case `$LD -v 2>&1` in
8860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8861 ld_shlibs=no
8862 cat <<_LT_EOF 1>&2
d7040cdb 8863
ce2cded5
L
8864*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8865*** reliably create shared libraries on SCO systems. Therefore, libtool
8866*** is disabling shared libraries support. We urge you to upgrade GNU
8867*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8868*** your PATH or compiler configuration so that the native linker is
8869*** used, and then restart.
d7040cdb 8870
ce2cded5
L
8871_LT_EOF
8872 ;;
8873 *)
8874 # For security reasons, it is highly recommended that you always
8875 # use absolute paths for naming shared libraries, and exclude the
8876 # DT_RUNPATH tag from executables and libraries. But doing so
8877 # requires that you compile everything twice, which is a pain.
8878 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8882 else
8883 ld_shlibs=no
8884 fi
8885 ;;
8886 esac
8887 ;;
d7040cdb 8888
ce2cded5
L
8889 sunos4*)
8890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8891 wlarc=
8892 hardcode_direct=yes
8893 hardcode_shlibpath_var=no
8894 ;;
d7040cdb 8895
ce2cded5
L
8896 *)
8897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
8900 else
8901 ld_shlibs=no
8902 fi
8903 ;;
8904 esac
d7040cdb 8905
ce2cded5
L
8906 if test "$ld_shlibs" = no; then
8907 runpath_var=
8908 hardcode_libdir_flag_spec=
8909 export_dynamic_flag_spec=
8910 whole_archive_flag_spec=
8911 fi
8912 else
8913 # PORTME fill in a description of your system's linker (not GNU ld)
8914 case $host_os in
8915 aix3*)
8916 allow_undefined_flag=unsupported
8917 always_export_symbols=yes
8918 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'
8919 # Note: this linker hardcodes the directories in LIBPATH if there
8920 # are no directories specified by -L.
8921 hardcode_minus_L=yes
8922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8923 # Neither direct hardcoding nor static linking is supported with a
8924 # broken collect2.
8925 hardcode_direct=unsupported
8926 fi
8927 ;;
d7040cdb 8928
50e7d84b 8929 aix[4-9]*)
ce2cded5
L
8930 if test "$host_cpu" = ia64; then
8931 # On IA64, the linker does run time linking by default, so we don't
8932 # have to do anything special.
8933 aix_use_runtimelinking=no
8934 exp_sym_flag='-Bexport'
8935 no_entry_flag=""
8936 else
8937 # If we're using GNU nm, then we don't want the "-C" option.
8938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8939 # Also, AIX nm treats weak defined symbols like other global
8940 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 8941 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8942 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
L
8943 else
8944 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8945 fi
8946 aix_use_runtimelinking=no
d7040cdb 8947
ce2cded5
L
8948 # Test if we are trying to use run time linking or normal
8949 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8950 # need to do runtime linking.
50e7d84b 8951 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
8952 for ld_flag in $LDFLAGS; do
8953 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8954 aix_use_runtimelinking=yes
8955 break
8956 fi
8957 done
8958 ;;
8959 esac
d7040cdb 8960
ce2cded5
L
8961 exp_sym_flag='-bexport'
8962 no_entry_flag='-bnoentry'
8963 fi
d7040cdb 8964
ce2cded5
L
8965 # When large executables or shared objects are built, AIX ld can
8966 # have problems creating the table of contents. If linking a library
8967 # or program results in "error TOC overflow" add -mminimal-toc to
8968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 8970
ce2cded5
L
8971 archive_cmds=''
8972 hardcode_direct=yes
8973 hardcode_direct_absolute=yes
8974 hardcode_libdir_separator=':'
8975 link_all_deplibs=yes
8976 file_list_spec='${wl}-f,'
d7040cdb 8977
ce2cded5
L
8978 if test "$GCC" = yes; then
8979 case $host_os in aix4.[012]|aix4.[012].*)
8980 # We only want to do this on AIX 4.2 and lower, the check
8981 # below for broken collect2 doesn't work under 4.3+
8982 collect2name=`${CC} -print-prog-name=collect2`
8983 if test -f "$collect2name" &&
8984 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8985 then
8986 # We have reworked collect2
8987 :
8988 else
8989 # We have old collect2
8990 hardcode_direct=unsupported
8991 # It fails to find uninstalled libraries when the uninstalled
8992 # path is not listed in the libpath. Setting hardcode_minus_L
8993 # to unsupported forces relinking
8994 hardcode_minus_L=yes
8995 hardcode_libdir_flag_spec='-L$libdir'
8996 hardcode_libdir_separator=
8997 fi
8998 ;;
8999 esac
9000 shared_flag='-shared'
9001 if test "$aix_use_runtimelinking" = yes; then
9002 shared_flag="$shared_flag "'${wl}-G'
9003 fi
9004 else
9005 # not using gcc
9006 if test "$host_cpu" = ia64; then
9007 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9008 # chokes on -Wl,-G. The following line is correct:
9009 shared_flag='-G'
9010 else
9011 if test "$aix_use_runtimelinking" = yes; then
9012 shared_flag='${wl}-G'
9013 else
9014 shared_flag='${wl}-bM:SRE'
9015 fi
9016 fi
9017 fi
d7040cdb 9018
718a6fd8 9019 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9020 # It seems that -bexpall does not export symbols beginning with
9021 # underscore (_), so it is better to generate a list of symbols to export.
9022 always_export_symbols=yes
9023 if test "$aix_use_runtimelinking" = yes; then
9024 # Warning - without using the other runtime loading flags (-brtl),
9025 # -berok will link without error, but may produce a broken library.
9026 allow_undefined_flag='-berok'
9027 # Determine the default libpath from the value encoded in an
9028 # empty executable.
f2c621e4 9029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9030/* end confdefs.h. */
d7040cdb 9031
ce2cded5
L
9032int
9033main ()
9034{
d7040cdb 9035
ce2cded5
L
9036 ;
9037 return 0;
9038}
9039_ACEOF
81ecdfbb 9040if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9041
f2c621e4
AS
9042lt_aix_libpath_sed='
9043 /Import File Strings/,/^$/ {
9044 /^0/ {
9045 s/^0 *\(.*\)$/\1/
9046 p
9047 }
9048 }'
9049aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9050# Check for a 64-bit object if we didn't find anything.
9051if test -z "$aix_libpath"; then
9052 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9053fi
ce2cded5 9054fi
81ecdfbb
RW
9055rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9057if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9058
ce2cded5 9059 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9060 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
9061 else
9062 if test "$host_cpu" = ia64; then
9063 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9064 allow_undefined_flag="-z nodefs"
9065 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"
9066 else
9067 # Determine the default libpath from the value encoded in an
9068 # empty executable.
f2c621e4 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9070/* end confdefs.h. */
d7040cdb 9071
ce2cded5
L
9072int
9073main ()
9074{
d7040cdb 9075
ce2cded5
L
9076 ;
9077 return 0;
9078}
9079_ACEOF
81ecdfbb 9080if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9081
f2c621e4
AS
9082lt_aix_libpath_sed='
9083 /Import File Strings/,/^$/ {
9084 /^0/ {
9085 s/^0 *\(.*\)$/\1/
9086 p
9087 }
9088 }'
9089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9090# Check for a 64-bit object if we didn't find anything.
9091if test -z "$aix_libpath"; then
9092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9093fi
ce2cded5 9094fi
81ecdfbb
RW
9095rm -f core conftest.err conftest.$ac_objext \
9096 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9098
ce2cded5
L
9099 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9100 # Warning - without using the other run time loading flags,
9101 # -berok will link without error, but may produce a broken library.
9102 no_undefined_flag=' ${wl}-bernotok'
9103 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9104 if test "$with_gnu_ld" = yes; then
9105 # We only use this code for GNU lds that support --whole-archive.
9106 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9107 else
9108 # Exported symbols can be pulled into shared objects from archives
9109 whole_archive_flag_spec='$convenience'
9110 fi
ce2cded5
L
9111 archive_cmds_need_lc=yes
9112 # This is similar to how AIX traditionally builds its shared libraries.
9113 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'
9114 fi
9115 fi
9116 ;;
d7040cdb 9117
ce2cded5 9118 amigaos*)
718a6fd8
SE
9119 case $host_cpu in
9120 powerpc)
9121 # see comment about AmigaOS4 .so support
9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9123 archive_expsym_cmds=''
9124 ;;
9125 m68k)
9126 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)'
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_minus_L=yes
9129 ;;
9130 esac
ce2cded5 9131 ;;
d7040cdb 9132
ce2cded5
L
9133 bsdi[45]*)
9134 export_dynamic_flag_spec=-rdynamic
9135 ;;
d7040cdb 9136
718a6fd8 9137 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9138 # When not using gcc, we currently assume that we are using
9139 # Microsoft Visual C++.
9140 # hardcode_libdir_flag_spec is actually meaningless, as there is
9141 # no search path for DLLs.
f2c621e4
AS
9142 hardcode_libdir_flag_spec=' '
9143 allow_undefined_flag=unsupported
9144 # Tell ltmain to make .lib files, not .a files.
9145 libext=lib
9146 # Tell ltmain to make .dll files, not .so files.
9147 shrext_cmds=".dll"
9148 # FIXME: Setting linknames here is a bad hack.
9149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9150 # The linker will automatically build a .lib file if we build a DLL.
9151 old_archive_from_new_cmds='true'
9152 # FIXME: Should let the user specify the lib program.
9153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9154 fix_srcfile_path='`cygpath -w "$srcfile"`'
9155 enable_shared_with_static_runtimes=yes
ce2cded5 9156 ;;
d7040cdb 9157
ce2cded5 9158 darwin* | rhapsody*)
d7040cdb 9159
718a6fd8
SE
9160
9161 archive_cmds_need_lc=no
9162 hardcode_direct=no
9163 hardcode_automatic=yes
9164 hardcode_shlibpath_var=unsupported
3725885a
RW
9165 if test "$lt_cv_ld_force_load" = "yes"; then
9166 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\"`'
9167 else
9168 whole_archive_flag_spec=''
9169 fi
718a6fd8
SE
9170 link_all_deplibs=yes
9171 allow_undefined_flag="$_lt_dar_allow_undefined"
9172 case $cc_basename in
9173 ifort*) _lt_dar_can_shared=yes ;;
9174 *) _lt_dar_can_shared=$GCC ;;
9175 esac
9176 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9177 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9178 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9179 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9180 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}"
9181 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}"
9182
9183 else
9184 ld_shlibs=no
9185 fi
9186
ce2cded5 9187 ;;
d7040cdb 9188
ce2cded5
L
9189 dgux*)
9190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 hardcode_shlibpath_var=no
9193 ;;
d7040cdb 9194
ce2cded5
L
9195 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9196 # support. Future versions do this automatically, but an explicit c++rt0.o
9197 # does not break anything, and helps significantly (at the cost of a little
9198 # extra space).
9199 freebsd2.2*)
9200 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9201 hardcode_libdir_flag_spec='-R$libdir'
9202 hardcode_direct=yes
9203 hardcode_shlibpath_var=no
9204 ;;
d7040cdb 9205
ce2cded5 9206 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9207 freebsd2.*)
ce2cded5
L
9208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_direct=yes
9210 hardcode_minus_L=yes
9211 hardcode_shlibpath_var=no
9212 ;;
d7040cdb 9213
ce2cded5
L
9214 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9215 freebsd* | dragonfly*)
f2c621e4 9216 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9217 hardcode_libdir_flag_spec='-R$libdir'
9218 hardcode_direct=yes
9219 hardcode_shlibpath_var=no
9220 ;;
d7040cdb 9221
ce2cded5
L
9222 hpux9*)
9223 if test "$GCC" = yes; then
f2c621e4 9224 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
9225 else
9226 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'
9227 fi
9228 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 hardcode_direct=yes
d7040cdb 9231
ce2cded5
L
9232 # hardcode_minus_L: Not really in the search PATH,
9233 # but as the default location of the library.
9234 hardcode_minus_L=yes
9235 export_dynamic_flag_spec='${wl}-E'
9236 ;;
d7040cdb 9237
ce2cded5 9238 hpux10*)
3725885a 9239 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9241 else
9242 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9243 fi
9244 if test "$with_gnu_ld" = no; then
9245 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246 hardcode_libdir_flag_spec_ld='+b $libdir'
9247 hardcode_libdir_separator=:
9248 hardcode_direct=yes
9249 hardcode_direct_absolute=yes
9250 export_dynamic_flag_spec='${wl}-E'
9251 # hardcode_minus_L: Not really in the search PATH,
9252 # but as the default location of the library.
9253 hardcode_minus_L=yes
9254 fi
9255 ;;
d7040cdb 9256
ce2cded5 9257 hpux11*)
3725885a 9258 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9259 case $host_cpu in
9260 hppa*64*)
9261 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9262 ;;
9263 ia64*)
f2c621e4 9264 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9265 ;;
9266 *)
f2c621e4 9267 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9268 ;;
9269 esac
9270 else
9271 case $host_cpu in
9272 hppa*64*)
9273 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 ;;
9275 ia64*)
9276 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9277 ;;
9278 *)
3725885a
RW
9279
9280 # Older versions of the 11.00 compiler do not understand -b yet
9281 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9283$as_echo_n "checking if $CC understands -b... " >&6; }
9284if test "${lt_cv_prog_compiler__b+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286else
9287 lt_cv_prog_compiler__b=no
9288 save_LDFLAGS="$LDFLAGS"
9289 LDFLAGS="$LDFLAGS -b"
9290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9292 # The linker can only warn and ignore the option if not recognized
9293 # So say no if there are warnings
9294 if test -s conftest.err; then
9295 # Append any errors to the config.log.
9296 cat conftest.err 1>&5
9297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9299 if diff conftest.exp conftest.er2 >/dev/null; then
9300 lt_cv_prog_compiler__b=yes
9301 fi
9302 else
9303 lt_cv_prog_compiler__b=yes
9304 fi
9305 fi
9306 $RM -r conftest*
9307 LDFLAGS="$save_LDFLAGS"
9308
9309fi
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9311$as_echo "$lt_cv_prog_compiler__b" >&6; }
9312
9313if test x"$lt_cv_prog_compiler__b" = xyes; then
9314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9315else
9316 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9317fi
9318
ce2cded5
L
9319 ;;
9320 esac
9321 fi
9322 if test "$with_gnu_ld" = no; then
9323 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9324 hardcode_libdir_separator=:
d7040cdb 9325
ce2cded5
L
9326 case $host_cpu in
9327 hppa*64*|ia64*)
9328 hardcode_direct=no
9329 hardcode_shlibpath_var=no
9330 ;;
9331 *)
9332 hardcode_direct=yes
9333 hardcode_direct_absolute=yes
9334 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9335
ce2cded5
L
9336 # hardcode_minus_L: Not really in the search PATH,
9337 # but as the default location of the library.
9338 hardcode_minus_L=yes
9339 ;;
9340 esac
9341 fi
9342 ;;
9343
9344 irix5* | irix6* | nonstopux*)
9345 if test "$GCC" = yes; then
f2c621e4 9346 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
9347 # Try to use the -exported_symbol ld option, if it does not
9348 # work, assume that -exports_file does not work either and
9349 # implicitly export all symbols.
f2c621e4
AS
9350 save_LDFLAGS="$LDFLAGS"
9351 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9353/* end confdefs.h. */
f2c621e4 9354int foo(void) {}
ce2cded5 9355_ACEOF
81ecdfbb 9356if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9357 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'
9358
d7040cdb 9359fi
81ecdfbb
RW
9360rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9362 LDFLAGS="$save_LDFLAGS"
ce2cded5 9363 else
3725885a
RW
9364 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'
9365 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
9366 fi
9367 archive_cmds_need_lc='no'
9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9369 hardcode_libdir_separator=:
9370 inherit_rpath=yes
9371 link_all_deplibs=yes
9372 ;;
d7040cdb 9373
ce2cded5
L
9374 netbsd*)
9375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9377 else
9378 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9379 fi
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
d7040cdb 9384
ce2cded5
L
9385 newsos6)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=yes
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389 hardcode_libdir_separator=:
9390 hardcode_shlibpath_var=no
9391 ;;
d7040cdb 9392
ce2cded5
L
9393 *nto* | *qnx*)
9394 ;;
d7040cdb 9395
ce2cded5 9396 openbsd*)
718a6fd8
SE
9397 if test -f /usr/libexec/ld.so; then
9398 hardcode_direct=yes
9399 hardcode_shlibpath_var=no
9400 hardcode_direct_absolute=yes
9401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9405 export_dynamic_flag_spec='${wl}-E'
9406 else
9407 case $host_os in
9408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9410 hardcode_libdir_flag_spec='-R$libdir'
9411 ;;
9412 *)
9413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9415 ;;
9416 esac
9417 fi
9418 else
9419 ld_shlibs=no
d7040cdb
SE
9420 fi
9421 ;;
d7040cdb 9422
ce2cded5
L
9423 os2*)
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_minus_L=yes
9426 allow_undefined_flag=unsupported
3725885a 9427 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
9428 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9429 ;;
d7040cdb 9430
ce2cded5
L
9431 osf3*)
9432 if test "$GCC" = yes; then
9433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9434 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
9435 else
9436 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9437 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
9438 fi
9439 archive_cmds_need_lc='no'
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 hardcode_libdir_separator=:
9442 ;;
d7040cdb 9443
ce2cded5
L
9444 osf4* | osf5*) # as osf3* with the addition of -msym flag
9445 if test "$GCC" = yes; then
9446 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9447 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
9448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9449 else
9450 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9451 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 9452 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 9453 $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 9454
ce2cded5
L
9455 # Both c and cxx compiler support -rpath directly
9456 hardcode_libdir_flag_spec='-rpath $libdir'
9457 fi
9458 archive_cmds_need_lc='no'
9459 hardcode_libdir_separator=:
9460 ;;
d7040cdb 9461
ce2cded5
L
9462 solaris*)
9463 no_undefined_flag=' -z defs'
9464 if test "$GCC" = yes; then
9465 wlarc='${wl}'
f2c621e4 9466 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9468 $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
9469 else
9470 case `$CC -V 2>&1` in
9471 *"Compilers 5.0"*)
9472 wlarc=''
9473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9476 ;;
9477 *)
9478 wlarc='${wl}'
9479 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9480 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9481 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9482 ;;
9483 esac
9484 fi
9485 hardcode_libdir_flag_spec='-R$libdir'
9486 hardcode_shlibpath_var=no
9487 case $host_os in
9488 solaris2.[0-5] | solaris2.[0-5].*) ;;
9489 *)
9490 # The compiler driver will combine and reorder linker options,
9491 # but understands `-z linker_flag'. GCC discards it without `$wl',
9492 # but is careful enough not to reorder.
9493 # Supported since Solaris 2.6 (maybe 2.5.1?)
9494 if test "$GCC" = yes; then
9495 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9496 else
9497 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9498 fi
9499 ;;
9500 esac
9501 link_all_deplibs=yes
d7040cdb 9502 ;;
ce2cded5
L
9503
9504 sunos4*)
9505 if test "x$host_vendor" = xsequent; then
9506 # Use $CC to link under sequent, because it throws in some extra .o
9507 # files that make .init and .fini sections work.
9508 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9509 else
ce2cded5 9510 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9511 fi
ce2cded5
L
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_direct=yes
9514 hardcode_minus_L=yes
9515 hardcode_shlibpath_var=no
d7040cdb 9516 ;;
ce2cded5
L
9517
9518 sysv4)
9519 case $host_vendor in
9520 sni)
9521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9522 hardcode_direct=yes # is this really true???
9523 ;;
9524 siemens)
9525 ## LD is ld it makes a PLAMLIB
9526 ## CC just makes a GrossModule.
9527 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9528 reload_cmds='$CC -r -o $output$reload_objs'
9529 hardcode_direct=no
9530 ;;
9531 motorola)
9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9534 ;;
9535 esac
9536 runpath_var='LD_RUN_PATH'
9537 hardcode_shlibpath_var=no
d7040cdb 9538 ;;
d7040cdb 9539
ce2cded5
L
9540 sysv4.3*)
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_shlibpath_var=no
9543 export_dynamic_flag_spec='-Bexport'
9544 ;;
d7040cdb 9545
ce2cded5
L
9546 sysv4*MP*)
9547 if test -d /usr/nec; then
9548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549 hardcode_shlibpath_var=no
9550 runpath_var=LD_RUN_PATH
9551 hardcode_runpath_var=yes
9552 ld_shlibs=yes
9553 fi
9554 ;;
d7040cdb 9555
ce2cded5
L
9556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9557 no_undefined_flag='${wl}-z,text'
9558 archive_cmds_need_lc=no
9559 hardcode_shlibpath_var=no
9560 runpath_var='LD_RUN_PATH'
d7040cdb 9561
ce2cded5
L
9562 if test "$GCC" = yes; then
9563 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9564 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565 else
9566 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568 fi
9569 ;;
d7040cdb 9570
ce2cded5
L
9571 sysv5* | sco3.2v5* | sco5v6*)
9572 # Note: We can NOT use -z defs as we might desire, because we do not
9573 # link with -lc, and that would cause any symbols used from libc to
9574 # always be unresolved, which means just about no library would
9575 # ever link correctly. If we're not using GNU ld we use -z text
9576 # though, which does catch some bad symbols but isn't as heavy-handed
9577 # as -z defs.
9578 no_undefined_flag='${wl}-z,text'
9579 allow_undefined_flag='${wl}-z,nodefs'
9580 archive_cmds_need_lc=no
9581 hardcode_shlibpath_var=no
9582 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9583 hardcode_libdir_separator=':'
9584 link_all_deplibs=yes
9585 export_dynamic_flag_spec='${wl}-Bexport'
9586 runpath_var='LD_RUN_PATH'
d7040cdb 9587
ce2cded5
L
9588 if test "$GCC" = yes; then
9589 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 else
9592 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 fi
d7040cdb 9595 ;;
d7040cdb 9596
ce2cded5
L
9597 uts4*)
9598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9599 hardcode_libdir_flag_spec='-L$libdir'
9600 hardcode_shlibpath_var=no
9601 ;;
d7040cdb 9602
ce2cded5
L
9603 *)
9604 ld_shlibs=no
9605 ;;
9606 esac
9607
9608 if test x$host_vendor = xsni; then
9609 case $host in
9610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9611 export_dynamic_flag_spec='${wl}-Blargedynsym'
9612 ;;
9613 esac
d7040cdb 9614 fi
ce2cded5 9615 fi
d7040cdb 9616
81ecdfbb
RW
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9618$as_echo "$ld_shlibs" >&6; }
ce2cded5 9619test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9620
ce2cded5 9621with_gnu_ld=$with_gnu_ld
d7040cdb 9622
d7040cdb 9623
d7040cdb 9624
d7040cdb 9625
d7040cdb 9626
d7040cdb 9627
d7040cdb 9628
d7040cdb 9629
d7040cdb 9630
d7040cdb 9631
d7040cdb 9632
d7040cdb 9633
d7040cdb 9634
d7040cdb 9635
d7040cdb 9636
ce2cded5
L
9637#
9638# Do we need to explicitly link libc?
9639#
9640case "x$archive_cmds_need_lc" in
9641x|xyes)
9642 # Assume -lc should be added
9643 archive_cmds_need_lc=yes
d7040cdb 9644
ce2cded5
L
9645 if test "$enable_shared" = yes && test "$GCC" = yes; then
9646 case $archive_cmds in
9647 *'~'*)
9648 # FIXME: we may have to deal with multi-command sequences.
9649 ;;
9650 '$CC '*)
9651 # Test whether the compiler implicitly links with -lc since on some
9652 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9653 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9655$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9656if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
39144654
RW
9658else
9659 $RM conftest*
9660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9661
81ecdfbb 9662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9663 (eval $ac_compile) 2>&5
9664 ac_status=$?
81ecdfbb
RW
9665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9666 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9667 soname=conftest
9668 lib=conftest
9669 libobjs=conftest.$ac_objext
9670 deplibs=
9671 wl=$lt_prog_compiler_wl
9672 pic_flag=$lt_prog_compiler_pic
9673 compiler_flags=-v
9674 linker_flags=-v
9675 verstring=
9676 output_objdir=.
9677 libname=conftest
9678 lt_save_allow_undefined_flag=$allow_undefined_flag
9679 allow_undefined_flag=
81ecdfbb 9680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9681 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9682 ac_status=$?
81ecdfbb
RW
9683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9684 test $ac_status = 0; }
39144654
RW
9685 then
9686 lt_cv_archive_cmds_need_lc=no
9687 else
9688 lt_cv_archive_cmds_need_lc=yes
9689 fi
9690 allow_undefined_flag=$lt_save_allow_undefined_flag
9691 else
9692 cat conftest.err 1>&5
9693 fi
9694 $RM conftest*
9695
9696fi
81ecdfbb
RW
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9698$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9699 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9700 ;;
9701 esac
d7040cdb 9702 fi
d7040cdb 9703 ;;
ce2cded5 9704esac
d7040cdb 9705
d7040cdb 9706
d7040cdb 9707
d7040cdb 9708
d7040cdb 9709
d7040cdb 9710
d7040cdb 9711
d7040cdb
SE
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
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
d7040cdb 9799
d7040cdb 9800
d7040cdb
SE
9801
9802
9803
9804
9805
9806
d7040cdb 9807
d7040cdb 9808
d7040cdb 9809
d7040cdb 9810
d7040cdb 9811
d7040cdb 9812
d7040cdb 9813
d7040cdb 9814
d7040cdb 9815
d7040cdb 9816
d7040cdb 9817
d7040cdb 9818
d7040cdb 9819
d7040cdb 9820
d7040cdb 9821
d7040cdb 9822
d7040cdb 9823
d7040cdb 9824
d7040cdb 9825
d7040cdb 9826
d7040cdb 9827
d7040cdb 9828
d7040cdb 9829
ce2cded5
L
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
81ecdfbb
RW
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9863$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9864
9865if test "$GCC" = yes; then
ce2cded5
L
9866 case $host_os in
9867 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9868 *) lt_awk_arg="/^libraries:/" ;;
9869 esac
3725885a
RW
9870 case $host_os in
9871 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9872 *) lt_sed_strip_eq="s,=/,/,g" ;;
9873 esac
9874 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9875 case $lt_search_path_spec in
9876 *\;*)
ce2cded5
L
9877 # if the path contains ";" then we assume it to be the separator
9878 # otherwise default to the standard path separator (i.e. ":") - it is
9879 # assumed that no part of a normal pathname contains ";" but that should
9880 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9881 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9882 ;;
9883 *)
9884 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9885 ;;
9886 esac
ce2cded5
L
9887 # Ok, now we have the path, separated by spaces, we can step through it
9888 # and add multilib dir if necessary.
9889 lt_tmp_lt_search_path_spec=
9890 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9891 for lt_sys_path in $lt_search_path_spec; do
9892 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9893 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9894 else
9895 test -d "$lt_sys_path" && \
9896 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9897 fi
9898 done
3725885a 9899 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
9900BEGIN {RS=" "; FS="/|\n";} {
9901 lt_foo="";
9902 lt_count=0;
9903 for (lt_i = NF; lt_i > 0; lt_i--) {
9904 if ($lt_i != "" && $lt_i != ".") {
9905 if ($lt_i == "..") {
9906 lt_count++;
9907 } else {
9908 if (lt_count == 0) {
9909 lt_foo="/" $lt_i lt_foo;
9910 } else {
9911 lt_count--;
9912 }
9913 }
9914 }
9915 }
9916 if (lt_foo != "") { lt_freq[lt_foo]++; }
9917 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9918}'`
3725885a
RW
9919 # AWK program above erroneously prepends '/' to C:/dos/paths
9920 # for these hosts.
9921 case $host_os in
9922 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9923 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9924 esac
9925 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 9926else
ce2cded5
L
9927 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9928fi
9929library_names_spec=
9930libname_spec='lib$name'
9931soname_spec=
9932shrext_cmds=".so"
9933postinstall_cmds=
9934postuninstall_cmds=
9935finish_cmds=
9936finish_eval=
9937shlibpath_var=
9938shlibpath_overrides_runpath=unknown
9939version_type=none
9940dynamic_linker="$host_os ld.so"
9941sys_lib_dlsearch_path_spec="/lib /usr/lib"
9942need_lib_prefix=unknown
9943hardcode_into_libs=no
9944
9945# when you set need_version to no, make sure it does not cause -set_version
9946# flags to be left without arguments
9947need_version=unknown
9948
9949case $host_os in
9950aix3*)
9951 version_type=linux
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9953 shlibpath_var=LIBPATH
9954
9955 # AIX 3 has no versioning support, so we append a major version to the name.
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 ;;
9958
50e7d84b 9959aix[4-9]*)
ce2cded5
L
9960 version_type=linux
9961 need_lib_prefix=no
9962 need_version=no
9963 hardcode_into_libs=yes
9964 if test "$host_cpu" = ia64; then
9965 # AIX 5 supports IA64
9966 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 else
9969 # With GCC up to 2.95.x, collect2 would create an import file
9970 # for dependence libraries. The import file would start with
9971 # the line `#! .'. This would cause the generated library to
9972 # depend on `.', always an invalid library. This was fixed in
9973 # development snapshots of GCC prior to 3.0.
9974 case $host_os in
9975 aix4 | aix4.[01] | aix4.[01].*)
9976 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9977 echo ' yes '
9978 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9979 :
9980 else
9981 can_build_shared=no
9982 fi
9983 ;;
9984 esac
9985 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9986 # soname into executable. Probably we can add versioning support to
9987 # collect2, so additional links can be useful in future.
9988 if test "$aix_use_runtimelinking" = yes; then
9989 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9990 # instead of lib<name>.a to let people know that these are not
9991 # typical AIX shared libraries.
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 else
9994 # We preserve .a as extension for shared libraries through AIX4.2
9995 # and later when we are not doing run time linking.
9996 library_names_spec='${libname}${release}.a $libname.a'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 fi
9999 shlibpath_var=LIBPATH
10000 fi
10001 ;;
10002
10003amigaos*)
718a6fd8
SE
10004 case $host_cpu in
10005 powerpc)
10006 # Since July 2007 AmigaOS4 officially supports .so libraries.
10007 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 ;;
10010 m68k)
ce2cded5
L
10011 library_names_spec='$libname.ixlibrary $libname.a'
10012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10013 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
10014 ;;
10015 esac
ce2cded5
L
10016 ;;
10017
10018beos*)
10019 library_names_spec='${libname}${shared_ext}'
10020 dynamic_linker="$host_os ld.so"
10021 shlibpath_var=LIBRARY_PATH
10022 ;;
10023
10024bsdi[45]*)
10025 version_type=linux
10026 need_version=no
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028 soname_spec='${libname}${release}${shared_ext}$major'
10029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10030 shlibpath_var=LD_LIBRARY_PATH
10031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10033 # the default ld.so.conf also contains /usr/contrib/lib and
10034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10035 # libtool to hard-code these into programs
10036 ;;
10037
718a6fd8 10038cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10039 version_type=windows
10040 shrext_cmds=".dll"
10041 need_version=no
10042 need_lib_prefix=no
10043
f2c621e4
AS
10044 case $GCC,$host_os in
10045 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10046 library_names_spec='$libname.dll.a'
10047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10048 postinstall_cmds='base_file=`basename \${file}`~
10049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10050 dldir=$destdir/`dirname \$dlpath`~
10051 test -d \$dldir || mkdir -p \$dldir~
10052 $install_prog $dir/$dlname \$dldir/$dlname~
10053 chmod a+x \$dldir/$dlname~
10054 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10055 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10056 fi'
10057 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10058 dlpath=$dir/\$dldll~
10059 $RM \$dlpath'
10060 shlibpath_overrides_runpath=yes
10061
10062 case $host_os in
10063 cygwin*)
10064 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10065 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10066
10067 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10068 ;;
718a6fd8 10069 mingw* | cegcc*)
ce2cded5
L
10070 # MinGW DLLs use traditional 'lib' prefix
10071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10072 ;;
10073 pw32*)
10074 # pw32 DLLs use 'pw' prefix rather than 'lib'
10075 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10076 ;;
10077 esac
10078 ;;
10079
10080 *)
10081 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10082 ;;
10083 esac
f2c621e4 10084 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10085 # FIXME: first we should search . and the directory the executable is in
10086 shlibpath_var=PATH
10087 ;;
10088
10089darwin* | rhapsody*)
10090 dynamic_linker="$host_os dyld"
10091 version_type=darwin
10092 need_lib_prefix=no
10093 need_version=no
10094 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10095 soname_spec='${libname}${release}${major}$shared_ext'
10096 shlibpath_overrides_runpath=yes
10097 shlibpath_var=DYLD_LIBRARY_PATH
10098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10099
10100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10102 ;;
10103
10104dgux*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10109 soname_spec='${libname}${release}${shared_ext}$major'
10110 shlibpath_var=LD_LIBRARY_PATH
10111 ;;
10112
ce2cded5
L
10113freebsd* | dragonfly*)
10114 # DragonFly does not have aout. When/if they implement a new
10115 # versioning mechanism, adjust this.
10116 if test -x /usr/bin/objformat; then
10117 objformat=`/usr/bin/objformat`
10118 else
10119 case $host_os in
6d2920c8 10120 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10121 *) objformat=elf ;;
10122 esac
10123 fi
10124 version_type=freebsd-$objformat
10125 case $version_type in
10126 freebsd-elf*)
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10128 need_version=no
10129 need_lib_prefix=no
10130 ;;
10131 freebsd-*)
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10133 need_version=yes
10134 ;;
10135 esac
10136 shlibpath_var=LD_LIBRARY_PATH
10137 case $host_os in
6d2920c8 10138 freebsd2.*)
ce2cded5
L
10139 shlibpath_overrides_runpath=yes
10140 ;;
10141 freebsd3.[01]* | freebsdelf3.[01]*)
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 ;;
10145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10147 shlibpath_overrides_runpath=no
10148 hardcode_into_libs=yes
10149 ;;
10150 *) # from 4.6 on, and DragonFly
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10153 ;;
10154 esac
10155 ;;
10156
10157gnu*)
10158 version_type=linux
10159 need_lib_prefix=no
10160 need_version=no
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 hardcode_into_libs=yes
10165 ;;
10166
3725885a
RW
10167haiku*)
10168 version_type=linux
10169 need_lib_prefix=no
10170 need_version=no
10171 dynamic_linker="$host_os runtime_loader"
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 shlibpath_var=LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
f2c621e4 10176 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10177 hardcode_into_libs=yes
10178 ;;
10179
ce2cded5
L
10180hpux9* | hpux10* | hpux11*)
10181 # Give a soname corresponding to the major version so that dld.sl refuses to
10182 # link against other versions.
10183 version_type=sunos
10184 need_lib_prefix=no
10185 need_version=no
10186 case $host_cpu in
10187 ia64*)
10188 shrext_cmds='.so'
10189 hardcode_into_libs=yes
10190 dynamic_linker="$host_os dld.so"
10191 shlibpath_var=LD_LIBRARY_PATH
10192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 if test "X$HPUX_IA64_MODE" = X32; then
10196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10197 else
10198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10199 fi
10200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10201 ;;
10202 hppa*64*)
10203 shrext_cmds='.sl'
10204 hardcode_into_libs=yes
10205 dynamic_linker="$host_os dld.sl"
10206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10212 ;;
10213 *)
10214 shrext_cmds='.sl'
10215 dynamic_linker="$host_os dld.sl"
10216 shlibpath_var=SHLIB_PATH
10217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 ;;
10221 esac
3725885a 10222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10223 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10224 # or fails outright, so override atomically:
10225 install_override_mode=555
ce2cded5
L
10226 ;;
10227
10228interix[3-9]*)
10229 version_type=linux
10230 need_lib_prefix=no
10231 need_version=no
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=no
10237 hardcode_into_libs=yes
10238 ;;
10239
10240irix5* | irix6* | nonstopux*)
10241 case $host_os in
10242 nonstopux*) version_type=nonstopux ;;
10243 *)
10244 if test "$lt_cv_prog_gnu_ld" = yes; then
10245 version_type=linux
10246 else
10247 version_type=irix
10248 fi ;;
10249 esac
10250 need_lib_prefix=no
10251 need_version=no
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10254 case $host_os in
10255 irix5* | nonstopux*)
10256 libsuff= shlibsuff=
10257 ;;
10258 *)
10259 case $LD in # libtool.m4 will add one of these switches to LD
10260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10261 libsuff= shlibsuff= libmagic=32-bit;;
10262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10263 libsuff=32 shlibsuff=N32 libmagic=N32;;
10264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10265 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10266 *) libsuff= shlibsuff= libmagic=never-match;;
10267 esac
10268 ;;
10269 esac
10270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10271 shlibpath_overrides_runpath=no
10272 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10273 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10274 hardcode_into_libs=yes
10275 ;;
d7040cdb 10276
ce2cded5
L
10277# No shared lib support for Linux oldld, aout, or coff.
10278linux*oldld* | linux*aout* | linux*coff*)
10279 dynamic_linker=no
10280 ;;
10281
10282# This must be Linux ELF.
58e24671 10283linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10284 version_type=linux
10285 need_lib_prefix=no
10286 need_version=no
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=no
39144654 10292
ce2cded5 10293 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10294 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
39144654
RW
10296else
10297 lt_cv_shlibpath_overrides_runpath=no
10298 save_LDFLAGS=$LDFLAGS
10299 save_libdir=$libdir
10300 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10301 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10303/* end confdefs.h. */
10304
d7040cdb
SE
10305int
10306main ()
10307{
ce2cded5 10308
d7040cdb
SE
10309 ;
10310 return 0;
10311}
10312_ACEOF
81ecdfbb
RW
10313if ac_fn_c_try_link "$LINENO"; then :
10314 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10315 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10316fi
ce2cded5 10317fi
81ecdfbb
RW
10318rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10320 LDFLAGS=$save_LDFLAGS
10321 libdir=$save_libdir
10322
10323fi
10324
10325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10326
10327 # This implies no fast_install, which is unacceptable.
10328 # Some rework will be needed to allow for fast_install
10329 # before this can be enabled.
10330 hardcode_into_libs=yes
10331
10332 # Append ld.so.conf contents to the search path
10333 if test -f /etc/ld.so.conf; then
3725885a 10334 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 10335 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10336 fi
10337
10338 # We used to test for /lib/ld.so.1 and disable shared libraries on
10339 # powerpc, because MkLinux only supported shared libraries with the
10340 # GNU dynamic linker. Since this was broken with cross compilers,
10341 # most powerpc-linux boxes support dynamic linking these days and
10342 # people can always --disable-shared, the test was removed, and we
10343 # assume the GNU/Linux dynamic linker is in use.
10344 dynamic_linker='GNU/Linux ld.so'
10345 ;;
10346
10347netbsd*)
10348 version_type=sunos
10349 need_lib_prefix=no
10350 need_version=no
10351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10354 dynamic_linker='NetBSD (a.out) ld.so'
10355 else
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 dynamic_linker='NetBSD ld.elf_so'
10359 fi
10360 shlibpath_var=LD_LIBRARY_PATH
10361 shlibpath_overrides_runpath=yes
10362 hardcode_into_libs=yes
10363 ;;
10364
10365newsos6)
10366 version_type=linux
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10370 ;;
10371
10372*nto* | *qnx*)
10373 version_type=qnx
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=no
10380 hardcode_into_libs=yes
10381 dynamic_linker='ldqnx.so'
10382 ;;
10383
10384openbsd*)
10385 version_type=sunos
10386 sys_lib_dlsearch_path_spec="/usr/lib"
10387 need_lib_prefix=no
10388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10389 case $host_os in
10390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10391 *) need_version=no ;;
10392 esac
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395 shlibpath_var=LD_LIBRARY_PATH
10396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10397 case $host_os in
10398 openbsd2.[89] | openbsd2.[89].*)
10399 shlibpath_overrides_runpath=no
10400 ;;
10401 *)
10402 shlibpath_overrides_runpath=yes
10403 ;;
10404 esac
10405 else
10406 shlibpath_overrides_runpath=yes
10407 fi
10408 ;;
10409
10410os2*)
10411 libname_spec='$name'
10412 shrext_cmds=".dll"
10413 need_lib_prefix=no
10414 library_names_spec='$libname${shared_ext} $libname.a'
10415 dynamic_linker='OS/2 ld.exe'
10416 shlibpath_var=LIBPATH
10417 ;;
10418
10419osf3* | osf4* | osf5*)
10420 version_type=osf
10421 need_lib_prefix=no
10422 need_version=no
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10428 ;;
10429
10430rdos*)
10431 dynamic_linker=no
10432 ;;
10433
10434solaris*)
10435 version_type=linux
10436 need_lib_prefix=no
10437 need_version=no
10438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 soname_spec='${libname}${release}${shared_ext}$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 shlibpath_overrides_runpath=yes
10442 hardcode_into_libs=yes
10443 # ldd complains unless libraries are executable
10444 postinstall_cmds='chmod +x $lib'
10445 ;;
10446
10447sunos4*)
10448 version_type=sunos
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 shlibpath_overrides_runpath=yes
10453 if test "$with_gnu_ld" = yes; then
10454 need_lib_prefix=no
10455 fi
10456 need_version=yes
10457 ;;
10458
10459sysv4 | sysv4.3*)
10460 version_type=linux
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 case $host_vendor in
10465 sni)
10466 shlibpath_overrides_runpath=no
10467 need_lib_prefix=no
10468 runpath_var=LD_RUN_PATH
10469 ;;
10470 siemens)
10471 need_lib_prefix=no
10472 ;;
10473 motorola)
10474 need_lib_prefix=no
10475 need_version=no
10476 shlibpath_overrides_runpath=no
10477 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10478 ;;
10479 esac
10480 ;;
10481
10482sysv4*MP*)
10483 if test -d /usr/nec ;then
10484 version_type=linux
10485 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10486 soname_spec='$libname${shared_ext}.$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10488 fi
10489 ;;
10490
10491sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10492 version_type=freebsd-elf
10493 need_lib_prefix=no
10494 need_version=no
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10500 if test "$with_gnu_ld" = yes; then
10501 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10502 else
10503 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10504 case $host_os in
10505 sco3.2v5*)
10506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10507 ;;
10508 esac
10509 fi
10510 sys_lib_dlsearch_path_spec='/usr/lib'
10511 ;;
10512
10513tpf*)
10514 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10515 version_type=linux
10516 need_lib_prefix=no
10517 need_version=no
718a6fd8 10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10519 shlibpath_var=LD_LIBRARY_PATH
10520 shlibpath_overrides_runpath=no
10521 hardcode_into_libs=yes
10522 ;;
d7040cdb 10523
ce2cded5
L
10524uts4*)
10525 version_type=linux
10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527 soname_spec='${libname}${release}${shared_ext}$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 ;;
d7040cdb 10530
ce2cded5
L
10531*)
10532 dynamic_linker=no
10533 ;;
10534esac
81ecdfbb
RW
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10536$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10537test "$dynamic_linker" = no && can_build_shared=no
10538
10539variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10540if test "$GCC" = yes; then
10541 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10542fi
d7040cdb 10543
718a6fd8
SE
10544if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10545 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10546fi
10547if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10548 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10549fi
10550
d7040cdb 10551
d7040cdb
SE
10552
10553
d7040cdb
SE
10554
10555
d7040cdb
SE
10556
10557
d7040cdb
SE
10558
10559
d7040cdb
SE
10560
10561
d7040cdb 10562
d7040cdb 10563
d7040cdb 10564
d7040cdb 10565
d7040cdb 10566
d7040cdb 10567
d7040cdb 10568
d7040cdb 10569
d7040cdb 10570
d7040cdb 10571
d7040cdb 10572
d7040cdb 10573
d7040cdb 10574
d7040cdb 10575
d7040cdb
SE
10576
10577
d7040cdb 10578
d7040cdb 10579
d7040cdb 10580
d7040cdb 10581
d7040cdb 10582
d7040cdb 10583
d7040cdb 10584
d7040cdb 10585
d7040cdb 10586
d7040cdb
SE
10587
10588
d7040cdb 10589
d7040cdb 10590
d7040cdb 10591
d7040cdb
SE
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
d7040cdb
SE
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
d7040cdb 10621
d7040cdb 10622
d7040cdb 10623
d7040cdb 10624
d7040cdb
SE
10625
10626
10627
10628
ce2cded5
L
10629
10630
3725885a
RW
10631
10632
10633
10634
10635
ce2cded5
L
10636
10637
10638
10639
10640
10641
81ecdfbb
RW
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10643$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10644hardcode_action=
10645if test -n "$hardcode_libdir_flag_spec" ||
10646 test -n "$runpath_var" ||
10647 test "X$hardcode_automatic" = "Xyes" ; then
10648
10649 # We can hardcode non-existent directories.
10650 if test "$hardcode_direct" != no &&
10651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10652 # have to relink, otherwise we might link with an installed library
10653 # when we should be linking with a yet-to-be-installed one
10654 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10655 test "$hardcode_minus_L" != no; then
10656 # Linking always hardcodes the temporary library directory.
10657 hardcode_action=relink
10658 else
10659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10660 hardcode_action=immediate
10661 fi
10662else
10663 # We cannot hardcode anything, or else we can only hardcode existing
10664 # directories.
10665 hardcode_action=unsupported
10666fi
81ecdfbb
RW
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10668$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10669
10670if test "$hardcode_action" = relink ||
10671 test "$inherit_rpath" = yes; then
10672 # Fast installation is not supported
10673 enable_fast_install=no
10674elif test "$shlibpath_overrides_runpath" = yes ||
10675 test "$enable_shared" = no; then
10676 # Fast installation is not necessary
10677 enable_fast_install=needless
d7040cdb 10678fi
d7040cdb 10679
d7040cdb
SE
10680
10681
10682
10683
10684
ce2cded5
L
10685 if test "x$enable_dlopen" != xyes; then
10686 enable_dlopen=unknown
10687 enable_dlopen_self=unknown
10688 enable_dlopen_self_static=unknown
10689else
10690 lt_cv_dlopen=no
10691 lt_cv_dlopen_libs=
10692
10693 case $host_os in
10694 beos*)
10695 lt_cv_dlopen="load_add_on"
10696 lt_cv_dlopen_libs=
10697 lt_cv_dlopen_self=yes
10698 ;;
d7040cdb 10699
718a6fd8 10700 mingw* | pw32* | cegcc*)
ce2cded5
L
10701 lt_cv_dlopen="LoadLibrary"
10702 lt_cv_dlopen_libs=
10703 ;;
d7040cdb 10704
ce2cded5
L
10705 cygwin*)
10706 lt_cv_dlopen="dlopen"
10707 lt_cv_dlopen_libs=
10708 ;;
d7040cdb 10709
ce2cded5
L
10710 darwin*)
10711 # if libdl is installed we need to link against it
81ecdfbb
RW
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10713$as_echo_n "checking for dlopen in -ldl... " >&6; }
10714if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
ce2cded5
L
10716else
10717 ac_check_lib_save_LIBS=$LIBS
10718LIBS="-ldl $LIBS"
81ecdfbb 10719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10720/* end confdefs.h. */
d7040cdb 10721
81ecdfbb
RW
10722/* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
ce2cded5
L
10725#ifdef __cplusplus
10726extern "C"
10727#endif
ce2cded5
L
10728char dlopen ();
10729int
10730main ()
10731{
81ecdfbb 10732return dlopen ();
ce2cded5
L
10733 ;
10734 return 0;
10735}
10736_ACEOF
81ecdfbb 10737if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10738 ac_cv_lib_dl_dlopen=yes
10739else
81ecdfbb 10740 ac_cv_lib_dl_dlopen=no
ce2cded5 10741fi
81ecdfbb
RW
10742rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10744LIBS=$ac_check_lib_save_LIBS
10745fi
81ecdfbb
RW
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10747$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10748if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10750else
d7040cdb 10751
ce2cded5
L
10752 lt_cv_dlopen="dyld"
10753 lt_cv_dlopen_libs=
10754 lt_cv_dlopen_self=yes
d7040cdb 10755
ce2cded5 10756fi
d7040cdb 10757
ce2cded5 10758 ;;
d7040cdb 10759
ce2cded5 10760 *)
81ecdfbb
RW
10761 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10762if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10763 lt_cv_dlopen="shl_load"
10764else
81ecdfbb
RW
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10766$as_echo_n "checking for shl_load in -ldld... " >&6; }
10767if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
ce2cded5
L
10769else
10770 ac_check_lib_save_LIBS=$LIBS
10771LIBS="-ldld $LIBS"
81ecdfbb 10772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10773/* end confdefs.h. */
d7040cdb 10774
81ecdfbb
RW
10775/* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
ce2cded5
L
10778#ifdef __cplusplus
10779extern "C"
10780#endif
ce2cded5
L
10781char shl_load ();
10782int
10783main ()
10784{
81ecdfbb 10785return shl_load ();
ce2cded5
L
10786 ;
10787 return 0;
10788}
d7040cdb 10789_ACEOF
81ecdfbb 10790if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10791 ac_cv_lib_dld_shl_load=yes
10792else
81ecdfbb 10793 ac_cv_lib_dld_shl_load=no
d7040cdb 10794fi
81ecdfbb
RW
10795rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10797LIBS=$ac_check_lib_save_LIBS
10798fi
81ecdfbb
RW
10799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10800$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10801if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10802 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 10803else
81ecdfbb
RW
10804 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10805if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
10806 lt_cv_dlopen="dlopen"
10807else
81ecdfbb
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10809$as_echo_n "checking for dlopen in -ldl... " >&6; }
10810if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
d7040cdb 10812else
ce2cded5
L
10813 ac_check_lib_save_LIBS=$LIBS
10814LIBS="-ldl $LIBS"
81ecdfbb 10815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10816/* end confdefs.h. */
d7040cdb 10817
81ecdfbb
RW
10818/* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
ce2cded5
L
10821#ifdef __cplusplus
10822extern "C"
10823#endif
ce2cded5 10824char dlopen ();
d7040cdb
SE
10825int
10826main ()
10827{
81ecdfbb 10828return dlopen ();
d7040cdb
SE
10829 ;
10830 return 0;
10831}
10832_ACEOF
81ecdfbb 10833if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10834 ac_cv_lib_dl_dlopen=yes
10835else
81ecdfbb 10836 ac_cv_lib_dl_dlopen=no
ce2cded5 10837fi
81ecdfbb
RW
10838rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10840LIBS=$ac_check_lib_save_LIBS
10841fi
81ecdfbb
RW
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10843$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10844if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10846else
81ecdfbb
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10848$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10849if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10850 $as_echo_n "(cached) " >&6
ce2cded5
L
10851else
10852 ac_check_lib_save_LIBS=$LIBS
10853LIBS="-lsvld $LIBS"
81ecdfbb 10854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10855/* end confdefs.h. */
d7040cdb 10856
81ecdfbb
RW
10857/* Override any GCC internal prototype to avoid an error.
10858 Use char because int might match the return type of a GCC
10859 builtin and then its argument prototype would still apply. */
ce2cded5
L
10860#ifdef __cplusplus
10861extern "C"
10862#endif
ce2cded5 10863char dlopen ();
d7040cdb
SE
10864int
10865main ()
10866{
81ecdfbb 10867return dlopen ();
d7040cdb
SE
10868 ;
10869 return 0;
10870}
10871_ACEOF
81ecdfbb 10872if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 10873 ac_cv_lib_svld_dlopen=yes
d7040cdb 10874else
81ecdfbb 10875 ac_cv_lib_svld_dlopen=no
d7040cdb 10876fi
81ecdfbb
RW
10877rm -f core conftest.err conftest.$ac_objext \
10878 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10879LIBS=$ac_check_lib_save_LIBS
10880fi
81ecdfbb
RW
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10882$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10883if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
10884 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10885else
81ecdfbb
RW
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10887$as_echo_n "checking for dld_link in -ldld... " >&6; }
10888if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10889 $as_echo_n "(cached) " >&6
d7040cdb 10890else
ce2cded5
L
10891 ac_check_lib_save_LIBS=$LIBS
10892LIBS="-ldld $LIBS"
81ecdfbb 10893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10894/* end confdefs.h. */
ce2cded5 10895
81ecdfbb
RW
10896/* Override any GCC internal prototype to avoid an error.
10897 Use char because int might match the return type of a GCC
10898 builtin and then its argument prototype would still apply. */
ce2cded5
L
10899#ifdef __cplusplus
10900extern "C"
10901#endif
ce2cded5 10902char dld_link ();
d7040cdb
SE
10903int
10904main ()
10905{
81ecdfbb 10906return dld_link ();
d7040cdb
SE
10907 ;
10908 return 0;
10909}
10910_ACEOF
81ecdfbb 10911if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10912 ac_cv_lib_dld_dld_link=yes
10913else
81ecdfbb 10914 ac_cv_lib_dld_dld_link=no
d7040cdb 10915fi
81ecdfbb
RW
10916rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10918LIBS=$ac_check_lib_save_LIBS
10919fi
81ecdfbb
RW
10920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10921$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10922if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 10923 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
10924fi
10925
10926
10927fi
10928
10929
10930fi
10931
10932
10933fi
10934
10935
10936fi
10937
10938
10939fi
10940
10941 ;;
10942 esac
10943
10944 if test "x$lt_cv_dlopen" != xno; then
10945 enable_dlopen=yes
d7040cdb 10946 else
ce2cded5 10947 enable_dlopen=no
d7040cdb 10948 fi
ce2cded5
L
10949
10950 case $lt_cv_dlopen in
10951 dlopen)
10952 save_CPPFLAGS="$CPPFLAGS"
10953 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10954
10955 save_LDFLAGS="$LDFLAGS"
10956 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10957
10958 save_LIBS="$LIBS"
10959 LIBS="$lt_cv_dlopen_libs $LIBS"
10960
81ecdfbb
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10962$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10963if test "${lt_cv_dlopen_self+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
d7040cdb 10965else
ce2cded5
L
10966 if test "$cross_compiling" = yes; then :
10967 lt_cv_dlopen_self=cross
10968else
10969 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10970 lt_status=$lt_dlunknown
10971 cat > conftest.$ac_ext <<_LT_EOF
543b7933 10972#line 10972 "configure"
ce2cded5
L
10973#include "confdefs.h"
10974
10975#if HAVE_DLFCN_H
10976#include <dlfcn.h>
10977#endif
10978
10979#include <stdio.h>
10980
10981#ifdef RTLD_GLOBAL
10982# define LT_DLGLOBAL RTLD_GLOBAL
10983#else
10984# ifdef DL_GLOBAL
10985# define LT_DLGLOBAL DL_GLOBAL
10986# else
10987# define LT_DLGLOBAL 0
10988# endif
10989#endif
10990
10991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10992 find out it does not work in some platform. */
10993#ifndef LT_DLLAZY_OR_NOW
10994# ifdef RTLD_LAZY
10995# define LT_DLLAZY_OR_NOW RTLD_LAZY
10996# else
10997# ifdef DL_LAZY
10998# define LT_DLLAZY_OR_NOW DL_LAZY
10999# else
11000# ifdef RTLD_NOW
11001# define LT_DLLAZY_OR_NOW RTLD_NOW
11002# else
11003# ifdef DL_NOW
11004# define LT_DLLAZY_OR_NOW DL_NOW
11005# else
11006# define LT_DLLAZY_OR_NOW 0
11007# endif
11008# endif
11009# endif
11010# endif
11011#endif
11012
3725885a
RW
11013/* When -fvisbility=hidden is used, assume the code has been annotated
11014 correspondingly for the symbols needed. */
11015#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11016void fnord () __attribute__((visibility("default")));
3725885a
RW
11017#endif
11018
f2c621e4 11019void fnord () { int i=42; }
ce2cded5
L
11020int main ()
11021{
11022 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11023 int status = $lt_dlunknown;
11024
11025 if (self)
11026 {
11027 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11028 else
11029 {
11030 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11031 else puts (dlerror ());
11032 }
ce2cded5
L
11033 /* dlclose (self); */
11034 }
11035 else
11036 puts (dlerror ());
11037
718a6fd8 11038 return status;
ce2cded5
L
11039}
11040_LT_EOF
81ecdfbb 11041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11042 (eval $ac_link) 2>&5
11043 ac_status=$?
81ecdfbb
RW
11044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11045 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11046 (./conftest; exit; ) >&5 2>/dev/null
11047 lt_status=$?
11048 case x$lt_status in
11049 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11050 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11051 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11052 esac
11053 else :
11054 # compilation failed
11055 lt_cv_dlopen_self=no
11056 fi
11057fi
11058rm -fr conftest*
11059
d7040cdb
SE
11060
11061fi
81ecdfbb
RW
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11063$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11064
11065 if test "x$lt_cv_dlopen_self" = xyes; then
11066 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11068$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11069if test "${lt_cv_dlopen_self_static+set}" = set; then :
11070 $as_echo_n "(cached) " >&6
d7040cdb 11071else
ce2cded5
L
11072 if test "$cross_compiling" = yes; then :
11073 lt_cv_dlopen_self_static=cross
11074else
11075 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11076 lt_status=$lt_dlunknown
11077 cat > conftest.$ac_ext <<_LT_EOF
543b7933 11078#line 11078 "configure"
ce2cded5
L
11079#include "confdefs.h"
11080
11081#if HAVE_DLFCN_H
11082#include <dlfcn.h>
11083#endif
11084
11085#include <stdio.h>
11086
11087#ifdef RTLD_GLOBAL
11088# define LT_DLGLOBAL RTLD_GLOBAL
11089#else
11090# ifdef DL_GLOBAL
11091# define LT_DLGLOBAL DL_GLOBAL
11092# else
11093# define LT_DLGLOBAL 0
11094# endif
11095#endif
11096
11097/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11098 find out it does not work in some platform. */
11099#ifndef LT_DLLAZY_OR_NOW
11100# ifdef RTLD_LAZY
11101# define LT_DLLAZY_OR_NOW RTLD_LAZY
11102# else
11103# ifdef DL_LAZY
11104# define LT_DLLAZY_OR_NOW DL_LAZY
11105# else
11106# ifdef RTLD_NOW
11107# define LT_DLLAZY_OR_NOW RTLD_NOW
11108# else
11109# ifdef DL_NOW
11110# define LT_DLLAZY_OR_NOW DL_NOW
11111# else
11112# define LT_DLLAZY_OR_NOW 0
11113# endif
11114# endif
11115# endif
11116# endif
11117#endif
11118
3725885a
RW
11119/* When -fvisbility=hidden is used, assume the code has been annotated
11120 correspondingly for the symbols needed. */
11121#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11122void fnord () __attribute__((visibility("default")));
3725885a
RW
11123#endif
11124
f2c621e4 11125void fnord () { int i=42; }
ce2cded5 11126int main ()
d7040cdb 11127{
ce2cded5
L
11128 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11129 int status = $lt_dlunknown;
11130
11131 if (self)
11132 {
11133 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11134 else
11135 {
11136 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11137 else puts (dlerror ());
11138 }
ce2cded5
L
11139 /* dlclose (self); */
11140 }
11141 else
11142 puts (dlerror ());
11143
718a6fd8 11144 return status;
d7040cdb 11145}
ce2cded5 11146_LT_EOF
81ecdfbb 11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11148 (eval $ac_link) 2>&5
11149 ac_status=$?
81ecdfbb
RW
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11152 (./conftest; exit; ) >&5 2>/dev/null
11153 lt_status=$?
11154 case x$lt_status in
11155 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11156 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11157 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11158 esac
11159 else :
11160 # compilation failed
11161 lt_cv_dlopen_self_static=no
11162 fi
d7040cdb 11163fi
ce2cded5
L
11164rm -fr conftest*
11165
11166
d7040cdb 11167fi
81ecdfbb
RW
11168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11169$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11170 fi
11171
11172 CPPFLAGS="$save_CPPFLAGS"
11173 LDFLAGS="$save_LDFLAGS"
11174 LIBS="$save_LIBS"
11175 ;;
11176 esac
11177
11178 case $lt_cv_dlopen_self in
11179 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11180 *) enable_dlopen_self=unknown ;;
11181 esac
11182
11183 case $lt_cv_dlopen_self_static in
11184 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11185 *) enable_dlopen_self_static=unknown ;;
11186 esac
d7040cdb 11187fi
d7040cdb 11188
d7040cdb
SE
11189
11190
d7040cdb 11191
d7040cdb 11192
ce2cded5
L
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205striplib=
11206old_striplib=
81ecdfbb
RW
11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11208$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11209if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213$as_echo "yes" >&6; }
ce2cded5
L
11214else
11215# FIXME - insert some real tests, host_os isn't really good enough
11216 case $host_os in
11217 darwin*)
11218 if test -n "$STRIP" ; then
11219 striplib="$STRIP -x"
11220 old_striplib="$STRIP -S"
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222$as_echo "yes" >&6; }
ce2cded5 11223 else
81ecdfbb
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
d7040cdb 11226 fi
ce2cded5
L
11227 ;;
11228 *)
81ecdfbb
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
ce2cded5 11231 ;;
d7040cdb 11232 esac
d7040cdb
SE
11233fi
11234
d7040cdb 11235
d7040cdb 11236
d7040cdb 11237
d7040cdb 11238
d7040cdb 11239
d7040cdb 11240
d7040cdb 11241
d7040cdb 11242
d7040cdb 11243
d7040cdb 11244
d7040cdb 11245
ce2cded5 11246 # Report which library types will actually be built
81ecdfbb
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11248$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11250$as_echo "$can_build_shared" >&6; }
d7040cdb 11251
81ecdfbb
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11253$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11254 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11255
ce2cded5
L
11256 # On AIX, shared libraries and static libraries use the same namespace, and
11257 # are all built from PIC.
11258 case $host_os in
11259 aix3*)
11260 test "$enable_shared" = yes && enable_static=no
11261 if test -n "$RANLIB"; then
11262 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11263 postinstall_cmds='$RANLIB $lib'
11264 fi
11265 ;;
d7040cdb 11266
50e7d84b 11267 aix[4-9]*)
ce2cded5
L
11268 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11269 test "$enable_shared" = yes && enable_static=no
11270 fi
11271 ;;
11272 esac
81ecdfbb
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11274$as_echo "$enable_shared" >&6; }
ce2cded5 11275
81ecdfbb
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11277$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11278 # Make sure either enable_shared or enable_static is yes.
11279 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11281$as_echo "$enable_static" >&6; }
d7040cdb 11282
d7040cdb 11283
d7040cdb 11284
d7040cdb 11285
ce2cded5
L
11286fi
11287ac_ext=c
11288ac_cpp='$CPP $CPPFLAGS'
11289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11291ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11292
ce2cded5 11293CC="$lt_save_CC"
d7040cdb 11294
d7040cdb 11295
d7040cdb 11296
d7040cdb 11297
d7040cdb 11298
d7040cdb 11299
d7040cdb 11300
d7040cdb 11301
d7040cdb 11302
d7040cdb
SE
11303
11304
d7040cdb
SE
11305
11306
81ecdfbb 11307 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11308
11309
d7040cdb 11310
d7040cdb 11311
ce2cded5 11312# Only expand once:
d7040cdb 11313
d7040cdb 11314
d7040cdb 11315
b879806f
AM
11316# The tests for host and target for $enable_largefile require
11317# canonical names.
11318
11319
11320
11321# As the $enable_largefile decision depends on --enable-plugins we must set it
11322# even in directories otherwise not depending on the $plugins option.
11323
11324
11325 maybe_plugins=no
11326 for ac_header in dlfcn.h
11327do :
11328 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11329"
11330if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11331 cat >>confdefs.h <<_ACEOF
11332#define HAVE_DLFCN_H 1
11333_ACEOF
11334 maybe_plugins=yes
11335fi
11336
11337done
11338
11339 for ac_header in windows.h
11340do :
11341 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11342"
11343if test "x$ac_cv_header_windows_h" = x""yes; then :
11344 cat >>confdefs.h <<_ACEOF
11345#define HAVE_WINDOWS_H 1
11346_ACEOF
11347 maybe_plugins=yes
11348fi
11349
11350done
11351
11352
11353 # Check whether --enable-plugins was given.
11354if test "${enable_plugins+set}" = set; then :
11355 enableval=$enable_plugins; case "${enableval}" in
11356 no) plugins=no ;;
11357 *) plugins=yes
11358 if test "$maybe_plugins" != "yes" ; then
11359 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11360 fi ;;
11361 esac
11362else
11363 plugins=$maybe_plugins
11364
11365fi
11366
2974be62
AM
11367 if test "$plugins" = "yes"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11369$as_echo_n "checking for library containing dlopen... " >&6; }
11370if test "${ac_cv_search_dlopen+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11372else
11373 ac_func_search_save_LIBS=$LIBS
11374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375/* end confdefs.h. */
11376
11377/* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380#ifdef __cplusplus
11381extern "C"
11382#endif
11383char dlopen ();
11384int
11385main ()
11386{
11387return dlopen ();
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392for ac_lib in '' dl; do
11393 if test -z "$ac_lib"; then
11394 ac_res="none required"
11395 else
11396 ac_res=-l$ac_lib
11397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11398 fi
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 ac_cv_search_dlopen=$ac_res
11401fi
11402rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext
11404 if test "${ac_cv_search_dlopen+set}" = set; then :
11405 break
11406fi
11407done
11408if test "${ac_cv_search_dlopen+set}" = set; then :
11409
11410else
11411 ac_cv_search_dlopen=no
11412fi
11413rm conftest.$ac_ext
11414LIBS=$ac_func_search_save_LIBS
11415fi
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11417$as_echo "$ac_cv_search_dlopen" >&6; }
11418ac_res=$ac_cv_search_dlopen
11419if test "$ac_res" != no; then :
11420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11421
11422fi
11423
11424 fi
b879806f
AM
11425
11426
11427case "${host}" in
11428 sparc-*-solaris*|i[3-7]86-*-solaris*)
11429 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11430 # are mutually exclusive; and without procfs support, the bfd/ elf module
11431 # cannot provide certain routines such as elfcore_write_prpsinfo
11432 # or elfcore_write_prstatus. So unless the user explicitly requested
11433 # large-file support through the --enable-largefile switch, disable
11434 # large-file support in favor of procfs support.
11435 test "${target}" = "${host}" -a "x$plugins" = xno \
11436 && : ${enable_largefile="no"}
11437 ;;
11438esac
11439
11440# Check whether --enable-largefile was given.
11441if test "${enable_largefile+set}" = set; then :
11442 enableval=$enable_largefile;
11443fi
11444
11445if test "$enable_largefile" != no; then
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11448$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11449if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451else
11452 ac_cv_sys_largefile_CC=no
11453 if test "$GCC" != yes; then
11454 ac_save_CC=$CC
11455 while :; do
11456 # IRIX 6.2 and later do not support large files by default,
11457 # so use the C compiler's -n32 option if that helps.
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459/* end confdefs.h. */
11460#include <sys/types.h>
11461 /* Check that off_t can represent 2**63 - 1 correctly.
11462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11463 since some C++ compilers masquerading as C compilers
11464 incorrectly reject 9223372036854775807. */
11465#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11467 && LARGE_OFF_T % 2147483647 == 1)
11468 ? 1 : -1];
11469int
11470main ()
11471{
11472
11473 ;
11474 return 0;
11475}
11476_ACEOF
11477 if ac_fn_c_try_compile "$LINENO"; then :
11478 break
11479fi
11480rm -f core conftest.err conftest.$ac_objext
11481 CC="$CC -n32"
11482 if ac_fn_c_try_compile "$LINENO"; then :
11483 ac_cv_sys_largefile_CC=' -n32'; break
11484fi
11485rm -f core conftest.err conftest.$ac_objext
11486 break
11487 done
11488 CC=$ac_save_CC
11489 rm -f conftest.$ac_ext
11490 fi
11491fi
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11493$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11494 if test "$ac_cv_sys_largefile_CC" != no; then
11495 CC=$CC$ac_cv_sys_largefile_CC
11496 fi
11497
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11499$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11500if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11501 $as_echo_n "(cached) " >&6
11502else
11503 while :; do
11504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11505/* end confdefs.h. */
11506#include <sys/types.h>
11507 /* Check that off_t can represent 2**63 - 1 correctly.
11508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11509 since some C++ compilers masquerading as C compilers
11510 incorrectly reject 9223372036854775807. */
11511#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11513 && LARGE_OFF_T % 2147483647 == 1)
11514 ? 1 : -1];
11515int
11516main ()
11517{
11518
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523if ac_fn_c_try_compile "$LINENO"; then :
11524 ac_cv_sys_file_offset_bits=no; break
11525fi
11526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528/* end confdefs.h. */
11529#define _FILE_OFFSET_BITS 64
11530#include <sys/types.h>
11531 /* Check that off_t can represent 2**63 - 1 correctly.
11532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11533 since some C++ compilers masquerading as C compilers
11534 incorrectly reject 9223372036854775807. */
11535#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11537 && LARGE_OFF_T % 2147483647 == 1)
11538 ? 1 : -1];
11539int
11540main ()
11541{
11542
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547if ac_fn_c_try_compile "$LINENO"; then :
11548 ac_cv_sys_file_offset_bits=64; break
11549fi
11550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551 ac_cv_sys_file_offset_bits=unknown
11552 break
11553done
11554fi
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11556$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11557case $ac_cv_sys_file_offset_bits in #(
11558 no | unknown) ;;
11559 *)
11560cat >>confdefs.h <<_ACEOF
11561#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11562_ACEOF
11563;;
11564esac
11565rm -rf conftest*
11566 if test $ac_cv_sys_file_offset_bits = unknown; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11568$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11569if test "${ac_cv_sys_large_files+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571else
11572 while :; do
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574/* end confdefs.h. */
11575#include <sys/types.h>
11576 /* Check that off_t can represent 2**63 - 1 correctly.
11577 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11578 since some C++ compilers masquerading as C compilers
11579 incorrectly reject 9223372036854775807. */
11580#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11581 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11582 && LARGE_OFF_T % 2147483647 == 1)
11583 ? 1 : -1];
11584int
11585main ()
11586{
11587
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592if ac_fn_c_try_compile "$LINENO"; then :
11593 ac_cv_sys_large_files=no; break
11594fi
11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597/* end confdefs.h. */
11598#define _LARGE_FILES 1
11599#include <sys/types.h>
11600 /* Check that off_t can represent 2**63 - 1 correctly.
11601 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11602 since some C++ compilers masquerading as C compilers
11603 incorrectly reject 9223372036854775807. */
11604#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11605 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11606 && LARGE_OFF_T % 2147483647 == 1)
11607 ? 1 : -1];
11608int
11609main ()
11610{
11611
11612 ;
11613 return 0;
11614}
11615_ACEOF
11616if ac_fn_c_try_compile "$LINENO"; then :
11617 ac_cv_sys_large_files=1; break
11618fi
11619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 ac_cv_sys_large_files=unknown
11621 break
11622done
11623fi
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11625$as_echo "$ac_cv_sys_large_files" >&6; }
11626case $ac_cv_sys_large_files in #(
11627 no | unknown) ;;
11628 *)
11629cat >>confdefs.h <<_ACEOF
11630#define _LARGE_FILES $ac_cv_sys_large_files
11631_ACEOF
11632;;
11633esac
11634rm -rf conftest*
11635 fi
11636fi
11637
11638
11639
81ecdfbb
RW
11640# Check whether --enable-targets was given.
11641if test "${enable_targets+set}" = set; then :
11642 enableval=$enable_targets; case "${enableval}" in
11643 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11644 ;;
11645 no) enable_targets= ;;
11646 *) enable_targets=$enableval ;;
11647esac
81ecdfbb
RW
11648fi
11649
ce2cded5
L
11650ac_checking=yes
11651if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11652 ac_checking=
11653fi
81ecdfbb
RW
11654# Check whether --enable-checking was given.
11655if test "${enable_checking+set}" = set; then :
11656 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11657 no|none) ac_checking= ;;
11658 *) ac_checking=yes ;;
11659esac
81ecdfbb
RW
11660fi
11661if test x$ac_checking != x ; then
d7040cdb 11662
81ecdfbb 11663$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11664
ce2cded5 11665fi
d7040cdb 11666
ce2cded5 11667using_cgen=no
d7040cdb 11668
d7040cdb 11669
270c9937
JB
11670# Set the 'development' global.
11671. $srcdir/../bfd/development.sh
11672
397841b5
AM
11673GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675/* end confdefs.h. */
11676__GNUC__
11677_ACEOF
11678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11679 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11680
11681else
11682 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11683fi
11684rm -f conftest*
11685
d7040cdb 11686
81ecdfbb
RW
11687# Check whether --enable-werror was given.
11688if test "${enable_werror+set}" = set; then :
11689 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11690 yes | y) ERROR_ON_WARNING="yes" ;;
11691 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11692 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11693 esac
81ecdfbb
RW
11694fi
11695
d7040cdb 11696
397841b5 11697# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11698case "${host}" in
11699 *-*-mingw32*)
11700 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11701 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11702 fi
11703 ;;
11704 *) ;;
11705esac
11706
270c9937
JB
11707# Enable -Werror by default when using gcc. Turn it off for releases.
11708if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
11709 ERROR_ON_WARNING=yes
11710fi
11711
11712NO_WERROR=
11713if test "${ERROR_ON_WARNING}" = yes ; then
11714 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11715 NO_WERROR="-Wno-error"
11716fi
11717
11718if test "${GCC}" = yes ; then
11719 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11720fi
11721
81ecdfbb
RW
11722# Check whether --enable-build-warnings was given.
11723if test "${enable_build_warnings+set}" = set; then :
11724 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11725 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11726 no) if test "${GCC}" = yes ; then
11727 WARN_CFLAGS="-w"
11728 fi;;
11729 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11730 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11731 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11732 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11733 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11734esac
81ecdfbb
RW
11735fi
11736
d7040cdb 11737
ce2cded5
L
11738if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11739 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11740fi
d7040cdb 11741
d7040cdb 11742
d7040cdb 11743
d7040cdb 11744
d7040cdb 11745
ce2cded5 11746# Generate a header file
81ecdfbb 11747ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11748
d7040cdb 11749
df7b86aa
NC
11750# PR 14072
11751
11752
ce2cded5
L
11753# If we are on a DOS filesystem, we must use gdb.ini rather than
11754# .gdbinit.
11755case "${host}" in
11756 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11757 GDBINIT="gdb.ini"
81ecdfbb 11758 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11759
ce2cded5
L
11760 ;;
11761 *)
11762 GDBINIT=".gdbinit"
81ecdfbb 11763 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11764
ce2cded5
L
11765 ;;
11766esac
d7040cdb 11767
d7040cdb 11768
ce2cded5 11769#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11771$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11772if test "${ac_cv_c_bigendian+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11774else
11775 ac_cv_c_bigendian=unknown
11776 # See if we're dealing with a universal compiler.
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778/* end confdefs.h. */
11779#ifndef __APPLE_CC__
11780 not a universal capable compiler
11781 #endif
11782 typedef int dummy;
11783
11784_ACEOF
11785if ac_fn_c_try_compile "$LINENO"; then :
11786
11787 # Check for potential -arch flags. It is not universal unless
11788 # there are at least two -arch flags with different values.
11789 ac_arch=
11790 ac_prev=
11791 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11792 if test -n "$ac_prev"; then
11793 case $ac_word in
11794 i?86 | x86_64 | ppc | ppc64)
11795 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11796 ac_arch=$ac_word
11797 else
11798 ac_cv_c_bigendian=universal
11799 break
11800 fi
11801 ;;
11802 esac
11803 ac_prev=
11804 elif test "x$ac_word" = "x-arch"; then
11805 ac_prev=arch
11806 fi
11807 done
11808fi
11809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 if test $ac_cv_c_bigendian = unknown; then
11811 # See if sys/param.h defines the BYTE_ORDER macro.
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11813/* end confdefs.h. */
11814#include <sys/types.h>
81ecdfbb 11815 #include <sys/param.h>
d7040cdb 11816
ce2cded5
L
11817int
11818main ()
11819{
81ecdfbb
RW
11820#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11821 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11822 && LITTLE_ENDIAN)
11823 bogus endian macros
11824 #endif
d7040cdb 11825
ce2cded5
L
11826 ;
11827 return 0;
11828}
11829_ACEOF
81ecdfbb 11830if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11831 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11833/* end confdefs.h. */
11834#include <sys/types.h>
81ecdfbb 11835 #include <sys/param.h>
d7040cdb 11836
ce2cded5
L
11837int
11838main ()
11839{
11840#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11841 not big endian
11842 #endif
d7040cdb 11843
ce2cded5
L
11844 ;
11845 return 0;
11846}
11847_ACEOF
81ecdfbb 11848if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11849 ac_cv_c_bigendian=yes
11850else
81ecdfbb 11851 ac_cv_c_bigendian=no
ce2cded5 11852fi
81ecdfbb
RW
11853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854fi
11855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 fi
11857 if test $ac_cv_c_bigendian = unknown; then
11858 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h. */
11861#include <limits.h>
d7040cdb 11862
81ecdfbb
RW
11863int
11864main ()
11865{
11866#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11867 bogus endian macros
11868 #endif
11869
11870 ;
11871 return 0;
11872}
ce2cded5 11873_ACEOF
81ecdfbb
RW
11874if ac_fn_c_try_compile "$LINENO"; then :
11875 # It does; now see whether it defined to _BIG_ENDIAN or not.
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11877/* end confdefs.h. */
81ecdfbb
RW
11878#include <limits.h>
11879
ce2cded5
L
11880int
11881main ()
11882{
81ecdfbb
RW
11883#ifndef _BIG_ENDIAN
11884 not big endian
11885 #endif
11886
ce2cded5
L
11887 ;
11888 return 0;
11889}
11890_ACEOF
81ecdfbb 11891if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11892 ac_cv_c_bigendian=yes
81ecdfbb
RW
11893else
11894 ac_cv_c_bigendian=no
d7040cdb 11895fi
81ecdfbb 11896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11897fi
81ecdfbb
RW
11898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 if test $ac_cv_c_bigendian = unknown; then
11901 # Compile a test program.
11902 if test "$cross_compiling" = yes; then :
11903 # Try to guess by grepping values from an object file.
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905/* end confdefs.h. */
11906short int ascii_mm[] =
11907 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11908 short int ascii_ii[] =
11909 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11910 int use_ascii (int i) {
11911 return ascii_mm[i] + ascii_ii[i];
11912 }
11913 short int ebcdic_ii[] =
11914 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11915 short int ebcdic_mm[] =
11916 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11917 int use_ebcdic (int i) {
11918 return ebcdic_mm[i] + ebcdic_ii[i];
11919 }
11920 extern int foo;
d7040cdb 11921
81ecdfbb
RW
11922int
11923main ()
11924{
11925return use_ascii (foo) == use_ebcdic (foo);
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930if ac_fn_c_try_compile "$LINENO"; then :
11931 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11932 ac_cv_c_bigendian=yes
11933 fi
11934 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11935 if test "$ac_cv_c_bigendian" = unknown; then
11936 ac_cv_c_bigendian=no
11937 else
11938 # finding both strings is unlikely to happen, but who knows?
11939 ac_cv_c_bigendian=unknown
11940 fi
11941 fi
ce2cded5 11942fi
81ecdfbb 11943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11944else
81ecdfbb 11945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11946/* end confdefs.h. */
81ecdfbb 11947$ac_includes_default
ce2cded5
L
11948int
11949main ()
11950{
81ecdfbb
RW
11951
11952 /* Are we little or big endian? From Harbison&Steele. */
11953 union
11954 {
11955 long int l;
11956 char c[sizeof (long int)];
11957 } u;
11958 u.l = 1;
11959 return u.c[sizeof (long int) - 1] == 1;
11960
11961 ;
11962 return 0;
ce2cded5 11963}
d7040cdb 11964_ACEOF
81ecdfbb 11965if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
11966 ac_cv_c_bigendian=no
11967else
81ecdfbb 11968 ac_cv_c_bigendian=yes
d7040cdb 11969fi
81ecdfbb
RW
11970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11971 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 11972fi
81ecdfbb
RW
11973
11974 fi
ce2cded5 11975fi
81ecdfbb
RW
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11977$as_echo "$ac_cv_c_bigendian" >&6; }
11978 case $ac_cv_c_bigendian in #(
11979 yes)
11980 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11981;; #(
11982 no)
11983 ;; #(
11984 universal)
d7040cdb 11985
81ecdfbb
RW
11986$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11987
11988 ;; #(
11989 *)
11990 as_fn_error "unknown endianness
11991 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11992 esac
d7040cdb 11993
d7040cdb 11994
ce2cded5 11995te_file=generic
d7040cdb 11996
ce2cded5
L
11997# Makefile target for installing gas in $(tooldir)/bin.
11998install_tooldir=install-exec-tooldir
d7040cdb 11999
ce2cded5
L
12000canon_targets=""
12001all_targets=no
12002if test -n "$enable_targets" ; then
12003 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12004 if test $t = "all"; then
12005 all_targets=yes
12006 continue
12007 fi
12008 result=`$ac_config_sub $t 2>/dev/null`
12009 if test -n "$result" ; then
12010 canon_targets="$canon_targets $result"
12011# else
12012# # Permit "all", etc. We don't support it yet though.
12013# canon_targets="$canon_targets $t"
12014 fi
12015 done
12016 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12017_gas_uniq_newlist=""
12018for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12019 case $_gas_uniq_i in
12020 _gas_uniq_dummy) ;;
12021 *) case " $_gas_uniq_newlist " in
12022 *" $_gas_uniq_i "*) ;;
12023 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12024 esac ;;
12025 esac
12026done
ce2cded5 12027canon_targets=$_gas_uniq_newlist
d7040cdb 12028
ce2cded5
L
12029fi
12030
12031emulations=""
12032
12033for this_target in $target $canon_targets ; do
12034
12035 targ=${this_target}
12036 . ${srcdir}/configure.tgt
12037
12038 case ${target_cpu} in
12039 crisv32)
12040
12041cat >>confdefs.h <<_ACEOF
12042#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12043_ACEOF
ce2cded5
L
12044
12045 ;;
12046 esac
12047
12048 if test ${this_target} = $target ; then
12049 target_cpu_type=${cpu_type}
12050 elif test ${target_cpu_type} != ${cpu_type} ; then
12051 continue
12052 fi
12053
12054 generic_target=${cpu_type}-${target_vendor}-${target_os}
12055 case ${generic_target} in
12056 i386-*-sco3.2v5*)
12057 if test ${this_target} = $target; then
12058
81ecdfbb 12059$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
12060
12061 fi
12062 ;;
12063
12064 i386-*-msdosdjgpp* \
12065 | i386-*-go32* \
12066 | i386-go32-rtems*)
12067
81ecdfbb 12068$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12069
12070 ;;
12071
12072 i860-*-*)
81ecdfbb
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12074$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
12075 ;;
12076
7ba29e2a
NC
12077 microblaze*)
12078 ;;
12079
e5231592 12080 ppc-*-aix[5-9].*)
ce2cded5 12081
81ecdfbb 12082$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12083
ce2cded5
L
12084 ;;
12085 ppc-*-solaris*)
12086 if test ${this_target} = $target; then
12087
81ecdfbb 12088$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12089
12090 fi
12091 if test x${endian} = xbig; then
81ecdfbb 12092 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12093 fi
12094 ;;
12095
12096 sh*-*-symbianelf*)
12097
81ecdfbb 12098$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
12099
12100 ;;
d7040cdb 12101 esac
d7040cdb 12102
ce2cded5
L
12103 if test ${this_target} = $target ; then
12104 endian_def=
12105 if test x${endian} = xbig; then
12106 endian_def=1
12107 elif test x${endian} = xlittle; then
12108 endian_def=0
12109 fi
12110 if test x${endian_def} != x; then
12111
12112cat >>confdefs.h <<_ACEOF
12113#define TARGET_BYTES_BIG_ENDIAN $endian_def
12114_ACEOF
12115
12116 fi
12117 fi
12118
12119# Other random stuff.
12120
12121 case ${cpu_type} in
12122 mips)
12123 # Set mips_cpu to the name of the default CPU.
12124 case ${target_cpu} in
12125 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12126 mips_cpu=from-abi
12127 ;;
12128 mipsisa32 | mipsisa32el)
12129 mips_cpu=mips32
12130 ;;
12131 mipsisa32r2 | mipsisa32r2el)
12132 mips_cpu=mips32r2
12133 ;;
ae52f483
AB
12134 mipsisa32r3 | mipsisa32r3el)
12135 mips_cpu=mips32r3
12136 ;;
12137 mipsisa32r5 | mipsisa32r5el)
12138 mips_cpu=mips32r5
12139 ;;
7361da2c
AB
12140 mipsisa32r6 | mipsisa32r6el)
12141 mips_cpu=mips32r6
12142 ;;
ce2cded5
L
12143 mipsisa64 | mipsisa64el)
12144 mips_cpu=mips64
12145 ;;
12146 mipsisa64r2 | mipsisa64r2el)
12147 mips_cpu=mips64r2
12148 ;;
ae52f483
AB
12149 mipsisa64r3 | mipsisa64r3el)
12150 mips_cpu=mips64r3
12151 ;;
12152 mipsisa64r5 | mipsisa64r5el)
12153 mips_cpu=mips64r5
12154 ;;
7361da2c
AB
12155 mipsisa64r6 | mipsisa64r6el)
12156 mips_cpu=mips64r6
12157 ;;
ce2cded5
L
12158 mipstx39 | mipstx39el)
12159 mips_cpu=r3900
12160 ;;
12161 mips64vr | mips64vrel)
12162 mips_cpu=vr4100
12163 ;;
12164 mipsisa32r2* | mipsisa64r2*)
12165 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12166 ;;
7361da2c
AB
12167 mipsisa32r6* | mipsisa64r6*)
12168 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12169 ;;
ce2cded5
L
12170 mips64* | mipsisa64* | mipsisa32*)
12171 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12172 ;;
e407c74b
NC
12173 mips*)
12174 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12175 ;;
ce2cded5 12176 *)
81ecdfbb 12177 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12178 ;;
12179 esac
12180 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12181 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12182 case ${target} in
12183 *-*-irix*)
12184 use_e_mips_abi_o32=0
12185 ;;
12186 *)
12187 use_e_mips_abi_o32=1
12188 ;;
12189 esac
12190 # Decide whether to generate 32-bit or 64-bit code by default.
12191 # Used to resolve -march=from-abi when an embedded ABI is selected.
12192 case ${target} in
12193 mips64*-*-* | mipsisa64*-*-*)
12194 mips_default_64bit=1
12195 ;;
12196 *)
12197 mips_default_64bit=0
12198 ;;
12199 esac
12200 # Decide which ABI to target by default.
12201 case ${target} in
aeffff67 12202 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
ce2cded5
L
12203 mips_default_abi=N32_ABI
12204 ;;
aeffff67 12205 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12206 mips_default_abi=O32_ABI
12207 ;;
12208 mips64*-openbsd*)
12209 mips_default_abi=N64_ABI
12210 ;;
12211 *)
12212 mips_default_abi=NO_ABI
12213 ;;
12214 esac
12215
12216cat >>confdefs.h <<_ACEOF
12217#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12218_ACEOF
d7040cdb
SE
12219
12220
12221cat >>confdefs.h <<_ACEOF
ce2cded5 12222#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12223_ACEOF
12224
12225
12226cat >>confdefs.h <<_ACEOF
ce2cded5 12227#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12228_ACEOF
12229
12230
ce2cded5
L
12231cat >>confdefs.h <<_ACEOF
12232#define MIPS_DEFAULT_ABI $mips_default_abi
12233_ACEOF
d7040cdb 12234
ce2cded5
L
12235 ;;
12236 esac
d7040cdb 12237
ce2cded5
L
12238 # Do we need the opcodes library?
12239 case ${cpu_type} in
12240 vax | tic30)
12241 ;;
d7040cdb 12242
ce2cded5
L
12243 *)
12244 need_opcodes=yes
d7040cdb 12245
ce2cded5
L
12246 case "${enable_shared}" in
12247 yes) shared_opcodes=true ;;
12248 *opcodes*) shared_opcodes=true ;;
12249 *) shared_opcodes=false ;;
12250 esac
12251 ;;
12252 esac
d7040cdb 12253
ce2cded5
L
12254 # Any other special object files needed ?
12255 case ${cpu_type} in
d7040cdb 12256
ce2cded5
L
12257 bfin)
12258 echo ${extra_objects} | grep -s "bfin-parse.o"
12259 if test $? -ne 0 ; then
12260 extra_objects="$extra_objects bfin-parse.o"
12261 fi
d7040cdb 12262
df7b86aa 12263 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
ce2cded5 12264 if test $? -ne 0 ; then
df7b86aa 12265 extra_objects="$extra_objects bfin-lex-wrapper.o"
ce2cded5
L
12266 fi
12267 ;;
d7040cdb 12268
73589c9d 12269 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12270 using_cgen=yes
12271 ;;
d7040cdb 12272
ce2cded5
L
12273 m32c)
12274 using_cgen=yes
12275 ;;
12276 frv)
12277 using_cgen=yes
12278 ;;
12279 m68k)
12280 case ${extra_objects} in
12281 *m68k-parse.o*) ;;
12282 *) extra_objects="$extra_objects m68k-parse.o" ;;
12283 esac
12284 ;;
d7040cdb 12285
ce2cded5
L
12286 mep)
12287 using_cgen=yes
12288 ;;
d7040cdb 12289
ce2cded5
L
12290 mips)
12291 echo ${extra_objects} | grep -s "itbl-parse.o"
12292 if test $? -ne 0 ; then
12293 extra_objects="$extra_objects itbl-parse.o"
12294 fi
d7040cdb 12295
df7b86aa 12296 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
ce2cded5 12297 if test $? -ne 0 ; then
df7b86aa 12298 extra_objects="$extra_objects itbl-lex-wrapper.o"
ce2cded5 12299 fi
d7040cdb 12300
ce2cded5
L
12301 echo ${extra_objects} | grep -s "itbl-ops.o"
12302 if test $? -ne 0 ; then
12303 extra_objects="$extra_objects itbl-ops.o"
12304 fi
12305 ;;
d7040cdb 12306
ce2cded5
L
12307 mt)
12308 using_cgen=yes
12309 ;;
d7040cdb 12310
35c08157
KLC
12311 nds32)
12312 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12313 # based on arch_name.
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12315$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12316 if test "x${with_arch}" != x; then
12317 case ${with_arch} in
12318 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12319
12320cat >>confdefs.h <<_ACEOF
12321#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12322_ACEOF
12323
12324 ;;
12325 *)
12326 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12327 ;;
12328 esac
12329 fi
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12331$as_echo "$with_arch" >&6; }
12332
12333 # Decide features one by one.
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12335$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12336 if test "x${enable_dx_regs}" == xyes; then
12337
12338$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12339
12340 else
12341
12342$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12343
12344 fi
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12346$as_echo "$enable_dx_regs" >&6; }
12347
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12349$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12350 if test "x${enable_perf_ext}" == xno; then
12351
12352$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12353
12354 else
12355
12356$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12360$as_echo "$enable_perf_ext" >&6; }
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12363$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12364 if test "x${enable_perf_ext2}" == xno; then
12365
12366$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12367
12368 else
12369
12370$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12371
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12374$as_echo "$enable_perf_ext2" >&6; }
12375
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12377$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12378 if test "x${enable_string_ext}" == xno; then
12379
12380$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12381
12382 else
12383
12384$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12388$as_echo "$enable_string_ext" >&6; }
12389
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12391$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12392 if test "x${enable_audio_ext}" == xno; then
12393
12394$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12395
12396 else
12397
12398$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12399
12400 fi
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12402$as_echo "$enable_audio_ext" >&6; }
12403 ;;
12404
ce2cded5
L
12405 i386 | s390 | sparc)
12406 if test $this_target = $target ; then
d7040cdb
SE
12407
12408cat >>confdefs.h <<_ACEOF
ce2cded5 12409#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12410_ACEOF
12411
ce2cded5
L
12412 fi
12413 ;;
d7040cdb 12414
99c513f6
DD
12415 rl78)
12416 echo ${extra_objects} | grep -s "rl78-parse.o"
12417 if test $? -ne 0 ; then
12418 extra_objects="$extra_objects rl78-parse.o"
12419 fi
12420 ;;
12421
c7927a3c
NC
12422 rx)
12423 echo ${extra_objects} | grep -s "rx-parse.o"
12424 if test $? -ne 0 ; then
12425 extra_objects="$extra_objects rx-parse.o"
12426 fi
12427 ;;
12428
ce2cded5
L
12429 xstormy16)
12430 using_cgen=yes
12431 ;;
d7040cdb 12432
ce2cded5
L
12433 xc16x)
12434 using_cgen=yes
12435 ;;
d7040cdb 12436
ce2cded5
L
12437 xtensa)
12438 echo ${extra_objects} | grep -s "xtensa-relax.o"
12439 if test $? -ne 0 ; then
12440 extra_objects="$extra_objects xtensa-relax.o"
12441 fi
12442 ;;
d7040cdb 12443
ce2cded5
L
12444 *)
12445 ;;
12446 esac
d7040cdb 12447
ce2cded5
L
12448 if test $using_cgen = yes ; then
12449 case "x${extra_objects}" in
12450 *cgen.o*) ;;
12451 *) extra_objects="$extra_objects cgen.o" ;;
12452 esac
12453 fi
d7040cdb 12454
ce2cded5 12455# See if we really can support this configuration with the emulation code.
d7040cdb 12456
ce2cded5
L
12457 if test $this_target = $target ; then
12458 obj_format=$fmt
12459 te_file=$em
12460 fi
d7040cdb 12461
b11d79f2
TG
12462 case ${te_file} in
12463 vms) extra_objects="$extra_objects te-vms.o" ;;
12464 esac
12465
ce2cded5 12466# From target name and format, produce a list of supported emulations.
d7040cdb 12467
ce2cded5 12468 case ${generic_target}-${fmt} in
e8044f35 12469 mips-*-*-*) case "$endian" in
ce2cded5
L
12470 big) emulation="mipsbelf mipslelf mipself" ;;
12471 *) emulation="mipslelf mipsbelf mipself" ;;
12472 esac ;;
ce2cded5
L
12473 # i386-pc-pe-coff != i386-pc-coff.
12474 i386-*-pe-coff) ;;
12475 # Uncommenting the next line will turn on support for i386 AOUT
12476 # for the default linux configuration
12477 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12478 #
12479 i386-*-aout) emulation="i386aout" ;;
12480 i386-*-coff) emulation="i386coff" ;;
12481 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12482
ce2cded5
L
12483 # Always all formats. The first stated emulation becomes the default.
12484 cris-*-*aout*) emulation="crisaout criself" ;;
12485 cris-*-*) emulation="criself crisaout" ;;
12486 esac
13b2be9c 12487
ce2cded5 12488 emulations="$emulations $emulation"
13b2be9c 12489
13b2be9c 12490done
13b2be9c 12491
ce2cded5
L
12492# Turn on all targets if possible
12493if test ${all_targets} = "yes"; then
12494 case ${target_cpu_type} in
12495 i386)
12496 case ${obj_format} in
12497 aout)
12498 emulations="$emulations i386coff i386elf"
12499 ;;
12500 coff)
12501 emulations="$emulations i386aout i386elf"
12502 ;;
12503 elf)
12504 emulations="$emulations i386aout i386coff"
12505 ;;
12506 esac
12507 ;;
12508 x86_64)
12509 case ${obj_format} in
12510 aout)
12511 emulations="$emulations i386coff i386elf"
12512 ;;
12513 coff)
12514 emulations="$emulations i386aout i386elf"
12515 ;;
12516 elf)
12517 emulations="$emulations i386aout i386coff"
12518 ;;
12519 esac
12520 ;;
12521 esac
13b2be9c 12522fi
c8615825 12523
39871c07
AM
12524# PE code has way too many macros tweaking behaviour
12525case ${te_file} in
12526 pe*) emulations="" ;;
12527esac
12528
ce2cded5
L
12529# Assign floating point type. Most processors with FP support
12530# IEEE FP. On those that don't support FP at all, usually IEEE
12531# is emulated.
12532case ${target_cpu} in
12533 vax | pdp11 ) atof=vax ;;
12534 *) atof=ieee ;;
12535esac
c8615825 12536
ce2cded5 12537case "${obj_format}" in
81ecdfbb 12538 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12539esac
13b2be9c 12540
ce2cded5
L
12541# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12542cgen_cpu_prefix=""
12543if test $using_cgen = yes ; then
12544 case ${target_cpu} in
73589c9d
CS
12545 or1knd)
12546 cgen_cpu_prefix=or1k ;;
ce2cded5
L
12547 *) cgen_cpu_prefix=${target_cpu} ;;
12548 esac
c8615825 12549
c8615825 12550
81ecdfbb 12551$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12552
d7040cdb 12553fi
13b2be9c 12554
ce2cded5
L
12555
12556if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12557 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12558fi
ce2cded5
L
12559
12560if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12561 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12562fi
12563
ce2cded5
L
12564# Some COFF configurations want these random other flags set.
12565case ${obj_format} in
12566 coff)
12567 case ${target_cpu_type} in
12568 i386)
81ecdfbb 12569$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12570 ;;
12571 m68k)
81ecdfbb 12572$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12573 ;;
12574 m88k)
81ecdfbb 12575$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12576 ;;
12577 x86_64)
81ecdfbb 12578$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12579 ;;
12580 esac
12581 ;;
12582esac
12583
12584# Getting this done right is going to be a bitch. Each configuration specified
12585# with --enable-targets=... should be checked for environment, format, cpu
12586# setting.
12587#
12588# For each configuration, the necessary object file support code must be linked
12589# in. This might be only one, it might be up to four. The necessary emulation
12590# code needs to be provided, too.
12591#
12592# And then there's "--enable-targets=all"....
12593#
e8044f35 12594# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
12595
12596formats="${obj_format}"
12597emfiles=""
12598EMULATIONS=""
12599_gas_uniq_list="$emulations"
12600_gas_uniq_newlist=""
12601for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12602 case $_gas_uniq_i in
12603 _gas_uniq_dummy) ;;
12604 *) case " $_gas_uniq_newlist " in
12605 *" $_gas_uniq_i "*) ;;
12606 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12607 esac ;;
12608 esac
12609done
12610emulations=$_gas_uniq_newlist
12611
12612for em in . $emulations ; do
12613 case $em in
12614 .) continue ;;
12615 mipsbelf | mipslelf | mipself)
12616 fmt=elf file=mipself ;;
ce2cded5
L
12617 *coff)
12618 fmt=coff file=$em ;;
12619 *aout)
12620 fmt=aout file=$em ;;
12621 *elf)
12622 fmt=elf file=$em ;;
12623 esac
12624 formats="$formats $fmt"
12625 emfiles="$emfiles e-$file.o"
12626 EMULATIONS="$EMULATIONS &$em,"
12627done
12628_gas_uniq_list="$formats"
12629_gas_uniq_newlist=""
12630for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12631 case $_gas_uniq_i in
12632 _gas_uniq_dummy) ;;
12633 *) case " $_gas_uniq_newlist " in
12634 *" $_gas_uniq_i "*) ;;
12635 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12636 esac ;;
12637 esac
13b2be9c 12638done
ce2cded5 12639formats=$_gas_uniq_newlist
13b2be9c 12640
ce2cded5
L
12641_gas_uniq_list="$emfiles"
12642_gas_uniq_newlist=""
12643for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12644 case $_gas_uniq_i in
12645 _gas_uniq_dummy) ;;
12646 *) case " $_gas_uniq_newlist " in
12647 *" $_gas_uniq_i "*) ;;
12648 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12649 esac ;;
12650 esac
12651done
12652emfiles=$_gas_uniq_newlist
d7040cdb 12653
ce2cded5
L
12654if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12655 for fmt in $formats ; do
12656 case $fmt in
12657 aout)
81ecdfbb 12658$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12659 ;;
12660 bout)
81ecdfbb 12661$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12662 ;;
12663 coff)
81ecdfbb 12664$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12665 ;;
12666 ecoff)
81ecdfbb 12667$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12668 ;;
12669 elf)
81ecdfbb 12670$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12671 ;;
12672 generic)
81ecdfbb 12673$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12674 ;;
12675 som)
81ecdfbb 12676$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12677 ;;
12678 esac
12679 extra_objects="$extra_objects obj-$fmt.o"
12680 done
12681 obj_format=multi
13b2be9c 12682fi
ce2cded5
L
12683if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12684 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 12685 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
12686 # moment. If only one emulation is specified, then don't define
12687 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12688 case "${obj_format}${emfiles}" in
e8044f35 12689 multi* | *mipself*)
ce2cded5 12690 extra_objects="$extra_objects $emfiles"
d7040cdb 12691
81ecdfbb 12692$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12693 ;;
12694 esac
12695fi
d7040cdb 12696
13b2be9c 12697
ce2cded5
L
12698cat >>confdefs.h <<_ACEOF
12699#define EMULATIONS $EMULATIONS
13b2be9c 12700_ACEOF
d7040cdb 12701
d7040cdb 12702
ce2cded5
L
12703cat >>confdefs.h <<_ACEOF
12704#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12705_ACEOF
d7040cdb 12706
d7040cdb 12707
ce2cded5 12708reject_dev_configs=yes
252b5132 12709
ce2cded5
L
12710case ${reject_dev_configs}-${dev} in
12711 yes-yes) # Oops.
81ecdfbb 12712 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12713 ;;
d7040cdb
SE
12714esac
12715
13b2be9c 12716
ce2cded5
L
12717
12718
12719
12720
12721
12722# do we need the opcodes library?
12723case "${need_opcodes}" in
12724yes)
12725 OPCODES_LIB=../opcodes/libopcodes.la
12726 ;;
12727esac
12728
12729
12730
12731
12732cat >>confdefs.h <<_ACEOF
12733#define TARGET_ALIAS "${target_alias}"
d7040cdb 12734_ACEOF
20e95c23 12735
20e95c23 12736
ce2cded5
L
12737cat >>confdefs.h <<_ACEOF
12738#define TARGET_CANONICAL "${target}"
12739_ACEOF
20e95c23 12740
d6d788bd 12741
ce2cded5
L
12742cat >>confdefs.h <<_ACEOF
12743#define TARGET_CPU "${target_cpu}"
12744_ACEOF
20e95c23 12745
ce2cded5
L
12746
12747cat >>confdefs.h <<_ACEOF
12748#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12749_ACEOF
12750
12751
ce2cded5
L
12752cat >>confdefs.h <<_ACEOF
12753#define TARGET_OS "${target_os}"
12754_ACEOF
12755
0efedc4c 12756
d7040cdb
SE
12757for ac_prog in 'bison -y' byacc
12758do
12759 # Extract the first word of "$ac_prog", so it can be a program name with args.
12760set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if test "${ac_cv_prog_YACC+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
20e95c23 12765else
d7040cdb
SE
12766 if test -n "$YACC"; then
12767 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12768else
d7040cdb
SE
12769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12770for as_dir in $PATH
12771do
12772 IFS=$as_save_IFS
12773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12774 for ac_exec_ext in '' $ac_executable_extensions; do
12775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12776 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12778 break 2
20e95c23 12779 fi
d7040cdb 12780done
81ecdfbb
RW
12781 done
12782IFS=$as_save_IFS
20e95c23 12783
d7040cdb
SE
12784fi
12785fi
12786YACC=$ac_cv_prog_YACC
12787if test -n "$YACC"; then
81ecdfbb
RW
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12789$as_echo "$YACC" >&6; }
d7040cdb 12790else
81ecdfbb
RW
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792$as_echo "no" >&6; }
d7040cdb 12793fi
20e95c23 12794
81ecdfbb 12795
d7040cdb
SE
12796 test -n "$YACC" && break
12797done
12798test -n "$YACC" || YACC="yacc"
20e95c23 12799
d7040cdb
SE
12800for ac_prog in flex lex
12801do
12802 # Extract the first word of "$ac_prog", so it can be a program name with args.
12803set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805$as_echo_n "checking for $ac_word... " >&6; }
12806if test "${ac_cv_prog_LEX+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
d6d788bd 12808else
d7040cdb
SE
12809 if test -n "$LEX"; then
12810 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12811else
12812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813for as_dir in $PATH
12814do
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12819 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12821 break 2
12822 fi
12823done
81ecdfbb
RW
12824 done
12825IFS=$as_save_IFS
20e95c23 12826
d7040cdb
SE
12827fi
12828fi
12829LEX=$ac_cv_prog_LEX
12830if test -n "$LEX"; then
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12832$as_echo "$LEX" >&6; }
20e95c23 12833else
81ecdfbb
RW
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835$as_echo "no" >&6; }
13b2be9c
DJ
12836fi
12837
81ecdfbb 12838
d7040cdb
SE
12839 test -n "$LEX" && break
12840done
12841test -n "$LEX" || LEX=":"
20e95c23 12842
81ecdfbb
RW
12843if test "x$LEX" != "x:"; then
12844 cat >conftest.l <<_ACEOF
12845%%
12846a { ECHO; }
12847b { REJECT; }
12848c { yymore (); }
12849d { yyless (1); }
12850e { yyless (input () != 0); }
12851f { unput (yytext[0]); }
12852. { BEGIN INITIAL; }
12853%%
12854#ifdef YYTEXT_POINTER
12855extern char *yytext;
d7040cdb 12856#endif
d7040cdb 12857int
81ecdfbb 12858main (void)
d7040cdb 12859{
81ecdfbb 12860 return ! yylex () + ! yywrap ();
d7040cdb
SE
12861}
12862_ACEOF
81ecdfbb
RW
12863{ { ac_try="$LEX conftest.l"
12864case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867esac
12868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12869$as_echo "$ac_try_echo"; } >&5
12870 (eval "$LEX conftest.l") 2>&5
d7040cdb 12871 ac_status=$?
81ecdfbb
RW
12872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873 test $ac_status = 0; }
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12875$as_echo_n "checking lex output file root... " >&6; }
12876if test "${ac_cv_prog_lex_root+set}" = set; then :
12877 $as_echo_n "(cached) " >&6
d7040cdb 12878else
d5fbea21 12879
81ecdfbb
RW
12880if test -f lex.yy.c; then
12881 ac_cv_prog_lex_root=lex.yy
12882elif test -f lexyy.c; then
12883 ac_cv_prog_lex_root=lexyy
12884else
12885 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 12886fi
d7040cdb 12887fi
81ecdfbb
RW
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12889$as_echo "$ac_cv_prog_lex_root" >&6; }
12890LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12891
81ecdfbb
RW
12892if test -z "${LEXLIB+set}"; then
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12894$as_echo_n "checking lex library... " >&6; }
12895if test "${ac_cv_lib_lex+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
d7040cdb 12897else
d7040cdb 12898
81ecdfbb
RW
12899 ac_save_LIBS=$LIBS
12900 ac_cv_lib_lex='none needed'
12901 for ac_lib in '' -lfl -ll; do
12902 LIBS="$ac_lib $ac_save_LIBS"
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904/* end confdefs.h. */
12905`cat $LEX_OUTPUT_ROOT.c`
12906_ACEOF
12907if ac_fn_c_try_link "$LINENO"; then :
12908 ac_cv_lib_lex=$ac_lib
d7040cdb 12909fi
81ecdfbb
RW
12910rm -f core conftest.err conftest.$ac_objext \
12911 conftest$ac_exeext conftest.$ac_ext
12912 test "$ac_cv_lib_lex" != 'none needed' && break
12913 done
12914 LIBS=$ac_save_LIBS
d7040cdb
SE
12915
12916fi
81ecdfbb
RW
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12918$as_echo "$ac_cv_lib_lex" >&6; }
12919 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12920fi
12921
13b2be9c 12922
81ecdfbb
RW
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12924$as_echo_n "checking whether yytext is a pointer... " >&6; }
12925if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
d7040cdb
SE
12927else
12928 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12929# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12930# not all implementations provide the %pointer and %array declarations.
12931ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12932ac_save_LIBS=$LIBS
81ecdfbb
RW
12933LIBS="$LEXLIB $ac_save_LIBS"
12934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935/* end confdefs.h. */
12936#define YYTEXT_POINTER 1
d7040cdb 12937`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 12938_ACEOF
81ecdfbb 12939if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12940 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 12941fi
81ecdfbb
RW
12942rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12944LIBS=$ac_save_LIBS
252b5132 12945
9b2b7d69 12946fi
81ecdfbb
RW
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12948$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 12949if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 12950
81ecdfbb 12951$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 12952
d6d788bd 12953fi
81ecdfbb 12954rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb 12955
c8615825 12956fi
d7040cdb
SE
12957if test "$LEX" = :; then
12958 LEX=${am_missing_run}flex
12959fi
12960
006ad0a1 12961ALL_LINGUAS="fr tr es rw id ru fi ja"
d7040cdb
SE
12962# If we haven't got the data from the intl directory,
12963# assume NLS is disabled.
12964USE_NLS=no
12965LIBINTL=
12966LIBINTL_DEP=
12967INCINTL=
12968XGETTEXT=
12969GMSGFMT=
12970POSUB=
12971
12972if test -f ../intl/config.intl; then
12973 . ../intl/config.intl
12974fi
81ecdfbb
RW
12975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12976$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12977if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
d7040cdb 12980else
81ecdfbb
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982$as_echo "yes" >&6; }
d7040cdb 12983
81ecdfbb 12984$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12985
12986
81ecdfbb
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12988$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12989 # Look for .po and .gmo files in the source directory.
12990 CATALOGS=
12991 XLINGUAS=
12992 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12993 # If there aren't any .gmo files the shell will give us the
12994 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12995 # weeded out.
12996 case "$cat" in *\**)
12997 continue;;
12998 esac
12999 # The quadruple backslash is collapsed to a double backslash
13000 # by the backticks, then collapsed again by the double quotes,
13001 # leaving us with one backslash in the sed expression (right
13002 # before the dot that mustn't act as a wildcard).
13003 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13004 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13005 # The user is allowed to set LINGUAS to a list of languages to
13006 # install catalogs for. If it's empty that means "all of them."
13007 if test "x$LINGUAS" = x; then
13008 CATALOGS="$CATALOGS $cat"
13009 XLINGUAS="$XLINGUAS $lang"
13010 else
13011 case "$LINGUAS" in *$lang*)
13012 CATALOGS="$CATALOGS $cat"
13013 XLINGUAS="$XLINGUAS $lang"
13014 ;;
13015 esac
13016 fi
13017 done
13018 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13020$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13021
13022
13023 DATADIRNAME=share
13024
13025 INSTOBJEXT=.mo
13026
13027 GENCAT=gencat
13028
13029 CATOBJEXT=.gmo
13030
13031fi
13032
13033 MKINSTALLDIRS=
13034 if test -n "$ac_aux_dir"; then
13035 case "$ac_aux_dir" in
13036 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13037 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13038 esac
13039 fi
13040 if test -z "$MKINSTALLDIRS"; then
13041 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13042 fi
13043
13044
13045
81ecdfbb
RW
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13047$as_echo_n "checking whether NLS is requested... " >&6; }
13048 # Check whether --enable-nls was given.
13049if test "${enable_nls+set}" = set; then :
13050 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13051else
13052 USE_NLS=yes
81ecdfbb
RW
13053fi
13054
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13056$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13057
13058
13059
13060
13061
13062
13063# Prepare PATH_SEPARATOR.
13064# The user is always right.
13065if test "${PATH_SEPARATOR+set}" != set; then
13066 echo "#! /bin/sh" >conf$$.sh
13067 echo "exit 0" >>conf$$.sh
13068 chmod +x conf$$.sh
13069 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13070 PATH_SEPARATOR=';'
13b2be9c 13071 else
d7040cdb 13072 PATH_SEPARATOR=:
13b2be9c 13073 fi
d7040cdb 13074 rm -f conf$$.sh
252b5132 13075fi
13b2be9c 13076
d7040cdb
SE
13077# Find out how to test for executable files. Don't use a zero-byte file,
13078# as systems may use methods other than mode bits to determine executability.
13079cat >conf$$.file <<_ASEOF
13080#! /bin/sh
13081exit 0
13082_ASEOF
13083chmod +x conf$$.file
13084if test -x conf$$.file >/dev/null 2>&1; then
13085 ac_executable_p="test -x"
13086else
13087 ac_executable_p="test -f"
13b2be9c 13088fi
d7040cdb 13089rm -f conf$$.file
13b2be9c 13090
d7040cdb
SE
13091# Extract the first word of "msgfmt", so it can be a program name with args.
13092set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094$as_echo_n "checking for $ac_word... " >&6; }
13095if test "${ac_cv_path_MSGFMT+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
252b5132 13097else
d7040cdb
SE
13098 case "$MSGFMT" in
13099 [\\/]* | ?:[\\/]*)
13100 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13101 ;;
13102 *)
13103 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13104 for ac_dir in $PATH; do
13105 IFS="$ac_save_IFS"
13106 test -z "$ac_dir" && ac_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13109 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13110 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13111 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13112 break 2
13113 fi
13114 fi
13115 done
13116 done
13117 IFS="$ac_save_IFS"
13118 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13119 ;;
13120esac
252b5132 13121fi
d7040cdb
SE
13122MSGFMT="$ac_cv_path_MSGFMT"
13123if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13125$as_echo "$MSGFMT" >&6; }
252b5132 13126else
81ecdfbb
RW
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
252b5132 13129fi
252b5132 13130
d7040cdb
SE
13131 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13132set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134$as_echo_n "checking for $ac_word... " >&6; }
13135if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13b2be9c 13137else
d7040cdb
SE
13138 case $GMSGFMT in
13139 [\\/]* | ?:[\\/]*)
13140 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13141 ;;
13142 *)
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 13150 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13152 break 2
13153 fi
13154done
81ecdfbb
RW
13155 done
13156IFS=$as_save_IFS
252b5132 13157
d7040cdb
SE
13158 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13159 ;;
13160esac
13161fi
13162GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13163if test -n "$GMSGFMT"; then
81ecdfbb
RW
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13165$as_echo "$GMSGFMT" >&6; }
ac48eca1 13166else
81ecdfbb
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
6840198f 13169fi
6840198f 13170
13b2be9c 13171
20e95c23 13172
81ecdfbb 13173
d7040cdb
SE
13174# Prepare PATH_SEPARATOR.
13175# The user is always right.
13176if test "${PATH_SEPARATOR+set}" != set; then
13177 echo "#! /bin/sh" >conf$$.sh
13178 echo "exit 0" >>conf$$.sh
13179 chmod +x conf$$.sh
13180 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13181 PATH_SEPARATOR=';'
13182 else
13183 PATH_SEPARATOR=:
13184 fi
13185 rm -f conf$$.sh
13186fi
20e95c23 13187
d7040cdb
SE
13188# Find out how to test for executable files. Don't use a zero-byte file,
13189# as systems may use methods other than mode bits to determine executability.
13190cat >conf$$.file <<_ASEOF
13191#! /bin/sh
13192exit 0
13193_ASEOF
13194chmod +x conf$$.file
13195if test -x conf$$.file >/dev/null 2>&1; then
13196 ac_executable_p="test -x"
13b2be9c 13197else
d7040cdb 13198 ac_executable_p="test -f"
13b2be9c 13199fi
d7040cdb 13200rm -f conf$$.file
20e95c23 13201
d7040cdb
SE
13202# Extract the first word of "xgettext", so it can be a program name with args.
13203set dummy xgettext; ac_word=$2
81ecdfbb
RW
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205$as_echo_n "checking for $ac_word... " >&6; }
13206if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
252b5132 13208else
d7040cdb
SE
13209 case "$XGETTEXT" in
13210 [\\/]* | ?:[\\/]*)
13211 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13212 ;;
13213 *)
13214 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13215 for ac_dir in $PATH; do
13216 IFS="$ac_save_IFS"
13217 test -z "$ac_dir" && ac_dir=.
13218 for ac_exec_ext in '' $ac_executable_extensions; do
13219 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13220 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13221 (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
13222 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13223 break 2
13224 fi
13225 fi
13226 done
13227 done
13228 IFS="$ac_save_IFS"
13229 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13230 ;;
13231esac
13b2be9c 13232fi
d7040cdb
SE
13233XGETTEXT="$ac_cv_path_XGETTEXT"
13234if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13236$as_echo "$XGETTEXT" >&6; }
d7040cdb 13237else
81ecdfbb
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13239$as_echo "no" >&6; }
13b2be9c 13240fi
13b2be9c 13241
d7040cdb 13242 rm -f messages.po
20e95c23 13243
13b2be9c 13244
d7040cdb
SE
13245# Prepare PATH_SEPARATOR.
13246# The user is always right.
13247if test "${PATH_SEPARATOR+set}" != set; then
13248 echo "#! /bin/sh" >conf$$.sh
13249 echo "exit 0" >>conf$$.sh
13250 chmod +x conf$$.sh
13251 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13252 PATH_SEPARATOR=';'
13253 else
13254 PATH_SEPARATOR=:
13255 fi
13256 rm -f conf$$.sh
252b5132 13257fi
20e95c23 13258
d7040cdb
SE
13259# Find out how to test for executable files. Don't use a zero-byte file,
13260# as systems may use methods other than mode bits to determine executability.
13261cat >conf$$.file <<_ASEOF
13262#! /bin/sh
13263exit 0
13264_ASEOF
13265chmod +x conf$$.file
13266if test -x conf$$.file >/dev/null 2>&1; then
13267 ac_executable_p="test -x"
252b5132 13268else
d7040cdb
SE
13269 ac_executable_p="test -f"
13270fi
13271rm -f conf$$.file
20e95c23 13272
d7040cdb
SE
13273# Extract the first word of "msgmerge", so it can be a program name with args.
13274set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276$as_echo_n "checking for $ac_word... " >&6; }
13277if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
20e95c23 13279else
d7040cdb
SE
13280 case "$MSGMERGE" in
13281 [\\/]* | ?:[\\/]*)
13282 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13283 ;;
13284 *)
13285 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13286 for ac_dir in $PATH; do
13287 IFS="$ac_save_IFS"
13288 test -z "$ac_dir" && ac_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13291 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13292 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13293 break 2
13294 fi
13295 fi
13296 done
13297 done
13298 IFS="$ac_save_IFS"
13299 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13300 ;;
13301esac
20e95c23 13302fi
d7040cdb
SE
13303MSGMERGE="$ac_cv_path_MSGMERGE"
13304if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13306$as_echo "$MSGMERGE" >&6; }
d7040cdb 13307else
81ecdfbb
RW
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309$as_echo "no" >&6; }
20e95c23 13310fi
252b5132 13311
252b5132 13312
d7040cdb
SE
13313 if test "$GMSGFMT" != ":"; then
13314 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13315 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13316 : ;
13317 else
13318 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13320$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13321 GMSGFMT=":"
13322 fi
13323 fi
13b2be9c 13324
d7040cdb
SE
13325 if test "$XGETTEXT" != ":"; then
13326 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13327 (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
13328 : ;
13329 else
81ecdfbb
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13331$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13332 XGETTEXT=":"
13333 fi
13334 rm -f messages.po
13335 fi
252b5132 13336
81ecdfbb 13337 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13338
13b2be9c 13339
81ecdfbb
RW
13340
13341
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13343$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13344 # Check whether --enable-maintainer-mode was given.
13345if test "${enable_maintainer_mode+set}" = set; then :
13346 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13347else
81ecdfbb 13348 USE_MAINTAINER_MODE=no
13b2be9c 13349fi
13b2be9c 13350
81ecdfbb
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13352$as_echo "$USE_MAINTAINER_MODE" >&6; }
13353 if test $USE_MAINTAINER_MODE = yes; then
13354 MAINTAINER_MODE_TRUE=
13355 MAINTAINER_MODE_FALSE='#'
13356else
13357 MAINTAINER_MODE_TRUE='#'
13358 MAINTAINER_MODE_FALSE=
13b2be9c 13359fi
13b2be9c 13360
81ecdfbb
RW
13361 MAINT=$MAINTAINER_MODE_TRUE
13362
13363
13364 if false; then
13365 GENINSRC_NEVER_TRUE=
13366 GENINSRC_NEVER_FALSE='#'
13b2be9c 13367else
81ecdfbb
RW
13368 GENINSRC_NEVER_TRUE='#'
13369 GENINSRC_NEVER_FALSE=
252b5132 13370fi
13b2be9c 13371
81ecdfbb
RW
13372
13373
58797674 13374for 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
13375do :
13376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13377ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13378eval as_val=\$$as_ac_Header
13379 if test "x$as_val" = x""yes; then :
13b2be9c 13380 cat >>confdefs.h <<_ACEOF
81ecdfbb 13381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13382_ACEOF
13383
252b5132 13384fi
13b2be9c 13385
252b5132
RH
13386done
13387
df7b86aa
NC
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13389$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13390if test "${gcc_cv_header_string+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13392else
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h. */
13395#include <string.h>
13396#include <strings.h>
13397int
13398main ()
13399{
13400
13401 ;
13402 return 0;
13403}
13404_ACEOF
13405if ac_fn_c_try_compile "$LINENO"; then :
13406 gcc_cv_header_string=yes
13407else
13408 gcc_cv_header_string=no
13409fi
13410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13413$as_echo "$gcc_cv_header_string" >&6; }
13414if test $gcc_cv_header_string = yes; then
13415
13416$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13417
13418fi
13419
d6d788bd 13420
252b5132
RH
13421# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13422# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13424$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13425if test "${host}" = "${target}"; then
13426 cross_gas=no
13427else
13428 cross_gas=yes
13b2be9c 13429
81ecdfbb 13430$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13431
13432fi
81ecdfbb
RW
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13434$as_echo "$cross_gas" >&6; }
252b5132
RH
13435
13436# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13437# for constant arguments. Useless!
81ecdfbb
RW
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13439$as_echo_n "checking for working alloca.h... " >&6; }
13440if test "${ac_cv_working_alloca_h+set}" = set; then :
13441 $as_echo_n "(cached) " >&6
13b2be9c 13442else
81ecdfbb 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13444/* end confdefs.h. */
252b5132 13445#include <alloca.h>
13b2be9c
DJ
13446int
13447main ()
13448{
13449char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13450 if (p) return 0;
13b2be9c
DJ
13451 ;
13452 return 0;
13453}
13454_ACEOF
81ecdfbb 13455if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13456 ac_cv_working_alloca_h=yes
13457else
81ecdfbb 13458 ac_cv_working_alloca_h=no
13b2be9c 13459fi
81ecdfbb
RW
13460rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13462fi
81ecdfbb
RW
13463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13464$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13465if test $ac_cv_working_alloca_h = yes; then
13466
81ecdfbb 13467$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13468
13469fi
13470
81ecdfbb
RW
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13472$as_echo_n "checking for alloca... " >&6; }
13473if test "${ac_cv_func_alloca_works+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
252b5132 13475else
81ecdfbb 13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13477/* end confdefs.h. */
252b5132
RH
13478#ifdef __GNUC__
13479# define alloca __builtin_alloca
13480#else
13481# ifdef _MSC_VER
13482# include <malloc.h>
13483# define alloca _alloca
13484# else
81ecdfbb 13485# ifdef HAVE_ALLOCA_H
252b5132
RH
13486# include <alloca.h>
13487# else
13488# ifdef _AIX
13489 #pragma alloca
13490# else
13491# ifndef alloca /* predefined by HP cc +Olibcalls */
13492char *alloca ();
13493# endif
13494# endif
13495# endif
13496# endif
13497#endif
13498
13b2be9c
DJ
13499int
13500main ()
13501{
13502char *p = (char *) alloca (1);
81ecdfbb 13503 if (p) return 0;
13b2be9c
DJ
13504 ;
13505 return 0;
13506}
13507_ACEOF
81ecdfbb 13508if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13509 ac_cv_func_alloca_works=yes
13510else
81ecdfbb 13511 ac_cv_func_alloca_works=no
252b5132 13512fi
81ecdfbb
RW
13513rm -f core conftest.err conftest.$ac_objext \
13514 conftest$ac_exeext conftest.$ac_ext
252b5132 13515fi
81ecdfbb
RW
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13517$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13518
252b5132 13519if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13520
81ecdfbb 13521$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13522
13b2be9c 13523else
c8615825 13524 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13525# that cause trouble. Some versions do not even contain alloca or
13526# contain a buggy version. If you still want to use their alloca,
13527# use ar to extract alloca.o from them instead of compiling alloca.c.
13528
81ecdfbb 13529ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13530
81ecdfbb 13531$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13532
d6d788bd 13533
81ecdfbb
RW
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13535$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13536if test "${ac_cv_os_cray+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
252b5132 13538else
81ecdfbb 13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13540/* end confdefs.h. */
81ecdfbb 13541#if defined CRAY && ! defined CRAY2
252b5132
RH
13542webecray
13543#else
13544wenotbecray
13545#endif
13546
13b2be9c 13547_ACEOF
252b5132 13548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13549 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13550 ac_cv_os_cray=yes
13551else
252b5132
RH
13552 ac_cv_os_cray=no
13553fi
13554rm -f conftest*
13555
13556fi
81ecdfbb
RW
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13558$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13559if test $ac_cv_os_cray = yes; then
13b2be9c 13560 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13562ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13563eval as_val=\$$as_ac_var
13564 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13565
13566cat >>confdefs.h <<_ACEOF
252b5132 13567#define CRAY_STACKSEG_END $ac_func
13b2be9c 13568_ACEOF
252b5132 13569
13b2be9c 13570 break
252b5132
RH
13571fi
13572
13b2be9c 13573 done
252b5132
RH
13574fi
13575
81ecdfbb
RW
13576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13577$as_echo_n "checking stack direction for C alloca... " >&6; }
13578if test "${ac_cv_c_stack_direction+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
252b5132 13580else
81ecdfbb 13581 if test "$cross_compiling" = yes; then :
252b5132
RH
13582 ac_cv_c_stack_direction=0
13583else
81ecdfbb 13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13585/* end confdefs.h. */
81ecdfbb 13586$ac_includes_default
13b2be9c 13587int
252b5132
RH
13588find_stack_direction ()
13589{
13590 static char *addr = 0;
13591 auto char dummy;
13592 if (addr == 0)
13593 {
13594 addr = &dummy;
13595 return find_stack_direction ();
13596 }
13597 else
13598 return (&dummy > addr) ? 1 : -1;
13599}
13b2be9c
DJ
13600
13601int
252b5132
RH
13602main ()
13603{
81ecdfbb 13604 return find_stack_direction () < 0;
252b5132 13605}
13b2be9c 13606_ACEOF
81ecdfbb 13607if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13608 ac_cv_c_stack_direction=1
13609else
81ecdfbb 13610 ac_cv_c_stack_direction=-1
252b5132 13611fi
81ecdfbb
RW
13612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13613 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13614fi
252b5132 13615
81ecdfbb
RW
13616fi
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13618$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13619cat >>confdefs.h <<_ACEOF
252b5132 13620#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13621_ACEOF
13622
252b5132
RH
13623
13624fi
13625
81ecdfbb
RW
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13627$as_echo_n "checking for inline... " >&6; }
13628if test "${ac_cv_c_inline+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
252b5132
RH
13630else
13631 ac_cv_c_inline=no
13632for ac_kw in inline __inline__ __inline; do
81ecdfbb 13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13634/* end confdefs.h. */
13635#ifndef __cplusplus
13636typedef int foo_t;
13637static $ac_kw foo_t static_foo () {return 0; }
13638$ac_kw foo_t foo () {return 0; }
13639#endif
252b5132 13640
13b2be9c 13641_ACEOF
81ecdfbb
RW
13642if ac_fn_c_try_compile "$LINENO"; then :
13643 ac_cv_c_inline=$ac_kw
252b5132 13644fi
81ecdfbb
RW
13645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 test "$ac_cv_c_inline" != no && break
252b5132
RH
13647done
13648
13649fi
81ecdfbb
RW
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13651$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13652
13b2be9c 13653case $ac_cv_c_inline in
252b5132 13654 inline | yes) ;;
ab509236
L
13655 *)
13656 case $ac_cv_c_inline in
13657 no) ac_val=;;
13658 *) ac_val=$ac_cv_c_inline;;
13659 esac
13660 cat >>confdefs.h <<_ACEOF
13661#ifndef __cplusplus
13662#define inline $ac_val
13663#endif
13b2be9c 13664_ACEOF
ab509236 13665 ;;
252b5132
RH
13666esac
13667
6840198f 13668
d6d788bd 13669# VMS doesn't have unlink.
252b5132 13670for ac_func in unlink remove
81ecdfbb
RW
13671do :
13672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13673ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13674eval as_val=\$$as_ac_var
13675 if test "x$as_val" = x""yes; then :
13b2be9c 13676 cat >>confdefs.h <<_ACEOF
81ecdfbb 13677#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13678_ACEOF
252b5132 13679 break
252b5132
RH
13680fi
13681done
13682
4b0296ce 13683for ac_func in sbrk setlocale
81ecdfbb 13684do :
a574142b
AM
13685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13686ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13687eval as_val=\$$as_ac_var
13688 if test "x$as_val" = x""yes; then :
13b2be9c 13689 cat >>confdefs.h <<_ACEOF
a574142b 13690#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13691_ACEOF
252b5132 13692
252b5132
RH
13693fi
13694done
13695
d6d788bd 13696
44350750
NC
13697
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13699$as_echo_n "checking for LC_MESSAGES... " >&6; }
13700if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13701 $as_echo_n "(cached) " >&6
13702else
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704/* end confdefs.h. */
13705#include <locale.h>
13706int
13707main ()
13708{
13709return LC_MESSAGES
13710 ;
13711 return 0;
13712}
13713_ACEOF
13714if ac_fn_c_try_link "$LINENO"; then :
13715 am_cv_val_LC_MESSAGES=yes
13716else
13717 am_cv_val_LC_MESSAGES=no
13718fi
13719rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721fi
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13723$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13724 if test $am_cv_val_LC_MESSAGES = yes; then
13725
13726$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13727
13728 fi
13729
13730
39bec121
TW
13731# do we need the math library?
13732case "${need_libm}" in
13b2be9c 13733yes)
39bec121 13734 LIBM=
f9c19112 13735case $host in
3725885a 13736*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 13737 # These system don't have libm, or don't need it
39bec121
TW
13738 ;;
13739*-ncr-sysv4.3*)
81ecdfbb
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13741$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13742if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
39bec121 13744else
13b2be9c 13745 ac_check_lib_save_LIBS=$LIBS
39bec121 13746LIBS="-lmw $LIBS"
81ecdfbb 13747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13748/* end confdefs.h. */
13749
81ecdfbb
RW
13750/* Override any GCC internal prototype to avoid an error.
13751 Use char because int might match the return type of a GCC
13752 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13753#ifdef __cplusplus
13754extern "C"
13755#endif
13b2be9c
DJ
13756char _mwvalidcheckl ();
13757int
13758main ()
13759{
81ecdfbb 13760return _mwvalidcheckl ();
13b2be9c
DJ
13761 ;
13762 return 0;
13763}
13764_ACEOF
81ecdfbb 13765if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13766 ac_cv_lib_mw__mwvalidcheckl=yes
13767else
81ecdfbb 13768 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13769fi
81ecdfbb
RW
13770rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13772LIBS=$ac_check_lib_save_LIBS
13773fi
81ecdfbb
RW
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13775$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13776if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13777 LIBM="-lmw"
39bec121
TW
13778fi
13779
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13781$as_echo_n "checking for cos in -lm... " >&6; }
13782if test "${ac_cv_lib_m_cos+set}" = set; then :
13783 $as_echo_n "(cached) " >&6
39bec121 13784else
13b2be9c 13785 ac_check_lib_save_LIBS=$LIBS
39bec121 13786LIBS="-lm $LIBS"
81ecdfbb 13787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13788/* end confdefs.h. */
39bec121 13789
81ecdfbb
RW
13790/* Override any GCC internal prototype to avoid an error.
13791 Use char because int might match the return type of a GCC
13792 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13793#ifdef __cplusplus
13794extern "C"
13795#endif
d7040cdb 13796char cos ();
13b2be9c
DJ
13797int
13798main ()
13799{
81ecdfbb 13800return cos ();
13b2be9c
DJ
13801 ;
13802 return 0;
13803}
13804_ACEOF
81ecdfbb 13805if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13806 ac_cv_lib_m_cos=yes
13b2be9c 13807else
81ecdfbb 13808 ac_cv_lib_m_cos=no
13b2be9c 13809fi
81ecdfbb
RW
13810rm -f core conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13812LIBS=$ac_check_lib_save_LIBS
13813fi
81ecdfbb
RW
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13815$as_echo "$ac_cv_lib_m_cos" >&6; }
13816if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13817 LIBM="$LIBM -lm"
39bec121
TW
13818fi
13819
13820 ;;
13821*)
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13823$as_echo_n "checking for cos in -lm... " >&6; }
13824if test "${ac_cv_lib_m_cos+set}" = set; then :
13825 $as_echo_n "(cached) " >&6
39bec121 13826else
13b2be9c 13827 ac_check_lib_save_LIBS=$LIBS
39bec121 13828LIBS="-lm $LIBS"
81ecdfbb 13829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13830/* end confdefs.h. */
39bec121 13831
81ecdfbb
RW
13832/* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13835#ifdef __cplusplus
13836extern "C"
13837#endif
d7040cdb 13838char cos ();
13b2be9c
DJ
13839int
13840main ()
13841{
81ecdfbb 13842return cos ();
13b2be9c
DJ
13843 ;
13844 return 0;
13845}
13846_ACEOF
81ecdfbb 13847if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13848 ac_cv_lib_m_cos=yes
13b2be9c 13849else
81ecdfbb 13850 ac_cv_lib_m_cos=no
13b2be9c 13851fi
81ecdfbb
RW
13852rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13854LIBS=$ac_check_lib_save_LIBS
13855fi
81ecdfbb
RW
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13857$as_echo "$ac_cv_lib_m_cos" >&6; }
13858if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13859 LIBM="-lm"
39bec121
TW
13860fi
13861
13862 ;;
13863esac
13864
13b2be9c 13865
d7040cdb 13866
39bec121
TW
13867 ;;
13868esac
13869
252b5132
RH
13870# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13871# enough, but on some of those systems, the assert macro relies on requoting
13872# working properly!
81ecdfbb
RW
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13874$as_echo_n "checking for working assert macro... " >&6; }
13875if test "${gas_cv_assert_ok+set}" = set; then :
13876 $as_echo_n "(cached) " >&6
13b2be9c 13877else
81ecdfbb 13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13879/* end confdefs.h. */
252b5132
RH
13880#include <assert.h>
13881#include <stdio.h>
13b2be9c
DJ
13882int
13883main ()
13884{
252b5132
RH
13885
13886/* check for requoting problems */
13887static int a, b, c, d;
13888static char *s;
13889assert (!strcmp(s, "foo bar baz quux"));
13890/* check for newline handling */
13891assert (a == b
13892 || c == d);
13893
13b2be9c
DJ
13894 ;
13895 return 0;
81ecdfbb
RW
13896}
13897_ACEOF
13898if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13899 gas_cv_assert_ok=yes
13900else
81ecdfbb 13901 gas_cv_assert_ok=no
252b5132 13902fi
81ecdfbb
RW
13903rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
252b5132 13905fi
81ecdfbb
RW
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13907$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 13908test $gas_cv_assert_ok = yes ||
81ecdfbb 13909$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 13910
d6d788bd
L
13911
13912
252b5132
RH
13913# On some systems, the system header files may not declare malloc, realloc,
13914# and free. There are places where gas needs these functions to have been
13915# declared -- such as when taking their addresses.
13916gas_test_headers="
13917#ifdef HAVE_MEMORY_H
13918#include <memory.h>
13919#endif
13920#ifdef HAVE_STRING_H
13921#include <string.h>
13922#else
13923#ifdef HAVE_STRINGS_H
13924#include <strings.h>
13925#endif
13926#endif
13927#ifdef HAVE_STDLIB_H
13928#include <stdlib.h>
13929#endif
13930#ifdef HAVE_UNISTD_H
13931#include <unistd.h>
13932#endif
13933"
13934
e8a38df5
AL
13935# Does errno.h declare errno, or do we have to add a separate declaration
13936# for it?
13937
81ecdfbb
RW
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13939$as_echo_n "checking whether declaration is required for errno... " >&6; }
13940if test "${gas_cv_decl_needed_errno+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
e8a38df5 13942else
81ecdfbb 13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
13944/* end confdefs.h. */
13945
13946#ifdef HAVE_ERRNO_H
13947#include <errno.h>
13948#endif
13949
13950int
13951main ()
13952{
13953
13954typedef int f;
13955f x;
13956x = (f) errno;
13957
13958 ;
13959 return 0;
13960}
13961_ACEOF
81ecdfbb 13962if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
13963 gas_cv_decl_needed_errno=no
13964else
81ecdfbb 13965 gas_cv_decl_needed_errno=yes
e8a38df5 13966fi
81ecdfbb
RW
13967rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
e8a38df5 13969fi
81ecdfbb
RW
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13971$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
13972if test $gas_cv_decl_needed_errno = yes; then
13973
81ecdfbb 13974$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
13975
13976fi
13977
13978
81ecdfbb
RW
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13980$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13981if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13982 $as_echo_n "(cached) " >&6
56f36663 13983else
81ecdfbb 13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
13985/* end confdefs.h. */
13986#include <unistd.h>
13987int
13988main ()
13989{
13990extern int getopt (int, char *const*, const char *);
13991 ;
13992 return 0;
13993}
13994_ACEOF
81ecdfbb 13995if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
13996 gas_cv_decl_getopt_unistd_h=yes
13997else
81ecdfbb 13998 gas_cv_decl_getopt_unistd_h=no
56f36663 13999fi
81ecdfbb 14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14001fi
14002
81ecdfbb
RW
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14004$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14005if test $gas_cv_decl_getopt_unistd_h = yes; then
14006
81ecdfbb 14007$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14008
14009fi
14010
e8a38df5 14011
81ecdfbb
RW
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14013$as_echo_n "checking whether declaration is required for environ... " >&6; }
14014if test "${gas_cv_decl_needed_environ+set}" = set; then :
14015 $as_echo_n "(cached) " >&6
13b2be9c 14016else
81ecdfbb 14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14018/* end confdefs.h. */
252b5132 14019$gas_test_headers
13b2be9c
DJ
14020int
14021main ()
14022{
252b5132 14023
e8a38df5 14024typedef char **f;
252b5132 14025f x;
e8a38df5 14026x = (f) environ;
252b5132 14027
13b2be9c
DJ
14028 ;
14029 return 0;
14030}
14031_ACEOF
81ecdfbb 14032if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14033 gas_cv_decl_needed_environ=no
252b5132 14034else
81ecdfbb 14035 gas_cv_decl_needed_environ=yes
252b5132 14036fi
81ecdfbb
RW
14037rm -f core conftest.err conftest.$ac_objext \
14038 conftest$ac_exeext conftest.$ac_ext
252b5132 14039fi
81ecdfbb
RW
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14041$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14042if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14043
81ecdfbb 14044$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14045
14046fi
14047
14048
81ecdfbb
RW
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14050$as_echo_n "checking whether declaration is required for ffs... " >&6; }
14051if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14052 $as_echo_n "(cached) " >&6
13b2be9c 14053else
81ecdfbb 14054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14055/* end confdefs.h. */
14056$gas_test_headers
14057int
14058main ()
14059{
14060
e8a38df5 14061typedef int (*f)(int);
13b2be9c 14062f x;
e8a38df5 14063x = (f) ffs;
13b2be9c
DJ
14064
14065 ;
14066 return 0;
14067}
14068_ACEOF
81ecdfbb 14069if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14070 gas_cv_decl_needed_ffs=no
13b2be9c 14071else
81ecdfbb 14072 gas_cv_decl_needed_ffs=yes
13b2be9c 14073fi
81ecdfbb
RW
14074rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14076fi
81ecdfbb
RW
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14078$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14079if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14080
81ecdfbb 14081$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14082
14083fi
14084
14085
81ecdfbb
RW
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14087$as_echo_n "checking whether declaration is required for free... " >&6; }
14088if test "${gas_cv_decl_needed_free+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
13b2be9c 14090else
81ecdfbb 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14092/* end confdefs.h. */
14093$gas_test_headers
14094int
14095main ()
14096{
14097
14098typedef void (*f)();
14099f x;
14100x = (f) free;
14101
14102 ;
14103 return 0;
14104}
14105_ACEOF
81ecdfbb 14106if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14107 gas_cv_decl_needed_free=no
14108else
81ecdfbb 14109 gas_cv_decl_needed_free=yes
13b2be9c 14110fi
81ecdfbb
RW
14111rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14113fi
81ecdfbb
RW
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14115$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14116if test $gas_cv_decl_needed_free = yes; then
14117
81ecdfbb 14118$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14119
14120fi
14121
14122
81ecdfbb
RW
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14124$as_echo_n "checking whether declaration is required for malloc... " >&6; }
14125if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
13b2be9c 14127else
81ecdfbb 14128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14129/* end confdefs.h. */
14130$gas_test_headers
14131int
14132main ()
14133{
14134
14135typedef char *(*f)();
14136f x;
e8a38df5 14137x = (f) malloc;
13b2be9c
DJ
14138
14139 ;
14140 return 0;
14141}
14142_ACEOF
81ecdfbb 14143if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14144 gas_cv_decl_needed_malloc=no
13b2be9c 14145else
81ecdfbb 14146 gas_cv_decl_needed_malloc=yes
13b2be9c 14147fi
81ecdfbb
RW
14148rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14150fi
81ecdfbb
RW
14151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14152$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14153if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14154
81ecdfbb 14155$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14156
14157fi
14158
14159
81ecdfbb
RW
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14161$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14162if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14163 $as_echo_n "(cached) " >&6
13b2be9c 14164else
81ecdfbb 14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14166/* end confdefs.h. */
14167$gas_test_headers
14168int
14169main ()
14170{
14171
e8a38df5 14172typedef char *(*f)();
13b2be9c 14173f x;
e8a38df5 14174x = (f) sbrk;
13b2be9c
DJ
14175
14176 ;
14177 return 0;
14178}
14179_ACEOF
81ecdfbb 14180if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14181 gas_cv_decl_needed_sbrk=no
13b2be9c 14182else
81ecdfbb 14183 gas_cv_decl_needed_sbrk=yes
13b2be9c 14184fi
81ecdfbb
RW
14185rm -f core conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14187fi
81ecdfbb
RW
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14189$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14190if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14191
81ecdfbb 14192$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14193
14194fi
14195
14196
81ecdfbb
RW
14197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14198$as_echo_n "checking whether declaration is required for strstr... " >&6; }
14199if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14200 $as_echo_n "(cached) " >&6
13b2be9c 14201else
81ecdfbb 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14203/* end confdefs.h. */
e8a38df5 14204$gas_test_headers
13b2be9c
DJ
14205int
14206main ()
14207{
14208
e8a38df5 14209typedef char *(*f)();
13b2be9c 14210f x;
e8a38df5 14211x = (f) strstr;
13b2be9c
DJ
14212
14213 ;
14214 return 0;
14215}
14216_ACEOF
81ecdfbb 14217if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14218 gas_cv_decl_needed_strstr=no
13b2be9c 14219else
81ecdfbb 14220 gas_cv_decl_needed_strstr=yes
13b2be9c 14221fi
81ecdfbb
RW
14222rm -f core conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14224fi
81ecdfbb
RW
14225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14226$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14227if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14228
81ecdfbb 14229$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14230
14231fi
14232
14233
4b0296ce
AM
14234ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14235if test "x$ac_cv_have_decl_free" = x""yes; then :
14236 ac_have_decl=1
14237else
14238 ac_have_decl=0
14239fi
14240
14241cat >>confdefs.h <<_ACEOF
14242#define HAVE_DECL_FREE $ac_have_decl
14243_ACEOF
14244ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14245if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14246 ac_have_decl=1
14247else
14248 ac_have_decl=0
14249fi
14250
14251cat >>confdefs.h <<_ACEOF
14252#define HAVE_DECL_GETENV $ac_have_decl
14253_ACEOF
14254ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14255if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14256 ac_have_decl=1
14257else
14258 ac_have_decl=0
14259fi
14260
14261cat >>confdefs.h <<_ACEOF
14262#define HAVE_DECL_MALLOC $ac_have_decl
14263_ACEOF
0175442d
L
14264ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14265if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14266 ac_have_decl=1
14267else
14268 ac_have_decl=0
14269fi
14270
14271cat >>confdefs.h <<_ACEOF
14272#define HAVE_DECL_MEMPCPY $ac_have_decl
14273_ACEOF
4b0296ce
AM
14274ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14275if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14276 ac_have_decl=1
14277else
14278 ac_have_decl=0
14279fi
14280
14281cat >>confdefs.h <<_ACEOF
14282#define HAVE_DECL_REALLOC $ac_have_decl
14283_ACEOF
14284ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14285if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14286 ac_have_decl=1
14287else
14288 ac_have_decl=0
14289fi
14290
14291cat >>confdefs.h <<_ACEOF
14292#define HAVE_DECL_STPCPY $ac_have_decl
14293_ACEOF
14294ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14295if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14296 ac_have_decl=1
14297else
14298 ac_have_decl=0
14299fi
0175442d 14300
4b0296ce
AM
14301cat >>confdefs.h <<_ACEOF
14302#define HAVE_DECL_STRSTR $ac_have_decl
14303_ACEOF
81ecdfbb
RW
14304ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14305if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14306 ac_have_decl=1
6d74f28b 14307else
81ecdfbb 14308 ac_have_decl=0
6d74f28b 14309fi
6d74f28b
EB
14310
14311cat >>confdefs.h <<_ACEOF
81ecdfbb 14312#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b
EB
14313_ACEOF
14314
14315
13b2be9c 14316
c973bc5c
NC
14317case "${host}" in
14318*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14319
81ecdfbb 14320$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
14321 ;;
14322esac
14323
543b7933
L
14324# Link in zlib if we can. This allows us to write compressed debug sections.
14325
14326 # Use the system's zlib library.
39f3de7c
L
14327 zlibdir="-L\$(top_builddir)/../zlib"
14328 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 14329
0138187e
L
14330# Check whether --with-system-zlib was given.
14331if test "${with_system_zlib+set}" = set; then :
afa59b79
L
14332 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14333 zlibdir=
14334 zlibinc=
14335 fi
0acf065b 14336
0acf065b 14337fi
0acf065b 14338
0acf065b
CC
14339
14340
543b7933
L
14341
14342
b11d79f2
TG
14343# Support for VMS timestamps via cross compile
14344
14345if test "$ac_cv_header_time_h" = yes; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14347$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14348 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14349 $as_echo_n "(cached) " >&6
14350else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352/* end confdefs.h. */
14353
14354#define _BSD_SOURCE 1
14355#include <time.h>
14356int
14357main ()
14358{
14359struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14360 ;
14361 return 0;
14362}
14363_ACEOF
14364if ac_fn_c_try_compile "$LINENO"; then :
14365 gas_cv_have_time_type_member_tm_gmtoff=yes
14366else
14367 gas_cv_have_time_type_member_tm_gmtoff=no
14368
14369fi
14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371fi
14372
14373 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14374
14375$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14376
14377 fi
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14379$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14380
14381fi
14382
14383if test "$ac_cv_header_sys_stat_h" = yes; then
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14385$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14386 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14387 $as_echo_n "(cached) " >&6
14388else
14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390/* end confdefs.h. */
14391
14392#define _BSD_SOURCE 1
14393#include <sys/stat.h>
14394int
14395main ()
14396{
14397struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14398 ;
14399 return 0;
14400}
14401_ACEOF
14402if ac_fn_c_try_compile "$LINENO"; then :
14403 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14404else
14405 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14406
14407fi
14408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14409fi
14410
14411 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14412
14413$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14414
14415 fi
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14417$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14418
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14420$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14421 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14422 $as_echo_n "(cached) " >&6
14423else
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425/* end confdefs.h. */
14426
14427#define _BSD_SOURCE 1
14428#include <sys/stat.h>
14429int
14430main ()
14431{
14432struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14433 ;
14434 return 0;
14435}
14436_ACEOF
14437if ac_fn_c_try_compile "$LINENO"; then :
14438 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14439else
14440 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14441
14442fi
14443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444fi
14445
14446 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14447
14448$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14449
14450 fi
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14452$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14453
14454fi
14455
14456
c973bc5c 14457
13b2be9c 14458
108a6f8e
CD
14459
14460
14461
14462
31dd3154 14463
81ecdfbb 14464ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14465
81ecdfbb 14466ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14467
14468
14469cat >confcache <<\_ACEOF
14470# This file is a shell script that caches the results of configure
14471# tests run on this system so they can be shared between configure
14472# scripts and configure runs, see configure's option --config-cache.
14473# It is not useful on other systems. If it contains results you don't
14474# want to keep, you may remove or edit it.
14475#
14476# config.status only pays attention to the cache file if you give it
14477# the --recheck option to rerun configure.
14478#
14479# `ac_cv_env_foo' variables (set or unset) will be overridden when
14480# loading this file, other *unset* `ac_cv_foo' will be assigned the
14481# following values.
14482
14483_ACEOF
14484
14485# The following way of writing the cache mishandles newlines in values,
14486# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14487# So, we kill variables containing newlines.
13b2be9c
DJ
14488# Ultrix sh set writes to stderr and can't be redirected directly,
14489# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14490(
14491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14492 eval ac_val=\$$ac_var
14493 case $ac_val in #(
14494 *${as_nl}*)
14495 case $ac_var in #(
14496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14498 esac
14499 case $ac_var in #(
14500 _ | IFS | as_nl) ;; #(
14501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14502 *) { eval $ac_var=; unset $ac_var;} ;;
14503 esac ;;
14504 esac
14505 done
14506
13b2be9c 14507 (set) 2>&1 |
81ecdfbb
RW
14508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14509 *${as_nl}ac_space=\ *)
14510 # `set' does not quote correctly, so add quotes: double-quote
14511 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14512 sed -n \
ab509236
L
14513 "s/'/'\\\\''/g;
14514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14515 ;; #(
13b2be9c
DJ
14516 *)
14517 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14519 ;;
81ecdfbb
RW
14520 esac |
14521 sort
14522) |
13b2be9c 14523 sed '
81ecdfbb 14524 /^ac_cv_env_/b end
13b2be9c 14525 t clear
81ecdfbb 14526 :clear
13b2be9c
DJ
14527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14528 t end
81ecdfbb
RW
14529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14530 :end' >>confcache
14531if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14532 if test -w "$cache_file"; then
14533 test "x$cache_file" != "x/dev/null" &&
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14535$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14536 cat confcache >$cache_file
14537 else
81ecdfbb
RW
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14539$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14540 fi
14541fi
14542rm -f confcache
14543
14544test "x$prefix" = xNONE && prefix=$ac_default_prefix
14545# Let make expand exec_prefix.
14546test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14547
13b2be9c
DJ
14548DEFS=-DHAVE_CONFIG_H
14549
14550ac_libobjs=
14551ac_ltlibobjs=
14552for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14553 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14557 # will be set to the directory where LIBOBJS objects are built.
14558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14560done
14561LIBOBJS=$ac_libobjs
14562
14563LTLIBOBJS=$ac_ltlibobjs
14564
14565
14566if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14567 as_fn_error "conditional \"AMDEP\" was never defined.
14568Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14569fi
14570if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14571 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14572Usually this means the macro was only invoked conditionally." "$LINENO" 5
14573fi
14574 if test -n "$EXEEXT"; then
14575 am__EXEEXT_TRUE=
14576 am__EXEEXT_FALSE='#'
14577else
14578 am__EXEEXT_TRUE='#'
14579 am__EXEEXT_FALSE=
13b2be9c 14580fi
81ecdfbb
RW
14581
14582
13b2be9c 14583if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14584 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14585Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14586fi
d5fbea21 14587if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14588 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14589Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14590fi
13b2be9c
DJ
14591
14592: ${CONFIG_STATUS=./config.status}
81ecdfbb 14593ac_write_fail=0
13b2be9c
DJ
14594ac_clean_files_save=$ac_clean_files
14595ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14597$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14598as_write_fail=0
14599cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14600#! $SHELL
14601# Generated by $as_me.
14602# Run this file to recreate the current configuration.
14603# Compiler output produced by configure, useful for debugging
14604# configure, is in config.log if it exists.
14605
14606debug=false
14607ac_cs_recheck=false
14608ac_cs_silent=false
13b2be9c 14609
81ecdfbb
RW
14610SHELL=\${CONFIG_SHELL-$SHELL}
14611export SHELL
14612_ASEOF
14613cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14614## -------------------- ##
14615## M4sh Initialization. ##
14616## -------------------- ##
13b2be9c 14617
81ecdfbb
RW
14618# Be more Bourne compatible
14619DUALCASE=1; export DUALCASE # for MKS sh
14620if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14621 emulate sh
14622 NULLCMD=:
81ecdfbb 14623 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14624 # is contrary to our usage. Disable this feature.
14625 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14626 setopt NO_GLOB_SUBST
14627else
14628 case `(set -o) 2>/dev/null` in #(
14629 *posix*) :
14630 set -o posix ;; #(
14631 *) :
14632 ;;
14633esac
13b2be9c
DJ
14634fi
14635
81ecdfbb
RW
14636
14637as_nl='
14638'
14639export as_nl
14640# Printing a long string crashes Solaris 7 /usr/bin/printf.
14641as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14642as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14643as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14644# Prefer a ksh shell builtin over an external printf program on Solaris,
14645# but without wasting forks for bash or zsh.
14646if test -z "$BASH_VERSION$ZSH_VERSION" \
14647 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14648 as_echo='print -r --'
14649 as_echo_n='print -rn --'
14650elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14651 as_echo='printf %s\n'
14652 as_echo_n='printf %s'
14653else
14654 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14655 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14656 as_echo_n='/usr/ucb/echo -n'
14657 else
14658 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14659 as_echo_n_body='eval
14660 arg=$1;
14661 case $arg in #(
14662 *"$as_nl"*)
14663 expr "X$arg" : "X\\(.*\\)$as_nl";
14664 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14665 esac;
14666 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14667 '
14668 export as_echo_n_body
14669 as_echo_n='sh -c $as_echo_n_body as_echo'
14670 fi
14671 export as_echo_body
14672 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14673fi
14674
81ecdfbb
RW
14675# The user is always right.
14676if test "${PATH_SEPARATOR+set}" != set; then
14677 PATH_SEPARATOR=:
14678 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14679 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14680 PATH_SEPARATOR=';'
14681 }
14682fi
14683
14684
14685# IFS
14686# We need space, tab and new line, in precisely that order. Quoting is
14687# there to prevent editors from complaining about space-tab.
14688# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14689# splitting by setting IFS to empty value.)
14690IFS=" "" $as_nl"
14691
14692# Find who we are. Look in the path if we contain no directory separator.
14693case $0 in #((
14694 *[\\/]* ) as_myself=$0 ;;
14695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14696for as_dir in $PATH
14697do
14698 IFS=$as_save_IFS
14699 test -z "$as_dir" && as_dir=.
14700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14701 done
14702IFS=$as_save_IFS
14703
14704 ;;
14705esac
14706# We did not find ourselves, most probably we were run as `sh COMMAND'
14707# in which case we are not to be found in the path.
14708if test "x$as_myself" = x; then
14709 as_myself=$0
14710fi
14711if test ! -f "$as_myself"; then
14712 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14713 exit 1
14714fi
13b2be9c 14715
81ecdfbb
RW
14716# Unset variables that we do not need and which cause bugs (e.g. in
14717# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14718# suppresses any "Segmentation fault" message there. '((' could
14719# trigger a bug in pdksh 5.2.14.
14720for as_var in BASH_ENV ENV MAIL MAILPATH
14721do eval test x\${$as_var+set} = xset \
14722 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14723done
13b2be9c
DJ
14724PS1='$ '
14725PS2='> '
14726PS4='+ '
14727
14728# NLS nuisances.
81ecdfbb
RW
14729LC_ALL=C
14730export LC_ALL
14731LANGUAGE=C
14732export LANGUAGE
14733
14734# CDPATH.
14735(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14736
14737
14738# as_fn_error ERROR [LINENO LOG_FD]
14739# ---------------------------------
14740# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14741# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14742# script with status $?, using 1 if that was 0.
14743as_fn_error ()
14744{
14745 as_status=$?; test $as_status -eq 0 && as_status=1
14746 if test "$3"; then
14747 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14748 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14749 fi
81ecdfbb
RW
14750 $as_echo "$as_me: error: $1" >&2
14751 as_fn_exit $as_status
14752} # as_fn_error
14753
14754
14755# as_fn_set_status STATUS
14756# -----------------------
14757# Set $? to STATUS, without forking.
14758as_fn_set_status ()
14759{
14760 return $1
14761} # as_fn_set_status
14762
14763# as_fn_exit STATUS
14764# -----------------
14765# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14766as_fn_exit ()
14767{
14768 set +e
14769 as_fn_set_status $1
14770 exit $1
14771} # as_fn_exit
14772
14773# as_fn_unset VAR
14774# ---------------
14775# Portably unset VAR.
14776as_fn_unset ()
14777{
14778 { eval $1=; unset $1;}
14779}
14780as_unset=as_fn_unset
14781# as_fn_append VAR VALUE
14782# ----------------------
14783# Append the text in VALUE to the end of the definition contained in VAR. Take
14784# advantage of any shell optimizations that allow amortized linear growth over
14785# repeated appends, instead of the typical quadratic growth present in naive
14786# implementations.
14787if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14788 eval 'as_fn_append ()
14789 {
14790 eval $1+=\$2
14791 }'
14792else
14793 as_fn_append ()
14794 {
14795 eval $1=\$$1\$2
14796 }
14797fi # as_fn_append
14798
14799# as_fn_arith ARG...
14800# ------------------
14801# Perform arithmetic evaluation on the ARGs, and store the result in the
14802# global $as_val. Take advantage of shells that can avoid forks. The arguments
14803# must be portable across $(()) and expr.
14804if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14805 eval 'as_fn_arith ()
14806 {
14807 as_val=$(( $* ))
14808 }'
14809else
14810 as_fn_arith ()
14811 {
14812 as_val=`expr "$@" || test $? -eq 1`
14813 }
14814fi # as_fn_arith
14815
13b2be9c 14816
81ecdfbb
RW
14817if expr a : '\(a\)' >/dev/null 2>&1 &&
14818 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14819 as_expr=expr
14820else
14821 as_expr=false
14822fi
14823
81ecdfbb 14824if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14825 as_basename=basename
14826else
14827 as_basename=false
14828fi
14829
81ecdfbb
RW
14830if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14831 as_dirname=dirname
14832else
14833 as_dirname=false
14834fi
13b2be9c 14835
81ecdfbb 14836as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14837$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14838 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14839 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14840$as_echo X/"$0" |
14841 sed '/^.*\/\([^/][^/]*\)\/*$/{
14842 s//\1/
14843 q
14844 }
14845 /^X\/\(\/\/\)$/{
14846 s//\1/
14847 q
14848 }
14849 /^X\/\(\/\).*/{
14850 s//\1/
14851 q
14852 }
14853 s/.*/./; q'`
13b2be9c 14854
13b2be9c
DJ
14855# Avoid depending upon Character Ranges.
14856as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14857as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14858as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14859as_cr_digits='0123456789'
14860as_cr_alnum=$as_cr_Letters$as_cr_digits
14861
81ecdfbb
RW
14862ECHO_C= ECHO_N= ECHO_T=
14863case `echo -n x` in #(((((
14864-n*)
14865 case `echo 'xy\c'` in
14866 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14867 xy) ECHO_C='\c';;
14868 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14869 ECHO_T=' ';;
14870 esac;;
14871*)
14872 ECHO_N='-n';;
13b2be9c 14873esac
252b5132 14874
81ecdfbb
RW
14875rm -f conf$$ conf$$.exe conf$$.file
14876if test -d conf$$.dir; then
14877 rm -f conf$$.dir/conf$$.file
252b5132 14878else
81ecdfbb
RW
14879 rm -f conf$$.dir
14880 mkdir conf$$.dir 2>/dev/null
252b5132 14881fi
81ecdfbb
RW
14882if (echo >conf$$.file) 2>/dev/null; then
14883 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 14884 as_ln_s='ln -s'
81ecdfbb
RW
14885 # ... but there are two gotchas:
14886 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14887 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14888 # In both cases, we have to default to `cp -p'.
14889 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14890 as_ln_s='cp -p'
14891 elif ln conf$$.file conf$$ 2>/dev/null; then
14892 as_ln_s=ln
14893 else
14894 as_ln_s='cp -p'
13b2be9c 14895 fi
13b2be9c
DJ
14896else
14897 as_ln_s='cp -p'
252b5132 14898fi
81ecdfbb
RW
14899rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14900rmdir conf$$.dir 2>/dev/null
252b5132 14901
81ecdfbb
RW
14902
14903# as_fn_mkdir_p
14904# -------------
14905# Create "$as_dir" as a directory, including parents if necessary.
14906as_fn_mkdir_p ()
14907{
14908
14909 case $as_dir in #(
14910 -*) as_dir=./$as_dir;;
14911 esac
14912 test -d "$as_dir" || eval $as_mkdir_p || {
14913 as_dirs=
14914 while :; do
14915 case $as_dir in #(
14916 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14917 *) as_qdir=$as_dir;;
14918 esac
14919 as_dirs="'$as_qdir' $as_dirs"
14920 as_dir=`$as_dirname -- "$as_dir" ||
14921$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14922 X"$as_dir" : 'X\(//\)[^/]' \| \
14923 X"$as_dir" : 'X\(//\)$' \| \
14924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14925$as_echo X"$as_dir" |
14926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14927 s//\1/
14928 q
14929 }
14930 /^X\(\/\/\)[^/].*/{
14931 s//\1/
14932 q
14933 }
14934 /^X\(\/\/\)$/{
14935 s//\1/
14936 q
14937 }
14938 /^X\(\/\).*/{
14939 s//\1/
14940 q
14941 }
14942 s/.*/./; q'`
14943 test -d "$as_dir" && break
14944 done
14945 test -z "$as_dirs" || eval "mkdir $as_dirs"
14946 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14947
14948
14949} # as_fn_mkdir_p
13b2be9c 14950if mkdir -p . 2>/dev/null; then
81ecdfbb 14951 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 14952else
ab509236 14953 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14954 as_mkdir_p=false
14955fi
81ecdfbb
RW
14956
14957if test -x / >/dev/null 2>&1; then
14958 as_test_x='test -x'
14959else
14960 if ls -dL / >/dev/null 2>&1; then
14961 as_ls_L_option=L
14962 else
14963 as_ls_L_option=
14964 fi
14965 as_test_x='
14966 eval sh -c '\''
14967 if test -d "$1"; then
14968 test -d "$1/.";
14969 else
14970 case $1 in #(
14971 -*)set "./$1";;
14972 esac;
14973 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14974 ???[sx]*):;;*)false;;esac;fi
14975 '\'' sh
14976 '
14977fi
14978as_executable_p=$as_test_x
252b5132 14979
13b2be9c 14980# Sed expression to map a string onto a valid CPP name.
ab509236 14981as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14982
13b2be9c 14983# Sed expression to map a string onto a valid variable name.
ab509236 14984as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14985
d6d788bd 14986
13b2be9c 14987exec 6>&1
81ecdfbb
RW
14988## ----------------------------------- ##
14989## Main body of $CONFIG_STATUS script. ##
14990## ----------------------------------- ##
14991_ASEOF
14992test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 14993
81ecdfbb
RW
14994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14995# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 14996# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14997# values after options handling.
14998ac_log="
91dc4e0a 14999This file was extended by gas $as_me 2.25.51, which was
81ecdfbb 15000generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 15001
13b2be9c
DJ
15002 CONFIG_FILES = $CONFIG_FILES
15003 CONFIG_HEADERS = $CONFIG_HEADERS
15004 CONFIG_LINKS = $CONFIG_LINKS
15005 CONFIG_COMMANDS = $CONFIG_COMMANDS
15006 $ $0 $@
252b5132 15007
81ecdfbb
RW
15008on `(hostname || uname -n) 2>/dev/null | sed 1q`
15009"
15010
13b2be9c 15011_ACEOF
252b5132 15012
81ecdfbb
RW
15013case $ac_config_files in *"
15014"*) set x $ac_config_files; shift; ac_config_files=$*;;
15015esac
13b2be9c 15016
81ecdfbb
RW
15017case $ac_config_headers in *"
15018"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15019esac
252b5132 15020
252b5132 15021
81ecdfbb
RW
15022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023# Files that config.status was made for.
15024config_files="$ac_config_files"
15025config_headers="$ac_config_headers"
15026config_commands="$ac_config_commands"
d6d788bd 15027
81ecdfbb 15028_ACEOF
252b5132 15029
81ecdfbb 15030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15031ac_cs_usage="\
81ecdfbb
RW
15032\`$as_me' instantiates files and other configuration actions
15033from templates according to the current configuration. Unless the files
15034and actions are specified as TAGs, all are instantiated by default.
252b5132 15035
81ecdfbb 15036Usage: $0 [OPTION]... [TAG]...
252b5132 15037
13b2be9c 15038 -h, --help print this help, then exit
81ecdfbb
RW
15039 -V, --version print version number and configuration settings, then exit
15040 -q, --quiet, --silent
15041 do not print progress messages
13b2be9c
DJ
15042 -d, --debug don't remove temporary files
15043 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15044 --file=FILE[:TEMPLATE]
15045 instantiate the configuration file FILE
15046 --header=FILE[:TEMPLATE]
15047 instantiate the configuration header FILE
252b5132 15048
13b2be9c
DJ
15049Configuration files:
15050$config_files
252b5132 15051
13b2be9c
DJ
15052Configuration headers:
15053$config_headers
252b5132 15054
13b2be9c
DJ
15055Configuration commands:
15056$config_commands
252b5132 15057
81ecdfbb 15058Report bugs to the package provider."
d6d788bd 15059
81ecdfbb
RW
15060_ACEOF
15061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15062ac_cs_version="\\
91dc4e0a 15063gas config.status 2.25.51
81ecdfbb
RW
15064configured by $0, generated by GNU Autoconf 2.64,
15065 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 15066
81ecdfbb 15067Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
15068This config.status script is free software; the Free Software Foundation
15069gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15070
15071ac_pwd='$ac_pwd'
15072srcdir='$srcdir'
15073INSTALL='$INSTALL'
15074MKDIR_P='$MKDIR_P'
15075AWK='$AWK'
15076test -n "\$AWK" || AWK=awk
13b2be9c 15077_ACEOF
d6d788bd 15078
81ecdfbb
RW
15079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15080# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15081ac_need_defaults=:
15082while test $# != 0
15083do
15084 case $1 in
15085 --*=*)
81ecdfbb
RW
15086 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15087 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15088 ac_shift=:
c8615825 15089 ;;
81ecdfbb 15090 *)
13b2be9c
DJ
15091 ac_option=$1
15092 ac_optarg=$2
15093 ac_shift=shift
c8615825 15094 ;;
13b2be9c 15095 esac
252b5132 15096
13b2be9c
DJ
15097 case $ac_option in
15098 # Handling of the options.
13b2be9c
DJ
15099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15100 ac_cs_recheck=: ;;
81ecdfbb
RW
15101 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15102 $as_echo "$ac_cs_version"; exit ;;
15103 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15104 debug=: ;;
15105 --file | --fil | --fi | --f )
15106 $ac_shift
81ecdfbb
RW
15107 case $ac_optarg in
15108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15109 esac
15110 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15111 ac_need_defaults=false;;
15112 --header | --heade | --head | --hea )
15113 $ac_shift
81ecdfbb
RW
15114 case $ac_optarg in
15115 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15116 esac
15117 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15118 ac_need_defaults=false;;
81ecdfbb
RW
15119 --he | --h)
15120 # Conflict between --help and --header
15121 as_fn_error "ambiguous option: \`$1'
15122Try \`$0 --help' for more information.";;
15123 --help | --hel | -h )
15124 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15126 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15127 ac_cs_silent=: ;;
c8615825 15128
13b2be9c 15129 # This is an error.
81ecdfbb
RW
15130 -*) as_fn_error "unrecognized option: \`$1'
15131Try \`$0 --help' for more information." ;;
252b5132 15132
81ecdfbb
RW
15133 *) as_fn_append ac_config_targets " $1"
15134 ac_need_defaults=false ;;
252b5132 15135
13b2be9c
DJ
15136 esac
15137 shift
15138done
252b5132 15139
13b2be9c 15140ac_configure_extra_args=
d6d788bd 15141
13b2be9c
DJ
15142if $ac_cs_silent; then
15143 exec 6>/dev/null
15144 ac_configure_extra_args="$ac_configure_extra_args --silent"
15145fi
9b2b7d69 15146
13b2be9c 15147_ACEOF
81ecdfbb 15148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15149if \$ac_cs_recheck; then
81ecdfbb
RW
15150 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15151 shift
15152 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15153 CONFIG_SHELL='$SHELL'
15154 export CONFIG_SHELL
15155 exec "\$@"
13b2be9c
DJ
15156fi
15157
15158_ACEOF
81ecdfbb
RW
15159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15160exec 5>>config.log
15161{
15162 echo
15163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15164## Running $as_me. ##
15165_ASBOX
15166 $as_echo "$ac_log"
15167} >&5
13b2be9c 15168
81ecdfbb
RW
15169_ACEOF
15170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15171#
81ecdfbb 15172# INIT-COMMANDS
9b2b7d69 15173#
13b2be9c 15174AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15175
15176
15177# The HP-UX ksh and POSIX shell print the target directory to stdout
15178# if CDPATH is set.
15179(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15180
15181sed_quote_subst='$sed_quote_subst'
15182double_quote_subst='$double_quote_subst'
15183delay_variable_subst='$delay_variable_subst'
3725885a
RW
15184macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15185macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15186enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15187enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15188pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15189enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15190SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15191ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15192host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15193host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15194host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15195build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15196build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15197build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15198SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15199Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15200GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15201EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15202FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15203LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15204NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15205LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15206max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15207ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15208exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15209lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15210lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15211lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15212reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15213reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15214OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15215deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15216file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15217AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15218AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15219STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15220RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15221old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15222old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15223old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15224lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15225CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15226CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15227compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15228GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15229lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15230lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15231lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15232lt_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"`'
15233objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15234MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15235lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15236lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15237lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15238lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15239lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15240need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15241DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15242NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15243LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15244OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15245OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15246libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15247shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15248extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15249archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15250enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15251export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15252whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15253compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15254old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15255old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15256archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15257archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15258module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15259module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15260with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15261allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15262no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15263hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15264hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15265hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15266hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15267hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15268hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15269hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15270hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15271inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15272link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15273fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15274always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15275export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15276exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15277include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15278prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15279file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15280variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15281need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15282need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15283version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15284runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15285shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15286shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15287libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15288library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15289soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15290install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15291postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15292postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15293finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15294finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15295hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15296sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15297sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15298hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15299enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15300enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15301enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15302old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15303striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15304
15305LTCC='$LTCC'
15306LTCFLAGS='$LTCFLAGS'
15307compiler='$compiler_DEFAULT'
15308
3725885a
RW
15309# A function that is used when there is no print builtin or printf.
15310func_fallback_echo ()
15311{
15312 eval 'cat <<_LTECHO_EOF
15313\$1
15314_LTECHO_EOF'
15315}
15316
d7040cdb 15317# Quote evaled strings.
3725885a
RW
15318for var in SHELL \
15319ECHO \
15320SED \
d7040cdb
SE
15321GREP \
15322EGREP \
15323FGREP \
15324LD \
15325NM \
15326LN_S \
15327lt_SP2NL \
15328lt_NL2SP \
15329reload_flag \
718a6fd8 15330OBJDUMP \
d7040cdb
SE
15331deplibs_check_method \
15332file_magic_cmd \
15333AR \
15334AR_FLAGS \
15335STRIP \
15336RANLIB \
15337CC \
15338CFLAGS \
15339compiler \
15340lt_cv_sys_global_symbol_pipe \
15341lt_cv_sys_global_symbol_to_cdecl \
15342lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15343lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15344lt_prog_compiler_no_builtin_flag \
df7b86aa 15345lt_prog_compiler_wl \
f2c621e4 15346lt_prog_compiler_pic \
d7040cdb
SE
15347lt_prog_compiler_static \
15348lt_cv_prog_compiler_c_o \
15349need_locks \
718a6fd8
SE
15350DSYMUTIL \
15351NMEDIT \
15352LIPO \
15353OTOOL \
15354OTOOL64 \
d7040cdb
SE
15355shrext_cmds \
15356export_dynamic_flag_spec \
15357whole_archive_flag_spec \
15358compiler_needs_object \
15359with_gnu_ld \
15360allow_undefined_flag \
15361no_undefined_flag \
15362hardcode_libdir_flag_spec \
15363hardcode_libdir_flag_spec_ld \
15364hardcode_libdir_separator \
f2c621e4 15365fix_srcfile_path \
d7040cdb
SE
15366exclude_expsyms \
15367include_expsyms \
15368file_list_spec \
15369variables_saved_for_relink \
15370libname_spec \
15371library_names_spec \
15372soname_spec \
3725885a 15373install_override_mode \
d7040cdb
SE
15374finish_eval \
15375old_striplib \
15376striplib; do
3725885a 15377 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15378 *[\\\\\\\`\\"\\\$]*)
3725885a 15379 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15380 ;;
15381 *)
15382 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15383 ;;
15384 esac
15385done
15386
15387# Double-quote double-evaled strings.
15388for var in reload_cmds \
15389old_postinstall_cmds \
15390old_postuninstall_cmds \
15391old_archive_cmds \
15392extract_expsyms_cmds \
15393old_archive_from_new_cmds \
15394old_archive_from_expsyms_cmds \
15395archive_cmds \
15396archive_expsym_cmds \
15397module_cmds \
15398module_expsym_cmds \
15399export_symbols_cmds \
15400prelink_cmds \
15401postinstall_cmds \
15402postuninstall_cmds \
15403finish_cmds \
15404sys_lib_search_path_spec \
15405sys_lib_dlsearch_path_spec; do
3725885a 15406 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15407 *[\\\\\\\`\\"\\\$]*)
3725885a 15408 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15409 ;;
15410 *)
15411 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15412 ;;
15413 esac
15414done
15415
d7040cdb
SE
15416ac_aux_dir='$ac_aux_dir'
15417xsi_shell='$xsi_shell'
15418lt_shell_append='$lt_shell_append'
15419
15420# See if we are running on zsh, and set the options which allow our
15421# commands through without removal of \ escapes INIT.
15422if test -n "\${ZSH_VERSION+set}" ; then
15423 setopt NO_GLOB_SUBST
15424fi
15425
15426
15427 PACKAGE='$PACKAGE'
15428 VERSION='$VERSION'
15429 TIMESTAMP='$TIMESTAMP'
15430 RM='$RM'
15431 ofile='$ofile'
15432
15433
15434
20e95c23
DJ
15435# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15436 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15437 # from automake.
15438 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15439 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15440 LINGUAS="${LINGUAS-%UNSET%}"
15441
13b2be9c
DJ
15442target_cpu_type=${target_cpu_type}
15443 cgen_cpu_prefix=${cgen_cpu_prefix}
15444 obj_format=${obj_format}
15445 te_file=${te_file}
15446
15447_ACEOF
15448
81ecdfbb 15449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15450
81ecdfbb 15451# Handling of arguments.
13b2be9c 15452for ac_config_target in $ac_config_targets
9b2b7d69 15453do
81ecdfbb
RW
15454 case $ac_config_target in
15455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15456 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15457 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15458 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15459 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15460 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15461 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15462 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15463 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15464 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15465
15466 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15467 esac
15468done
15469
81ecdfbb 15470
13b2be9c
DJ
15471# If the user did not use the arguments to specify the items to instantiate,
15472# then the envvar interface is used. Set only those that are not.
15473# We use the long form for the default assignment because of an extremely
15474# bizarre bug on SunOS 4.1.3.
15475if $ac_need_defaults; then
15476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15479fi
15480
15481# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15482# simply because there is no reason against having it here, and in addition,
13b2be9c 15483# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15484# Hook for its removal unless debugging.
15485# Note that there is a small window in which the directory will not be cleaned:
15486# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15487$debug ||
15488{
81ecdfbb
RW
15489 tmp=
15490 trap 'exit_status=$?
15491 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15492' 0
15493 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15494}
13b2be9c 15495# Create a (secure) tmp directory for tmp files.
9b2b7d69 15496
13b2be9c 15497{
81ecdfbb 15498 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15499 test -n "$tmp" && test -d "$tmp"
15500} ||
15501{
81ecdfbb
RW
15502 tmp=./conf$$-$RANDOM
15503 (umask 077 && mkdir "$tmp")
15504} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15505
15506# Set up the scripts for CONFIG_FILES section.
15507# No need to generate them if there are no CONFIG_FILES.
15508# This happens for instance with `./config.status config.h'.
15509if test -n "$CONFIG_FILES"; then
15510
15511
15512ac_cr=`echo X | tr X '\015'`
15513# On cygwin, bash can eat \r inside `` if the user requested igncr.
15514# But we know of no other shell where ac_cr would be empty at this
15515# point, so we can use a bashism as a fallback.
15516if test "x$ac_cr" = x; then
15517 eval ac_cr=\$\'\\r\'
15518fi
15519ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15520if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15521 ac_cs_awk_cr='\r'
15522else
15523 ac_cs_awk_cr=$ac_cr
15524fi
15525
15526echo 'BEGIN {' >"$tmp/subs1.awk" &&
15527_ACEOF
15528
15529
15530{
15531 echo "cat >conf$$subs.awk <<_ACEOF" &&
15532 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15533 echo "_ACEOF"
15534} >conf$$subs.sh ||
15535 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15536ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15537ac_delim='%!_!# '
15538for ac_last_try in false false false false false :; do
15539 . ./conf$$subs.sh ||
15540 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15541
15542 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15543 if test $ac_delim_n = $ac_delim_num; then
15544 break
15545 elif $ac_last_try; then
15546 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15547 else
15548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15549 fi
15550done
15551rm -f conf$$subs.sh
15552
15553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15554cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15555_ACEOF
15556sed -n '
15557h
15558s/^/S["/; s/!.*/"]=/
15559p
15560g
15561s/^[^!]*!//
15562:repl
15563t repl
15564s/'"$ac_delim"'$//
15565t delim
15566:nl
15567h
15568s/\(.\{148\}\).*/\1/
15569t more1
15570s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15571p
15572n
15573b repl
15574:more1
15575s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15576p
15577g
15578s/.\{148\}//
15579t nl
15580:delim
15581h
15582s/\(.\{148\}\).*/\1/
15583t more2
15584s/["\\]/\\&/g; s/^/"/; s/$/"/
15585p
15586b
15587:more2
15588s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15589p
15590g
15591s/.\{148\}//
15592t delim
15593' <conf$$subs.awk | sed '
15594/^[^""]/{
15595 N
15596 s/\n//
15597}
15598' >>$CONFIG_STATUS || ac_write_fail=1
15599rm -f conf$$subs.awk
15600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15601_ACAWK
15602cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15603 for (key in S) S_is_set[key] = 1
15604 FS = "\a"
15605
15606}
13b2be9c 15607{
81ecdfbb
RW
15608 line = $ 0
15609 nfields = split(line, field, "@")
15610 substed = 0
15611 len = length(field[1])
15612 for (i = 2; i < nfields; i++) {
15613 key = field[i]
15614 keylen = length(key)
15615 if (S_is_set[key]) {
15616 value = S[key]
15617 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15618 len += length(value) + length(field[++i])
15619 substed = 1
15620 } else
15621 len += 1 + keylen
15622 }
15623
15624 print line
13b2be9c 15625}
9b2b7d69 15626
81ecdfbb
RW
15627_ACAWK
15628_ACEOF
15629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15630if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15631 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15632else
15633 cat
15634fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15635 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15636_ACEOF
15637
81ecdfbb
RW
15638# VPATH may cause trouble with some makes, so we remove $(srcdir),
15639# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15640# trailing colons and then remove the whole line if VPATH becomes empty
15641# (actually we leave an empty line to preserve line numbers).
15642if test "x$srcdir" = x.; then
15643 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15644s/:*\$(srcdir):*/:/
15645s/:*\${srcdir}:*/:/
15646s/:*@srcdir@:*/:/
15647s/^\([^=]*=[ ]*\):*/\1/
15648s/:*$//
15649s/^[^=]*=[ ]*$//
15650}'
15651fi
15652
15653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15654fi # test -n "$CONFIG_FILES"
13b2be9c 15655
81ecdfbb
RW
15656# Set up the scripts for CONFIG_HEADERS section.
15657# No need to generate them if there are no CONFIG_HEADERS.
15658# This happens for instance with `./config.status Makefile'.
15659if test -n "$CONFIG_HEADERS"; then
15660cat >"$tmp/defines.awk" <<\_ACAWK ||
15661BEGIN {
15662_ACEOF
13b2be9c 15663
81ecdfbb
RW
15664# Transform confdefs.h into an awk script `defines.awk', embedded as
15665# here-document in config.status, that substitutes the proper values into
15666# config.h.in to produce config.h.
9b2b7d69 15667
81ecdfbb
RW
15668# Create a delimiter string that does not exist in confdefs.h, to ease
15669# handling of long lines.
15670ac_delim='%!_!# '
15671for ac_last_try in false false :; do
15672 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15673 if test -z "$ac_t"; then
15674 break
15675 elif $ac_last_try; then
15676 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15677 else
15678 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15679 fi
15680done
15681
15682# For the awk script, D is an array of macro values keyed by name,
15683# likewise P contains macro parameters if any. Preserve backslash
15684# newline sequences.
15685
15686ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15687sed -n '
15688s/.\{148\}/&'"$ac_delim"'/g
15689t rset
15690:rset
15691s/^[ ]*#[ ]*define[ ][ ]*/ /
15692t def
15693d
15694:def
15695s/\\$//
15696t bsnl
15697s/["\\]/\\&/g
15698s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15699D["\1"]=" \3"/p
15700s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15701d
15702:bsnl
15703s/["\\]/\\&/g
15704s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15705D["\1"]=" \3\\\\\\n"\\/p
15706t cont
15707s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15708t cont
15709d
15710:cont
15711n
15712s/.\{148\}/&'"$ac_delim"'/g
15713t clear
15714:clear
15715s/\\$//
15716t bsnlc
15717s/["\\]/\\&/g; s/^/"/; s/$/"/p
15718d
15719:bsnlc
15720s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15721b cont
15722' <confdefs.h | sed '
15723s/'"$ac_delim"'/"\\\
15724"/g' >>$CONFIG_STATUS || ac_write_fail=1
15725
15726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15727 for (key in D) D_is_set[key] = 1
15728 FS = "\a"
15729}
15730/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15731 line = \$ 0
15732 split(line, arg, " ")
15733 if (arg[1] == "#") {
15734 defundef = arg[2]
15735 mac1 = arg[3]
15736 } else {
15737 defundef = substr(arg[1], 2)
15738 mac1 = arg[2]
15739 }
15740 split(mac1, mac2, "(") #)
15741 macro = mac2[1]
15742 prefix = substr(line, 1, index(line, defundef) - 1)
15743 if (D_is_set[macro]) {
15744 # Preserve the white space surrounding the "#".
15745 print prefix "define", macro P[macro] D[macro]
15746 next
15747 } else {
15748 # Replace #undef with comments. This is necessary, for example,
15749 # in the case of _POSIX_SOURCE, which is predefined and required
15750 # on some systems where configure will not decide to define it.
15751 if (defundef == "undef") {
15752 print "/*", prefix defundef, macro, "*/"
15753 next
15754 }
15755 }
15756}
15757{ print }
15758_ACAWK
13b2be9c 15759_ACEOF
81ecdfbb
RW
15760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15761 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15762fi # test -n "$CONFIG_HEADERS"
13b2be9c 15763
81ecdfbb
RW
15764
15765eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15766shift
15767for ac_tag
15768do
15769 case $ac_tag in
15770 :[FHLC]) ac_mode=$ac_tag; continue;;
15771 esac
15772 case $ac_mode$ac_tag in
15773 :[FHL]*:*);;
15774 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15775 :[FH]-) ac_tag=-:-;;
15776 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15777 esac
15778 ac_save_IFS=$IFS
15779 IFS=:
15780 set x $ac_tag
15781 IFS=$ac_save_IFS
15782 shift
15783 ac_file=$1
15784 shift
15785
15786 case $ac_mode in
15787 :L) ac_source=$1;;
15788 :[FH])
15789 ac_file_inputs=
15790 for ac_f
15791 do
15792 case $ac_f in
15793 -) ac_f="$tmp/stdin";;
15794 *) # Look for the file first in the build tree, then in the source tree
15795 # (if the path is not absolute). The absolute path cannot be DOS-style,
15796 # because $ac_f cannot contain `:'.
15797 test -f "$ac_f" ||
15798 case $ac_f in
15799 [\\/$]*) false;;
15800 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15801 esac ||
15802 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15803 esac
15804 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15805 as_fn_append ac_file_inputs " '$ac_f'"
15806 done
15807
15808 # Let's still pretend it is `configure' which instantiates (i.e., don't
15809 # use $as_me), people would be surprised to read:
15810 # /* config.h. Generated by config.status. */
15811 configure_input='Generated from '`
15812 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15813 `' by configure.'
15814 if test x"$ac_file" != x-; then
15815 configure_input="$ac_file. $configure_input"
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15817$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15818 fi
81ecdfbb
RW
15819 # Neutralize special characters interpreted by sed in replacement strings.
15820 case $configure_input in #(
15821 *\&* | *\|* | *\\* )
15822 ac_sed_conf_input=`$as_echo "$configure_input" |
15823 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15824 *) ac_sed_conf_input=$configure_input;;
15825 esac
252b5132 15826
81ecdfbb
RW
15827 case $ac_tag in
15828 *:-:* | *:-) cat >"$tmp/stdin" \
15829 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15830 esac
15831 ;;
252b5132 15832 esac
9b2b7d69 15833
81ecdfbb 15834 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15835$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15836 X"$ac_file" : 'X\(//\)[^/]' \| \
15837 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15839$as_echo X"$ac_file" |
15840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15841 s//\1/
15842 q
15843 }
15844 /^X\(\/\/\)[^/].*/{
15845 s//\1/
15846 q
15847 }
15848 /^X\(\/\/\)$/{
15849 s//\1/
15850 q
15851 }
15852 /^X\(\/\).*/{
15853 s//\1/
15854 q
15855 }
15856 s/.*/./; q'`
15857 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15858 ac_builddir=.
15859
81ecdfbb
RW
15860case "$ac_dir" in
15861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15862*)
15863 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15864 # A ".." for each directory in $ac_dir_suffix.
15865 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15866 case $ac_top_builddir_sub in
15867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15869 esac ;;
15870esac
15871ac_abs_top_builddir=$ac_pwd
15872ac_abs_builddir=$ac_pwd$ac_dir_suffix
15873# for backward compatibility:
15874ac_top_builddir=$ac_top_build_prefix
9b2b7d69 15875
13b2be9c 15876case $srcdir in
81ecdfbb 15877 .) # We are building in place.
13b2be9c 15878 ac_srcdir=.
81ecdfbb
RW
15879 ac_top_srcdir=$ac_top_builddir_sub
15880 ac_abs_top_srcdir=$ac_pwd ;;
15881 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 15882 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15883 ac_top_srcdir=$srcdir
15884 ac_abs_top_srcdir=$srcdir ;;
15885 *) # Relative name.
15886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15887 ac_top_srcdir=$ac_top_build_prefix$srcdir
15888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 15889esac
81ecdfbb 15890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 15891
252b5132 15892
81ecdfbb
RW
15893 case $ac_mode in
15894 :F)
15895 #
15896 # CONFIG_FILE
15897 #
9b2b7d69 15898
13b2be9c
DJ
15899 case $INSTALL in
15900 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15901 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15902 esac
15903 ac_MKDIR_P=$MKDIR_P
15904 case $MKDIR_P in
15905 [\\/$]* | ?:[\\/]* ) ;;
15906 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 15907 esac
81ecdfbb 15908_ACEOF
9b2b7d69 15909
81ecdfbb
RW
15910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15911# If the template does not know about datarootdir, expand it.
15912# FIXME: This hack should be removed a few years after 2.60.
15913ac_datarootdir_hack=; ac_datarootdir_seen=
15914ac_sed_dataroot='
15915/datarootdir/ {
15916 p
15917 q
15918}
15919/@datadir@/p
15920/@docdir@/p
15921/@infodir@/p
15922/@localedir@/p
15923/@mandir@/p'
15924case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15925*datarootdir*) ac_datarootdir_seen=yes;;
15926*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15928$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15929_ACEOF
15930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 ac_datarootdir_hack='
15932 s&@datadir@&$datadir&g
15933 s&@docdir@&$docdir&g
15934 s&@infodir@&$infodir&g
15935 s&@localedir@&$localedir&g
15936 s&@mandir@&$mandir&g
15937 s&\\\${datarootdir}&$datarootdir&g' ;;
15938esac
13b2be9c 15939_ACEOF
81ecdfbb
RW
15940
15941# Neutralize VPATH when `$srcdir' = `.'.
15942# Shell code in configure.ac might set extrasub.
15943# FIXME: do we really want to maintain this feature?
15944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15945ac_sed_extra="$ac_vpsub
13b2be9c
DJ
15946$extrasub
15947_ACEOF
81ecdfbb 15948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
15949:t
15950/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15951s|@configure_input@|$ac_sed_conf_input|;t t
15952s&@top_builddir@&$ac_top_builddir_sub&;t t
15953s&@top_build_prefix@&$ac_top_build_prefix&;t t
15954s&@srcdir@&$ac_srcdir&;t t
15955s&@abs_srcdir@&$ac_abs_srcdir&;t t
15956s&@top_srcdir@&$ac_top_srcdir&;t t
15957s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15958s&@builddir@&$ac_builddir&;t t
15959s&@abs_builddir@&$ac_abs_builddir&;t t
15960s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15961s&@INSTALL@&$ac_INSTALL&;t t
15962s&@MKDIR_P@&$ac_MKDIR_P&;t t
15963$ac_datarootdir_hack
15964"
15965eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15966 || as_fn_error "could not create $ac_file" "$LINENO" 5
15967
15968test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15969 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15970 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15972which seems to be undefined. Please make sure it is defined." >&5
15973$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15974which seems to be undefined. Please make sure it is defined." >&2;}
15975
15976 rm -f "$tmp/stdin"
13b2be9c 15977 case $ac_file in
81ecdfbb
RW
15978 -) cat "$tmp/out" && rm -f "$tmp/out";;
15979 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15980 esac \
15981 || as_fn_error "could not create $ac_file" "$LINENO" 5
15982 ;;
15983 :H)
15984 #
15985 # CONFIG_HEADER
15986 #
13b2be9c 15987 if test x"$ac_file" != x-; then
81ecdfbb
RW
15988 {
15989 $as_echo "/* $configure_input */" \
15990 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15991 } >"$tmp/config.h" \
15992 || as_fn_error "could not create $ac_file" "$LINENO" 5
15993 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15995$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 15996 else
81ecdfbb
RW
15997 rm -f "$ac_file"
15998 mv "$tmp/config.h" "$ac_file" \
15999 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 16000 fi
13b2be9c 16001 else
81ecdfbb
RW
16002 $as_echo "/* $configure_input */" \
16003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16004 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 16005 fi
81ecdfbb
RW
16006# Compute "$ac_file"'s index in $config_headers.
16007_am_arg="$ac_file"
13b2be9c
DJ
16008_am_stamp_count=1
16009for _am_header in $config_headers :; do
16010 case $_am_header in
81ecdfbb 16011 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16012 break ;;
16013 * )
16014 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16015 esac
16016done
81ecdfbb
RW
16017echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16018$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16019 X"$_am_arg" : 'X\(//\)[^/]' \| \
16020 X"$_am_arg" : 'X\(//\)$' \| \
16021 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16022$as_echo X"$_am_arg" |
16023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16024 s//\1/
16025 q
16026 }
16027 /^X\(\/\/\)[^/].*/{
16028 s//\1/
16029 q
16030 }
16031 /^X\(\/\/\)$/{
16032 s//\1/
16033 q
16034 }
16035 /^X\(\/\).*/{
16036 s//\1/
16037 q
16038 }
16039 s/.*/./; q'`/stamp-h$_am_stamp_count
16040 ;;
ab509236 16041
81ecdfbb
RW
16042 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16043$as_echo "$as_me: executing $ac_file commands" >&6;}
16044 ;;
16045 esac
13b2be9c
DJ
16046
16047
81ecdfbb
RW
16048 case $ac_file$ac_mode in
16049 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16050 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16051 # are listed without --file. Let's play safe and only enable the eval
16052 # if we detect the quoting.
16053 case $CONFIG_FILES in
16054 *\'*) eval set x "$CONFIG_FILES" ;;
16055 *) set x $CONFIG_FILES ;;
16056 esac
16057 shift
16058 for mf
16059 do
16060 # Strip MF so we end up with the name of the file.
16061 mf=`echo "$mf" | sed -e 's/:.*$//'`
16062 # Check whether this is an Automake generated Makefile or not.
16063 # We used to match only the files named `Makefile.in', but
16064 # some people rename them; so instead we look at the file content.
16065 # Grep'ing the first line is not enough: some people post-process
16066 # each Makefile.in and add a new line on top of each file to say so.
16067 # Grep'ing the whole file is not good either: AIX grep has a line
16068 # limit of 2048, but all sed's we know have understand at least 4000.
16069 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16070 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16071$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16072 X"$mf" : 'X\(//\)[^/]' \| \
16073 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16074 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16075$as_echo X"$mf" |
16076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16077 s//\1/
16078 q
16079 }
16080 /^X\(\/\/\)[^/].*/{
16081 s//\1/
16082 q
16083 }
16084 /^X\(\/\/\)$/{
16085 s//\1/
16086 q
16087 }
16088 /^X\(\/\).*/{
16089 s//\1/
16090 q
16091 }
16092 s/.*/./; q'`
16093 else
16094 continue
16095 fi
16096 # Extract the definition of DEPDIR, am__include, and am__quote
16097 # from the Makefile without running `make'.
16098 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16099 test -z "$DEPDIR" && continue
16100 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16101 test -z "am__include" && continue
16102 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16103 # When using ansi2knr, U may be empty or an underscore; expand it
16104 U=`sed -n 's/^U = //p' < "$mf"`
16105 # Find all dependency output files, they are included files with
16106 # $(DEPDIR) in their names. We invoke sed twice because it is the
16107 # simplest approach to changing $(DEPDIR) to its actual value in the
16108 # expansion.
16109 for file in `sed -n "
16110 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16111 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16112 # Make sure the directory exists.
16113 test -f "$dirpart/$file" && continue
16114 fdir=`$as_dirname -- "$file" ||
13b2be9c 16115$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16116 X"$file" : 'X\(//\)[^/]' \| \
16117 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16118 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16119$as_echo X"$file" |
16120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16121 s//\1/
16122 q
16123 }
16124 /^X\(\/\/\)[^/].*/{
16125 s//\1/
16126 q
16127 }
16128 /^X\(\/\/\)$/{
16129 s//\1/
16130 q
16131 }
16132 /^X\(\/\).*/{
16133 s//\1/
16134 q
16135 }
16136 s/.*/./; q'`
16137 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16138 # echo "creating $dirpart/$file"
16139 echo '# dummy' > "$dirpart/$file"
13b2be9c 16140 done
13b2be9c 16141 done
81ecdfbb 16142}
d7040cdb 16143 ;;
81ecdfbb 16144 "libtool":C)
d7040cdb
SE
16145
16146 # See if we are running on zsh, and set the options which allow our
16147 # commands through without removal of \ escapes.
16148 if test -n "${ZSH_VERSION+set}" ; then
16149 setopt NO_GLOB_SUBST
16150 fi
16151
16152 cfgfile="${ofile}T"
16153 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16154 $RM "$cfgfile"
16155
16156 cat <<_LT_EOF >> "$cfgfile"
16157#! $SHELL
16158
16159# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16160# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16161# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16162# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16163#
718a6fd8 16164# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16165# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16166# Written by Gordon Matzigkeit, 1996
d7040cdb 16167#
718a6fd8 16168# This file is part of GNU Libtool.
d7040cdb 16169#
718a6fd8
SE
16170# GNU Libtool is free software; you can redistribute it and/or
16171# modify it under the terms of the GNU General Public License as
16172# published by the Free Software Foundation; either version 2 of
16173# the License, or (at your option) any later version.
d7040cdb 16174#
718a6fd8
SE
16175# As a special exception to the GNU General Public License,
16176# if you distribute this file as part of a program or library that
16177# is built using GNU Libtool, you may include this file under the
16178# same distribution terms that you use for the rest of that program.
d7040cdb 16179#
718a6fd8
SE
16180# GNU Libtool is distributed in the hope that it will be useful,
16181# but WITHOUT ANY WARRANTY; without even the implied warranty of
16182# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16183# GNU General Public License for more details.
d7040cdb 16184#
718a6fd8
SE
16185# You should have received a copy of the GNU General Public License
16186# along with GNU Libtool; see the file COPYING. If not, a copy
16187# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16188# obtained by writing to the Free Software Foundation, Inc.,
16189# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16190
16191
16192# The names of the tagged configurations supported by this script.
16193available_tags=""
16194
16195# ### BEGIN LIBTOOL CONFIG
16196
16197# Which release of libtool.m4 was used?
16198macro_version=$macro_version
16199macro_revision=$macro_revision
16200
16201# Whether or not to build shared libraries.
16202build_libtool_libs=$enable_shared
16203
16204# Whether or not to build static libraries.
16205build_old_libs=$enable_static
16206
16207# What type of objects to build.
16208pic_mode=$pic_mode
16209
16210# Whether or not to optimize for fast installation.
16211fast_install=$enable_fast_install
16212
3725885a
RW
16213# Shell to use when invoking shell scripts.
16214SHELL=$lt_SHELL
16215
16216# An echo program that protects backslashes.
16217ECHO=$lt_ECHO
16218
d7040cdb
SE
16219# The host system.
16220host_alias=$host_alias
16221host=$host
16222host_os=$host_os
16223
16224# The build system.
16225build_alias=$build_alias
16226build=$build
16227build_os=$build_os
16228
16229# A sed program that does not truncate output.
16230SED=$lt_SED
16231
16232# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16233Xsed="\$SED -e 1s/^X//"
16234
16235# A grep program that handles long lines.
16236GREP=$lt_GREP
16237
16238# An ERE matcher.
16239EGREP=$lt_EGREP
16240
16241# A literal string matcher.
16242FGREP=$lt_FGREP
16243
16244# A BSD- or MS-compatible name lister.
16245NM=$lt_NM
16246
16247# Whether we need soft or hard links.
16248LN_S=$lt_LN_S
16249
16250# What is the maximum length of a command?
16251max_cmd_len=$max_cmd_len
16252
16253# Object file suffix (normally "o").
16254objext=$ac_objext
16255
16256# Executable file suffix (normally "").
16257exeext=$exeext
16258
16259# whether the shell understands "unset".
16260lt_unset=$lt_unset
16261
16262# turn spaces into newlines.
16263SP2NL=$lt_lt_SP2NL
16264
16265# turn newlines into spaces.
16266NL2SP=$lt_lt_NL2SP
16267
718a6fd8
SE
16268# An object symbol dumper.
16269OBJDUMP=$lt_OBJDUMP
16270
d7040cdb
SE
16271# Method to check whether dependent libraries are shared objects.
16272deplibs_check_method=$lt_deplibs_check_method
16273
f2c621e4 16274# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16275file_magic_cmd=$lt_file_magic_cmd
16276
16277# The archiver.
16278AR=$lt_AR
16279AR_FLAGS=$lt_AR_FLAGS
16280
16281# A symbol stripping program.
16282STRIP=$lt_STRIP
16283
16284# Commands used to install an old-style archive.
16285RANLIB=$lt_RANLIB
16286old_postinstall_cmds=$lt_old_postinstall_cmds
16287old_postuninstall_cmds=$lt_old_postuninstall_cmds
16288
3725885a
RW
16289# Whether to use a lock for old archive extraction.
16290lock_old_archive_extraction=$lock_old_archive_extraction
16291
d7040cdb
SE
16292# A C compiler.
16293LTCC=$lt_CC
16294
16295# LTCC compiler flags.
16296LTCFLAGS=$lt_CFLAGS
16297
16298# Take the output of nm and produce a listing of raw symbols and C names.
16299global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16300
16301# Transform the output of nm in a proper C declaration.
16302global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16303
16304# Transform the output of nm in a C name address pair.
16305global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16306
718a6fd8
SE
16307# Transform the output of nm in a C name address pair when lib prefix is needed.
16308global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16309
d7040cdb
SE
16310# The name of the directory that contains temporary libtool files.
16311objdir=$objdir
16312
d7040cdb
SE
16313# Used to examine libraries when file_magic_cmd begins with "file".
16314MAGIC_CMD=$MAGIC_CMD
16315
16316# Must we lock files when doing compilation?
16317need_locks=$lt_need_locks
16318
718a6fd8
SE
16319# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16320DSYMUTIL=$lt_DSYMUTIL
16321
16322# Tool to change global to local symbols on Mac OS X.
16323NMEDIT=$lt_NMEDIT
16324
16325# Tool to manipulate fat objects and archives on Mac OS X.
16326LIPO=$lt_LIPO
16327
16328# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16329OTOOL=$lt_OTOOL
16330
16331# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16332OTOOL64=$lt_OTOOL64
16333
d7040cdb
SE
16334# Old archive suffix (normally "a").
16335libext=$libext
16336
16337# Shared library suffix (normally ".so").
16338shrext_cmds=$lt_shrext_cmds
16339
16340# The commands to extract the exported symbol list from a shared archive.
16341extract_expsyms_cmds=$lt_extract_expsyms_cmds
16342
16343# Variables whose values should be saved in libtool wrapper scripts and
16344# restored at link time.
16345variables_saved_for_relink=$lt_variables_saved_for_relink
16346
16347# Do we need the "lib" prefix for modules?
16348need_lib_prefix=$need_lib_prefix
16349
16350# Do we need a version for libraries?
16351need_version=$need_version
16352
16353# Library versioning type.
16354version_type=$version_type
16355
16356# Shared library runtime path variable.
16357runpath_var=$runpath_var
16358
16359# Shared library path variable.
16360shlibpath_var=$shlibpath_var
16361
16362# Is shlibpath searched before the hard-coded library search path?
16363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16364
16365# Format of library name prefix.
16366libname_spec=$lt_libname_spec
16367
16368# List of archive names. First name is the real one, the rest are links.
16369# The last name is the one that the linker finds with -lNAME
16370library_names_spec=$lt_library_names_spec
16371
16372# The coded name of the library, if different from the real name.
16373soname_spec=$lt_soname_spec
16374
3725885a
RW
16375# Permission mode override for installation of shared libraries.
16376install_override_mode=$lt_install_override_mode
16377
d7040cdb
SE
16378# Command to use after installation of a shared archive.
16379postinstall_cmds=$lt_postinstall_cmds
16380
16381# Command to use after uninstallation of a shared archive.
16382postuninstall_cmds=$lt_postuninstall_cmds
16383
16384# Commands used to finish a libtool library installation in a directory.
16385finish_cmds=$lt_finish_cmds
16386
16387# As "finish_cmds", except a single script fragment to be evaled but
16388# not shown.
16389finish_eval=$lt_finish_eval
16390
16391# Whether we should hardcode library paths into libraries.
16392hardcode_into_libs=$hardcode_into_libs
16393
16394# Compile-time system search path for libraries.
16395sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16396
16397# Run-time system search path for libraries.
16398sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16399
16400# Whether dlopen is supported.
16401dlopen_support=$enable_dlopen
16402
16403# Whether dlopen of programs is supported.
16404dlopen_self=$enable_dlopen_self
16405
16406# Whether dlopen of statically linked programs is supported.
16407dlopen_self_static=$enable_dlopen_self_static
16408
16409# Commands to strip libraries.
16410old_striplib=$lt_old_striplib
16411striplib=$lt_striplib
16412
16413
16414# The linker used to build libraries.
16415LD=$lt_LD
16416
3725885a
RW
16417# How to create reloadable object files.
16418reload_flag=$lt_reload_flag
16419reload_cmds=$lt_reload_cmds
16420
d7040cdb
SE
16421# Commands used to build an old-style archive.
16422old_archive_cmds=$lt_old_archive_cmds
16423
16424# A language specific compiler.
16425CC=$lt_compiler
16426
16427# Is the compiler the GNU compiler?
16428with_gcc=$GCC
16429
16430# Compiler flag to turn off builtin functions.
16431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16432
df7b86aa
NC
16433# How to pass a linker flag through the compiler.
16434wl=$lt_lt_prog_compiler_wl
16435
f2c621e4
AS
16436# Additional compiler flags for building library objects.
16437pic_flag=$lt_lt_prog_compiler_pic
16438
d7040cdb
SE
16439# Compiler flag to prevent dynamic linking.
16440link_static_flag=$lt_lt_prog_compiler_static
16441
16442# Does compiler simultaneously support -c and -o options?
16443compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16444
16445# Whether or not to add -lc for building shared libraries.
16446build_libtool_need_lc=$archive_cmds_need_lc
16447
16448# Whether or not to disallow shared libs when runtime libs are static.
16449allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16450
16451# Compiler flag to allow reflexive dlopens.
16452export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16453
16454# Compiler flag to generate shared objects directly from archives.
16455whole_archive_flag_spec=$lt_whole_archive_flag_spec
16456
16457# Whether the compiler copes with passing no objects directly.
16458compiler_needs_object=$lt_compiler_needs_object
16459
16460# Create an old-style archive from a shared archive.
16461old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16462
16463# Create a temporary old-style archive to link instead of a shared archive.
16464old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16465
16466# Commands used to build a shared archive.
16467archive_cmds=$lt_archive_cmds
16468archive_expsym_cmds=$lt_archive_expsym_cmds
16469
16470# Commands used to build a loadable module if different from building
16471# a shared archive.
16472module_cmds=$lt_module_cmds
16473module_expsym_cmds=$lt_module_expsym_cmds
16474
16475# Whether we are building with GNU ld or not.
16476with_gnu_ld=$lt_with_gnu_ld
16477
16478# Flag that allows shared libraries with undefined symbols to be built.
16479allow_undefined_flag=$lt_allow_undefined_flag
16480
16481# Flag that enforces no undefined symbols.
16482no_undefined_flag=$lt_no_undefined_flag
16483
16484# Flag to hardcode \$libdir into a binary during linking.
16485# This must work even if \$libdir does not exist
16486hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16487
16488# If ld is used when linking, flag to hardcode \$libdir into a binary
16489# during linking. This must work even if \$libdir does not exist.
16490hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16491
16492# Whether we need a single "-rpath" flag with a separated argument.
16493hardcode_libdir_separator=$lt_hardcode_libdir_separator
16494
16495# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16496# DIR into the resulting binary.
16497hardcode_direct=$hardcode_direct
16498
16499# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16500# DIR into the resulting binary and the resulting library dependency is
16501# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16502# library is relocated.
16503hardcode_direct_absolute=$hardcode_direct_absolute
16504
16505# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16506# into the resulting binary.
16507hardcode_minus_L=$hardcode_minus_L
16508
16509# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16510# into the resulting binary.
16511hardcode_shlibpath_var=$hardcode_shlibpath_var
16512
16513# Set to "yes" if building a shared library automatically hardcodes DIR
16514# into the library and all subsequent libraries and executables linked
16515# against it.
16516hardcode_automatic=$hardcode_automatic
16517
16518# Set to yes if linker adds runtime paths of dependent libraries
16519# to runtime path list.
16520inherit_rpath=$inherit_rpath
16521
16522# Whether libtool must link a program against all its dependency libraries.
16523link_all_deplibs=$link_all_deplibs
16524
f2c621e4
AS
16525# Fix the shell variable \$srcfile for the compiler.
16526fix_srcfile_path=$lt_fix_srcfile_path
16527
d7040cdb
SE
16528# Set to "yes" if exported symbols are required.
16529always_export_symbols=$always_export_symbols
16530
16531# The commands to list exported symbols.
16532export_symbols_cmds=$lt_export_symbols_cmds
16533
16534# Symbols that should not be listed in the preloaded symbols.
16535exclude_expsyms=$lt_exclude_expsyms
16536
16537# Symbols that must always be exported.
16538include_expsyms=$lt_include_expsyms
16539
16540# Commands necessary for linking programs (against libraries) with templates.
16541prelink_cmds=$lt_prelink_cmds
16542
16543# Specify filename containing input files.
16544file_list_spec=$lt_file_list_spec
16545
16546# How to hardcode a shared library path into an executable.
16547hardcode_action=$hardcode_action
16548
16549# ### END LIBTOOL CONFIG
16550
16551_LT_EOF
16552
16553 case $host_os in
16554 aix3*)
16555 cat <<\_LT_EOF >> "$cfgfile"
16556# AIX sometimes has problems with the GCC collect2 program. For some
16557# reason, if we set the COLLECT_NAMES environment variable, the problems
16558# vanish in a puff of smoke.
16559if test "X${COLLECT_NAMES+set}" != Xset; then
16560 COLLECT_NAMES=
16561 export COLLECT_NAMES
16562fi
16563_LT_EOF
16564 ;;
16565 esac
16566
16567
16568ltmain="$ac_aux_dir/ltmain.sh"
16569
16570
16571 # We use sed instead of cat because bash on DJGPP gets confused if
16572 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16573 # text mode, it properly converts lines to CR/LF. This bash problem
16574 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16575 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16576 || (rm -f "$cfgfile"; exit 1)
16577
16578 case $xsi_shell in
16579 yes)
16580 cat << \_LT_EOF >> "$cfgfile"
16581
16582# func_dirname file append nondir_replacement
16583# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16584# otherwise set result to NONDIR_REPLACEMENT.
16585func_dirname ()
16586{
16587 case ${1} in
16588 */*) func_dirname_result="${1%/*}${2}" ;;
16589 * ) func_dirname_result="${3}" ;;
16590 esac
16591}
16592
16593# func_basename file
16594func_basename ()
16595{
16596 func_basename_result="${1##*/}"
16597}
16598
16599# func_dirname_and_basename file append nondir_replacement
16600# perform func_basename and func_dirname in a single function
16601# call:
16602# dirname: Compute the dirname of FILE. If nonempty,
16603# add APPEND to the result, otherwise set result
16604# to NONDIR_REPLACEMENT.
16605# value returned in "$func_dirname_result"
16606# basename: Compute filename of FILE.
16607# value retuned in "$func_basename_result"
16608# Implementation must be kept synchronized with func_dirname
16609# and func_basename. For efficiency, we do not delegate to
16610# those functions but instead duplicate the functionality here.
16611func_dirname_and_basename ()
16612{
16613 case ${1} in
16614 */*) func_dirname_result="${1%/*}${2}" ;;
16615 * ) func_dirname_result="${3}" ;;
16616 esac
16617 func_basename_result="${1##*/}"
16618}
16619
16620# func_stripname prefix suffix name
16621# strip PREFIX and SUFFIX off of NAME.
16622# PREFIX and SUFFIX must not contain globbing or regex special
16623# characters, hashes, percent signs, but SUFFIX may contain a leading
16624# dot (in which case that matches only a dot).
16625func_stripname ()
16626{
16627 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16628 # positional parameters, so assign one to ordinary parameter first.
16629 func_stripname_result=${3}
16630 func_stripname_result=${func_stripname_result#"${1}"}
16631 func_stripname_result=${func_stripname_result%"${2}"}
16632}
16633
16634# func_opt_split
16635func_opt_split ()
16636{
16637 func_opt_split_opt=${1%%=*}
16638 func_opt_split_arg=${1#*=}
16639}
16640
16641# func_lo2o object
16642func_lo2o ()
16643{
16644 case ${1} in
16645 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16646 *) func_lo2o_result=${1} ;;
16647 esac
16648}
16649
16650# func_xform libobj-or-source
16651func_xform ()
16652{
16653 func_xform_result=${1%.*}.lo
16654}
16655
16656# func_arith arithmetic-term...
16657func_arith ()
16658{
16659 func_arith_result=$(( $* ))
16660}
16661
16662# func_len string
16663# STRING may not start with a hyphen.
16664func_len ()
16665{
16666 func_len_result=${#1}
16667}
16668
16669_LT_EOF
16670 ;;
16671 *) # Bourne compatible functions.
16672 cat << \_LT_EOF >> "$cfgfile"
16673
16674# func_dirname file append nondir_replacement
16675# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16676# otherwise set result to NONDIR_REPLACEMENT.
16677func_dirname ()
16678{
16679 # Extract subdirectory from the argument.
16680 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16681 if test "X$func_dirname_result" = "X${1}"; then
16682 func_dirname_result="${3}"
16683 else
16684 func_dirname_result="$func_dirname_result${2}"
16685 fi
16686}
16687
16688# func_basename file
16689func_basename ()
16690{
16691 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16692}
16693
16694
16695# func_stripname prefix suffix name
16696# strip PREFIX and SUFFIX off of NAME.
16697# PREFIX and SUFFIX must not contain globbing or regex special
16698# characters, hashes, percent signs, but SUFFIX may contain a leading
16699# dot (in which case that matches only a dot).
16700# func_strip_suffix prefix name
16701func_stripname ()
16702{
16703 case ${2} in
16704 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16705 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16706 esac
16707}
16708
16709# sed scripts:
16710my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16711my_sed_long_arg='1s/^-[^=]*=//'
16712
16713# func_opt_split
16714func_opt_split ()
16715{
16716 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16717 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16718}
16719
16720# func_lo2o object
16721func_lo2o ()
16722{
16723 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16724}
16725
16726# func_xform libobj-or-source
16727func_xform ()
16728{
16729 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16730}
16731
16732# func_arith arithmetic-term...
16733func_arith ()
16734{
16735 func_arith_result=`expr "$@"`
16736}
16737
16738# func_len string
16739# STRING may not start with a hyphen.
16740func_len ()
16741{
16742 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16743}
16744
16745_LT_EOF
16746esac
16747
16748case $lt_shell_append in
16749 yes)
16750 cat << \_LT_EOF >> "$cfgfile"
16751
16752# func_append var value
16753# Append VALUE to the end of shell variable VAR.
16754func_append ()
16755{
16756 eval "$1+=\$2"
16757}
16758_LT_EOF
16759 ;;
16760 *)
16761 cat << \_LT_EOF >> "$cfgfile"
16762
16763# func_append var value
16764# Append VALUE to the end of shell variable VAR.
16765func_append ()
16766{
16767 eval "$1=\$$1\$2"
16768}
16769
16770_LT_EOF
16771 ;;
16772 esac
16773
16774
16775 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16776 || (rm -f "$cfgfile"; exit 1)
16777
16778 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16780 chmod +x "$ofile"
16781
13b2be9c 16782 ;;
81ecdfbb 16783 "default-1":C)
20e95c23
DJ
16784 for ac_file in $CONFIG_FILES; do
16785 # Support "outfile[:infile[:infile...]]"
16786 case "$ac_file" in
16787 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16788 esac
16789 # PO directories have a Makefile.in generated from Makefile.in.in.
16790 case "$ac_file" in */Makefile.in)
16791 # Adjust a relative srcdir.
16792 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16793 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16794 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16795 # In autoconf-2.13 it is called $ac_given_srcdir.
16796 # In autoconf-2.50 it is called $srcdir.
16797 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16798 case "$ac_given_srcdir" in
16799 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16800 /*) top_srcdir="$ac_given_srcdir" ;;
16801 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16802 esac
16803 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16804 rm -f "$ac_dir/POTFILES"
16805 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16806 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16807 POMAKEFILEDEPS="POTFILES.in"
16808 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16809 # on $ac_dir but don't depend on user-specified configuration
16810 # parameters.
16811 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16812 # The LINGUAS file contains the set of available languages.
16813 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16814 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16815 fi
16816 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16817 # Hide the ALL_LINGUAS assigment from automake.
16818 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16819 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16820 else
16821 # The set of available languages was given in configure.in.
16822 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16823 fi
16824 case "$ac_given_srcdir" in
16825 .) srcdirpre= ;;
16826 *) srcdirpre='$(srcdir)/' ;;
16827 esac
16828 POFILES=
16829 GMOFILES=
16830 UPDATEPOFILES=
16831 DUMMYPOFILES=
16832 for lang in $ALL_LINGUAS; do
16833 POFILES="$POFILES $srcdirpre$lang.po"
16834 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16835 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16836 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16837 done
16838 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16839 # environment variable.
16840 INST_LINGUAS=
16841 if test -n "$ALL_LINGUAS"; then
16842 for presentlang in $ALL_LINGUAS; do
16843 useit=no
16844 if test "%UNSET%" != "$LINGUAS"; then
16845 desiredlanguages="$LINGUAS"
16846 else
16847 desiredlanguages="$ALL_LINGUAS"
16848 fi
16849 for desiredlang in $desiredlanguages; do
16850 # Use the presentlang catalog if desiredlang is
16851 # a. equal to presentlang, or
16852 # b. a variant of presentlang (because in this case,
16853 # presentlang can be used as a fallback for messages
16854 # which are not translated in the desiredlang catalog).
16855 case "$desiredlang" in
16856 "$presentlang"*) useit=yes;;
16857 esac
16858 done
16859 if test $useit = yes; then
16860 INST_LINGUAS="$INST_LINGUAS $presentlang"
16861 fi
16862 done
16863 fi
16864 CATALOGS=
16865 if test -n "$INST_LINGUAS"; then
16866 for lang in $INST_LINGUAS; do
16867 CATALOGS="$CATALOGS $lang.gmo"
16868 done
16869 fi
16870 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16871 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"
16872 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16873 if test -f "$f"; then
16874 case "$f" in
16875 *.orig | *.bak | *~) ;;
16876 *) cat "$f" >> "$ac_dir/Makefile" ;;
16877 esac
16878 fi
16879 done
16880 fi
16881 ;;
16882 esac
16883 done ;;
81ecdfbb 16884 "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
16885 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16886 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16887 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16888 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16889 if test "x$cgen_cpu_prefix" != x ; then
16890 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16891 fi ;;
81ecdfbb 16892
13b2be9c 16893 esac
81ecdfbb 16894done # for ac_tag
13b2be9c 16895
13b2be9c 16896
81ecdfbb 16897as_fn_exit 0
13b2be9c 16898_ACEOF
13b2be9c
DJ
16899ac_clean_files=$ac_clean_files_save
16900
81ecdfbb
RW
16901test $ac_write_fail = 0 ||
16902 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16903
13b2be9c
DJ
16904
16905# configure is writing to config.log, and then calls config.status.
16906# config.status does its own redirection, appending to config.log.
16907# Unfortunately, on DOS this fails, as config.log is still kept open
16908# by configure, so config.status won't be able to write to it; its
16909# output is simply discarded. So we exec the FD to /dev/null,
16910# effectively closing config.log, so it can be properly (re)opened and
16911# appended to by config.status. When coming back to configure, we
16912# need to make the FD available again.
16913if test "$no_create" != yes; then
16914 ac_cs_success=:
16915 ac_config_status_args=
16916 test "$silent" = yes &&
16917 ac_config_status_args="$ac_config_status_args --quiet"
16918 exec 5>/dev/null
16919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16920 exec 5>>config.log
16921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16922 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16923 $ac_cs_success || as_fn_exit $?
16924fi
16925if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16927$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 16928fi
252b5132 16929
This page took 1.844308 seconds and 4 git commands to generate.