* warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
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.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 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
605LIBM
606ALLOCA
607GENINSRC_NEVER_FALSE
608GENINSRC_NEVER_TRUE
609MAINT
610MAINTAINER_MODE_FALSE
611MAINTAINER_MODE_TRUE
612MSGMERGE
613MSGFMT
614MKINSTALLDIRS
615CATOBJEXT
616GENCAT
617INSTOBJEXT
618DATADIRNAME
619CATALOGS
620POSUB
621GMSGFMT
622XGETTEXT
623INCINTL
624LIBINTL_DEP
625LIBINTL
626USE_NLS
627LEXLIB
628LEX_OUTPUT_ROOT
629LEX
630YFLAGS
631YACC
632OPCODES_LIB
633atof
634install_tooldir
635te_file
636obj_format
637target_cpu_type
638extra_objects
639cgen_cpu_prefix
640GDBINIT
641NO_WERROR
642WARN_CFLAGS
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
81ecdfbb
RW
648RANLIB
649AR
650OBJDUMP
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657SED
658LIBTOOL
659EGREP
660GREP
661CPP
662am__fastdepCC_FALSE
663am__fastdepCC_TRUE
664CCDEPMODE
665AMDEPBACKSLASH
666AMDEP_FALSE
667AMDEP_TRUE
668am__quote
669am__include
670DEPDIR
671am__untar
672am__tar
673AMTAR
674am__leading_dot
675SET_MAKE
676AWK
677mkdir_p
678MKDIR_P
679INSTALL_STRIP_PROGRAM
680STRIP
681install_sh
682MAKEINFO
683AUTOHEADER
684AUTOMAKE
685AUTOCONF
686ACLOCAL
687VERSION
688PACKAGE
689CYGPATH_W
690am__isrc
691INSTALL_DATA
692INSTALL_SCRIPT
693INSTALL_PROGRAM
694OBJEXT
695EXEEXT
696ac_ct_CC
697CPPFLAGS
698LDFLAGS
699CFLAGS
700CC
701target_os
702target_vendor
703target_cpu
704target
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713target_alias
714host_alias
715build_alias
716LIBS
717ECHO_T
718ECHO_N
719ECHO_C
720DEFS
721mandir
722localedir
723libdir
724psdir
725pdfdir
726dvidir
727htmldir
728infodir
729docdir
730oldincludedir
731includedir
732localstatedir
733sharedstatedir
734sysconfdir
735datadir
736datarootdir
737libexecdir
738sbindir
739bindir
740program_transform_name
741prefix
742exec_prefix
743PACKAGE_URL
744PACKAGE_BUGREPORT
745PACKAGE_STRING
746PACKAGE_VERSION
747PACKAGE_TARNAME
748PACKAGE_NAME
749PATH_SEPARATOR
750SHELL'
13b2be9c 751ac_subst_files=''
81ecdfbb
RW
752ac_user_opts='
753enable_option_checking
754enable_dependency_tracking
da2f07f1 755enable_plugins
81ecdfbb
RW
756enable_largefile
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762enable_libtool_lock
763enable_targets
764enable_checking
765enable_werror
766enable_build_warnings
767enable_nls
768enable_maintainer_mode
769'
770 ac_precious_vars='build_alias
771host_alias
772target_alias
773CC
774CFLAGS
775LDFLAGS
776LIBS
777CPPFLAGS
778CPP
779YACC
780YFLAGS'
781
252b5132
RH
782
783# Initialize some variables set by options.
13b2be9c
DJ
784ac_init_help=
785ac_init_version=false
81ecdfbb
RW
786ac_unrecognized_opts=
787ac_unrecognized_sep=
252b5132
RH
788# The variables have the same names as the options, with
789# dashes changed to underlines.
13b2be9c 790cache_file=/dev/null
252b5132 791exec_prefix=NONE
252b5132 792no_create=
252b5132
RH
793no_recursion=
794prefix=NONE
795program_prefix=NONE
796program_suffix=NONE
797program_transform_name=s,x,x,
798silent=
799site=
800srcdir=
252b5132
RH
801verbose=
802x_includes=NONE
803x_libraries=NONE
13b2be9c
DJ
804
805# Installation directory options.
806# These are left unexpanded so users can "make install exec_prefix=/foo"
807# and all the variables that are supposed to be based on exec_prefix
808# by default will actually change.
809# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 810# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
811bindir='${exec_prefix}/bin'
812sbindir='${exec_prefix}/sbin'
813libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
814datarootdir='${prefix}/share'
815datadir='${datarootdir}'
252b5132
RH
816sysconfdir='${prefix}/etc'
817sharedstatedir='${prefix}/com'
818localstatedir='${prefix}/var'
252b5132
RH
819includedir='${prefix}/include'
820oldincludedir='/usr/include'
81ecdfbb
RW
821docdir='${datarootdir}/doc/${PACKAGE}'
822infodir='${datarootdir}/info'
823htmldir='${docdir}'
824dvidir='${docdir}'
825pdfdir='${docdir}'
826psdir='${docdir}'
827libdir='${exec_prefix}/lib'
828localedir='${datarootdir}/locale'
829mandir='${datarootdir}/man'
252b5132 830
252b5132 831ac_prev=
81ecdfbb 832ac_dashdash=
252b5132
RH
833for ac_option
834do
252b5132
RH
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
81ecdfbb 837 eval $ac_prev=\$ac_option
252b5132
RH
838 ac_prev=
839 continue
840 fi
841
81ecdfbb
RW
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
252b5132
RH
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
81ecdfbb
RW
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
252b5132
RH
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 856 bindir=$ac_optarg ;;
252b5132
RH
857
858 -build | --build | --buil | --bui | --bu)
13b2be9c 859 ac_prev=build_alias ;;
252b5132 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 861 build_alias=$ac_optarg ;;
252b5132
RH
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
252b5132 872
81ecdfbb 873 -datadir | --datadir | --datadi | --datad)
252b5132 874 ac_prev=datadir ;;
81ecdfbb 875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 876 datadir=$ac_optarg ;;
252b5132 877
81ecdfbb
RW
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
252b5132 885 -disable-* | --disable-*)
81ecdfbb 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 887 # Reject names that are not valid shell variable names.
81ecdfbb
RW
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
252b5132
RH
910
911 -enable-* | --enable-*)
81ecdfbb 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 913 # Reject names that are not valid shell variable names.
81ecdfbb
RW
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
252b5132 924 esac
81ecdfbb 925 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
13b2be9c 934 exec_prefix=$ac_optarg ;;
252b5132
RH
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
13b2be9c
DJ
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
252b5132
RH
946
947 -host | --host | --hos | --ho)
13b2be9c 948 ac_prev=host_alias ;;
252b5132 949 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 950 host_alias=$ac_optarg ;;
252b5132 951
81ecdfbb
RW
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
252b5132
RH
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 963 includedir=$ac_optarg ;;
252b5132
RH
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 968 infodir=$ac_optarg ;;
252b5132
RH
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 973 libdir=$ac_optarg ;;
252b5132
RH
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
13b2be9c 980 libexecdir=$ac_optarg ;;
252b5132 981
81ecdfbb
RW
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
252b5132 987 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 988 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 992 localstatedir=$ac_optarg ;;
252b5132
RH
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 997 mandir=$ac_optarg ;;
252b5132
RH
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1004 | --no-cr | --no-c | -n)
252b5132
RH
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1018 oldincludedir=$ac_optarg ;;
252b5132
RH
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1023 prefix=$ac_optarg ;;
252b5132
RH
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1030 program_prefix=$ac_optarg ;;
252b5132
RH
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1037 program_suffix=$ac_optarg ;;
252b5132
RH
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1054 program_transform_name=$ac_optarg ;;
252b5132 1055
81ecdfbb
RW
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
252b5132
RH
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
13b2be9c 1074 sbindir=$ac_optarg ;;
252b5132
RH
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
13b2be9c 1085 sharedstatedir=$ac_optarg ;;
252b5132
RH
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
13b2be9c 1090 site=$ac_optarg ;;
76bff705 1091
252b5132
RH
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1095 srcdir=$ac_optarg ;;
252b5132
RH
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1102 sysconfdir=$ac_optarg ;;
252b5132
RH
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1105 ac_prev=target_alias ;;
252b5132 1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1107 target_alias=$ac_optarg ;;
252b5132
RH
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
13b2be9c
DJ
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
252b5132
RH
1114
1115 -with-* | --with-*)
81ecdfbb 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1117 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
252b5132 1128 esac
81ecdfbb 1129 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1130
1131 -without-* | --without-*)
81ecdfbb 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1133 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
252b5132
RH
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1156 x_includes=$ac_optarg ;;
252b5132
RH
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1163 x_libraries=$ac_optarg ;;
252b5132 1164
81ecdfbb
RW
1165 -*) as_fn_error "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information."
252b5132
RH
1167 ;;
1168
13b2be9c
DJ
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1177 export $ac_envvar ;;
1178
252b5132 1179 *)
13b2be9c 1180 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
13b2be9c 1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1185 ;;
1186
1187 esac
1188done
1189
1190if test -n "$ac_prev"; then
13b2be9c 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1192 as_fn_error "missing argument to $ac_option"
c8615825 1193fi
c8615825 1194
81ecdfbb
RW
1195if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1200 esac
81ecdfbb 1201fi
252b5132 1202
81ecdfbb
RW
1203# Check all directory arguments for consistency.
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
252b5132 1208do
81ecdfbb
RW
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
13b2be9c 1217 case $ac_val in
81ecdfbb
RW
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1220 esac
81ecdfbb 1221 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1222done
1223
13b2be9c
DJ
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
81ecdfbb 1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
13b2be9c
DJ
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1239 fi
1240fi
9b2b7d69 1241
13b2be9c
DJ
1242ac_tool_prefix=
1243test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245test "$silent" = yes && exec 6>/dev/null
252b5132 1246
252b5132 1247
81ecdfbb
RW
1248ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249ac_ls_di=`ls -di .` &&
1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error "working directory cannot be determined"
1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error "pwd does not report name of working directory"
1254
1255
252b5132
RH
1256# Find the source files, if location was not specified.
1257if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
81ecdfbb
RW
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265$as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)$/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\).*/{
1279 s//\1/
1280 q
1281 }
1282 s/.*/./; q'`
252b5132 1283 srcdir=$ac_confdir
81ecdfbb 1284 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1285 srcdir=..
1286 fi
1287else
1288 ac_srcdir_defaulted=no
1289fi
81ecdfbb
RW
1290if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1293fi
1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 pwd)`
1298# When building in place, set srcdir=.
1299if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1301fi
1302# Remove unnecessary trailing slashes from srcdir.
1303# Double slashes in file names in object file debugging info
1304# mess up M-x gdb in Emacs.
1305case $srcdir in
1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307esac
1308for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313done
d6d788bd 1314
13b2be9c
DJ
1315#
1316# Report the --help message.
1317#
1318if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322\`configure' configures this package to adapt to many kinds of systems.
9b2b7d69 1323
13b2be9c 1324Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1325
13b2be9c
DJ
1326To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1328
13b2be9c 1329Defaults for the options are specified in brackets.
9b2b7d69 1330
13b2be9c
DJ
1331Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341
13b2be9c
DJ
1342Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1344 [$ac_default_prefix]
13b2be9c 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1346 [PREFIX]
9b2b7d69 1347
13b2be9c
DJ
1348By default, \`make install' will install all the files in
1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351for instance \`--prefix=\$HOME'.
9b2b7d69 1352
13b2be9c 1353For better control, use the options below.
9b2b7d69 1354
13b2be9c 1355Fine tuning of the installation directories:
81ecdfbb
RW
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1375_ACEOF
9b2b7d69 1376
13b2be9c 1377 cat <<\_ACEOF
9b2b7d69 1378
13b2be9c
DJ
1379Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1383
13b2be9c
DJ
1384System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1388_ACEOF
9b2b7d69 1389fi
9b2b7d69 1390
13b2be9c 1391if test -n "$ac_init_help"; then
9b2b7d69 1392
13b2be9c 1393 cat <<\_ACEOF
9b2b7d69 1394
13b2be9c 1395Optional Features:
81ecdfbb 1396 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
ab509236
L
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
da2f07f1 1401 --enable-plugins Enable support for plugins (defaults no)
d053aef8 1402 --disable-largefile omit support for large files
81ecdfbb
RW
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
13b2be9c 1407 --disable-libtool-lock avoid locking (might break parallel builds)
241a6c40 1408 --enable-targets alternative target configurations besides the primary
c43a438d 1409 --enable-checking enable run-time checks
241a6c40
AM
1410 --enable-werror treat compile warnings as errors
1411 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1412 --disable-nls do not use Native Language Support
ab509236
L
1413 --enable-maintainer-mode enable make rules and dependencies not useful
1414 (and sometimes confusing) to the casual installer
9b2b7d69 1415
13b2be9c
DJ
1416Optional Packages:
1417 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1418 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1419 --with-pic try to use only PIC/non-PIC objects [default=use
1420 both]
1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9b2b7d69 1422
13b2be9c
DJ
1423Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
81ecdfbb
RW
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
13b2be9c 1431 CPP C preprocessor
81ecdfbb
RW
1432 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1433 the first program found out of: `bison -y', `byacc', `yacc'.
1434 YFLAGS The list of arguments that will be passed by default to $YACC.
1435 This script will default YFLAGS to the empty string to avoid a
1436 default value of `-d' given by some make applications.
13b2be9c
DJ
1437
1438Use these variables to override the choices made by `configure' or to help
1439it to find libraries and programs with nonstandard names/locations.
1440
81ecdfbb 1441Report bugs to the package provider.
13b2be9c 1442_ACEOF
81ecdfbb 1443ac_status=$?
9b2b7d69 1444fi
9b2b7d69 1445
13b2be9c
DJ
1446if test "$ac_init_help" = "recursive"; then
1447 # If there are subdirs, report their specific --help.
13b2be9c 1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1449 test -d "$ac_dir" ||
1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1451 continue
13b2be9c
DJ
1452 ac_builddir=.
1453
81ecdfbb
RW
1454case "$ac_dir" in
1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456*)
1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 # A ".." for each directory in $ac_dir_suffix.
1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 case $ac_top_builddir_sub in
1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 esac ;;
1464esac
1465ac_abs_top_builddir=$ac_pwd
1466ac_abs_builddir=$ac_pwd$ac_dir_suffix
1467# for backward compatibility:
1468ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1469
13b2be9c 1470case $srcdir in
81ecdfbb 1471 .) # We are building in place.
13b2be9c 1472 ac_srcdir=.
81ecdfbb
RW
1473 ac_top_srcdir=$ac_top_builddir_sub
1474 ac_abs_top_srcdir=$ac_pwd ;;
1475 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1476 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1477 ac_top_srcdir=$srcdir
1478 ac_abs_top_srcdir=$srcdir ;;
1479 *) # Relative name.
1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1481 ac_top_srcdir=$ac_top_build_prefix$srcdir
1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1483esac
81ecdfbb
RW
1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1485
1486 cd "$ac_dir" || { ac_status=$?; continue; }
1487 # Check for guested configure.
1488 if test -f "$ac_srcdir/configure.gnu"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1491 elif test -f "$ac_srcdir/configure"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1494 else
81ecdfbb
RW
1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1496 fi || ac_status=$?
1497 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1498 done
1499fi
6840198f 1500
81ecdfbb 1501test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1502if $ac_init_version; then
1503 cat <<\_ACEOF
81ecdfbb
RW
1504configure
1505generated by GNU Autoconf 2.64
c8615825 1506
81ecdfbb 1507Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
1508This configure script is free software; the Free Software Foundation
1509gives unlimited permission to copy, distribute and modify it.
1510_ACEOF
81ecdfbb 1511 exit
13b2be9c 1512fi
c8615825 1513
81ecdfbb
RW
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
c8615825 1517
81ecdfbb
RW
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
13b2be9c 1522{
81ecdfbb
RW
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1548
81ecdfbb
RW
1549 ac_retval=1
1550fi
1551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552 return $ac_retval
13b2be9c 1553
81ecdfbb 1554} # ac_fn_c_try_compile
13b2be9c 1555
81ecdfbb
RW
1556# ac_fn_c_try_link LINENO
1557# -----------------------
1558# Try to link conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_link ()
1560{
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext conftest$ac_exeext
1563 if { { ac_try="$ac_link"
1564case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_link") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1576 fi
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest$ac_exeext && {
1582 test "$cross_compiling" = yes ||
1583 $as_test_x conftest$ac_exeext
1584 }; then :
1585 ac_retval=0
1586else
1587 $as_echo "$as_me: failed program was:" >&5
1588sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591fi
1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1594 # interfere with the next link command; also delete a directory that is
1595 # left behind by Apple's compiler. We do this before executing the actions.
1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1599
1600} # ac_fn_c_try_link
1601
1602# ac_fn_c_try_cpp LINENO
1603# ----------------------
1604# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605ac_fn_c_try_cpp ()
1606{
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } >/dev/null && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628else
1629 $as_echo "$as_me: failed program was:" >&5
1630sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633fi
1634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1635 return $ac_retval
1636
1637} # ac_fn_c_try_cpp
1638
1639# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640# -------------------------------------------------------
1641# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642# the include files in INCLUDES and setting the cache variable VAR
1643# accordingly.
1644ac_fn_c_check_header_mongrel ()
1645{
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
1650if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1651 $as_echo_n "(cached) " >&6
1652fi
1653eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655$as_echo "$ac_res" >&6; }
1656else
1657 # Is the header compilable?
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659$as_echo_n "checking $2 usability... " >&6; }
1660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h. */
1662$4
1663#include <$2>
1664_ACEOF
1665if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667else
1668 ac_header_compiler=no
1669fi
1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672$as_echo "$ac_header_compiler" >&6; }
1673
1674# Is the header present?
1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676$as_echo_n "checking $2 presence... " >&6; }
1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678/* end confdefs.h. */
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683else
1684 ac_header_preproc=no
1685fi
1686rm -f conftest.err conftest.$ac_ext
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688$as_echo "$ac_header_preproc" >&6; }
1689
1690# So? What about this header?
1691case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1697 ;;
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ;;
1710esac
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712$as_echo_n "checking for $2... " >&6; }
1713if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715else
1716 eval "$3=\$ac_header_compiler"
1717fi
1718eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720$as_echo "$ac_res" >&6; }
1721fi
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723
1724} # ac_fn_c_check_header_mongrel
1725
1726# ac_fn_c_try_run LINENO
1727# ----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729# that executables *can* be run.
1730ac_fn_c_try_run ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=$ac_status
1761fi
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766} # ac_fn_c_try_run
1767
1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists and can be compiled using the include files in
1771# INCLUDES, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_compile ()
1773{
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h. */
1782$4
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787else
1788 eval "$3=no"
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797} # ac_fn_c_check_header_compile
1798
1799# ac_fn_c_check_func LINENO FUNC VAR
1800# ----------------------------------
1801# Tests whether FUNC exists, setting the cache variable VAR accordingly
1802ac_fn_c_check_func ()
1803{
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806$as_echo_n "checking for $2... " >&6; }
1807if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1808 $as_echo_n "(cached) " >&6
1809else
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h. */
1812/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1814#define $2 innocuous_$2
1815
1816/* System header to define __stub macros and hopefully few prototypes,
1817 which can conflict with char $2 (); below.
1818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1819 <limits.h> exists even on freestanding compilers. */
1820
1821#ifdef __STDC__
1822# include <limits.h>
1823#else
1824# include <assert.h>
1825#endif
1826
1827#undef $2
1828
1829/* Override any GCC internal prototype to avoid an error.
1830 Use char because int might match the return type of a GCC
1831 builtin and then its argument prototype would still apply. */
1832#ifdef __cplusplus
1833extern "C"
1834#endif
1835char $2 ();
1836/* The GNU C library defines this for functions which it implements
1837 to always fail with ENOSYS. Some functions are actually named
1838 something starting with __ and the normal name is an alias. */
1839#if defined __stub_$2 || defined __stub___$2
1840choke me
1841#endif
1842
1843int
1844main ()
1845{
1846return $2 ();
1847 ;
1848 return 0;
1849}
1850_ACEOF
1851if ac_fn_c_try_link "$LINENO"; then :
1852 eval "$3=yes"
1853else
1854 eval "$3=no"
1855fi
1856rm -f core conftest.err conftest.$ac_objext \
1857 conftest$ac_exeext conftest.$ac_ext
1858fi
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864} # ac_fn_c_check_func
1865
1866# ac_fn_c_check_decl LINENO SYMBOL VAR
1867# ------------------------------------
1868# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1869ac_fn_c_check_decl ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1873$as_echo_n "checking whether $2 is declared... " >&6; }
1874if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875 $as_echo_n "(cached) " >&6
1876else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879$4
1880int
1881main ()
1882{
1883#ifndef $2
1884 (void) $2;
1885#endif
1886
1887 ;
1888 return 0;
1889}
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"; then :
1892 eval "$3=yes"
1893else
1894 eval "$3=no"
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902
1903} # ac_fn_c_check_decl
1904cat >config.log <<_ACEOF
1905This file contains any messages produced by compilers while
1906running configure, to aid debugging if configure makes a mistake.
1907
1908It was created by $as_me, which was
1909generated by GNU Autoconf 2.64. Invocation command line was
1910
1911 $ $0 $@
1912
1913_ACEOF
1914exec 5>>config.log
1915{
1916cat <<_ASUNAME
1917## --------- ##
1918## Platform. ##
1919## --------- ##
1920
1921hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925uname -v = `(uname -v) 2>/dev/null || echo unknown`
1926
1927/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1929
1930/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
1931/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1933/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
1934/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937
1938_ASUNAME
1939
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1945 $as_echo "PATH: $as_dir"
1946 done
1947IFS=$as_save_IFS
9b2b7d69 1948
13b2be9c 1949} >&5
6840198f 1950
13b2be9c 1951cat >&5 <<_ACEOF
c8615825 1952
9b2b7d69 1953
13b2be9c
DJ
1954## ----------- ##
1955## Core tests. ##
1956## ----------- ##
87ccc1b0 1957
13b2be9c 1958_ACEOF
9b2b7d69 1959
13b2be9c
DJ
1960
1961# Keep a trace of the command line.
1962# Strip out --no-create and --no-recursion so they do not pile up.
1963# Strip out --silent because we don't want to record it for future runs.
1964# Also quote any args containing shell meta-characters.
1965# Make two passes to allow for proper duplicate-argument suppression.
1966ac_configure_args=
1967ac_configure_args0=
1968ac_configure_args1=
13b2be9c
DJ
1969ac_must_keep_next=false
1970for ac_pass in 1 2
1971do
1972 for ac_arg
1973 do
1974 case $ac_arg in
1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977 | -silent | --silent | --silen | --sile | --sil)
1978 continue ;;
81ecdfbb
RW
1979 *\'*)
1980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
1981 esac
1982 case $ac_pass in
81ecdfbb 1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 1984 2)
81ecdfbb 1985 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 1986 if test $ac_must_keep_next = true; then
ab509236 1987 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 1988 else
ab509236
L
1989 case $ac_arg in
1990 *=* | --config-cache | -C | -disable-* | --disable-* \
1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993 | -with-* | --with-* | -without-* | --without-* | --x)
1994 case "$ac_configure_args0 " in
1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1996 esac
1997 ;;
1998 -* ) ac_must_keep_next=true ;;
1999 esac
13b2be9c 2000 fi
81ecdfbb 2001 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2002 ;;
2003 esac
2004 done
13b2be9c 2005done
81ecdfbb
RW
2006{ ac_configure_args0=; unset ac_configure_args0;}
2007{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2008
2009# When interrupted or exit'd, cleanup temporary files, and complete
2010# config.log. We remove comments because anyway the quotes in there
2011# would cause problems or look ugly.
81ecdfbb
RW
2012# WARNING: Use '\'' to represent an apostrophe within the trap.
2013# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2014trap 'exit_status=$?
2015 # Save into config.log some information that might help in debugging.
2016 {
2017 echo
2018
2019 cat <<\_ASBOX
2020## ---------------- ##
2021## Cache variables. ##
2022## ---------------- ##
2023_ASBOX
2024 echo
2025 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2026(
2027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in #(
2030 *${as_nl}*)
2031 case $ac_var in #(
2032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2033$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2034 esac
2035 case $ac_var in #(
2036 _ | IFS | as_nl) ;; #(
2037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2038 *) { eval $ac_var=; unset $ac_var;} ;;
2039 esac ;;
2040 esac
2041 done
13b2be9c 2042 (set) 2>&1 |
81ecdfbb
RW
2043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2044 *${as_nl}ac_space=\ *)
13b2be9c 2045 sed -n \
81ecdfbb
RW
2046 "s/'\''/'\''\\\\'\'''\''/g;
2047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2048 ;; #(
13b2be9c 2049 *)
81ecdfbb 2050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2051 ;;
81ecdfbb
RW
2052 esac |
2053 sort
2054)
13b2be9c
DJ
2055 echo
2056
2057 cat <<\_ASBOX
2058## ----------------- ##
2059## Output variables. ##
2060## ----------------- ##
2061_ASBOX
2062 echo
2063 for ac_var in $ac_subst_vars
2064 do
81ecdfbb
RW
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2070 done | sort
2071 echo
2072
2073 if test -n "$ac_subst_files"; then
2074 cat <<\_ASBOX
81ecdfbb
RW
2075## ------------------- ##
2076## File substitutions. ##
2077## ------------------- ##
13b2be9c
DJ
2078_ASBOX
2079 echo
2080 for ac_var in $ac_subst_files
2081 do
81ecdfbb
RW
2082 eval ac_val=\$$ac_var
2083 case $ac_val in
2084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 esac
2086 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2087 done | sort
2088 echo
2089 fi
2090
2091 if test -s confdefs.h; then
2092 cat <<\_ASBOX
2093## ----------- ##
2094## confdefs.h. ##
2095## ----------- ##
2096_ASBOX
2097 echo
81ecdfbb 2098 cat confdefs.h
13b2be9c
DJ
2099 echo
2100 fi
2101 test "$ac_signal" != 0 &&
81ecdfbb
RW
2102 $as_echo "$as_me: caught signal $ac_signal"
2103 $as_echo "$as_me: exit $exit_status"
13b2be9c 2104 } >&5
81ecdfbb
RW
2105 rm -f core *.core core.conftest.* &&
2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2107 exit $exit_status
81ecdfbb 2108' 0
13b2be9c 2109for ac_signal in 1 2 13 15; do
81ecdfbb 2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2111done
2112ac_signal=0
2113
2114# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2115rm -f -r conftest* confdefs.h
2116
2117$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2118
2119# Predefined preprocessor variables.
2120
2121cat >>confdefs.h <<_ACEOF
2122#define PACKAGE_NAME "$PACKAGE_NAME"
2123_ACEOF
2124
13b2be9c
DJ
2125cat >>confdefs.h <<_ACEOF
2126#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2127_ACEOF
2128
13b2be9c
DJ
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_VERSION "$PACKAGE_VERSION"
2131_ACEOF
2132
13b2be9c
DJ
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_STRING "$PACKAGE_STRING"
2135_ACEOF
2136
13b2be9c
DJ
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2139_ACEOF
2140
81ecdfbb
RW
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_URL "$PACKAGE_URL"
2143_ACEOF
2144
13b2be9c
DJ
2145
2146# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2147# Prefer an explicitly selected file to automatically selected ones.
2148ac_site_file1=NONE
2149ac_site_file2=NONE
2150if test -n "$CONFIG_SITE"; then
2151 ac_site_file1=$CONFIG_SITE
2152elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2155else
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2158fi
2159for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2160do
2161 test "x$ac_site_file" = xNONE && continue
13b2be9c 2162 if test -r "$ac_site_file"; then
81ecdfbb
RW
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c
DJ
2165 sed 's/^/| /' "$ac_site_file" >&5
2166 . "$ac_site_file"
2167 fi
2168done
2169
2170if test -r "$cache_file"; then
2171 # Some versions of bash will fail to source /dev/null (special
2172 # files actually), so we avoid doing that.
2173 if test -f "$cache_file"; then
81ecdfbb
RW
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2176 case $cache_file in
81ecdfbb
RW
2177 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178 *) . "./$cache_file";;
13b2be9c
DJ
2179 esac
2180 fi
2181else
81ecdfbb
RW
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2184 >$cache_file
2185fi
2186
2187# Check that the precious variables saved in the cache have kept the same
2188# value.
2189ac_cache_corrupted=false
81ecdfbb 2190for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2191 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2193 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2195 case $ac_old_set,$ac_new_set in
2196 set,)
81ecdfbb
RW
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2199 ac_cache_corrupted=: ;;
2200 ,set)
81ecdfbb
RW
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2203 ac_cache_corrupted=: ;;
2204 ,);;
2205 *)
2206 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2207 # differences in whitespace do not lead to failure.
2208 ac_old_val_w=`echo x $ac_old_val`
2209 ac_new_val_w=`echo x $ac_new_val`
2210 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213 ac_cache_corrupted=:
2214 else
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217 eval $ac_var=\$ac_old_val
2218 fi
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2220$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2222$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2223 fi;;
2224 esac
2225 # Pass precious variables to config.status.
2226 if test "$ac_new_set" = set; then
2227 case $ac_new_val in
81ecdfbb 2228 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2229 *) ac_arg=$ac_var=$ac_new_val ;;
2230 esac
2231 case " $ac_configure_args " in
2232 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2233 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2234 esac
2235 fi
2236done
2237if $ac_cache_corrupted; then
81ecdfbb
RW
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2243fi
81ecdfbb
RW
2244## -------------------- ##
2245## Main body of script. ##
2246## -------------------- ##
13b2be9c
DJ
2247
2248ac_ext=c
2249ac_cpp='$CPP $CPPFLAGS'
2250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254
2255
13b2be9c 2256
da594c4a 2257
13b2be9c
DJ
2258
2259
2260ac_aux_dir=
81ecdfbb
RW
2261for ac_dir in .. "$srcdir"/..; do
2262 for ac_t in install-sh install.sh shtool; do
2263 if test -f "$ac_dir/$ac_t"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/$ac_t -c"
2266 break 2
2267 fi
2268 done
13b2be9c
DJ
2269done
2270if test -z "$ac_aux_dir"; then
81ecdfbb 2271 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2272fi
81ecdfbb
RW
2273
2274# These three variables are undocumented and unsupported,
2275# and are intended to be withdrawn in a future Autoconf release.
2276# They can cause serious problems if a builder's source tree is in a directory
2277# whose full name contains unusual characters.
2278ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2279ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2280ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2281
13b2be9c
DJ
2282
2283# Make sure we can run config.sub.
81ecdfbb
RW
2284$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2285 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2286
2287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2288$as_echo_n "checking build system type... " >&6; }
2289if test "${ac_cv_build+set}" = set; then :
2290 $as_echo_n "(cached) " >&6
2291else
2292 ac_build_alias=$build_alias
2293test "x$ac_build_alias" = x &&
2294 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2295test "x$ac_build_alias" = x &&
2296 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2297ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2298 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2299
2300fi
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2302$as_echo "$ac_cv_build" >&6; }
2303case $ac_cv_build in
2304*-*-*) ;;
2305*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2306esac
13b2be9c 2307build=$ac_cv_build
81ecdfbb
RW
2308ac_save_IFS=$IFS; IFS='-'
2309set x $ac_cv_build
2310shift
2311build_cpu=$1
2312build_vendor=$2
2313shift; shift
2314# Remember, the first character of IFS is used to create $*,
2315# except with old shells:
2316build_os=$*
2317IFS=$ac_save_IFS
2318case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2319
2320
81ecdfbb
RW
2321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2322$as_echo_n "checking host system type... " >&6; }
2323if test "${ac_cv_host+set}" = set; then :
2324 $as_echo_n "(cached) " >&6
13b2be9c 2325else
81ecdfbb
RW
2326 if test "x$host_alias" = x; then
2327 ac_cv_host=$ac_cv_build
2328else
2329 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2330 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2331fi
13b2be9c
DJ
2332
2333fi
81ecdfbb
RW
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2335$as_echo "$ac_cv_host" >&6; }
2336case $ac_cv_host in
2337*-*-*) ;;
2338*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2339esac
13b2be9c 2340host=$ac_cv_host
81ecdfbb
RW
2341ac_save_IFS=$IFS; IFS='-'
2342set x $ac_cv_host
2343shift
2344host_cpu=$1
2345host_vendor=$2
2346shift; shift
2347# Remember, the first character of IFS is used to create $*,
2348# except with old shells:
2349host_os=$*
2350IFS=$ac_save_IFS
2351case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2352
2353
81ecdfbb
RW
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2355$as_echo_n "checking target system type... " >&6; }
2356if test "${ac_cv_target+set}" = set; then :
2357 $as_echo_n "(cached) " >&6
2358else
2359 if test "x$target_alias" = x; then
2360 ac_cv_target=$ac_cv_host
13b2be9c 2361else
81ecdfbb
RW
2362 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2364fi
13b2be9c
DJ
2365
2366fi
81ecdfbb
RW
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2368$as_echo "$ac_cv_target" >&6; }
2369case $ac_cv_target in
2370*-*-*) ;;
2371*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2372esac
13b2be9c 2373target=$ac_cv_target
81ecdfbb
RW
2374ac_save_IFS=$IFS; IFS='-'
2375set x $ac_cv_target
2376shift
2377target_cpu=$1
2378target_vendor=$2
2379shift; shift
2380# Remember, the first character of IFS is used to create $*,
2381# except with old shells:
2382target_os=$*
2383IFS=$ac_save_IFS
2384case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2385
2386
2387# The aliases save the names the user supplied, while $host etc.
2388# will get canonicalized.
2389test -n "$target_alias" &&
2390 test "$program_prefix$program_suffix$program_transform_name" = \
2391 NONENONEs,x,x, &&
2392 program_prefix=${target_alias}-
2393ac_ext=c
2394ac_cpp='$CPP $CPPFLAGS'
2395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398if test -n "$ac_tool_prefix"; then
2399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402$as_echo_n "checking for $ac_word... " >&6; }
2403if test "${ac_cv_prog_CC+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2405else
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2418 break 2
2419 fi
2420done
81ecdfbb
RW
2421 done
2422IFS=$as_save_IFS
13b2be9c
DJ
2423
2424fi
2425fi
2426CC=$ac_cv_prog_CC
2427if test -n "$CC"; then
81ecdfbb
RW
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429$as_echo "$CC" >&6; }
13b2be9c 2430else
81ecdfbb
RW
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432$as_echo "no" >&6; }
13b2be9c
DJ
2433fi
2434
81ecdfbb 2435
13b2be9c
DJ
2436fi
2437if test -z "$ac_cv_prog_CC"; then
2438 ac_ct_CC=$CC
2439 # Extract the first word of "gcc", so it can be a program name with args.
2440set dummy gcc; ac_word=$2
81ecdfbb
RW
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442$as_echo_n "checking for $ac_word... " >&6; }
2443if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2444 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2445else
2446 if test -n "$ac_ct_CC"; then
2447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448else
2449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450for as_dir in $PATH
2451do
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2454 for ac_exec_ext in '' $ac_executable_extensions; do
2455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2456 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2458 break 2
2459 fi
2460done
81ecdfbb
RW
2461 done
2462IFS=$as_save_IFS
13b2be9c
DJ
2463
2464fi
2465fi
2466ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2470else
81ecdfbb
RW
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472$as_echo "no" >&6; }
13b2be9c
DJ
2473fi
2474
81ecdfbb
RW
2475 if test "x$ac_ct_CC" = x; then
2476 CC=""
2477 else
2478 case $cross_compiling:$ac_tool_warned in
2479yes:)
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482ac_tool_warned=yes ;;
2483esac
2484 CC=$ac_ct_CC
2485 fi
13b2be9c
DJ
2486else
2487 CC="$ac_cv_prog_CC"
2488fi
2489
2490if test -z "$CC"; then
81ecdfbb
RW
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2493set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495$as_echo_n "checking for $ac_word... " >&6; }
2496if test "${ac_cv_prog_CC+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2498else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2509 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2511 break 2
2512 fi
2513done
81ecdfbb
RW
2514 done
2515IFS=$as_save_IFS
13b2be9c
DJ
2516
2517fi
2518fi
2519CC=$ac_cv_prog_CC
2520if test -n "$CC"; then
81ecdfbb
RW
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2522$as_echo "$CC" >&6; }
13b2be9c 2523else
81ecdfbb
RW
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525$as_echo "no" >&6; }
13b2be9c
DJ
2526fi
2527
13b2be9c 2528
81ecdfbb 2529 fi
13b2be9c
DJ
2530fi
2531if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533set dummy cc; ac_word=$2
81ecdfbb
RW
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535$as_echo_n "checking for $ac_word... " >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542 ac_prog_rejected=no
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c
DJ
2550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2552 continue
2553 fi
2554 ac_cv_prog_CC="cc"
81ecdfbb 2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2556 break 2
2557 fi
2558done
81ecdfbb
RW
2559 done
2560IFS=$as_save_IFS
2561
13b2be9c
DJ
2562if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2565 shift
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2570 shift
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572 fi
2573fi
2574fi
2575fi
2576CC=$ac_cv_prog_CC
2577if test -n "$CC"; then
81ecdfbb
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579$as_echo "$CC" >&6; }
13b2be9c 2580else
81ecdfbb
RW
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582$as_echo "no" >&6; }
13b2be9c
DJ
2583fi
2584
81ecdfbb 2585
13b2be9c
DJ
2586fi
2587if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
81ecdfbb 2589 for ac_prog in cl.exe
13b2be9c
DJ
2590 do
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594$as_echo_n "checking for $ac_word... " >&6; }
2595if test "${ac_cv_prog_CC+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2597else
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2610 break 2
2611 fi
2612done
81ecdfbb
RW
2613 done
2614IFS=$as_save_IFS
13b2be9c
DJ
2615
2616fi
2617fi
2618CC=$ac_cv_prog_CC
2619if test -n "$CC"; then
81ecdfbb
RW
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621$as_echo "$CC" >&6; }
13b2be9c 2622else
81ecdfbb
RW
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624$as_echo "no" >&6; }
13b2be9c
DJ
2625fi
2626
81ecdfbb 2627
13b2be9c
DJ
2628 test -n "$CC" && break
2629 done
2630fi
2631if test -z "$CC"; then
2632 ac_ct_CC=$CC
81ecdfbb 2633 for ac_prog in cl.exe
13b2be9c
DJ
2634do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
2639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2641else
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13b2be9c 2652 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2654 break 2
2655 fi
2656done
81ecdfbb
RW
2657 done
2658IFS=$as_save_IFS
13b2be9c
DJ
2659
2660fi
2661fi
2662ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2666else
81ecdfbb
RW
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
13b2be9c
DJ
2669fi
2670
81ecdfbb 2671
13b2be9c
DJ
2672 test -n "$ac_ct_CC" && break
2673done
2674
81ecdfbb
RW
2675 if test "x$ac_ct_CC" = x; then
2676 CC=""
2677 else
2678 case $cross_compiling:$ac_tool_warned in
2679yes:)
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682ac_tool_warned=yes ;;
2683esac
2684 CC=$ac_ct_CC
2685 fi
13b2be9c
DJ
2686fi
2687
2688fi
2689
2690
81ecdfbb
RW
2691test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693as_fn_error "no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2695
2696# Provide some information about the compiler.
81ecdfbb
RW
2697$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2698set X $ac_compile
2699ac_compiler=$2
2700for ac_option in --version -v -V -qversion; do
2701 { { ac_try="$ac_compiler $ac_option >&5"
2702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
2706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707$as_echo "$ac_try_echo"; } >&5
2708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2709 ac_status=$?
81ecdfbb
RW
2710 if test -s conftest.err; then
2711 sed '10a\
2712... rest of stderr output deleted ...
2713 10q' conftest.err >conftest.er1
2714 cat conftest.er1 >&5
2715 rm -f conftest.er1 conftest.err
2716 fi
2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718 test $ac_status = 0; }
2719done
13b2be9c 2720
81ecdfbb 2721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2722/* end confdefs.h. */
2723
2724int
2725main ()
2726{
2727
2728 ;
2729 return 0;
2730}
2731_ACEOF
2732ac_clean_files_save=$ac_clean_files
81ecdfbb 2733ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
13b2be9c
DJ
2734# Try to create an executable without -o first, disregard a.out.
2735# It will help us diagnose broken compilers, and finding out an intuition
2736# of exeext.
81ecdfbb
RW
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2738$as_echo_n "checking for C compiler default output file name... " >&6; }
2739ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2740
2741# The possible output files:
2742ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2743
2744ac_rmfiles=
2745for ac_file in $ac_files
2746do
2747 case $ac_file in
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2749 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2750 esac
2751done
2752rm -f $ac_rmfiles
2753
2754if { { ac_try="$ac_link_default"
2755case "(($ac_try" in
2756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757 *) ac_try_echo=$ac_try;;
2758esac
2759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760$as_echo "$ac_try_echo"; } >&5
2761 (eval "$ac_link_default") 2>&5
2762 ac_status=$?
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }; then :
2765 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2766# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2767# in a Makefile. We should not override ac_cv_exeext if it was cached,
2768# so that the user can short-circuit this test for compilers unknown to
2769# Autoconf.
2770for ac_file in $ac_files ''
13b2be9c
DJ
2771do
2772 test -f "$ac_file" || continue
2773 case $ac_file in
81ecdfbb 2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2775 ;;
13b2be9c 2776 [ab].out )
ab509236
L
2777 # We found the default executable, but exeext='' is most
2778 # certainly right.
2779 break;;
13b2be9c 2780 *.* )
81ecdfbb
RW
2781 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2782 then :; else
2783 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2784 fi
2785 # We set ac_cv_exeext here because the later test for it is not
2786 # safe: cross compilers may not add the suffix if given an `-o'
2787 # argument, so we may need to know it at that point already.
2788 # Even if this section looks crufty: it has the advantage of
2789 # actually working.
ab509236 2790 break;;
13b2be9c 2791 * )
ab509236 2792 break;;
13b2be9c
DJ
2793 esac
2794done
81ecdfbb
RW
2795test "$ac_cv_exeext" = no && ac_cv_exeext=
2796
13b2be9c 2797else
81ecdfbb
RW
2798 ac_file=''
2799fi
2800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2801$as_echo "$ac_file" >&6; }
2802if test -z "$ac_file"; then :
2803 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
81ecdfbb
RW
2806{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808{ as_fn_set_status 77
2809as_fn_error "C compiler cannot create executables
2810See \`config.log' for more details." "$LINENO" 5; }; }
13b2be9c 2811fi
13b2be9c 2812ac_exeext=$ac_cv_exeext
13b2be9c 2813
81ecdfbb 2814# Check that the compiler produces executables we can run. If not, either
13b2be9c 2815# the compiler is broken, or we cross compile.
81ecdfbb
RW
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2817$as_echo_n "checking whether the C compiler works... " >&6; }
13b2be9c
DJ
2818# If not cross compiling, check that we can run a simple program.
2819if test "$cross_compiling" != yes; then
2820 if { ac_try='./$ac_file'
81ecdfbb
RW
2821 { { case "(($ac_try" in
2822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2823 *) ac_try_echo=$ac_try;;
2824esac
2825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2826$as_echo "$ac_try_echo"; } >&5
2827 (eval "$ac_try") 2>&5
13b2be9c 2828 ac_status=$?
81ecdfbb
RW
2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830 test $ac_status = 0; }; }; then
13b2be9c
DJ
2831 cross_compiling=no
2832 else
2833 if test "$cross_compiling" = maybe; then
2834 cross_compiling=yes
2835 else
81ecdfbb
RW
2836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2838as_fn_error "cannot run C compiled programs.
13b2be9c 2839If you meant to cross compile, use \`--host'.
81ecdfbb 2840See \`config.log' for more details." "$LINENO" 5; }
13b2be9c
DJ
2841 fi
2842 fi
2843fi
81ecdfbb
RW
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845$as_echo "yes" >&6; }
13b2be9c 2846
81ecdfbb 2847rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
13b2be9c 2848ac_clean_files=$ac_clean_files_save
81ecdfbb 2849# Check that the compiler produces executables we can run. If not, either
13b2be9c 2850# the compiler is broken, or we cross compile.
81ecdfbb
RW
2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2852$as_echo_n "checking whether we are cross compiling... " >&6; }
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2854$as_echo "$cross_compiling" >&6; }
2855
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2857$as_echo_n "checking for suffix of executables... " >&6; }
2858if { { ac_try="$ac_link"
2859case "(($ac_try" in
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2862esac
2863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2864$as_echo "$ac_try_echo"; } >&5
2865 (eval "$ac_link") 2>&5
13b2be9c 2866 ac_status=$?
81ecdfbb
RW
2867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868 test $ac_status = 0; }; then :
13b2be9c
DJ
2869 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2870# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2871# work properly (i.e., refer to `conftest.exe'), while it won't with
2872# `rm'.
2873for ac_file in conftest.exe conftest conftest.*; do
2874 test -f "$ac_file" || continue
2875 case $ac_file in
81ecdfbb 2876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 2877 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 2878 break;;
13b2be9c
DJ
2879 * ) break;;
2880 esac
2881done
2882else
81ecdfbb
RW
2883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885as_fn_error "cannot compute suffix of executables: cannot compile and link
2886See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2887fi
13b2be9c 2888rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2890$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
2891
2892rm -f conftest.$ac_ext
2893EXEEXT=$ac_cv_exeext
2894ac_exeext=$EXEEXT
81ecdfbb
RW
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2896$as_echo_n "checking for suffix of object files... " >&6; }
2897if test "${ac_cv_objext+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
13b2be9c 2899else
81ecdfbb 2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2901/* end confdefs.h. */
2902
2903int
2904main ()
2905{
2906
2907 ;
2908 return 0;
2909}
2910_ACEOF
2911rm -f conftest.o conftest.obj
81ecdfbb
RW
2912if { { ac_try="$ac_compile"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918$as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_compile") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 for ac_file in conftest.o conftest.obj conftest.*; do
2924 test -f "$ac_file" || continue;
13b2be9c 2925 case $ac_file in
81ecdfbb 2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
2927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2928 break;;
2929 esac
2930done
2931else
81ecdfbb 2932 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
81ecdfbb
RW
2935{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937as_fn_error "cannot compute suffix of object files: cannot compile
2938See \`config.log' for more details." "$LINENO" 5; }
13b2be9c 2939fi
13b2be9c
DJ
2940rm -f conftest.$ac_cv_objext conftest.$ac_ext
2941fi
81ecdfbb
RW
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2943$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
2944OBJEXT=$ac_cv_objext
2945ac_objext=$OBJEXT
81ecdfbb
RW
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2947$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2948if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
13b2be9c 2950else
81ecdfbb 2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2952/* end confdefs.h. */
2953
2954int
2955main ()
2956{
2957#ifndef __GNUC__
2958 choke me
2959#endif
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
81ecdfbb 2965if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
2966 ac_compiler_gnu=yes
2967else
81ecdfbb 2968 ac_compiler_gnu=no
13b2be9c 2969fi
81ecdfbb 2970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
2971ac_cv_c_compiler_gnu=$ac_compiler_gnu
2972
2973fi
81ecdfbb
RW
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2975$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2976if test $ac_compiler_gnu = yes; then
2977 GCC=yes
2978else
2979 GCC=
2980fi
13b2be9c
DJ
2981ac_test_CFLAGS=${CFLAGS+set}
2982ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2984$as_echo_n "checking whether $CC accepts -g... " >&6; }
2985if test "${ac_cv_prog_cc_g+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987else
2988 ac_save_c_werror_flag=$ac_c_werror_flag
2989 ac_c_werror_flag=yes
2990 ac_cv_prog_cc_g=no
2991 CFLAGS="-g"
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2993/* end confdefs.h. */
2994
2995int
2996main ()
2997{
2998
2999 ;
3000 return 0;
3001}
3002_ACEOF
81ecdfbb 3003if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3004 ac_cv_prog_cc_g=yes
3005else
81ecdfbb
RW
3006 CFLAGS=""
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008/* end confdefs.h. */
13b2be9c 3009
81ecdfbb
RW
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018if ac_fn_c_try_compile "$LINENO"; then :
3019
3020else
3021 ac_c_werror_flag=$ac_save_c_werror_flag
3022 CFLAGS="-g"
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h. */
3025
3026int
3027main ()
3028{
3029
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034if ac_fn_c_try_compile "$LINENO"; then :
3035 ac_cv_prog_cc_g=yes
3036fi
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3038fi
81ecdfbb 3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3040fi
81ecdfbb
RW
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3043fi
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3045$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3046if test "$ac_test_CFLAGS" = set; then
3047 CFLAGS=$ac_save_CFLAGS
3048elif test $ac_cv_prog_cc_g = yes; then
3049 if test "$GCC" = yes; then
3050 CFLAGS="-g -O2"
3051 else
3052 CFLAGS="-g"
3053 fi
3054else
3055 if test "$GCC" = yes; then
3056 CFLAGS="-O2"
3057 else
3058 CFLAGS=
3059 fi
3060fi
81ecdfbb
RW
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3062$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3063if test "${ac_cv_prog_cc_c89+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
13b2be9c 3065else
81ecdfbb 3066 ac_cv_prog_cc_c89=no
13b2be9c 3067ac_save_CC=$CC
81ecdfbb 3068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3069/* end confdefs.h. */
3070#include <stdarg.h>
3071#include <stdio.h>
3072#include <sys/types.h>
3073#include <sys/stat.h>
3074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3075struct buf { int x; };
3076FILE * (*rcsopen) (struct buf *, struct stat *, int);
3077static char *e (p, i)
3078 char **p;
3079 int i;
3080{
3081 return p[i];
3082}
3083static char *f (char * (*g) (char **, int), char **p, ...)
3084{
3085 char *s;
3086 va_list v;
3087 va_start (v,p);
3088 s = g (p, va_arg (v,int));
3089 va_end (v);
3090 return s;
3091}
ab509236
L
3092
3093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3094 function prototypes and stuff, but not '\xHH' hex character constants.
3095 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3096 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3098 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3099 that's true only with -std. */
ab509236
L
3100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3101
81ecdfbb
RW
3102/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3103 inside strings and character constants. */
3104#define FOO(x) 'x'
3105int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3106
13b2be9c
DJ
3107int test (int i, double x);
3108struct s1 {int (*f) (int a);};
3109struct s2 {int (*f) (double a);};
3110int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3111int argc;
3112char **argv;
3113int
3114main ()
3115{
3116return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3117 ;
3118 return 0;
3119}
3120_ACEOF
81ecdfbb
RW
3121for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3123do
3124 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3127fi
81ecdfbb
RW
3128rm -f core conftest.err conftest.$ac_objext
3129 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3130done
81ecdfbb 3131rm -f conftest.$ac_ext
13b2be9c
DJ
3132CC=$ac_save_CC
3133
3134fi
81ecdfbb
RW
3135# AC_CACHE_VAL
3136case "x$ac_cv_prog_cc_c89" in
3137 x)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3139$as_echo "none needed" >&6; } ;;
3140 xno)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3142$as_echo "unsupported" >&6; } ;;
13b2be9c 3143 *)
81ecdfbb
RW
3144 CC="$CC $ac_cv_prog_cc_c89"
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3146$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3147esac
81ecdfbb 3148if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3149
13b2be9c
DJ
3150fi
3151
13b2be9c
DJ
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157
3158
81ecdfbb
RW
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3160$as_echo_n "checking for library containing strerror... " >&6; }
3161if test "${ac_cv_search_strerror+set}" = set; then :
3162 $as_echo_n "(cached) " >&6
13b2be9c 3163else
ab509236 3164 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3166/* end confdefs.h. */
3167
81ecdfbb
RW
3168/* Override any GCC internal prototype to avoid an error.
3169 Use char because int might match the return type of a GCC
3170 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3171#ifdef __cplusplus
3172extern "C"
3173#endif
13b2be9c
DJ
3174char strerror ();
3175int
3176main ()
3177{
81ecdfbb 3178return strerror ();
13b2be9c
DJ
3179 ;
3180 return 0;
3181}
3182_ACEOF
81ecdfbb
RW
3183for ac_lib in '' cposix; do
3184 if test -z "$ac_lib"; then
3185 ac_res="none required"
3186 else
3187 ac_res=-l$ac_lib
ab509236 3188 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3189 fi
3190 if ac_fn_c_try_link "$LINENO"; then :
3191 ac_cv_search_strerror=$ac_res
3192fi
3193rm -f core conftest.err conftest.$ac_objext \
3194 conftest$ac_exeext
3195 if test "${ac_cv_search_strerror+set}" = set; then :
3196 break
3197fi
3198done
3199if test "${ac_cv_search_strerror+set}" = set; then :
ab509236 3200
ab509236 3201else
81ecdfbb 3202 ac_cv_search_strerror=no
13b2be9c 3203fi
81ecdfbb 3204rm conftest.$ac_ext
ab509236
L
3205LIBS=$ac_func_search_save_LIBS
3206fi
81ecdfbb
RW
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3208$as_echo "$ac_cv_search_strerror" >&6; }
3209ac_res=$ac_cv_search_strerror
3210if test "$ac_res" != no; then :
3211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3212
ab509236 3213fi
13b2be9c
DJ
3214
3215
3216BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
81ecdfbb
RW
3217am__api_version='1.11'
3218
13b2be9c
DJ
3219# Find a good install program. We prefer a C program (faster),
3220# so one script is as good as another. But avoid the broken or
3221# incompatible versions:
3222# SysV /etc/install, /usr/sbin/install
3223# SunOS /usr/etc/install
3224# IRIX /sbin/install
3225# AIX /bin/install
3226# AmigaOS /C/install, which installs bootblocks on floppy discs
3227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3230# OS/2's system install, which has a completely different semantic
13b2be9c 3231# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3232# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3234$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3235if test -z "$INSTALL"; then
81ecdfbb
RW
3236if test "${ac_cv_path_install+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3238else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240for as_dir in $PATH
3241do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3244 # Account for people who put trailing slashes in PATH elements.
3245case $as_dir/ in #((
3246 ./ | .// | /[cC]/* | \
13b2be9c 3247 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3248 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3249 /usr/ucb/* ) ;;
3250 *)
3251 # OSF1 and SCO ODT 3.0 have their own names for install.
3252 # Don't use installbsd from OSF since it installs stuff as root
3253 # by default.
3254 for ac_prog in ginstall scoinst install; do
3255 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3256 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ab509236
L
3257 if test $ac_prog = install &&
3258 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3259 # AIX install. It has an incompatible calling convention.
3260 :
3261 elif test $ac_prog = install &&
3262 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3263 # program-specific install script used by HP pwplus--don't use.
3264 :
3265 else
58c85be7
RW
3266 rm -rf conftest.one conftest.two conftest.dir
3267 echo one > conftest.one
3268 echo two > conftest.two
3269 mkdir conftest.dir
3270 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3271 test -s conftest.one && test -s conftest.two &&
3272 test -s conftest.dir/conftest.one &&
3273 test -s conftest.dir/conftest.two
3274 then
3275 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3276 break 3
3277 fi
ab509236
L
3278 fi
3279 fi
13b2be9c
DJ
3280 done
3281 done
3282 ;;
3283esac
81ecdfbb
RW
3284
3285 done
3286IFS=$as_save_IFS
13b2be9c 3287
58c85be7 3288rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3289
3290fi
3291 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3292 INSTALL=$ac_cv_path_install
252b5132 3293 else
58c85be7
RW
3294 # As a last resort, use the slow shell script. Don't cache a
3295 # value for INSTALL within a source directory, because that will
252b5132 3296 # break other packages using the cache if that directory is
58c85be7 3297 # removed, or if the value is a relative name.
13b2be9c 3298 INSTALL=$ac_install_sh
252b5132
RH
3299 fi
3300fi
81ecdfbb
RW
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3302$as_echo "$INSTALL" >&6; }
252b5132
RH
3303
3304# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3305# It thinks the first close brace ends the variable substitution.
3306test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3307
13b2be9c 3308test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3309
3310test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3311
81ecdfbb
RW
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3313$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3314# Just in case
3315sleep 1
13b2be9c 3316echo timestamp > conftest.file
81ecdfbb
RW
3317# Reject unsafe characters in $srcdir or the absolute working directory
3318# name. Accept space and tab only in the latter.
3319am_lf='
3320'
3321case `pwd` in
3322 *[\\\"\#\$\&\'\`$am_lf]*)
3323 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3324esac
3325case $srcdir in
3326 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3327 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3328esac
3329
252b5132
RH
3330# Do `set' in a subshell so we don't clobber the current shell's
3331# arguments. Must try -L first in case configure is actually a
3332# symlink; some systems play weird games with the mod time of symlinks
3333# (eg FreeBSD returns the mod time of the symlink's containing
3334# directory).
3335if (
81ecdfbb 3336 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3337 if test "$*" = "X"; then
3338 # -L didn't work.
81ecdfbb 3339 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3340 fi
13b2be9c
DJ
3341 rm -f conftest.file
3342 if test "$*" != "X $srcdir/configure conftest.file" \
3343 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3344
3345 # If neither matched, then we have a broken ls. This can happen
3346 # if, for instance, CONFIG_SHELL is bash and it inherits a
3347 # broken ls alias from the environment. This has actually
3348 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3349 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3350alias in your environment" "$LINENO" 5
252b5132
RH
3351 fi
3352
13b2be9c
DJ
3353 test "$2" = conftest.file
3354 )
3355then
3356 # Ok.
3357 :
3358else
81ecdfbb
RW
3359 as_fn_error "newly created file is older than distributed files!
3360Check your system clock" "$LINENO" 5
13b2be9c 3361fi
81ecdfbb
RW
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363$as_echo "yes" >&6; }
13b2be9c 3364test "$program_prefix" != NONE &&
81ecdfbb 3365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3366# Use a double $ so make ignores it.
3367test "$program_suffix" != NONE &&
81ecdfbb
RW
3368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3369# Double any \ or $.
13b2be9c 3370# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3371ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3372program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3373
13b2be9c
DJ
3374# expand $ac_aux_dir to an absolute path
3375am_aux_dir=`cd $ac_aux_dir && pwd`
3376
81ecdfbb
RW
3377if test x"${MISSING+set}" != xset; then
3378 case $am_aux_dir in
3379 *\ * | *\ *)
3380 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3381 *)
3382 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3383 esac
3384fi
13b2be9c
DJ
3385# Use eval to expand $SHELL
3386if eval "$MISSING --run true"; then
3387 am_missing_run="$MISSING --run "
3388else
3389 am_missing_run=
81ecdfbb
RW
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3391$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ab509236
L
3392fi
3393
81ecdfbb
RW
3394if test x"${install_sh}" != xset; then
3395 case $am_aux_dir in
3396 *\ * | *\ *)
3397 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3398 *)
3399 install_sh="\${SHELL} $am_aux_dir/install-sh"
3400 esac
3401fi
3402
3403# Installed binaries are usually stripped using `strip' when the user
3404# run `make install-strip'. However `strip' might not be the right
3405# tool to use in cross-compilation environments, therefore Automake
3406# will honor the `STRIP' environment variable to overrule this program.
3407if test "$cross_compiling" != no; then
3408 if test -n "$ac_tool_prefix"; then
3409 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3410set dummy ${ac_tool_prefix}strip; ac_word=$2
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3412$as_echo_n "checking for $ac_word... " >&6; }
3413if test "${ac_cv_prog_STRIP+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
13b2be9c 3415else
81ecdfbb
RW
3416 if test -n "$STRIP"; then
3417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3418else
3419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420for as_dir in $PATH
3421do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3428 break 2
3429 fi
3430done
81ecdfbb
RW
3431 done
3432IFS=$as_save_IFS
13b2be9c
DJ
3433
3434fi
3435fi
81ecdfbb
RW
3436STRIP=$ac_cv_prog_STRIP
3437if test -n "$STRIP"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3439$as_echo "$STRIP" >&6; }
13b2be9c 3440else
81ecdfbb
RW
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442$as_echo "no" >&6; }
13b2be9c
DJ
3443fi
3444
13b2be9c 3445
81ecdfbb
RW
3446fi
3447if test -z "$ac_cv_prog_STRIP"; then
3448 ac_ct_STRIP=$STRIP
3449 # Extract the first word of "strip", so it can be a program name with args.
3450set dummy strip; ac_word=$2
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452$as_echo_n "checking for $ac_word... " >&6; }
3453if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
13b2be9c 3455else
81ecdfbb
RW
3456 if test -n "$ac_ct_STRIP"; then
3457 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3458else
81ecdfbb
RW
3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460for as_dir in $PATH
3461do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_ac_ct_STRIP="strip"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470done
3471 done
3472IFS=$as_save_IFS
3473
3474fi
3475fi
3476ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3477if test -n "$ac_ct_STRIP"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3479$as_echo "$ac_ct_STRIP" >&6; }
3480else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483fi
3484
3485 if test "x$ac_ct_STRIP" = x; then
3486 STRIP=":"
3487 else
3488 case $cross_compiling:$ac_tool_warned in
3489yes:)
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3491$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3492ac_tool_warned=yes ;;
3493esac
3494 STRIP=$ac_ct_STRIP
3495 fi
3496else
3497 STRIP="$ac_cv_prog_STRIP"
3498fi
3499
3500fi
3501INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3502
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3504$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3505if test -z "$MKDIR_P"; then
3506 if test "${ac_cv_path_mkdir+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3508else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_prog in mkdir gmkdir; do
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3517 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3518 'mkdir (GNU coreutils) '* | \
3519 'mkdir (coreutils) '* | \
3520 'mkdir (fileutils) '4.1*)
3521 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3522 break 3;;
3523 esac
3524 done
3525 done
3526 done
3527IFS=$as_save_IFS
3528
3529fi
3530
3531 if test "${ac_cv_path_mkdir+set}" = set; then
3532 MKDIR_P="$ac_cv_path_mkdir -p"
3533 else
3534 # As a last resort, use the slow shell script. Don't cache a
3535 # value for MKDIR_P within a source directory, because that will
3536 # break other packages using the cache if that directory is
3537 # removed, or if the value is a relative name.
3538 test -d ./--version && rmdir ./--version
3539 MKDIR_P="$ac_install_sh -d"
3540 fi
3541fi
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3543$as_echo "$MKDIR_P" >&6; }
3544
3545mkdir_p="$MKDIR_P"
3546case $mkdir_p in
3547 [\\/$]* | ?:[\\/]*) ;;
3548 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3549esac
3550
3551for ac_prog in gawk mawk nawk awk
3552do
3553 # Extract the first word of "$ac_prog", so it can be a program name with args.
3554set dummy $ac_prog; ac_word=$2
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556$as_echo_n "checking for $ac_word... " >&6; }
3557if test "${ac_cv_prog_AWK+set}" = set; then :
3558 $as_echo_n "(cached) " >&6
3559else
3560 if test -n "$AWK"; then
3561 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3562else
3563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564for as_dir in $PATH
3565do
3566 IFS=$as_save_IFS
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570 ac_cv_prog_AWK="$ac_prog"
3571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 break 2
3573 fi
3574done
3575 done
3576IFS=$as_save_IFS
3577
3578fi
3579fi
3580AWK=$ac_cv_prog_AWK
3581if test -n "$AWK"; then
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3583$as_echo "$AWK" >&6; }
3584else
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586$as_echo "no" >&6; }
13b2be9c 3587fi
81ecdfbb
RW
3588
3589
3590 test -n "$AWK" && break
3591done
3592
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3594$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3595set x ${MAKE-make}
3596ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3597if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3598 $as_echo_n "(cached) " >&6
3599else
3600 cat >conftest.make <<\_ACEOF
3601SHELL = /bin/sh
3602all:
3603 @echo '@@@%%%=$(MAKE)=@@@%%%'
3604_ACEOF
3605# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3606case `${MAKE-make} -f conftest.make 2>/dev/null` in
3607 *@@@%%%=?*=@@@%%%*)
3608 eval ac_cv_prog_make_${ac_make}_set=yes;;
3609 *)
3610 eval ac_cv_prog_make_${ac_make}_set=no;;
3611esac
13b2be9c
DJ
3612rm -f conftest.make
3613fi
81ecdfbb
RW
3614if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3616$as_echo "yes" >&6; }
13b2be9c
DJ
3617 SET_MAKE=
3618else
81ecdfbb
RW
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620$as_echo "no" >&6; }
13b2be9c
DJ
3621 SET_MAKE="MAKE=${MAKE-make}"
3622fi
3623
3624rm -rf .tst 2>/dev/null
3625mkdir .tst 2>/dev/null
3626if test -d .tst; then
3627 am__leading_dot=.
3628else
3629 am__leading_dot=_
3630fi
3631rmdir .tst 2>/dev/null
3632
3633DEPDIR="${am__leading_dot}deps"
3634
81ecdfbb 3635ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3636
3637
3638am_make=${MAKE-make}
3639cat > confinc << 'END'
3640am__doit:
81ecdfbb 3641 @echo this is the am__doit target
13b2be9c
DJ
3642.PHONY: am__doit
3643END
3644# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3646$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3647am__include="#"
3648am__quote=
3649_am_result=none
3650# First try GNU make style include.
3651echo "include confinc" > confmf
81ecdfbb
RW
3652# Ignore all kinds of additional output from `make'.
3653case `$am_make -s -f confmf 2> /dev/null` in #(
3654*the\ am__doit\ target*)
3655 am__include=include
3656 am__quote=
3657 _am_result=GNU
3658 ;;
3659esac
13b2be9c
DJ
3660# Now try BSD make style include.
3661if test "$am__include" = "#"; then
3662 echo '.include "confinc"' > confmf
81ecdfbb
RW
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3665 am__include=.include
3666 am__quote="\""
3667 _am_result=BSD
3668 ;;
3669 esac
13b2be9c
DJ
3670fi
3671
3672
81ecdfbb
RW
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3674$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3675rm -f confinc confmf
3676
81ecdfbb
RW
3677# Check whether --enable-dependency-tracking was given.
3678if test "${enable_dependency_tracking+set}" = set; then :
3679 enableval=$enable_dependency_tracking;
3680fi
13b2be9c 3681
13b2be9c
DJ
3682if test "x$enable_dependency_tracking" != xno; then
3683 am_depcomp="$ac_aux_dir/depcomp"
3684 AMDEPBACKSLASH='\'
3685fi
81ecdfbb 3686 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3687 AMDEP_TRUE=
3688 AMDEP_FALSE='#'
3689else
3690 AMDEP_TRUE='#'
3691 AMDEP_FALSE=
3692fi
3693
3694
81ecdfbb
RW
3695if test "`cd $srcdir && pwd`" != "`pwd`"; then
3696 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3697 # is not polluted with repeated "-I."
3698 am__isrc=' -I$(srcdir)'
3699 # test to see if srcdir already configured
3700 if test -f $srcdir/config.status; then
3701 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3702 fi
13b2be9c
DJ
3703fi
3704
3705# test whether we have cygpath
3706if test -z "$CYGPATH_W"; then
3707 if (cygpath --version) >/dev/null 2>/dev/null; then
3708 CYGPATH_W='cygpath -w'
3709 else
3710 CYGPATH_W=echo
3711 fi
3712fi
3713
3714
3715# Define the identity of the package.
3716 PACKAGE=gas
3717 VERSION=${BFD_VERSION}
3718
3719
3720cat >>confdefs.h <<_ACEOF
3721#define PACKAGE "$PACKAGE"
3722_ACEOF
3723
3724
3725cat >>confdefs.h <<_ACEOF
3726#define VERSION "$VERSION"
3727_ACEOF
3728
3729# Some tools Automake needs.
3730
3731ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3732
3733
3734AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3735
3736
3737AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3738
3739
3740AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3741
3742
3743MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3744
13b2be9c
DJ
3745# We need awk for the "check" target. The system "awk" is bad on
3746# some platforms.
8ea2b00f
AM
3747# Always define AMTAR for backward compatibility.
3748
3749AMTAR=${AMTAR-"${am_missing_run}tar"}
3750
3751am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3752
3753
252b5132 3754
d6d788bd 3755
13b2be9c 3756depcc="$CC" am_compiler_list=
d6d788bd 3757
81ecdfbb
RW
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3759$as_echo_n "checking dependency style of $depcc... " >&6; }
3760if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
252b5132 3762else
13b2be9c
DJ
3763 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3764 # We make a subdir and do the tests there. Otherwise we can end up
3765 # making bogus files that we don't know about and never remove. For
3766 # instance it was reported that on HP-UX the gcc test will end up
3767 # making a dummy file named `D' -- because `-MD' means `put the output
3768 # in D'.
3769 mkdir conftest.dir
3770 # Copy depcomp to subdir because otherwise we won't find it if we're
3771 # using a relative directory.
3772 cp "$am_depcomp" conftest.dir
3773 cd conftest.dir
3774 # We will build objects and dependencies in a subdirectory because
3775 # it helps to detect inapplicable dependency modes. For instance
3776 # both Tru64's cc and ICC support -MD to output dependencies as a
3777 # side effect of compilation, but ICC will put the dependencies in
3778 # the current directory while Tru64 will put them in the object
3779 # directory.
3780 mkdir sub
252b5132 3781
13b2be9c
DJ
3782 am_cv_CC_dependencies_compiler_type=none
3783 if test "$am_compiler_list" = ""; then
3784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785 fi
81ecdfbb
RW
3786 am__universal=false
3787 case " $depcc " in #(
3788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3789 esac
3790
13b2be9c
DJ
3791 for depmode in $am_compiler_list; do
3792 # Setup a source with many dependencies, because some compilers
3793 # like to wrap large dependency lists on column 80 (with \), and
3794 # we should not choose a depcomp mode which is confused by this.
3795 #
3796 # We need to recreate these files for each test, as the compiler may
3797 # overwrite some of them when testing with obscure command lines.
3798 # This happens at least with the AIX C compiler.
3799 : > sub/conftest.c
3800 for i in 1 2 3 4 5 6; do
3801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4b363073
NC
3802 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3803 # Solaris 8's {/usr,}/bin/sh.
3804 touch sub/conftst$i.h
13b2be9c
DJ
3805 done
3806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3807
81ecdfbb
RW
3808 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3809 # mode. It turns out that the SunPro C++ compiler does not properly
3810 # handle `-M -o', and we need to detect this. Also, some Intel
3811 # versions had trouble with output in subdirs
3812 am__obj=sub/conftest.${OBJEXT-o}
3813 am__minus_obj="-o $am__obj"
13b2be9c 3814 case $depmode in
81ecdfbb
RW
3815 gcc)
3816 # This depmode causes a compiler race in universal mode.
3817 test "$am__universal" = false || continue
3818 ;;
13b2be9c
DJ
3819 nosideeffect)
3820 # after this tag, mechanisms are not by side-effect, so they'll
3821 # only be used when explicitly requested
3822 if test "x$enable_dependency_tracking" = xyes; then
3823 continue
3824 else
3825 break
3826 fi
3827 ;;
81ecdfbb
RW
3828 msvisualcpp | msvcmsys)
3829 # This compiler won't grok `-c -o', but also, the minuso test has
3830 # not run yet. These depmodes are late enough in the game, and
3831 # so weak that their functioning should not be impacted.
3832 am__obj=conftest.${OBJEXT-o}
3833 am__minus_obj=
3834 ;;
13b2be9c
DJ
3835 none) break ;;
3836 esac
13b2be9c 3837 if depmode=$depmode \
81ecdfbb 3838 source=sub/conftest.c object=$am__obj \
13b2be9c 3839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 3841 >/dev/null 2>conftest.err &&
81ecdfbb 3842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 3843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
3845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3846 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
3847 # or remarks (even with -Werror). So we grep stderr for any message
3848 # that says an option was ignored or not supported.
3849 # When given -MP, icc 7.0 and 7.1 complain thusly:
3850 # icc: Command line warning: ignoring option '-M'; no argument required
3851 # The diagnosis changed in icc 8.0:
3852 # icc: Command line remark: option '-MP' not supported
3853 if (grep 'ignoring option' conftest.err ||
3854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
3855 am_cv_CC_dependencies_compiler_type=$depmode
3856 break
3857 fi
3858 fi
3859 done
252b5132 3860
13b2be9c
DJ
3861 cd ..
3862 rm -rf conftest.dir
252b5132 3863else
13b2be9c 3864 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3865fi
3866
252b5132 3867fi
81ecdfbb
RW
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3869$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 3870CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3871
81ecdfbb 3872 if
13b2be9c
DJ
3873 test "x$enable_dependency_tracking" != xno \
3874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3875 am__fastdepCC_TRUE=
3876 am__fastdepCC_FALSE='#'
252b5132 3877else
13b2be9c
DJ
3878 am__fastdepCC_TRUE='#'
3879 am__fastdepCC_FALSE=
252b5132
RH
3880fi
3881
d6d788bd
L
3882
3883
13b2be9c 3884
ce2cded5
L
3885ac_ext=c
3886ac_cpp='$CPP $CPPFLAGS'
3887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3892set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
3895if test "${ac_cv_prog_CC+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
252b5132 3897else
ce2cded5
L
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3900else
ce2cded5
L
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
3910 break 2
3911 fi
3912done
81ecdfbb
RW
3913 done
3914IFS=$as_save_IFS
d7040cdb 3915
ce2cded5
L
3916fi
3917fi
3918CC=$ac_cv_prog_CC
3919if test -n "$CC"; then
81ecdfbb
RW
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3921$as_echo "$CC" >&6; }
bedf545c 3922else
81ecdfbb
RW
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924$as_echo "no" >&6; }
ce2cded5 3925fi
d7040cdb 3926
81ecdfbb 3927
ce2cded5
L
3928fi
3929if test -z "$ac_cv_prog_CC"; then
3930 ac_ct_CC=$CC
3931 # Extract the first word of "gcc", so it can be a program name with args.
3932set dummy gcc; ac_word=$2
81ecdfbb
RW
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
3935if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
d7040cdb 3937else
ce2cded5
L
3938 if test -n "$ac_ct_CC"; then
3939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3940else
d7040cdb
SE
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 3948 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 3950 break 2
d7040cdb 3951 fi
ce2cded5 3952done
81ecdfbb
RW
3953 done
3954IFS=$as_save_IFS
d7040cdb 3955
ce2cded5
L
3956fi
3957fi
3958ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961$as_echo "$ac_ct_CC" >&6; }
ce2cded5 3962else
81ecdfbb
RW
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
d7040cdb
SE
3965fi
3966
81ecdfbb
RW
3967 if test "x$ac_ct_CC" = x; then
3968 CC=""
3969 else
3970 case $cross_compiling:$ac_tool_warned in
3971yes:)
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974ac_tool_warned=yes ;;
3975esac
3976 CC=$ac_ct_CC
3977 fi
ce2cded5
L
3978else
3979 CC="$ac_cv_prog_CC"
3980fi
d7040cdb 3981
ce2cded5 3982if test -z "$CC"; then
81ecdfbb
RW
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 3985set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987$as_echo_n "checking for $ac_word... " >&6; }
3988if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
d7040cdb 3990else
ce2cded5
L
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 3993else
ce2cded5
L
3994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995for as_dir in $PATH
3996do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4001 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4003 break 2
4004 fi
4005done
81ecdfbb
RW
4006 done
4007IFS=$as_save_IFS
d7040cdb 4008
252b5132
RH
4009fi
4010fi
ce2cded5
L
4011CC=$ac_cv_prog_CC
4012if test -n "$CC"; then
81ecdfbb
RW
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014$as_echo "$CC" >&6; }
ce2cded5 4015else
81ecdfbb
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
d7040cdb 4018fi
f9c19112 4019
ce2cded5 4020
81ecdfbb 4021 fi
ce2cded5
L
4022fi
4023if test -z "$CC"; then
4024 # Extract the first word of "cc", so it can be a program name with args.
4025set dummy cc; ac_word=$2
81ecdfbb
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
4028if test "${ac_cv_prog_CC+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
ce2cded5
L
4030else
4031 if test -n "$CC"; then
4032 ac_cv_prog_CC="$CC" # Let the user override the test.
4033else
4034 ac_prog_rejected=no
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5
L
4042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4043 ac_prog_rejected=yes
4044 continue
4045 fi
4046 ac_cv_prog_CC="cc"
81ecdfbb 4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4048 break 2
4049 fi
4050done
81ecdfbb
RW
4051 done
4052IFS=$as_save_IFS
ce2cded5
L
4053
4054if test $ac_prog_rejected = yes; then
4055 # We found a bogon in the path, so make sure we never use it.
4056 set dummy $ac_cv_prog_CC
4057 shift
4058 if test $# != 0; then
4059 # We chose a different compiler from the bogus one.
4060 # However, it has the same basename, so the bogon will be chosen
4061 # first if we set CC to just the basename; use the full file name.
4062 shift
4063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4064 fi
4065fi
4066fi
4067fi
4068CC=$ac_cv_prog_CC
4069if test -n "$CC"; then
81ecdfbb
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4071$as_echo "$CC" >&6; }
ce2cded5 4072else
81ecdfbb
RW
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074$as_echo "no" >&6; }
ce2cded5
L
4075fi
4076
81ecdfbb 4077
ce2cded5
L
4078fi
4079if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
81ecdfbb 4081 for ac_prog in cl.exe
ce2cded5
L
4082 do
4083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
ce2cded5
L
4089else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092else
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4102 break 2
4103 fi
4104done
81ecdfbb
RW
4105 done
4106IFS=$as_save_IFS
ce2cded5
L
4107
4108fi
4109fi
4110CC=$ac_cv_prog_CC
4111if test -n "$CC"; then
81ecdfbb
RW
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113$as_echo "$CC" >&6; }
ce2cded5 4114else
81ecdfbb
RW
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116$as_echo "no" >&6; }
ce2cded5
L
4117fi
4118
81ecdfbb 4119
ce2cded5 4120 test -n "$CC" && break
d7040cdb
SE
4121 done
4122fi
ce2cded5
L
4123if test -z "$CC"; then
4124 ac_ct_CC=$CC
81ecdfbb 4125 for ac_prog in cl.exe
d7040cdb
SE
4126do
4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
4128set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130$as_echo_n "checking for $ac_word... " >&6; }
4131if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
d7040cdb 4133else
ce2cded5
L
4134 if test -n "$ac_ct_CC"; then
4135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 4144 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4146 break 2
ac48eca1 4147 fi
d7040cdb 4148done
81ecdfbb
RW
4149 done
4150IFS=$as_save_IFS
ac48eca1 4151
d7040cdb
SE
4152fi
4153fi
ce2cded5
L
4154ac_ct_CC=$ac_cv_prog_ac_ct_CC
4155if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4157$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4158else
81ecdfbb
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
d7040cdb 4161fi
ac48eca1 4162
81ecdfbb 4163
ce2cded5 4164 test -n "$ac_ct_CC" && break
d7040cdb 4165done
ac48eca1 4166
81ecdfbb
RW
4167 if test "x$ac_ct_CC" = x; then
4168 CC=""
4169 else
4170 case $cross_compiling:$ac_tool_warned in
4171yes:)
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4174ac_tool_warned=yes ;;
4175esac
4176 CC=$ac_ct_CC
4177 fi
d7040cdb 4178fi
ac48eca1 4179
d7040cdb 4180fi
ac48eca1 4181
ac48eca1 4182
81ecdfbb
RW
4183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185as_fn_error "no acceptable C compiler found in \$PATH
4186See \`config.log' for more details." "$LINENO" 5; }
6be7c12c 4187
ce2cded5 4188# Provide some information about the compiler.
81ecdfbb
RW
4189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4190set X $ac_compile
4191ac_compiler=$2
4192for ac_option in --version -v -V -qversion; do
4193 { { ac_try="$ac_compiler $ac_option >&5"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4199$as_echo "$ac_try_echo"; } >&5
4200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4201 ac_status=$?
81ecdfbb
RW
4202 if test -s conftest.err; then
4203 sed '10a\
4204... rest of stderr output deleted ...
4205 10q' conftest.err >conftest.er1
4206 cat conftest.er1 >&5
4207 rm -f conftest.er1 conftest.err
4208 fi
4209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }
4211done
ac48eca1 4212
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4214$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4215if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
d7040cdb 4217else
81ecdfbb 4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4219/* end confdefs.h. */
c8615825 4220
ce2cded5
L
4221int
4222main ()
4223{
4224#ifndef __GNUC__
4225 choke me
4226#endif
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
81ecdfbb 4232if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4233 ac_compiler_gnu=yes
d7040cdb 4234else
81ecdfbb 4235 ac_compiler_gnu=no
d7040cdb 4236fi
81ecdfbb 4237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4238ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4239
ce2cded5 4240fi
81ecdfbb
RW
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4242$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4243if test $ac_compiler_gnu = yes; then
4244 GCC=yes
4245else
4246 GCC=
4247fi
ce2cded5
L
4248ac_test_CFLAGS=${CFLAGS+set}
4249ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4251$as_echo_n "checking whether $CC accepts -g... " >&6; }
4252if test "${ac_cv_prog_cc_g+set}" = set; then :
4253 $as_echo_n "(cached) " >&6
4254else
4255 ac_save_c_werror_flag=$ac_c_werror_flag
4256 ac_c_werror_flag=yes
4257 ac_cv_prog_cc_g=no
4258 CFLAGS="-g"
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4260/* end confdefs.h. */
d7040cdb 4261
ce2cded5
L
4262int
4263main ()
4264{
d7040cdb 4265
ce2cded5
L
4266 ;
4267 return 0;
4268}
4269_ACEOF
81ecdfbb 4270if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4271 ac_cv_prog_cc_g=yes
4272else
81ecdfbb
RW
4273 CFLAGS=""
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h. */
4276
4277int
4278main ()
4279{
4280
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285if ac_fn_c_try_compile "$LINENO"; then :
4286
4287else
4288 ac_c_werror_flag=$ac_save_c_werror_flag
4289 CFLAGS="-g"
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291/* end confdefs.h. */
d70c5fc7 4292
81ecdfbb
RW
4293int
4294main ()
4295{
4296
4297 ;
4298 return 0;
4299}
4300_ACEOF
4301if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_g=yes
4303fi
4304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4305fi
81ecdfbb 4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4307fi
81ecdfbb
RW
4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_c_werror_flag=$ac_save_c_werror_flag
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4312$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4313if test "$ac_test_CFLAGS" = set; then
4314 CFLAGS=$ac_save_CFLAGS
4315elif test $ac_cv_prog_cc_g = yes; then
4316 if test "$GCC" = yes; then
4317 CFLAGS="-g -O2"
4318 else
4319 CFLAGS="-g"
4320 fi
ac48eca1 4321else
ce2cded5
L
4322 if test "$GCC" = yes; then
4323 CFLAGS="-O2"
4324 else
4325 CFLAGS=
4326 fi
ac48eca1 4327fi
81ecdfbb
RW
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4329$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4330if test "${ac_cv_prog_cc_c89+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
ac48eca1 4332else
81ecdfbb 4333 ac_cv_prog_cc_c89=no
ce2cded5 4334ac_save_CC=$CC
81ecdfbb 4335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4336/* end confdefs.h. */
4337#include <stdarg.h>
4338#include <stdio.h>
4339#include <sys/types.h>
4340#include <sys/stat.h>
4341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4342struct buf { int x; };
4343FILE * (*rcsopen) (struct buf *, struct stat *, int);
4344static char *e (p, i)
4345 char **p;
4346 int i;
4347{
4348 return p[i];
4349}
4350static char *f (char * (*g) (char **, int), char **p, ...)
4351{
4352 char *s;
4353 va_list v;
4354 va_start (v,p);
4355 s = g (p, va_arg (v,int));
4356 va_end (v);
4357 return s;
4358}
4359
4360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4361 function prototypes and stuff, but not '\xHH' hex character constants.
4362 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4363 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4365 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4366 that's true only with -std. */
ce2cded5
L
4367int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4368
81ecdfbb
RW
4369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4370 inside strings and character constants. */
4371#define FOO(x) 'x'
4372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4373
ce2cded5
L
4374int test (int i, double x);
4375struct s1 {int (*f) (int a);};
4376struct s2 {int (*f) (double a);};
4377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4378int argc;
4379char **argv;
4380int
4381main ()
4382{
4383return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4384 ;
4385 return 0;
4386}
4387_ACEOF
81ecdfbb
RW
4388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4389 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4390do
4391 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4392 if ac_fn_c_try_compile "$LINENO"; then :
4393 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4394fi
81ecdfbb
RW
4395rm -f core conftest.err conftest.$ac_objext
4396 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4397done
81ecdfbb 4398rm -f conftest.$ac_ext
ce2cded5
L
4399CC=$ac_save_CC
4400
4401fi
81ecdfbb
RW
4402# AC_CACHE_VAL
4403case "x$ac_cv_prog_cc_c89" in
4404 x)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4406$as_echo "none needed" >&6; } ;;
4407 xno)
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4409$as_echo "unsupported" >&6; } ;;
ce2cded5 4410 *)
81ecdfbb
RW
4411 CC="$CC $ac_cv_prog_cc_c89"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4413$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4414esac
81ecdfbb 4415if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4416
ce2cded5 4417fi
d7040cdb 4418
ce2cded5
L
4419ac_ext=c
4420ac_cpp='$CPP $CPPFLAGS'
4421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4424
7357c5b6
AM
4425ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4431$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4432# On Suns, sometimes $CPP names a directory.
4433if test -n "$CPP" && test -d "$CPP"; then
4434 CPP=
4435fi
4436if test -z "$CPP"; then
81ecdfbb
RW
4437 if test "${ac_cv_prog_CPP+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
7357c5b6
AM
4439else
4440 # Double quotes because CPP needs to be expanded
4441 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4442 do
4443 ac_preproc_ok=false
4444for ac_c_preproc_warn_flag in '' yes
4445do
4446 # Use a header file that comes with gcc, so configuring glibc
4447 # with a fresh cross-compiler works.
4448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449 # <limits.h> exists even on freestanding compilers.
4450 # On the NeXT, cc -E runs the code through the compiler's parser,
4451 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4453/* end confdefs.h. */
4454#ifdef __STDC__
4455# include <limits.h>
4456#else
4457# include <assert.h>
4458#endif
4459 Syntax error
4460_ACEOF
81ecdfbb 4461if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4462
81ecdfbb 4463else
7357c5b6
AM
4464 # Broken: fails on valid input.
4465continue
4466fi
4467rm -f conftest.err conftest.$ac_ext
d7040cdb 4468
81ecdfbb 4469 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4470 # can be detected and how.
81ecdfbb 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4472/* end confdefs.h. */
4473#include <ac_nonexistent.h>
4474_ACEOF
81ecdfbb 4475if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4476 # Broken: success on invalid input.
4477continue
4478else
7357c5b6
AM
4479 # Passes both tests.
4480ac_preproc_ok=:
4481break
4482fi
4483rm -f conftest.err conftest.$ac_ext
d7040cdb 4484
7357c5b6
AM
4485done
4486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487rm -f conftest.err conftest.$ac_ext
81ecdfbb 4488if $ac_preproc_ok; then :
7357c5b6
AM
4489 break
4490fi
d7040cdb 4491
7357c5b6
AM
4492 done
4493 ac_cv_prog_CPP=$CPP
d7040cdb 4494
7357c5b6
AM
4495fi
4496 CPP=$ac_cv_prog_CPP
4497else
4498 ac_cv_prog_CPP=$CPP
4499fi
81ecdfbb
RW
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4501$as_echo "$CPP" >&6; }
7357c5b6
AM
4502ac_preproc_ok=false
4503for ac_c_preproc_warn_flag in '' yes
4504do
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4512/* end confdefs.h. */
4513#ifdef __STDC__
4514# include <limits.h>
4515#else
4516# include <assert.h>
4517#endif
4518 Syntax error
4519_ACEOF
81ecdfbb 4520if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4521
81ecdfbb 4522else
7357c5b6
AM
4523 # Broken: fails on valid input.
4524continue
4525fi
4526rm -f conftest.err conftest.$ac_ext
d7040cdb 4527
81ecdfbb 4528 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4529 # can be detected and how.
81ecdfbb 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4531/* end confdefs.h. */
4532#include <ac_nonexistent.h>
4533_ACEOF
81ecdfbb 4534if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4535 # Broken: success on invalid input.
4536continue
4537else
7357c5b6
AM
4538 # Passes both tests.
4539ac_preproc_ok=:
4540break
4541fi
4542rm -f conftest.err conftest.$ac_ext
d7040cdb 4543
7357c5b6
AM
4544done
4545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4547if $ac_preproc_ok; then :
4548
7357c5b6 4549else
81ecdfbb
RW
4550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552as_fn_error "C preprocessor \"$CPP\" fails sanity check
4553See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4554fi
ac48eca1 4555
7357c5b6
AM
4556ac_ext=c
4557ac_cpp='$CPP $CPPFLAGS'
4558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4561
ac48eca1 4562
81ecdfbb
RW
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565if test "${ac_cv_path_GREP+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
7357c5b6 4567else
81ecdfbb
RW
4568 if test -z "$GREP"; then
4569 ac_path_GREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in grep ggrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4580# Check for GNU ac_path_GREP and select it if it is found.
4581 # Check for GNU $ac_path_GREP
4582case `"$ac_path_GREP" --version 2>&1` in
4583*GNU*)
4584 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4585*)
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4589 do
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'GREP' >> "conftest.nl"
4594 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_GREP="$ac_path_GREP"
4600 ac_path_GREP_max=$ac_count
7357c5b6 4601 fi
81ecdfbb
RW
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606esac
4607
4608 $ac_path_GREP_found && break 3
4609 done
4610 done
4611 done
4612IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_GREP"; then
4614 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4615 fi
4616else
4617 ac_cv_path_GREP=$GREP
7357c5b6 4618fi
81ecdfbb
RW
4619
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622$as_echo "$ac_cv_path_GREP" >&6; }
4623 GREP="$ac_cv_path_GREP"
ac48eca1 4624
d7040cdb 4625
81ecdfbb
RW
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627$as_echo_n "checking for egrep... " >&6; }
4628if test "${ac_cv_path_EGREP+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
7357c5b6 4630else
81ecdfbb
RW
4631 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632 then ac_cv_path_EGREP="$GREP -E"
4633 else
4634 if test -z "$EGREP"; then
4635 ac_path_EGREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in egrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4646# Check for GNU ac_path_EGREP and select it if it is found.
4647 # Check for GNU $ac_path_EGREP
4648case `"$ac_path_EGREP" --version 2>&1` in
4649*GNU*)
4650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4651*)
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4655 do
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'EGREP' >> "conftest.nl"
4660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_EGREP="$ac_path_EGREP"
4666 ac_path_EGREP_max=$ac_count
4667 fi
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672esac
4673
4674 $ac_path_EGREP_found && break 3
4675 done
4676 done
4677 done
4678IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_EGREP"; then
4680 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 fi
4682else
4683 ac_cv_path_EGREP=$EGREP
4684fi
4685
4686 fi
4687fi
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689$as_echo "$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4691
4692
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4694$as_echo_n "checking for ANSI C header files... " >&6; }
4695if test "${ac_cv_header_stdc+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4699/* end confdefs.h. */
4700#include <stdlib.h>
4701#include <stdarg.h>
4702#include <string.h>
4703#include <float.h>
d7040cdb 4704
7357c5b6
AM
4705int
4706main ()
4707{
d7040cdb 4708
7357c5b6
AM
4709 ;
4710 return 0;
4711}
4712_ACEOF
81ecdfbb 4713if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4714 ac_cv_header_stdc=yes
4715else
81ecdfbb 4716 ac_cv_header_stdc=no
7357c5b6 4717fi
81ecdfbb 4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4719
7357c5b6
AM
4720if test $ac_cv_header_stdc = yes; then
4721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4723/* end confdefs.h. */
4724#include <string.h>
d7040cdb 4725
7357c5b6
AM
4726_ACEOF
4727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4728 $EGREP "memchr" >/dev/null 2>&1; then :
4729
ce2cded5 4730else
7357c5b6
AM
4731 ac_cv_header_stdc=no
4732fi
4733rm -f conftest*
d7040cdb 4734
7357c5b6 4735fi
d7040cdb 4736
7357c5b6
AM
4737if test $ac_cv_header_stdc = yes; then
4738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4740/* end confdefs.h. */
4741#include <stdlib.h>
ac48eca1 4742
7357c5b6
AM
4743_ACEOF
4744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4745 $EGREP "free" >/dev/null 2>&1; then :
4746
7357c5b6
AM
4747else
4748 ac_cv_header_stdc=no
4749fi
4750rm -f conftest*
d7040cdb 4751
7357c5b6 4752fi
d7040cdb 4753
7357c5b6
AM
4754if test $ac_cv_header_stdc = yes; then
4755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4756 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4757 :
4758else
81ecdfbb 4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4760/* end confdefs.h. */
4761#include <ctype.h>
81ecdfbb 4762#include <stdlib.h>
7357c5b6
AM
4763#if ((' ' & 0x0FF) == 0x020)
4764# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4765# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4766#else
4767# define ISLOWER(c) \
4768 (('a' <= (c) && (c) <= 'i') \
4769 || ('j' <= (c) && (c) <= 'r') \
4770 || ('s' <= (c) && (c) <= 'z'))
4771# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4772#endif
d7040cdb 4773
7357c5b6
AM
4774#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4775int
4776main ()
4777{
4778 int i;
4779 for (i = 0; i < 256; i++)
4780 if (XOR (islower (i), ISLOWER (i))
4781 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4782 return 2;
4783 return 0;
7357c5b6
AM
4784}
4785_ACEOF
81ecdfbb 4786if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4787
81ecdfbb
RW
4788else
4789 ac_cv_header_stdc=no
7357c5b6 4790fi
81ecdfbb
RW
4791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4792 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4793fi
81ecdfbb 4794
7357c5b6
AM
4795fi
4796fi
81ecdfbb
RW
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4798$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4799if test $ac_cv_header_stdc = yes; then
d7040cdb 4800
81ecdfbb 4801$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4802
7357c5b6 4803fi
d7040cdb 4804
7357c5b6 4805# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4806for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4807 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4808do :
4809 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4810ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4811"
4812eval as_val=\$$as_ac_Header
4813 if test "x$as_val" = x""yes; then :
7357c5b6 4814 cat >>confdefs.h <<_ACEOF
81ecdfbb 4815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4816_ACEOF
ce2cded5 4817
7357c5b6 4818fi
ce2cded5 4819
7357c5b6 4820done
ce2cded5
L
4821
4822
4823
81ecdfbb
RW
4824 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4825if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4826 MINIX=yes
4827else
4828 MINIX=
4829fi
d7040cdb
SE
4830
4831
7357c5b6 4832 if test "$MINIX" = yes; then
d7040cdb 4833
81ecdfbb 4834$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
4835
4836
81ecdfbb 4837$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4838
4839
81ecdfbb 4840$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4841
7357c5b6 4842 fi
d7040cdb
SE
4843
4844
81ecdfbb
RW
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4846$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4847if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
ac48eca1 4849else
81ecdfbb 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4851/* end confdefs.h. */
ac48eca1 4852
7357c5b6
AM
4853# define __EXTENSIONS__ 1
4854 $ac_includes_default
4855int
4856main ()
4857{
13b2be9c 4858
7357c5b6
AM
4859 ;
4860 return 0;
4861}
4862_ACEOF
81ecdfbb 4863if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4864 ac_cv_safe_to_define___extensions__=yes
d6d788bd 4865else
81ecdfbb 4866 ac_cv_safe_to_define___extensions__=no
d6d788bd 4867fi
81ecdfbb 4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4869fi
81ecdfbb
RW
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4871$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4872 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4873 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 4874
81ecdfbb 4875 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 4876
81ecdfbb 4877 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 4878
81ecdfbb 4879 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 4880
81ecdfbb 4881 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 4882
a74801ba 4883
d053aef8 4884
81ecdfbb 4885
da2f07f1 4886
3388710e
JM
4887# The tests for host and target for $enable_largefile require
4888# canonical names.
4889
4890
4891
da2f07f1
JK
4892# As the $enable_largefile decision depends on --enable-plugins we must set it
4893# even in directories otherwise not depending on the $plugins option.
4894
4895
4896# Check whether --enable-plugins was given.
4897if test "${enable_plugins+set}" = set; then :
4898 enableval=$enable_plugins; case "${enableval}" in
4899 yes | "") plugins=yes ;;
4900 no) plugins=no ;;
4901 *) plugins=yes ;;
4902 esac
4903else
4904 plugins=no
4905fi
4906
4907
4908
4909case "${host}" in
4910 sparc-*-solaris*|i[3-7]86-*-solaris*)
4911 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4912 # are mutually exclusive; and without procfs support, the bfd/ elf module
4913 # cannot provide certain routines such as elfcore_write_prpsinfo
4914 # or elfcore_write_prstatus. So unless the user explicitly requested
4915 # large-file support through the --enable-largefile switch, disable
4916 # large-file support in favor of procfs support.
4917 test "${target}" = "${host}" -a "x$plugins" = xno \
4918 && : ${enable_largefile="no"}
4919 ;;
4920esac
4921
81ecdfbb
RW
4922# Check whether --enable-largefile was given.
4923if test "${enable_largefile+set}" = set; then :
4924 enableval=$enable_largefile;
4925fi
4926
d053aef8
JK
4927if test "$enable_largefile" != no; then
4928
81ecdfbb
RW
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4930$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4931if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
d053aef8
JK
4933else
4934 ac_cv_sys_largefile_CC=no
4935 if test "$GCC" != yes; then
4936 ac_save_CC=$CC
4937 while :; do
81ecdfbb
RW
4938 # IRIX 6.2 and later do not support large files by default,
4939 # so use the C compiler's -n32 option if that helps.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4941/* end confdefs.h. */
4942#include <sys/types.h>
4943 /* Check that off_t can represent 2**63 - 1 correctly.
4944 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4945 since some C++ compilers masquerading as C compilers
4946 incorrectly reject 9223372036854775807. */
4947#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4948 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4949 && LARGE_OFF_T % 2147483647 == 1)
4950 ? 1 : -1];
4951int
4952main ()
4953{
4954
4955 ;
4956 return 0;
4957}
4958_ACEOF
81ecdfbb 4959 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4960 break
d053aef8 4961fi
81ecdfbb
RW
4962rm -f core conftest.err conftest.$ac_objext
4963 CC="$CC -n32"
4964 if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 4965 ac_cv_sys_largefile_CC=' -n32'; break
d053aef8 4966fi
81ecdfbb 4967rm -f core conftest.err conftest.$ac_objext
d053aef8
JK
4968 break
4969 done
4970 CC=$ac_save_CC
4971 rm -f conftest.$ac_ext
4972 fi
4973fi
81ecdfbb
RW
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4975$as_echo "$ac_cv_sys_largefile_CC" >&6; }
d053aef8
JK
4976 if test "$ac_cv_sys_largefile_CC" != no; then
4977 CC=$CC$ac_cv_sys_largefile_CC
4978 fi
4979
81ecdfbb
RW
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4981$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4982if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4983 $as_echo_n "(cached) " >&6
d053aef8
JK
4984else
4985 while :; do
81ecdfbb 4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
4987/* end confdefs.h. */
4988#include <sys/types.h>
4989 /* Check that off_t can represent 2**63 - 1 correctly.
4990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4991 since some C++ compilers masquerading as C compilers
4992 incorrectly reject 9223372036854775807. */
4993#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4995 && LARGE_OFF_T % 2147483647 == 1)
4996 ? 1 : -1];
4997int
4998main ()
4999{
5000
5001 ;
5002 return 0;
5003}
5004_ACEOF
81ecdfbb
RW
5005if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_sys_file_offset_bits=no; break
d053aef8 5007fi
81ecdfbb
RW
5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5010/* end confdefs.h. */
5011#define _FILE_OFFSET_BITS 64
5012#include <sys/types.h>
5013 /* Check that off_t can represent 2**63 - 1 correctly.
5014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5015 since some C++ compilers masquerading as C compilers
5016 incorrectly reject 9223372036854775807. */
5017#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5019 && LARGE_OFF_T % 2147483647 == 1)
5020 ? 1 : -1];
5021int
5022main ()
5023{
5024
5025 ;
5026 return 0;
5027}
5028_ACEOF
81ecdfbb 5029if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5030 ac_cv_sys_file_offset_bits=64; break
d053aef8 5031fi
81ecdfbb
RW
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 ac_cv_sys_file_offset_bits=unknown
d053aef8
JK
5034 break
5035done
5036fi
81ecdfbb
RW
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5038$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5039case $ac_cv_sys_file_offset_bits in #(
5040 no | unknown) ;;
5041 *)
d053aef8
JK
5042cat >>confdefs.h <<_ACEOF
5043#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5044_ACEOF
81ecdfbb
RW
5045;;
5046esac
5047rm -rf conftest*
5048 if test $ac_cv_sys_file_offset_bits = unknown; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5050$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5051if test "${ac_cv_sys_large_files+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
d053aef8
JK
5053else
5054 while :; do
81ecdfbb 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5056/* end confdefs.h. */
5057#include <sys/types.h>
5058 /* Check that off_t can represent 2**63 - 1 correctly.
5059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5060 since some C++ compilers masquerading as C compilers
5061 incorrectly reject 9223372036854775807. */
5062#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5064 && LARGE_OFF_T % 2147483647 == 1)
5065 ? 1 : -1];
5066int
5067main ()
5068{
5069
5070 ;
5071 return 0;
5072}
5073_ACEOF
81ecdfbb
RW
5074if ac_fn_c_try_compile "$LINENO"; then :
5075 ac_cv_sys_large_files=no; break
d053aef8 5076fi
81ecdfbb
RW
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d053aef8
JK
5079/* end confdefs.h. */
5080#define _LARGE_FILES 1
5081#include <sys/types.h>
5082 /* Check that off_t can represent 2**63 - 1 correctly.
5083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5084 since some C++ compilers masquerading as C compilers
5085 incorrectly reject 9223372036854775807. */
5086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5088 && LARGE_OFF_T % 2147483647 == 1)
5089 ? 1 : -1];
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
81ecdfbb 5098if ac_fn_c_try_compile "$LINENO"; then :
d053aef8 5099 ac_cv_sys_large_files=1; break
d053aef8 5100fi
81ecdfbb
RW
5101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_cv_sys_large_files=unknown
d053aef8
JK
5103 break
5104done
5105fi
81ecdfbb
RW
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5107$as_echo "$ac_cv_sys_large_files" >&6; }
5108case $ac_cv_sys_large_files in #(
5109 no | unknown) ;;
5110 *)
d053aef8
JK
5111cat >>confdefs.h <<_ACEOF
5112#define _LARGE_FILES $ac_cv_sys_large_files
5113_ACEOF
81ecdfbb
RW
5114;;
5115esac
5116rm -rf conftest*
5117 fi
d053aef8
JK
5118fi
5119
a74801ba 5120
da2f07f1 5121
718a6fd8
SE
5122case `pwd` in
5123 *\ * | *\ *)
81ecdfbb
RW
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5125$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5126esac
13b2be9c 5127
252b5132 5128
7357c5b6 5129
3725885a
RW
5130macro_version='2.2.7a'
5131macro_revision='1.3134'
7357c5b6
AM
5132
5133
5134
5135
5136
5137
7357c5b6
AM
5138
5139
5140
5141
5142
5143
5144
718a6fd8 5145ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5146
3725885a
RW
5147# Backslashify metacharacters that are still active within
5148# double-quoted strings.
5149sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5150
5151# Same as above, but do not quote variable references.
5152double_quote_subst='s/\(["`\\]\)/\\\1/g'
5153
5154# Sed substitution to delay expansion of an escaped shell variable in a
5155# double_quote_subst'ed string.
5156delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5157
5158# Sed substitution to delay expansion of an escaped single quote.
5159delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5160
5161# Sed substitution to avoid accidental globbing in evaled expressions
5162no_glob_subst='s/\*/\\\*/g'
5163
5164ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5165ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5166ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5167
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5169$as_echo_n "checking how to print strings... " >&6; }
5170# Test print first, because it will be a builtin if present.
5171if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5172 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5173 ECHO='print -r --'
5174elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5175 ECHO='printf %s\n'
5176else
5177 # Use this function as a fallback that always works.
5178 func_fallback_echo ()
5179 {
5180 eval 'cat <<_LTECHO_EOF
5181$1
5182_LTECHO_EOF'
5183 }
5184 ECHO='func_fallback_echo'
5185fi
5186
5187# func_echo_all arg...
5188# Invoke $ECHO with all args, space-separated.
5189func_echo_all ()
5190{
5191 $ECHO ""
5192}
5193
5194case "$ECHO" in
5195 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5196$as_echo "printf" >&6; } ;;
5197 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5198$as_echo "print -r" >&6; } ;;
5199 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5200$as_echo "cat" >&6; } ;;
5201esac
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
81ecdfbb
RW
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5217$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5218if test "${ac_cv_path_SED+set}" = set; then :
5219 $as_echo_n "(cached) " >&6
5220else
5221 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5222 for ac_i in 1 2 3 4 5 6 7; do
5223 ac_script="$ac_script$as_nl$ac_script"
5224 done
5225 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5226 { ac_script=; unset ac_script;}
5227 if test -z "$SED"; then
5228 ac_path_SED_found=false
5229 # Loop through the user's path and test for each of PROGNAME-LIST
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
81ecdfbb 5235 for ac_prog in sed gsed; do
7357c5b6 5236 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5237 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5238 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5239# Check for GNU ac_path_SED and select it if it is found.
5240 # Check for GNU $ac_path_SED
5241case `"$ac_path_SED" --version 2>&1` in
5242*GNU*)
5243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5244*)
5245 ac_count=0
5246 $as_echo_n 0123456789 >"conftest.in"
5247 while :
5248 do
5249 cat "conftest.in" "conftest.in" >"conftest.tmp"
5250 mv "conftest.tmp" "conftest.in"
5251 cp "conftest.in" "conftest.nl"
5252 $as_echo '' >> "conftest.nl"
5253 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255 as_fn_arith $ac_count + 1 && ac_count=$as_val
5256 if test $ac_count -gt ${ac_path_SED_max-0}; then
5257 # Best one so far, save it but keep looking for a better one
5258 ac_cv_path_SED="$ac_path_SED"
5259 ac_path_SED_max=$ac_count
5260 fi
5261 # 10*(2^10) chars as input seems more than enough
5262 test $ac_count -gt 10 && break
5263 done
5264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265esac
5266
5267 $ac_path_SED_found && break 3
7357c5b6
AM
5268 done
5269 done
81ecdfbb 5270 done
7357c5b6 5271IFS=$as_save_IFS
81ecdfbb
RW
5272 if test -z "$ac_cv_path_SED"; then
5273 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5274 fi
81ecdfbb
RW
5275else
5276 ac_cv_path_SED=$SED
7357c5b6
AM
5277fi
5278
81ecdfbb
RW
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5281$as_echo "$ac_cv_path_SED" >&6; }
5282 SED="$ac_cv_path_SED"
5283 rm -f conftest.sed
7357c5b6
AM
5284
5285test -z "$SED" && SED=sed
5286Xsed="$SED -e 1s/^X//"
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
81ecdfbb
RW
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5299$as_echo_n "checking for fgrep... " >&6; }
5300if test "${ac_cv_path_FGREP+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
7357c5b6 5302else
81ecdfbb
RW
5303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5304 then ac_cv_path_FGREP="$GREP -F"
5305 else
5306 if test -z "$FGREP"; then
5307 ac_path_FGREP_found=false
5308 # Loop through the user's path and test for each of PROGNAME-LIST
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311do
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_prog in fgrep; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5317 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5318# Check for GNU ac_path_FGREP and select it if it is found.
5319 # Check for GNU $ac_path_FGREP
5320case `"$ac_path_FGREP" --version 2>&1` in
5321*GNU*)
5322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5323*)
5324 ac_count=0
5325 $as_echo_n 0123456789 >"conftest.in"
5326 while :
5327 do
5328 cat "conftest.in" "conftest.in" >"conftest.tmp"
5329 mv "conftest.tmp" "conftest.in"
5330 cp "conftest.in" "conftest.nl"
5331 $as_echo 'FGREP' >> "conftest.nl"
5332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334 as_fn_arith $ac_count + 1 && ac_count=$as_val
5335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5336 # Best one so far, save it but keep looking for a better one
5337 ac_cv_path_FGREP="$ac_path_FGREP"
5338 ac_path_FGREP_max=$ac_count
7357c5b6 5339 fi
81ecdfbb
RW
5340 # 10*(2^10) chars as input seems more than enough
5341 test $ac_count -gt 10 && break
5342 done
5343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344esac
5345
5346 $ac_path_FGREP_found && break 3
5347 done
5348 done
5349 done
5350IFS=$as_save_IFS
5351 if test -z "$ac_cv_path_FGREP"; then
5352 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353 fi
5354else
5355 ac_cv_path_FGREP=$FGREP
7357c5b6 5356fi
81ecdfbb
RW
5357
5358 fi
5359fi
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5361$as_echo "$ac_cv_path_FGREP" >&6; }
5362 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5363
5364
5365test -z "$GREP" && GREP=grep
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
81ecdfbb
RW
5385# Check whether --with-gnu-ld was given.
5386if test "${with_gnu_ld+set}" = set; then :
5387 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5388else
5389 with_gnu_ld=no
81ecdfbb
RW
5390fi
5391
ce2cded5
L
5392ac_prog=ld
5393if test "$GCC" = yes; then
5394 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5396$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5397 case $host in
5398 *-*-mingw*)
5399 # gcc leaves a trailing carriage return which upsets mingw
5400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5401 *)
5402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5403 esac
5404 case $ac_prog in
5405 # Accept absolute paths.
5406 [\\/]* | ?:[\\/]*)
5407 re_direlt='/[^/][^/]*/\.\./'
5408 # Canonicalize the pathname of ld
5409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5412 done
5413 test -z "$LD" && LD="$ac_prog"
5414 ;;
5415 "")
5416 # If it fails, then pretend we aren't using GCC.
5417 ac_prog=ld
5418 ;;
5419 *)
5420 # If it is relative, then search for the first ld in PATH.
5421 with_gnu_ld=unknown
5422 ;;
5423 esac
5424elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5426$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5427else
81ecdfbb
RW
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5429$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5430fi
81ecdfbb
RW
5431if test "${lt_cv_path_LD+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
ce2cded5
L
5433else
5434 if test -z "$LD"; then
5435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5436 for ac_dir in $PATH; do
5437 IFS="$lt_save_ifs"
5438 test -z "$ac_dir" && ac_dir=.
5439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5440 lt_cv_path_LD="$ac_dir/$ac_prog"
5441 # Check to see if the program is GNU ld. I'd rather use --version,
5442 # but apparently some variants of GNU ld only accept -v.
5443 # Break only if it was the GNU/non-GNU ld that we prefer.
5444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5445 *GNU* | *'with BFD'*)
5446 test "$with_gnu_ld" != no && break
5447 ;;
5448 *)
5449 test "$with_gnu_ld" != yes && break
5450 ;;
5451 esac
5452 fi
5453 done
5454 IFS="$lt_save_ifs"
5455else
5456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5457fi
5458fi
5459
5460LD="$lt_cv_path_LD"
5461if test -n "$LD"; then
81ecdfbb
RW
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5463$as_echo "$LD" >&6; }
ce2cded5 5464else
81ecdfbb
RW
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
ce2cded5 5467fi
81ecdfbb
RW
5468test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5470$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5471if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
ce2cded5
L
5473else
5474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5475case `$LD -v 2>&1 </dev/null` in
5476*GNU* | *'with BFD'*)
5477 lt_cv_prog_gnu_ld=yes
5478 ;;
5479*)
5480 lt_cv_prog_gnu_ld=no
5481 ;;
5482esac
5483fi
81ecdfbb
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5485$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5486with_gnu_ld=$lt_cv_prog_gnu_ld
5487
5488
5489
5490
5491
5492
5493
5494
5495
81ecdfbb
RW
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5497$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5498if test "${lt_cv_path_NM+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
ce2cded5
L
5500else
5501 if test -n "$NM"; then
5502 # Let the user override the test.
5503 lt_cv_path_NM="$NM"
5504else
5505 lt_nm_to_check="${ac_tool_prefix}nm"
5506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5507 lt_nm_to_check="$lt_nm_to_check nm"
5508 fi
5509 for lt_tmp_nm in $lt_nm_to_check; do
5510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5512 IFS="$lt_save_ifs"
5513 test -z "$ac_dir" && ac_dir=.
5514 tmp_nm="$ac_dir/$lt_tmp_nm"
5515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5516 # Check to see if the nm accepts a BSD-compat flag.
5517 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5518 # nm: unknown option "B" ignored
5519 # Tru64's nm complains that /dev/null is an invalid object file
5520 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5521 */dev/null* | *'Invalid file or object type'*)
5522 lt_cv_path_NM="$tmp_nm -B"
5523 break
5524 ;;
5525 *)
5526 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5527 */dev/null*)
5528 lt_cv_path_NM="$tmp_nm -p"
5529 break
5530 ;;
5531 *)
5532 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5533 continue # so that we can try to find one that supports BSD flags
5534 ;;
5535 esac
5536 ;;
5537 esac
5538 fi
5539 done
5540 IFS="$lt_save_ifs"
5541 done
5542 : ${lt_cv_path_NM=no}
5543fi
5544fi
81ecdfbb
RW
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5546$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5547if test "$lt_cv_path_NM" != "no"; then
5548 NM="$lt_cv_path_NM"
5549else
5550 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5551 if test -n "$DUMPBIN"; then :
5552 # Let the user override the test.
5553 else
5554 if test -n "$ac_tool_prefix"; then
5555 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5556 do
5557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560$as_echo_n "checking for $ac_word... " >&6; }
5561if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
d7040cdb 5563else
ce2cded5
L
5564 if test -n "$DUMPBIN"; then
5565 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5566else
5567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5574 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5576 break 2
d70c5fc7 5577 fi
d7040cdb 5578done
81ecdfbb
RW
5579 done
5580IFS=$as_save_IFS
d70c5fc7 5581
d7040cdb
SE
5582fi
5583fi
ce2cded5
L
5584DUMPBIN=$ac_cv_prog_DUMPBIN
5585if test -n "$DUMPBIN"; then
81ecdfbb
RW
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5587$as_echo "$DUMPBIN" >&6; }
bedf545c 5588else
81ecdfbb
RW
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590$as_echo "no" >&6; }
d7040cdb 5591fi
13b2be9c 5592
81ecdfbb 5593
ce2cded5
L
5594 test -n "$DUMPBIN" && break
5595 done
5596fi
5597if test -z "$DUMPBIN"; then
5598 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5599 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5600do
5601 # Extract the first word of "$ac_prog", so it can be a program name with args.
5602set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
d7040cdb 5607else
ce2cded5
L
5608 if test -n "$ac_ct_DUMPBIN"; then
5609 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 5618 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5620 break 2
5621 fi
5622done
81ecdfbb
RW
5623 done
5624IFS=$as_save_IFS
ce2cded5
L
5625
5626fi
5627fi
5628ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5629if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5631$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5632else
81ecdfbb
RW
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
d7040cdb
SE
5635fi
5636
81ecdfbb 5637
ce2cded5
L
5638 test -n "$ac_ct_DUMPBIN" && break
5639done
13b2be9c 5640
81ecdfbb
RW
5641 if test "x$ac_ct_DUMPBIN" = x; then
5642 DUMPBIN=":"
5643 else
5644 case $cross_compiling:$ac_tool_warned in
5645yes:)
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648ac_tool_warned=yes ;;
5649esac
5650 DUMPBIN=$ac_ct_DUMPBIN
5651 fi
ce2cded5 5652fi
13b2be9c 5653
3725885a
RW
5654 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5655 *COFF*)
5656 DUMPBIN="$DUMPBIN -symbols"
5657 ;;
5658 *)
5659 DUMPBIN=:
5660 ;;
5661 esac
5662 fi
bedf545c 5663
ce2cded5
L
5664 if test "$DUMPBIN" != ":"; then
5665 NM="$DUMPBIN"
5666 fi
5667fi
5668test -z "$NM" && NM=nm
6840198f 5669
13b2be9c 5670
ac48eca1 5671
d7040cdb 5672
ce2cded5
L
5673
5674
81ecdfbb
RW
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5676$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5677if test "${lt_cv_nm_interface+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
ce2cded5
L
5679else
5680 lt_cv_nm_interface="BSD nm"
5681 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5682 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5683 (eval "$ac_compile" 2>conftest.err)
5684 cat conftest.err >&5
3725885a 5685 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5686 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5687 cat conftest.err >&5
3725885a 5688 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5689 cat conftest.out >&5
5690 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5691 lt_cv_nm_interface="MS dumpbin"
5692 fi
5693 rm -f conftest*
5694fi
81ecdfbb
RW
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5696$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5697
81ecdfbb
RW
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5699$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5700LN_S=$as_ln_s
5701if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5703$as_echo "yes" >&6; }
ce2cded5 5704else
81ecdfbb
RW
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5706$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5707fi
5708
5709# find the maximum length of command line arguments
81ecdfbb
RW
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5711$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5712if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
ce2cded5
L
5714else
5715 i=0
5716 teststring="ABCD"
5717
5718 case $build_os in
5719 msdosdjgpp*)
5720 # On DJGPP, this test can blow up pretty badly due to problems in libc
5721 # (any single argument exceeding 2000 bytes causes a buffer overrun
5722 # during glob expansion). Even if it were fixed, the result of this
5723 # check would be larger than it should be.
5724 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5725 ;;
5726
5727 gnu*)
5728 # Under GNU Hurd, this test is not required because there is
5729 # no limit to the length of command line arguments.
5730 # Libtool will interpret -1 as no limit whatsoever
5731 lt_cv_sys_max_cmd_len=-1;
5732 ;;
5733
718a6fd8 5734 cygwin* | mingw* | cegcc*)
ce2cded5
L
5735 # On Win9x/ME, this test blows up -- it succeeds, but takes
5736 # about 5 minutes as the teststring grows exponentially.
5737 # Worse, since 9x/ME are not pre-emptively multitasking,
5738 # you end up with a "frozen" computer, even though with patience
5739 # the test eventually succeeds (with a max line length of 256k).
5740 # Instead, let's just punt: use the minimum linelength reported by
5741 # all of the supported platforms: 8192 (on NT/2K/XP).
5742 lt_cv_sys_max_cmd_len=8192;
5743 ;;
5744
3725885a
RW
5745 mint*)
5746 # On MiNT this can take a long time and run out of memory.
5747 lt_cv_sys_max_cmd_len=8192;
5748 ;;
5749
ce2cded5
L
5750 amigaos*)
5751 # On AmigaOS with pdksh, this test takes hours, literally.
5752 # So we just punt and use a minimum line length of 8192.
5753 lt_cv_sys_max_cmd_len=8192;
5754 ;;
5755
5756 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5757 # This has been around since 386BSD, at least. Likely further.
5758 if test -x /sbin/sysctl; then
5759 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5760 elif test -x /usr/sbin/sysctl; then
5761 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5762 else
5763 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5764 fi
5765 # And add a safety zone
5766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5768 ;;
5769
5770 interix*)
5771 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5772 lt_cv_sys_max_cmd_len=196608
5773 ;;
5774
5775 osf*)
5776 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5777 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5778 # nice to cause kernel panics so lets avoid the loop below.
5779 # First set a reasonable default.
5780 lt_cv_sys_max_cmd_len=16384
5781 #
5782 if test -x /sbin/sysconfig; then
5783 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5784 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5785 esac
5786 fi
5787 ;;
5788 sco3.2v5*)
5789 lt_cv_sys_max_cmd_len=102400
5790 ;;
5791 sysv5* | sco5v6* | sysv4.2uw2*)
5792 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5793 if test -n "$kargmax"; then
5794 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5795 else
5796 lt_cv_sys_max_cmd_len=32768
5797 fi
d7040cdb
SE
5798 ;;
5799 *)
718a6fd8
SE
5800 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5801 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804 else
5805 # Make teststring a little bigger before we do anything with it.
5806 # a 1K string should be a reasonable start.
5807 for i in 1 2 3 4 5 6 7 8 ; do
5808 teststring=$teststring$teststring
5809 done
5810 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5811 # If test is not a shell built-in, we'll probably end up computing a
5812 # maximum length that is only half of the actual maximum length, but
5813 # we can't tell.
3725885a
RW
5814 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5815 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5816 test $i != 17 # 1/2 MB should be enough
5817 do
5818 i=`expr $i + 1`
5819 teststring=$teststring$teststring
5820 done
5821 # Only check the string length outside the loop.
5822 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5823 teststring=
5824 # Add a significant safety factor because C++ compilers can tack on
5825 # massive amounts of additional arguments before passing them to the
5826 # linker. It appears as though 1/2 is a usable value.
5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5828 fi
d7040cdb
SE
5829 ;;
5830 esac
252b5132 5831
ce2cded5 5832fi
d6d788bd 5833
ce2cded5 5834if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5836$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5837else
81ecdfbb
RW
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5839$as_echo "none" >&6; }
ce2cded5
L
5840fi
5841max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5842
d6d788bd 5843
13b2be9c 5844
13b2be9c 5845
bedf545c 5846
252b5132 5847
ce2cded5
L
5848: ${CP="cp -f"}
5849: ${MV="mv -f"}
5850: ${RM="rm -f"}
d6d788bd 5851
81ecdfbb
RW
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5853$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
5854# Try some XSI features
5855xsi_shell=no
5856( _lt_dummy="a/b/c"
5857 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
718a6fd8
SE
5858 = c,a/b,, \
5859 && eval 'test $(( 1 + 1 )) -eq 2 \
5860 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 5861 && xsi_shell=yes
81ecdfbb
RW
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5863$as_echo "$xsi_shell" >&6; }
bedf545c 5864
bedf545c 5865
81ecdfbb
RW
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5867$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
5868lt_shell_append=no
5869( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5870 >/dev/null 2>&1 \
5871 && lt_shell_append=yes
81ecdfbb
RW
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5873$as_echo "$lt_shell_append" >&6; }
252b5132 5874
d6d788bd 5875
ce2cded5
L
5876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5877 lt_unset=unset
5878else
5879 lt_unset=false
5880fi
13b2be9c
DJ
5881
5882
5883
5884
d6d788bd 5885
ce2cded5
L
5886# test EBCDIC or ASCII
5887case `echo X|tr X '\101'` in
5888 A) # ASCII based system
5889 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5890 lt_SP2NL='tr \040 \012'
5891 lt_NL2SP='tr \015\012 \040\040'
5892 ;;
5893 *) # EBCDIC based system
5894 lt_SP2NL='tr \100 \n'
5895 lt_NL2SP='tr \r\n \100\100'
5896 ;;
5897esac
c43a438d 5898
c43a438d 5899
c43a438d 5900
252b5132 5901
ad22bfe8 5902
1ad12f97 5903
1ad12f97 5904
9e9b66a9 5905
1ad12f97 5906
81ecdfbb
RW
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5908$as_echo_n "checking for $LD option to reload object files... " >&6; }
5909if test "${lt_cv_ld_reload_flag+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
ce2cded5
L
5911else
5912 lt_cv_ld_reload_flag='-r'
5913fi
81ecdfbb
RW
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5915$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
5916reload_flag=$lt_cv_ld_reload_flag
5917case $reload_flag in
5918"" | " "*) ;;
5919*) reload_flag=" $reload_flag" ;;
5920esac
5921reload_cmds='$LD$reload_flag -o $output$reload_objs'
5922case $host_os in
5923 darwin*)
5924 if test "$GCC" = yes; then
5925 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5926 else
5927 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5928 fi
5929 ;;
5930esac
a541e3ce 5931
9e9b66a9 5932
a2d91340 5933
d6d788bd 5934
9e9b66a9
AM
5935
5936
5937
d6d788bd 5938
252b5132 5939
718a6fd8
SE
5940if test -n "$ac_tool_prefix"; then
5941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5942set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944$as_echo_n "checking for $ac_word... " >&6; }
5945if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
718a6fd8
SE
5947else
5948 if test -n "$OBJDUMP"; then
5949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5950else
5951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952for as_dir in $PATH
5953do
5954 IFS=$as_save_IFS
5955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5960 break 2
5961 fi
5962done
81ecdfbb
RW
5963 done
5964IFS=$as_save_IFS
718a6fd8
SE
5965
5966fi
5967fi
5968OBJDUMP=$ac_cv_prog_OBJDUMP
5969if test -n "$OBJDUMP"; then
81ecdfbb
RW
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5971$as_echo "$OBJDUMP" >&6; }
718a6fd8 5972else
81ecdfbb
RW
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974$as_echo "no" >&6; }
718a6fd8
SE
5975fi
5976
81ecdfbb 5977
718a6fd8
SE
5978fi
5979if test -z "$ac_cv_prog_OBJDUMP"; then
5980 ac_ct_OBJDUMP=$OBJDUMP
5981 # Extract the first word of "objdump", so it can be a program name with args.
5982set dummy objdump; ac_word=$2
81ecdfbb
RW
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5984$as_echo_n "checking for $ac_word... " >&6; }
5985if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
718a6fd8
SE
5987else
5988 if test -n "$ac_ct_OBJDUMP"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5990else
5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992for as_dir in $PATH
5993do
5994 IFS=$as_save_IFS
5995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5996 for ac_exec_ext in '' $ac_executable_extensions; do
5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6000 break 2
6001 fi
6002done
81ecdfbb
RW
6003 done
6004IFS=$as_save_IFS
718a6fd8 6005
718a6fd8
SE
6006fi
6007fi
6008ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6009if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6011$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6012else
81ecdfbb
RW
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014$as_echo "no" >&6; }
718a6fd8
SE
6015fi
6016
81ecdfbb
RW
6017 if test "x$ac_ct_OBJDUMP" = x; then
6018 OBJDUMP="false"
6019 else
6020 case $cross_compiling:$ac_tool_warned in
6021yes:)
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6024ac_tool_warned=yes ;;
6025esac
6026 OBJDUMP=$ac_ct_OBJDUMP
6027 fi
718a6fd8
SE
6028else
6029 OBJDUMP="$ac_cv_prog_OBJDUMP"
6030fi
6031
6032test -z "$OBJDUMP" && OBJDUMP=objdump
6033
6034
6035
6036
6037
6038
6039
6040
13b2be9c 6041
81ecdfbb
RW
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6043$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6044if test "${lt_cv_deplibs_check_method+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
d7040cdb 6046else
ce2cded5
L
6047 lt_cv_file_magic_cmd='$MAGIC_CMD'
6048lt_cv_file_magic_test_file=
6049lt_cv_deplibs_check_method='unknown'
6050# Need to set the preceding variable on all platforms that support
6051# interlibrary dependencies.
6052# 'none' -- dependencies not supported.
6053# `unknown' -- same as none, but documents that we really don't know.
6054# 'pass_all' -- all dependencies passed with no checks.
6055# 'test_compile' -- check by making test program.
6056# 'file_magic [[regex]]' -- check by looking for files in library path
6057# which responds to the $file_magic_cmd with a given extended regex.
6058# If you have `file' or equivalent on your system and you're not sure
6059# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 6060
ce2cded5 6061case $host_os in
50e7d84b 6062aix[4-9]*)
ce2cded5
L
6063 lt_cv_deplibs_check_method=pass_all
6064 ;;
d7040cdb 6065
ce2cded5
L
6066beos*)
6067 lt_cv_deplibs_check_method=pass_all
6068 ;;
d7040cdb 6069
ce2cded5
L
6070bsdi[45]*)
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6072 lt_cv_file_magic_cmd='/usr/bin/file -L'
6073 lt_cv_file_magic_test_file=/shlib/libc.so
6074 ;;
d7040cdb 6075
ce2cded5
L
6076cygwin*)
6077 # func_win32_libid is a shell function defined in ltmain.sh
6078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6079 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6080 ;;
ce2cded5
L
6081
6082mingw* | pw32*)
6083 # Base MSYS/MinGW do not provide the 'file' command needed by
6084 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6085 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6086 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6087 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
6088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6089 lt_cv_file_magic_cmd='func_win32_libid'
6090 else
6091 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6092 lt_cv_file_magic_cmd='$OBJDUMP -f'
6093 fi
d7040cdb 6094 ;;
ce2cded5 6095
3725885a 6096cegcc*)
718a6fd8
SE
6097 # use the weaker test based on 'objdump'. See mingw*.
6098 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6099 lt_cv_file_magic_cmd='$OBJDUMP -f'
6100 ;;
6101
ce2cded5
L
6102darwin* | rhapsody*)
6103 lt_cv_deplibs_check_method=pass_all
6104 ;;
6105
6106freebsd* | dragonfly*)
6107 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6108 case $host_cpu in
6109 i*86 )
6110 # Not sure whether the presence of OpenBSD here was a mistake.
6111 # Let's accept both of them until this is cleared up.
6112 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6113 lt_cv_file_magic_cmd=/usr/bin/file
6114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6115 ;;
6116 esac
6117 else
6118 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6119 fi
6120 ;;
ce2cded5
L
6121
6122gnu*)
6123 lt_cv_deplibs_check_method=pass_all
d7040cdb 6124 ;;
ce2cded5 6125
3725885a
RW
6126haiku*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129
ce2cded5
L
6130hpux10.20* | hpux11*)
6131 lt_cv_file_magic_cmd=/usr/bin/file
6132 case $host_cpu in
6133 ia64*)
6134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6136 ;;
6137 hppa*64*)
3725885a 6138 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
6139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6140 ;;
6141 *)
3725885a 6142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
6143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6144 ;;
6145 esac
d7040cdb 6146 ;;
ce2cded5
L
6147
6148interix[3-9]*)
6149 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6151 ;;
ce2cded5
L
6152
6153irix5* | irix6* | nonstopux*)
6154 case $LD in
6155 *-32|*"-32 ") libmagic=32-bit;;
6156 *-n32|*"-n32 ") libmagic=N32;;
6157 *-64|*"-64 ") libmagic=64-bit;;
6158 *) libmagic=never-match;;
6159 esac
6160 lt_cv_deplibs_check_method=pass_all
d7040cdb 6161 ;;
ce2cded5
L
6162
6163# This must be Linux ELF.
58e24671 6164linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 6165 lt_cv_deplibs_check_method=pass_all
d7040cdb 6166 ;;
ce2cded5
L
6167
6168netbsd*)
6169 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6171 else
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6173 fi
d7040cdb 6174 ;;
ce2cded5
L
6175
6176newos6*)
6177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6178 lt_cv_file_magic_cmd=/usr/bin/file
6179 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 6180 ;;
76a27922 6181
ce2cded5
L
6182*nto* | *qnx*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
d6d788bd 6185
ce2cded5
L
6186openbsd*)
6187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6189 else
6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6191 fi
6192 ;;
44f2f9d2 6193
ce2cded5
L
6194osf3* | osf4* | osf5*)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
44f2f9d2 6197
ce2cded5
L
6198rdos*)
6199 lt_cv_deplibs_check_method=pass_all
6200 ;;
6201
6202solaris*)
6203 lt_cv_deplibs_check_method=pass_all
6204 ;;
6205
6206sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210sysv4 | sysv4.3*)
6211 case $host_vendor in
6212 motorola)
6213 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]'
6214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6215 ;;
6216 ncr)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219 sequent)
6220 lt_cv_file_magic_cmd='/bin/file'
6221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6222 ;;
6223 sni)
6224 lt_cv_file_magic_cmd='/bin/file'
6225 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6226 lt_cv_file_magic_test_file=/lib/libc.so
6227 ;;
6228 siemens)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231 pc)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234 esac
6235 ;;
6236
6237tpf*)
6238 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6239 ;;
6240esac
6241
ce2cded5 6242fi
81ecdfbb
RW
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6244$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6245file_magic_cmd=$lt_cv_file_magic_cmd
6246deplibs_check_method=$lt_cv_deplibs_check_method
6247test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6248
d7040cdb 6249
d7040cdb 6250
d7040cdb 6251
d7040cdb 6252
44f2f9d2 6253
d7040cdb 6254
d7040cdb 6255
d7040cdb 6256
d7040cdb 6257
44f2f9d2 6258
d7040cdb 6259
ce2cded5
L
6260if test -n "$ac_tool_prefix"; then
6261 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6262set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264$as_echo_n "checking for $ac_word... " >&6; }
6265if test "${ac_cv_prog_AR+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
ce2cded5
L
6267else
6268 if test -n "$AR"; then
6269 ac_cv_prog_AR="$AR" # Let the user override the test.
6270else
6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272for as_dir in $PATH
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6278 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6280 break 2
d7040cdb
SE
6281 fi
6282done
81ecdfbb
RW
6283 done
6284IFS=$as_save_IFS
44f2f9d2 6285
ce2cded5
L
6286fi
6287fi
6288AR=$ac_cv_prog_AR
6289if test -n "$AR"; then
81ecdfbb
RW
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6291$as_echo "$AR" >&6; }
ce2cded5 6292else
81ecdfbb
RW
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294$as_echo "no" >&6; }
44f2f9d2 6295fi
d7040cdb 6296
81ecdfbb 6297
d7040cdb 6298fi
ce2cded5
L
6299if test -z "$ac_cv_prog_AR"; then
6300 ac_ct_AR=$AR
6301 # Extract the first word of "ar", so it can be a program name with args.
6302set dummy ar; ac_word=$2
81ecdfbb
RW
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
44f2f9d2 6307else
ce2cded5
L
6308 if test -n "$ac_ct_AR"; then
6309 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6318 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6320 break 2
6321 fi
6322done
81ecdfbb
RW
6323 done
6324IFS=$as_save_IFS
ce2cded5 6325
ce2cded5
L
6326fi
6327fi
6328ac_ct_AR=$ac_cv_prog_ac_ct_AR
6329if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6331$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6332else
81ecdfbb
RW
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
d7040cdb 6335fi
44f2f9d2 6336
81ecdfbb
RW
6337 if test "x$ac_ct_AR" = x; then
6338 AR="false"
6339 else
6340 case $cross_compiling:$ac_tool_warned in
6341yes:)
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6344ac_tool_warned=yes ;;
6345esac
6346 AR=$ac_ct_AR
6347 fi
ce2cded5
L
6348else
6349 AR="$ac_cv_prog_AR"
6350fi
d7040cdb 6351
ce2cded5
L
6352test -z "$AR" && AR=ar
6353test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
ce2cded5
L
6365if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6367set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369$as_echo_n "checking for $ac_word... " >&6; }
6370if test "${ac_cv_prog_STRIP+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
ce2cded5
L
6372else
6373 if test -n "$STRIP"; then
6374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6375else
6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6385 break 2
6386 fi
6387done
81ecdfbb
RW
6388 done
6389IFS=$as_save_IFS
d7040cdb 6390
ce2cded5
L
6391fi
6392fi
6393STRIP=$ac_cv_prog_STRIP
6394if test -n "$STRIP"; then
81ecdfbb
RW
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6396$as_echo "$STRIP" >&6; }
ce2cded5 6397else
81ecdfbb
RW
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399$as_echo "no" >&6; }
ce2cded5 6400fi
d7040cdb 6401
81ecdfbb 6402
ce2cded5
L
6403fi
6404if test -z "$ac_cv_prog_STRIP"; then
6405 ac_ct_STRIP=$STRIP
6406 # Extract the first word of "strip", so it can be a program name with args.
6407set dummy strip; ac_word=$2
81ecdfbb
RW
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6411 $as_echo_n "(cached) " >&6
ce2cded5
L
6412else
6413 if test -n "$ac_ct_STRIP"; then
6414 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6423 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6425 break 2
6426 fi
6427done
81ecdfbb
RW
6428 done
6429IFS=$as_save_IFS
d7040cdb 6430
ce2cded5
L
6431fi
6432fi
6433ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6434if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6436$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6437else
81ecdfbb
RW
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
ce2cded5 6440fi
d7040cdb 6441
81ecdfbb
RW
6442 if test "x$ac_ct_STRIP" = x; then
6443 STRIP=":"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446yes:)
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449ac_tool_warned=yes ;;
6450esac
6451 STRIP=$ac_ct_STRIP
6452 fi
ce2cded5
L
6453else
6454 STRIP="$ac_cv_prog_STRIP"
6455fi
d7040cdb 6456
ce2cded5 6457test -z "$STRIP" && STRIP=:
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
d7040cdb 6461
d7040cdb 6462
d7040cdb 6463
ce2cded5
L
6464if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6466set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468$as_echo_n "checking for $ac_word... " >&6; }
6469if test "${ac_cv_prog_RANLIB+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
44f2f9d2 6471else
ce2cded5
L
6472 if test -n "$RANLIB"; then
6473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6482 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6484 break 2
6485 fi
6486done
81ecdfbb
RW
6487 done
6488IFS=$as_save_IFS
44f2f9d2 6489
d7040cdb 6490fi
44f2f9d2 6491fi
ce2cded5
L
6492RANLIB=$ac_cv_prog_RANLIB
6493if test -n "$RANLIB"; then
81ecdfbb
RW
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6495$as_echo "$RANLIB" >&6; }
ce2cded5 6496else
81ecdfbb
RW
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
ce2cded5 6499fi
d7040cdb 6500
81ecdfbb 6501
d7040cdb 6502fi
ce2cded5
L
6503if test -z "$ac_cv_prog_RANLIB"; then
6504 ac_ct_RANLIB=$RANLIB
6505 # Extract the first word of "ranlib", so it can be a program name with args.
6506set dummy ranlib; ac_word=$2
81ecdfbb
RW
6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508$as_echo_n "checking for $ac_word... " >&6; }
6509if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6510 $as_echo_n "(cached) " >&6
44f2f9d2 6511else
ce2cded5
L
6512 if test -n "$ac_ct_RANLIB"; then
6513 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6514else
6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516for as_dir in $PATH
d7040cdb 6517do
ce2cded5
L
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ce2cded5 6522 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6524 break 2
d7040cdb 6525 fi
ce2cded5 6526done
81ecdfbb
RW
6527 done
6528IFS=$as_save_IFS
ce2cded5 6529
d7040cdb 6530fi
ce2cded5
L
6531fi
6532ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6533if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6535$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6536else
81ecdfbb
RW
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538$as_echo "no" >&6; }
44f2f9d2 6539fi
44f2f9d2 6540
81ecdfbb
RW
6541 if test "x$ac_ct_RANLIB" = x; then
6542 RANLIB=":"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545yes:)
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548ac_tool_warned=yes ;;
6549esac
6550 RANLIB=$ac_ct_RANLIB
6551 fi
d7040cdb 6552else
ce2cded5 6553 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6554fi
252b5132 6555
ce2cded5 6556test -z "$RANLIB" && RANLIB=:
252b5132 6557
252b5132 6558
ae57792d 6559
252b5132 6560
13b2be9c 6561
14ee9f48 6562
ce2cded5 6563# Determine commands to create old-style static archives.
718a6fd8 6564old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6565old_postinstall_cmds='chmod 644 $oldlib'
6566old_postuninstall_cmds=
14ee9f48 6567
ce2cded5
L
6568if test -n "$RANLIB"; then
6569 case $host_os in
6570 openbsd*)
6571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6572 ;;
6573 *)
6574 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6575 ;;
6576 esac
6577 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6578fi
14ee9f48 6579
3725885a
RW
6580case $host_os in
6581 darwin*)
6582 lock_old_archive_extraction=yes ;;
6583 *)
6584 lock_old_archive_extraction=no ;;
6585esac
6586
6587
6588
6589
6590
6591
f8fc3443 6592
f8fc3443 6593
252b5132 6594
85fbca6a 6595
85fbca6a 6596
13b2be9c 6597
13b2be9c 6598
d7040cdb 6599
d7040cdb
SE
6600
6601
6602
252b5132 6603
93fbbb04 6604
93fbbb04 6605
d70c5fc7 6606
e0001a05 6607
252b5132 6608
252b5132 6609
252b5132 6610
252b5132 6611
252b5132 6612
3bcbcc3d 6613
252b5132 6614
252b5132 6615
252b5132 6616
15886821 6617
252b5132 6618
252b5132 6619
13b2be9c
DJ
6620
6621
252b5132 6622
252b5132 6623
d6d788bd 6624
ce2cded5
L
6625# If no C compiler was specified, use CC.
6626LTCC=${LTCC-"$CC"}
252b5132 6627
ce2cded5
L
6628# If no C compiler flags were specified, use CFLAGS.
6629LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6630
ce2cded5
L
6631# Allow CC to be a program name with arguments.
6632compiler=$CC
252b5132 6633
252b5132 6634
ce2cded5 6635# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6637$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6638if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
ce2cded5 6640else
252b5132 6641
ce2cded5
L
6642# These are sane defaults that work on at least a few old systems.
6643# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6644
ce2cded5
L
6645# Character class describing NM global symbol codes.
6646symcode='[BCDEGRST]'
252b5132 6647
ce2cded5
L
6648# Regexp to match symbols that can be accessed directly from C.
6649sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6650
ce2cded5
L
6651# Define system-specific variables.
6652case $host_os in
6653aix*)
6654 symcode='[BCDT]'
6655 ;;
718a6fd8 6656cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6657 symcode='[ABCDGISTW]'
6658 ;;
6659hpux*)
6660 if test "$host_cpu" = ia64; then
6661 symcode='[ABCDEGRST]'
6662 fi
6663 ;;
6664irix* | nonstopux*)
6665 symcode='[BCDEGRST]'
6666 ;;
6667osf*)
6668 symcode='[BCDEGQRST]'
6669 ;;
6670solaris*)
6671 symcode='[BDRT]'
6672 ;;
6673sco3.2v5*)
6674 symcode='[DT]'
6675 ;;
6676sysv4.2uw2*)
6677 symcode='[DT]'
6678 ;;
6679sysv5* | sco5v6* | unixware* | OpenUNIX*)
6680 symcode='[ABDT]'
6681 ;;
6682sysv4)
6683 symcode='[DFNSTU]'
6684 ;;
6685esac
6686
6687# If we're using GNU nm, then use its standard symbol codes.
6688case `$NM -V 2>&1` in
6689*GNU* | *'with BFD'*)
6690 symcode='[ABCDGIRSTW]' ;;
6691esac
252b5132 6692
ce2cded5
L
6693# Transform an extracted symbol line into a proper C declaration.
6694# Some systems (esp. on ia64) link data and code symbols differently,
6695# so use this general approach.
6696lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6697
ce2cded5 6698# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6699lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
718a6fd8 6700lt_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 6701
7357c5b6
AM
6702# Handle CRLF in mingw tool chain
6703opt_cr=
6704case $build_os in
6705mingw*)
6706 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6707 ;;
6708esac
d7040cdb 6709
7357c5b6
AM
6710# Try without a prefix underscore, then with it.
6711for ac_symprfx in "" "_"; do
d7040cdb 6712
7357c5b6
AM
6713 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6714 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6715
7357c5b6
AM
6716 # Write the raw and C identifiers.
6717 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6718 # Fake it for dumpbin and say T for any non-static function
6719 # and D for any global variable.
6720 # Also find C++ and __fastcall symbols from MSVC++,
6721 # which start with @ or ?.
6722 lt_cv_sys_global_symbol_pipe="$AWK '"\
6723" {last_section=section; section=\$ 3};"\
6724" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6725" \$ 0!~/External *\|/{next};"\
6726" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6727" {if(hide[section]) next};"\
6728" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6729" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6730" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6731" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6732" ' prfx=^$ac_symprfx"
6733 else
6734 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6735 fi
d7040cdb 6736
7357c5b6
AM
6737 # Check to see that the pipe works correctly.
6738 pipe_works=no
d7040cdb 6739
7357c5b6
AM
6740 rm -f conftest*
6741 cat > conftest.$ac_ext <<_LT_EOF
6742#ifdef __cplusplus
6743extern "C" {
6744#endif
6745char nm_test_var;
6746void nm_test_func(void);
6747void nm_test_func(void){}
6748#ifdef __cplusplus
ce2cded5 6749}
7357c5b6
AM
6750#endif
6751int main(){nm_test_var='a';nm_test_func();return(0);}
6752_LT_EOF
6753
81ecdfbb 6754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6755 (eval $ac_compile) 2>&5
ce2cded5 6756 ac_status=$?
81ecdfbb
RW
6757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6758 test $ac_status = 0; }; then
7357c5b6
AM
6759 # Now try to grab the symbols.
6760 nlist=conftest.nm
3725885a
RW
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6762 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6763 ac_status=$?
81ecdfbb
RW
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6766 # Try sorting and uniquifying the output.
6767 if sort "$nlist" | uniq > "$nlist"T; then
6768 mv -f "$nlist"T "$nlist"
6769 else
6770 rm -f "$nlist"T
6771 fi
13b2be9c 6772
7357c5b6
AM
6773 # Make sure that we snagged all the symbols we need.
6774 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6775 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6776 cat <<_LT_EOF > conftest.$ac_ext
6777#ifdef __cplusplus
6778extern "C" {
6779#endif
13b2be9c 6780
7357c5b6
AM
6781_LT_EOF
6782 # Now generate the symbol file.
6783 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6784
7357c5b6 6785 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6786
7357c5b6
AM
6787/* The mapping between symbol names and symbols. */
6788const struct {
6789 const char *name;
6790 void *address;
6791}
6792lt__PROGRAM__LTX_preloaded_symbols[] =
6793{
6794 { "@PROGRAM@", (void *) 0 },
6795_LT_EOF
6796 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6797 cat <<\_LT_EOF >> conftest.$ac_ext
6798 {0, (void *) 0}
6799};
d7040cdb 6800
7357c5b6
AM
6801/* This works around a problem in FreeBSD linker */
6802#ifdef FREEBSD_WORKAROUND
6803static const void *lt_preloaded_setup() {
6804 return lt__PROGRAM__LTX_preloaded_symbols;
6805}
ce2cded5 6806#endif
d7040cdb 6807
7357c5b6 6808#ifdef __cplusplus
ce2cded5 6809}
7357c5b6
AM
6810#endif
6811_LT_EOF
6812 # Now try linking the two files.
6813 mv conftest.$ac_objext conftstm.$ac_objext
6814 lt_save_LIBS="$LIBS"
6815 lt_save_CFLAGS="$CFLAGS"
6816 LIBS="conftstm.$ac_objext"
6817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6819 (eval $ac_link) 2>&5
6820 ac_status=$?
81ecdfbb
RW
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6823 pipe_works=yes
6824 fi
6825 LIBS="$lt_save_LIBS"
6826 CFLAGS="$lt_save_CFLAGS"
6827 else
6828 echo "cannot find nm_test_func in $nlist" >&5
6829 fi
6830 else
6831 echo "cannot find nm_test_var in $nlist" >&5
6832 fi
6833 else
6834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6835 fi
6836 else
6837 echo "$progname: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6839 fi
718a6fd8 6840 rm -rf conftest* conftst*
7357c5b6
AM
6841
6842 # Do not use the global_symbol_pipe unless it works.
6843 if test "$pipe_works" = yes; then
6844 break
6845 else
6846 lt_cv_sys_global_symbol_pipe=
6847 fi
6848done
d7040cdb 6849
ce2cded5 6850fi
7357c5b6
AM
6851
6852if test -z "$lt_cv_sys_global_symbol_pipe"; then
6853 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 6854fi
7357c5b6 6855if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6857$as_echo "failed" >&6; }
7357c5b6 6858else
81ecdfbb
RW
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6860$as_echo "ok" >&6; }
ce2cded5 6861fi
d7040cdb 6862
d7040cdb 6863
d7040cdb 6864
d7040cdb 6865
d7040cdb 6866
d7040cdb 6867
d7040cdb 6868
d7040cdb 6869
d7040cdb 6870
d7040cdb 6871
d7040cdb 6872
d7040cdb 6873
7357c5b6
AM
6874
6875
6876
718a6fd8
SE
6877
6878
6879
6880
6881
7357c5b6
AM
6882
6883
81ecdfbb
RW
6884# Check whether --enable-libtool-lock was given.
6885if test "${enable_libtool_lock+set}" = set; then :
6886 enableval=$enable_libtool_lock;
6887fi
7357c5b6 6888
7357c5b6
AM
6889test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6890
6891# Some flags need to be propagated to the compiler or linker for good
6892# libtool support.
6893case $host in
6894ia64-*-hpux*)
6895 # Find out which ABI we are using.
6896 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
81ecdfbb
RW
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }; then
7357c5b6
AM
6902 case `/usr/bin/file conftest.$ac_objext` in
6903 *ELF-32*)
6904 HPUX_IA64_MODE="32"
6905 ;;
6906 *ELF-64*)
6907 HPUX_IA64_MODE="64"
6908 ;;
6909 esac
6910 fi
6911 rm -rf conftest*
6912 ;;
6913*-*-irix6*)
6914 # Find out which ABI we are using.
3725885a 6915 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6917 (eval $ac_compile) 2>&5
6918 ac_status=$?
81ecdfbb
RW
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; }; then
7357c5b6
AM
6921 if test "$lt_cv_prog_gnu_ld" = yes; then
6922 case `/usr/bin/file conftest.$ac_objext` in
6923 *32-bit*)
6924 LD="${LD-ld} -melf32bsmip"
6925 ;;
6926 *N32*)
6927 LD="${LD-ld} -melf32bmipn32"
6928 ;;
6929 *64-bit*)
6930 LD="${LD-ld} -melf64bmip"
6931 ;;
6932 esac
6933 else
6934 case `/usr/bin/file conftest.$ac_objext` in
6935 *32-bit*)
6936 LD="${LD-ld} -32"
6937 ;;
6938 *N32*)
6939 LD="${LD-ld} -n32"
6940 ;;
6941 *64-bit*)
6942 LD="${LD-ld} -64"
6943 ;;
6944 esac
6945 fi
6946 fi
6947 rm -rf conftest*
6948 ;;
6949
6950x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6951s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6952 # Find out which ABI we are using.
6953 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6955 (eval $ac_compile) 2>&5
6956 ac_status=$?
81ecdfbb
RW
6957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958 test $ac_status = 0; }; then
7357c5b6
AM
6959 case `/usr/bin/file conftest.o` in
6960 *32-bit*)
6961 case $host in
6962 x86_64-*kfreebsd*-gnu)
6963 LD="${LD-ld} -m elf_i386_fbsd"
6964 ;;
6965 x86_64-*linux*)
6966 LD="${LD-ld} -m elf_i386"
6967 ;;
6968 ppc64-*linux*|powerpc64-*linux*)
6969 LD="${LD-ld} -m elf32ppclinux"
6970 ;;
6971 s390x-*linux*)
6972 LD="${LD-ld} -m elf_s390"
6973 ;;
6974 sparc64-*linux*)
6975 LD="${LD-ld} -m elf32_sparc"
6976 ;;
6977 esac
6978 ;;
6979 *64-bit*)
6980 case $host in
6981 x86_64-*kfreebsd*-gnu)
6982 LD="${LD-ld} -m elf_x86_64_fbsd"
6983 ;;
6984 x86_64-*linux*)
6985 LD="${LD-ld} -m elf_x86_64"
6986 ;;
6987 ppc*-*linux*|powerpc*-*linux*)
6988 LD="${LD-ld} -m elf64ppc"
6989 ;;
6990 s390*-*linux*|s390*-*tpf*)
6991 LD="${LD-ld} -m elf64_s390"
6992 ;;
6993 sparc*-*linux*)
6994 LD="${LD-ld} -m elf64_sparc"
6995 ;;
6996 esac
6997 ;;
6998 esac
6999 fi
7000 rm -rf conftest*
7001 ;;
7002
7003*-*-sco3.2v5*)
7004 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7005 SAVE_CFLAGS="$CFLAGS"
7006 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7008$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7009if test "${lt_cv_cc_needs_belf+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
ce2cded5 7011else
7357c5b6
AM
7012 ac_ext=c
7013ac_cpp='$CPP $CPPFLAGS'
7014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7016ac_compiler_gnu=$ac_cv_c_compiler_gnu
7017
81ecdfbb 7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7019/* end confdefs.h. */
d7040cdb 7020
7357c5b6
AM
7021int
7022main ()
7023{
7024
7025 ;
7026 return 0;
7027}
ce2cded5 7028_ACEOF
81ecdfbb 7029if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7030 lt_cv_cc_needs_belf=yes
ce2cded5 7031else
81ecdfbb 7032 lt_cv_cc_needs_belf=no
ce2cded5 7033fi
81ecdfbb
RW
7034rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7036 ac_ext=c
7037ac_cpp='$CPP $CPPFLAGS'
7038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7041
ce2cded5 7042fi
81ecdfbb
RW
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7044$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7045 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7046 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7047 CFLAGS="$SAVE_CFLAGS"
7048 fi
7049 ;;
7050sparc*-*solaris*)
7051 # Find out which ABI we are using.
7052 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7054 (eval $ac_compile) 2>&5
7055 ac_status=$?
81ecdfbb
RW
7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7057 test $ac_status = 0; }; then
7357c5b6
AM
7058 case `/usr/bin/file conftest.o` in
7059 *64-bit*)
7060 case $lt_cv_prog_gnu_ld in
7061 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7062 *)
7063 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7064 LD="${LD-ld} -64"
7065 fi
7066 ;;
7357c5b6
AM
7067 esac
7068 ;;
7069 esac
7070 fi
7071 rm -rf conftest*
7072 ;;
7073esac
d7040cdb 7074
718a6fd8
SE
7075need_locks="$enable_libtool_lock"
7076
7077
7078 case $host_os in
7079 rhapsody* | darwin*)
7080 if test -n "$ac_tool_prefix"; then
7081 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7082set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084$as_echo_n "checking for $ac_word... " >&6; }
7085if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
718a6fd8
SE
7087else
7088 if test -n "$DSYMUTIL"; then
7089 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7098 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7100 break 2
7101 fi
7102done
81ecdfbb
RW
7103 done
7104IFS=$as_save_IFS
718a6fd8
SE
7105
7106fi
7107fi
7108DSYMUTIL=$ac_cv_prog_DSYMUTIL
7109if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7111$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7112else
81ecdfbb
RW
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114$as_echo "no" >&6; }
718a6fd8
SE
7115fi
7116
81ecdfbb 7117
718a6fd8
SE
7118fi
7119if test -z "$ac_cv_prog_DSYMUTIL"; then
7120 ac_ct_DSYMUTIL=$DSYMUTIL
7121 # Extract the first word of "dsymutil", so it can be a program name with args.
7122set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124$as_echo_n "checking for $ac_word... " >&6; }
7125if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
718a6fd8
SE
7127else
7128 if test -n "$ac_ct_DSYMUTIL"; then
7129 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7138 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7140 break 2
7141 fi
7142done
81ecdfbb
RW
7143 done
7144IFS=$as_save_IFS
718a6fd8 7145
718a6fd8
SE
7146fi
7147fi
7148ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7149if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7151$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7152else
81ecdfbb
RW
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154$as_echo "no" >&6; }
718a6fd8
SE
7155fi
7156
81ecdfbb
RW
7157 if test "x$ac_ct_DSYMUTIL" = x; then
7158 DSYMUTIL=":"
7159 else
7160 case $cross_compiling:$ac_tool_warned in
7161yes:)
7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164ac_tool_warned=yes ;;
7165esac
7166 DSYMUTIL=$ac_ct_DSYMUTIL
7167 fi
718a6fd8
SE
7168else
7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7170fi
7171
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7174set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176$as_echo_n "checking for $ac_word... " >&6; }
7177if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
718a6fd8
SE
7179else
7180 if test -n "$NMEDIT"; then
7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7182else
7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184for as_dir in $PATH
7185do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7192 break 2
7193 fi
7194done
81ecdfbb
RW
7195 done
7196IFS=$as_save_IFS
718a6fd8
SE
7197
7198fi
7199fi
7200NMEDIT=$ac_cv_prog_NMEDIT
7201if test -n "$NMEDIT"; then
81ecdfbb
RW
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7203$as_echo "$NMEDIT" >&6; }
718a6fd8 7204else
81ecdfbb
RW
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206$as_echo "no" >&6; }
718a6fd8
SE
7207fi
7208
81ecdfbb 7209
718a6fd8
SE
7210fi
7211if test -z "$ac_cv_prog_NMEDIT"; then
7212 ac_ct_NMEDIT=$NMEDIT
7213 # Extract the first word of "nmedit", so it can be a program name with args.
7214set dummy nmedit; ac_word=$2
81ecdfbb
RW
7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216$as_echo_n "checking for $ac_word... " >&6; }
7217if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
718a6fd8
SE
7219else
7220 if test -n "$ac_ct_NMEDIT"; then
7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7222else
7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7230 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7232 break 2
7233 fi
7234done
81ecdfbb
RW
7235 done
7236IFS=$as_save_IFS
718a6fd8 7237
718a6fd8
SE
7238fi
7239fi
7240ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7241if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7243$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7244else
81ecdfbb
RW
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
718a6fd8
SE
7247fi
7248
81ecdfbb
RW
7249 if test "x$ac_ct_NMEDIT" = x; then
7250 NMEDIT=":"
7251 else
7252 case $cross_compiling:$ac_tool_warned in
7253yes:)
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256ac_tool_warned=yes ;;
7257esac
7258 NMEDIT=$ac_ct_NMEDIT
7259 fi
718a6fd8
SE
7260else
7261 NMEDIT="$ac_cv_prog_NMEDIT"
7262fi
7263
7264 if test -n "$ac_tool_prefix"; then
7265 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7266set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268$as_echo_n "checking for $ac_word... " >&6; }
7269if test "${ac_cv_prog_LIPO+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
718a6fd8
SE
7271else
7272 if test -n "$LIPO"; then
7273 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7274else
7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276for as_dir in $PATH
7277do
7278 IFS=$as_save_IFS
7279 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7282 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7284 break 2
7285 fi
7286done
81ecdfbb
RW
7287 done
7288IFS=$as_save_IFS
718a6fd8
SE
7289
7290fi
7291fi
7292LIPO=$ac_cv_prog_LIPO
7293if test -n "$LIPO"; then
81ecdfbb
RW
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7295$as_echo "$LIPO" >&6; }
718a6fd8 7296else
81ecdfbb
RW
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298$as_echo "no" >&6; }
718a6fd8
SE
7299fi
7300
81ecdfbb 7301
718a6fd8
SE
7302fi
7303if test -z "$ac_cv_prog_LIPO"; then
7304 ac_ct_LIPO=$LIPO
7305 # Extract the first word of "lipo", so it can be a program name with args.
7306set dummy lipo; ac_word=$2
81ecdfbb
RW
7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308$as_echo_n "checking for $ac_word... " >&6; }
7309if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7310 $as_echo_n "(cached) " >&6
718a6fd8
SE
7311else
7312 if test -n "$ac_ct_LIPO"; then
7313 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7314else
7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7322 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7324 break 2
7325 fi
7326done
81ecdfbb
RW
7327 done
7328IFS=$as_save_IFS
718a6fd8 7329
718a6fd8
SE
7330fi
7331fi
7332ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7333if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7335$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7336else
81ecdfbb
RW
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338$as_echo "no" >&6; }
718a6fd8
SE
7339fi
7340
81ecdfbb
RW
7341 if test "x$ac_ct_LIPO" = x; then
7342 LIPO=":"
7343 else
7344 case $cross_compiling:$ac_tool_warned in
7345yes:)
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348ac_tool_warned=yes ;;
7349esac
7350 LIPO=$ac_ct_LIPO
7351 fi
718a6fd8
SE
7352else
7353 LIPO="$ac_cv_prog_LIPO"
7354fi
7355
7356 if test -n "$ac_tool_prefix"; then
7357 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7358set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360$as_echo_n "checking for $ac_word... " >&6; }
7361if test "${ac_cv_prog_OTOOL+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
718a6fd8
SE
7363else
7364 if test -n "$OTOOL"; then
7365 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7366else
7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368for as_dir in $PATH
7369do
7370 IFS=$as_save_IFS
7371 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7374 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7376 break 2
7377 fi
7378done
81ecdfbb
RW
7379 done
7380IFS=$as_save_IFS
718a6fd8
SE
7381
7382fi
7383fi
7384OTOOL=$ac_cv_prog_OTOOL
7385if test -n "$OTOOL"; then
81ecdfbb
RW
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7387$as_echo "$OTOOL" >&6; }
718a6fd8 7388else
81ecdfbb
RW
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390$as_echo "no" >&6; }
718a6fd8
SE
7391fi
7392
81ecdfbb 7393
718a6fd8
SE
7394fi
7395if test -z "$ac_cv_prog_OTOOL"; then
7396 ac_ct_OTOOL=$OTOOL
7397 # Extract the first word of "otool", so it can be a program name with args.
7398set dummy otool; ac_word=$2
81ecdfbb
RW
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400$as_echo_n "checking for $ac_word... " >&6; }
7401if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
718a6fd8
SE
7403else
7404 if test -n "$ac_ct_OTOOL"; then
7405 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7406else
7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408for as_dir in $PATH
7409do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7414 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7416 break 2
7417 fi
7418done
81ecdfbb
RW
7419 done
7420IFS=$as_save_IFS
718a6fd8 7421
718a6fd8
SE
7422fi
7423fi
7424ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7425if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7427$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7428else
81ecdfbb
RW
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430$as_echo "no" >&6; }
718a6fd8
SE
7431fi
7432
81ecdfbb
RW
7433 if test "x$ac_ct_OTOOL" = x; then
7434 OTOOL=":"
7435 else
7436 case $cross_compiling:$ac_tool_warned in
7437yes:)
7438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440ac_tool_warned=yes ;;
7441esac
7442 OTOOL=$ac_ct_OTOOL
7443 fi
718a6fd8
SE
7444else
7445 OTOOL="$ac_cv_prog_OTOOL"
7446fi
7447
7448 if test -n "$ac_tool_prefix"; then
7449 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7450set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452$as_echo_n "checking for $ac_word... " >&6; }
7453if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
718a6fd8
SE
7455else
7456 if test -n "$OTOOL64"; then
7457 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7458else
7459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7466 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7468 break 2
7469 fi
7470done
81ecdfbb
RW
7471 done
7472IFS=$as_save_IFS
718a6fd8
SE
7473
7474fi
7475fi
7476OTOOL64=$ac_cv_prog_OTOOL64
7477if test -n "$OTOOL64"; then
81ecdfbb
RW
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7479$as_echo "$OTOOL64" >&6; }
718a6fd8 7480else
81ecdfbb
RW
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482$as_echo "no" >&6; }
718a6fd8
SE
7483fi
7484
81ecdfbb 7485
718a6fd8
SE
7486fi
7487if test -z "$ac_cv_prog_OTOOL64"; then
7488 ac_ct_OTOOL64=$OTOOL64
7489 # Extract the first word of "otool64", so it can be a program name with args.
7490set dummy otool64; ac_word=$2
81ecdfbb
RW
7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492$as_echo_n "checking for $ac_word... " >&6; }
7493if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7494 $as_echo_n "(cached) " >&6
718a6fd8
SE
7495else
7496 if test -n "$ac_ct_OTOOL64"; then
7497 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7498else
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7506 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7508 break 2
7509 fi
7510done
81ecdfbb
RW
7511 done
7512IFS=$as_save_IFS
718a6fd8 7513
718a6fd8
SE
7514fi
7515fi
7516ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7517if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7519$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7520else
81ecdfbb
RW
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
718a6fd8
SE
7523fi
7524
81ecdfbb
RW
7525 if test "x$ac_ct_OTOOL64" = x; then
7526 OTOOL64=":"
7527 else
7528 case $cross_compiling:$ac_tool_warned in
7529yes:)
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532ac_tool_warned=yes ;;
7533esac
7534 OTOOL64=$ac_ct_OTOOL64
7535 fi
718a6fd8
SE
7536else
7537 OTOOL64="$ac_cv_prog_OTOOL64"
7538fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
81ecdfbb
RW
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7567$as_echo_n "checking for -single_module linker flag... " >&6; }
7568if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
718a6fd8
SE
7570else
7571 lt_cv_apple_cc_single_mod=no
7572 if test -z "${LT_MULTI_MODULE}"; then
7573 # By default we will add the -single_module flag. You can override
7574 # by either setting the environment variable LT_MULTI_MODULE
7575 # non-empty at configure time, or by adding -multi_module to the
7576 # link flags.
7577 rm -rf libconftest.dylib*
7578 echo "int foo(void){return 1;}" > conftest.c
7579 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7580-dynamiclib -Wl,-single_module conftest.c" >&5
7581 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7582 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7583 _lt_result=$?
7584 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7585 lt_cv_apple_cc_single_mod=yes
7586 else
7587 cat conftest.err >&5
7588 fi
7589 rm -rf libconftest.dylib*
7590 rm -f conftest.*
7591 fi
7592fi
81ecdfbb
RW
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7594$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7596$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7597if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7598 $as_echo_n "(cached) " >&6
718a6fd8
SE
7599else
7600 lt_cv_ld_exported_symbols_list=no
7601 save_LDFLAGS=$LDFLAGS
7602 echo "_main" > conftest.sym
7603 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7605/* end confdefs.h. */
7606
7607int
7608main ()
7609{
7610
7611 ;
7612 return 0;
7613}
7614_ACEOF
81ecdfbb 7615if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7616 lt_cv_ld_exported_symbols_list=yes
7617else
81ecdfbb 7618 lt_cv_ld_exported_symbols_list=no
718a6fd8 7619fi
81ecdfbb
RW
7620rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7622 LDFLAGS="$save_LDFLAGS"
7623
7624fi
81ecdfbb
RW
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7626$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7628$as_echo_n "checking for -force_load linker flag... " >&6; }
7629if test "${lt_cv_ld_force_load+set}" = set; then :
7630 $as_echo_n "(cached) " >&6
7631else
7632 lt_cv_ld_force_load=no
7633 cat > conftest.c << _LT_EOF
7634int forced_loaded() { return 2;}
7635_LT_EOF
7636 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7637 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7638 echo "$AR cru libconftest.a conftest.o" >&5
7639 $AR cru libconftest.a conftest.o 2>&5
7640 cat > conftest.c << _LT_EOF
7641int main() { return 0;}
7642_LT_EOF
7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7644 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7645 _lt_result=$?
7646 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7647 lt_cv_ld_force_load=yes
7648 else
7649 cat conftest.err >&5
7650 fi
7651 rm -f conftest.err libconftest.a conftest conftest.c
7652 rm -rf conftest.dSYM
7653
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7656$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7657 case $host_os in
7658 rhapsody* | darwin1.[012])
7659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7660 darwin1.*)
7661 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7662 darwin*) # darwin 5.x on
7663 # if running on 10.5 or later, the deployment target defaults
7664 # to the OS version, if on x86, and 10.4, the deployment
7665 # target defaults to 10.4. Don't you love it?
7666 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7667 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7668 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669 10.[012]*)
7670 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7671 10.*)
7672 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7673 esac
7674 ;;
7675 esac
7676 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7677 _lt_dar_single_mod='$single_module'
7678 fi
7679 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7680 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7681 else
7682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7683 fi
3725885a 7684 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7685 _lt_dsymutil='~$DSYMUTIL $lib || :'
7686 else
7687 _lt_dsymutil=
7688 fi
7689 ;;
7690 esac
7691
718a6fd8 7692for ac_header in dlfcn.h
81ecdfbb
RW
7693do :
7694 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7695"
7696if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7697 cat >>confdefs.h <<_ACEOF
81ecdfbb 7698#define HAVE_DLFCN_H 1
718a6fd8
SE
7699_ACEOF
7700
7701fi
7702
7703done
7704
7705
7706
3725885a
RW
7707
7708
718a6fd8
SE
7709# Set options
7710
7711
7712
7713 enable_dlopen=no
7714
7715
7716 enable_win32_dll=no
7717
7718
81ecdfbb
RW
7719 # Check whether --enable-shared was given.
7720if test "${enable_shared+set}" = set; then :
7721 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7722 case $enableval in
7723 yes) enable_shared=yes ;;
7724 no) enable_shared=no ;;
7725 *)
7726 enable_shared=no
7727 # Look at the argument we got. We use all the common list separators.
7728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729 for pkg in $enableval; do
7730 IFS="$lt_save_ifs"
7731 if test "X$pkg" = "X$p"; then
7732 enable_shared=yes
7733 fi
7734 done
7735 IFS="$lt_save_ifs"
7736 ;;
7737 esac
7738else
7739 enable_shared=yes
81ecdfbb
RW
7740fi
7741
718a6fd8
SE
7742
7743
7744
7745
7746
7747
7748
7749
81ecdfbb
RW
7750 # Check whether --enable-static was given.
7751if test "${enable_static+set}" = set; then :
7752 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7753 case $enableval in
7754 yes) enable_static=yes ;;
7755 no) enable_static=no ;;
7756 *)
7757 enable_static=no
7758 # Look at the argument we got. We use all the common list separators.
7759 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7760 for pkg in $enableval; do
7761 IFS="$lt_save_ifs"
7762 if test "X$pkg" = "X$p"; then
7763 enable_static=yes
7764 fi
7765 done
7766 IFS="$lt_save_ifs"
7767 ;;
7768 esac
7769else
7770 enable_static=yes
81ecdfbb
RW
7771fi
7772
718a6fd8
SE
7773
7774
d7040cdb 7775
d7040cdb 7776
718a6fd8
SE
7777
7778
7779
7780
7781
81ecdfbb
RW
7782# Check whether --with-pic was given.
7783if test "${with_pic+set}" = set; then :
7784 withval=$with_pic; pic_mode="$withval"
ce2cded5 7785else
718a6fd8 7786 pic_mode=default
81ecdfbb
RW
7787fi
7788
d7040cdb 7789
718a6fd8
SE
7790test -z "$pic_mode" && pic_mode=default
7791
7792
7793
7794
7795
7796
7797
81ecdfbb
RW
7798 # Check whether --enable-fast-install was given.
7799if test "${enable_fast_install+set}" = set; then :
7800 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7801 case $enableval in
7802 yes) enable_fast_install=yes ;;
7803 no) enable_fast_install=no ;;
7804 *)
7805 enable_fast_install=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7808 for pkg in $enableval; do
7809 IFS="$lt_save_ifs"
7810 if test "X$pkg" = "X$p"; then
7811 enable_fast_install=yes
7812 fi
7813 done
7814 IFS="$lt_save_ifs"
7815 ;;
7816 esac
ce2cded5 7817else
718a6fd8 7818 enable_fast_install=yes
81ecdfbb
RW
7819fi
7820
718a6fd8
SE
7821
7822
7823
7824
d7040cdb 7825
d7040cdb 7826
d7040cdb 7827
d7040cdb 7828
d7040cdb 7829
d7040cdb 7830
ce2cded5
L
7831# This can be used to rebuild libtool when needed
7832LIBTOOL_DEPS="$ltmain"
d7040cdb 7833
ce2cded5
L
7834# Always use our own libtool.
7835LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7836
d7040cdb 7837
d7040cdb 7838
d7040cdb
SE
7839
7840
7841
7842
7843
7844
d7040cdb 7845
d7040cdb 7846
ab509236 7847
ab509236 7848
d7040cdb
SE
7849
7850
7851
7852
7853
13b2be9c 7854
13b2be9c 7855
13b2be9c 7856
13b2be9c 7857
d7040cdb 7858
3725885a 7859
d7040cdb
SE
7860
7861
ce2cded5 7862test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7863
7864
d7040cdb 7865
d7040cdb 7866
d7040cdb
SE
7867
7868
7869
7870
7871
7872
ce2cded5
L
7873
7874
7875
7876
7877if test -n "${ZSH_VERSION+set}" ; then
7878 setopt NO_GLOB_SUBST
7879fi
7880
81ecdfbb
RW
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7882$as_echo_n "checking for objdir... " >&6; }
7883if test "${lt_cv_objdir+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
d7040cdb 7885else
ce2cded5
L
7886 rm -f .libs 2>/dev/null
7887mkdir .libs 2>/dev/null
7888if test -d .libs; then
7889 lt_cv_objdir=.libs
7890else
7891 # MS-DOS does not allow filenames that begin with a dot.
7892 lt_cv_objdir=_libs
d7040cdb 7893fi
ce2cded5
L
7894rmdir .libs 2>/dev/null
7895fi
81ecdfbb
RW
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7897$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 7898objdir=$lt_cv_objdir
d7040cdb
SE
7899
7900
7901
7902
d7040cdb 7903
ce2cded5
L
7904cat >>confdefs.h <<_ACEOF
7905#define LT_OBJDIR "$lt_cv_objdir/"
7906_ACEOF
d7040cdb
SE
7907
7908
7909
7910
ce2cded5
L
7911case $host_os in
7912aix3*)
7913 # AIX sometimes has problems with the GCC collect2 program. For some
7914 # reason, if we set the COLLECT_NAMES environment variable, the problems
7915 # vanish in a puff of smoke.
7916 if test "X${COLLECT_NAMES+set}" != Xset; then
7917 COLLECT_NAMES=
7918 export COLLECT_NAMES
7919 fi
7920 ;;
7921esac
d7040cdb 7922
ce2cded5
L
7923# Global variables:
7924ofile=libtool
7925can_build_shared=yes
d7040cdb 7926
ce2cded5
L
7927# All known linkers require a `.a' archive for static linking (except MSVC,
7928# which needs '.lib').
7929libext=a
d7040cdb 7930
ce2cded5 7931with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7932
ce2cded5
L
7933old_CC="$CC"
7934old_CFLAGS="$CFLAGS"
d7040cdb 7935
ce2cded5
L
7936# Set sane defaults for various variables
7937test -z "$CC" && CC=cc
7938test -z "$LTCC" && LTCC=$CC
7939test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7940test -z "$LD" && LD=ld
7941test -z "$ac_objext" && ac_objext=o
7942
7943for cc_temp in $compiler""; do
7944 case $cc_temp in
7945 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7946 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7947 \-*) ;;
7948 *) break;;
7949 esac
7950done
3725885a 7951cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
7952
7953
7954# Only perform the check for file, if the check method requires it
7955test -z "$MAGIC_CMD" && MAGIC_CMD=file
7956case $deplibs_check_method in
7957file_magic*)
7958 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7960$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7961if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
ce2cded5
L
7963else
7964 case $MAGIC_CMD in
7965[\\/*] | ?:[\\/]*)
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7967 ;;
7968*)
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7973 IFS="$lt_save_ifs"
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/${ac_tool_prefix}file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7979 "file_magic "*)
7980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7984 :
d7040cdb 7985 else
ce2cded5 7986 cat <<_LT_EOF 1>&2
d7040cdb 7987
ce2cded5
L
7988*** Warning: the command libtool uses to detect shared libraries,
7989*** $file_magic_cmd, produces output that libtool cannot recognize.
7990*** The result is that libtool may fail to recognize shared libraries
7991*** as such. This will affect the creation of libtool libraries that
7992*** depend on shared libraries, but programs linked with such libtool
7993*** libraries will work regardless of this problem. Nevertheless, you
7994*** may want to report the problem to your system manager and/or to
7995*** bug-libtool@gnu.org
d7040cdb 7996
ce2cded5
L
7997_LT_EOF
7998 fi ;;
7999 esac
d7040cdb 8000 fi
ce2cded5 8001 break
d7040cdb 8002 fi
ce2cded5
L
8003 done
8004 IFS="$lt_save_ifs"
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8006 ;;
8007esac
8008fi
d7040cdb 8009
ce2cded5
L
8010MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8013$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8014else
81ecdfbb
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016$as_echo "no" >&6; }
ce2cded5 8017fi
d7040cdb 8018
d7040cdb 8019
d7040cdb 8020
d7040cdb 8021
d7040cdb 8022
ce2cded5
L
8023if test -z "$lt_cv_path_MAGIC_CMD"; then
8024 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8026$as_echo_n "checking for file... " >&6; }
8027if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8028 $as_echo_n "(cached) " >&6
ce2cded5
L
8029else
8030 case $MAGIC_CMD in
8031[\\/*] | ?:[\\/]*)
8032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8033 ;;
8034*)
8035 lt_save_MAGIC_CMD="$MAGIC_CMD"
8036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8038 for ac_dir in $ac_dummy; do
8039 IFS="$lt_save_ifs"
8040 test -z "$ac_dir" && ac_dir=.
8041 if test -f $ac_dir/file; then
8042 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8043 if test -n "$file_magic_test_file"; then
8044 case $deplibs_check_method in
8045 "file_magic "*)
8046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8049 $EGREP "$file_magic_regex" > /dev/null; then
8050 :
d7040cdb 8051 else
ce2cded5
L
8052 cat <<_LT_EOF 1>&2
8053
8054*** Warning: the command libtool uses to detect shared libraries,
8055*** $file_magic_cmd, produces output that libtool cannot recognize.
8056*** The result is that libtool may fail to recognize shared libraries
8057*** as such. This will affect the creation of libtool libraries that
8058*** depend on shared libraries, but programs linked with such libtool
8059*** libraries will work regardless of this problem. Nevertheless, you
8060*** may want to report the problem to your system manager and/or to
8061*** bug-libtool@gnu.org
8062
8063_LT_EOF
8064 fi ;;
d7040cdb 8065 esac
d7040cdb 8066 fi
ce2cded5
L
8067 break
8068 fi
8069 done
8070 IFS="$lt_save_ifs"
8071 MAGIC_CMD="$lt_save_MAGIC_CMD"
8072 ;;
8073esac
8074fi
d7040cdb 8075
ce2cded5
L
8076MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8079$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8080else
81ecdfbb
RW
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082$as_echo "no" >&6; }
ce2cded5 8083fi
d7040cdb 8084
d7040cdb 8085
ce2cded5
L
8086 else
8087 MAGIC_CMD=:
8088 fi
d7040cdb 8089fi
d7040cdb 8090
ce2cded5
L
8091 fi
8092 ;;
8093esac
d7040cdb 8094
ce2cded5 8095# Use C for the default configuration in the libtool script
d7040cdb 8096
ce2cded5
L
8097lt_save_CC="$CC"
8098ac_ext=c
8099ac_cpp='$CPP $CPPFLAGS'
8100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8103
d7040cdb 8104
ce2cded5
L
8105# Source file extension for C test sources.
8106ac_ext=c
d7040cdb 8107
ce2cded5
L
8108# Object file extension for compiled C test sources.
8109objext=o
8110objext=$objext
d7040cdb 8111
ce2cded5
L
8112# Code to be used in simple compile tests
8113lt_simple_compile_test_code="int some_variable = 0;"
8114
8115# Code to be used in simple link tests
8116lt_simple_link_test_code='int main(){return(0);}'
8117
8118
8119
8120
8121
8122
8123
8124# If no C compiler was specified, use CC.
8125LTCC=${LTCC-"$CC"}
8126
8127# If no C compiler flags were specified, use CFLAGS.
8128LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8129
8130# Allow CC to be a program name with arguments.
8131compiler=$CC
8132
8133# Save the default compiler, since it gets overwritten when the other
8134# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8135compiler_DEFAULT=$CC
8136
8137# save warnings/boilerplate of simple test code
8138ac_outfile=conftest.$ac_objext
8139echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8140eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8141_lt_compiler_boilerplate=`cat conftest.err`
8142$RM conftest*
8143
8144ac_outfile=conftest.$ac_objext
8145echo "$lt_simple_link_test_code" >conftest.$ac_ext
8146eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8147_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8148$RM -r conftest*
ce2cded5
L
8149
8150
8151## CAVEAT EMPTOR:
8152## There is no encapsulation within the following macros, do not change
8153## the running order or otherwise move them around unless you know exactly
8154## what you are doing...
8155if test -n "$compiler"; then
8156
8157lt_prog_compiler_no_builtin_flag=
8158
8159if test "$GCC" = yes; then
3725885a
RW
8160 case $cc_basename in
8161 nvcc*)
8162 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8163 *)
8164 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8165 esac
ce2cded5 8166
81ecdfbb
RW
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8168$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8169if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
ce2cded5
L
8171else
8172 lt_cv_prog_compiler_rtti_exceptions=no
8173 ac_outfile=conftest.$ac_objext
8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8175 lt_compiler_flag="-fno-rtti -fno-exceptions"
8176 # Insert the option either (1) after the last *FLAGS variable, or
8177 # (2) before a word containing "conftest.", or (3) at the end.
8178 # Note that $ac_compile itself does not contain backslashes and begins
8179 # with a dollar sign (not a hyphen), so the echo should work correctly.
8180 # The option is referenced via a variable to avoid confusing sed.
8181 lt_compile=`echo "$ac_compile" | $SED \
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184 -e 's:$: $lt_compiler_flag:'`
3725885a 8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8186 (eval "$lt_compile" 2>conftest.err)
8187 ac_status=$?
8188 cat conftest.err >&5
3725885a 8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8190 if (exit $ac_status) && test -s "$ac_outfile"; then
8191 # The compiler can only warn and ignore the option if not recognized
8192 # So say no if there are warnings other than the usual output.
3725885a 8193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8196 lt_cv_prog_compiler_rtti_exceptions=yes
8197 fi
8198 fi
8199 $RM conftest*
8200
8201fi
81ecdfbb
RW
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8203$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8204
8205if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8206 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8207else
8208 :
8209fi
8210
8211fi
8212
8213
8214
8215
8216
8217
8218 lt_prog_compiler_wl=
8219lt_prog_compiler_pic=
8220lt_prog_compiler_static=
8221
81ecdfbb
RW
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8223$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8224
8225 if test "$GCC" = yes; then
8226 lt_prog_compiler_wl='-Wl,'
8227 lt_prog_compiler_static='-static'
8228
8229 case $host_os in
8230 aix*)
8231 # All AIX code is PIC.
8232 if test "$host_cpu" = ia64; then
8233 # AIX 5 now supports IA64 processor
8234 lt_prog_compiler_static='-Bstatic'
8235 fi
8236 ;;
d7040cdb
SE
8237
8238 amigaos*)
718a6fd8
SE
8239 case $host_cpu in
8240 powerpc)
8241 # see comment about AmigaOS4 .so support
8242 lt_prog_compiler_pic='-fPIC'
8243 ;;
8244 m68k)
8245 # FIXME: we need at least 68020 code to build shared libraries, but
8246 # adding the `-m68020' flag to GCC prevents building anything better,
8247 # like `-m68040'.
8248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8249 ;;
8250 esac
d7040cdb
SE
8251 ;;
8252
ce2cded5
L
8253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8254 # PIC is the default for these OSes.
d7040cdb
SE
8255 ;;
8256
718a6fd8 8257 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8258 # This hack is so that the source file can tell whether it is being
8259 # built for inclusion in a dll (and should export symbols for example).
8260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8261 # (--disable-auto-import) libraries
8262 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8263 ;;
8264
8265 darwin* | rhapsody*)
ce2cded5
L
8266 # PIC is the default on this platform
8267 # Common symbols not allowed in MH_DYLIB files
8268 lt_prog_compiler_pic='-fno-common'
8269 ;;
8270
3725885a
RW
8271 haiku*)
8272 # PIC is the default for Haiku.
8273 # The "-static" flag exists, but is broken.
8274 lt_prog_compiler_static=
8275 ;;
8276
ce2cded5 8277 hpux*)
718a6fd8
SE
8278 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8279 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8280 # sets the default TLS model and affects inlining.
ce2cded5 8281 case $host_cpu in
718a6fd8 8282 hppa*64*)
ce2cded5 8283 # +Z the default
d7040cdb 8284 ;;
ce2cded5
L
8285 *)
8286 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8287 ;;
8288 esac
ce2cded5 8289 ;;
d7040cdb 8290
ce2cded5
L
8291 interix[3-9]*)
8292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8293 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8294 ;;
8295
ce2cded5
L
8296 msdosdjgpp*)
8297 # Just because we use GCC doesn't mean we suddenly get shared libraries
8298 # on systems that don't support them.
8299 lt_prog_compiler_can_build_shared=no
8300 enable_shared=no
d7040cdb
SE
8301 ;;
8302
ce2cded5
L
8303 *nto* | *qnx*)
8304 # QNX uses GNU C++, but need to define -shared option too, otherwise
8305 # it will coredump.
8306 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8307 ;;
8308
ce2cded5
L
8309 sysv4*MP*)
8310 if test -d /usr/nec; then
8311 lt_prog_compiler_pic=-Kconform_pic
8312 fi
d7040cdb
SE
8313 ;;
8314
ce2cded5
L
8315 *)
8316 lt_prog_compiler_pic='-fPIC'
d7040cdb 8317 ;;
ce2cded5 8318 esac
3725885a
RW
8319
8320 case $cc_basename in
8321 nvcc*) # Cuda Compiler Driver 2.2
8322 lt_prog_compiler_wl='-Xlinker '
8323 lt_prog_compiler_pic='-Xcompiler -fPIC'
8324 ;;
8325 esac
ce2cded5
L
8326 else
8327 # PORTME Check for flag to pass linker flags through the system compiler.
8328 case $host_os in
8329 aix*)
8330 lt_prog_compiler_wl='-Wl,'
8331 if test "$host_cpu" = ia64; then
8332 # AIX 5 now supports IA64 processor
8333 lt_prog_compiler_static='-Bstatic'
d7040cdb 8334 else
ce2cded5 8335 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8336 fi
ce2cded5 8337 ;;
d7040cdb 8338
718a6fd8 8339 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8340 # This hack is so that the source file can tell whether it is being
8341 # built for inclusion in a dll (and should export symbols for example).
8342 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8343 ;;
8344
ce2cded5
L
8345 hpux9* | hpux10* | hpux11*)
8346 lt_prog_compiler_wl='-Wl,'
8347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8348 # not for PA HP-UX.
8349 case $host_cpu in
8350 hppa*64*|ia64*)
8351 # +Z the default
8352 ;;
8353 *)
8354 lt_prog_compiler_pic='+Z'
8355 ;;
8356 esac
8357 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8358 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8359 ;;
8360
ce2cded5
L
8361 irix5* | irix6* | nonstopux*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # PIC (with -KPIC) is the default.
8364 lt_prog_compiler_static='-non_shared'
8365 ;;
d7040cdb 8366
58e24671 8367 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8368 case $cc_basename in
718a6fd8
SE
8369 # old Intel for x86_64 which still supported -KPIC.
8370 ecc*)
ce2cded5
L
8371 lt_prog_compiler_wl='-Wl,'
8372 lt_prog_compiler_pic='-KPIC'
8373 lt_prog_compiler_static='-static'
8374 ;;
718a6fd8
SE
8375 # icc used to be incompatible with GCC.
8376 # ICC 10 doesn't accept -KPIC any more.
8377 icc* | ifort*)
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-fPIC'
8380 lt_prog_compiler_static='-static'
8381 ;;
8382 # Lahey Fortran 8.1.
8383 lf95*)
8384 lt_prog_compiler_wl='-Wl,'
8385 lt_prog_compiler_pic='--shared'
8386 lt_prog_compiler_static='--static'
8387 ;;
3725885a 8388 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8389 # Portland Group compilers (*not* the Pentium gcc compiler,
8390 # which looks to be a dead project)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-fpic'
8393 lt_prog_compiler_static='-Bstatic'
8394 ;;
8395 ccc*)
8396 lt_prog_compiler_wl='-Wl,'
8397 # All Alpha code is PIC.
8398 lt_prog_compiler_static='-non_shared'
8399 ;;
3725885a
RW
8400 xl* | bgxl* | bgf* | mpixl*)
8401 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-qpic'
8404 lt_prog_compiler_static='-qstaticlink'
8405 ;;
ce2cded5
L
8406 *)
8407 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8408 *Sun\ F* | *Sun*Fortran*)
8409 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
3725885a 8412 lt_prog_compiler_wl=''
d7040cdb 8413 ;;
3725885a
RW
8414 *Sun\ C*)
8415 # Sun C 5.9
ce2cded5
L
8416 lt_prog_compiler_pic='-KPIC'
8417 lt_prog_compiler_static='-Bstatic'
3725885a 8418 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8419 ;;
8420 esac
ce2cded5
L
8421 ;;
8422 esac
d7040cdb
SE
8423 ;;
8424
ce2cded5
L
8425 newsos6)
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8428 ;;
8429
ce2cded5
L
8430 *nto* | *qnx*)
8431 # QNX uses GNU C++, but need to define -shared option too, otherwise
8432 # it will coredump.
8433 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8434 ;;
8435
ce2cded5
L
8436 osf3* | osf4* | osf5*)
8437 lt_prog_compiler_wl='-Wl,'
8438 # All OSF/1 code is PIC.
8439 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8440 ;;
8441
ce2cded5
L
8442 rdos*)
8443 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8444 ;;
8445
8446 solaris*)
ce2cded5
L
8447 lt_prog_compiler_pic='-KPIC'
8448 lt_prog_compiler_static='-Bstatic'
8449 case $cc_basename in
8450 f77* | f90* | f95*)
8451 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8452 *)
ce2cded5 8453 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8454 esac
d7040cdb
SE
8455 ;;
8456
8457 sunos4*)
ce2cded5
L
8458 lt_prog_compiler_wl='-Qoption ld '
8459 lt_prog_compiler_pic='-PIC'
8460 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8461 ;;
8462
ce2cded5
L
8463 sysv4 | sysv4.2uw2* | sysv4.3*)
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-KPIC'
8466 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8467 ;;
8468
8469 sysv4*MP*)
ce2cded5
L
8470 if test -d /usr/nec ;then
8471 lt_prog_compiler_pic='-Kconform_pic'
8472 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8473 fi
8474 ;;
8475
ce2cded5
L
8476 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8480 ;;
8481
ce2cded5
L
8482 unicos*)
8483 lt_prog_compiler_wl='-Wl,'
8484 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8485 ;;
8486
8487 uts4*)
ce2cded5
L
8488 lt_prog_compiler_pic='-pic'
8489 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8490 ;;
8491
8492 *)
ce2cded5 8493 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8494 ;;
8495 esac
d7040cdb
SE
8496 fi
8497
ce2cded5
L
8498case $host_os in
8499 # For platforms which do not support PIC, -DPIC is meaningless:
8500 *djgpp*)
8501 lt_prog_compiler_pic=
8502 ;;
8503 *)
8504 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8505 ;;
8506esac
81ecdfbb
RW
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8508$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8509
8510
8511
8512
8513
8514
8515#
ce2cded5 8516# Check to make sure the PIC flag actually works.
d7040cdb 8517#
ce2cded5 8518if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8520$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8521if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8522 $as_echo_n "(cached) " >&6
ce2cded5 8523else
718a6fd8 8524 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8525 ac_outfile=conftest.$ac_objext
8526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8527 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8528 # Insert the option either (1) after the last *FLAGS variable, or
8529 # (2) before a word containing "conftest.", or (3) at the end.
8530 # Note that $ac_compile itself does not contain backslashes and begins
8531 # with a dollar sign (not a hyphen), so the echo should work correctly.
8532 # The option is referenced via a variable to avoid confusing sed.
8533 lt_compile=`echo "$ac_compile" | $SED \
8534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8536 -e 's:$: $lt_compiler_flag:'`
3725885a 8537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8538 (eval "$lt_compile" 2>conftest.err)
8539 ac_status=$?
8540 cat conftest.err >&5
3725885a 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8542 if (exit $ac_status) && test -s "$ac_outfile"; then
8543 # The compiler can only warn and ignore the option if not recognized
8544 # So say no if there are warnings other than the usual output.
3725885a 8545 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8547 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8548 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8549 fi
8550 fi
8551 $RM conftest*
d7040cdb 8552
ce2cded5 8553fi
81ecdfbb
RW
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8555$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8556
718a6fd8 8557if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8558 case $lt_prog_compiler_pic in
8559 "" | " "*) ;;
8560 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8561 esac
8562else
8563 lt_prog_compiler_pic=
8564 lt_prog_compiler_can_build_shared=no
8565fi
d7040cdb 8566
ce2cded5 8567fi
d7040cdb
SE
8568
8569
8570
8571
8572
8573
ce2cded5
L
8574#
8575# Check to make sure the static flag actually works.
8576#
8577wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8579$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8580if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
ce2cded5 8582else
718a6fd8 8583 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8584 save_LDFLAGS="$LDFLAGS"
8585 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8588 # The linker can only warn and ignore the option if not recognized
8589 # So say no if there are warnings
8590 if test -s conftest.err; then
8591 # Append any errors to the config.log.
8592 cat conftest.err 1>&5
3725885a 8593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8595 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8596 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8597 fi
8598 else
718a6fd8 8599 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8600 fi
8601 fi
718a6fd8 8602 $RM -r conftest*
ce2cded5 8603 LDFLAGS="$save_LDFLAGS"
d7040cdb 8604
ce2cded5 8605fi
81ecdfbb
RW
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8607$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8608
718a6fd8 8609if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8610 :
8611else
8612 lt_prog_compiler_static=
8613fi
d7040cdb
SE
8614
8615
8616
8617
8618
8619
8620
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8622$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8623if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
ce2cded5
L
8625else
8626 lt_cv_prog_compiler_c_o=no
8627 $RM -r conftest 2>/dev/null
8628 mkdir conftest
8629 cd conftest
8630 mkdir out
8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8632
ce2cded5
L
8633 lt_compiler_flag="-o out/conftest2.$ac_objext"
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 lt_compile=`echo "$ac_compile" | $SED \
8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8641 -e 's:$: $lt_compiler_flag:'`
3725885a 8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8643 (eval "$lt_compile" 2>out/conftest.err)
8644 ac_status=$?
8645 cat out/conftest.err >&5
3725885a 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8648 then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings
3725885a 8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8652 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8653 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_c_o=yes
8655 fi
8656 fi
8657 chmod u+w . 2>&5
8658 $RM conftest*
8659 # SGI C++ compiler will create directory out/ii_files/ for
8660 # template instantiation
8661 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8662 $RM out/* && rmdir out
8663 cd ..
8664 $RM -r conftest
8665 $RM conftest*
d7040cdb 8666
ce2cded5 8667fi
81ecdfbb
RW
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8669$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8670
8671
8672
8673
8674
8675
81ecdfbb
RW
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8677$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8678if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
ce2cded5
L
8680else
8681 lt_cv_prog_compiler_c_o=no
8682 $RM -r conftest 2>/dev/null
8683 mkdir conftest
8684 cd conftest
8685 mkdir out
8686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8687
ce2cded5
L
8688 lt_compiler_flag="-o out/conftest2.$ac_objext"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 lt_compile=`echo "$ac_compile" | $SED \
8694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8696 -e 's:$: $lt_compiler_flag:'`
3725885a 8697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8698 (eval "$lt_compile" 2>out/conftest.err)
8699 ac_status=$?
8700 cat out/conftest.err >&5
3725885a 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8702 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8703 then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings
3725885a 8706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8709 lt_cv_prog_compiler_c_o=yes
8710 fi
8711 fi
8712 chmod u+w . 2>&5
8713 $RM conftest*
8714 # SGI C++ compiler will create directory out/ii_files/ for
8715 # template instantiation
8716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8717 $RM out/* && rmdir out
8718 cd ..
8719 $RM -r conftest
8720 $RM conftest*
d7040cdb 8721
ce2cded5 8722fi
81ecdfbb
RW
8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8724$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8725
8726
8727
8728
ce2cded5
L
8729hard_links="nottested"
8730if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8731 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8733$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8734 hard_links=yes
8735 $RM conftest*
8736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8737 touch conftest.a
8738 ln conftest.a conftest.b 2>&5 || hard_links=no
8739 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8741$as_echo "$hard_links" >&6; }
ce2cded5 8742 if test "$hard_links" = no; then
81ecdfbb
RW
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8744$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8745 need_locks=warn
8746 fi
8747else
8748 need_locks=no
8749fi
d7040cdb
SE
8750
8751
8752
8753
8754
8755
81ecdfbb
RW
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8757$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8758
ce2cded5
L
8759 runpath_var=
8760 allow_undefined_flag=
8761 always_export_symbols=no
8762 archive_cmds=
8763 archive_expsym_cmds=
8764 compiler_needs_object=no
8765 enable_shared_with_static_runtimes=no
8766 export_dynamic_flag_spec=
8767 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8768 hardcode_automatic=no
8769 hardcode_direct=no
8770 hardcode_direct_absolute=no
8771 hardcode_libdir_flag_spec=
8772 hardcode_libdir_flag_spec_ld=
8773 hardcode_libdir_separator=
8774 hardcode_minus_L=no
8775 hardcode_shlibpath_var=unsupported
8776 inherit_rpath=no
8777 link_all_deplibs=unknown
8778 module_cmds=
8779 module_expsym_cmds=
8780 old_archive_from_new_cmds=
8781 old_archive_from_expsyms_cmds=
8782 thread_safe_flag_spec=
8783 whole_archive_flag_spec=
8784 # include_expsyms should be a list of space-separated symbols to be *always*
8785 # included in the symbol list
8786 include_expsyms=
8787 # exclude_expsyms can be an extended regexp of symbols to exclude
8788 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8789 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8790 # as well as any symbol that contains `d'.
718a6fd8 8791 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8792 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8793 # platforms (ab)use it in PIC code, but their linkers get confused if
8794 # the symbol is explicitly referenced. Since portable code cannot
8795 # rely on this symbol name, it's probably fine to never include it in
8796 # preloaded symbol tables.
718a6fd8 8797 # Exclude shared library initialization/finalization symbols.
ce2cded5 8798 extract_expsyms_cmds=
d7040cdb 8799
ce2cded5 8800 case $host_os in
718a6fd8 8801 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8802 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8803 # When not using gcc, we currently assume that we are using
8804 # Microsoft Visual C++.
8805 if test "$GCC" != yes; then
8806 with_gnu_ld=no
8807 fi
8808 ;;
8809 interix*)
8810 # we just hope/assume this is gcc and not c89 (= MSVC++)
8811 with_gnu_ld=yes
8812 ;;
8813 openbsd*)
8814 with_gnu_ld=no
8815 ;;
8816 esac
d7040cdb 8817
ce2cded5 8818 ld_shlibs=yes
3725885a
RW
8819
8820 # On some targets, GNU ld is compatible enough with the native linker
8821 # that we're better off using the native interface for both.
8822 lt_use_gnu_ld_interface=no
ce2cded5 8823 if test "$with_gnu_ld" = yes; then
3725885a
RW
8824 case $host_os in
8825 aix*)
8826 # The AIX port of GNU ld has always aspired to compatibility
8827 # with the native linker. However, as the warning in the GNU ld
8828 # block says, versions before 2.19.5* couldn't really create working
8829 # shared libraries, regardless of the interface used.
8830 case `$LD -v 2>&1` in
8831 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8832 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8833 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8834 *)
8835 lt_use_gnu_ld_interface=yes
8836 ;;
8837 esac
8838 ;;
8839 *)
8840 lt_use_gnu_ld_interface=yes
8841 ;;
8842 esac
8843 fi
8844
8845 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
8846 # If archive_cmds runs LD, not CC, wlarc should be empty
8847 wlarc='${wl}'
d7040cdb 8848
ce2cded5
L
8849 # Set some defaults for GNU ld with shared library support. These
8850 # are reset later if shared libraries are not supported. Putting them
8851 # here allows them to be overridden if necessary.
8852 runpath_var=LD_RUN_PATH
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 export_dynamic_flag_spec='${wl}--export-dynamic'
8855 # ancient GNU ld didn't support --whole-archive et. al.
8856 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8857 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8858 else
8859 whole_archive_flag_spec=
8860 fi
8861 supports_anon_versioning=no
8862 case `$LD -v 2>&1` in
3725885a 8863 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
8864 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8865 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8866 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8867 *\ 2.11.*) ;; # other 2.11 versions
8868 *) supports_anon_versioning=yes ;;
8869 esac
d7040cdb 8870
ce2cded5
L
8871 # See if GNU ld supports shared libraries.
8872 case $host_os in
50e7d84b 8873 aix[3-9]*)
ce2cded5
L
8874 # On AIX/PPC, the GNU linker is very broken
8875 if test "$host_cpu" != ia64; then
8876 ld_shlibs=no
8877 cat <<_LT_EOF 1>&2
d7040cdb 8878
3725885a 8879*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
8880*** to be unable to reliably create shared libraries on AIX.
8881*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8882*** really care for shared libraries, you may want to install binutils
8883*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8884*** You will then need to restart the configuration process.
d7040cdb 8885
ce2cded5
L
8886_LT_EOF
8887 fi
8888 ;;
d7040cdb 8889
ce2cded5 8890 amigaos*)
718a6fd8
SE
8891 case $host_cpu in
8892 powerpc)
8893 # see comment about AmigaOS4 .so support
8894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8895 archive_expsym_cmds=''
8896 ;;
8897 m68k)
8898 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)'
8899 hardcode_libdir_flag_spec='-L$libdir'
8900 hardcode_minus_L=yes
8901 ;;
8902 esac
ce2cded5 8903 ;;
d7040cdb 8904
ce2cded5
L
8905 beos*)
8906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8907 allow_undefined_flag=unsupported
8908 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8909 # support --undefined. This deserves some investigation. FIXME
8910 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8911 else
8912 ld_shlibs=no
8913 fi
8914 ;;
d7040cdb 8915
718a6fd8 8916 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8917 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8918 # as there is no search path for DLLs.
8919 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8920 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
8921 allow_undefined_flag=unsupported
8922 always_export_symbols=no
8923 enable_shared_with_static_runtimes=yes
8924 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8925
ce2cded5
L
8926 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8928 # If the export-symbols file already is a .def file (1st line
8929 # is EXPORTS), use it as is; otherwise, prepend...
8930 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8931 cp $export_symbols $output_objdir/$soname.def;
8932 else
8933 echo EXPORTS > $output_objdir/$soname.def;
8934 cat $export_symbols >> $output_objdir/$soname.def;
8935 fi~
8936 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8937 else
8938 ld_shlibs=no
8939 fi
8940 ;;
d7040cdb 8941
3725885a
RW
8942 haiku*)
8943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944 link_all_deplibs=yes
8945 ;;
8946
ce2cded5
L
8947 interix[3-9]*)
8948 hardcode_direct=no
8949 hardcode_shlibpath_var=no
8950 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8951 export_dynamic_flag_spec='${wl}-E'
8952 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8953 # Instead, shared libraries are loaded at an image base (0x10000000 by
8954 # default) and relocated if they conflict, which is a slow very memory
8955 # consuming and fragmenting process. To avoid this, we pick a random,
8956 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8957 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8958 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8959 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'
8960 ;;
d7040cdb 8961
58e24671 8962 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
8963 tmp_diet=no
8964 if test "$host_os" = linux-dietlibc; then
8965 case $cc_basename in
8966 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8967 esac
8968 fi
8969 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8970 && test "$tmp_diet" = no
8971 then
8972 tmp_addflag=
718a6fd8 8973 tmp_sharedflag='-shared'
ce2cded5
L
8974 case $cc_basename,$host_cpu in
8975 pgcc*) # Portland Group C compiler
3725885a 8976 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
8977 tmp_addflag=' $pic_flag'
8978 ;;
3725885a
RW
8979 pgf77* | pgf90* | pgf95* | pgfortran*)
8980 # Portland Group f77 and f90 compilers
8981 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
8982 tmp_addflag=' $pic_flag -Mnomain' ;;
8983 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8984 tmp_addflag=' -i_dynamic' ;;
8985 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8986 tmp_addflag=' -i_dynamic -nofor_main' ;;
8987 ifc* | ifort*) # Intel Fortran compiler
8988 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8989 lf95*) # Lahey Fortran 8.1
8990 whole_archive_flag_spec=
8991 tmp_sharedflag='--shared' ;;
3725885a 8992 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8993 tmp_sharedflag='-qmkshrobj'
8994 tmp_addflag= ;;
3725885a
RW
8995 nvcc*) # Cuda Compiler Driver 2.2
8996 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'
8997 compiler_needs_object=yes
8998 ;;
ce2cded5
L
8999 esac
9000 case `$CC -V 2>&1 | sed 5q` in
9001 *Sun\ C*) # Sun C 5.9
3725885a 9002 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
9003 compiler_needs_object=yes
9004 tmp_sharedflag='-G' ;;
9005 *Sun\ F*) # Sun Fortran 8.3
9006 tmp_sharedflag='-G' ;;
ce2cded5
L
9007 esac
9008 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9009
ce2cded5
L
9010 if test "x$supports_anon_versioning" = xyes; then
9011 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9013 echo "local: *; };" >> $output_objdir/$libname.ver~
9014 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9015 fi
718a6fd8
SE
9016
9017 case $cc_basename in
3725885a 9018 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9019 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9020 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9021 hardcode_libdir_flag_spec=
9022 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9023 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9024 if test "x$supports_anon_versioning" = xyes; then
9025 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9027 echo "local: *; };" >> $output_objdir/$libname.ver~
9028 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9029 fi
9030 ;;
9031 esac
ce2cded5
L
9032 else
9033 ld_shlibs=no
9034 fi
9035 ;;
d7040cdb 9036
ce2cded5
L
9037 netbsd*)
9038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9039 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9040 wlarc=
9041 else
9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9044 fi
9045 ;;
d7040cdb 9046
ce2cded5
L
9047 solaris*)
9048 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9049 ld_shlibs=no
9050 cat <<_LT_EOF 1>&2
d7040cdb 9051
ce2cded5
L
9052*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9053*** create shared libraries on Solaris systems. Therefore, libtool
9054*** is disabling shared libraries support. We urge you to upgrade GNU
9055*** binutils to release 2.9.1 or newer. Another option is to modify
9056*** your PATH or compiler configuration so that the native linker is
9057*** used, and then restart.
d7040cdb 9058
ce2cded5
L
9059_LT_EOF
9060 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9063 else
9064 ld_shlibs=no
9065 fi
9066 ;;
d7040cdb 9067
ce2cded5
L
9068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9069 case `$LD -v 2>&1` in
9070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9071 ld_shlibs=no
9072 cat <<_LT_EOF 1>&2
d7040cdb 9073
ce2cded5
L
9074*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9075*** reliably create shared libraries on SCO systems. Therefore, libtool
9076*** is disabling shared libraries support. We urge you to upgrade GNU
9077*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9078*** your PATH or compiler configuration so that the native linker is
9079*** used, and then restart.
d7040cdb 9080
ce2cded5
L
9081_LT_EOF
9082 ;;
9083 *)
9084 # For security reasons, it is highly recommended that you always
9085 # use absolute paths for naming shared libraries, and exclude the
9086 # DT_RUNPATH tag from executables and libraries. But doing so
9087 # requires that you compile everything twice, which is a pain.
9088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9092 else
9093 ld_shlibs=no
9094 fi
9095 ;;
9096 esac
9097 ;;
d7040cdb 9098
ce2cded5
L
9099 sunos4*)
9100 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9101 wlarc=
9102 hardcode_direct=yes
9103 hardcode_shlibpath_var=no
9104 ;;
d7040cdb 9105
ce2cded5
L
9106 *)
9107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9110 else
9111 ld_shlibs=no
9112 fi
9113 ;;
9114 esac
d7040cdb 9115
ce2cded5
L
9116 if test "$ld_shlibs" = no; then
9117 runpath_var=
9118 hardcode_libdir_flag_spec=
9119 export_dynamic_flag_spec=
9120 whole_archive_flag_spec=
9121 fi
9122 else
9123 # PORTME fill in a description of your system's linker (not GNU ld)
9124 case $host_os in
9125 aix3*)
9126 allow_undefined_flag=unsupported
9127 always_export_symbols=yes
9128 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'
9129 # Note: this linker hardcodes the directories in LIBPATH if there
9130 # are no directories specified by -L.
9131 hardcode_minus_L=yes
9132 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9133 # Neither direct hardcoding nor static linking is supported with a
9134 # broken collect2.
9135 hardcode_direct=unsupported
9136 fi
9137 ;;
d7040cdb 9138
50e7d84b 9139 aix[4-9]*)
ce2cded5
L
9140 if test "$host_cpu" = ia64; then
9141 # On IA64, the linker does run time linking by default, so we don't
9142 # have to do anything special.
9143 aix_use_runtimelinking=no
9144 exp_sym_flag='-Bexport'
9145 no_entry_flag=""
9146 else
9147 # If we're using GNU nm, then we don't want the "-C" option.
9148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9149 # Also, AIX nm treats weak defined symbols like other global
9150 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9151 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9152 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
9153 else
9154 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'
9155 fi
9156 aix_use_runtimelinking=no
d7040cdb 9157
ce2cded5
L
9158 # Test if we are trying to use run time linking or normal
9159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9160 # need to do runtime linking.
50e7d84b 9161 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9162 for ld_flag in $LDFLAGS; do
9163 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9164 aix_use_runtimelinking=yes
9165 break
9166 fi
9167 done
9168 ;;
9169 esac
d7040cdb 9170
ce2cded5
L
9171 exp_sym_flag='-bexport'
9172 no_entry_flag='-bnoentry'
9173 fi
d7040cdb 9174
ce2cded5
L
9175 # When large executables or shared objects are built, AIX ld can
9176 # have problems creating the table of contents. If linking a library
9177 # or program results in "error TOC overflow" add -mminimal-toc to
9178 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9179 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9180
ce2cded5
L
9181 archive_cmds=''
9182 hardcode_direct=yes
9183 hardcode_direct_absolute=yes
9184 hardcode_libdir_separator=':'
9185 link_all_deplibs=yes
9186 file_list_spec='${wl}-f,'
d7040cdb 9187
ce2cded5
L
9188 if test "$GCC" = yes; then
9189 case $host_os in aix4.[012]|aix4.[012].*)
9190 # We only want to do this on AIX 4.2 and lower, the check
9191 # below for broken collect2 doesn't work under 4.3+
9192 collect2name=`${CC} -print-prog-name=collect2`
9193 if test -f "$collect2name" &&
9194 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9195 then
9196 # We have reworked collect2
9197 :
9198 else
9199 # We have old collect2
9200 hardcode_direct=unsupported
9201 # It fails to find uninstalled libraries when the uninstalled
9202 # path is not listed in the libpath. Setting hardcode_minus_L
9203 # to unsupported forces relinking
9204 hardcode_minus_L=yes
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_libdir_separator=
9207 fi
9208 ;;
9209 esac
9210 shared_flag='-shared'
9211 if test "$aix_use_runtimelinking" = yes; then
9212 shared_flag="$shared_flag "'${wl}-G'
9213 fi
9214 else
9215 # not using gcc
9216 if test "$host_cpu" = ia64; then
9217 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9218 # chokes on -Wl,-G. The following line is correct:
9219 shared_flag='-G'
9220 else
9221 if test "$aix_use_runtimelinking" = yes; then
9222 shared_flag='${wl}-G'
9223 else
9224 shared_flag='${wl}-bM:SRE'
9225 fi
9226 fi
9227 fi
d7040cdb 9228
718a6fd8 9229 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9230 # It seems that -bexpall does not export symbols beginning with
9231 # underscore (_), so it is better to generate a list of symbols to export.
9232 always_export_symbols=yes
9233 if test "$aix_use_runtimelinking" = yes; then
9234 # Warning - without using the other runtime loading flags (-brtl),
9235 # -berok will link without error, but may produce a broken library.
9236 allow_undefined_flag='-berok'
9237 # Determine the default libpath from the value encoded in an
9238 # empty executable.
81ecdfbb 9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9240/* end confdefs.h. */
d7040cdb 9241
ce2cded5
L
9242int
9243main ()
9244{
d7040cdb 9245
ce2cded5
L
9246 ;
9247 return 0;
9248}
9249_ACEOF
81ecdfbb 9250if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9251
ce2cded5
L
9252lt_aix_libpath_sed='
9253 /Import File Strings/,/^$/ {
9254 /^0/ {
9255 s/^0 *\(.*\)$/\1/
9256 p
9257 }
9258 }'
9259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9260# Check for a 64-bit object if we didn't find anything.
9261if test -z "$aix_libpath"; then
9262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9263fi
ce2cded5 9264fi
81ecdfbb
RW
9265rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9267if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9268
ce2cded5 9269 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9270 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
9271 else
9272 if test "$host_cpu" = ia64; then
9273 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9274 allow_undefined_flag="-z nodefs"
9275 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"
9276 else
9277 # Determine the default libpath from the value encoded in an
9278 # empty executable.
81ecdfbb 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9280/* end confdefs.h. */
d7040cdb 9281
ce2cded5
L
9282int
9283main ()
9284{
d7040cdb 9285
ce2cded5
L
9286 ;
9287 return 0;
9288}
9289_ACEOF
81ecdfbb 9290if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9291
ce2cded5
L
9292lt_aix_libpath_sed='
9293 /Import File Strings/,/^$/ {
9294 /^0/ {
9295 s/^0 *\(.*\)$/\1/
9296 p
9297 }
9298 }'
9299aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9300# Check for a 64-bit object if we didn't find anything.
9301if test -z "$aix_libpath"; then
9302 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9303fi
ce2cded5 9304fi
81ecdfbb
RW
9305rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9307if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9308
ce2cded5
L
9309 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9310 # Warning - without using the other run time loading flags,
9311 # -berok will link without error, but may produce a broken library.
9312 no_undefined_flag=' ${wl}-bernotok'
9313 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9314 if test "$with_gnu_ld" = yes; then
9315 # We only use this code for GNU lds that support --whole-archive.
9316 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9317 else
9318 # Exported symbols can be pulled into shared objects from archives
9319 whole_archive_flag_spec='$convenience'
9320 fi
ce2cded5
L
9321 archive_cmds_need_lc=yes
9322 # This is similar to how AIX traditionally builds its shared libraries.
9323 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'
9324 fi
9325 fi
9326 ;;
d7040cdb 9327
ce2cded5 9328 amigaos*)
718a6fd8
SE
9329 case $host_cpu in
9330 powerpc)
9331 # see comment about AmigaOS4 .so support
9332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds=''
9334 ;;
9335 m68k)
9336 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)'
9337 hardcode_libdir_flag_spec='-L$libdir'
9338 hardcode_minus_L=yes
9339 ;;
9340 esac
ce2cded5 9341 ;;
d7040cdb 9342
ce2cded5
L
9343 bsdi[45]*)
9344 export_dynamic_flag_spec=-rdynamic
9345 ;;
d7040cdb 9346
718a6fd8 9347 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9348 # When not using gcc, we currently assume that we are using
9349 # Microsoft Visual C++.
9350 # hardcode_libdir_flag_spec is actually meaningless, as there is
9351 # no search path for DLLs.
9352 hardcode_libdir_flag_spec=' '
9353 allow_undefined_flag=unsupported
9354 # Tell ltmain to make .lib files, not .a files.
9355 libext=lib
9356 # Tell ltmain to make .dll files, not .so files.
9357 shrext_cmds=".dll"
9358 # FIXME: Setting linknames here is a bad hack.
3725885a 9359 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9360 # The linker will automatically build a .lib file if we build a DLL.
9361 old_archive_from_new_cmds='true'
9362 # FIXME: Should let the user specify the lib program.
9363 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9364 fix_srcfile_path='`cygpath -w "$srcfile"`'
9365 enable_shared_with_static_runtimes=yes
9366 ;;
d7040cdb 9367
ce2cded5 9368 darwin* | rhapsody*)
d7040cdb 9369
718a6fd8
SE
9370
9371 archive_cmds_need_lc=no
9372 hardcode_direct=no
9373 hardcode_automatic=yes
9374 hardcode_shlibpath_var=unsupported
3725885a
RW
9375 if test "$lt_cv_ld_force_load" = "yes"; then
9376 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\"`'
9377 else
9378 whole_archive_flag_spec=''
9379 fi
718a6fd8
SE
9380 link_all_deplibs=yes
9381 allow_undefined_flag="$_lt_dar_allow_undefined"
9382 case $cc_basename in
9383 ifort*) _lt_dar_can_shared=yes ;;
9384 *) _lt_dar_can_shared=$GCC ;;
9385 esac
9386 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9387 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9388 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9389 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9390 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}"
9391 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}"
9392
9393 else
9394 ld_shlibs=no
9395 fi
9396
ce2cded5 9397 ;;
d7040cdb 9398
ce2cded5
L
9399 dgux*)
9400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_shlibpath_var=no
9403 ;;
d7040cdb 9404
ce2cded5
L
9405 freebsd1*)
9406 ld_shlibs=no
9407 ;;
d7040cdb 9408
ce2cded5
L
9409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9410 # support. Future versions do this automatically, but an explicit c++rt0.o
9411 # does not break anything, and helps significantly (at the cost of a little
9412 # extra space).
9413 freebsd2.2*)
9414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9415 hardcode_libdir_flag_spec='-R$libdir'
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 ;;
d7040cdb 9419
ce2cded5
L
9420 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9421 freebsd2*)
9422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_direct=yes
9424 hardcode_minus_L=yes
9425 hardcode_shlibpath_var=no
9426 ;;
d7040cdb 9427
ce2cded5
L
9428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9429 freebsd* | dragonfly*)
9430 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9431 hardcode_libdir_flag_spec='-R$libdir'
9432 hardcode_direct=yes
9433 hardcode_shlibpath_var=no
9434 ;;
d7040cdb 9435
ce2cded5
L
9436 hpux9*)
9437 if test "$GCC" = yes; then
9438 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'
9439 else
9440 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'
9441 fi
9442 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9443 hardcode_libdir_separator=:
9444 hardcode_direct=yes
d7040cdb 9445
ce2cded5
L
9446 # hardcode_minus_L: Not really in the search PATH,
9447 # but as the default location of the library.
9448 hardcode_minus_L=yes
9449 export_dynamic_flag_spec='${wl}-E'
9450 ;;
d7040cdb 9451
ce2cded5 9452 hpux10*)
3725885a 9453 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9454 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9455 else
9456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9457 fi
9458 if test "$with_gnu_ld" = no; then
9459 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9460 hardcode_libdir_flag_spec_ld='+b $libdir'
9461 hardcode_libdir_separator=:
9462 hardcode_direct=yes
9463 hardcode_direct_absolute=yes
9464 export_dynamic_flag_spec='${wl}-E'
9465 # hardcode_minus_L: Not really in the search PATH,
9466 # but as the default location of the library.
9467 hardcode_minus_L=yes
9468 fi
9469 ;;
d7040cdb 9470
ce2cded5 9471 hpux11*)
3725885a 9472 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9473 case $host_cpu in
9474 hppa*64*)
9475 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 ;;
9477 ia64*)
718a6fd8 9478 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9479 ;;
9480 *)
9481 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482 ;;
9483 esac
9484 else
9485 case $host_cpu in
9486 hppa*64*)
9487 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9488 ;;
9489 ia64*)
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9491 ;;
9492 *)
3725885a
RW
9493
9494 # Older versions of the 11.00 compiler do not understand -b yet
9495 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9497$as_echo_n "checking if $CC understands -b... " >&6; }
9498if test "${lt_cv_prog_compiler__b+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9500else
9501 lt_cv_prog_compiler__b=no
9502 save_LDFLAGS="$LDFLAGS"
9503 LDFLAGS="$LDFLAGS -b"
9504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9506 # The linker can only warn and ignore the option if not recognized
9507 # So say no if there are warnings
9508 if test -s conftest.err; then
9509 # Append any errors to the config.log.
9510 cat conftest.err 1>&5
9511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9513 if diff conftest.exp conftest.er2 >/dev/null; then
9514 lt_cv_prog_compiler__b=yes
9515 fi
9516 else
9517 lt_cv_prog_compiler__b=yes
9518 fi
9519 fi
9520 $RM -r conftest*
9521 LDFLAGS="$save_LDFLAGS"
9522
9523fi
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9525$as_echo "$lt_cv_prog_compiler__b" >&6; }
9526
9527if test x"$lt_cv_prog_compiler__b" = xyes; then
9528 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9529else
9530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9531fi
9532
ce2cded5
L
9533 ;;
9534 esac
9535 fi
9536 if test "$with_gnu_ld" = no; then
9537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9538 hardcode_libdir_separator=:
d7040cdb 9539
ce2cded5
L
9540 case $host_cpu in
9541 hppa*64*|ia64*)
9542 hardcode_direct=no
9543 hardcode_shlibpath_var=no
9544 ;;
9545 *)
9546 hardcode_direct=yes
9547 hardcode_direct_absolute=yes
9548 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9549
ce2cded5
L
9550 # hardcode_minus_L: Not really in the search PATH,
9551 # but as the default location of the library.
9552 hardcode_minus_L=yes
9553 ;;
9554 esac
9555 fi
9556 ;;
9557
9558 irix5* | irix6* | nonstopux*)
9559 if test "$GCC" = yes; then
3725885a 9560 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
9561 # Try to use the -exported_symbol ld option, if it does not
9562 # work, assume that -exports_file does not work either and
9563 # implicitly export all symbols.
9564 save_LDFLAGS="$LDFLAGS"
9565 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h. */
ce2cded5
L
9568int foo(void) {}
9569_ACEOF
81ecdfbb 9570if ac_fn_c_try_link "$LINENO"; then :
3725885a 9571 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 9572
d7040cdb 9573fi
81ecdfbb
RW
9574rm -f core conftest.err conftest.$ac_objext \
9575 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
9576 LDFLAGS="$save_LDFLAGS"
9577 else
3725885a
RW
9578 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'
9579 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
9580 fi
9581 archive_cmds_need_lc='no'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9584 inherit_rpath=yes
9585 link_all_deplibs=yes
9586 ;;
d7040cdb 9587
ce2cded5
L
9588 netbsd*)
9589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9591 else
9592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9593 fi
9594 hardcode_libdir_flag_spec='-R$libdir'
9595 hardcode_direct=yes
9596 hardcode_shlibpath_var=no
9597 ;;
d7040cdb 9598
ce2cded5
L
9599 newsos6)
9600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_direct=yes
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 hardcode_libdir_separator=:
9604 hardcode_shlibpath_var=no
9605 ;;
d7040cdb 9606
ce2cded5
L
9607 *nto* | *qnx*)
9608 ;;
d7040cdb 9609
ce2cded5 9610 openbsd*)
718a6fd8
SE
9611 if test -f /usr/libexec/ld.so; then
9612 hardcode_direct=yes
9613 hardcode_shlibpath_var=no
9614 hardcode_direct_absolute=yes
9615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9619 export_dynamic_flag_spec='${wl}-E'
9620 else
9621 case $host_os in
9622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 ;;
9626 *)
9627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9629 ;;
9630 esac
9631 fi
9632 else
9633 ld_shlibs=no
d7040cdb
SE
9634 fi
9635 ;;
d7040cdb 9636
ce2cded5
L
9637 os2*)
9638 hardcode_libdir_flag_spec='-L$libdir'
9639 hardcode_minus_L=yes
9640 allow_undefined_flag=unsupported
3725885a 9641 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
9642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9643 ;;
d7040cdb 9644
ce2cded5
L
9645 osf3*)
9646 if test "$GCC" = yes; then
9647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9648 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
9649 else
9650 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9651 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
9652 fi
9653 archive_cmds_need_lc='no'
9654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655 hardcode_libdir_separator=:
9656 ;;
d7040cdb 9657
ce2cded5
L
9658 osf4* | osf5*) # as osf3* with the addition of -msym flag
9659 if test "$GCC" = yes; then
9660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9661 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
9662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663 else
9664 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9665 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 9666 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 9667 $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 9668
ce2cded5
L
9669 # Both c and cxx compiler support -rpath directly
9670 hardcode_libdir_flag_spec='-rpath $libdir'
9671 fi
9672 archive_cmds_need_lc='no'
9673 hardcode_libdir_separator=:
9674 ;;
d7040cdb 9675
ce2cded5
L
9676 solaris*)
9677 no_undefined_flag=' -z defs'
9678 if test "$GCC" = yes; then
9679 wlarc='${wl}'
9680 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9682 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9683 else
9684 case `$CC -V 2>&1` in
9685 *"Compilers 5.0"*)
9686 wlarc=''
9687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9690 ;;
9691 *)
9692 wlarc='${wl}'
9693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9696 ;;
9697 esac
9698 fi
9699 hardcode_libdir_flag_spec='-R$libdir'
9700 hardcode_shlibpath_var=no
9701 case $host_os in
9702 solaris2.[0-5] | solaris2.[0-5].*) ;;
9703 *)
9704 # The compiler driver will combine and reorder linker options,
9705 # but understands `-z linker_flag'. GCC discards it without `$wl',
9706 # but is careful enough not to reorder.
9707 # Supported since Solaris 2.6 (maybe 2.5.1?)
9708 if test "$GCC" = yes; then
9709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9710 else
9711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9712 fi
9713 ;;
9714 esac
9715 link_all_deplibs=yes
d7040cdb 9716 ;;
ce2cded5
L
9717
9718 sunos4*)
9719 if test "x$host_vendor" = xsequent; then
9720 # Use $CC to link under sequent, because it throws in some extra .o
9721 # files that make .init and .fini sections work.
9722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9723 else
ce2cded5 9724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9725 fi
ce2cded5
L
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 hardcode_direct=yes
9728 hardcode_minus_L=yes
9729 hardcode_shlibpath_var=no
d7040cdb 9730 ;;
ce2cded5
L
9731
9732 sysv4)
9733 case $host_vendor in
9734 sni)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_direct=yes # is this really true???
9737 ;;
9738 siemens)
9739 ## LD is ld it makes a PLAMLIB
9740 ## CC just makes a GrossModule.
9741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9742 reload_cmds='$CC -r -o $output$reload_objs'
9743 hardcode_direct=no
9744 ;;
9745 motorola)
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9748 ;;
9749 esac
9750 runpath_var='LD_RUN_PATH'
9751 hardcode_shlibpath_var=no
d7040cdb 9752 ;;
d7040cdb 9753
ce2cded5
L
9754 sysv4.3*)
9755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9756 hardcode_shlibpath_var=no
9757 export_dynamic_flag_spec='-Bexport'
9758 ;;
d7040cdb 9759
ce2cded5
L
9760 sysv4*MP*)
9761 if test -d /usr/nec; then
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_shlibpath_var=no
9764 runpath_var=LD_RUN_PATH
9765 hardcode_runpath_var=yes
9766 ld_shlibs=yes
9767 fi
9768 ;;
d7040cdb 9769
ce2cded5
L
9770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9771 no_undefined_flag='${wl}-z,text'
9772 archive_cmds_need_lc=no
9773 hardcode_shlibpath_var=no
9774 runpath_var='LD_RUN_PATH'
d7040cdb 9775
ce2cded5
L
9776 if test "$GCC" = yes; then
9777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 else
9780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782 fi
9783 ;;
d7040cdb 9784
ce2cded5
L
9785 sysv5* | sco3.2v5* | sco5v6*)
9786 # Note: We can NOT use -z defs as we might desire, because we do not
9787 # link with -lc, and that would cause any symbols used from libc to
9788 # always be unresolved, which means just about no library would
9789 # ever link correctly. If we're not using GNU ld we use -z text
9790 # though, which does catch some bad symbols but isn't as heavy-handed
9791 # as -z defs.
9792 no_undefined_flag='${wl}-z,text'
9793 allow_undefined_flag='${wl}-z,nodefs'
9794 archive_cmds_need_lc=no
9795 hardcode_shlibpath_var=no
9796 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9797 hardcode_libdir_separator=':'
9798 link_all_deplibs=yes
9799 export_dynamic_flag_spec='${wl}-Bexport'
9800 runpath_var='LD_RUN_PATH'
d7040cdb 9801
ce2cded5
L
9802 if test "$GCC" = yes; then
9803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 else
9806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 fi
d7040cdb 9809 ;;
d7040cdb 9810
ce2cded5
L
9811 uts4*)
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-L$libdir'
9814 hardcode_shlibpath_var=no
9815 ;;
d7040cdb 9816
ce2cded5
L
9817 *)
9818 ld_shlibs=no
9819 ;;
9820 esac
9821
9822 if test x$host_vendor = xsni; then
9823 case $host in
9824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9825 export_dynamic_flag_spec='${wl}-Blargedynsym'
9826 ;;
9827 esac
d7040cdb 9828 fi
ce2cded5 9829 fi
d7040cdb 9830
81ecdfbb
RW
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9832$as_echo "$ld_shlibs" >&6; }
ce2cded5 9833test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9834
ce2cded5 9835with_gnu_ld=$with_gnu_ld
d7040cdb 9836
d7040cdb 9837
d7040cdb 9838
d7040cdb 9839
d7040cdb 9840
d7040cdb 9841
d7040cdb 9842
d7040cdb 9843
d7040cdb 9844
d7040cdb 9845
d7040cdb 9846
d7040cdb 9847
d7040cdb 9848
d7040cdb 9849
d7040cdb 9850
ce2cded5
L
9851#
9852# Do we need to explicitly link libc?
9853#
9854case "x$archive_cmds_need_lc" in
9855x|xyes)
9856 # Assume -lc should be added
9857 archive_cmds_need_lc=yes
d7040cdb 9858
ce2cded5
L
9859 if test "$enable_shared" = yes && test "$GCC" = yes; then
9860 case $archive_cmds in
9861 *'~'*)
9862 # FIXME: we may have to deal with multi-command sequences.
9863 ;;
9864 '$CC '*)
9865 # Test whether the compiler implicitly links with -lc since on some
9866 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9867 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9869$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9870if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
39144654
RW
9872else
9873 $RM conftest*
9874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9875
81ecdfbb 9876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
9877 (eval $ac_compile) 2>&5
9878 ac_status=$?
81ecdfbb
RW
9879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9880 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9881 soname=conftest
9882 lib=conftest
9883 libobjs=conftest.$ac_objext
9884 deplibs=
9885 wl=$lt_prog_compiler_wl
9886 pic_flag=$lt_prog_compiler_pic
9887 compiler_flags=-v
9888 linker_flags=-v
9889 verstring=
9890 output_objdir=.
9891 libname=conftest
9892 lt_save_allow_undefined_flag=$allow_undefined_flag
9893 allow_undefined_flag=
81ecdfbb 9894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
9895 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9896 ac_status=$?
81ecdfbb
RW
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }
39144654
RW
9899 then
9900 lt_cv_archive_cmds_need_lc=no
9901 else
9902 lt_cv_archive_cmds_need_lc=yes
9903 fi
9904 allow_undefined_flag=$lt_save_allow_undefined_flag
9905 else
9906 cat conftest.err 1>&5
9907 fi
9908 $RM conftest*
9909
9910fi
81ecdfbb
RW
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9912$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9913 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
9914 ;;
9915 esac
d7040cdb 9916 fi
d7040cdb 9917 ;;
ce2cded5 9918esac
d7040cdb 9919
d7040cdb 9920
d7040cdb 9921
d7040cdb 9922
d7040cdb 9923
d7040cdb 9924
d7040cdb 9925
d7040cdb
SE
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
d7040cdb 10013
d7040cdb 10014
d7040cdb
SE
10015
10016
10017
10018
10019
10020
d7040cdb 10021
d7040cdb 10022
d7040cdb 10023
d7040cdb 10024
d7040cdb 10025
d7040cdb 10026
d7040cdb 10027
d7040cdb 10028
d7040cdb 10029
d7040cdb 10030
d7040cdb 10031
d7040cdb 10032
d7040cdb 10033
d7040cdb 10034
d7040cdb 10035
d7040cdb 10036
d7040cdb 10037
d7040cdb 10038
d7040cdb 10039
d7040cdb 10040
d7040cdb 10041
d7040cdb 10042
d7040cdb 10043
ce2cded5
L
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
81ecdfbb
RW
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10077$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10078
10079if test "$GCC" = yes; then
ce2cded5
L
10080 case $host_os in
10081 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10082 *) lt_awk_arg="/^libraries:/" ;;
10083 esac
3725885a
RW
10084 case $host_os in
10085 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10086 *) lt_sed_strip_eq="s,=/,/,g" ;;
10087 esac
10088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10089 case $lt_search_path_spec in
10090 *\;*)
ce2cded5
L
10091 # if the path contains ";" then we assume it to be the separator
10092 # otherwise default to the standard path separator (i.e. ":") - it is
10093 # assumed that no part of a normal pathname contains ";" but that should
10094 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10096 ;;
10097 *)
10098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10099 ;;
10100 esac
ce2cded5
L
10101 # Ok, now we have the path, separated by spaces, we can step through it
10102 # and add multilib dir if necessary.
10103 lt_tmp_lt_search_path_spec=
10104 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10105 for lt_sys_path in $lt_search_path_spec; do
10106 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10108 else
10109 test -d "$lt_sys_path" && \
10110 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10111 fi
10112 done
3725885a 10113 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10114BEGIN {RS=" "; FS="/|\n";} {
10115 lt_foo="";
10116 lt_count=0;
10117 for (lt_i = NF; lt_i > 0; lt_i--) {
10118 if ($lt_i != "" && $lt_i != ".") {
10119 if ($lt_i == "..") {
10120 lt_count++;
10121 } else {
10122 if (lt_count == 0) {
10123 lt_foo="/" $lt_i lt_foo;
10124 } else {
10125 lt_count--;
10126 }
10127 }
10128 }
10129 }
10130 if (lt_foo != "") { lt_freq[lt_foo]++; }
10131 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10132}'`
3725885a
RW
10133 # AWK program above erroneously prepends '/' to C:/dos/paths
10134 # for these hosts.
10135 case $host_os in
10136 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10137 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10138 esac
10139 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10140else
ce2cded5
L
10141 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10142fi
10143library_names_spec=
10144libname_spec='lib$name'
10145soname_spec=
10146shrext_cmds=".so"
10147postinstall_cmds=
10148postuninstall_cmds=
10149finish_cmds=
10150finish_eval=
10151shlibpath_var=
10152shlibpath_overrides_runpath=unknown
10153version_type=none
10154dynamic_linker="$host_os ld.so"
10155sys_lib_dlsearch_path_spec="/lib /usr/lib"
10156need_lib_prefix=unknown
10157hardcode_into_libs=no
10158
10159# when you set need_version to no, make sure it does not cause -set_version
10160# flags to be left without arguments
10161need_version=unknown
10162
10163case $host_os in
10164aix3*)
10165 version_type=linux
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10167 shlibpath_var=LIBPATH
10168
10169 # AIX 3 has no versioning support, so we append a major version to the name.
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 ;;
10172
50e7d84b 10173aix[4-9]*)
ce2cded5
L
10174 version_type=linux
10175 need_lib_prefix=no
10176 need_version=no
10177 hardcode_into_libs=yes
10178 if test "$host_cpu" = ia64; then
10179 # AIX 5 supports IA64
10180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 else
10183 # With GCC up to 2.95.x, collect2 would create an import file
10184 # for dependence libraries. The import file would start with
10185 # the line `#! .'. This would cause the generated library to
10186 # depend on `.', always an invalid library. This was fixed in
10187 # development snapshots of GCC prior to 3.0.
10188 case $host_os in
10189 aix4 | aix4.[01] | aix4.[01].*)
10190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10191 echo ' yes '
10192 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10193 :
10194 else
10195 can_build_shared=no
10196 fi
10197 ;;
10198 esac
10199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10200 # soname into executable. Probably we can add versioning support to
10201 # collect2, so additional links can be useful in future.
10202 if test "$aix_use_runtimelinking" = yes; then
10203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10204 # instead of lib<name>.a to let people know that these are not
10205 # typical AIX shared libraries.
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 else
10208 # We preserve .a as extension for shared libraries through AIX4.2
10209 # and later when we are not doing run time linking.
10210 library_names_spec='${libname}${release}.a $libname.a'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 fi
10213 shlibpath_var=LIBPATH
10214 fi
10215 ;;
10216
10217amigaos*)
718a6fd8
SE
10218 case $host_cpu in
10219 powerpc)
10220 # Since July 2007 AmigaOS4 officially supports .so libraries.
10221 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223 ;;
10224 m68k)
ce2cded5
L
10225 library_names_spec='$libname.ixlibrary $libname.a'
10226 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10227 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
10228 ;;
10229 esac
ce2cded5
L
10230 ;;
10231
10232beos*)
10233 library_names_spec='${libname}${shared_ext}'
10234 dynamic_linker="$host_os ld.so"
10235 shlibpath_var=LIBRARY_PATH
10236 ;;
10237
10238bsdi[45]*)
10239 version_type=linux
10240 need_version=no
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10246 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10247 # the default ld.so.conf also contains /usr/contrib/lib and
10248 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10249 # libtool to hard-code these into programs
10250 ;;
10251
718a6fd8 10252cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10253 version_type=windows
10254 shrext_cmds=".dll"
10255 need_version=no
10256 need_lib_prefix=no
10257
718a6fd8
SE
10258 case $GCC,$host_os in
10259 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10260 library_names_spec='$libname.dll.a'
10261 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10262 postinstall_cmds='base_file=`basename \${file}`~
10263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10264 dldir=$destdir/`dirname \$dlpath`~
10265 test -d \$dldir || mkdir -p \$dldir~
10266 $install_prog $dir/$dlname \$dldir/$dlname~
10267 chmod a+x \$dldir/$dlname~
10268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10270 fi'
10271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10272 dlpath=$dir/\$dldll~
10273 $RM \$dlpath'
10274 shlibpath_overrides_runpath=yes
10275
10276 case $host_os in
10277 cygwin*)
10278 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10279 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10280
10281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10282 ;;
718a6fd8 10283 mingw* | cegcc*)
ce2cded5
L
10284 # MinGW DLLs use traditional 'lib' prefix
10285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10286 ;;
10287 pw32*)
10288 # pw32 DLLs use 'pw' prefix rather than 'lib'
10289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10290 ;;
10291 esac
10292 ;;
10293
10294 *)
10295 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10296 ;;
10297 esac
10298 dynamic_linker='Win32 ld.exe'
10299 # FIXME: first we should search . and the directory the executable is in
10300 shlibpath_var=PATH
10301 ;;
10302
10303darwin* | rhapsody*)
10304 dynamic_linker="$host_os dyld"
10305 version_type=darwin
10306 need_lib_prefix=no
10307 need_version=no
10308 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10309 soname_spec='${libname}${release}${major}$shared_ext'
10310 shlibpath_overrides_runpath=yes
10311 shlibpath_var=DYLD_LIBRARY_PATH
10312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10313
10314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10316 ;;
10317
10318dgux*)
10319 version_type=linux
10320 need_lib_prefix=no
10321 need_version=no
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 ;;
10326
10327freebsd1*)
10328 dynamic_linker=no
10329 ;;
10330
10331freebsd* | dragonfly*)
10332 # DragonFly does not have aout. When/if they implement a new
10333 # versioning mechanism, adjust this.
10334 if test -x /usr/bin/objformat; then
10335 objformat=`/usr/bin/objformat`
10336 else
10337 case $host_os in
10338 freebsd[123]*) objformat=aout ;;
10339 *) objformat=elf ;;
10340 esac
10341 fi
10342 version_type=freebsd-$objformat
10343 case $version_type in
10344 freebsd-elf*)
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10346 need_version=no
10347 need_lib_prefix=no
10348 ;;
10349 freebsd-*)
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10351 need_version=yes
10352 ;;
10353 esac
10354 shlibpath_var=LD_LIBRARY_PATH
10355 case $host_os in
10356 freebsd2*)
10357 shlibpath_overrides_runpath=yes
10358 ;;
10359 freebsd3.[01]* | freebsdelf3.[01]*)
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 ;;
10363 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10364 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10365 shlibpath_overrides_runpath=no
10366 hardcode_into_libs=yes
10367 ;;
10368 *) # from 4.6 on, and DragonFly
10369 shlibpath_overrides_runpath=yes
10370 hardcode_into_libs=yes
10371 ;;
10372 esac
10373 ;;
10374
10375gnu*)
10376 version_type=linux
10377 need_lib_prefix=no
10378 need_version=no
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10380 soname_spec='${libname}${release}${shared_ext}$major'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 hardcode_into_libs=yes
10383 ;;
10384
3725885a
RW
10385haiku*)
10386 version_type=linux
10387 need_lib_prefix=no
10388 need_version=no
10389 dynamic_linker="$host_os runtime_loader"
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10391 soname_spec='${libname}${release}${shared_ext}$major'
10392 shlibpath_var=LIBRARY_PATH
10393 shlibpath_overrides_runpath=yes
10394 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10395 hardcode_into_libs=yes
10396 ;;
10397
ce2cded5
L
10398hpux9* | hpux10* | hpux11*)
10399 # Give a soname corresponding to the major version so that dld.sl refuses to
10400 # link against other versions.
10401 version_type=sunos
10402 need_lib_prefix=no
10403 need_version=no
10404 case $host_cpu in
10405 ia64*)
10406 shrext_cmds='.so'
10407 hardcode_into_libs=yes
10408 dynamic_linker="$host_os dld.so"
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10412 soname_spec='${libname}${release}${shared_ext}$major'
10413 if test "X$HPUX_IA64_MODE" = X32; then
10414 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10415 else
10416 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10417 fi
10418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10419 ;;
10420 hppa*64*)
10421 shrext_cmds='.sl'
10422 hardcode_into_libs=yes
10423 dynamic_linker="$host_os dld.sl"
10424 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10425 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10430 ;;
10431 *)
10432 shrext_cmds='.sl'
10433 dynamic_linker="$host_os dld.sl"
10434 shlibpath_var=SHLIB_PATH
10435 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 ;;
10439 esac
3725885a 10440 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10441 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10442 # or fails outright, so override atomically:
10443 install_override_mode=555
ce2cded5
L
10444 ;;
10445
10446interix[3-9]*)
10447 version_type=linux
10448 need_lib_prefix=no
10449 need_version=no
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 shlibpath_overrides_runpath=no
10455 hardcode_into_libs=yes
10456 ;;
10457
10458irix5* | irix6* | nonstopux*)
10459 case $host_os in
10460 nonstopux*) version_type=nonstopux ;;
10461 *)
10462 if test "$lt_cv_prog_gnu_ld" = yes; then
10463 version_type=linux
10464 else
10465 version_type=irix
10466 fi ;;
10467 esac
10468 need_lib_prefix=no
10469 need_version=no
10470 soname_spec='${libname}${release}${shared_ext}$major'
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10472 case $host_os in
10473 irix5* | nonstopux*)
10474 libsuff= shlibsuff=
10475 ;;
10476 *)
10477 case $LD in # libtool.m4 will add one of these switches to LD
10478 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10479 libsuff= shlibsuff= libmagic=32-bit;;
10480 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10481 libsuff=32 shlibsuff=N32 libmagic=N32;;
10482 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10483 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10484 *) libsuff= shlibsuff= libmagic=never-match;;
10485 esac
10486 ;;
10487 esac
10488 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10489 shlibpath_overrides_runpath=no
10490 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10491 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10492 hardcode_into_libs=yes
10493 ;;
d7040cdb 10494
ce2cded5
L
10495# No shared lib support for Linux oldld, aout, or coff.
10496linux*oldld* | linux*aout* | linux*coff*)
10497 dynamic_linker=no
10498 ;;
10499
10500# This must be Linux ELF.
58e24671 10501linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10502 version_type=linux
10503 need_lib_prefix=no
10504 need_version=no
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10508 shlibpath_var=LD_LIBRARY_PATH
10509 shlibpath_overrides_runpath=no
39144654 10510
ce2cded5 10511 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10512 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
39144654
RW
10514else
10515 lt_cv_shlibpath_overrides_runpath=no
10516 save_LDFLAGS=$LDFLAGS
10517 save_libdir=$libdir
10518 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10519 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10521/* end confdefs.h. */
10522
d7040cdb
SE
10523int
10524main ()
10525{
ce2cded5 10526
d7040cdb
SE
10527 ;
10528 return 0;
10529}
10530_ACEOF
81ecdfbb
RW
10531if ac_fn_c_try_link "$LINENO"; then :
10532 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10533 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10534fi
ce2cded5 10535fi
81ecdfbb
RW
10536rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10538 LDFLAGS=$save_LDFLAGS
10539 libdir=$save_libdir
10540
10541fi
10542
10543 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10544
10545 # This implies no fast_install, which is unacceptable.
10546 # Some rework will be needed to allow for fast_install
10547 # before this can be enabled.
10548 hardcode_into_libs=yes
10549
10550 # Append ld.so.conf contents to the search path
10551 if test -f /etc/ld.so.conf; then
3725885a 10552 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' ' '`
ce2cded5
L
10553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10554 fi
10555
10556 # We used to test for /lib/ld.so.1 and disable shared libraries on
10557 # powerpc, because MkLinux only supported shared libraries with the
10558 # GNU dynamic linker. Since this was broken with cross compilers,
10559 # most powerpc-linux boxes support dynamic linking these days and
10560 # people can always --disable-shared, the test was removed, and we
10561 # assume the GNU/Linux dynamic linker is in use.
10562 dynamic_linker='GNU/Linux ld.so'
10563 ;;
10564
10565netbsd*)
10566 version_type=sunos
10567 need_lib_prefix=no
10568 need_version=no
10569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10572 dynamic_linker='NetBSD (a.out) ld.so'
10573 else
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 dynamic_linker='NetBSD ld.elf_so'
10577 fi
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 hardcode_into_libs=yes
10581 ;;
10582
10583newsos6)
10584 version_type=linux
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 ;;
10589
10590*nto* | *qnx*)
10591 version_type=qnx
10592 need_lib_prefix=no
10593 need_version=no
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 shlibpath_var=LD_LIBRARY_PATH
10597 shlibpath_overrides_runpath=no
10598 hardcode_into_libs=yes
10599 dynamic_linker='ldqnx.so'
10600 ;;
10601
10602openbsd*)
10603 version_type=sunos
10604 sys_lib_dlsearch_path_spec="/usr/lib"
10605 need_lib_prefix=no
10606 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10607 case $host_os in
10608 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10609 *) need_version=no ;;
10610 esac
10611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615 case $host_os in
10616 openbsd2.[89] | openbsd2.[89].*)
10617 shlibpath_overrides_runpath=no
10618 ;;
10619 *)
10620 shlibpath_overrides_runpath=yes
10621 ;;
10622 esac
10623 else
10624 shlibpath_overrides_runpath=yes
10625 fi
10626 ;;
10627
10628os2*)
10629 libname_spec='$name'
10630 shrext_cmds=".dll"
10631 need_lib_prefix=no
10632 library_names_spec='$libname${shared_ext} $libname.a'
10633 dynamic_linker='OS/2 ld.exe'
10634 shlibpath_var=LIBPATH
10635 ;;
10636
10637osf3* | osf4* | osf5*)
10638 version_type=osf
10639 need_lib_prefix=no
10640 need_version=no
10641 soname_spec='${libname}${release}${shared_ext}$major'
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10646 ;;
10647
10648rdos*)
10649 dynamic_linker=no
10650 ;;
10651
10652solaris*)
10653 version_type=linux
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10661 # ldd complains unless libraries are executable
10662 postinstall_cmds='chmod +x $lib'
10663 ;;
10664
10665sunos4*)
10666 version_type=sunos
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10668 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10669 shlibpath_var=LD_LIBRARY_PATH
10670 shlibpath_overrides_runpath=yes
10671 if test "$with_gnu_ld" = yes; then
10672 need_lib_prefix=no
10673 fi
10674 need_version=yes
10675 ;;
10676
10677sysv4 | sysv4.3*)
10678 version_type=linux
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680 soname_spec='${libname}${release}${shared_ext}$major'
10681 shlibpath_var=LD_LIBRARY_PATH
10682 case $host_vendor in
10683 sni)
10684 shlibpath_overrides_runpath=no
10685 need_lib_prefix=no
10686 runpath_var=LD_RUN_PATH
10687 ;;
10688 siemens)
10689 need_lib_prefix=no
10690 ;;
10691 motorola)
10692 need_lib_prefix=no
10693 need_version=no
10694 shlibpath_overrides_runpath=no
10695 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10696 ;;
10697 esac
10698 ;;
10699
10700sysv4*MP*)
10701 if test -d /usr/nec ;then
10702 version_type=linux
10703 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10704 soname_spec='$libname${shared_ext}.$major'
10705 shlibpath_var=LD_LIBRARY_PATH
10706 fi
10707 ;;
10708
10709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10710 version_type=freebsd-elf
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10717 hardcode_into_libs=yes
10718 if test "$with_gnu_ld" = yes; then
10719 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10720 else
10721 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10722 case $host_os in
10723 sco3.2v5*)
10724 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10725 ;;
10726 esac
10727 fi
10728 sys_lib_dlsearch_path_spec='/usr/lib'
10729 ;;
10730
10731tpf*)
10732 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10733 version_type=linux
10734 need_lib_prefix=no
10735 need_version=no
718a6fd8 10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10737 shlibpath_var=LD_LIBRARY_PATH
10738 shlibpath_overrides_runpath=no
10739 hardcode_into_libs=yes
10740 ;;
d7040cdb 10741
ce2cded5
L
10742uts4*)
10743 version_type=linux
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 ;;
d7040cdb 10748
ce2cded5
L
10749*)
10750 dynamic_linker=no
10751 ;;
10752esac
81ecdfbb
RW
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10754$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10755test "$dynamic_linker" = no && can_build_shared=no
10756
10757variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10758if test "$GCC" = yes; then
10759 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10760fi
d7040cdb 10761
718a6fd8
SE
10762if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10763 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10764fi
10765if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10767fi
10768
d7040cdb 10769
d7040cdb
SE
10770
10771
d7040cdb
SE
10772
10773
d7040cdb
SE
10774
10775
d7040cdb
SE
10776
10777
d7040cdb
SE
10778
10779
d7040cdb 10780
d7040cdb 10781
d7040cdb 10782
d7040cdb 10783
d7040cdb 10784
d7040cdb 10785
d7040cdb 10786
d7040cdb 10787
d7040cdb 10788
d7040cdb 10789
d7040cdb 10790
d7040cdb 10791
d7040cdb 10792
d7040cdb 10793
d7040cdb
SE
10794
10795
d7040cdb 10796
d7040cdb 10797
d7040cdb 10798
d7040cdb 10799
d7040cdb 10800
d7040cdb 10801
d7040cdb 10802
d7040cdb 10803
d7040cdb 10804
d7040cdb
SE
10805
10806
d7040cdb 10807
d7040cdb 10808
d7040cdb 10809
d7040cdb
SE
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
d7040cdb
SE
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
d7040cdb 10839
d7040cdb 10840
d7040cdb 10841
d7040cdb 10842
d7040cdb
SE
10843
10844
10845
10846
ce2cded5
L
10847
10848
3725885a
RW
10849
10850
10851
10852
10853
ce2cded5
L
10854
10855
10856
10857
10858
10859
81ecdfbb
RW
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10861$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
10862hardcode_action=
10863if test -n "$hardcode_libdir_flag_spec" ||
10864 test -n "$runpath_var" ||
10865 test "X$hardcode_automatic" = "Xyes" ; then
10866
10867 # We can hardcode non-existent directories.
10868 if test "$hardcode_direct" != no &&
10869 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10870 # have to relink, otherwise we might link with an installed library
10871 # when we should be linking with a yet-to-be-installed one
10872 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10873 test "$hardcode_minus_L" != no; then
10874 # Linking always hardcodes the temporary library directory.
10875 hardcode_action=relink
10876 else
10877 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10878 hardcode_action=immediate
10879 fi
10880else
10881 # We cannot hardcode anything, or else we can only hardcode existing
10882 # directories.
10883 hardcode_action=unsupported
10884fi
81ecdfbb
RW
10885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10886$as_echo "$hardcode_action" >&6; }
ce2cded5
L
10887
10888if test "$hardcode_action" = relink ||
10889 test "$inherit_rpath" = yes; then
10890 # Fast installation is not supported
10891 enable_fast_install=no
10892elif test "$shlibpath_overrides_runpath" = yes ||
10893 test "$enable_shared" = no; then
10894 # Fast installation is not necessary
10895 enable_fast_install=needless
d7040cdb 10896fi
d7040cdb 10897
d7040cdb
SE
10898
10899
10900
10901
10902
ce2cded5
L
10903 if test "x$enable_dlopen" != xyes; then
10904 enable_dlopen=unknown
10905 enable_dlopen_self=unknown
10906 enable_dlopen_self_static=unknown
10907else
10908 lt_cv_dlopen=no
10909 lt_cv_dlopen_libs=
10910
10911 case $host_os in
10912 beos*)
10913 lt_cv_dlopen="load_add_on"
10914 lt_cv_dlopen_libs=
10915 lt_cv_dlopen_self=yes
10916 ;;
d7040cdb 10917
718a6fd8 10918 mingw* | pw32* | cegcc*)
ce2cded5
L
10919 lt_cv_dlopen="LoadLibrary"
10920 lt_cv_dlopen_libs=
10921 ;;
d7040cdb 10922
ce2cded5
L
10923 cygwin*)
10924 lt_cv_dlopen="dlopen"
10925 lt_cv_dlopen_libs=
10926 ;;
d7040cdb 10927
ce2cded5
L
10928 darwin*)
10929 # if libdl is installed we need to link against it
81ecdfbb
RW
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10931$as_echo_n "checking for dlopen in -ldl... " >&6; }
10932if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
ce2cded5
L
10934else
10935 ac_check_lib_save_LIBS=$LIBS
10936LIBS="-ldl $LIBS"
81ecdfbb 10937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10938/* end confdefs.h. */
d7040cdb 10939
81ecdfbb
RW
10940/* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
ce2cded5
L
10943#ifdef __cplusplus
10944extern "C"
10945#endif
ce2cded5
L
10946char dlopen ();
10947int
10948main ()
10949{
81ecdfbb 10950return dlopen ();
ce2cded5
L
10951 ;
10952 return 0;
10953}
10954_ACEOF
81ecdfbb 10955if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
10956 ac_cv_lib_dl_dlopen=yes
10957else
81ecdfbb 10958 ac_cv_lib_dl_dlopen=no
ce2cded5 10959fi
81ecdfbb
RW
10960rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10962LIBS=$ac_check_lib_save_LIBS
10963fi
81ecdfbb
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10965$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10966if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
10967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10968else
d7040cdb 10969
ce2cded5
L
10970 lt_cv_dlopen="dyld"
10971 lt_cv_dlopen_libs=
10972 lt_cv_dlopen_self=yes
d7040cdb 10973
ce2cded5 10974fi
d7040cdb 10975
ce2cded5 10976 ;;
d7040cdb 10977
ce2cded5 10978 *)
81ecdfbb
RW
10979 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10980if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
10981 lt_cv_dlopen="shl_load"
10982else
81ecdfbb
RW
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10984$as_echo_n "checking for shl_load in -ldld... " >&6; }
10985if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
ce2cded5
L
10987else
10988 ac_check_lib_save_LIBS=$LIBS
10989LIBS="-ldld $LIBS"
81ecdfbb 10990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10991/* end confdefs.h. */
d7040cdb 10992
81ecdfbb
RW
10993/* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
ce2cded5
L
10996#ifdef __cplusplus
10997extern "C"
10998#endif
ce2cded5
L
10999char shl_load ();
11000int
11001main ()
11002{
81ecdfbb 11003return shl_load ();
ce2cded5
L
11004 ;
11005 return 0;
11006}
d7040cdb 11007_ACEOF
81ecdfbb 11008if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11009 ac_cv_lib_dld_shl_load=yes
11010else
81ecdfbb 11011 ac_cv_lib_dld_shl_load=no
d7040cdb 11012fi
81ecdfbb
RW
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11015LIBS=$ac_check_lib_save_LIBS
11016fi
81ecdfbb
RW
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11018$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11019if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 11020 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11021else
81ecdfbb
RW
11022 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11023if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11024 lt_cv_dlopen="dlopen"
11025else
81ecdfbb
RW
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11027$as_echo_n "checking for dlopen in -ldl... " >&6; }
11028if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
d7040cdb 11030else
ce2cded5
L
11031 ac_check_lib_save_LIBS=$LIBS
11032LIBS="-ldl $LIBS"
81ecdfbb 11033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11034/* end confdefs.h. */
d7040cdb 11035
81ecdfbb
RW
11036/* Override any GCC internal prototype to avoid an error.
11037 Use char because int might match the return type of a GCC
11038 builtin and then its argument prototype would still apply. */
ce2cded5
L
11039#ifdef __cplusplus
11040extern "C"
11041#endif
ce2cded5 11042char dlopen ();
d7040cdb
SE
11043int
11044main ()
11045{
81ecdfbb 11046return dlopen ();
d7040cdb
SE
11047 ;
11048 return 0;
11049}
11050_ACEOF
81ecdfbb 11051if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11052 ac_cv_lib_dl_dlopen=yes
11053else
81ecdfbb 11054 ac_cv_lib_dl_dlopen=no
ce2cded5 11055fi
81ecdfbb
RW
11056rm -f core conftest.err conftest.$ac_objext \
11057 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11058LIBS=$ac_check_lib_save_LIBS
11059fi
81ecdfbb
RW
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11061$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11062if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5
L
11063 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11064else
81ecdfbb
RW
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11066$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11067if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
ce2cded5
L
11069else
11070 ac_check_lib_save_LIBS=$LIBS
11071LIBS="-lsvld $LIBS"
81ecdfbb 11072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11073/* end confdefs.h. */
d7040cdb 11074
81ecdfbb
RW
11075/* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
ce2cded5
L
11078#ifdef __cplusplus
11079extern "C"
11080#endif
ce2cded5 11081char dlopen ();
d7040cdb
SE
11082int
11083main ()
11084{
81ecdfbb 11085return dlopen ();
d7040cdb
SE
11086 ;
11087 return 0;
11088}
11089_ACEOF
81ecdfbb 11090if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11091 ac_cv_lib_svld_dlopen=yes
d7040cdb 11092else
81ecdfbb 11093 ac_cv_lib_svld_dlopen=no
d7040cdb 11094fi
81ecdfbb
RW
11095rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11097LIBS=$ac_check_lib_save_LIBS
11098fi
81ecdfbb
RW
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11100$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11101if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11103else
81ecdfbb
RW
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11105$as_echo_n "checking for dld_link in -ldld... " >&6; }
11106if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
d7040cdb 11108else
ce2cded5
L
11109 ac_check_lib_save_LIBS=$LIBS
11110LIBS="-ldld $LIBS"
81ecdfbb 11111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11112/* end confdefs.h. */
ce2cded5 11113
81ecdfbb
RW
11114/* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
ce2cded5
L
11117#ifdef __cplusplus
11118extern "C"
11119#endif
ce2cded5 11120char dld_link ();
d7040cdb
SE
11121int
11122main ()
11123{
81ecdfbb 11124return dld_link ();
d7040cdb
SE
11125 ;
11126 return 0;
11127}
11128_ACEOF
81ecdfbb 11129if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11130 ac_cv_lib_dld_dld_link=yes
11131else
81ecdfbb 11132 ac_cv_lib_dld_dld_link=no
d7040cdb 11133fi
81ecdfbb
RW
11134rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11136LIBS=$ac_check_lib_save_LIBS
11137fi
81ecdfbb
RW
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11139$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11140if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 11141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11142fi
11143
11144
11145fi
11146
11147
11148fi
11149
11150
11151fi
11152
11153
11154fi
11155
11156
11157fi
11158
11159 ;;
11160 esac
11161
11162 if test "x$lt_cv_dlopen" != xno; then
11163 enable_dlopen=yes
d7040cdb 11164 else
ce2cded5 11165 enable_dlopen=no
d7040cdb 11166 fi
ce2cded5
L
11167
11168 case $lt_cv_dlopen in
11169 dlopen)
11170 save_CPPFLAGS="$CPPFLAGS"
11171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11172
11173 save_LDFLAGS="$LDFLAGS"
11174 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11175
11176 save_LIBS="$LIBS"
11177 LIBS="$lt_cv_dlopen_libs $LIBS"
11178
81ecdfbb
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11180$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11181if test "${lt_cv_dlopen_self+set}" = set; then :
11182 $as_echo_n "(cached) " >&6
d7040cdb 11183else
ce2cded5
L
11184 if test "$cross_compiling" = yes; then :
11185 lt_cv_dlopen_self=cross
11186else
11187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11188 lt_status=$lt_dlunknown
11189 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11190#line 11190 "configure"
ce2cded5
L
11191#include "confdefs.h"
11192
11193#if HAVE_DLFCN_H
11194#include <dlfcn.h>
11195#endif
11196
11197#include <stdio.h>
11198
11199#ifdef RTLD_GLOBAL
11200# define LT_DLGLOBAL RTLD_GLOBAL
11201#else
11202# ifdef DL_GLOBAL
11203# define LT_DLGLOBAL DL_GLOBAL
11204# else
11205# define LT_DLGLOBAL 0
11206# endif
11207#endif
11208
11209/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11210 find out it does not work in some platform. */
11211#ifndef LT_DLLAZY_OR_NOW
11212# ifdef RTLD_LAZY
11213# define LT_DLLAZY_OR_NOW RTLD_LAZY
11214# else
11215# ifdef DL_LAZY
11216# define LT_DLLAZY_OR_NOW DL_LAZY
11217# else
11218# ifdef RTLD_NOW
11219# define LT_DLLAZY_OR_NOW RTLD_NOW
11220# else
11221# ifdef DL_NOW
11222# define LT_DLLAZY_OR_NOW DL_NOW
11223# else
11224# define LT_DLLAZY_OR_NOW 0
11225# endif
11226# endif
11227# endif
11228# endif
11229#endif
11230
3725885a
RW
11231/* When -fvisbility=hidden is used, assume the code has been annotated
11232 correspondingly for the symbols needed. */
11233#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11234void fnord () __attribute__((visibility("default")));
11235#endif
11236
11237void fnord () { int i=42; }
ce2cded5
L
11238int main ()
11239{
11240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11241 int status = $lt_dlunknown;
11242
11243 if (self)
11244 {
11245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11246 else
11247 {
11248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11249 else puts (dlerror ());
11250 }
ce2cded5
L
11251 /* dlclose (self); */
11252 }
11253 else
11254 puts (dlerror ());
11255
718a6fd8 11256 return status;
ce2cded5
L
11257}
11258_LT_EOF
81ecdfbb 11259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11260 (eval $ac_link) 2>&5
11261 ac_status=$?
81ecdfbb
RW
11262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11263 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11264 (./conftest; exit; ) >&5 2>/dev/null
11265 lt_status=$?
11266 case x$lt_status in
11267 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11268 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11269 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11270 esac
11271 else :
11272 # compilation failed
11273 lt_cv_dlopen_self=no
11274 fi
11275fi
11276rm -fr conftest*
11277
d7040cdb
SE
11278
11279fi
81ecdfbb
RW
11280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11281$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11282
11283 if test "x$lt_cv_dlopen_self" = xyes; then
11284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11286$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11287if test "${lt_cv_dlopen_self_static+set}" = set; then :
11288 $as_echo_n "(cached) " >&6
d7040cdb 11289else
ce2cded5
L
11290 if test "$cross_compiling" = yes; then :
11291 lt_cv_dlopen_self_static=cross
11292else
11293 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11294 lt_status=$lt_dlunknown
11295 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11296#line 11296 "configure"
ce2cded5
L
11297#include "confdefs.h"
11298
11299#if HAVE_DLFCN_H
11300#include <dlfcn.h>
11301#endif
11302
11303#include <stdio.h>
11304
11305#ifdef RTLD_GLOBAL
11306# define LT_DLGLOBAL RTLD_GLOBAL
11307#else
11308# ifdef DL_GLOBAL
11309# define LT_DLGLOBAL DL_GLOBAL
11310# else
11311# define LT_DLGLOBAL 0
11312# endif
11313#endif
11314
11315/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11316 find out it does not work in some platform. */
11317#ifndef LT_DLLAZY_OR_NOW
11318# ifdef RTLD_LAZY
11319# define LT_DLLAZY_OR_NOW RTLD_LAZY
11320# else
11321# ifdef DL_LAZY
11322# define LT_DLLAZY_OR_NOW DL_LAZY
11323# else
11324# ifdef RTLD_NOW
11325# define LT_DLLAZY_OR_NOW RTLD_NOW
11326# else
11327# ifdef DL_NOW
11328# define LT_DLLAZY_OR_NOW DL_NOW
11329# else
11330# define LT_DLLAZY_OR_NOW 0
11331# endif
11332# endif
11333# endif
11334# endif
11335#endif
11336
3725885a
RW
11337/* When -fvisbility=hidden is used, assume the code has been annotated
11338 correspondingly for the symbols needed. */
11339#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11340void fnord () __attribute__((visibility("default")));
11341#endif
11342
11343void fnord () { int i=42; }
ce2cded5 11344int main ()
d7040cdb 11345{
ce2cded5
L
11346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11347 int status = $lt_dlunknown;
11348
11349 if (self)
11350 {
11351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11352 else
11353 {
11354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11355 else puts (dlerror ());
11356 }
ce2cded5
L
11357 /* dlclose (self); */
11358 }
11359 else
11360 puts (dlerror ());
11361
718a6fd8 11362 return status;
d7040cdb 11363}
ce2cded5 11364_LT_EOF
81ecdfbb 11365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11366 (eval $ac_link) 2>&5
11367 ac_status=$?
81ecdfbb
RW
11368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11369 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11370 (./conftest; exit; ) >&5 2>/dev/null
11371 lt_status=$?
11372 case x$lt_status in
11373 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11374 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11375 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11376 esac
11377 else :
11378 # compilation failed
11379 lt_cv_dlopen_self_static=no
11380 fi
d7040cdb 11381fi
ce2cded5
L
11382rm -fr conftest*
11383
11384
d7040cdb 11385fi
81ecdfbb
RW
11386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11387$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11388 fi
11389
11390 CPPFLAGS="$save_CPPFLAGS"
11391 LDFLAGS="$save_LDFLAGS"
11392 LIBS="$save_LIBS"
11393 ;;
11394 esac
11395
11396 case $lt_cv_dlopen_self in
11397 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11398 *) enable_dlopen_self=unknown ;;
11399 esac
11400
11401 case $lt_cv_dlopen_self_static in
11402 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11403 *) enable_dlopen_self_static=unknown ;;
11404 esac
d7040cdb 11405fi
d7040cdb 11406
d7040cdb
SE
11407
11408
d7040cdb 11409
d7040cdb 11410
ce2cded5
L
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423striplib=
11424old_striplib=
81ecdfbb
RW
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11426$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11427if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11429 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11431$as_echo "yes" >&6; }
ce2cded5
L
11432else
11433# FIXME - insert some real tests, host_os isn't really good enough
11434 case $host_os in
11435 darwin*)
11436 if test -n "$STRIP" ; then
11437 striplib="$STRIP -x"
11438 old_striplib="$STRIP -S"
81ecdfbb
RW
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11440$as_echo "yes" >&6; }
ce2cded5 11441 else
81ecdfbb
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
d7040cdb 11444 fi
ce2cded5
L
11445 ;;
11446 *)
81ecdfbb
RW
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
ce2cded5 11449 ;;
d7040cdb 11450 esac
d7040cdb
SE
11451fi
11452
d7040cdb 11453
d7040cdb 11454
d7040cdb 11455
d7040cdb 11456
d7040cdb 11457
d7040cdb 11458
d7040cdb 11459
d7040cdb 11460
d7040cdb 11461
d7040cdb 11462
d7040cdb 11463
ce2cded5 11464 # Report which library types will actually be built
81ecdfbb
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11466$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11468$as_echo "$can_build_shared" >&6; }
d7040cdb 11469
81ecdfbb
RW
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11471$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11472 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11473
ce2cded5
L
11474 # On AIX, shared libraries and static libraries use the same namespace, and
11475 # are all built from PIC.
11476 case $host_os in
11477 aix3*)
11478 test "$enable_shared" = yes && enable_static=no
11479 if test -n "$RANLIB"; then
11480 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11481 postinstall_cmds='$RANLIB $lib'
11482 fi
11483 ;;
d7040cdb 11484
50e7d84b 11485 aix[4-9]*)
ce2cded5
L
11486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11487 test "$enable_shared" = yes && enable_static=no
11488 fi
11489 ;;
11490 esac
81ecdfbb
RW
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11492$as_echo "$enable_shared" >&6; }
ce2cded5 11493
81ecdfbb
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11495$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11496 # Make sure either enable_shared or enable_static is yes.
11497 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11499$as_echo "$enable_static" >&6; }
d7040cdb 11500
d7040cdb 11501
d7040cdb 11502
d7040cdb 11503
ce2cded5
L
11504fi
11505ac_ext=c
11506ac_cpp='$CPP $CPPFLAGS'
11507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11510
ce2cded5 11511CC="$lt_save_CC"
d7040cdb 11512
d7040cdb 11513
d7040cdb 11514
d7040cdb 11515
d7040cdb 11516
d7040cdb 11517
d7040cdb 11518
d7040cdb 11519
d7040cdb 11520
d7040cdb
SE
11521
11522
d7040cdb
SE
11523
11524
81ecdfbb 11525 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11526
11527
d7040cdb 11528
d7040cdb 11529
ce2cded5 11530# Only expand once:
d7040cdb 11531
d7040cdb 11532
d7040cdb 11533
81ecdfbb
RW
11534# Check whether --enable-targets was given.
11535if test "${enable_targets+set}" = set; then :
11536 enableval=$enable_targets; case "${enableval}" in
11537 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
11538 ;;
11539 no) enable_targets= ;;
11540 *) enable_targets=$enableval ;;
11541esac
81ecdfbb
RW
11542fi
11543
ce2cded5
L
11544ac_checking=yes
11545if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11546 ac_checking=
11547fi
81ecdfbb
RW
11548# Check whether --enable-checking was given.
11549if test "${enable_checking+set}" = set; then :
11550 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
11551 no|none) ac_checking= ;;
11552 *) ac_checking=yes ;;
11553esac
81ecdfbb
RW
11554fi
11555if test x$ac_checking != x ; then
d7040cdb 11556
81ecdfbb 11557$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 11558
ce2cded5 11559fi
d7040cdb 11560
ce2cded5 11561using_cgen=no
d7040cdb 11562
d7040cdb 11563
91d6fa6a 11564GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow"
d7040cdb 11565
81ecdfbb
RW
11566# Check whether --enable-werror was given.
11567if test "${enable_werror+set}" = set; then :
11568 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
11569 yes | y) ERROR_ON_WARNING="yes" ;;
11570 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11571 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 11572 esac
81ecdfbb
RW
11573fi
11574
d7040cdb 11575
bb8541b9
L
11576# Enable -Wno-format by default when using gcc on mingw
11577case "${host}" in
11578 *-*-mingw32*)
11579 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11580 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11581 fi
11582 ;;
11583 *) ;;
11584esac
11585
ce2cded5
L
11586# Enable -Werror by default when using gcc
11587if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11588 ERROR_ON_WARNING=yes
11589fi
11590
11591NO_WERROR=
11592if test "${ERROR_ON_WARNING}" = yes ; then
11593 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11594 NO_WERROR="-Wno-error"
11595fi
11596
11597if test "${GCC}" = yes ; then
11598 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11599fi
11600
81ecdfbb
RW
11601# Check whether --enable-build-warnings was given.
11602if test "${enable_build_warnings+set}" = set; then :
11603 enableval=$enable_build_warnings; case "${enableval}" in
ce2cded5
L
11604 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11605 no) if test "${GCC}" = yes ; then
11606 WARN_CFLAGS="-w"
11607 fi;;
11608 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11609 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11610 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11611 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11612 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11613esac
81ecdfbb
RW
11614fi
11615
d7040cdb 11616
ce2cded5
L
11617if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11618 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11619fi
d7040cdb 11620
d7040cdb 11621
d7040cdb 11622
d7040cdb 11623
d7040cdb 11624
ce2cded5 11625# Generate a header file
81ecdfbb 11626ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 11627
d7040cdb 11628
ce2cded5
L
11629# If we are on a DOS filesystem, we must use gdb.ini rather than
11630# .gdbinit.
11631case "${host}" in
11632 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11633 GDBINIT="gdb.ini"
81ecdfbb 11634 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 11635
ce2cded5
L
11636 ;;
11637 *)
11638 GDBINIT=".gdbinit"
81ecdfbb 11639 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 11640
ce2cded5
L
11641 ;;
11642esac
d7040cdb 11643
d7040cdb 11644
ce2cded5 11645#We need this for the host. BOUT header is in host order.
81ecdfbb
RW
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11647$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11648if test "${ac_cv_c_bigendian+set}" = set; then :
11649 $as_echo_n "(cached) " >&6
11650else
11651 ac_cv_c_bigendian=unknown
11652 # See if we're dealing with a universal compiler.
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654/* end confdefs.h. */
11655#ifndef __APPLE_CC__
11656 not a universal capable compiler
11657 #endif
11658 typedef int dummy;
11659
11660_ACEOF
11661if ac_fn_c_try_compile "$LINENO"; then :
11662
11663 # Check for potential -arch flags. It is not universal unless
11664 # there are at least two -arch flags with different values.
11665 ac_arch=
11666 ac_prev=
11667 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11668 if test -n "$ac_prev"; then
11669 case $ac_word in
11670 i?86 | x86_64 | ppc | ppc64)
11671 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11672 ac_arch=$ac_word
11673 else
11674 ac_cv_c_bigendian=universal
11675 break
11676 fi
11677 ;;
11678 esac
11679 ac_prev=
11680 elif test "x$ac_word" = "x-arch"; then
11681 ac_prev=arch
11682 fi
11683 done
11684fi
11685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 if test $ac_cv_c_bigendian = unknown; then
11687 # See if sys/param.h defines the BYTE_ORDER macro.
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11689/* end confdefs.h. */
11690#include <sys/types.h>
81ecdfbb 11691 #include <sys/param.h>
d7040cdb 11692
ce2cded5
L
11693int
11694main ()
11695{
81ecdfbb
RW
11696#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11697 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11698 && LITTLE_ENDIAN)
11699 bogus endian macros
11700 #endif
d7040cdb 11701
ce2cded5
L
11702 ;
11703 return 0;
11704}
11705_ACEOF
81ecdfbb 11706if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11707 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11709/* end confdefs.h. */
11710#include <sys/types.h>
81ecdfbb 11711 #include <sys/param.h>
d7040cdb 11712
ce2cded5
L
11713int
11714main ()
11715{
11716#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
11717 not big endian
11718 #endif
d7040cdb 11719
ce2cded5
L
11720 ;
11721 return 0;
11722}
11723_ACEOF
81ecdfbb 11724if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
11725 ac_cv_c_bigendian=yes
11726else
81ecdfbb 11727 ac_cv_c_bigendian=no
ce2cded5 11728fi
81ecdfbb
RW
11729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11730fi
11731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 fi
11733 if test $ac_cv_c_bigendian = unknown; then
11734 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h. */
11737#include <limits.h>
d7040cdb 11738
81ecdfbb
RW
11739int
11740main ()
11741{
11742#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11743 bogus endian macros
11744 #endif
11745
11746 ;
11747 return 0;
11748}
ce2cded5 11749_ACEOF
81ecdfbb
RW
11750if ac_fn_c_try_compile "$LINENO"; then :
11751 # It does; now see whether it defined to _BIG_ENDIAN or not.
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11753/* end confdefs.h. */
81ecdfbb
RW
11754#include <limits.h>
11755
ce2cded5
L
11756int
11757main ()
11758{
81ecdfbb
RW
11759#ifndef _BIG_ENDIAN
11760 not big endian
11761 #endif
11762
ce2cded5
L
11763 ;
11764 return 0;
11765}
11766_ACEOF
81ecdfbb 11767if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 11768 ac_cv_c_bigendian=yes
81ecdfbb
RW
11769else
11770 ac_cv_c_bigendian=no
d7040cdb 11771fi
81ecdfbb 11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11773fi
81ecdfbb
RW
11774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 fi
11776 if test $ac_cv_c_bigendian = unknown; then
11777 # Compile a test program.
11778 if test "$cross_compiling" = yes; then :
11779 # Try to guess by grepping values from an object file.
11780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781/* end confdefs.h. */
11782short int ascii_mm[] =
11783 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11784 short int ascii_ii[] =
11785 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11786 int use_ascii (int i) {
11787 return ascii_mm[i] + ascii_ii[i];
11788 }
11789 short int ebcdic_ii[] =
11790 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11791 short int ebcdic_mm[] =
11792 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11793 int use_ebcdic (int i) {
11794 return ebcdic_mm[i] + ebcdic_ii[i];
11795 }
11796 extern int foo;
d7040cdb 11797
81ecdfbb
RW
11798int
11799main ()
11800{
11801return use_ascii (foo) == use_ebcdic (foo);
11802 ;
11803 return 0;
11804}
11805_ACEOF
11806if ac_fn_c_try_compile "$LINENO"; then :
11807 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11808 ac_cv_c_bigendian=yes
11809 fi
11810 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11811 if test "$ac_cv_c_bigendian" = unknown; then
11812 ac_cv_c_bigendian=no
11813 else
11814 # finding both strings is unlikely to happen, but who knows?
11815 ac_cv_c_bigendian=unknown
11816 fi
11817 fi
ce2cded5 11818fi
81ecdfbb 11819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 11820else
81ecdfbb 11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11822/* end confdefs.h. */
81ecdfbb 11823$ac_includes_default
ce2cded5
L
11824int
11825main ()
11826{
81ecdfbb
RW
11827
11828 /* Are we little or big endian? From Harbison&Steele. */
11829 union
11830 {
11831 long int l;
11832 char c[sizeof (long int)];
11833 } u;
11834 u.l = 1;
11835 return u.c[sizeof (long int) - 1] == 1;
11836
11837 ;
11838 return 0;
ce2cded5 11839}
d7040cdb 11840_ACEOF
81ecdfbb 11841if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
11842 ac_cv_c_bigendian=no
11843else
81ecdfbb 11844 ac_cv_c_bigendian=yes
d7040cdb 11845fi
81ecdfbb
RW
11846rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11847 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 11848fi
81ecdfbb
RW
11849
11850 fi
ce2cded5 11851fi
81ecdfbb
RW
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11853$as_echo "$ac_cv_c_bigendian" >&6; }
11854 case $ac_cv_c_bigendian in #(
11855 yes)
11856 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11857;; #(
11858 no)
11859 ;; #(
11860 universal)
d7040cdb 11861
81ecdfbb
RW
11862$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11863
11864 ;; #(
11865 *)
11866 as_fn_error "unknown endianness
11867 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11868 esac
d7040cdb 11869
d7040cdb 11870
ce2cded5 11871te_file=generic
d7040cdb 11872
ce2cded5
L
11873# Makefile target for installing gas in $(tooldir)/bin.
11874install_tooldir=install-exec-tooldir
d7040cdb 11875
ce2cded5
L
11876canon_targets=""
11877all_targets=no
11878if test -n "$enable_targets" ; then
11879 for t in `echo $enable_targets | sed 's/,/ /g'`; do
11880 if test $t = "all"; then
11881 all_targets=yes
11882 continue
11883 fi
11884 result=`$ac_config_sub $t 2>/dev/null`
11885 if test -n "$result" ; then
11886 canon_targets="$canon_targets $result"
11887# else
11888# # Permit "all", etc. We don't support it yet though.
11889# canon_targets="$canon_targets $t"
11890 fi
11891 done
11892 _gas_uniq_list="$canon_targets"
d7040cdb
SE
11893_gas_uniq_newlist=""
11894for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
11895 case $_gas_uniq_i in
11896 _gas_uniq_dummy) ;;
11897 *) case " $_gas_uniq_newlist " in
11898 *" $_gas_uniq_i "*) ;;
11899 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
11900 esac ;;
11901 esac
11902done
ce2cded5 11903canon_targets=$_gas_uniq_newlist
d7040cdb 11904
ce2cded5
L
11905fi
11906
11907emulations=""
11908
11909for this_target in $target $canon_targets ; do
11910
11911 targ=${this_target}
11912 . ${srcdir}/configure.tgt
11913
11914 case ${target_cpu} in
11915 crisv32)
11916
11917cat >>confdefs.h <<_ACEOF
11918#define DEFAULT_CRIS_ARCH $arch
d7040cdb 11919_ACEOF
ce2cded5
L
11920
11921 ;;
11922 esac
11923
11924 if test ${this_target} = $target ; then
11925 target_cpu_type=${cpu_type}
11926 elif test ${target_cpu_type} != ${cpu_type} ; then
11927 continue
11928 fi
11929
11930 generic_target=${cpu_type}-${target_vendor}-${target_os}
11931 case ${generic_target} in
11932 i386-*-sco3.2v5*)
11933 if test ${this_target} = $target; then
11934
81ecdfbb 11935$as_echo "#define SCO_ELF 1" >>confdefs.h
ce2cded5
L
11936
11937 fi
11938 ;;
11939
11940 i386-*-msdosdjgpp* \
11941 | i386-*-go32* \
11942 | i386-go32-rtems*)
11943
81ecdfbb 11944$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
11945
11946 ;;
11947
11948 i860-*-*)
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
11950$as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
ce2cded5
L
11951 ;;
11952
7ba29e2a
NC
11953 microblaze*)
11954 ;;
11955
ce2cded5
L
11956 mips-sony-bsd*)
11957 ;;
11958 mips-*-bsd*)
81ecdfbb 11959 as_fn_error "Unknown vendor for mips-bsd configuration." "$LINENO" 5
ce2cded5
L
11960 ;;
11961
e5231592 11962 ppc-*-aix[5-9].*)
ce2cded5 11963
81ecdfbb 11964$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5
L
11965
11966 ;;
11967 ppc-*-linux-*)
11968 case "$endian" in
11969 big) ;;
81ecdfbb 11970 *) as_fn_error "GNU/Linux must be configured big endian" "$LINENO" 5 ;;
ce2cded5
L
11971 esac
11972 ;;
11973 ppc-*-solaris*)
11974 if test ${this_target} = $target; then
11975
81ecdfbb 11976$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
11977
11978 fi
11979 if test x${endian} = xbig; then
81ecdfbb 11980 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
11981 fi
11982 ;;
11983
11984 sh*-*-symbianelf*)
11985
81ecdfbb 11986$as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
ce2cded5
L
11987
11988 ;;
d7040cdb 11989 esac
d7040cdb 11990
ce2cded5
L
11991 if test ${this_target} = $target ; then
11992 endian_def=
11993 if test x${endian} = xbig; then
11994 endian_def=1
11995 elif test x${endian} = xlittle; then
11996 endian_def=0
11997 fi
11998 if test x${endian_def} != x; then
11999
12000cat >>confdefs.h <<_ACEOF
12001#define TARGET_BYTES_BIG_ENDIAN $endian_def
12002_ACEOF
12003
12004 fi
12005 fi
12006
12007# Other random stuff.
12008
12009 case ${cpu_type} in
12010 mips)
12011 # Set mips_cpu to the name of the default CPU.
12012 case ${target_cpu} in
12013 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12014 mips_cpu=from-abi
12015 ;;
12016 mipsisa32 | mipsisa32el)
12017 mips_cpu=mips32
12018 ;;
12019 mipsisa32r2 | mipsisa32r2el)
12020 mips_cpu=mips32r2
12021 ;;
12022 mipsisa64 | mipsisa64el)
12023 mips_cpu=mips64
12024 ;;
12025 mipsisa64r2 | mipsisa64r2el)
12026 mips_cpu=mips64r2
12027 ;;
12028 mipstx39 | mipstx39el)
12029 mips_cpu=r3900
12030 ;;
12031 mips64vr | mips64vrel)
12032 mips_cpu=vr4100
12033 ;;
12034 mipsisa32r2* | mipsisa64r2*)
12035 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12036 ;;
12037 mips64* | mipsisa64* | mipsisa32*)
12038 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12039 ;;
12040 *)
81ecdfbb 12041 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12042 ;;
12043 esac
12044 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12045 # binaries. It's a GNU extension that some OSes don't understand.
12046 # The value only matters on ELF targets.
12047 case ${target} in
12048 *-*-irix*)
12049 use_e_mips_abi_o32=0
12050 ;;
12051 *)
12052 use_e_mips_abi_o32=1
12053 ;;
12054 esac
12055 # Decide whether to generate 32-bit or 64-bit code by default.
12056 # Used to resolve -march=from-abi when an embedded ABI is selected.
12057 case ${target} in
12058 mips64*-*-* | mipsisa64*-*-*)
12059 mips_default_64bit=1
12060 ;;
12061 *)
12062 mips_default_64bit=0
12063 ;;
12064 esac
12065 # Decide which ABI to target by default.
12066 case ${target} in
12067 mips64*-linux* | mips-sgi-irix6*)
12068 mips_default_abi=N32_ABI
12069 ;;
12070 mips*-linux*)
12071 mips_default_abi=O32_ABI
12072 ;;
12073 mips64*-openbsd*)
12074 mips_default_abi=N64_ABI
12075 ;;
12076 *)
12077 mips_default_abi=NO_ABI
12078 ;;
12079 esac
12080
12081cat >>confdefs.h <<_ACEOF
12082#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12083_ACEOF
d7040cdb
SE
12084
12085
12086cat >>confdefs.h <<_ACEOF
ce2cded5 12087#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12088_ACEOF
12089
12090
12091cat >>confdefs.h <<_ACEOF
ce2cded5 12092#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12093_ACEOF
12094
12095
ce2cded5
L
12096cat >>confdefs.h <<_ACEOF
12097#define MIPS_DEFAULT_ABI $mips_default_abi
12098_ACEOF
d7040cdb 12099
ce2cded5
L
12100 ;;
12101 esac
d7040cdb 12102
ce2cded5
L
12103 # Do we need the opcodes library?
12104 case ${cpu_type} in
12105 vax | tic30)
12106 ;;
d7040cdb 12107
ce2cded5
L
12108 *)
12109 need_opcodes=yes
d7040cdb 12110
ce2cded5
L
12111 case "${enable_shared}" in
12112 yes) shared_opcodes=true ;;
12113 *opcodes*) shared_opcodes=true ;;
12114 *) shared_opcodes=false ;;
12115 esac
12116 ;;
12117 esac
d7040cdb 12118
ce2cded5
L
12119 # Any other special object files needed ?
12120 case ${cpu_type} in
d7040cdb 12121
ce2cded5
L
12122 bfin)
12123 echo ${extra_objects} | grep -s "bfin-parse.o"
12124 if test $? -ne 0 ; then
12125 extra_objects="$extra_objects bfin-parse.o"
12126 fi
d7040cdb 12127
ce2cded5
L
12128 echo ${extra_objects} | grep -s "bfin-lex.o"
12129 if test $? -ne 0 ; then
12130 extra_objects="$extra_objects bfin-lex.o"
12131 fi
12132 ;;
d7040cdb 12133
84e94c90 12134 fr30 | ip2k | iq2000 | lm32 | m32r | openrisc)
ce2cded5
L
12135 using_cgen=yes
12136 ;;
d7040cdb 12137
ce2cded5
L
12138 m32c)
12139 using_cgen=yes
12140 ;;
12141 frv)
12142 using_cgen=yes
12143 ;;
12144 m68k)
12145 case ${extra_objects} in
12146 *m68k-parse.o*) ;;
12147 *) extra_objects="$extra_objects m68k-parse.o" ;;
12148 esac
12149 ;;
d7040cdb 12150
ce2cded5
L
12151 mep)
12152 using_cgen=yes
12153 ;;
d7040cdb 12154
ce2cded5
L
12155 mips)
12156 echo ${extra_objects} | grep -s "itbl-parse.o"
12157 if test $? -ne 0 ; then
12158 extra_objects="$extra_objects itbl-parse.o"
12159 fi
d7040cdb 12160
ce2cded5
L
12161 echo ${extra_objects} | grep -s "itbl-lex.o"
12162 if test $? -ne 0 ; then
12163 extra_objects="$extra_objects itbl-lex.o"
12164 fi
d7040cdb 12165
ce2cded5
L
12166 echo ${extra_objects} | grep -s "itbl-ops.o"
12167 if test $? -ne 0 ; then
12168 extra_objects="$extra_objects itbl-ops.o"
12169 fi
12170 ;;
d7040cdb 12171
ce2cded5
L
12172 mt)
12173 using_cgen=yes
12174 ;;
d7040cdb 12175
ce2cded5
L
12176 i386 | s390 | sparc)
12177 if test $this_target = $target ; then
d7040cdb
SE
12178
12179cat >>confdefs.h <<_ACEOF
ce2cded5 12180#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
12181_ACEOF
12182
ce2cded5
L
12183 fi
12184 ;;
d7040cdb 12185
c7927a3c
NC
12186 rx)
12187 echo ${extra_objects} | grep -s "rx-parse.o"
12188 if test $? -ne 0 ; then
12189 extra_objects="$extra_objects rx-parse.o"
12190 fi
12191 ;;
12192
ce2cded5
L
12193 xstormy16)
12194 using_cgen=yes
12195 ;;
d7040cdb 12196
ce2cded5
L
12197 xc16x)
12198 using_cgen=yes
12199 ;;
d7040cdb 12200
ce2cded5
L
12201 xtensa)
12202 echo ${extra_objects} | grep -s "xtensa-relax.o"
12203 if test $? -ne 0 ; then
12204 extra_objects="$extra_objects xtensa-relax.o"
12205 fi
12206 ;;
d7040cdb 12207
ce2cded5
L
12208 *)
12209 ;;
12210 esac
d7040cdb 12211
ce2cded5
L
12212 if test $using_cgen = yes ; then
12213 case "x${extra_objects}" in
12214 *cgen.o*) ;;
12215 *) extra_objects="$extra_objects cgen.o" ;;
12216 esac
12217 fi
d7040cdb 12218
ce2cded5 12219# See if we really can support this configuration with the emulation code.
d7040cdb 12220
ce2cded5
L
12221 if test $this_target = $target ; then
12222 obj_format=$fmt
12223 te_file=$em
12224 fi
d7040cdb 12225
b11d79f2
TG
12226 case ${te_file} in
12227 vms) extra_objects="$extra_objects te-vms.o" ;;
12228 esac
12229
ce2cded5 12230# From target name and format, produce a list of supported emulations.
d7040cdb 12231
ce2cded5
L
12232 case ${generic_target}-${fmt} in
12233 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12234 mips*-*-linux*-*) case "$endian" in
12235 big) emulation="mipsbelf mipslelf mipself" ;;
12236 *) emulation="mipslelf mipsbelf mipself" ;;
12237 esac ;;
12238 mips-*-lnews*-ecoff) ;;
12239 mips-*-*-ecoff) case "$endian" in
12240 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
12241 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
12242 esac ;;
12243 mips-*-*-elf) case "$endian" in
12244 big) emulation="mipsbelf mipslelf mipself" ;;
12245 *) emulation="mipslelf mipsbelf mipself" ;;
12246 esac ;;
12247 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
12248 # i386-pc-pe-coff != i386-pc-coff.
12249 i386-*-pe-coff) ;;
12250 # Uncommenting the next line will turn on support for i386 AOUT
12251 # for the default linux configuration
12252 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12253 #
12254 i386-*-aout) emulation="i386aout" ;;
12255 i386-*-coff) emulation="i386coff" ;;
12256 i386-*-elf) emulation="i386elf" ;;
d7040cdb 12257
ce2cded5
L
12258 # Always all formats. The first stated emulation becomes the default.
12259 cris-*-*aout*) emulation="crisaout criself" ;;
12260 cris-*-*) emulation="criself crisaout" ;;
12261 esac
13b2be9c 12262
ce2cded5 12263 emulations="$emulations $emulation"
13b2be9c 12264
13b2be9c 12265done
13b2be9c 12266
ce2cded5
L
12267# Turn on all targets if possible
12268if test ${all_targets} = "yes"; then
12269 case ${target_cpu_type} in
12270 i386)
12271 case ${obj_format} in
12272 aout)
12273 emulations="$emulations i386coff i386elf"
12274 ;;
12275 coff)
12276 emulations="$emulations i386aout i386elf"
12277 ;;
12278 elf)
12279 emulations="$emulations i386aout i386coff"
12280 ;;
12281 esac
12282 ;;
12283 x86_64)
12284 case ${obj_format} in
12285 aout)
12286 emulations="$emulations i386coff i386elf"
12287 ;;
12288 coff)
12289 emulations="$emulations i386aout i386elf"
12290 ;;
12291 elf)
12292 emulations="$emulations i386aout i386coff"
12293 ;;
12294 esac
12295 ;;
12296 esac
13b2be9c 12297fi
c8615825 12298
ce2cded5
L
12299# Assign floating point type. Most processors with FP support
12300# IEEE FP. On those that don't support FP at all, usually IEEE
12301# is emulated.
12302case ${target_cpu} in
12303 vax | pdp11 ) atof=vax ;;
12304 *) atof=ieee ;;
12305esac
c8615825 12306
ce2cded5 12307case "${obj_format}" in
81ecdfbb 12308 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 12309esac
13b2be9c 12310
ce2cded5
L
12311# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12312cgen_cpu_prefix=""
12313if test $using_cgen = yes ; then
12314 case ${target_cpu} in
12315 *) cgen_cpu_prefix=${target_cpu} ;;
12316 esac
c8615825 12317
c8615825 12318
81ecdfbb 12319$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 12320
d7040cdb 12321fi
13b2be9c 12322
ce2cded5
L
12323
12324if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
81ecdfbb 12325 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 12326fi
ce2cded5
L
12327
12328if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
81ecdfbb 12329 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
12330fi
12331
ce2cded5
L
12332# Some COFF configurations want these random other flags set.
12333case ${obj_format} in
12334 coff)
12335 case ${target_cpu_type} in
12336 i386)
81ecdfbb 12337$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12338 ;;
12339 m68k)
81ecdfbb 12340$as_echo "#define M68KCOFF 1" >>confdefs.h
ce2cded5
L
12341 ;;
12342 m88k)
81ecdfbb 12343$as_echo "#define M88KCOFF 1" >>confdefs.h
ce2cded5
L
12344 ;;
12345 x86_64)
81ecdfbb 12346$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
12347 ;;
12348 esac
12349 ;;
12350esac
12351
12352# Getting this done right is going to be a bitch. Each configuration specified
12353# with --enable-targets=... should be checked for environment, format, cpu
12354# setting.
12355#
12356# For each configuration, the necessary object file support code must be linked
12357# in. This might be only one, it might be up to four. The necessary emulation
12358# code needs to be provided, too.
12359#
12360# And then there's "--enable-targets=all"....
12361#
12362# For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
12363
12364formats="${obj_format}"
12365emfiles=""
12366EMULATIONS=""
12367_gas_uniq_list="$emulations"
12368_gas_uniq_newlist=""
12369for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12370 case $_gas_uniq_i in
12371 _gas_uniq_dummy) ;;
12372 *) case " $_gas_uniq_newlist " in
12373 *" $_gas_uniq_i "*) ;;
12374 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12375 esac ;;
12376 esac
12377done
12378emulations=$_gas_uniq_newlist
12379
12380for em in . $emulations ; do
12381 case $em in
12382 .) continue ;;
12383 mipsbelf | mipslelf | mipself)
12384 fmt=elf file=mipself ;;
12385 mipsbecoff | mipslecoff | mipsecoff)
12386 fmt=ecoff file=mipsecoff ;;
12387 *coff)
12388 fmt=coff file=$em ;;
12389 *aout)
12390 fmt=aout file=$em ;;
12391 *elf)
12392 fmt=elf file=$em ;;
12393 esac
12394 formats="$formats $fmt"
12395 emfiles="$emfiles e-$file.o"
12396 EMULATIONS="$EMULATIONS &$em,"
12397done
12398_gas_uniq_list="$formats"
12399_gas_uniq_newlist=""
12400for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12401 case $_gas_uniq_i in
12402 _gas_uniq_dummy) ;;
12403 *) case " $_gas_uniq_newlist " in
12404 *" $_gas_uniq_i "*) ;;
12405 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12406 esac ;;
12407 esac
13b2be9c 12408done
ce2cded5 12409formats=$_gas_uniq_newlist
13b2be9c 12410
ce2cded5
L
12411_gas_uniq_list="$emfiles"
12412_gas_uniq_newlist=""
12413for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12414 case $_gas_uniq_i in
12415 _gas_uniq_dummy) ;;
12416 *) case " $_gas_uniq_newlist " in
12417 *" $_gas_uniq_i "*) ;;
12418 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12419 esac ;;
12420 esac
12421done
12422emfiles=$_gas_uniq_newlist
d7040cdb 12423
ce2cded5
L
12424if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12425 for fmt in $formats ; do
12426 case $fmt in
12427 aout)
81ecdfbb 12428$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
12429 ;;
12430 bout)
81ecdfbb 12431$as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
ce2cded5
L
12432 ;;
12433 coff)
81ecdfbb 12434$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
12435 ;;
12436 ecoff)
81ecdfbb 12437$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
12438 ;;
12439 elf)
81ecdfbb 12440$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
12441 ;;
12442 generic)
81ecdfbb 12443$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
12444 ;;
12445 som)
81ecdfbb 12446$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
12447 ;;
12448 esac
12449 extra_objects="$extra_objects obj-$fmt.o"
12450 done
12451 obj_format=multi
13b2be9c 12452fi
ce2cded5
L
12453if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12454 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12455 # e-mips* has more than one emulation per file, e-i386* has just one at the
12456 # moment. If only one emulation is specified, then don't define
12457 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12458 case "${obj_format}${emfiles}" in
12459 multi* | *mips*)
12460 extra_objects="$extra_objects $emfiles"
d7040cdb 12461
81ecdfbb 12462$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
12463 ;;
12464 esac
12465fi
d7040cdb 12466
13b2be9c 12467
ce2cded5
L
12468cat >>confdefs.h <<_ACEOF
12469#define EMULATIONS $EMULATIONS
13b2be9c 12470_ACEOF
d7040cdb 12471
d7040cdb 12472
ce2cded5
L
12473cat >>confdefs.h <<_ACEOF
12474#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 12475_ACEOF
d7040cdb 12476
d7040cdb 12477
ce2cded5 12478reject_dev_configs=yes
252b5132 12479
ce2cded5
L
12480case ${reject_dev_configs}-${dev} in
12481 yes-yes) # Oops.
81ecdfbb 12482 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 12483 ;;
d7040cdb
SE
12484esac
12485
13b2be9c 12486
ce2cded5
L
12487
12488
12489
12490
12491
12492# do we need the opcodes library?
12493case "${need_opcodes}" in
12494yes)
12495 OPCODES_LIB=../opcodes/libopcodes.la
12496 ;;
12497esac
12498
12499
12500
12501
12502cat >>confdefs.h <<_ACEOF
12503#define TARGET_ALIAS "${target_alias}"
d7040cdb 12504_ACEOF
20e95c23 12505
20e95c23 12506
ce2cded5
L
12507cat >>confdefs.h <<_ACEOF
12508#define TARGET_CANONICAL "${target}"
12509_ACEOF
20e95c23 12510
d6d788bd 12511
ce2cded5
L
12512cat >>confdefs.h <<_ACEOF
12513#define TARGET_CPU "${target_cpu}"
12514_ACEOF
20e95c23 12515
ce2cded5
L
12516
12517cat >>confdefs.h <<_ACEOF
12518#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
12519_ACEOF
12520
12521
ce2cded5
L
12522cat >>confdefs.h <<_ACEOF
12523#define TARGET_OS "${target_os}"
12524_ACEOF
12525
0efedc4c 12526
d7040cdb
SE
12527for ac_prog in 'bison -y' byacc
12528do
12529 # Extract the first word of "$ac_prog", so it can be a program name with args.
12530set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532$as_echo_n "checking for $ac_word... " >&6; }
12533if test "${ac_cv_prog_YACC+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
20e95c23 12535else
d7040cdb
SE
12536 if test -n "$YACC"; then
12537 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 12538else
d7040cdb
SE
12539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12540for as_dir in $PATH
12541do
12542 IFS=$as_save_IFS
12543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12544 for ac_exec_ext in '' $ac_executable_extensions; do
12545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12546 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 12548 break 2
20e95c23 12549 fi
d7040cdb 12550done
81ecdfbb
RW
12551 done
12552IFS=$as_save_IFS
20e95c23 12553
d7040cdb
SE
12554fi
12555fi
12556YACC=$ac_cv_prog_YACC
12557if test -n "$YACC"; then
81ecdfbb
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12559$as_echo "$YACC" >&6; }
d7040cdb 12560else
81ecdfbb
RW
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12562$as_echo "no" >&6; }
d7040cdb 12563fi
20e95c23 12564
81ecdfbb 12565
d7040cdb
SE
12566 test -n "$YACC" && break
12567done
12568test -n "$YACC" || YACC="yacc"
20e95c23 12569
d7040cdb
SE
12570for ac_prog in flex lex
12571do
12572 # Extract the first word of "$ac_prog", so it can be a program name with args.
12573set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_prog_LEX+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
d6d788bd 12578else
d7040cdb
SE
12579 if test -n "$LEX"; then
12580 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12581else
12582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $PATH
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12589 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12591 break 2
12592 fi
12593done
81ecdfbb
RW
12594 done
12595IFS=$as_save_IFS
20e95c23 12596
d7040cdb
SE
12597fi
12598fi
12599LEX=$ac_cv_prog_LEX
12600if test -n "$LEX"; then
81ecdfbb
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12602$as_echo "$LEX" >&6; }
20e95c23 12603else
81ecdfbb
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
13b2be9c
DJ
12606fi
12607
81ecdfbb 12608
d7040cdb
SE
12609 test -n "$LEX" && break
12610done
12611test -n "$LEX" || LEX=":"
20e95c23 12612
81ecdfbb
RW
12613if test "x$LEX" != "x:"; then
12614 cat >conftest.l <<_ACEOF
12615%%
12616a { ECHO; }
12617b { REJECT; }
12618c { yymore (); }
12619d { yyless (1); }
12620e { yyless (input () != 0); }
12621f { unput (yytext[0]); }
12622. { BEGIN INITIAL; }
12623%%
12624#ifdef YYTEXT_POINTER
12625extern char *yytext;
d7040cdb 12626#endif
d7040cdb 12627int
81ecdfbb 12628main (void)
d7040cdb 12629{
81ecdfbb 12630 return ! yylex () + ! yywrap ();
d7040cdb
SE
12631}
12632_ACEOF
81ecdfbb
RW
12633{ { ac_try="$LEX conftest.l"
12634case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637esac
12638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12639$as_echo "$ac_try_echo"; } >&5
12640 (eval "$LEX conftest.l") 2>&5
d7040cdb 12641 ac_status=$?
81ecdfbb
RW
12642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12643 test $ac_status = 0; }
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12645$as_echo_n "checking lex output file root... " >&6; }
12646if test "${ac_cv_prog_lex_root+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
d7040cdb 12648else
d5fbea21 12649
81ecdfbb
RW
12650if test -f lex.yy.c; then
12651 ac_cv_prog_lex_root=lex.yy
12652elif test -f lexyy.c; then
12653 ac_cv_prog_lex_root=lexyy
12654else
12655 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 12656fi
d7040cdb 12657fi
81ecdfbb
RW
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12659$as_echo "$ac_cv_prog_lex_root" >&6; }
12660LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 12661
81ecdfbb
RW
12662if test -z "${LEXLIB+set}"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12664$as_echo_n "checking lex library... " >&6; }
12665if test "${ac_cv_lib_lex+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
d7040cdb 12667else
d7040cdb 12668
81ecdfbb
RW
12669 ac_save_LIBS=$LIBS
12670 ac_cv_lib_lex='none needed'
12671 for ac_lib in '' -lfl -ll; do
12672 LIBS="$ac_lib $ac_save_LIBS"
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h. */
12675`cat $LEX_OUTPUT_ROOT.c`
12676_ACEOF
12677if ac_fn_c_try_link "$LINENO"; then :
12678 ac_cv_lib_lex=$ac_lib
d7040cdb 12679fi
81ecdfbb
RW
12680rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12682 test "$ac_cv_lib_lex" != 'none needed' && break
12683 done
12684 LIBS=$ac_save_LIBS
d7040cdb
SE
12685
12686fi
81ecdfbb
RW
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12688$as_echo "$ac_cv_lib_lex" >&6; }
12689 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
12690fi
12691
13b2be9c 12692
81ecdfbb
RW
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12694$as_echo_n "checking whether yytext is a pointer... " >&6; }
12695if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
d7040cdb
SE
12697else
12698 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 12699# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
12700# not all implementations provide the %pointer and %array declarations.
12701ac_cv_prog_lex_yytext_pointer=no
d7040cdb 12702ac_save_LIBS=$LIBS
81ecdfbb
RW
12703LIBS="$LEXLIB $ac_save_LIBS"
12704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h. */
12706#define YYTEXT_POINTER 1
d7040cdb 12707`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 12708_ACEOF
81ecdfbb 12709if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 12710 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 12711fi
81ecdfbb
RW
12712rm -f core conftest.err conftest.$ac_objext \
12713 conftest$ac_exeext conftest.$ac_ext
d7040cdb 12714LIBS=$ac_save_LIBS
252b5132 12715
9b2b7d69 12716fi
81ecdfbb
RW
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12718$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 12719if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 12720
81ecdfbb 12721$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 12722
d6d788bd 12723fi
81ecdfbb 12724rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb 12725
c8615825 12726fi
d7040cdb
SE
12727if test "$LEX" = :; then
12728 LEX=${am_missing_run}flex
12729fi
12730
bd32c6bd 12731ALL_LINGUAS="fr tr es rw id ru"
d7040cdb
SE
12732# If we haven't got the data from the intl directory,
12733# assume NLS is disabled.
12734USE_NLS=no
12735LIBINTL=
12736LIBINTL_DEP=
12737INCINTL=
12738XGETTEXT=
12739GMSGFMT=
12740POSUB=
12741
12742if test -f ../intl/config.intl; then
12743 . ../intl/config.intl
12744fi
81ecdfbb
RW
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12746$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12747if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
d7040cdb 12750else
81ecdfbb
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12752$as_echo "yes" >&6; }
d7040cdb 12753
81ecdfbb 12754$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12755
12756
81ecdfbb
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12758$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12759 # Look for .po and .gmo files in the source directory.
12760 CATALOGS=
12761 XLINGUAS=
12762 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12763 # If there aren't any .gmo files the shell will give us the
12764 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12765 # weeded out.
12766 case "$cat" in *\**)
12767 continue;;
12768 esac
12769 # The quadruple backslash is collapsed to a double backslash
12770 # by the backticks, then collapsed again by the double quotes,
12771 # leaving us with one backslash in the sed expression (right
12772 # before the dot that mustn't act as a wildcard).
12773 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12774 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12775 # The user is allowed to set LINGUAS to a list of languages to
12776 # install catalogs for. If it's empty that means "all of them."
12777 if test "x$LINGUAS" = x; then
12778 CATALOGS="$CATALOGS $cat"
12779 XLINGUAS="$XLINGUAS $lang"
12780 else
12781 case "$LINGUAS" in *$lang*)
12782 CATALOGS="$CATALOGS $cat"
12783 XLINGUAS="$XLINGUAS $lang"
12784 ;;
12785 esac
12786 fi
12787 done
12788 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12790$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12791
12792
12793 DATADIRNAME=share
12794
12795 INSTOBJEXT=.mo
12796
12797 GENCAT=gencat
12798
12799 CATOBJEXT=.gmo
12800
12801fi
12802
12803 MKINSTALLDIRS=
12804 if test -n "$ac_aux_dir"; then
12805 case "$ac_aux_dir" in
12806 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12807 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12808 esac
12809 fi
12810 if test -z "$MKINSTALLDIRS"; then
12811 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12812 fi
12813
12814
12815
81ecdfbb
RW
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12817$as_echo_n "checking whether NLS is requested... " >&6; }
12818 # Check whether --enable-nls was given.
12819if test "${enable_nls+set}" = set; then :
12820 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12821else
12822 USE_NLS=yes
81ecdfbb
RW
12823fi
12824
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12826$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12827
12828
12829
12830
12831
12832
12833# Prepare PATH_SEPARATOR.
12834# The user is always right.
12835if test "${PATH_SEPARATOR+set}" != set; then
12836 echo "#! /bin/sh" >conf$$.sh
12837 echo "exit 0" >>conf$$.sh
12838 chmod +x conf$$.sh
12839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12840 PATH_SEPARATOR=';'
13b2be9c 12841 else
d7040cdb 12842 PATH_SEPARATOR=:
13b2be9c 12843 fi
d7040cdb 12844 rm -f conf$$.sh
252b5132 12845fi
13b2be9c 12846
d7040cdb
SE
12847# Find out how to test for executable files. Don't use a zero-byte file,
12848# as systems may use methods other than mode bits to determine executability.
12849cat >conf$$.file <<_ASEOF
12850#! /bin/sh
12851exit 0
12852_ASEOF
12853chmod +x conf$$.file
12854if test -x conf$$.file >/dev/null 2>&1; then
12855 ac_executable_p="test -x"
12856else
12857 ac_executable_p="test -f"
13b2be9c 12858fi
d7040cdb 12859rm -f conf$$.file
13b2be9c 12860
d7040cdb
SE
12861# Extract the first word of "msgfmt", so it can be a program name with args.
12862set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12864$as_echo_n "checking for $ac_word... " >&6; }
12865if test "${ac_cv_path_MSGFMT+set}" = set; then :
12866 $as_echo_n "(cached) " >&6
252b5132 12867else
d7040cdb
SE
12868 case "$MSGFMT" in
12869 [\\/]* | ?:[\\/]*)
12870 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12871 ;;
12872 *)
12873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12874 for ac_dir in $PATH; do
12875 IFS="$ac_save_IFS"
12876 test -z "$ac_dir" && ac_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
12878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12879 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12880 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12881 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12882 break 2
12883 fi
12884 fi
12885 done
12886 done
12887 IFS="$ac_save_IFS"
12888 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12889 ;;
12890esac
252b5132 12891fi
d7040cdb
SE
12892MSGFMT="$ac_cv_path_MSGFMT"
12893if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12895$as_echo "$MSGFMT" >&6; }
252b5132 12896else
81ecdfbb
RW
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
252b5132 12899fi
252b5132 12900
d7040cdb
SE
12901 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12902set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904$as_echo_n "checking for $ac_word... " >&6; }
12905if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12906 $as_echo_n "(cached) " >&6
13b2be9c 12907else
d7040cdb
SE
12908 case $GMSGFMT in
12909 [\\/]* | ?:[\\/]*)
12910 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12911 ;;
12912 *)
12913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12920 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12922 break 2
12923 fi
12924done
81ecdfbb
RW
12925 done
12926IFS=$as_save_IFS
252b5132 12927
d7040cdb
SE
12928 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12929 ;;
12930esac
12931fi
12932GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12933if test -n "$GMSGFMT"; then
81ecdfbb
RW
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12935$as_echo "$GMSGFMT" >&6; }
ac48eca1 12936else
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
6840198f 12939fi
6840198f 12940
13b2be9c 12941
20e95c23 12942
81ecdfbb 12943
d7040cdb
SE
12944# Prepare PATH_SEPARATOR.
12945# The user is always right.
12946if test "${PATH_SEPARATOR+set}" != set; then
12947 echo "#! /bin/sh" >conf$$.sh
12948 echo "exit 0" >>conf$$.sh
12949 chmod +x conf$$.sh
12950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12951 PATH_SEPARATOR=';'
12952 else
12953 PATH_SEPARATOR=:
12954 fi
12955 rm -f conf$$.sh
12956fi
20e95c23 12957
d7040cdb
SE
12958# Find out how to test for executable files. Don't use a zero-byte file,
12959# as systems may use methods other than mode bits to determine executability.
12960cat >conf$$.file <<_ASEOF
12961#! /bin/sh
12962exit 0
12963_ASEOF
12964chmod +x conf$$.file
12965if test -x conf$$.file >/dev/null 2>&1; then
12966 ac_executable_p="test -x"
13b2be9c 12967else
d7040cdb 12968 ac_executable_p="test -f"
13b2be9c 12969fi
d7040cdb 12970rm -f conf$$.file
20e95c23 12971
d7040cdb
SE
12972# Extract the first word of "xgettext", so it can be a program name with args.
12973set dummy xgettext; ac_word=$2
81ecdfbb
RW
12974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12975$as_echo_n "checking for $ac_word... " >&6; }
12976if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
252b5132 12978else
d7040cdb
SE
12979 case "$XGETTEXT" in
12980 [\\/]* | ?:[\\/]*)
12981 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12982 ;;
12983 *)
12984 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12985 for ac_dir in $PATH; do
12986 IFS="$ac_save_IFS"
12987 test -z "$ac_dir" && ac_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12990 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12991 (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
12992 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12993 break 2
12994 fi
12995 fi
12996 done
12997 done
12998 IFS="$ac_save_IFS"
12999 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13000 ;;
13001esac
13b2be9c 13002fi
d7040cdb
SE
13003XGETTEXT="$ac_cv_path_XGETTEXT"
13004if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13006$as_echo "$XGETTEXT" >&6; }
d7040cdb 13007else
81ecdfbb
RW
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13009$as_echo "no" >&6; }
13b2be9c 13010fi
13b2be9c 13011
d7040cdb 13012 rm -f messages.po
20e95c23 13013
13b2be9c 13014
d7040cdb
SE
13015# Prepare PATH_SEPARATOR.
13016# The user is always right.
13017if test "${PATH_SEPARATOR+set}" != set; then
13018 echo "#! /bin/sh" >conf$$.sh
13019 echo "exit 0" >>conf$$.sh
13020 chmod +x conf$$.sh
13021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13022 PATH_SEPARATOR=';'
13023 else
13024 PATH_SEPARATOR=:
13025 fi
13026 rm -f conf$$.sh
252b5132 13027fi
20e95c23 13028
d7040cdb
SE
13029# Find out how to test for executable files. Don't use a zero-byte file,
13030# as systems may use methods other than mode bits to determine executability.
13031cat >conf$$.file <<_ASEOF
13032#! /bin/sh
13033exit 0
13034_ASEOF
13035chmod +x conf$$.file
13036if test -x conf$$.file >/dev/null 2>&1; then
13037 ac_executable_p="test -x"
252b5132 13038else
d7040cdb
SE
13039 ac_executable_p="test -f"
13040fi
13041rm -f conf$$.file
20e95c23 13042
d7040cdb
SE
13043# Extract the first word of "msgmerge", so it can be a program name with args.
13044set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13046$as_echo_n "checking for $ac_word... " >&6; }
13047if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13048 $as_echo_n "(cached) " >&6
20e95c23 13049else
d7040cdb
SE
13050 case "$MSGMERGE" in
13051 [\\/]* | ?:[\\/]*)
13052 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13053 ;;
13054 *)
13055 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13056 for ac_dir in $PATH; do
13057 IFS="$ac_save_IFS"
13058 test -z "$ac_dir" && ac_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13061 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13062 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13063 break 2
13064 fi
13065 fi
13066 done
13067 done
13068 IFS="$ac_save_IFS"
13069 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13070 ;;
13071esac
20e95c23 13072fi
d7040cdb
SE
13073MSGMERGE="$ac_cv_path_MSGMERGE"
13074if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13076$as_echo "$MSGMERGE" >&6; }
d7040cdb 13077else
81ecdfbb
RW
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079$as_echo "no" >&6; }
20e95c23 13080fi
252b5132 13081
252b5132 13082
d7040cdb
SE
13083 if test "$GMSGFMT" != ":"; then
13084 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13085 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13086 : ;
13087 else
13088 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13090$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
13091 GMSGFMT=":"
13092 fi
13093 fi
13b2be9c 13094
d7040cdb
SE
13095 if test "$XGETTEXT" != ":"; then
13096 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13097 (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
13098 : ;
13099 else
81ecdfbb
RW
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13101$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
13102 XGETTEXT=":"
13103 fi
13104 rm -f messages.po
13105 fi
252b5132 13106
81ecdfbb 13107 ac_config_commands="$ac_config_commands default-1"
13b2be9c 13108
13b2be9c 13109
81ecdfbb
RW
13110
13111
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13113$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13114 # Check whether --enable-maintainer-mode was given.
13115if test "${enable_maintainer_mode+set}" = set; then :
13116 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 13117else
81ecdfbb 13118 USE_MAINTAINER_MODE=no
13b2be9c 13119fi
13b2be9c 13120
81ecdfbb
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13122$as_echo "$USE_MAINTAINER_MODE" >&6; }
13123 if test $USE_MAINTAINER_MODE = yes; then
13124 MAINTAINER_MODE_TRUE=
13125 MAINTAINER_MODE_FALSE='#'
13126else
13127 MAINTAINER_MODE_TRUE='#'
13128 MAINTAINER_MODE_FALSE=
13b2be9c 13129fi
13b2be9c 13130
81ecdfbb
RW
13131 MAINT=$MAINTAINER_MODE_TRUE
13132
13133
13134 if false; then
13135 GENINSRC_NEVER_TRUE=
13136 GENINSRC_NEVER_FALSE='#'
13b2be9c 13137else
81ecdfbb
RW
13138 GENINSRC_NEVER_TRUE='#'
13139 GENINSRC_NEVER_FALSE=
252b5132 13140fi
13b2be9c 13141
81ecdfbb
RW
13142
13143
b11d79f2 13144for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h
81ecdfbb
RW
13145do :
13146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13147ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13148eval as_val=\$$as_ac_Header
13149 if test "x$as_val" = x""yes; then :
13b2be9c 13150 cat >>confdefs.h <<_ACEOF
81ecdfbb 13151#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
13152_ACEOF
13153
252b5132 13154fi
13b2be9c 13155
252b5132
RH
13156done
13157
d6d788bd 13158
252b5132
RH
13159# Put this here so that autoconf's "cross-compiling" message doesn't confuse
13160# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13162$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
13163if test "${host}" = "${target}"; then
13164 cross_gas=no
13165else
13166 cross_gas=yes
13b2be9c 13167
81ecdfbb 13168$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
13169
13170fi
81ecdfbb
RW
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13172$as_echo "$cross_gas" >&6; }
252b5132
RH
13173
13174# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13175# for constant arguments. Useless!
81ecdfbb
RW
13176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13177$as_echo_n "checking for working alloca.h... " >&6; }
13178if test "${ac_cv_working_alloca_h+set}" = set; then :
13179 $as_echo_n "(cached) " >&6
13b2be9c 13180else
81ecdfbb 13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13182/* end confdefs.h. */
252b5132 13183#include <alloca.h>
13b2be9c
DJ
13184int
13185main ()
13186{
13187char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 13188 if (p) return 0;
13b2be9c
DJ
13189 ;
13190 return 0;
13191}
13192_ACEOF
81ecdfbb 13193if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13194 ac_cv_working_alloca_h=yes
13195else
81ecdfbb 13196 ac_cv_working_alloca_h=no
13b2be9c 13197fi
81ecdfbb
RW
13198rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13200fi
81ecdfbb
RW
13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13202$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
13203if test $ac_cv_working_alloca_h = yes; then
13204
81ecdfbb 13205$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
13206
13207fi
13208
81ecdfbb
RW
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13210$as_echo_n "checking for alloca... " >&6; }
13211if test "${ac_cv_func_alloca_works+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
252b5132 13213else
81ecdfbb 13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13215/* end confdefs.h. */
252b5132
RH
13216#ifdef __GNUC__
13217# define alloca __builtin_alloca
13218#else
13219# ifdef _MSC_VER
13220# include <malloc.h>
13221# define alloca _alloca
13222# else
81ecdfbb 13223# ifdef HAVE_ALLOCA_H
252b5132
RH
13224# include <alloca.h>
13225# else
13226# ifdef _AIX
13227 #pragma alloca
13228# else
13229# ifndef alloca /* predefined by HP cc +Olibcalls */
13230char *alloca ();
13231# endif
13232# endif
13233# endif
13234# endif
13235#endif
13236
13b2be9c
DJ
13237int
13238main ()
13239{
13240char *p = (char *) alloca (1);
81ecdfbb 13241 if (p) return 0;
13b2be9c
DJ
13242 ;
13243 return 0;
13244}
13245_ACEOF
81ecdfbb 13246if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13247 ac_cv_func_alloca_works=yes
13248else
81ecdfbb 13249 ac_cv_func_alloca_works=no
252b5132 13250fi
81ecdfbb
RW
13251rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
252b5132 13253fi
81ecdfbb
RW
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13255$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 13256
252b5132 13257if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 13258
81ecdfbb 13259$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 13260
13b2be9c 13261else
c8615825 13262 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
13263# that cause trouble. Some versions do not even contain alloca or
13264# contain a buggy version. If you still want to use their alloca,
13265# use ar to extract alloca.o from them instead of compiling alloca.c.
13266
81ecdfbb 13267ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 13268
81ecdfbb 13269$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 13270
d6d788bd 13271
81ecdfbb
RW
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13273$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13274if test "${ac_cv_os_cray+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
252b5132 13276else
81ecdfbb 13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13278/* end confdefs.h. */
81ecdfbb 13279#if defined CRAY && ! defined CRAY2
252b5132
RH
13280webecray
13281#else
13282wenotbecray
13283#endif
13284
13b2be9c 13285_ACEOF
252b5132 13286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 13287 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
13288 ac_cv_os_cray=yes
13289else
252b5132
RH
13290 ac_cv_os_cray=no
13291fi
13292rm -f conftest*
13293
13294fi
81ecdfbb
RW
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13296$as_echo "$ac_cv_os_cray" >&6; }
252b5132 13297if test $ac_cv_os_cray = yes; then
13b2be9c 13298 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
13299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13301eval as_val=\$$as_ac_var
13302 if test "x$as_val" = x""yes; then :
13b2be9c
DJ
13303
13304cat >>confdefs.h <<_ACEOF
252b5132 13305#define CRAY_STACKSEG_END $ac_func
13b2be9c 13306_ACEOF
252b5132 13307
13b2be9c 13308 break
252b5132
RH
13309fi
13310
13b2be9c 13311 done
252b5132
RH
13312fi
13313
81ecdfbb
RW
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13315$as_echo_n "checking stack direction for C alloca... " >&6; }
13316if test "${ac_cv_c_stack_direction+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
252b5132 13318else
81ecdfbb 13319 if test "$cross_compiling" = yes; then :
252b5132
RH
13320 ac_cv_c_stack_direction=0
13321else
81ecdfbb 13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13323/* end confdefs.h. */
81ecdfbb 13324$ac_includes_default
13b2be9c 13325int
252b5132
RH
13326find_stack_direction ()
13327{
13328 static char *addr = 0;
13329 auto char dummy;
13330 if (addr == 0)
13331 {
13332 addr = &dummy;
13333 return find_stack_direction ();
13334 }
13335 else
13336 return (&dummy > addr) ? 1 : -1;
13337}
13b2be9c
DJ
13338
13339int
252b5132
RH
13340main ()
13341{
81ecdfbb 13342 return find_stack_direction () < 0;
252b5132 13343}
13b2be9c 13344_ACEOF
81ecdfbb 13345if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
13346 ac_cv_c_stack_direction=1
13347else
81ecdfbb 13348 ac_cv_c_stack_direction=-1
252b5132 13349fi
81ecdfbb
RW
13350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13351 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 13352fi
252b5132 13353
81ecdfbb
RW
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13356$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 13357cat >>confdefs.h <<_ACEOF
252b5132 13358#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
13359_ACEOF
13360
252b5132
RH
13361
13362fi
13363
81ecdfbb
RW
13364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13365$as_echo_n "checking for inline... " >&6; }
13366if test "${ac_cv_c_inline+set}" = set; then :
13367 $as_echo_n "(cached) " >&6
252b5132
RH
13368else
13369 ac_cv_c_inline=no
13370for ac_kw in inline __inline__ __inline; do
81ecdfbb 13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13372/* end confdefs.h. */
13373#ifndef __cplusplus
13374typedef int foo_t;
13375static $ac_kw foo_t static_foo () {return 0; }
13376$ac_kw foo_t foo () {return 0; }
13377#endif
252b5132 13378
13b2be9c 13379_ACEOF
81ecdfbb
RW
13380if ac_fn_c_try_compile "$LINENO"; then :
13381 ac_cv_c_inline=$ac_kw
252b5132 13382fi
81ecdfbb
RW
13383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384 test "$ac_cv_c_inline" != no && break
252b5132
RH
13385done
13386
13387fi
81ecdfbb
RW
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13389$as_echo "$ac_cv_c_inline" >&6; }
ab509236 13390
13b2be9c 13391case $ac_cv_c_inline in
252b5132 13392 inline | yes) ;;
ab509236
L
13393 *)
13394 case $ac_cv_c_inline in
13395 no) ac_val=;;
13396 *) ac_val=$ac_cv_c_inline;;
13397 esac
13398 cat >>confdefs.h <<_ACEOF
13399#ifndef __cplusplus
13400#define inline $ac_val
13401#endif
13b2be9c 13402_ACEOF
ab509236 13403 ;;
252b5132
RH
13404esac
13405
6840198f 13406
d6d788bd 13407# VMS doesn't have unlink.
252b5132 13408for ac_func in unlink remove
81ecdfbb
RW
13409do :
13410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13411ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13412eval as_val=\$$as_ac_var
13413 if test "x$as_val" = x""yes; then :
13b2be9c 13414 cat >>confdefs.h <<_ACEOF
81ecdfbb 13415#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 13416_ACEOF
252b5132 13417 break
252b5132
RH
13418fi
13419done
13420
6840198f 13421
d6d788bd 13422# Some systems don't have sbrk().
252b5132 13423for ac_func in sbrk
81ecdfbb
RW
13424do :
13425 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
13426if test "x$ac_cv_func_sbrk" = x""yes; then :
13b2be9c 13427 cat >>confdefs.h <<_ACEOF
81ecdfbb 13428#define HAVE_SBRK 1
13b2be9c 13429_ACEOF
252b5132 13430
252b5132
RH
13431fi
13432done
13433
d6d788bd 13434
39bec121
TW
13435# do we need the math library?
13436case "${need_libm}" in
13b2be9c 13437yes)
39bec121 13438 LIBM=
f9c19112 13439case $host in
3725885a 13440*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 13441 # These system don't have libm, or don't need it
39bec121
TW
13442 ;;
13443*-ncr-sysv4.3*)
81ecdfbb
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13445$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13446if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13447 $as_echo_n "(cached) " >&6
39bec121 13448else
13b2be9c 13449 ac_check_lib_save_LIBS=$LIBS
39bec121 13450LIBS="-lmw $LIBS"
81ecdfbb 13451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13452/* end confdefs.h. */
13453
81ecdfbb
RW
13454/* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
13457#ifdef __cplusplus
13458extern "C"
13459#endif
13b2be9c
DJ
13460char _mwvalidcheckl ();
13461int
13462main ()
13463{
81ecdfbb 13464return _mwvalidcheckl ();
13b2be9c
DJ
13465 ;
13466 return 0;
13467}
13468_ACEOF
81ecdfbb 13469if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13470 ac_cv_lib_mw__mwvalidcheckl=yes
13471else
81ecdfbb 13472 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 13473fi
81ecdfbb
RW
13474rm -f core conftest.err conftest.$ac_objext \
13475 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13476LIBS=$ac_check_lib_save_LIBS
13477fi
81ecdfbb
RW
13478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13479$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13480if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
39bec121 13481 LIBM="-lmw"
39bec121
TW
13482fi
13483
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13485$as_echo_n "checking for cos in -lm... " >&6; }
13486if test "${ac_cv_lib_m_cos+set}" = set; then :
13487 $as_echo_n "(cached) " >&6
39bec121 13488else
13b2be9c 13489 ac_check_lib_save_LIBS=$LIBS
39bec121 13490LIBS="-lm $LIBS"
81ecdfbb 13491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13492/* end confdefs.h. */
39bec121 13493
81ecdfbb
RW
13494/* Override any GCC internal prototype to avoid an error.
13495 Use char because int might match the return type of a GCC
13496 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13497#ifdef __cplusplus
13498extern "C"
13499#endif
d7040cdb 13500char cos ();
13b2be9c
DJ
13501int
13502main ()
13503{
81ecdfbb 13504return cos ();
13b2be9c
DJ
13505 ;
13506 return 0;
13507}
13508_ACEOF
81ecdfbb 13509if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13510 ac_cv_lib_m_cos=yes
13b2be9c 13511else
81ecdfbb 13512 ac_cv_lib_m_cos=no
13b2be9c 13513fi
81ecdfbb
RW
13514rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13516LIBS=$ac_check_lib_save_LIBS
13517fi
81ecdfbb
RW
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13519$as_echo "$ac_cv_lib_m_cos" >&6; }
13520if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13521 LIBM="$LIBM -lm"
39bec121
TW
13522fi
13523
13524 ;;
13525*)
81ecdfbb
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13527$as_echo_n "checking for cos in -lm... " >&6; }
13528if test "${ac_cv_lib_m_cos+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
39bec121 13530else
13b2be9c 13531 ac_check_lib_save_LIBS=$LIBS
39bec121 13532LIBS="-lm $LIBS"
81ecdfbb 13533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13534/* end confdefs.h. */
39bec121 13535
81ecdfbb
RW
13536/* Override any GCC internal prototype to avoid an error.
13537 Use char because int might match the return type of a GCC
13538 builtin and then its argument prototype would still apply. */
d7040cdb
SE
13539#ifdef __cplusplus
13540extern "C"
13541#endif
d7040cdb 13542char cos ();
13b2be9c
DJ
13543int
13544main ()
13545{
81ecdfbb 13546return cos ();
13b2be9c
DJ
13547 ;
13548 return 0;
13549}
13550_ACEOF
81ecdfbb 13551if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13552 ac_cv_lib_m_cos=yes
13b2be9c 13553else
81ecdfbb 13554 ac_cv_lib_m_cos=no
13b2be9c 13555fi
81ecdfbb
RW
13556rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
13558LIBS=$ac_check_lib_save_LIBS
13559fi
81ecdfbb
RW
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13561$as_echo "$ac_cv_lib_m_cos" >&6; }
13562if test "x$ac_cv_lib_m_cos" = x""yes; then :
39bec121 13563 LIBM="-lm"
39bec121
TW
13564fi
13565
13566 ;;
13567esac
13568
13b2be9c 13569
d7040cdb 13570
39bec121
TW
13571 ;;
13572esac
13573
252b5132
RH
13574# Some non-ANSI preprocessors botch requoting inside strings. That's bad
13575# enough, but on some of those systems, the assert macro relies on requoting
13576# working properly!
81ecdfbb
RW
13577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13578$as_echo_n "checking for working assert macro... " >&6; }
13579if test "${gas_cv_assert_ok+set}" = set; then :
13580 $as_echo_n "(cached) " >&6
13b2be9c 13581else
81ecdfbb 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13583/* end confdefs.h. */
252b5132
RH
13584#include <assert.h>
13585#include <stdio.h>
13b2be9c
DJ
13586int
13587main ()
13588{
252b5132
RH
13589
13590/* check for requoting problems */
13591static int a, b, c, d;
13592static char *s;
13593assert (!strcmp(s, "foo bar baz quux"));
13594/* check for newline handling */
13595assert (a == b
13596 || c == d);
13597
13b2be9c
DJ
13598 ;
13599 return 0;
81ecdfbb
RW
13600}
13601_ACEOF
13602if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
13603 gas_cv_assert_ok=yes
13604else
81ecdfbb 13605 gas_cv_assert_ok=no
252b5132 13606fi
81ecdfbb
RW
13607rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
252b5132 13609fi
81ecdfbb
RW
13610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
13611$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 13612test $gas_cv_assert_ok = yes ||
81ecdfbb 13613$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 13614
d6d788bd
L
13615
13616
252b5132
RH
13617# On some systems, the system header files may not declare malloc, realloc,
13618# and free. There are places where gas needs these functions to have been
13619# declared -- such as when taking their addresses.
13620gas_test_headers="
13621#ifdef HAVE_MEMORY_H
13622#include <memory.h>
13623#endif
13624#ifdef HAVE_STRING_H
13625#include <string.h>
13626#else
13627#ifdef HAVE_STRINGS_H
13628#include <strings.h>
13629#endif
13630#endif
13631#ifdef HAVE_STDLIB_H
13632#include <stdlib.h>
13633#endif
13634#ifdef HAVE_UNISTD_H
13635#include <unistd.h>
13636#endif
13637"
13638
e8a38df5
AL
13639# Does errno.h declare errno, or do we have to add a separate declaration
13640# for it?
13641
81ecdfbb
RW
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
13643$as_echo_n "checking whether declaration is required for errno... " >&6; }
13644if test "${gas_cv_decl_needed_errno+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
e8a38df5 13646else
81ecdfbb 13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
13648/* end confdefs.h. */
13649
13650#ifdef HAVE_ERRNO_H
13651#include <errno.h>
13652#endif
13653
13654int
13655main ()
13656{
13657
13658typedef int f;
13659f x;
13660x = (f) errno;
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
81ecdfbb 13666if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
13667 gas_cv_decl_needed_errno=no
13668else
81ecdfbb 13669 gas_cv_decl_needed_errno=yes
e8a38df5 13670fi
81ecdfbb
RW
13671rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
e8a38df5 13673fi
81ecdfbb
RW
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
13675$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
13676if test $gas_cv_decl_needed_errno = yes; then
13677
81ecdfbb 13678$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
13679
13680fi
13681
13682
81ecdfbb
RW
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13684$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13685if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
13686 $as_echo_n "(cached) " >&6
56f36663 13687else
81ecdfbb 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
13689/* end confdefs.h. */
13690#include <unistd.h>
13691int
13692main ()
13693{
13694extern int getopt (int, char *const*, const char *);
13695 ;
13696 return 0;
13697}
13698_ACEOF
81ecdfbb 13699if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
13700 gas_cv_decl_getopt_unistd_h=yes
13701else
81ecdfbb 13702 gas_cv_decl_getopt_unistd_h=no
56f36663 13703fi
81ecdfbb 13704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
13705fi
13706
81ecdfbb
RW
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
13708$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
13709if test $gas_cv_decl_getopt_unistd_h = yes; then
13710
81ecdfbb 13711$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
13712
13713fi
13714
e8a38df5 13715
81ecdfbb
RW
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
13717$as_echo_n "checking whether declaration is required for environ... " >&6; }
13718if test "${gas_cv_decl_needed_environ+set}" = set; then :
13719 $as_echo_n "(cached) " >&6
13b2be9c 13720else
81ecdfbb 13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13722/* end confdefs.h. */
252b5132 13723$gas_test_headers
13b2be9c
DJ
13724int
13725main ()
13726{
252b5132 13727
e8a38df5 13728typedef char **f;
252b5132 13729f x;
e8a38df5 13730x = (f) environ;
252b5132 13731
13b2be9c
DJ
13732 ;
13733 return 0;
13734}
13735_ACEOF
81ecdfbb 13736if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13737 gas_cv_decl_needed_environ=no
252b5132 13738else
81ecdfbb 13739 gas_cv_decl_needed_environ=yes
252b5132 13740fi
81ecdfbb
RW
13741rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
252b5132 13743fi
81ecdfbb
RW
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
13745$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 13746if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 13747
81ecdfbb 13748$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
13749
13750fi
13751
13752
81ecdfbb
RW
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
13754$as_echo_n "checking whether declaration is required for ffs... " >&6; }
13755if test "${gas_cv_decl_needed_ffs+set}" = set; then :
13756 $as_echo_n "(cached) " >&6
13b2be9c 13757else
81ecdfbb 13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13759/* end confdefs.h. */
13760$gas_test_headers
13761int
13762main ()
13763{
13764
e8a38df5 13765typedef int (*f)(int);
13b2be9c 13766f x;
e8a38df5 13767x = (f) ffs;
13b2be9c
DJ
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
81ecdfbb 13773if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13774 gas_cv_decl_needed_ffs=no
13b2be9c 13775else
81ecdfbb 13776 gas_cv_decl_needed_ffs=yes
13b2be9c 13777fi
81ecdfbb
RW
13778rm -f core conftest.err conftest.$ac_objext \
13779 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13780fi
81ecdfbb
RW
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
13782$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 13783if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 13784
81ecdfbb 13785$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
13786
13787fi
13788
13789
81ecdfbb
RW
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
13791$as_echo_n "checking whether declaration is required for free... " >&6; }
13792if test "${gas_cv_decl_needed_free+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13b2be9c 13794else
81ecdfbb 13795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13796/* end confdefs.h. */
13797$gas_test_headers
13798int
13799main ()
13800{
13801
13802typedef void (*f)();
13803f x;
13804x = (f) free;
13805
13806 ;
13807 return 0;
13808}
13809_ACEOF
81ecdfbb 13810if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
13811 gas_cv_decl_needed_free=no
13812else
81ecdfbb 13813 gas_cv_decl_needed_free=yes
13b2be9c 13814fi
81ecdfbb
RW
13815rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13817fi
81ecdfbb
RW
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
13819$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
13820if test $gas_cv_decl_needed_free = yes; then
13821
81ecdfbb 13822$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
13823
13824fi
13825
13826
81ecdfbb
RW
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
13828$as_echo_n "checking whether declaration is required for malloc... " >&6; }
13829if test "${gas_cv_decl_needed_malloc+set}" = set; then :
13830 $as_echo_n "(cached) " >&6
13b2be9c 13831else
81ecdfbb 13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13833/* end confdefs.h. */
13834$gas_test_headers
13835int
13836main ()
13837{
13838
13839typedef char *(*f)();
13840f x;
e8a38df5 13841x = (f) malloc;
13b2be9c
DJ
13842
13843 ;
13844 return 0;
13845}
13846_ACEOF
81ecdfbb 13847if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13848 gas_cv_decl_needed_malloc=no
13b2be9c 13849else
81ecdfbb 13850 gas_cv_decl_needed_malloc=yes
13b2be9c 13851fi
81ecdfbb
RW
13852rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13854fi
81ecdfbb
RW
13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
13856$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 13857if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 13858
81ecdfbb 13859$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
13860
13861fi
13862
13863
81ecdfbb
RW
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
13865$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
13866if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
13867 $as_echo_n "(cached) " >&6
13b2be9c 13868else
81ecdfbb 13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
13870/* end confdefs.h. */
13871$gas_test_headers
13872int
13873main ()
13874{
13875
e8a38df5 13876typedef char *(*f)();
13b2be9c 13877f x;
e8a38df5 13878x = (f) sbrk;
13b2be9c
DJ
13879
13880 ;
13881 return 0;
13882}
13883_ACEOF
81ecdfbb 13884if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13885 gas_cv_decl_needed_sbrk=no
13b2be9c 13886else
81ecdfbb 13887 gas_cv_decl_needed_sbrk=yes
13b2be9c 13888fi
81ecdfbb
RW
13889rm -f core conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13891fi
81ecdfbb
RW
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
13893$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 13894if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 13895
81ecdfbb 13896$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
13897
13898fi
13899
13900
81ecdfbb
RW
13901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
13902$as_echo_n "checking whether declaration is required for strstr... " >&6; }
13903if test "${gas_cv_decl_needed_strstr+set}" = set; then :
13904 $as_echo_n "(cached) " >&6
13b2be9c 13905else
81ecdfbb 13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 13907/* end confdefs.h. */
e8a38df5 13908$gas_test_headers
13b2be9c
DJ
13909int
13910main ()
13911{
13912
e8a38df5 13913typedef char *(*f)();
13b2be9c 13914f x;
e8a38df5 13915x = (f) strstr;
13b2be9c
DJ
13916
13917 ;
13918 return 0;
13919}
13920_ACEOF
81ecdfbb 13921if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 13922 gas_cv_decl_needed_strstr=no
13b2be9c 13923else
81ecdfbb 13924 gas_cv_decl_needed_strstr=yes
13b2be9c 13925fi
81ecdfbb
RW
13926rm -f core conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13b2be9c 13928fi
81ecdfbb
RW
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
13930$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 13931if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 13932
81ecdfbb 13933$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
13934
13935fi
13936
13937
0175442d
L
13938ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
13939if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
13940 ac_have_decl=1
13941else
13942 ac_have_decl=0
13943fi
13944
13945cat >>confdefs.h <<_ACEOF
13946#define HAVE_DECL_MEMPCPY $ac_have_decl
13947_ACEOF
13948
81ecdfbb
RW
13949ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13950if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13951 ac_have_decl=1
6d74f28b 13952else
81ecdfbb 13953 ac_have_decl=0
6d74f28b 13954fi
6d74f28b
EB
13955
13956cat >>confdefs.h <<_ACEOF
81ecdfbb 13957#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b
EB
13958_ACEOF
13959
13960
13b2be9c 13961
c973bc5c
NC
13962case "${host}" in
13963*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13964
81ecdfbb 13965$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
13966 ;;
13967esac
13968
b11d79f2
TG
13969# Support for VMS timestamps via cross compile
13970
13971if test "$ac_cv_header_time_h" = yes; then
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
13973$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
13974 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
13975 $as_echo_n "(cached) " >&6
13976else
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978/* end confdefs.h. */
13979
13980#define _BSD_SOURCE 1
13981#include <time.h>
13982int
13983main ()
13984{
13985struct tm avar; void* aref = (void*) &avar.tm_gmtoff
13986 ;
13987 return 0;
13988}
13989_ACEOF
13990if ac_fn_c_try_compile "$LINENO"; then :
13991 gas_cv_have_time_type_member_tm_gmtoff=yes
13992else
13993 gas_cv_have_time_type_member_tm_gmtoff=no
13994
13995fi
13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997fi
13998
13999 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14000
14001$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14002
14003 fi
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14005$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14006
14007fi
14008
14009if test "$ac_cv_header_sys_stat_h" = yes; then
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14011$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14012 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14014else
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016/* end confdefs.h. */
14017
14018#define _BSD_SOURCE 1
14019#include <sys/stat.h>
14020int
14021main ()
14022{
14023struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14024 ;
14025 return 0;
14026}
14027_ACEOF
14028if ac_fn_c_try_compile "$LINENO"; then :
14029 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14030else
14031 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14032
14033fi
14034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14035fi
14036
14037 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14038
14039$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14040
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14043$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14046$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14047 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049else
14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14051/* end confdefs.h. */
14052
14053#define _BSD_SOURCE 1
14054#include <sys/stat.h>
14055int
14056main ()
14057{
14058struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14059 ;
14060 return 0;
14061}
14062_ACEOF
14063if ac_fn_c_try_compile "$LINENO"; then :
14064 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14065else
14066 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14067
14068fi
14069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070fi
14071
14072 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14073
14074$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14075
14076 fi
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14078$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14079
14080fi
14081
14082
c973bc5c 14083
13b2be9c 14084
108a6f8e
CD
14085
14086
14087
14088
31dd3154 14089
81ecdfbb 14090ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 14091
81ecdfbb 14092ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
14093
14094
14095cat >confcache <<\_ACEOF
14096# This file is a shell script that caches the results of configure
14097# tests run on this system so they can be shared between configure
14098# scripts and configure runs, see configure's option --config-cache.
14099# It is not useful on other systems. If it contains results you don't
14100# want to keep, you may remove or edit it.
14101#
14102# config.status only pays attention to the cache file if you give it
14103# the --recheck option to rerun configure.
14104#
14105# `ac_cv_env_foo' variables (set or unset) will be overridden when
14106# loading this file, other *unset* `ac_cv_foo' will be assigned the
14107# following values.
14108
14109_ACEOF
14110
14111# The following way of writing the cache mishandles newlines in values,
14112# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14113# So, we kill variables containing newlines.
13b2be9c
DJ
14114# Ultrix sh set writes to stderr and can't be redirected directly,
14115# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14116(
14117 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14118 eval ac_val=\$$ac_var
14119 case $ac_val in #(
14120 *${as_nl}*)
14121 case $ac_var in #(
14122 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14123$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14124 esac
14125 case $ac_var in #(
14126 _ | IFS | as_nl) ;; #(
14127 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14128 *) { eval $ac_var=; unset $ac_var;} ;;
14129 esac ;;
14130 esac
14131 done
14132
13b2be9c 14133 (set) 2>&1 |
81ecdfbb
RW
14134 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14135 *${as_nl}ac_space=\ *)
14136 # `set' does not quote correctly, so add quotes: double-quote
14137 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 14138 sed -n \
ab509236
L
14139 "s/'/'\\\\''/g;
14140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14141 ;; #(
13b2be9c
DJ
14142 *)
14143 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14144 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 14145 ;;
81ecdfbb
RW
14146 esac |
14147 sort
14148) |
13b2be9c 14149 sed '
81ecdfbb 14150 /^ac_cv_env_/b end
13b2be9c 14151 t clear
81ecdfbb 14152 :clear
13b2be9c
DJ
14153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14154 t end
81ecdfbb
RW
14155 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14156 :end' >>confcache
14157if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14158 if test -w "$cache_file"; then
14159 test "x$cache_file" != "x/dev/null" &&
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14161$as_echo "$as_me: updating cache $cache_file" >&6;}
13b2be9c
DJ
14162 cat confcache >$cache_file
14163 else
81ecdfbb
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14165$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
14166 fi
14167fi
14168rm -f confcache
14169
14170test "x$prefix" = xNONE && prefix=$ac_default_prefix
14171# Let make expand exec_prefix.
14172test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14173
13b2be9c
DJ
14174DEFS=-DHAVE_CONFIG_H
14175
14176ac_libobjs=
14177ac_ltlibobjs=
14178for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14179 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14183 # will be set to the directory where LIBOBJS objects are built.
14184 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14185 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
14186done
14187LIBOBJS=$ac_libobjs
14188
14189LTLIBOBJS=$ac_ltlibobjs
14190
14191
14192if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14193 as_fn_error "conditional \"AMDEP\" was never defined.
14194Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
14195fi
14196if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14197 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14198Usually this means the macro was only invoked conditionally." "$LINENO" 5
14199fi
14200 if test -n "$EXEEXT"; then
14201 am__EXEEXT_TRUE=
14202 am__EXEEXT_FALSE='#'
14203else
14204 am__EXEEXT_TRUE='#'
14205 am__EXEEXT_FALSE=
13b2be9c 14206fi
81ecdfbb
RW
14207
14208
13b2be9c 14209if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14210 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14211Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 14212fi
d5fbea21 14213if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14214 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14215Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14216fi
13b2be9c
DJ
14217
14218: ${CONFIG_STATUS=./config.status}
81ecdfbb 14219ac_write_fail=0
13b2be9c
DJ
14220ac_clean_files_save=$ac_clean_files
14221ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14223$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14224as_write_fail=0
14225cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
14226#! $SHELL
14227# Generated by $as_me.
14228# Run this file to recreate the current configuration.
14229# Compiler output produced by configure, useful for debugging
14230# configure, is in config.log if it exists.
14231
14232debug=false
14233ac_cs_recheck=false
14234ac_cs_silent=false
13b2be9c 14235
81ecdfbb
RW
14236SHELL=\${CONFIG_SHELL-$SHELL}
14237export SHELL
14238_ASEOF
14239cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14240## -------------------- ##
14241## M4sh Initialization. ##
14242## -------------------- ##
13b2be9c 14243
81ecdfbb
RW
14244# Be more Bourne compatible
14245DUALCASE=1; export DUALCASE # for MKS sh
14246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
14247 emulate sh
14248 NULLCMD=:
81ecdfbb 14249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
14250 # is contrary to our usage. Disable this feature.
14251 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14252 setopt NO_GLOB_SUBST
14253else
14254 case `(set -o) 2>/dev/null` in #(
14255 *posix*) :
14256 set -o posix ;; #(
14257 *) :
14258 ;;
14259esac
13b2be9c
DJ
14260fi
14261
81ecdfbb
RW
14262
14263as_nl='
14264'
14265export as_nl
14266# Printing a long string crashes Solaris 7 /usr/bin/printf.
14267as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14268as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14269as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14270# Prefer a ksh shell builtin over an external printf program on Solaris,
14271# but without wasting forks for bash or zsh.
14272if test -z "$BASH_VERSION$ZSH_VERSION" \
14273 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14274 as_echo='print -r --'
14275 as_echo_n='print -rn --'
14276elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14277 as_echo='printf %s\n'
14278 as_echo_n='printf %s'
14279else
14280 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14281 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14282 as_echo_n='/usr/ucb/echo -n'
14283 else
14284 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14285 as_echo_n_body='eval
14286 arg=$1;
14287 case $arg in #(
14288 *"$as_nl"*)
14289 expr "X$arg" : "X\\(.*\\)$as_nl";
14290 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14291 esac;
14292 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14293 '
14294 export as_echo_n_body
14295 as_echo_n='sh -c $as_echo_n_body as_echo'
14296 fi
14297 export as_echo_body
14298 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
14299fi
14300
81ecdfbb
RW
14301# The user is always right.
14302if test "${PATH_SEPARATOR+set}" != set; then
14303 PATH_SEPARATOR=:
14304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14306 PATH_SEPARATOR=';'
14307 }
14308fi
14309
14310
14311# IFS
14312# We need space, tab and new line, in precisely that order. Quoting is
14313# there to prevent editors from complaining about space-tab.
14314# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14315# splitting by setting IFS to empty value.)
14316IFS=" "" $as_nl"
14317
14318# Find who we are. Look in the path if we contain no directory separator.
14319case $0 in #((
14320 *[\\/]* ) as_myself=$0 ;;
14321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14322for as_dir in $PATH
14323do
14324 IFS=$as_save_IFS
14325 test -z "$as_dir" && as_dir=.
14326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14327 done
14328IFS=$as_save_IFS
14329
14330 ;;
14331esac
14332# We did not find ourselves, most probably we were run as `sh COMMAND'
14333# in which case we are not to be found in the path.
14334if test "x$as_myself" = x; then
14335 as_myself=$0
14336fi
14337if test ! -f "$as_myself"; then
14338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14339 exit 1
14340fi
13b2be9c 14341
81ecdfbb
RW
14342# Unset variables that we do not need and which cause bugs (e.g. in
14343# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14344# suppresses any "Segmentation fault" message there. '((' could
14345# trigger a bug in pdksh 5.2.14.
14346for as_var in BASH_ENV ENV MAIL MAILPATH
14347do eval test x\${$as_var+set} = xset \
14348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14349done
13b2be9c
DJ
14350PS1='$ '
14351PS2='> '
14352PS4='+ '
14353
14354# NLS nuisances.
81ecdfbb
RW
14355LC_ALL=C
14356export LC_ALL
14357LANGUAGE=C
14358export LANGUAGE
14359
14360# CDPATH.
14361(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14362
14363
14364# as_fn_error ERROR [LINENO LOG_FD]
14365# ---------------------------------
14366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14368# script with status $?, using 1 if that was 0.
14369as_fn_error ()
14370{
14371 as_status=$?; test $as_status -eq 0 && as_status=1
14372 if test "$3"; then
14373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13b2be9c 14375 fi
81ecdfbb
RW
14376 $as_echo "$as_me: error: $1" >&2
14377 as_fn_exit $as_status
14378} # as_fn_error
14379
14380
14381# as_fn_set_status STATUS
14382# -----------------------
14383# Set $? to STATUS, without forking.
14384as_fn_set_status ()
14385{
14386 return $1
14387} # as_fn_set_status
14388
14389# as_fn_exit STATUS
14390# -----------------
14391# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14392as_fn_exit ()
14393{
14394 set +e
14395 as_fn_set_status $1
14396 exit $1
14397} # as_fn_exit
14398
14399# as_fn_unset VAR
14400# ---------------
14401# Portably unset VAR.
14402as_fn_unset ()
14403{
14404 { eval $1=; unset $1;}
14405}
14406as_unset=as_fn_unset
14407# as_fn_append VAR VALUE
14408# ----------------------
14409# Append the text in VALUE to the end of the definition contained in VAR. Take
14410# advantage of any shell optimizations that allow amortized linear growth over
14411# repeated appends, instead of the typical quadratic growth present in naive
14412# implementations.
14413if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14414 eval 'as_fn_append ()
14415 {
14416 eval $1+=\$2
14417 }'
14418else
14419 as_fn_append ()
14420 {
14421 eval $1=\$$1\$2
14422 }
14423fi # as_fn_append
14424
14425# as_fn_arith ARG...
14426# ------------------
14427# Perform arithmetic evaluation on the ARGs, and store the result in the
14428# global $as_val. Take advantage of shells that can avoid forks. The arguments
14429# must be portable across $(()) and expr.
14430if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14431 eval 'as_fn_arith ()
14432 {
14433 as_val=$(( $* ))
14434 }'
14435else
14436 as_fn_arith ()
14437 {
14438 as_val=`expr "$@" || test $? -eq 1`
14439 }
14440fi # as_fn_arith
14441
13b2be9c 14442
81ecdfbb
RW
14443if expr a : '\(a\)' >/dev/null 2>&1 &&
14444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
14445 as_expr=expr
14446else
14447 as_expr=false
14448fi
14449
81ecdfbb 14450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
14451 as_basename=basename
14452else
14453 as_basename=false
14454fi
14455
81ecdfbb
RW
14456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14457 as_dirname=dirname
14458else
14459 as_dirname=false
14460fi
13b2be9c 14461
81ecdfbb 14462as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
14463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14464 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14466$as_echo X/"$0" |
14467 sed '/^.*\/\([^/][^/]*\)\/*$/{
14468 s//\1/
14469 q
14470 }
14471 /^X\/\(\/\/\)$/{
14472 s//\1/
14473 q
14474 }
14475 /^X\/\(\/\).*/{
14476 s//\1/
14477 q
14478 }
14479 s/.*/./; q'`
13b2be9c 14480
13b2be9c
DJ
14481# Avoid depending upon Character Ranges.
14482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14485as_cr_digits='0123456789'
14486as_cr_alnum=$as_cr_Letters$as_cr_digits
14487
81ecdfbb
RW
14488ECHO_C= ECHO_N= ECHO_T=
14489case `echo -n x` in #(((((
14490-n*)
14491 case `echo 'xy\c'` in
14492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14493 xy) ECHO_C='\c';;
14494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14495 ECHO_T=' ';;
14496 esac;;
14497*)
14498 ECHO_N='-n';;
13b2be9c 14499esac
252b5132 14500
81ecdfbb
RW
14501rm -f conf$$ conf$$.exe conf$$.file
14502if test -d conf$$.dir; then
14503 rm -f conf$$.dir/conf$$.file
252b5132 14504else
81ecdfbb
RW
14505 rm -f conf$$.dir
14506 mkdir conf$$.dir 2>/dev/null
252b5132 14507fi
81ecdfbb
RW
14508if (echo >conf$$.file) 2>/dev/null; then
14509 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 14510 as_ln_s='ln -s'
81ecdfbb
RW
14511 # ... but there are two gotchas:
14512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14514 # In both cases, we have to default to `cp -p'.
14515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14516 as_ln_s='cp -p'
14517 elif ln conf$$.file conf$$ 2>/dev/null; then
14518 as_ln_s=ln
14519 else
14520 as_ln_s='cp -p'
13b2be9c 14521 fi
13b2be9c
DJ
14522else
14523 as_ln_s='cp -p'
252b5132 14524fi
81ecdfbb
RW
14525rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14526rmdir conf$$.dir 2>/dev/null
252b5132 14527
81ecdfbb
RW
14528
14529# as_fn_mkdir_p
14530# -------------
14531# Create "$as_dir" as a directory, including parents if necessary.
14532as_fn_mkdir_p ()
14533{
14534
14535 case $as_dir in #(
14536 -*) as_dir=./$as_dir;;
14537 esac
14538 test -d "$as_dir" || eval $as_mkdir_p || {
14539 as_dirs=
14540 while :; do
14541 case $as_dir in #(
14542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14543 *) as_qdir=$as_dir;;
14544 esac
14545 as_dirs="'$as_qdir' $as_dirs"
14546 as_dir=`$as_dirname -- "$as_dir" ||
14547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14548 X"$as_dir" : 'X\(//\)[^/]' \| \
14549 X"$as_dir" : 'X\(//\)$' \| \
14550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14551$as_echo X"$as_dir" |
14552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14553 s//\1/
14554 q
14555 }
14556 /^X\(\/\/\)[^/].*/{
14557 s//\1/
14558 q
14559 }
14560 /^X\(\/\/\)$/{
14561 s//\1/
14562 q
14563 }
14564 /^X\(\/\).*/{
14565 s//\1/
14566 q
14567 }
14568 s/.*/./; q'`
14569 test -d "$as_dir" && break
14570 done
14571 test -z "$as_dirs" || eval "mkdir $as_dirs"
14572 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14573
14574
14575} # as_fn_mkdir_p
13b2be9c 14576if mkdir -p . 2>/dev/null; then
81ecdfbb 14577 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 14578else
ab509236 14579 test -d ./-p && rmdir ./-p
13b2be9c
DJ
14580 as_mkdir_p=false
14581fi
81ecdfbb
RW
14582
14583if test -x / >/dev/null 2>&1; then
14584 as_test_x='test -x'
14585else
14586 if ls -dL / >/dev/null 2>&1; then
14587 as_ls_L_option=L
14588 else
14589 as_ls_L_option=
14590 fi
14591 as_test_x='
14592 eval sh -c '\''
14593 if test -d "$1"; then
14594 test -d "$1/.";
14595 else
14596 case $1 in #(
14597 -*)set "./$1";;
14598 esac;
14599 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14600 ???[sx]*):;;*)false;;esac;fi
14601 '\'' sh
14602 '
14603fi
14604as_executable_p=$as_test_x
252b5132 14605
13b2be9c 14606# Sed expression to map a string onto a valid CPP name.
ab509236 14607as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14608
13b2be9c 14609# Sed expression to map a string onto a valid variable name.
ab509236 14610as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14611
d6d788bd 14612
13b2be9c 14613exec 6>&1
81ecdfbb
RW
14614## ----------------------------------- ##
14615## Main body of $CONFIG_STATUS script. ##
14616## ----------------------------------- ##
14617_ASEOF
14618test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 14619
81ecdfbb
RW
14620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 14622# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14623# values after options handling.
14624ac_log="
13b2be9c 14625This file was extended by $as_me, which was
81ecdfbb 14626generated by GNU Autoconf 2.64. Invocation command line was
d6d788bd 14627
13b2be9c
DJ
14628 CONFIG_FILES = $CONFIG_FILES
14629 CONFIG_HEADERS = $CONFIG_HEADERS
14630 CONFIG_LINKS = $CONFIG_LINKS
14631 CONFIG_COMMANDS = $CONFIG_COMMANDS
14632 $ $0 $@
252b5132 14633
81ecdfbb
RW
14634on `(hostname || uname -n) 2>/dev/null | sed 1q`
14635"
14636
13b2be9c 14637_ACEOF
252b5132 14638
81ecdfbb
RW
14639case $ac_config_files in *"
14640"*) set x $ac_config_files; shift; ac_config_files=$*;;
14641esac
13b2be9c 14642
81ecdfbb
RW
14643case $ac_config_headers in *"
14644"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14645esac
252b5132 14646
252b5132 14647
81ecdfbb
RW
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14649# Files that config.status was made for.
14650config_files="$ac_config_files"
14651config_headers="$ac_config_headers"
14652config_commands="$ac_config_commands"
d6d788bd 14653
81ecdfbb 14654_ACEOF
252b5132 14655
81ecdfbb 14656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 14657ac_cs_usage="\
81ecdfbb
RW
14658\`$as_me' instantiates files and other configuration actions
14659from templates according to the current configuration. Unless the files
14660and actions are specified as TAGs, all are instantiated by default.
252b5132 14661
81ecdfbb 14662Usage: $0 [OPTION]... [TAG]...
252b5132 14663
13b2be9c 14664 -h, --help print this help, then exit
81ecdfbb
RW
14665 -V, --version print version number and configuration settings, then exit
14666 -q, --quiet, --silent
14667 do not print progress messages
13b2be9c
DJ
14668 -d, --debug don't remove temporary files
14669 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14670 --file=FILE[:TEMPLATE]
14671 instantiate the configuration file FILE
14672 --header=FILE[:TEMPLATE]
14673 instantiate the configuration header FILE
252b5132 14674
13b2be9c
DJ
14675Configuration files:
14676$config_files
252b5132 14677
13b2be9c
DJ
14678Configuration headers:
14679$config_headers
252b5132 14680
13b2be9c
DJ
14681Configuration commands:
14682$config_commands
252b5132 14683
81ecdfbb 14684Report bugs to the package provider."
d6d788bd 14685
81ecdfbb
RW
14686_ACEOF
14687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c
DJ
14688ac_cs_version="\\
14689config.status
81ecdfbb
RW
14690configured by $0, generated by GNU Autoconf 2.64,
14691 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d6d788bd 14692
81ecdfbb 14693Copyright (C) 2009 Free Software Foundation, Inc.
13b2be9c
DJ
14694This config.status script is free software; the Free Software Foundation
14695gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14696
14697ac_pwd='$ac_pwd'
14698srcdir='$srcdir'
14699INSTALL='$INSTALL'
14700MKDIR_P='$MKDIR_P'
14701AWK='$AWK'
14702test -n "\$AWK" || AWK=awk
13b2be9c 14703_ACEOF
d6d788bd 14704
81ecdfbb
RW
14705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14706# The default lists apply if the user does not specify any file.
13b2be9c
DJ
14707ac_need_defaults=:
14708while test $# != 0
14709do
14710 case $1 in
14711 --*=*)
81ecdfbb
RW
14712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 14714 ac_shift=:
c8615825 14715 ;;
81ecdfbb 14716 *)
13b2be9c
DJ
14717 ac_option=$1
14718 ac_optarg=$2
14719 ac_shift=shift
c8615825 14720 ;;
13b2be9c 14721 esac
252b5132 14722
13b2be9c
DJ
14723 case $ac_option in
14724 # Handling of the options.
13b2be9c
DJ
14725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14726 ac_cs_recheck=: ;;
81ecdfbb
RW
14727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14728 $as_echo "$ac_cs_version"; exit ;;
14729 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
14730 debug=: ;;
14731 --file | --fil | --fi | --f )
14732 $ac_shift
81ecdfbb
RW
14733 case $ac_optarg in
14734 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14735 esac
14736 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
14737 ac_need_defaults=false;;
14738 --header | --heade | --head | --hea )
14739 $ac_shift
81ecdfbb
RW
14740 case $ac_optarg in
14741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14742 esac
14743 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 14744 ac_need_defaults=false;;
81ecdfbb
RW
14745 --he | --h)
14746 # Conflict between --help and --header
14747 as_fn_error "ambiguous option: \`$1'
14748Try \`$0 --help' for more information.";;
14749 --help | --hel | -h )
14750 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
14751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14753 ac_cs_silent=: ;;
c8615825 14754
13b2be9c 14755 # This is an error.
81ecdfbb
RW
14756 -*) as_fn_error "unrecognized option: \`$1'
14757Try \`$0 --help' for more information." ;;
252b5132 14758
81ecdfbb
RW
14759 *) as_fn_append ac_config_targets " $1"
14760 ac_need_defaults=false ;;
252b5132 14761
13b2be9c
DJ
14762 esac
14763 shift
14764done
252b5132 14765
13b2be9c 14766ac_configure_extra_args=
d6d788bd 14767
13b2be9c
DJ
14768if $ac_cs_silent; then
14769 exec 6>/dev/null
14770 ac_configure_extra_args="$ac_configure_extra_args --silent"
14771fi
9b2b7d69 14772
13b2be9c 14773_ACEOF
81ecdfbb 14774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 14775if \$ac_cs_recheck; then
81ecdfbb
RW
14776 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14777 shift
14778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14779 CONFIG_SHELL='$SHELL'
14780 export CONFIG_SHELL
14781 exec "\$@"
13b2be9c
DJ
14782fi
14783
14784_ACEOF
81ecdfbb
RW
14785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14786exec 5>>config.log
14787{
14788 echo
14789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14790## Running $as_me. ##
14791_ASBOX
14792 $as_echo "$ac_log"
14793} >&5
13b2be9c 14794
81ecdfbb
RW
14795_ACEOF
14796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 14797#
81ecdfbb 14798# INIT-COMMANDS
9b2b7d69 14799#
13b2be9c 14800AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
14801
14802
14803# The HP-UX ksh and POSIX shell print the target directory to stdout
14804# if CDPATH is set.
14805(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14806
14807sed_quote_subst='$sed_quote_subst'
14808double_quote_subst='$double_quote_subst'
14809delay_variable_subst='$delay_variable_subst'
3725885a
RW
14810macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14811macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14812enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14813enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14814pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14815enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14816SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14817ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14818host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14819host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14820host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14821build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14822build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14823build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14824SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14825Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14826GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14827EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14828FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14829LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14830NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14831LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14832max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14833ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14834exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14835lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14836lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14837lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14838reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14839reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14840OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14841deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14842file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14843AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14844AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14845STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14846RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14847old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14848old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14849old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14850lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14851CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14852CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14853compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14854GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14855lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14856lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14857lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14858lt_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"`'
14859objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14860MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14861lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14862lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14863lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14864lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14865lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14866need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14867DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14868NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14869LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14870OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14871OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14872libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14873shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14874extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14875archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14876enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14877export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14878whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14879compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14880old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14881old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14882archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14883archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14884module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14885module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14886with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14887allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14888no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14889hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14890hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14891hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14892hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14893hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14894hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14895hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14896hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14897inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14898link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14899fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14900always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14901export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14902exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14903include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14904prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14905file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14906variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14907need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14908need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14909version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14910runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14911shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14912shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14913libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14914library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14915soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14916install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14917postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14918postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14919finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14920finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14921hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14922sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14923sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14924hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14925enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14926enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14927enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14928old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14929striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
14930
14931LTCC='$LTCC'
14932LTCFLAGS='$LTCFLAGS'
14933compiler='$compiler_DEFAULT'
14934
3725885a
RW
14935# A function that is used when there is no print builtin or printf.
14936func_fallback_echo ()
14937{
14938 eval 'cat <<_LTECHO_EOF
14939\$1
14940_LTECHO_EOF'
14941}
14942
d7040cdb 14943# Quote evaled strings.
3725885a
RW
14944for var in SHELL \
14945ECHO \
14946SED \
d7040cdb
SE
14947GREP \
14948EGREP \
14949FGREP \
14950LD \
14951NM \
14952LN_S \
14953lt_SP2NL \
14954lt_NL2SP \
14955reload_flag \
718a6fd8 14956OBJDUMP \
d7040cdb
SE
14957deplibs_check_method \
14958file_magic_cmd \
14959AR \
14960AR_FLAGS \
14961STRIP \
14962RANLIB \
14963CC \
14964CFLAGS \
14965compiler \
14966lt_cv_sys_global_symbol_pipe \
14967lt_cv_sys_global_symbol_to_cdecl \
14968lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 14969lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
14970lt_prog_compiler_no_builtin_flag \
14971lt_prog_compiler_wl \
14972lt_prog_compiler_pic \
14973lt_prog_compiler_static \
14974lt_cv_prog_compiler_c_o \
14975need_locks \
718a6fd8
SE
14976DSYMUTIL \
14977NMEDIT \
14978LIPO \
14979OTOOL \
14980OTOOL64 \
d7040cdb
SE
14981shrext_cmds \
14982export_dynamic_flag_spec \
14983whole_archive_flag_spec \
14984compiler_needs_object \
14985with_gnu_ld \
14986allow_undefined_flag \
14987no_undefined_flag \
14988hardcode_libdir_flag_spec \
14989hardcode_libdir_flag_spec_ld \
14990hardcode_libdir_separator \
14991fix_srcfile_path \
14992exclude_expsyms \
14993include_expsyms \
14994file_list_spec \
14995variables_saved_for_relink \
14996libname_spec \
14997library_names_spec \
14998soname_spec \
3725885a 14999install_override_mode \
d7040cdb
SE
15000finish_eval \
15001old_striplib \
15002striplib; do
3725885a 15003 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15004 *[\\\\\\\`\\"\\\$]*)
3725885a 15005 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15006 ;;
15007 *)
15008 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15009 ;;
15010 esac
15011done
15012
15013# Double-quote double-evaled strings.
15014for var in reload_cmds \
15015old_postinstall_cmds \
15016old_postuninstall_cmds \
15017old_archive_cmds \
15018extract_expsyms_cmds \
15019old_archive_from_new_cmds \
15020old_archive_from_expsyms_cmds \
15021archive_cmds \
15022archive_expsym_cmds \
15023module_cmds \
15024module_expsym_cmds \
15025export_symbols_cmds \
15026prelink_cmds \
15027postinstall_cmds \
15028postuninstall_cmds \
15029finish_cmds \
15030sys_lib_search_path_spec \
15031sys_lib_dlsearch_path_spec; do
3725885a 15032 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15033 *[\\\\\\\`\\"\\\$]*)
3725885a 15034 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15035 ;;
15036 *)
15037 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15038 ;;
15039 esac
15040done
15041
d7040cdb
SE
15042ac_aux_dir='$ac_aux_dir'
15043xsi_shell='$xsi_shell'
15044lt_shell_append='$lt_shell_append'
15045
15046# See if we are running on zsh, and set the options which allow our
15047# commands through without removal of \ escapes INIT.
15048if test -n "\${ZSH_VERSION+set}" ; then
15049 setopt NO_GLOB_SUBST
15050fi
15051
15052
15053 PACKAGE='$PACKAGE'
15054 VERSION='$VERSION'
15055 TIMESTAMP='$TIMESTAMP'
15056 RM='$RM'
15057 ofile='$ofile'
15058
15059
15060
20e95c23
DJ
15061# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15062 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15063 # from automake.
15064 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15065 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15066 LINGUAS="${LINGUAS-%UNSET%}"
15067
13b2be9c
DJ
15068target_cpu_type=${target_cpu_type}
15069 cgen_cpu_prefix=${cgen_cpu_prefix}
15070 obj_format=${obj_format}
15071 te_file=${te_file}
15072
15073_ACEOF
15074
81ecdfbb 15075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15076
81ecdfbb 15077# Handling of arguments.
13b2be9c 15078for ac_config_target in $ac_config_targets
9b2b7d69 15079do
81ecdfbb
RW
15080 case $ac_config_target in
15081 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15082 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15083 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15084 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15085 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15086 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15087 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15088 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15089 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15090 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15091
15092 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
15093 esac
15094done
15095
81ecdfbb 15096
13b2be9c
DJ
15097# If the user did not use the arguments to specify the items to instantiate,
15098# then the envvar interface is used. Set only those that are not.
15099# We use the long form for the default assignment because of an extremely
15100# bizarre bug on SunOS 4.1.3.
15101if $ac_need_defaults; then
15102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15105fi
15106
15107# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15108# simply because there is no reason against having it here, and in addition,
13b2be9c 15109# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15110# Hook for its removal unless debugging.
15111# Note that there is a small window in which the directory will not be cleaned:
15112# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
15113$debug ||
15114{
81ecdfbb
RW
15115 tmp=
15116 trap 'exit_status=$?
15117 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15118' 0
15119 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 15120}
13b2be9c 15121# Create a (secure) tmp directory for tmp files.
9b2b7d69 15122
13b2be9c 15123{
81ecdfbb 15124 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13b2be9c
DJ
15125 test -n "$tmp" && test -d "$tmp"
15126} ||
15127{
81ecdfbb
RW
15128 tmp=./conf$$-$RANDOM
15129 (umask 077 && mkdir "$tmp")
15130} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15131
15132# Set up the scripts for CONFIG_FILES section.
15133# No need to generate them if there are no CONFIG_FILES.
15134# This happens for instance with `./config.status config.h'.
15135if test -n "$CONFIG_FILES"; then
15136
15137
15138ac_cr=`echo X | tr X '\015'`
15139# On cygwin, bash can eat \r inside `` if the user requested igncr.
15140# But we know of no other shell where ac_cr would be empty at this
15141# point, so we can use a bashism as a fallback.
15142if test "x$ac_cr" = x; then
15143 eval ac_cr=\$\'\\r\'
15144fi
15145ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15146if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15147 ac_cs_awk_cr='\r'
15148else
15149 ac_cs_awk_cr=$ac_cr
15150fi
15151
15152echo 'BEGIN {' >"$tmp/subs1.awk" &&
15153_ACEOF
15154
15155
15156{
15157 echo "cat >conf$$subs.awk <<_ACEOF" &&
15158 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15159 echo "_ACEOF"
15160} >conf$$subs.sh ||
15161 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15162ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15163ac_delim='%!_!# '
15164for ac_last_try in false false false false false :; do
15165 . ./conf$$subs.sh ||
15166 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15167
15168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15169 if test $ac_delim_n = $ac_delim_num; then
15170 break
15171 elif $ac_last_try; then
15172 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15173 else
15174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15175 fi
15176done
15177rm -f conf$$subs.sh
15178
15179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15181_ACEOF
15182sed -n '
15183h
15184s/^/S["/; s/!.*/"]=/
15185p
15186g
15187s/^[^!]*!//
15188:repl
15189t repl
15190s/'"$ac_delim"'$//
15191t delim
15192:nl
15193h
15194s/\(.\{148\}\).*/\1/
15195t more1
15196s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15197p
15198n
15199b repl
15200:more1
15201s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15202p
15203g
15204s/.\{148\}//
15205t nl
15206:delim
15207h
15208s/\(.\{148\}\).*/\1/
15209t more2
15210s/["\\]/\\&/g; s/^/"/; s/$/"/
15211p
15212b
15213:more2
15214s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15215p
15216g
15217s/.\{148\}//
15218t delim
15219' <conf$$subs.awk | sed '
15220/^[^""]/{
15221 N
15222 s/\n//
15223}
15224' >>$CONFIG_STATUS || ac_write_fail=1
15225rm -f conf$$subs.awk
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227_ACAWK
15228cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15229 for (key in S) S_is_set[key] = 1
15230 FS = "\a"
15231
15232}
13b2be9c 15233{
81ecdfbb
RW
15234 line = $ 0
15235 nfields = split(line, field, "@")
15236 substed = 0
15237 len = length(field[1])
15238 for (i = 2; i < nfields; i++) {
15239 key = field[i]
15240 keylen = length(key)
15241 if (S_is_set[key]) {
15242 value = S[key]
15243 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15244 len += length(value) + length(field[++i])
15245 substed = 1
15246 } else
15247 len += 1 + keylen
15248 }
15249
15250 print line
13b2be9c 15251}
9b2b7d69 15252
81ecdfbb
RW
15253_ACAWK
15254_ACEOF
15255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15256if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15257 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15258else
15259 cat
15260fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15261 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
15262_ACEOF
15263
81ecdfbb
RW
15264# VPATH may cause trouble with some makes, so we remove $(srcdir),
15265# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15266# trailing colons and then remove the whole line if VPATH becomes empty
15267# (actually we leave an empty line to preserve line numbers).
15268if test "x$srcdir" = x.; then
15269 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15270s/:*\$(srcdir):*/:/
15271s/:*\${srcdir}:*/:/
15272s/:*@srcdir@:*/:/
15273s/^\([^=]*=[ ]*\):*/\1/
15274s/:*$//
15275s/^[^=]*=[ ]*$//
15276}'
15277fi
15278
15279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280fi # test -n "$CONFIG_FILES"
13b2be9c 15281
81ecdfbb
RW
15282# Set up the scripts for CONFIG_HEADERS section.
15283# No need to generate them if there are no CONFIG_HEADERS.
15284# This happens for instance with `./config.status Makefile'.
15285if test -n "$CONFIG_HEADERS"; then
15286cat >"$tmp/defines.awk" <<\_ACAWK ||
15287BEGIN {
15288_ACEOF
13b2be9c 15289
81ecdfbb
RW
15290# Transform confdefs.h into an awk script `defines.awk', embedded as
15291# here-document in config.status, that substitutes the proper values into
15292# config.h.in to produce config.h.
9b2b7d69 15293
81ecdfbb
RW
15294# Create a delimiter string that does not exist in confdefs.h, to ease
15295# handling of long lines.
15296ac_delim='%!_!# '
15297for ac_last_try in false false :; do
15298 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15299 if test -z "$ac_t"; then
15300 break
15301 elif $ac_last_try; then
15302 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15303 else
15304 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15305 fi
15306done
15307
15308# For the awk script, D is an array of macro values keyed by name,
15309# likewise P contains macro parameters if any. Preserve backslash
15310# newline sequences.
15311
15312ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15313sed -n '
15314s/.\{148\}/&'"$ac_delim"'/g
15315t rset
15316:rset
15317s/^[ ]*#[ ]*define[ ][ ]*/ /
15318t def
15319d
15320:def
15321s/\\$//
15322t bsnl
15323s/["\\]/\\&/g
15324s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15325D["\1"]=" \3"/p
15326s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15327d
15328:bsnl
15329s/["\\]/\\&/g
15330s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15331D["\1"]=" \3\\\\\\n"\\/p
15332t cont
15333s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15334t cont
15335d
15336:cont
15337n
15338s/.\{148\}/&'"$ac_delim"'/g
15339t clear
15340:clear
15341s/\\$//
15342t bsnlc
15343s/["\\]/\\&/g; s/^/"/; s/$/"/p
15344d
15345:bsnlc
15346s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15347b cont
15348' <confdefs.h | sed '
15349s/'"$ac_delim"'/"\\\
15350"/g' >>$CONFIG_STATUS || ac_write_fail=1
15351
15352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15353 for (key in D) D_is_set[key] = 1
15354 FS = "\a"
15355}
15356/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15357 line = \$ 0
15358 split(line, arg, " ")
15359 if (arg[1] == "#") {
15360 defundef = arg[2]
15361 mac1 = arg[3]
15362 } else {
15363 defundef = substr(arg[1], 2)
15364 mac1 = arg[2]
15365 }
15366 split(mac1, mac2, "(") #)
15367 macro = mac2[1]
15368 prefix = substr(line, 1, index(line, defundef) - 1)
15369 if (D_is_set[macro]) {
15370 # Preserve the white space surrounding the "#".
15371 print prefix "define", macro P[macro] D[macro]
15372 next
15373 } else {
15374 # Replace #undef with comments. This is necessary, for example,
15375 # in the case of _POSIX_SOURCE, which is predefined and required
15376 # on some systems where configure will not decide to define it.
15377 if (defundef == "undef") {
15378 print "/*", prefix defundef, macro, "*/"
15379 next
15380 }
15381 }
15382}
15383{ print }
15384_ACAWK
13b2be9c 15385_ACEOF
81ecdfbb
RW
15386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15387 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15388fi # test -n "$CONFIG_HEADERS"
13b2be9c 15389
81ecdfbb
RW
15390
15391eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15392shift
15393for ac_tag
15394do
15395 case $ac_tag in
15396 :[FHLC]) ac_mode=$ac_tag; continue;;
15397 esac
15398 case $ac_mode$ac_tag in
15399 :[FHL]*:*);;
15400 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15401 :[FH]-) ac_tag=-:-;;
15402 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15403 esac
15404 ac_save_IFS=$IFS
15405 IFS=:
15406 set x $ac_tag
15407 IFS=$ac_save_IFS
15408 shift
15409 ac_file=$1
15410 shift
15411
15412 case $ac_mode in
15413 :L) ac_source=$1;;
15414 :[FH])
15415 ac_file_inputs=
15416 for ac_f
15417 do
15418 case $ac_f in
15419 -) ac_f="$tmp/stdin";;
15420 *) # Look for the file first in the build tree, then in the source tree
15421 # (if the path is not absolute). The absolute path cannot be DOS-style,
15422 # because $ac_f cannot contain `:'.
15423 test -f "$ac_f" ||
15424 case $ac_f in
15425 [\\/$]*) false;;
15426 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15427 esac ||
15428 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15429 esac
15430 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15431 as_fn_append ac_file_inputs " '$ac_f'"
15432 done
15433
15434 # Let's still pretend it is `configure' which instantiates (i.e., don't
15435 # use $as_me), people would be surprised to read:
15436 # /* config.h. Generated by config.status. */
15437 configure_input='Generated from '`
15438 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15439 `' by configure.'
15440 if test x"$ac_file" != x-; then
15441 configure_input="$ac_file. $configure_input"
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15443$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 15444 fi
81ecdfbb
RW
15445 # Neutralize special characters interpreted by sed in replacement strings.
15446 case $configure_input in #(
15447 *\&* | *\|* | *\\* )
15448 ac_sed_conf_input=`$as_echo "$configure_input" |
15449 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15450 *) ac_sed_conf_input=$configure_input;;
15451 esac
252b5132 15452
81ecdfbb
RW
15453 case $ac_tag in
15454 *:-:* | *:-) cat >"$tmp/stdin" \
15455 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15456 esac
15457 ;;
252b5132 15458 esac
9b2b7d69 15459
81ecdfbb 15460 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 15461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15462 X"$ac_file" : 'X\(//\)[^/]' \| \
15463 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15464 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15465$as_echo X"$ac_file" |
15466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15467 s//\1/
15468 q
15469 }
15470 /^X\(\/\/\)[^/].*/{
15471 s//\1/
15472 q
15473 }
15474 /^X\(\/\/\)$/{
15475 s//\1/
15476 q
15477 }
15478 /^X\(\/\).*/{
15479 s//\1/
15480 q
15481 }
15482 s/.*/./; q'`
15483 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
15484 ac_builddir=.
15485
81ecdfbb
RW
15486case "$ac_dir" in
15487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15488*)
15489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15490 # A ".." for each directory in $ac_dir_suffix.
15491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15492 case $ac_top_builddir_sub in
15493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15495 esac ;;
15496esac
15497ac_abs_top_builddir=$ac_pwd
15498ac_abs_builddir=$ac_pwd$ac_dir_suffix
15499# for backward compatibility:
15500ac_top_builddir=$ac_top_build_prefix
9b2b7d69 15501
13b2be9c 15502case $srcdir in
81ecdfbb 15503 .) # We are building in place.
13b2be9c 15504 ac_srcdir=.
81ecdfbb
RW
15505 ac_top_srcdir=$ac_top_builddir_sub
15506 ac_abs_top_srcdir=$ac_pwd ;;
15507 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 15508 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15509 ac_top_srcdir=$srcdir
15510 ac_abs_top_srcdir=$srcdir ;;
15511 *) # Relative name.
15512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15513 ac_top_srcdir=$ac_top_build_prefix$srcdir
15514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 15515esac
81ecdfbb 15516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 15517
252b5132 15518
81ecdfbb
RW
15519 case $ac_mode in
15520 :F)
15521 #
15522 # CONFIG_FILE
15523 #
9b2b7d69 15524
13b2be9c
DJ
15525 case $INSTALL in
15526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15528 esac
15529 ac_MKDIR_P=$MKDIR_P
15530 case $MKDIR_P in
15531 [\\/$]* | ?:[\\/]* ) ;;
15532 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 15533 esac
81ecdfbb 15534_ACEOF
9b2b7d69 15535
81ecdfbb
RW
15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15537# If the template does not know about datarootdir, expand it.
15538# FIXME: This hack should be removed a few years after 2.60.
15539ac_datarootdir_hack=; ac_datarootdir_seen=
15540ac_sed_dataroot='
15541/datarootdir/ {
15542 p
15543 q
15544}
15545/@datadir@/p
15546/@docdir@/p
15547/@infodir@/p
15548/@localedir@/p
15549/@mandir@/p'
15550case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15551*datarootdir*) ac_datarootdir_seen=yes;;
15552*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15554$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15555_ACEOF
15556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15557 ac_datarootdir_hack='
15558 s&@datadir@&$datadir&g
15559 s&@docdir@&$docdir&g
15560 s&@infodir@&$infodir&g
15561 s&@localedir@&$localedir&g
15562 s&@mandir@&$mandir&g
15563 s&\\\${datarootdir}&$datarootdir&g' ;;
15564esac
13b2be9c 15565_ACEOF
81ecdfbb
RW
15566
15567# Neutralize VPATH when `$srcdir' = `.'.
15568# Shell code in configure.ac might set extrasub.
15569# FIXME: do we really want to maintain this feature?
15570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15571ac_sed_extra="$ac_vpsub
13b2be9c
DJ
15572$extrasub
15573_ACEOF
81ecdfbb 15574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
15575:t
15576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15577s|@configure_input@|$ac_sed_conf_input|;t t
15578s&@top_builddir@&$ac_top_builddir_sub&;t t
15579s&@top_build_prefix@&$ac_top_build_prefix&;t t
15580s&@srcdir@&$ac_srcdir&;t t
15581s&@abs_srcdir@&$ac_abs_srcdir&;t t
15582s&@top_srcdir@&$ac_top_srcdir&;t t
15583s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15584s&@builddir@&$ac_builddir&;t t
15585s&@abs_builddir@&$ac_abs_builddir&;t t
15586s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15587s&@INSTALL@&$ac_INSTALL&;t t
15588s&@MKDIR_P@&$ac_MKDIR_P&;t t
15589$ac_datarootdir_hack
15590"
15591eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15592 || as_fn_error "could not create $ac_file" "$LINENO" 5
15593
15594test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15595 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15596 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15598which seems to be undefined. Please make sure it is defined." >&5
15599$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15600which seems to be undefined. Please make sure it is defined." >&2;}
15601
15602 rm -f "$tmp/stdin"
13b2be9c 15603 case $ac_file in
81ecdfbb
RW
15604 -) cat "$tmp/out" && rm -f "$tmp/out";;
15605 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15606 esac \
15607 || as_fn_error "could not create $ac_file" "$LINENO" 5
15608 ;;
15609 :H)
15610 #
15611 # CONFIG_HEADER
15612 #
13b2be9c 15613 if test x"$ac_file" != x-; then
81ecdfbb
RW
15614 {
15615 $as_echo "/* $configure_input */" \
15616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15617 } >"$tmp/config.h" \
15618 || as_fn_error "could not create $ac_file" "$LINENO" 5
15619 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15621$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 15622 else
81ecdfbb
RW
15623 rm -f "$ac_file"
15624 mv "$tmp/config.h" "$ac_file" \
15625 || as_fn_error "could not create $ac_file" "$LINENO" 5
9b2b7d69 15626 fi
13b2be9c 15627 else
81ecdfbb
RW
15628 $as_echo "/* $configure_input */" \
15629 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15630 || as_fn_error "could not create -" "$LINENO" 5
9b2b7d69 15631 fi
81ecdfbb
RW
15632# Compute "$ac_file"'s index in $config_headers.
15633_am_arg="$ac_file"
13b2be9c
DJ
15634_am_stamp_count=1
15635for _am_header in $config_headers :; do
15636 case $_am_header in
81ecdfbb 15637 $_am_arg | $_am_arg:* )
13b2be9c
DJ
15638 break ;;
15639 * )
15640 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15641 esac
15642done
81ecdfbb
RW
15643echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15644$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15645 X"$_am_arg" : 'X\(//\)[^/]' \| \
15646 X"$_am_arg" : 'X\(//\)$' \| \
15647 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15648$as_echo X"$_am_arg" |
15649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15650 s//\1/
15651 q
15652 }
15653 /^X\(\/\/\)[^/].*/{
15654 s//\1/
15655 q
15656 }
15657 /^X\(\/\/\)$/{
15658 s//\1/
15659 q
15660 }
15661 /^X\(\/\).*/{
15662 s//\1/
15663 q
15664 }
15665 s/.*/./; q'`/stamp-h$_am_stamp_count
15666 ;;
ab509236 15667
81ecdfbb
RW
15668 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15669$as_echo "$as_me: executing $ac_file commands" >&6;}
15670 ;;
15671 esac
13b2be9c
DJ
15672
15673
81ecdfbb
RW
15674 case $ac_file$ac_mode in
15675 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15676 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15677 # are listed without --file. Let's play safe and only enable the eval
15678 # if we detect the quoting.
15679 case $CONFIG_FILES in
15680 *\'*) eval set x "$CONFIG_FILES" ;;
15681 *) set x $CONFIG_FILES ;;
15682 esac
15683 shift
15684 for mf
15685 do
15686 # Strip MF so we end up with the name of the file.
15687 mf=`echo "$mf" | sed -e 's/:.*$//'`
15688 # Check whether this is an Automake generated Makefile or not.
15689 # We used to match only the files named `Makefile.in', but
15690 # some people rename them; so instead we look at the file content.
15691 # Grep'ing the first line is not enough: some people post-process
15692 # each Makefile.in and add a new line on top of each file to say so.
15693 # Grep'ing the whole file is not good either: AIX grep has a line
15694 # limit of 2048, but all sed's we know have understand at least 4000.
15695 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15696 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 15697$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15698 X"$mf" : 'X\(//\)[^/]' \| \
15699 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
15700 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15701$as_echo X"$mf" |
15702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15703 s//\1/
15704 q
15705 }
15706 /^X\(\/\/\)[^/].*/{
15707 s//\1/
15708 q
15709 }
15710 /^X\(\/\/\)$/{
15711 s//\1/
15712 q
15713 }
15714 /^X\(\/\).*/{
15715 s//\1/
15716 q
15717 }
15718 s/.*/./; q'`
15719 else
15720 continue
15721 fi
15722 # Extract the definition of DEPDIR, am__include, and am__quote
15723 # from the Makefile without running `make'.
15724 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15725 test -z "$DEPDIR" && continue
15726 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15727 test -z "am__include" && continue
15728 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15729 # When using ansi2knr, U may be empty or an underscore; expand it
15730 U=`sed -n 's/^U = //p' < "$mf"`
15731 # Find all dependency output files, they are included files with
15732 # $(DEPDIR) in their names. We invoke sed twice because it is the
15733 # simplest approach to changing $(DEPDIR) to its actual value in the
15734 # expansion.
15735 for file in `sed -n "
15736 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15737 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15738 # Make sure the directory exists.
15739 test -f "$dirpart/$file" && continue
15740 fdir=`$as_dirname -- "$file" ||
13b2be9c 15741$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
15742 X"$file" : 'X\(//\)[^/]' \| \
15743 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
15744 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15745$as_echo X"$file" |
15746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15747 s//\1/
15748 q
15749 }
15750 /^X\(\/\/\)[^/].*/{
15751 s//\1/
15752 q
15753 }
15754 /^X\(\/\/\)$/{
15755 s//\1/
15756 q
15757 }
15758 /^X\(\/\).*/{
15759 s//\1/
15760 q
15761 }
15762 s/.*/./; q'`
15763 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15764 # echo "creating $dirpart/$file"
15765 echo '# dummy' > "$dirpart/$file"
13b2be9c 15766 done
13b2be9c 15767 done
81ecdfbb 15768}
d7040cdb 15769 ;;
81ecdfbb 15770 "libtool":C)
d7040cdb
SE
15771
15772 # See if we are running on zsh, and set the options which allow our
15773 # commands through without removal of \ escapes.
15774 if test -n "${ZSH_VERSION+set}" ; then
15775 setopt NO_GLOB_SUBST
15776 fi
15777
15778 cfgfile="${ofile}T"
15779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15780 $RM "$cfgfile"
15781
15782 cat <<_LT_EOF >> "$cfgfile"
15783#! $SHELL
15784
15785# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 15786# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
15787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15788# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15789#
718a6fd8 15790# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 15791# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 15792# Written by Gordon Matzigkeit, 1996
d7040cdb 15793#
718a6fd8 15794# This file is part of GNU Libtool.
d7040cdb 15795#
718a6fd8
SE
15796# GNU Libtool is free software; you can redistribute it and/or
15797# modify it under the terms of the GNU General Public License as
15798# published by the Free Software Foundation; either version 2 of
15799# the License, or (at your option) any later version.
d7040cdb 15800#
718a6fd8
SE
15801# As a special exception to the GNU General Public License,
15802# if you distribute this file as part of a program or library that
15803# is built using GNU Libtool, you may include this file under the
15804# same distribution terms that you use for the rest of that program.
d7040cdb 15805#
718a6fd8
SE
15806# GNU Libtool is distributed in the hope that it will be useful,
15807# but WITHOUT ANY WARRANTY; without even the implied warranty of
15808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15809# GNU General Public License for more details.
d7040cdb 15810#
718a6fd8
SE
15811# You should have received a copy of the GNU General Public License
15812# along with GNU Libtool; see the file COPYING. If not, a copy
15813# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15814# obtained by writing to the Free Software Foundation, Inc.,
15815# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
15816
15817
15818# The names of the tagged configurations supported by this script.
15819available_tags=""
15820
15821# ### BEGIN LIBTOOL CONFIG
15822
15823# Which release of libtool.m4 was used?
15824macro_version=$macro_version
15825macro_revision=$macro_revision
15826
15827# Whether or not to build shared libraries.
15828build_libtool_libs=$enable_shared
15829
15830# Whether or not to build static libraries.
15831build_old_libs=$enable_static
15832
15833# What type of objects to build.
15834pic_mode=$pic_mode
15835
15836# Whether or not to optimize for fast installation.
15837fast_install=$enable_fast_install
15838
3725885a
RW
15839# Shell to use when invoking shell scripts.
15840SHELL=$lt_SHELL
15841
15842# An echo program that protects backslashes.
15843ECHO=$lt_ECHO
15844
d7040cdb
SE
15845# The host system.
15846host_alias=$host_alias
15847host=$host
15848host_os=$host_os
15849
15850# The build system.
15851build_alias=$build_alias
15852build=$build
15853build_os=$build_os
15854
15855# A sed program that does not truncate output.
15856SED=$lt_SED
15857
15858# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15859Xsed="\$SED -e 1s/^X//"
15860
15861# A grep program that handles long lines.
15862GREP=$lt_GREP
15863
15864# An ERE matcher.
15865EGREP=$lt_EGREP
15866
15867# A literal string matcher.
15868FGREP=$lt_FGREP
15869
15870# A BSD- or MS-compatible name lister.
15871NM=$lt_NM
15872
15873# Whether we need soft or hard links.
15874LN_S=$lt_LN_S
15875
15876# What is the maximum length of a command?
15877max_cmd_len=$max_cmd_len
15878
15879# Object file suffix (normally "o").
15880objext=$ac_objext
15881
15882# Executable file suffix (normally "").
15883exeext=$exeext
15884
15885# whether the shell understands "unset".
15886lt_unset=$lt_unset
15887
15888# turn spaces into newlines.
15889SP2NL=$lt_lt_SP2NL
15890
15891# turn newlines into spaces.
15892NL2SP=$lt_lt_NL2SP
15893
718a6fd8
SE
15894# An object symbol dumper.
15895OBJDUMP=$lt_OBJDUMP
15896
d7040cdb
SE
15897# Method to check whether dependent libraries are shared objects.
15898deplibs_check_method=$lt_deplibs_check_method
15899
15900# Command to use when deplibs_check_method == "file_magic".
15901file_magic_cmd=$lt_file_magic_cmd
15902
15903# The archiver.
15904AR=$lt_AR
15905AR_FLAGS=$lt_AR_FLAGS
15906
15907# A symbol stripping program.
15908STRIP=$lt_STRIP
15909
15910# Commands used to install an old-style archive.
15911RANLIB=$lt_RANLIB
15912old_postinstall_cmds=$lt_old_postinstall_cmds
15913old_postuninstall_cmds=$lt_old_postuninstall_cmds
15914
3725885a
RW
15915# Whether to use a lock for old archive extraction.
15916lock_old_archive_extraction=$lock_old_archive_extraction
15917
d7040cdb
SE
15918# A C compiler.
15919LTCC=$lt_CC
15920
15921# LTCC compiler flags.
15922LTCFLAGS=$lt_CFLAGS
15923
15924# Take the output of nm and produce a listing of raw symbols and C names.
15925global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15926
15927# Transform the output of nm in a proper C declaration.
15928global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15929
15930# Transform the output of nm in a C name address pair.
15931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15932
718a6fd8
SE
15933# Transform the output of nm in a C name address pair when lib prefix is needed.
15934global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15935
d7040cdb
SE
15936# The name of the directory that contains temporary libtool files.
15937objdir=$objdir
15938
d7040cdb
SE
15939# Used to examine libraries when file_magic_cmd begins with "file".
15940MAGIC_CMD=$MAGIC_CMD
15941
15942# Must we lock files when doing compilation?
15943need_locks=$lt_need_locks
15944
718a6fd8
SE
15945# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15946DSYMUTIL=$lt_DSYMUTIL
15947
15948# Tool to change global to local symbols on Mac OS X.
15949NMEDIT=$lt_NMEDIT
15950
15951# Tool to manipulate fat objects and archives on Mac OS X.
15952LIPO=$lt_LIPO
15953
15954# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15955OTOOL=$lt_OTOOL
15956
15957# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15958OTOOL64=$lt_OTOOL64
15959
d7040cdb
SE
15960# Old archive suffix (normally "a").
15961libext=$libext
15962
15963# Shared library suffix (normally ".so").
15964shrext_cmds=$lt_shrext_cmds
15965
15966# The commands to extract the exported symbol list from a shared archive.
15967extract_expsyms_cmds=$lt_extract_expsyms_cmds
15968
15969# Variables whose values should be saved in libtool wrapper scripts and
15970# restored at link time.
15971variables_saved_for_relink=$lt_variables_saved_for_relink
15972
15973# Do we need the "lib" prefix for modules?
15974need_lib_prefix=$need_lib_prefix
15975
15976# Do we need a version for libraries?
15977need_version=$need_version
15978
15979# Library versioning type.
15980version_type=$version_type
15981
15982# Shared library runtime path variable.
15983runpath_var=$runpath_var
15984
15985# Shared library path variable.
15986shlibpath_var=$shlibpath_var
15987
15988# Is shlibpath searched before the hard-coded library search path?
15989shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15990
15991# Format of library name prefix.
15992libname_spec=$lt_libname_spec
15993
15994# List of archive names. First name is the real one, the rest are links.
15995# The last name is the one that the linker finds with -lNAME
15996library_names_spec=$lt_library_names_spec
15997
15998# The coded name of the library, if different from the real name.
15999soname_spec=$lt_soname_spec
16000
3725885a
RW
16001# Permission mode override for installation of shared libraries.
16002install_override_mode=$lt_install_override_mode
16003
d7040cdb
SE
16004# Command to use after installation of a shared archive.
16005postinstall_cmds=$lt_postinstall_cmds
16006
16007# Command to use after uninstallation of a shared archive.
16008postuninstall_cmds=$lt_postuninstall_cmds
16009
16010# Commands used to finish a libtool library installation in a directory.
16011finish_cmds=$lt_finish_cmds
16012
16013# As "finish_cmds", except a single script fragment to be evaled but
16014# not shown.
16015finish_eval=$lt_finish_eval
16016
16017# Whether we should hardcode library paths into libraries.
16018hardcode_into_libs=$hardcode_into_libs
16019
16020# Compile-time system search path for libraries.
16021sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16022
16023# Run-time system search path for libraries.
16024sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16025
16026# Whether dlopen is supported.
16027dlopen_support=$enable_dlopen
16028
16029# Whether dlopen of programs is supported.
16030dlopen_self=$enable_dlopen_self
16031
16032# Whether dlopen of statically linked programs is supported.
16033dlopen_self_static=$enable_dlopen_self_static
16034
16035# Commands to strip libraries.
16036old_striplib=$lt_old_striplib
16037striplib=$lt_striplib
16038
16039
16040# The linker used to build libraries.
16041LD=$lt_LD
16042
3725885a
RW
16043# How to create reloadable object files.
16044reload_flag=$lt_reload_flag
16045reload_cmds=$lt_reload_cmds
16046
d7040cdb
SE
16047# Commands used to build an old-style archive.
16048old_archive_cmds=$lt_old_archive_cmds
16049
16050# A language specific compiler.
16051CC=$lt_compiler
16052
16053# Is the compiler the GNU compiler?
16054with_gcc=$GCC
16055
16056# Compiler flag to turn off builtin functions.
16057no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16058
16059# How to pass a linker flag through the compiler.
16060wl=$lt_lt_prog_compiler_wl
16061
16062# Additional compiler flags for building library objects.
16063pic_flag=$lt_lt_prog_compiler_pic
16064
16065# Compiler flag to prevent dynamic linking.
16066link_static_flag=$lt_lt_prog_compiler_static
16067
16068# Does compiler simultaneously support -c and -o options?
16069compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16070
16071# Whether or not to add -lc for building shared libraries.
16072build_libtool_need_lc=$archive_cmds_need_lc
16073
16074# Whether or not to disallow shared libs when runtime libs are static.
16075allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16076
16077# Compiler flag to allow reflexive dlopens.
16078export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16079
16080# Compiler flag to generate shared objects directly from archives.
16081whole_archive_flag_spec=$lt_whole_archive_flag_spec
16082
16083# Whether the compiler copes with passing no objects directly.
16084compiler_needs_object=$lt_compiler_needs_object
16085
16086# Create an old-style archive from a shared archive.
16087old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16088
16089# Create a temporary old-style archive to link instead of a shared archive.
16090old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16091
16092# Commands used to build a shared archive.
16093archive_cmds=$lt_archive_cmds
16094archive_expsym_cmds=$lt_archive_expsym_cmds
16095
16096# Commands used to build a loadable module if different from building
16097# a shared archive.
16098module_cmds=$lt_module_cmds
16099module_expsym_cmds=$lt_module_expsym_cmds
16100
16101# Whether we are building with GNU ld or not.
16102with_gnu_ld=$lt_with_gnu_ld
16103
16104# Flag that allows shared libraries with undefined symbols to be built.
16105allow_undefined_flag=$lt_allow_undefined_flag
16106
16107# Flag that enforces no undefined symbols.
16108no_undefined_flag=$lt_no_undefined_flag
16109
16110# Flag to hardcode \$libdir into a binary during linking.
16111# This must work even if \$libdir does not exist
16112hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16113
16114# If ld is used when linking, flag to hardcode \$libdir into a binary
16115# during linking. This must work even if \$libdir does not exist.
16116hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16117
16118# Whether we need a single "-rpath" flag with a separated argument.
16119hardcode_libdir_separator=$lt_hardcode_libdir_separator
16120
16121# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16122# DIR into the resulting binary.
16123hardcode_direct=$hardcode_direct
16124
16125# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16126# DIR into the resulting binary and the resulting library dependency is
16127# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16128# library is relocated.
16129hardcode_direct_absolute=$hardcode_direct_absolute
16130
16131# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16132# into the resulting binary.
16133hardcode_minus_L=$hardcode_minus_L
16134
16135# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16136# into the resulting binary.
16137hardcode_shlibpath_var=$hardcode_shlibpath_var
16138
16139# Set to "yes" if building a shared library automatically hardcodes DIR
16140# into the library and all subsequent libraries and executables linked
16141# against it.
16142hardcode_automatic=$hardcode_automatic
16143
16144# Set to yes if linker adds runtime paths of dependent libraries
16145# to runtime path list.
16146inherit_rpath=$inherit_rpath
16147
16148# Whether libtool must link a program against all its dependency libraries.
16149link_all_deplibs=$link_all_deplibs
16150
16151# Fix the shell variable \$srcfile for the compiler.
16152fix_srcfile_path=$lt_fix_srcfile_path
16153
16154# Set to "yes" if exported symbols are required.
16155always_export_symbols=$always_export_symbols
16156
16157# The commands to list exported symbols.
16158export_symbols_cmds=$lt_export_symbols_cmds
16159
16160# Symbols that should not be listed in the preloaded symbols.
16161exclude_expsyms=$lt_exclude_expsyms
16162
16163# Symbols that must always be exported.
16164include_expsyms=$lt_include_expsyms
16165
16166# Commands necessary for linking programs (against libraries) with templates.
16167prelink_cmds=$lt_prelink_cmds
16168
16169# Specify filename containing input files.
16170file_list_spec=$lt_file_list_spec
16171
16172# How to hardcode a shared library path into an executable.
16173hardcode_action=$hardcode_action
16174
16175# ### END LIBTOOL CONFIG
16176
16177_LT_EOF
16178
16179 case $host_os in
16180 aix3*)
16181 cat <<\_LT_EOF >> "$cfgfile"
16182# AIX sometimes has problems with the GCC collect2 program. For some
16183# reason, if we set the COLLECT_NAMES environment variable, the problems
16184# vanish in a puff of smoke.
16185if test "X${COLLECT_NAMES+set}" != Xset; then
16186 COLLECT_NAMES=
16187 export COLLECT_NAMES
16188fi
16189_LT_EOF
16190 ;;
16191 esac
16192
16193
16194ltmain="$ac_aux_dir/ltmain.sh"
16195
16196
16197 # We use sed instead of cat because bash on DJGPP gets confused if
16198 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16199 # text mode, it properly converts lines to CR/LF. This bash problem
16200 # is reportedly fixed, but why not run on old versions too?
16201 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16202 || (rm -f "$cfgfile"; exit 1)
16203
16204 case $xsi_shell in
16205 yes)
16206 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16207
d7040cdb
SE
16208# func_dirname file append nondir_replacement
16209# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16210# otherwise set result to NONDIR_REPLACEMENT.
16211func_dirname ()
16212{
16213 case ${1} in
16214 */*) func_dirname_result="${1%/*}${2}" ;;
16215 * ) func_dirname_result="${3}" ;;
16216 esac
16217}
16218
16219# func_basename file
16220func_basename ()
16221{
16222 func_basename_result="${1##*/}"
16223}
16224
718a6fd8
SE
16225# func_dirname_and_basename file append nondir_replacement
16226# perform func_basename and func_dirname in a single function
16227# call:
16228# dirname: Compute the dirname of FILE. If nonempty,
16229# add APPEND to the result, otherwise set result
16230# to NONDIR_REPLACEMENT.
16231# value returned in "$func_dirname_result"
16232# basename: Compute filename of FILE.
16233# value retuned in "$func_basename_result"
16234# Implementation must be kept synchronized with func_dirname
16235# and func_basename. For efficiency, we do not delegate to
16236# those functions but instead duplicate the functionality here.
16237func_dirname_and_basename ()
16238{
16239 case ${1} in
16240 */*) func_dirname_result="${1%/*}${2}" ;;
16241 * ) func_dirname_result="${3}" ;;
16242 esac
16243 func_basename_result="${1##*/}"
16244}
16245
d7040cdb
SE
16246# func_stripname prefix suffix name
16247# strip PREFIX and SUFFIX off of NAME.
16248# PREFIX and SUFFIX must not contain globbing or regex special
16249# characters, hashes, percent signs, but SUFFIX may contain a leading
16250# dot (in which case that matches only a dot).
16251func_stripname ()
16252{
16253 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16254 # positional parameters, so assign one to ordinary parameter first.
16255 func_stripname_result=${3}
16256 func_stripname_result=${func_stripname_result#"${1}"}
16257 func_stripname_result=${func_stripname_result%"${2}"}
16258}
16259
16260# func_opt_split
16261func_opt_split ()
16262{
16263 func_opt_split_opt=${1%%=*}
16264 func_opt_split_arg=${1#*=}
16265}
16266
16267# func_lo2o object
16268func_lo2o ()
16269{
16270 case ${1} in
16271 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16272 *) func_lo2o_result=${1} ;;
16273 esac
16274}
718a6fd8
SE
16275
16276# func_xform libobj-or-source
16277func_xform ()
16278{
16279 func_xform_result=${1%.*}.lo
16280}
16281
16282# func_arith arithmetic-term...
16283func_arith ()
16284{
16285 func_arith_result=$(( $* ))
16286}
16287
16288# func_len string
16289# STRING may not start with a hyphen.
16290func_len ()
16291{
16292 func_len_result=${#1}
16293}
16294
d7040cdb
SE
16295_LT_EOF
16296 ;;
16297 *) # Bourne compatible functions.
16298 cat << \_LT_EOF >> "$cfgfile"
718a6fd8 16299
d7040cdb
SE
16300# func_dirname file append nondir_replacement
16301# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16302# otherwise set result to NONDIR_REPLACEMENT.
16303func_dirname ()
16304{
16305 # Extract subdirectory from the argument.
3725885a 16306 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
16307 if test "X$func_dirname_result" = "X${1}"; then
16308 func_dirname_result="${3}"
16309 else
16310 func_dirname_result="$func_dirname_result${2}"
16311 fi
16312}
16313
16314# func_basename file
16315func_basename ()
16316{
3725885a 16317 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
16318}
16319
718a6fd8 16320
d7040cdb
SE
16321# func_stripname prefix suffix name
16322# strip PREFIX and SUFFIX off of NAME.
16323# PREFIX and SUFFIX must not contain globbing or regex special
16324# characters, hashes, percent signs, but SUFFIX may contain a leading
16325# dot (in which case that matches only a dot).
16326# func_strip_suffix prefix name
16327func_stripname ()
16328{
16329 case ${2} in
3725885a
RW
16330 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16331 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
16332 esac
16333}
16334
16335# sed scripts:
16336my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16337my_sed_long_arg='1s/^-[^=]*=//'
16338
16339# func_opt_split
16340func_opt_split ()
16341{
3725885a
RW
16342 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16343 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
16344}
16345
16346# func_lo2o object
16347func_lo2o ()
16348{
3725885a 16349 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 16350}
718a6fd8
SE
16351
16352# func_xform libobj-or-source
16353func_xform ()
16354{
3725885a 16355 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
718a6fd8
SE
16356}
16357
16358# func_arith arithmetic-term...
16359func_arith ()
16360{
16361 func_arith_result=`expr "$@"`
16362}
16363
16364# func_len string
16365# STRING may not start with a hyphen.
16366func_len ()
16367{
16368 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16369}
16370
d7040cdb
SE
16371_LT_EOF
16372esac
16373
16374case $lt_shell_append in
16375 yes)
16376 cat << \_LT_EOF >> "$cfgfile"
16377
16378# func_append var value
16379# Append VALUE to the end of shell variable VAR.
16380func_append ()
16381{
16382 eval "$1+=\$2"
16383}
16384_LT_EOF
16385 ;;
16386 *)
16387 cat << \_LT_EOF >> "$cfgfile"
16388
16389# func_append var value
16390# Append VALUE to the end of shell variable VAR.
16391func_append ()
16392{
16393 eval "$1=\$$1\$2"
16394}
718a6fd8 16395
d7040cdb
SE
16396_LT_EOF
16397 ;;
16398 esac
16399
16400
16401 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16402 || (rm -f "$cfgfile"; exit 1)
16403
16404 mv -f "$cfgfile" "$ofile" ||
16405 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16406 chmod +x "$ofile"
16407
13b2be9c 16408 ;;
81ecdfbb 16409 "default-1":C)
20e95c23
DJ
16410 for ac_file in $CONFIG_FILES; do
16411 # Support "outfile[:infile[:infile...]]"
16412 case "$ac_file" in
16413 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16414 esac
16415 # PO directories have a Makefile.in generated from Makefile.in.in.
16416 case "$ac_file" in */Makefile.in)
16417 # Adjust a relative srcdir.
16418 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16419 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16420 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16421 # In autoconf-2.13 it is called $ac_given_srcdir.
16422 # In autoconf-2.50 it is called $srcdir.
16423 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16424 case "$ac_given_srcdir" in
16425 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16426 /*) top_srcdir="$ac_given_srcdir" ;;
16427 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16428 esac
16429 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16430 rm -f "$ac_dir/POTFILES"
16431 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16432 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16433 POMAKEFILEDEPS="POTFILES.in"
16434 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16435 # on $ac_dir but don't depend on user-specified configuration
16436 # parameters.
16437 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16438 # The LINGUAS file contains the set of available languages.
16439 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16440 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16441 fi
16442 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16443 # Hide the ALL_LINGUAS assigment from automake.
16444 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16445 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16446 else
16447 # The set of available languages was given in configure.in.
16448 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16449 fi
16450 case "$ac_given_srcdir" in
16451 .) srcdirpre= ;;
16452 *) srcdirpre='$(srcdir)/' ;;
16453 esac
16454 POFILES=
16455 GMOFILES=
16456 UPDATEPOFILES=
16457 DUMMYPOFILES=
16458 for lang in $ALL_LINGUAS; do
16459 POFILES="$POFILES $srcdirpre$lang.po"
16460 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16461 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16462 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16463 done
16464 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16465 # environment variable.
16466 INST_LINGUAS=
16467 if test -n "$ALL_LINGUAS"; then
16468 for presentlang in $ALL_LINGUAS; do
16469 useit=no
16470 if test "%UNSET%" != "$LINGUAS"; then
16471 desiredlanguages="$LINGUAS"
16472 else
16473 desiredlanguages="$ALL_LINGUAS"
16474 fi
16475 for desiredlang in $desiredlanguages; do
16476 # Use the presentlang catalog if desiredlang is
16477 # a. equal to presentlang, or
16478 # b. a variant of presentlang (because in this case,
16479 # presentlang can be used as a fallback for messages
16480 # which are not translated in the desiredlang catalog).
16481 case "$desiredlang" in
16482 "$presentlang"*) useit=yes;;
16483 esac
16484 done
16485 if test $useit = yes; then
16486 INST_LINGUAS="$INST_LINGUAS $presentlang"
16487 fi
16488 done
16489 fi
16490 CATALOGS=
16491 if test -n "$INST_LINGUAS"; then
16492 for lang in $INST_LINGUAS; do
16493 CATALOGS="$CATALOGS $lang.gmo"
16494 done
16495 fi
16496 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16497 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"
16498 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16499 if test -f "$f"; then
16500 case "$f" in
16501 *.orig | *.bak | *~) ;;
16502 *) cat "$f" >> "$ac_dir/Makefile" ;;
16503 esac
16504 fi
16505 done
16506 fi
16507 ;;
16508 esac
16509 done ;;
81ecdfbb 16510 "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
16511 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16512 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16513 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16514 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16515 if test "x$cgen_cpu_prefix" != x ; then
16516 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 16517 fi ;;
81ecdfbb 16518
13b2be9c 16519 esac
81ecdfbb 16520done # for ac_tag
13b2be9c 16521
13b2be9c 16522
81ecdfbb 16523as_fn_exit 0
13b2be9c 16524_ACEOF
13b2be9c
DJ
16525ac_clean_files=$ac_clean_files_save
16526
81ecdfbb
RW
16527test $ac_write_fail = 0 ||
16528 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16529
13b2be9c
DJ
16530
16531# configure is writing to config.log, and then calls config.status.
16532# config.status does its own redirection, appending to config.log.
16533# Unfortunately, on DOS this fails, as config.log is still kept open
16534# by configure, so config.status won't be able to write to it; its
16535# output is simply discarded. So we exec the FD to /dev/null,
16536# effectively closing config.log, so it can be properly (re)opened and
16537# appended to by config.status. When coming back to configure, we
16538# need to make the FD available again.
16539if test "$no_create" != yes; then
16540 ac_cs_success=:
16541 ac_config_status_args=
16542 test "$silent" = yes &&
16543 ac_config_status_args="$ac_config_status_args --quiet"
16544 exec 5>/dev/null
16545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16546 exec 5>>config.log
16547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16548 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16549 $ac_cs_success || as_fn_exit $?
16550fi
16551if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16553$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 16554fi
252b5132 16555
This page took 1.900168 seconds and 4 git commands to generate.