Automatic date update in version.in
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
91dc4e0a 3# Generated by GNU Autoconf 2.64 for binutils 2.25.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 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 :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
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
42ecbf5e 31fi
42ecbf5e 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 }
42ecbf5e
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
42ecbf5e
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
42ecbf5e 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."
42ecbf5e 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."
42ecbf5e 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
42ecbf5e 364
81ecdfbb
RW
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
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
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
42ecbf5e
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
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
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'`
42ecbf5e 418
42ecbf5e
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
42ecbf5e 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 |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 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; }
42ecbf5e
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"
42ecbf5e
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';;
42ecbf5e
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
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 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'
42ecbf5e 491 fi
42ecbf5e
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
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
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
42ecbf5e
DJ
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
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
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='binutils'
558PACKAGE_TARNAME='binutils'
91dc4e0a
TG
559PACKAGE_VERSION='2.25.51'
560PACKAGE_STRING='binutils 2.25.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
42ecbf5e
DJ
563
564ac_unique_file="ar.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
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
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605EMULATION_VECTOR
606EMULATION
6abcee90 607OBJDUMP_PRIVATE_OFILES
81ecdfbb
RW
608OBJDUMP_DEFS
609BUILD_INSTALL_MISC
610BUILD_MISC
611BUILD_DLLWRAP
612BUILD_WINDMC
613BUILD_WINDRES
614DLLTOOL_DEFS
615BUILD_DLLTOOL
616BUILD_SRCONV
617BUILD_NLMCONV
618NLMCONV_DEFS
619LTLIBICONV
620LIBICONV
621ALLOCA
622DEMANGLER_NAME
623EXEEXT_FOR_BUILD
624CC_FOR_BUILD
625HDEFINES
626GENINSRC_NEVER_FALSE
627GENINSRC_NEVER_TRUE
628MAINT
629MAINTAINER_MODE_FALSE
630MAINTAINER_MODE_TRUE
631MSGMERGE
632MSGFMT
633MKINSTALLDIRS
634CATOBJEXT
635GENCAT
636INSTOBJEXT
637DATADIRNAME
638CATALOGS
639POSUB
640GMSGFMT
641XGETTEXT
642INCINTL
643LIBINTL_DEP
644LIBINTL
645USE_NLS
646LEXLIB
647LEX_OUTPUT_ROOT
648LEX
649YFLAGS
650YACC
651NO_WERROR
652WARN_CFLAGS
653OTOOL64
654OTOOL
655LIPO
656NMEDIT
657DSYMUTIL
81ecdfbb
RW
658RANLIB
659AR
660OBJDUMP
661LN_S
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LD
666FGREP
667SED
668LIBTOOL
669EGREP
670GREP
671CPP
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__quote
679am__include
680DEPDIR
681am__untar
682am__tar
683AMTAR
684am__leading_dot
685SET_MAKE
686AWK
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690STRIP
691install_sh
692MAKEINFO
693AUTOHEADER
694AUTOMAKE
695AUTOCONF
696ACLOCAL
697VERSION
698PACKAGE
699CYGPATH_W
700am__isrc
701INSTALL_DATA
702INSTALL_SCRIPT
703INSTALL_PROGRAM
704OBJEXT
705EXEEXT
706ac_ct_CC
707CPPFLAGS
708LDFLAGS
709CFLAGS
710CC
711target_os
712target_vendor
713target_cpu
714target
715host_os
716host_vendor
717host_cpu
718host
719build_os
720build_vendor
721build_cpu
722build
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
42ecbf5e 761ac_subst_files=''
81ecdfbb
RW
762ac_user_opts='
763enable_option_checking
764enable_dependency_tracking
81ecdfbb
RW
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_gnu_ld
770enable_libtool_lock
b879806f
AM
771enable_plugins
772enable_largefile
81ecdfbb 773enable_targets
9cb80f72 774enable_deterministic_archives
7fac9594 775enable_default_strings_all
81ecdfbb
RW
776enable_werror
777enable_build_warnings
778enable_nls
779enable_maintainer_mode
52546677 780with_zlib
81ecdfbb
RW
781enable_rpath
782with_libiconv_prefix
783'
784 ac_precious_vars='build_alias
785host_alias
786target_alias
787CC
788CFLAGS
789LDFLAGS
790LIBS
791CPPFLAGS
792CPP
793YACC
794YFLAGS'
795
252b5132
RH
796
797# Initialize some variables set by options.
42ecbf5e
DJ
798ac_init_help=
799ac_init_version=false
81ecdfbb
RW
800ac_unrecognized_opts=
801ac_unrecognized_sep=
252b5132
RH
802# The variables have the same names as the options, with
803# dashes changed to underlines.
42ecbf5e 804cache_file=/dev/null
252b5132 805exec_prefix=NONE
252b5132 806no_create=
252b5132
RH
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
252b5132
RH
815verbose=
816x_includes=NONE
817x_libraries=NONE
42ecbf5e
DJ
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 824# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
252b5132
RH
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
252b5132
RH
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
2e98a7bd 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
252b5132 844
252b5132 845ac_prev=
81ecdfbb 846ac_dashdash=
252b5132
RH
847for ac_option
848do
252b5132
RH
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
81ecdfbb 851 eval $ac_prev=\$ac_option
252b5132
RH
852 ac_prev=
853 continue
854 fi
855
81ecdfbb
RW
856 case $ac_option in
857 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 *) ac_optarg=yes ;;
859 esac
252b5132
RH
860
861 # Accept the important Cygnus configure options, so we can diagnose typos.
862
81ecdfbb
RW
863 case $ac_dashdash$ac_option in
864 --)
865 ac_dashdash=yes ;;
252b5132
RH
866
867 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 ac_prev=bindir ;;
869 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 870 bindir=$ac_optarg ;;
252b5132
RH
871
872 -build | --build | --buil | --bui | --bu)
42ecbf5e 873 ac_prev=build_alias ;;
252b5132 874 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 875 build_alias=$ac_optarg ;;
252b5132
RH
876
877 -cache-file | --cache-file | --cache-fil | --cache-fi \
878 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879 ac_prev=cache_file ;;
880 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
882 cache_file=$ac_optarg ;;
883
884 --config-cache | -C)
885 cache_file=config.cache ;;
252b5132 886
81ecdfbb 887 -datadir | --datadir | --datadi | --datad)
252b5132 888 ac_prev=datadir ;;
81ecdfbb 889 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 890 datadir=$ac_optarg ;;
252b5132 891
81ecdfbb
RW
892 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893 | --dataroo | --dataro | --datar)
894 ac_prev=datarootdir ;;
895 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897 datarootdir=$ac_optarg ;;
898
252b5132 899 -disable-* | --disable-*)
81ecdfbb 900 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 901 # Reject names that are not valid shell variable names.
81ecdfbb
RW
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903 as_fn_error "invalid feature name: $ac_useropt"
904 ac_useropt_orig=$ac_useropt
905 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
907 *"
908"enable_$ac_useropt"
909"*) ;;
910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911 ac_unrecognized_sep=', ';;
912 esac
913 eval enable_$ac_useropt=no ;;
914
915 -docdir | --docdir | --docdi | --doc | --do)
916 ac_prev=docdir ;;
917 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 docdir=$ac_optarg ;;
919
920 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921 ac_prev=dvidir ;;
922 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 dvidir=$ac_optarg ;;
252b5132
RH
924
925 -enable-* | --enable-*)
81ecdfbb 926 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 927 # Reject names that are not valid shell variable names.
81ecdfbb
RW
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934"enable_$ac_useropt"
935"*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
252b5132 938 esac
81ecdfbb 939 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
940
941 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943 | --exec | --exe | --ex)
944 ac_prev=exec_prefix ;;
945 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947 | --exec=* | --exe=* | --ex=*)
42ecbf5e 948 exec_prefix=$ac_optarg ;;
252b5132
RH
949
950 -gas | --gas | --ga | --g)
951 # Obsolete; use --with-gas.
952 with_gas=yes ;;
953
42ecbf5e
DJ
954 -help | --help | --hel | --he | -h)
955 ac_init_help=long ;;
956 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957 ac_init_help=recursive ;;
958 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959 ac_init_help=short ;;
252b5132
RH
960
961 -host | --host | --hos | --ho)
42ecbf5e 962 ac_prev=host_alias ;;
252b5132 963 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 964 host_alias=$ac_optarg ;;
252b5132 965
81ecdfbb
RW
966 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967 ac_prev=htmldir ;;
968 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969 | --ht=*)
970 htmldir=$ac_optarg ;;
971
252b5132
RH
972 -includedir | --includedir | --includedi | --included | --include \
973 | --includ | --inclu | --incl | --inc)
974 ac_prev=includedir ;;
975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 977 includedir=$ac_optarg ;;
252b5132
RH
978
979 -infodir | --infodir | --infodi | --infod | --info | --inf)
980 ac_prev=infodir ;;
981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 982 infodir=$ac_optarg ;;
252b5132
RH
983
984 -libdir | --libdir | --libdi | --libd)
985 ac_prev=libdir ;;
986 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 987 libdir=$ac_optarg ;;
252b5132
RH
988
989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990 | --libexe | --libex | --libe)
991 ac_prev=libexecdir ;;
992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 994 libexecdir=$ac_optarg ;;
252b5132 995
81ecdfbb
RW
996 -localedir | --localedir | --localedi | --localed | --locale)
997 ac_prev=localedir ;;
998 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999 localedir=$ac_optarg ;;
1000
252b5132 1001 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1002 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1003 ac_prev=localstatedir ;;
1004 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1005 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1006 localstatedir=$ac_optarg ;;
252b5132
RH
1007
1008 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009 ac_prev=mandir ;;
1010 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1011 mandir=$ac_optarg ;;
252b5132
RH
1012
1013 -nfp | --nfp | --nf)
1014 # Obsolete; use --without-fp.
1015 with_fp=no ;;
1016
1017 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1018 | --no-cr | --no-c | -n)
252b5132
RH
1019 no_create=yes ;;
1020
1021 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 no_recursion=yes ;;
1024
1025 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027 | --oldin | --oldi | --old | --ol | --o)
1028 ac_prev=oldincludedir ;;
1029 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1032 oldincludedir=$ac_optarg ;;
252b5132
RH
1033
1034 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035 ac_prev=prefix ;;
1036 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1037 prefix=$ac_optarg ;;
252b5132
RH
1038
1039 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040 | --program-pre | --program-pr | --program-p)
1041 ac_prev=program_prefix ;;
1042 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1044 program_prefix=$ac_optarg ;;
252b5132
RH
1045
1046 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047 | --program-suf | --program-su | --program-s)
1048 ac_prev=program_suffix ;;
1049 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1051 program_suffix=$ac_optarg ;;
252b5132
RH
1052
1053 -program-transform-name | --program-transform-name \
1054 | --program-transform-nam | --program-transform-na \
1055 | --program-transform-n | --program-transform- \
1056 | --program-transform | --program-transfor \
1057 | --program-transfo | --program-transf \
1058 | --program-trans | --program-tran \
1059 | --progr-tra | --program-tr | --program-t)
1060 ac_prev=program_transform_name ;;
1061 -program-transform-name=* | --program-transform-name=* \
1062 | --program-transform-nam=* | --program-transform-na=* \
1063 | --program-transform-n=* | --program-transform-=* \
1064 | --program-transform=* | --program-transfor=* \
1065 | --program-transfo=* | --program-transf=* \
1066 | --program-trans=* | --program-tran=* \
1067 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1068 program_transform_name=$ac_optarg ;;
252b5132 1069
81ecdfbb
RW
1070 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071 ac_prev=pdfdir ;;
1072 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073 pdfdir=$ac_optarg ;;
1074
1075 -psdir | --psdir | --psdi | --psd | --ps)
1076 ac_prev=psdir ;;
1077 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 psdir=$ac_optarg ;;
1079
252b5132
RH
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1082 silent=yes ;;
1083
1084 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085 ac_prev=sbindir ;;
1086 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087 | --sbi=* | --sb=*)
42ecbf5e 1088 sbindir=$ac_optarg ;;
252b5132
RH
1089
1090 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092 | --sharedst | --shareds | --shared | --share | --shar \
1093 | --sha | --sh)
1094 ac_prev=sharedstatedir ;;
1095 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098 | --sha=* | --sh=*)
42ecbf5e 1099 sharedstatedir=$ac_optarg ;;
252b5132
RH
1100
1101 -site | --site | --sit)
1102 ac_prev=site ;;
1103 -site=* | --site=* | --sit=*)
42ecbf5e 1104 site=$ac_optarg ;;
252b5132
RH
1105
1106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107 ac_prev=srcdir ;;
1108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1109 srcdir=$ac_optarg ;;
252b5132
RH
1110
1111 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112 | --syscon | --sysco | --sysc | --sys | --sy)
1113 ac_prev=sysconfdir ;;
1114 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1116 sysconfdir=$ac_optarg ;;
252b5132
RH
1117
1118 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1119 ac_prev=target_alias ;;
252b5132 1120 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1121 target_alias=$ac_optarg ;;
252b5132
RH
1122
1123 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 verbose=yes ;;
1125
42ecbf5e
DJ
1126 -version | --version | --versio | --versi | --vers | -V)
1127 ac_init_version=: ;;
252b5132
RH
1128
1129 -with-* | --with-*)
81ecdfbb 1130 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1131 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
252b5132 1142 esac
81ecdfbb 1143 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1144
1145 -without-* | --without-*)
81ecdfbb 1146 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1147 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error "invalid package name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154"with_$ac_useropt"
1155"*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=no ;;
252b5132
RH
1160
1161 --x)
1162 # Obsolete; use --with-x.
1163 with_x=yes ;;
1164
1165 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166 | --x-incl | --x-inc | --x-in | --x-i)
1167 ac_prev=x_includes ;;
1168 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1170 x_includes=$ac_optarg ;;
252b5132
RH
1171
1172 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174 ac_prev=x_libraries ;;
1175 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1177 x_libraries=$ac_optarg ;;
252b5132 1178
81ecdfbb
RW
1179 -*) as_fn_error "unrecognized option: \`$ac_option'
1180Try \`$0 --help' for more information."
252b5132
RH
1181 ;;
1182
42ecbf5e
DJ
1183 *=*)
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1186 case $ac_envvar in #(
1187 '' | [0-9]* | *[!_$as_cr_alnum]* )
1188 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1189 esac
1190 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1191 export $ac_envvar ;;
1192
252b5132 1193 *)
42ecbf5e 1194 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1195 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1196 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1197 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1198 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1199 ;;
1200
1201 esac
1202done
1203
1204if test -n "$ac_prev"; then
42ecbf5e 1205 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1206 as_fn_error "missing argument to $ac_option"
252b5132
RH
1207fi
1208
81ecdfbb
RW
1209if test -n "$ac_unrecognized_opts"; then
1210 case $enable_option_checking in
1211 no) ;;
1212 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1213 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1214 esac
81ecdfbb 1215fi
252b5132 1216
81ecdfbb
RW
1217# Check all directory arguments for consistency.
1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219 datadir sysconfdir sharedstatedir localstatedir includedir \
1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221 libdir localedir mandir
252b5132 1222do
81ecdfbb
RW
1223 eval ac_val=\$$ac_var
1224 # Remove trailing slashes.
42ecbf5e 1225 case $ac_val in
81ecdfbb
RW
1226 */ )
1227 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228 eval $ac_var=\$ac_val;;
252b5132 1229 esac
81ecdfbb
RW
1230 # Be sure to have absolute directory names.
1231 case $ac_val in
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234 esac
1235 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1236done
1237
42ecbf5e
DJ
1238# There might be people who depend on the old broken behavior: `$host'
1239# used to hold the argument of --host etc.
1240# FIXME: To remove some day.
1241build=$build_alias
1242host=$host_alias
1243target=$target_alias
1244
1245# FIXME: To remove some day.
1246if test "x$host_alias" != x; then
1247 if test "x$build_alias" = x; then
1248 cross_compiling=maybe
81ecdfbb 1249 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1250 If a cross compiler is detected then cross compile mode will be used." >&2
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1253 fi
1254fi
e5a52504 1255
42ecbf5e
DJ
1256ac_tool_prefix=
1257test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259test "$silent" = yes && exec 6>/dev/null
252b5132 1260
252b5132 1261
81ecdfbb
RW
1262ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263ac_ls_di=`ls -di .` &&
1264ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error "working directory cannot be determined"
1266test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error "pwd does not report name of working directory"
1268
1269
252b5132
RH
1270# Find the source files, if location was not specified.
1271if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
81ecdfbb
RW
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279$as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\).*/{
1293 s//\1/
1294 q
1295 }
1296 s/.*/./; q'`
252b5132 1297 srcdir=$ac_confdir
81ecdfbb 1298 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1299 srcdir=..
1300 fi
1301else
1302 ac_srcdir_defaulted=no
1303fi
81ecdfbb
RW
1304if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1307fi
1308ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1311 pwd)`
1312# When building in place, set srcdir=.
1313if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1315fi
1316# Remove unnecessary trailing slashes from srcdir.
1317# Double slashes in file names in object file debugging info
1318# mess up M-x gdb in Emacs.
1319case $srcdir in
1320*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321esac
1322for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327done
252b5132 1328
42ecbf5e
DJ
1329#
1330# Report the --help message.
1331#
1332if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
91dc4e0a 1336\`configure' configures binutils 2.25.51 to adapt to many kinds of systems.
252b5132 1337
42ecbf5e 1338Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1339
42ecbf5e
DJ
1340To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1342
42ecbf5e 1343Defaults for the options are specified in brackets.
ac48eca1 1344
42ecbf5e
DJ
1345Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355
42ecbf5e
DJ
1356Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1358 [$ac_default_prefix]
42ecbf5e 1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1360 [PREFIX]
ac48eca1 1361
42ecbf5e
DJ
1362By default, \`make install' will install all the files in
1363\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365for instance \`--prefix=\$HOME'.
ac48eca1 1366
42ecbf5e 1367For better control, use the options below.
ac48eca1 1368
42ecbf5e 1369Fine tuning of the installation directories:
81ecdfbb
RW
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1384 --docdir=DIR documentation root [DATAROOTDIR/doc/binutils]
81ecdfbb
RW
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1389_ACEOF
ac48eca1 1390
42ecbf5e 1391 cat <<\_ACEOF
252b5132 1392
42ecbf5e
DJ
1393Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1397
42ecbf5e
DJ
1398System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 --target=TARGET configure for building compilers for TARGET [HOST]
1402_ACEOF
252b5132 1403fi
252b5132 1404
42ecbf5e 1405if test -n "$ac_init_help"; then
2e98a7bd 1406 case $ac_init_help in
91dc4e0a 1407 short | recursive ) echo "Configuration of binutils 2.25.51:";;
2e98a7bd 1408 esac
42ecbf5e 1409 cat <<\_ACEOF
252b5132 1410
42ecbf5e 1411Optional Features:
81ecdfbb 1412 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1413 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1414 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1415 --disable-dependency-tracking speeds up one-time build
1416 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1417 --enable-shared[=PKGS] build shared libraries [default=yes]
1418 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
42ecbf5e 1421 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1422 --enable-plugins Enable support for plugins
1423 --disable-largefile omit support for large files
42ecbf5e 1424 --enable-targets alternative target configurations
9cb80f72
RM
1425 --enable-deterministic-archives
1426 ar and ranlib default to -D behavior
7fac9594
NC
1427 --disable-default-strings-all
1428 strings defaults to --data behavior
241a6c40
AM
1429 --enable-werror treat compile warnings as errors
1430 --enable-build-warnings enable build-time compiler warnings
42ecbf5e
DJ
1431 --disable-nls do not use Native Language Support
1432 --enable-maintainer-mode enable make rules and dependencies not useful
1433 (and sometimes confusing) to the casual installer
5ba684e2 1434 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1435
1436Optional Packages:
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1439 --with-pic try to use only PIC/non-PIC objects [default=use
1440 both]
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
52546677 1442 --with-zlib include zlib support (auto/yes/no) default=auto
5ba684e2
NC
1443 --with-gnu-ld assume the C compiler uses GNU ld default=no
1444 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1445 --without-libiconv-prefix don't search for libiconv in includedir and libdir
252b5132 1446
42ecbf5e
DJ
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
81ecdfbb
RW
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
42ecbf5e 1455 CPP C preprocessor
81ecdfbb
RW
1456 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1457 the first program found out of: `bison -y', `byacc', `yacc'.
1458 YFLAGS The list of arguments that will be passed by default to $YACC.
1459 This script will default YFLAGS to the empty string to avoid a
1460 default value of `-d' given by some make applications.
e5a52504 1461
42ecbf5e
DJ
1462Use these variables to override the choices made by `configure' or to help
1463it to find libraries and programs with nonstandard names/locations.
1464
81ecdfbb 1465Report bugs to the package provider.
42ecbf5e 1466_ACEOF
81ecdfbb 1467ac_status=$?
252b5132
RH
1468fi
1469
42ecbf5e
DJ
1470if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
42ecbf5e 1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
42ecbf5e
DJ
1476 ac_builddir=.
1477
81ecdfbb
RW
1478case "$ac_dir" in
1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480*)
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488esac
1489ac_abs_top_builddir=$ac_pwd
1490ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491# for backward compatibility:
1492ac_top_builddir=$ac_top_build_prefix
252b5132 1493
42ecbf5e 1494case $srcdir in
81ecdfbb 1495 .) # We are building in place.
42ecbf5e 1496 ac_srcdir=.
81ecdfbb
RW
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1500 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
252b5132 1507esac
81ecdfbb
RW
1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1518 else
81ecdfbb
RW
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e
DJ
1522 done
1523fi
5d64ca4e 1524
81ecdfbb 1525test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1526if $ac_init_version; then
1527 cat <<\_ACEOF
91dc4e0a 1528binutils configure 2.25.51
81ecdfbb 1529generated by GNU Autoconf 2.64
5d64ca4e 1530
81ecdfbb 1531Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1532This configure script is free software; the Free Software Foundation
1533gives unlimited permission to copy, distribute and modify it.
1534_ACEOF
81ecdfbb 1535 exit
42ecbf5e 1536fi
252b5132 1537
81ecdfbb
RW
1538## ------------------------ ##
1539## Autoconf initialization. ##
1540## ------------------------ ##
e5a52504 1541
81ecdfbb
RW
1542# ac_fn_c_try_compile LINENO
1543# --------------------------
1544# Try to compile conftest.$ac_ext, and return whether this succeeded.
1545ac_fn_c_try_compile ()
42ecbf5e 1546{
81ecdfbb
RW
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553esac
1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555$as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1562 fi
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569else
1570 $as_echo "$as_me: failed program was:" >&5
1571sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1572
81ecdfbb
RW
1573 ac_retval=1
1574fi
1575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1576 return $ac_retval
42ecbf5e 1577
81ecdfbb
RW
1578} # ac_fn_c_try_compile
1579
1580# ac_fn_c_try_link LINENO
1581# -----------------------
1582# Try to link conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_link ()
1584{
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext conftest$ac_exeext
1587 if { { ac_try="$ac_link"
1588case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_link") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest$ac_exeext && {
1606 test "$cross_compiling" = yes ||
1607 $as_test_x conftest$ac_exeext
1608 }; then :
1609 ac_retval=0
1610else
1611 $as_echo "$as_me: failed program was:" >&5
1612sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615fi
1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1618 # interfere with the next link command; also delete a directory that is
1619 # left behind by Apple's compiler. We do this before executing the actions.
1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1622 return $ac_retval
1623
1624} # ac_fn_c_try_link
1625
1626# ac_fn_c_try_cpp LINENO
1627# ----------------------
1628# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_cpp ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } >/dev/null && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 return $ac_retval
1660
1661} # ac_fn_c_try_cpp
1662
1663# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1664# -------------------------------------------------------
1665# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1666# the include files in INCLUDES and setting the cache variable VAR
1667# accordingly.
1668ac_fn_c_check_header_mongrel ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673$as_echo_n "checking for $2... " >&6; }
1674if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675 $as_echo_n "(cached) " >&6
1676fi
1677eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679$as_echo "$ac_res" >&6; }
1680else
1681 # Is the header compilable?
1682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1683$as_echo_n "checking $2 usability... " >&6; }
1684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685/* end confdefs.h. */
1686$4
1687#include <$2>
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"; then :
1690 ac_header_compiler=yes
1691else
1692 ac_header_compiler=no
1693fi
1694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1696$as_echo "$ac_header_compiler" >&6; }
1697
1698# Is the header present?
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1700$as_echo_n "checking $2 presence... " >&6; }
1701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h. */
1703#include <$2>
1704_ACEOF
1705if ac_fn_c_try_cpp "$LINENO"; then :
1706 ac_header_preproc=yes
1707else
1708 ac_header_preproc=no
1709fi
1710rm -f conftest.err conftest.$ac_ext
1711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1712$as_echo "$ac_header_preproc" >&6; }
1713
1714# So? What about this header?
1715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1716 yes:no: )
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1718$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ;;
1722 no:yes:* )
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1724$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1726$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1728$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1730$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733 ;;
1734esac
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 $as_echo_n "(cached) " >&6
1739else
1740 eval "$3=\$ac_header_compiler"
1741fi
1742eval ac_res=\$$3
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744$as_echo "$ac_res" >&6; }
1745fi
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747
1748} # ac_fn_c_check_header_mongrel
1749
1750# ac_fn_c_try_run LINENO
1751# ----------------------
1752# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753# that executables *can* be run.
1754ac_fn_c_try_run ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773$as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1775 ac_status=$?
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1778 ac_retval=0
1779else
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=$ac_status
1785fi
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790} # ac_fn_c_try_run
1791
1792# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1793# -------------------------------------------------------
1794# Tests whether HEADER exists and can be compiled using the include files in
1795# INCLUDES, setting the cache variable VAR accordingly.
1796ac_fn_c_check_header_compile ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803else
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h. */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"; then :
1810 eval "$3=yes"
1811else
1812 eval "$3=no"
1813fi
1814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815fi
1816eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820
1821} # ac_fn_c_check_header_compile
1822
1823# ac_fn_c_check_func LINENO FUNC VAR
1824# ----------------------------------
1825# Tests whether FUNC exists, setting the cache variable VAR accordingly
1826ac_fn_c_check_func ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1832 $as_echo_n "(cached) " >&6
1833else
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835/* end confdefs.h. */
1836/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1838#define $2 innocuous_$2
1839
1840/* System header to define __stub macros and hopefully few prototypes,
1841 which can conflict with char $2 (); below.
1842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1843 <limits.h> exists even on freestanding compilers. */
1844
1845#ifdef __STDC__
1846# include <limits.h>
1847#else
1848# include <assert.h>
1849#endif
1850
1851#undef $2
1852
1853/* Override any GCC internal prototype to avoid an error.
1854 Use char because int might match the return type of a GCC
1855 builtin and then its argument prototype would still apply. */
1856#ifdef __cplusplus
1857extern "C"
1858#endif
1859char $2 ();
1860/* The GNU C library defines this for functions which it implements
1861 to always fail with ENOSYS. Some functions are actually named
1862 something starting with __ and the normal name is an alias. */
1863#if defined __stub_$2 || defined __stub___$2
1864choke me
1865#endif
1866
1867int
1868main ()
1869{
1870return $2 ();
1871 ;
1872 return 0;
1873}
1874_ACEOF
1875if ac_fn_c_try_link "$LINENO"; then :
1876 eval "$3=yes"
1877else
1878 eval "$3=no"
1879fi
1880rm -f core conftest.err conftest.$ac_objext \
1881 conftest$ac_exeext conftest.$ac_ext
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887
1888} # ac_fn_c_check_func
1889
1890# ac_fn_c_check_decl LINENO SYMBOL VAR
1891# ------------------------------------
1892# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1893ac_fn_c_check_decl ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1896 as_decl_name=`echo $2|sed 's/ *(.*//'`
1897 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1899$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1900if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h. */
1905$4
1906int
1907main ()
1908{
360cfc9c
AM
1909#ifndef $as_decl_name
1910#ifdef __cplusplus
1911 (void) $as_decl_use;
1912#else
1913 (void) $as_decl_name;
1914#endif
81ecdfbb
RW
1915#endif
1916
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933} # ac_fn_c_check_decl
1934cat >config.log <<_ACEOF
1935This file contains any messages produced by compilers while
1936running configure, to aid debugging if configure makes a mistake.
1937
91dc4e0a 1938It was created by binutils $as_me 2.25.51, which was
81ecdfbb
RW
1939generated by GNU Autoconf 2.64. Invocation command line was
1940
1941 $ $0 $@
1942
1943_ACEOF
1944exec 5>>config.log
1945{
1946cat <<_ASUNAME
1947## --------- ##
1948## Platform. ##
1949## --------- ##
1950
1951hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956
1957/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1959
1960/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1961/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1962/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1964/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1965/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1966/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
42ecbf5e
DJ
1967
1968_ASUNAME
1969
1970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971for as_dir in $PATH
1972do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1975 $as_echo "PATH: $as_dir"
1976 done
1977IFS=$as_save_IFS
e5a52504 1978
42ecbf5e 1979} >&5
ceae3e33 1980
42ecbf5e 1981cat >&5 <<_ACEOF
e5a52504 1982
42ecbf5e
DJ
1983
1984## ----------- ##
1985## Core tests. ##
1986## ----------- ##
1987
1988_ACEOF
1989
1990
1991# Keep a trace of the command line.
1992# Strip out --no-create and --no-recursion so they do not pile up.
1993# Strip out --silent because we don't want to record it for future runs.
1994# Also quote any args containing shell meta-characters.
1995# Make two passes to allow for proper duplicate-argument suppression.
1996ac_configure_args=
1997ac_configure_args0=
1998ac_configure_args1=
42ecbf5e
DJ
1999ac_must_keep_next=false
2000for ac_pass in 1 2
2001do
2002 for ac_arg
2003 do
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
81ecdfbb
RW
2009 *\'*)
2010 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2011 esac
2012 case $ac_pass in
81ecdfbb 2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2014 2)
81ecdfbb 2015 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2027 ;;
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2030 fi
81ecdfbb 2031 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2032 ;;
2033 esac
2034 done
2035done
81ecdfbb
RW
2036{ ac_configure_args0=; unset ac_configure_args0;}
2037{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2038
2039# When interrupted or exit'd, cleanup temporary files, and complete
2040# config.log. We remove comments because anyway the quotes in there
2041# would cause problems or look ugly.
81ecdfbb
RW
2042# WARNING: Use '\'' to represent an apostrophe within the trap.
2043# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2044trap 'exit_status=$?
2045 # Save into config.log some information that might help in debugging.
2046 {
2047 echo
2048
2049 cat <<\_ASBOX
2050## ---------------- ##
2051## Cache variables. ##
2052## ---------------- ##
2053_ASBOX
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2056(
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
42ecbf5e 2072 (set) 2>&1 |
81ecdfbb
RW
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
42ecbf5e 2075 sed -n \
81ecdfbb
RW
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
42ecbf5e 2079 *)
81ecdfbb 2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2081 ;;
81ecdfbb
RW
2082 esac |
2083 sort
2084)
42ecbf5e
DJ
2085 echo
2086
2087 cat <<\_ASBOX
2088## ----------------- ##
2089## Output variables. ##
2090## ----------------- ##
2091_ASBOX
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
81ecdfbb
RW
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
2104 cat <<\_ASBOX
81ecdfbb
RW
2105## ------------------- ##
2106## File substitutions. ##
2107## ------------------- ##
42ecbf5e
DJ
2108_ASBOX
2109 echo
2110 for ac_var in $ac_subst_files
2111 do
81ecdfbb
RW
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2117 done | sort
2118 echo
2119 fi
2120
2121 if test -s confdefs.h; then
2122 cat <<\_ASBOX
2123## ----------- ##
2124## confdefs.h. ##
2125## ----------- ##
2126_ASBOX
2127 echo
81ecdfbb 2128 cat confdefs.h
42ecbf5e
DJ
2129 echo
2130 fi
2131 test "$ac_signal" != 0 &&
81ecdfbb
RW
2132 $as_echo "$as_me: caught signal $ac_signal"
2133 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2134 } >&5
81ecdfbb
RW
2135 rm -f core *.core core.conftest.* &&
2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2137 exit $exit_status
81ecdfbb 2138' 0
42ecbf5e 2139for ac_signal in 1 2 13 15; do
81ecdfbb 2140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2141done
2142ac_signal=0
2143
2144# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2145rm -f -r conftest* confdefs.h
2146
2147$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2148
2149# Predefined preprocessor variables.
2150
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_NAME "$PACKAGE_NAME"
2153_ACEOF
2154
42ecbf5e
DJ
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157_ACEOF
2158
42ecbf5e
DJ
2159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_VERSION "$PACKAGE_VERSION"
2161_ACEOF
2162
42ecbf5e
DJ
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_STRING "$PACKAGE_STRING"
2165_ACEOF
2166
42ecbf5e
DJ
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169_ACEOF
2170
81ecdfbb
RW
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_URL "$PACKAGE_URL"
2173_ACEOF
2174
42ecbf5e
DJ
2175
2176# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2177# Prefer an explicitly selected file to automatically selected ones.
2178ac_site_file1=NONE
2179ac_site_file2=NONE
2180if test -n "$CONFIG_SITE"; then
2181 ac_site_file1=$CONFIG_SITE
2182elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2188fi
2189for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190do
2191 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2192 if test -r "$ac_site_file"; then
81ecdfbb
RW
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file"
2197 fi
2198done
2199
2200if test -r "$cache_file"; then
2201 # Some versions of bash will fail to source /dev/null (special
2202 # files actually), so we avoid doing that.
2203 if test -f "$cache_file"; then
81ecdfbb
RW
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2206 case $cache_file in
81ecdfbb
RW
2207 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208 *) . "./$cache_file";;
42ecbf5e
DJ
2209 esac
2210 fi
2211else
81ecdfbb
RW
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2214 >$cache_file
2215fi
2216
2217# Check that the precious variables saved in the cache have kept the same
2218# value.
2219ac_cache_corrupted=false
81ecdfbb 2220for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2222 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2224 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2225 case $ac_old_set,$ac_new_set in
2226 set,)
81ecdfbb
RW
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2228$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2229 ac_cache_corrupted=: ;;
2230 ,set)
81ecdfbb
RW
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2232$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2233 ac_cache_corrupted=: ;;
2234 ,);;
2235 *)
2236 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2237 # differences in whitespace do not lead to failure.
2238 ac_old_val_w=`echo x $ac_old_val`
2239 ac_new_val_w=`echo x $ac_new_val`
2240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2242$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2243 ac_cache_corrupted=:
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2246$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2247 eval $ac_var=\$ac_old_val
2248 fi
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2250$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2252$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2253 fi;;
2254 esac
2255 # Pass precious variables to config.status.
2256 if test "$ac_new_set" = set; then
2257 case $ac_new_val in
81ecdfbb 2258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2259 *) ac_arg=$ac_var=$ac_new_val ;;
2260 esac
2261 case " $ac_configure_args " in
2262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2264 esac
2265 fi
2266done
2267if $ac_cache_corrupted; then
81ecdfbb
RW
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2271$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2273fi
81ecdfbb
RW
2274## -------------------- ##
2275## Main body of script. ##
2276## -------------------- ##
42ecbf5e
DJ
2277
2278ac_ext=c
2279ac_cpp='$CPP $CPPFLAGS'
2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
42ecbf5e 2286
da594c4a 2287
42ecbf5e
DJ
2288
2289
2290ac_aux_dir=
81ecdfbb
RW
2291for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2292 for ac_t in install-sh install.sh shtool; do
2293 if test -f "$ac_dir/$ac_t"; then
2294 ac_aux_dir=$ac_dir
2295 ac_install_sh="$ac_aux_dir/$ac_t -c"
2296 break 2
2297 fi
2298 done
42ecbf5e
DJ
2299done
2300if test -z "$ac_aux_dir"; then
81ecdfbb 2301 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2302fi
81ecdfbb
RW
2303
2304# These three variables are undocumented and unsupported,
2305# and are intended to be withdrawn in a future Autoconf release.
2306# They can cause serious problems if a builder's source tree is in a directory
2307# whose full name contains unusual characters.
2308ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2309ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2310ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311
42ecbf5e
DJ
2312
2313# Make sure we can run config.sub.
81ecdfbb
RW
2314$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2315 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2316
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2318$as_echo_n "checking build system type... " >&6; }
2319if test "${ac_cv_build+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321else
2322 ac_build_alias=$build_alias
2323test "x$ac_build_alias" = x &&
2324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2325test "x$ac_build_alias" = x &&
2326 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2327ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2328 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329
2330fi
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2332$as_echo "$ac_cv_build" >&6; }
2333case $ac_cv_build in
2334*-*-*) ;;
2335*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2336esac
42ecbf5e 2337build=$ac_cv_build
81ecdfbb
RW
2338ac_save_IFS=$IFS; IFS='-'
2339set x $ac_cv_build
2340shift
2341build_cpu=$1
2342build_vendor=$2
2343shift; shift
2344# Remember, the first character of IFS is used to create $*,
2345# except with old shells:
2346build_os=$*
2347IFS=$ac_save_IFS
2348case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2349
2350
81ecdfbb
RW
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2352$as_echo_n "checking host system type... " >&6; }
2353if test "${ac_cv_host+set}" = set; then :
2354 $as_echo_n "(cached) " >&6
42ecbf5e 2355else
81ecdfbb
RW
2356 if test "x$host_alias" = x; then
2357 ac_cv_host=$ac_cv_build
2358else
2359 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2360 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2361fi
42ecbf5e
DJ
2362
2363fi
81ecdfbb
RW
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2365$as_echo "$ac_cv_host" >&6; }
2366case $ac_cv_host in
2367*-*-*) ;;
2368*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2369esac
42ecbf5e 2370host=$ac_cv_host
81ecdfbb
RW
2371ac_save_IFS=$IFS; IFS='-'
2372set x $ac_cv_host
2373shift
2374host_cpu=$1
2375host_vendor=$2
2376shift; shift
2377# Remember, the first character of IFS is used to create $*,
2378# except with old shells:
2379host_os=$*
2380IFS=$ac_save_IFS
2381case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2382
2383
81ecdfbb
RW
2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2385$as_echo_n "checking target system type... " >&6; }
2386if test "${ac_cv_target+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
2388else
2389 if test "x$target_alias" = x; then
2390 ac_cv_target=$ac_cv_host
42ecbf5e 2391else
81ecdfbb
RW
2392 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2393 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2394fi
42ecbf5e
DJ
2395
2396fi
81ecdfbb
RW
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2398$as_echo "$ac_cv_target" >&6; }
2399case $ac_cv_target in
2400*-*-*) ;;
2401*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2402esac
42ecbf5e 2403target=$ac_cv_target
81ecdfbb
RW
2404ac_save_IFS=$IFS; IFS='-'
2405set x $ac_cv_target
2406shift
2407target_cpu=$1
2408target_vendor=$2
2409shift; shift
2410# Remember, the first character of IFS is used to create $*,
2411# except with old shells:
2412target_os=$*
2413IFS=$ac_save_IFS
2414case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2415
2416
2417# The aliases save the names the user supplied, while $host etc.
2418# will get canonicalized.
2419test -n "$target_alias" &&
2420 test "$program_prefix$program_suffix$program_transform_name" = \
2421 NONENONEs,x,x, &&
2422 program_prefix=${target_alias}-
2423ac_ext=c
2424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432$as_echo_n "checking for $ac_word... " >&6; }
2433if test "${ac_cv_prog_CC+set}" = set; then :
2434 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2435else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2448 break 2
2449 fi
2450done
81ecdfbb
RW
2451 done
2452IFS=$as_save_IFS
42ecbf5e
DJ
2453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
81ecdfbb
RW
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459$as_echo "$CC" >&6; }
42ecbf5e 2460else
81ecdfbb
RW
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462$as_echo "no" >&6; }
42ecbf5e
DJ
2463fi
2464
81ecdfbb 2465
42ecbf5e
DJ
2466fi
2467if test -z "$ac_cv_prog_CC"; then
2468 ac_ct_CC=$CC
2469 # Extract the first word of "gcc", so it can be a program name with args.
2470set dummy gcc; ac_word=$2
81ecdfbb
RW
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472$as_echo_n "checking for $ac_word... " >&6; }
2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2475else
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2486 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2488 break 2
2489 fi
2490done
81ecdfbb
RW
2491 done
2492IFS=$as_save_IFS
42ecbf5e
DJ
2493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2499$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2500else
81ecdfbb
RW
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502$as_echo "no" >&6; }
42ecbf5e
DJ
2503fi
2504
81ecdfbb
RW
2505 if test "x$ac_ct_CC" = x; then
2506 CC=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509yes:)
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2512ac_tool_warned=yes ;;
2513esac
2514 CC=$ac_ct_CC
2515 fi
42ecbf5e
DJ
2516else
2517 CC="$ac_cv_prog_CC"
2518fi
2519
2520if test -z "$CC"; then
81ecdfbb
RW
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2523set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525$as_echo_n "checking for $ac_word... " >&6; }
2526if test "${ac_cv_prog_CC+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2528else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2539 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2541 break 2
2542 fi
2543done
81ecdfbb
RW
2544 done
2545IFS=$as_save_IFS
42ecbf5e
DJ
2546
2547fi
2548fi
2549CC=$ac_cv_prog_CC
2550if test -n "$CC"; then
81ecdfbb
RW
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552$as_echo "$CC" >&6; }
42ecbf5e 2553else
81ecdfbb
RW
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555$as_echo "no" >&6; }
42ecbf5e
DJ
2556fi
2557
81ecdfbb
RW
2558
2559 fi
42ecbf5e 2560fi
81ecdfbb 2561if test -z "$CC"; then
42ecbf5e
DJ
2562 # Extract the first word of "cc", so it can be a program name with args.
2563set dummy cc; ac_word=$2
81ecdfbb
RW
2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565$as_echo_n "checking for $ac_word... " >&6; }
2566if test "${ac_cv_prog_CC+set}" = set; then :
2567 $as_echo_n "(cached) " >&6
42ecbf5e 2568else
81ecdfbb
RW
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC="$CC" # Let the user override the test.
42ecbf5e 2571else
81ecdfbb 2572 ac_prog_rejected=no
42ecbf5e
DJ
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2581 ac_prog_rejected=yes
2582 continue
2583 fi
2584 ac_cv_prog_CC="cc"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2586 break 2
2587 fi
2588done
81ecdfbb
RW
2589 done
2590IFS=$as_save_IFS
42ecbf5e
DJ
2591
2592if test $ac_prog_rejected = yes; then
2593 # We found a bogon in the path, so make sure we never use it.
2594 set dummy $ac_cv_prog_CC
2595 shift
2596 if test $# != 0; then
2597 # We chose a different compiler from the bogus one.
2598 # However, it has the same basename, so the bogon will be chosen
2599 # first if we set CC to just the basename; use the full file name.
2600 shift
2601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2602 fi
2603fi
2604fi
2605fi
2606CC=$ac_cv_prog_CC
2607if test -n "$CC"; then
81ecdfbb
RW
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609$as_echo "$CC" >&6; }
42ecbf5e 2610else
81ecdfbb
RW
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
42ecbf5e
DJ
2613fi
2614
81ecdfbb 2615
42ecbf5e
DJ
2616fi
2617if test -z "$CC"; then
2618 if test -n "$ac_tool_prefix"; then
81ecdfbb 2619 for ac_prog in cl.exe
42ecbf5e
DJ
2620 do
2621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2622set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624$as_echo_n "checking for $ac_word... " >&6; }
2625if test "${ac_cv_prog_CC+set}" = set; then :
2626 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2627else
2628 if test -n "$CC"; then
2629 ac_cv_prog_CC="$CC" # Let the user override the test.
2630else
2631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632for as_dir in $PATH
2633do
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2638 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2640 break 2
2641 fi
2642done
81ecdfbb
RW
2643 done
2644IFS=$as_save_IFS
42ecbf5e
DJ
2645
2646fi
2647fi
2648CC=$ac_cv_prog_CC
2649if test -n "$CC"; then
81ecdfbb
RW
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2651$as_echo "$CC" >&6; }
42ecbf5e 2652else
81ecdfbb
RW
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654$as_echo "no" >&6; }
42ecbf5e
DJ
2655fi
2656
81ecdfbb 2657
42ecbf5e
DJ
2658 test -n "$CC" && break
2659 done
2660fi
2661if test -z "$CC"; then
2662 ac_ct_CC=$CC
81ecdfbb 2663 for ac_prog in cl.exe
42ecbf5e
DJ
2664do
2665 # Extract the first word of "$ac_prog", so it can be a program name with args.
2666set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668$as_echo_n "checking for $ac_word... " >&6; }
2669if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2671else
2672 if test -n "$ac_ct_CC"; then
2673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2674else
2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676for as_dir in $PATH
2677do
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2682 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2684 break 2
2685 fi
2686done
81ecdfbb
RW
2687 done
2688IFS=$as_save_IFS
42ecbf5e
DJ
2689
2690fi
2691fi
2692ac_ct_CC=$ac_cv_prog_ac_ct_CC
2693if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2695$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2696else
81ecdfbb
RW
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698$as_echo "no" >&6; }
42ecbf5e
DJ
2699fi
2700
81ecdfbb 2701
42ecbf5e
DJ
2702 test -n "$ac_ct_CC" && break
2703done
2704
81ecdfbb
RW
2705 if test "x$ac_ct_CC" = x; then
2706 CC=""
2707 else
2708 case $cross_compiling:$ac_tool_warned in
2709yes:)
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2712ac_tool_warned=yes ;;
2713esac
2714 CC=$ac_ct_CC
2715 fi
42ecbf5e
DJ
2716fi
2717
2718fi
2719
2720
81ecdfbb
RW
2721test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723as_fn_error "no acceptable C compiler found in \$PATH
2724See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2725
2726# Provide some information about the compiler.
81ecdfbb
RW
2727$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2728set X $ac_compile
2729ac_compiler=$2
2730for ac_option in --version -v -V -qversion; do
2731 { { ac_try="$ac_compiler $ac_option >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737$as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 2739 ac_status=$?
81ecdfbb
RW
2740 if test -s conftest.err; then
2741 sed '10a\
2742... rest of stderr output deleted ...
2743 10q' conftest.err >conftest.er1
2744 cat conftest.er1 >&5
2745 rm -f conftest.er1 conftest.err
2746 fi
2747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2748 test $ac_status = 0; }
2749done
42ecbf5e 2750
81ecdfbb 2751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2752/* end confdefs.h. */
2753
2754int
2755main ()
2756{
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762ac_clean_files_save=$ac_clean_files
81ecdfbb 2763ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
2764# Try to create an executable without -o first, disregard a.out.
2765# It will help us diagnose broken compilers, and finding out an intuition
2766# of exeext.
81ecdfbb
RW
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2768$as_echo_n "checking for C compiler default output file name... " >&6; }
2769ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2770
2771# The possible output files:
2772ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2773
2774ac_rmfiles=
2775for ac_file in $ac_files
2776do
2777 case $ac_file in
2778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2779 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2780 esac
2781done
2782rm -f $ac_rmfiles
2783
2784if { { ac_try="$ac_link_default"
2785case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788esac
2789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790$as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_link_default") 2>&5
2792 ac_status=$?
2793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794 test $ac_status = 0; }; then :
2795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797# in a Makefile. We should not override ac_cv_exeext if it was cached,
2798# so that the user can short-circuit this test for compilers unknown to
2799# Autoconf.
2800for ac_file in $ac_files ''
42ecbf5e
DJ
2801do
2802 test -f "$ac_file" || continue
2803 case $ac_file in
81ecdfbb 2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
2805 ;;
2806 [ab].out )
2807 # We found the default executable, but exeext='' is most
2808 # certainly right.
2809 break;;
2810 *.* )
81ecdfbb
RW
2811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812 then :; else
2813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814 fi
2815 # We set ac_cv_exeext here because the later test for it is not
2816 # safe: cross compilers may not add the suffix if given an `-o'
2817 # argument, so we may need to know it at that point already.
2818 # Even if this section looks crufty: it has the advantage of
2819 # actually working.
42ecbf5e
DJ
2820 break;;
2821 * )
2822 break;;
2823 esac
2824done
81ecdfbb
RW
2825test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
42ecbf5e 2827else
81ecdfbb
RW
2828 ac_file=''
2829fi
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2831$as_echo "$ac_file" >&6; }
2832if test -z "$ac_file"; then :
2833 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
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;}
2838{ as_fn_set_status 77
2839as_fn_error "C compiler cannot create executables
2840See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 2841fi
42ecbf5e 2842ac_exeext=$ac_cv_exeext
42ecbf5e 2843
81ecdfbb 2844# Check that the compiler produces executables we can run. If not, either
42ecbf5e 2845# the compiler is broken, or we cross compile.
81ecdfbb
RW
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2847$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
2848# If not cross compiling, check that we can run a simple program.
2849if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
81ecdfbb
RW
2851 { { case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2856$as_echo "$ac_try_echo"; } >&5
2857 (eval "$ac_try") 2>&5
42ecbf5e 2858 ac_status=$?
81ecdfbb
RW
2859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2860 test $ac_status = 0; }; }; then
42ecbf5e
DJ
2861 cross_compiling=no
2862 else
2863 if test "$cross_compiling" = maybe; then
2864 cross_compiling=yes
2865 else
81ecdfbb
RW
2866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868as_fn_error "cannot run C compiled programs.
42ecbf5e 2869If you meant to cross compile, use \`--host'.
81ecdfbb 2870See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
2871 fi
2872 fi
2873fi
81ecdfbb
RW
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875$as_echo "yes" >&6; }
42ecbf5e 2876
81ecdfbb 2877rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 2878ac_clean_files=$ac_clean_files_save
81ecdfbb 2879# Check that the compiler produces executables we can run. If not, either
42ecbf5e 2880# the compiler is broken, or we cross compile.
81ecdfbb
RW
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2882$as_echo_n "checking whether we are cross compiling... " >&6; }
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2884$as_echo "$cross_compiling" >&6; }
2885
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2887$as_echo_n "checking for suffix of executables... " >&6; }
2888if { { ac_try="$ac_link"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2894$as_echo "$ac_try_echo"; } >&5
2895 (eval "$ac_link") 2>&5
42ecbf5e 2896 ac_status=$?
81ecdfbb
RW
2897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898 test $ac_status = 0; }; then :
42ecbf5e
DJ
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901# work properly (i.e., refer to `conftest.exe'), while it won't with
2902# `rm'.
2903for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
2905 case $ac_file in
81ecdfbb 2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 2907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
2908 break;;
2909 * ) break;;
2910 esac
2911done
2912else
81ecdfbb
RW
2913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915as_fn_error "cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 2917fi
42ecbf5e 2918rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2920$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
2921
2922rm -f conftest.$ac_ext
2923EXEEXT=$ac_cv_exeext
2924ac_exeext=$EXEEXT
81ecdfbb
RW
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2926$as_echo_n "checking for suffix of object files... " >&6; }
2927if test "${ac_cv_objext+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
42ecbf5e 2929else
81ecdfbb 2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2931/* end confdefs.h. */
2932
2933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.o conftest.obj
81ecdfbb
RW
2942if { { ac_try="$ac_compile"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948$as_echo "$ac_try_echo"; } >&5
2949 (eval "$ac_compile") 2>&5
2950 ac_status=$?
2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952 test $ac_status = 0; }; then :
2953 for ac_file in conftest.o conftest.obj conftest.*; do
2954 test -f "$ac_file" || continue;
42ecbf5e 2955 case $ac_file in
81ecdfbb 2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
2957 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 break;;
2959 esac
2960done
2961else
81ecdfbb 2962 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
81ecdfbb
RW
2965{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2966$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2967as_fn_error "cannot compute suffix of object files: cannot compile
2968See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 2969fi
42ecbf5e
DJ
2970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
81ecdfbb
RW
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2973$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
2974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
81ecdfbb
RW
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2977$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2978if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
42ecbf5e 2980else
81ecdfbb 2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
2982/* end confdefs.h. */
2983
2984int
2985main ()
2986{
2987#ifndef __GNUC__
2988 choke me
2989#endif
2990
2991 ;
2992 return 0;
2993}
2994_ACEOF
81ecdfbb 2995if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
2996 ac_compiler_gnu=yes
2997else
81ecdfbb 2998 ac_compiler_gnu=no
42ecbf5e 2999fi
81ecdfbb 3000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3001ac_cv_c_compiler_gnu=$ac_compiler_gnu
3002
3003fi
81ecdfbb
RW
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3005$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3006if test $ac_compiler_gnu = yes; then
3007 GCC=yes
3008else
3009 GCC=
3010fi
42ecbf5e
DJ
3011ac_test_CFLAGS=${CFLAGS+set}
3012ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3014$as_echo_n "checking whether $CC accepts -g... " >&6; }
3015if test "${ac_cv_prog_cc_g+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017else
3018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3020 ac_cv_prog_cc_g=no
3021 CFLAGS="-g"
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3023/* end confdefs.h. */
3024
3025int
3026main ()
3027{
3028
3029 ;
3030 return 0;
3031}
3032_ACEOF
81ecdfbb 3033if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3034 ac_cv_prog_cc_g=yes
3035else
81ecdfbb
RW
3036 CFLAGS=""
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038/* end confdefs.h. */
3039
3040int
3041main ()
3042{
3043
3044 ;
3045 return 0;
3046}
3047_ACEOF
3048if ac_fn_c_try_compile "$LINENO"; then :
3049
3050else
3051 ac_c_werror_flag=$ac_save_c_werror_flag
3052 CFLAGS="-g"
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h. */
3055
3056int
3057main ()
3058{
42ecbf5e 3059
81ecdfbb
RW
3060 ;
3061 return 0;
3062}
3063_ACEOF
3064if ac_fn_c_try_compile "$LINENO"; then :
3065 ac_cv_prog_cc_g=yes
3066fi
3067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3068fi
81ecdfbb 3069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3070fi
81ecdfbb
RW
3071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3073fi
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3075$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3076if test "$ac_test_CFLAGS" = set; then
3077 CFLAGS=$ac_save_CFLAGS
3078elif test $ac_cv_prog_cc_g = yes; then
3079 if test "$GCC" = yes; then
3080 CFLAGS="-g -O2"
3081 else
3082 CFLAGS="-g"
3083 fi
3084else
3085 if test "$GCC" = yes; then
3086 CFLAGS="-O2"
3087 else
3088 CFLAGS=
3089 fi
3090fi
81ecdfbb
RW
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3092$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3093if test "${ac_cv_prog_cc_c89+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
42ecbf5e 3095else
81ecdfbb 3096 ac_cv_prog_cc_c89=no
42ecbf5e 3097ac_save_CC=$CC
81ecdfbb 3098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3099/* end confdefs.h. */
3100#include <stdarg.h>
3101#include <stdio.h>
3102#include <sys/types.h>
3103#include <sys/stat.h>
3104/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3105struct buf { int x; };
3106FILE * (*rcsopen) (struct buf *, struct stat *, int);
3107static char *e (p, i)
3108 char **p;
3109 int i;
3110{
3111 return p[i];
3112}
3113static char *f (char * (*g) (char **, int), char **p, ...)
3114{
3115 char *s;
3116 va_list v;
3117 va_start (v,p);
3118 s = g (p, va_arg (v,int));
3119 va_end (v);
3120 return s;
3121}
3122
3123/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3124 function prototypes and stuff, but not '\xHH' hex character constants.
3125 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3126 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3128 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3129 that's true only with -std. */
42ecbf5e
DJ
3130int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3131
81ecdfbb
RW
3132/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3133 inside strings and character constants. */
3134#define FOO(x) 'x'
3135int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3136
42ecbf5e
DJ
3137int test (int i, double x);
3138struct s1 {int (*f) (int a);};
3139struct s2 {int (*f) (double a);};
3140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3141int argc;
3142char **argv;
3143int
3144main ()
3145{
3146return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3147 ;
3148 return 0;
3149}
3150_ACEOF
81ecdfbb
RW
3151for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3153do
3154 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3155 if ac_fn_c_try_compile "$LINENO"; then :
3156 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3157fi
81ecdfbb
RW
3158rm -f core conftest.err conftest.$ac_objext
3159 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3160done
81ecdfbb 3161rm -f conftest.$ac_ext
42ecbf5e
DJ
3162CC=$ac_save_CC
3163
3164fi
81ecdfbb
RW
3165# AC_CACHE_VAL
3166case "x$ac_cv_prog_cc_c89" in
3167 x)
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3169$as_echo "none needed" >&6; } ;;
3170 xno)
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3172$as_echo "unsupported" >&6; } ;;
42ecbf5e 3173 *)
81ecdfbb
RW
3174 CC="$CC $ac_cv_prog_cc_c89"
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3176$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3177esac
81ecdfbb 3178if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3179
42ecbf5e
DJ
3180fi
3181
42ecbf5e
DJ
3182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187
3188
81ecdfbb
RW
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3190$as_echo_n "checking for library containing strerror... " >&6; }
3191if test "${ac_cv_search_strerror+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3193else
3194 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3196/* end confdefs.h. */
3197
81ecdfbb
RW
3198/* Override any GCC internal prototype to avoid an error.
3199 Use char because int might match the return type of a GCC
3200 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3201#ifdef __cplusplus
3202extern "C"
3203#endif
42ecbf5e
DJ
3204char strerror ();
3205int
3206main ()
3207{
81ecdfbb 3208return strerror ();
42ecbf5e
DJ
3209 ;
3210 return 0;
3211}
3212_ACEOF
81ecdfbb
RW
3213for ac_lib in '' cposix; do
3214 if test -z "$ac_lib"; then
3215 ac_res="none required"
3216 else
3217 ac_res=-l$ac_lib
42ecbf5e 3218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3219 fi
3220 if ac_fn_c_try_link "$LINENO"; then :
3221 ac_cv_search_strerror=$ac_res
3222fi
3223rm -f core conftest.err conftest.$ac_objext \
3224 conftest$ac_exeext
3225 if test "${ac_cv_search_strerror+set}" = set; then :
3226 break
3227fi
3228done
3229if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3230
42ecbf5e 3231else
81ecdfbb 3232 ac_cv_search_strerror=no
42ecbf5e 3233fi
81ecdfbb 3234rm conftest.$ac_ext
42ecbf5e
DJ
3235LIBS=$ac_func_search_save_LIBS
3236fi
81ecdfbb
RW
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3238$as_echo "$ac_cv_search_strerror" >&6; }
3239ac_res=$ac_cv_search_strerror
3240if test "$ac_res" != no; then :
3241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3242
3243fi
3244
3245
81ecdfbb
RW
3246am__api_version='1.11'
3247
42ecbf5e
DJ
3248# Find a good install program. We prefer a C program (faster),
3249# so one script is as good as another. But avoid the broken or
3250# incompatible versions:
3251# SysV /etc/install, /usr/sbin/install
3252# SunOS /usr/etc/install
3253# IRIX /sbin/install
3254# AIX /bin/install
3255# AmigaOS /C/install, which installs bootblocks on floppy discs
3256# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3257# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3258# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3259# OS/2's system install, which has a completely different semantic
3260# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3261# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3263$as_echo_n "checking for a BSD-compatible install... " >&6; }
42ecbf5e 3264if test -z "$INSTALL"; then
81ecdfbb
RW
3265if test "${ac_cv_path_install+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3267else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3273 # Account for people who put trailing slashes in PATH elements.
3274case $as_dir/ in #((
3275 ./ | .// | /[cC]/* | \
42ecbf5e 3276 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3277 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3278 /usr/ucb/* ) ;;
3279 *)
3280 # OSF1 and SCO ODT 3.0 have their own names for install.
3281 # Don't use installbsd from OSF since it installs stuff as root
3282 # by default.
3283 for ac_prog in ginstall scoinst install; do
3284 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
42ecbf5e
DJ
3286 if test $ac_prog = install &&
3287 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3288 # AIX install. It has an incompatible calling convention.
3289 :
42ecbf5e
DJ
3290 elif test $ac_prog = install &&
3291 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3292 # program-specific install script used by HP pwplus--don't use.
3293 :
252b5132 3294 else
58c85be7
RW
3295 rm -rf conftest.one conftest.two conftest.dir
3296 echo one > conftest.one
3297 echo two > conftest.two
3298 mkdir conftest.dir
3299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3300 test -s conftest.one && test -s conftest.two &&
3301 test -s conftest.dir/conftest.one &&
3302 test -s conftest.dir/conftest.two
3303 then
3304 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3305 break 3
3306 fi
252b5132
RH
3307 fi
3308 fi
d15b04bd 3309 done
42ecbf5e
DJ
3310 done
3311 ;;
3312esac
81ecdfbb
RW
3313
3314 done
3315IFS=$as_save_IFS
42ecbf5e 3316
58c85be7 3317rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3318
3319fi
3320 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3321 INSTALL=$ac_cv_path_install
252b5132 3322 else
58c85be7
RW
3323 # As a last resort, use the slow shell script. Don't cache a
3324 # value for INSTALL within a source directory, because that will
252b5132 3325 # break other packages using the cache if that directory is
58c85be7 3326 # removed, or if the value is a relative name.
42ecbf5e 3327 INSTALL=$ac_install_sh
252b5132
RH
3328 fi
3329fi
81ecdfbb
RW
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3331$as_echo "$INSTALL" >&6; }
252b5132
RH
3332
3333# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3334# It thinks the first close brace ends the variable substitution.
3335test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3336
42ecbf5e 3337test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3338
3339test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3340
81ecdfbb
RW
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3342$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3343# Just in case
3344sleep 1
42ecbf5e 3345echo timestamp > conftest.file
81ecdfbb
RW
3346# Reject unsafe characters in $srcdir or the absolute working directory
3347# name. Accept space and tab only in the latter.
3348am_lf='
3349'
3350case `pwd` in
3351 *[\\\"\#\$\&\'\`$am_lf]*)
3352 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3353esac
3354case $srcdir in
3355 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3356 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3357esac
3358
252b5132
RH
3359# Do `set' in a subshell so we don't clobber the current shell's
3360# arguments. Must try -L first in case configure is actually a
3361# symlink; some systems play weird games with the mod time of symlinks
3362# (eg FreeBSD returns the mod time of the symlink's containing
3363# directory).
3364if (
81ecdfbb 3365 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3366 if test "$*" = "X"; then
3367 # -L didn't work.
81ecdfbb 3368 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3369 fi
42ecbf5e
DJ
3370 rm -f conftest.file
3371 if test "$*" != "X $srcdir/configure conftest.file" \
3372 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3373
3374 # If neither matched, then we have a broken ls. This can happen
3375 # if, for instance, CONFIG_SHELL is bash and it inherits a
3376 # broken ls alias from the environment. This has actually
3377 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3378 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3379alias in your environment" "$LINENO" 5
252b5132
RH
3380 fi
3381
42ecbf5e 3382 test "$2" = conftest.file
252b5132
RH
3383 )
3384then
3385 # Ok.
3386 :
3387else
81ecdfbb
RW
3388 as_fn_error "newly created file is older than distributed files!
3389Check your system clock" "$LINENO" 5
42ecbf5e 3390fi
81ecdfbb
RW
3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392$as_echo "yes" >&6; }
42ecbf5e 3393test "$program_prefix" != NONE &&
81ecdfbb 3394 program_transform_name="s&^&$program_prefix&;$program_transform_name"
42ecbf5e
DJ
3395# Use a double $ so make ignores it.
3396test "$program_suffix" != NONE &&
81ecdfbb
RW
3397 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3398# Double any \ or $.
42ecbf5e 3399# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3400ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3401program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3402
3403# expand $ac_aux_dir to an absolute path
3404am_aux_dir=`cd $ac_aux_dir && pwd`
3405
81ecdfbb
RW
3406if test x"${MISSING+set}" != xset; then
3407 case $am_aux_dir in
3408 *\ * | *\ *)
3409 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3410 *)
3411 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3412 esac
3413fi
42ecbf5e
DJ
3414# Use eval to expand $SHELL
3415if eval "$MISSING --run true"; then
3416 am_missing_run="$MISSING --run "
3417else
3418 am_missing_run=
81ecdfbb
RW
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3420$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
42ecbf5e
DJ
3421fi
3422
81ecdfbb
RW
3423if test x"${install_sh}" != xset; then
3424 case $am_aux_dir in
3425 *\ * | *\ *)
3426 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3427 *)
3428 install_sh="\${SHELL} $am_aux_dir/install-sh"
3429 esac
3430fi
3431
3432# Installed binaries are usually stripped using `strip' when the user
3433# run `make install-strip'. However `strip' might not be the right
3434# tool to use in cross-compilation environments, therefore Automake
3435# will honor the `STRIP' environment variable to overrule this program.
3436if test "$cross_compiling" != no; then
3437 if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3439set dummy ${ac_tool_prefix}strip; ac_word=$2
3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441$as_echo_n "checking for $ac_word... " >&6; }
3442if test "${ac_cv_prog_STRIP+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
42ecbf5e 3444else
81ecdfbb
RW
3445 if test -n "$STRIP"; then
3446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
42ecbf5e
DJ
3447else
3448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449for as_dir in $PATH
3450do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459done
3460 done
3461IFS=$as_save_IFS
3462
3463fi
3464fi
3465STRIP=$ac_cv_prog_STRIP
3466if test -n "$STRIP"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3468$as_echo "$STRIP" >&6; }
3469else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471$as_echo "no" >&6; }
3472fi
3473
3474
3475fi
3476if test -z "$ac_cv_prog_STRIP"; then
3477 ac_ct_STRIP=$STRIP
3478 # Extract the first word of "strip", so it can be a program name with args.
3479set dummy strip; ac_word=$2
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481$as_echo_n "checking for $ac_word... " >&6; }
3482if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484else
3485 if test -n "$ac_ct_STRIP"; then
3486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3487else
3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_ac_ct_STRIP="strip"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3497 break 2
3498 fi
3499done
81ecdfbb
RW
3500 done
3501IFS=$as_save_IFS
3502
3503fi
3504fi
3505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3506if test -n "$ac_ct_STRIP"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3508$as_echo "$ac_ct_STRIP" >&6; }
3509else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511$as_echo "no" >&6; }
3512fi
3513
3514 if test "x$ac_ct_STRIP" = x; then
3515 STRIP=":"
3516 else
3517 case $cross_compiling:$ac_tool_warned in
3518yes:)
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521ac_tool_warned=yes ;;
3522esac
3523 STRIP=$ac_ct_STRIP
3524 fi
3525else
3526 STRIP="$ac_cv_prog_STRIP"
3527fi
3528
3529fi
3530INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3531
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3533$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3534if test -z "$MKDIR_P"; then
3535 if test "${ac_cv_path_mkdir+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3540do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_prog in mkdir gmkdir; do
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3546 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3547 'mkdir (GNU coreutils) '* | \
3548 'mkdir (coreutils) '* | \
3549 'mkdir (fileutils) '4.1*)
3550 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3551 break 3;;
3552 esac
3553 done
3554 done
3555 done
3556IFS=$as_save_IFS
3557
3558fi
3559
3560 if test "${ac_cv_path_mkdir+set}" = set; then
3561 MKDIR_P="$ac_cv_path_mkdir -p"
3562 else
3563 # As a last resort, use the slow shell script. Don't cache a
3564 # value for MKDIR_P within a source directory, because that will
3565 # break other packages using the cache if that directory is
3566 # removed, or if the value is a relative name.
3567 test -d ./--version && rmdir ./--version
3568 MKDIR_P="$ac_install_sh -d"
3569 fi
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3572$as_echo "$MKDIR_P" >&6; }
3573
3574mkdir_p="$MKDIR_P"
3575case $mkdir_p in
3576 [\\/$]* | ?:[\\/]*) ;;
3577 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3578esac
3579
3580for ac_prog in gawk mawk nawk awk
3581do
3582 # Extract the first word of "$ac_prog", so it can be a program name with args.
3583set dummy $ac_prog; ac_word=$2
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585$as_echo_n "checking for $ac_word... " >&6; }
3586if test "${ac_cv_prog_AWK+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588else
3589 if test -n "$AWK"; then
3590 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3591else
3592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593for as_dir in $PATH
3594do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_AWK="$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3602 fi
42ecbf5e 3603done
81ecdfbb
RW
3604 done
3605IFS=$as_save_IFS
42ecbf5e
DJ
3606
3607fi
3608fi
3609AWK=$ac_cv_prog_AWK
3610if test -n "$AWK"; then
81ecdfbb
RW
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3612$as_echo "$AWK" >&6; }
42ecbf5e 3613else
81ecdfbb
RW
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615$as_echo "no" >&6; }
42ecbf5e
DJ
3616fi
3617
81ecdfbb 3618
42ecbf5e
DJ
3619 test -n "$AWK" && break
3620done
3621
81ecdfbb
RW
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3623$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3624set x ${MAKE-make}
3625ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3626if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3627 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3628else
3629 cat >conftest.make <<\_ACEOF
81ecdfbb 3630SHELL = /bin/sh
42ecbf5e 3631all:
81ecdfbb 3632 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e
DJ
3633_ACEOF
3634# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3635case `${MAKE-make} -f conftest.make 2>/dev/null` in
3636 *@@@%%%=?*=@@@%%%*)
3637 eval ac_cv_prog_make_${ac_make}_set=yes;;
3638 *)
3639 eval ac_cv_prog_make_${ac_make}_set=no;;
3640esac
42ecbf5e
DJ
3641rm -f conftest.make
3642fi
81ecdfbb
RW
3643if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3645$as_echo "yes" >&6; }
42ecbf5e
DJ
3646 SET_MAKE=
3647else
81ecdfbb
RW
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
42ecbf5e
DJ
3650 SET_MAKE="MAKE=${MAKE-make}"
3651fi
3652
3653rm -rf .tst 2>/dev/null
3654mkdir .tst 2>/dev/null
3655if test -d .tst; then
3656 am__leading_dot=.
3657else
3658 am__leading_dot=_
3659fi
3660rmdir .tst 2>/dev/null
3661
3662DEPDIR="${am__leading_dot}deps"
3663
81ecdfbb 3664ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3665
3666
3667am_make=${MAKE-make}
3668cat > confinc << 'END'
3669am__doit:
81ecdfbb 3670 @echo this is the am__doit target
42ecbf5e
DJ
3671.PHONY: am__doit
3672END
3673# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3675$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3676am__include="#"
3677am__quote=
3678_am_result=none
3679# First try GNU make style include.
3680echo "include confinc" > confmf
81ecdfbb
RW
3681# Ignore all kinds of additional output from `make'.
3682case `$am_make -s -f confmf 2> /dev/null` in #(
3683*the\ am__doit\ target*)
3684 am__include=include
3685 am__quote=
3686 _am_result=GNU
3687 ;;
3688esac
42ecbf5e
DJ
3689# Now try BSD make style include.
3690if test "$am__include" = "#"; then
3691 echo '.include "confinc"' > confmf
81ecdfbb
RW
3692 case `$am_make -s -f confmf 2> /dev/null` in #(
3693 *the\ am__doit\ target*)
3694 am__include=.include
3695 am__quote="\""
3696 _am_result=BSD
3697 ;;
3698 esac
42ecbf5e
DJ
3699fi
3700
3701
81ecdfbb
RW
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3703$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
3704rm -f confinc confmf
3705
81ecdfbb
RW
3706# Check whether --enable-dependency-tracking was given.
3707if test "${enable_dependency_tracking+set}" = set; then :
3708 enableval=$enable_dependency_tracking;
3709fi
42ecbf5e 3710
42ecbf5e
DJ
3711if test "x$enable_dependency_tracking" != xno; then
3712 am_depcomp="$ac_aux_dir/depcomp"
3713 AMDEPBACKSLASH='\'
3714fi
81ecdfbb 3715 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
3716 AMDEP_TRUE=
3717 AMDEP_FALSE='#'
3718else
3719 AMDEP_TRUE='#'
3720 AMDEP_FALSE=
3721fi
3722
3723
81ecdfbb
RW
3724if test "`cd $srcdir && pwd`" != "`pwd`"; then
3725 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3726 # is not polluted with repeated "-I."
3727 am__isrc=' -I$(srcdir)'
3728 # test to see if srcdir already configured
3729 if test -f $srcdir/config.status; then
3730 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3731 fi
42ecbf5e
DJ
3732fi
3733
3734# test whether we have cygpath
3735if test -z "$CYGPATH_W"; then
3736 if (cygpath --version) >/dev/null 2>/dev/null; then
3737 CYGPATH_W='cygpath -w'
3738 else
3739 CYGPATH_W=echo
3740 fi
3741fi
3742
3743
3744# Define the identity of the package.
2e98a7bd 3745 PACKAGE='binutils'
91dc4e0a 3746 VERSION='2.25.51'
42ecbf5e
DJ
3747
3748
3749cat >>confdefs.h <<_ACEOF
3750#define PACKAGE "$PACKAGE"
3751_ACEOF
3752
3753
3754cat >>confdefs.h <<_ACEOF
3755#define VERSION "$VERSION"
3756_ACEOF
3757
3758# Some tools Automake needs.
3759
3760ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3761
3762
3763AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3764
3765
3766AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3767
3768
3769AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3770
3771
3772MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3773
42ecbf5e
DJ
3774# We need awk for the "check" target. The system "awk" is bad on
3775# some platforms.
3776# Always define AMTAR for backward compatibility.
252b5132 3777
42ecbf5e 3778AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 3779
42ecbf5e 3780am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
3781
3782
3783
252b5132 3784
42ecbf5e
DJ
3785depcc="$CC" am_compiler_list=
3786
81ecdfbb
RW
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788$as_echo_n "checking dependency style of $depcc... " >&6; }
3789if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
252b5132 3791else
42ecbf5e
DJ
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3797 # in D'.
3798 mkdir conftest.dir
3799 # Copy depcomp to subdir because otherwise we won't find it if we're
3800 # using a relative directory.
3801 cp "$am_depcomp" conftest.dir
3802 cd conftest.dir
3803 # We will build objects and dependencies in a subdirectory because
3804 # it helps to detect inapplicable dependency modes. For instance
3805 # both Tru64's cc and ICC support -MD to output dependencies as a
3806 # side effect of compilation, but ICC will put the dependencies in
3807 # the current directory while Tru64 will put them in the object
3808 # directory.
3809 mkdir sub
252b5132 3810
42ecbf5e
DJ
3811 am_cv_CC_dependencies_compiler_type=none
3812 if test "$am_compiler_list" = ""; then
3813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814 fi
81ecdfbb
RW
3815 am__universal=false
3816 case " $depcc " in #(
3817 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3818 esac
3819
42ecbf5e
DJ
3820 for depmode in $am_compiler_list; do
3821 # Setup a source with many dependencies, because some compilers
3822 # like to wrap large dependency lists on column 80 (with \), and
3823 # we should not choose a depcomp mode which is confused by this.
3824 #
3825 # We need to recreate these files for each test, as the compiler may
3826 # overwrite some of them when testing with obscure command lines.
3827 # This happens at least with the AIX C compiler.
3828 : > sub/conftest.c
3829 for i in 1 2 3 4 5 6; do
3830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3832 # Solaris 8's {/usr,}/bin/sh.
3833 touch sub/conftst$i.h
3834 done
3835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3836
81ecdfbb
RW
3837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838 # mode. It turns out that the SunPro C++ compiler does not properly
3839 # handle `-M -o', and we need to detect this. Also, some Intel
3840 # versions had trouble with output in subdirs
3841 am__obj=sub/conftest.${OBJEXT-o}
3842 am__minus_obj="-o $am__obj"
42ecbf5e 3843 case $depmode in
81ecdfbb
RW
3844 gcc)
3845 # This depmode causes a compiler race in universal mode.
3846 test "$am__universal" = false || continue
3847 ;;
42ecbf5e
DJ
3848 nosideeffect)
3849 # after this tag, mechanisms are not by side-effect, so they'll
3850 # only be used when explicitly requested
3851 if test "x$enable_dependency_tracking" = xyes; then
3852 continue
3853 else
3854 break
3855 fi
3856 ;;
81ecdfbb
RW
3857 msvisualcpp | msvcmsys)
3858 # This compiler won't grok `-c -o', but also, the minuso test has
3859 # not run yet. These depmodes are late enough in the game, and
3860 # so weak that their functioning should not be impacted.
3861 am__obj=conftest.${OBJEXT-o}
3862 am__minus_obj=
3863 ;;
42ecbf5e
DJ
3864 none) break ;;
3865 esac
42ecbf5e 3866 if depmode=$depmode \
81ecdfbb 3867 source=sub/conftest.c object=$am__obj \
42ecbf5e 3868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 3870 >/dev/null 2>conftest.err &&
81ecdfbb 3871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 3872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
3874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875 # icc doesn't choke on unknown options, it will just issue warnings
3876 # or remarks (even with -Werror). So we grep stderr for any message
3877 # that says an option was ignored or not supported.
3878 # When given -MP, icc 7.0 and 7.1 complain thusly:
3879 # icc: Command line warning: ignoring option '-M'; no argument required
3880 # The diagnosis changed in icc 8.0:
3881 # icc: Command line remark: option '-MP' not supported
3882 if (grep 'ignoring option' conftest.err ||
3883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884 am_cv_CC_dependencies_compiler_type=$depmode
3885 break
3886 fi
3887 fi
3888 done
3889
3890 cd ..
3891 rm -rf conftest.dir
252b5132 3892else
42ecbf5e 3893 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3894fi
3895
252b5132 3896fi
81ecdfbb
RW
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
3899CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900
81ecdfbb 3901 if
42ecbf5e
DJ
3902 test "x$enable_dependency_tracking" != xno \
3903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3904 am__fastdepCC_TRUE=
3905 am__fastdepCC_FALSE='#'
252b5132 3906else
42ecbf5e
DJ
3907 am__fastdepCC_TRUE='#'
3908 am__fastdepCC_FALSE=
252b5132
RH
3909fi
3910
3911
3912
42ecbf5e 3913
d45dc31f
SE
3914ac_ext=c
3915ac_cpp='$CPP $CPPFLAGS'
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3921set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923$as_echo_n "checking for $ac_word... " >&6; }
3924if test "${ac_cv_prog_CC+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
252b5132 3926else
d45dc31f
SE
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
1a09a22c 3929else
d45dc31f
SE
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 3937 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3939 break 2
3940 fi
3941done
81ecdfbb
RW
3942 done
3943IFS=$as_save_IFS
ceae3e33 3944
d45dc31f
SE
3945fi
3946fi
3947CC=$ac_cv_prog_CC
3948if test -n "$CC"; then
81ecdfbb
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950$as_echo "$CC" >&6; }
252b5132 3951else
81ecdfbb
RW
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953$as_echo "no" >&6; }
252b5132 3954fi
d45dc31f 3955
81ecdfbb 3956
d45dc31f
SE
3957fi
3958if test -z "$ac_cv_prog_CC"; then
3959 ac_ct_CC=$CC
3960 # Extract the first word of "gcc", so it can be a program name with args.
3961set dummy gcc; ac_word=$2
81ecdfbb
RW
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
3964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
252b5132 3966else
d45dc31f
SE
3967 if test -n "$ac_ct_CC"; then
3968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3969else
d45dc31f
SE
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 3977 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
3979 break 2
3980 fi
3981done
81ecdfbb
RW
3982 done
3983IFS=$as_save_IFS
d45dc31f 3984
252b5132
RH
3985fi
3986fi
d45dc31f
SE
3987ac_ct_CC=$ac_cv_prog_ac_ct_CC
3988if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3990$as_echo "$ac_ct_CC" >&6; }
252b5132 3991else
81ecdfbb
RW
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
252b5132 3994fi
d45dc31f 3995
81ecdfbb
RW
3996 if test "x$ac_ct_CC" = x; then
3997 CC=""
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003ac_tool_warned=yes ;;
4004esac
4005 CC=$ac_ct_CC
4006 fi
d45dc31f
SE
4007else
4008 CC="$ac_cv_prog_CC"
4009fi
4010
4011if test -z "$CC"; then
81ecdfbb
RW
4012 if test -n "$ac_tool_prefix"; then
4013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d45dc31f 4014set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016$as_echo_n "checking for $ac_word... " >&6; }
4017if test "${ac_cv_prog_CC+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
252b5132 4019else
d45dc31f
SE
4020 if test -n "$CC"; then
4021 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4022else
d45dc31f
SE
4023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4030 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4032 break 2
4033 fi
4034done
81ecdfbb
RW
4035 done
4036IFS=$as_save_IFS
d45dc31f 4037
252b5132
RH
4038fi
4039fi
d45dc31f
SE
4040CC=$ac_cv_prog_CC
4041if test -n "$CC"; then
81ecdfbb
RW
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4043$as_echo "$CC" >&6; }
d45dc31f 4044else
81ecdfbb
RW
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4046$as_echo "no" >&6; }
252b5132
RH
4047fi
4048
252b5132 4049
81ecdfbb 4050 fi
d45dc31f
SE
4051fi
4052if test -z "$CC"; then
4053 # Extract the first word of "cc", so it can be a program name with args.
4054set dummy cc; ac_word=$2
81ecdfbb
RW
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
4057if test "${ac_cv_prog_CC+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
252b5132 4059else
d45dc31f
SE
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4062else
4063 ac_prog_rejected=no
4064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f
SE
4071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4072 ac_prog_rejected=yes
4073 continue
4074 fi
4075 ac_cv_prog_CC="cc"
81ecdfbb 4076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4077 break 2
4078 fi
4079done
81ecdfbb
RW
4080 done
4081IFS=$as_save_IFS
d45dc31f
SE
4082
4083if test $ac_prog_rejected = yes; then
4084 # We found a bogon in the path, so make sure we never use it.
4085 set dummy $ac_cv_prog_CC
4086 shift
4087 if test $# != 0; then
4088 # We chose a different compiler from the bogus one.
4089 # However, it has the same basename, so the bogon will be chosen
4090 # first if we set CC to just the basename; use the full file name.
4091 shift
4092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4093 fi
4094fi
4095fi
4096fi
4097CC=$ac_cv_prog_CC
4098if test -n "$CC"; then
81ecdfbb
RW
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4100$as_echo "$CC" >&6; }
d45dc31f 4101else
81ecdfbb
RW
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
252b5132
RH
4104fi
4105
81ecdfbb 4106
d45dc31f
SE
4107fi
4108if test -z "$CC"; then
4109 if test -n "$ac_tool_prefix"; then
81ecdfbb 4110 for ac_prog in cl.exe
d45dc31f
SE
4111 do
4112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115$as_echo_n "checking for $ac_word... " >&6; }
4116if test "${ac_cv_prog_CC+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
ac48eca1 4118else
d45dc31f
SE
4119 if test -n "$CC"; then
4120 ac_cv_prog_CC="$CC" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4131 break 2
4132 fi
4133done
81ecdfbb
RW
4134 done
4135IFS=$as_save_IFS
ac48eca1 4136
d45dc31f
SE
4137fi
4138fi
4139CC=$ac_cv_prog_CC
4140if test -n "$CC"; then
81ecdfbb
RW
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4142$as_echo "$CC" >&6; }
d45dc31f 4143else
81ecdfbb
RW
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
d45dc31f 4146fi
ac48eca1 4147
81ecdfbb 4148
d45dc31f
SE
4149 test -n "$CC" && break
4150 done
4151fi
4152if test -z "$CC"; then
4153 ac_ct_CC=$CC
81ecdfbb 4154 for ac_prog in cl.exe
d45dc31f
SE
4155do
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
4160if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
d45dc31f
SE
4162else
4163 if test -n "$ac_ct_CC"; then
4164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4165else
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 4173 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
4175 break 2
4176 fi
4177done
81ecdfbb
RW
4178 done
4179IFS=$as_save_IFS
ac48eca1 4180
d45dc31f
SE
4181fi
4182fi
4183ac_ct_CC=$ac_cv_prog_ac_ct_CC
4184if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4186$as_echo "$ac_ct_CC" >&6; }
d45dc31f 4187else
81ecdfbb
RW
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189$as_echo "no" >&6; }
d45dc31f 4190fi
ac48eca1 4191
81ecdfbb 4192
d45dc31f
SE
4193 test -n "$ac_ct_CC" && break
4194done
ac48eca1 4195
81ecdfbb
RW
4196 if test "x$ac_ct_CC" = x; then
4197 CC=""
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200yes:)
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203ac_tool_warned=yes ;;
4204esac
4205 CC=$ac_ct_CC
4206 fi
d45dc31f 4207fi
ac48eca1
AO
4208
4209fi
ac48eca1 4210
ac48eca1 4211
81ecdfbb
RW
4212test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4214as_fn_error "no acceptable C compiler found in \$PATH
4215See \`config.log' for more details." "$LINENO" 5; }
ac48eca1 4216
d45dc31f 4217# Provide some information about the compiler.
81ecdfbb
RW
4218$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4219set X $ac_compile
4220ac_compiler=$2
4221for ac_option in --version -v -V -qversion; do
4222 { { ac_try="$ac_compiler $ac_option >&5"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228$as_echo "$ac_try_echo"; } >&5
4229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
d45dc31f 4230 ac_status=$?
81ecdfbb
RW
4231 if test -s conftest.err; then
4232 sed '10a\
4233... rest of stderr output deleted ...
4234 10q' conftest.err >conftest.er1
4235 cat conftest.er1 >&5
4236 rm -f conftest.er1 conftest.err
4237 fi
4238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4239 test $ac_status = 0; }
4240done
ac48eca1 4241
81ecdfbb
RW
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4243$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4244if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
bdcfeba5 4246else
81ecdfbb 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 4248/* end confdefs.h. */
bdcfeba5 4249
d45dc31f
SE
4250int
4251main ()
4252{
4253#ifndef __GNUC__
4254 choke me
4255#endif
bdcfeba5 4256
d45dc31f
SE
4257 ;
4258 return 0;
4259}
4260_ACEOF
81ecdfbb 4261if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f
SE
4262 ac_compiler_gnu=yes
4263else
81ecdfbb 4264 ac_compiler_gnu=no
bdcfeba5 4265fi
81ecdfbb 4266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d45dc31f 4267ac_cv_c_compiler_gnu=$ac_compiler_gnu
bdcfeba5 4268
bdcfeba5 4269fi
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4271$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4272if test $ac_compiler_gnu = yes; then
4273 GCC=yes
4274else
4275 GCC=
4276fi
d45dc31f
SE
4277ac_test_CFLAGS=${CFLAGS+set}
4278ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4280$as_echo_n "checking whether $CC accepts -g... " >&6; }
4281if test "${ac_cv_prog_cc_g+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283else
4284 ac_save_c_werror_flag=$ac_c_werror_flag
4285 ac_c_werror_flag=yes
4286 ac_cv_prog_cc_g=no
4287 CFLAGS="-g"
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d45dc31f 4289/* end confdefs.h. */
ac48eca1 4290
d45dc31f
SE
4291int
4292main ()
4293{
ac48eca1 4294
d45dc31f
SE
4295 ;
4296 return 0;
4297}
4298_ACEOF
81ecdfbb 4299if ac_fn_c_try_compile "$LINENO"; then :
d45dc31f 4300 ac_cv_prog_cc_g=yes
ac48eca1 4301else
81ecdfbb
RW
4302 CFLAGS=""
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305
4306int
4307main ()
4308{
4309
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"; then :
4315
4316else
4317 ac_c_werror_flag=$ac_save_c_werror_flag
4318 CFLAGS="-g"
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320/* end confdefs.h. */
4321
4322int
4323main ()
4324{
ac48eca1 4325
81ecdfbb
RW
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330if ac_fn_c_try_compile "$LINENO"; then :
4331 ac_cv_prog_cc_g=yes
4332fi
4333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4334fi
81ecdfbb 4335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ac48eca1 4336fi
81ecdfbb
RW
4337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 ac_c_werror_flag=$ac_save_c_werror_flag
4339fi
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4341$as_echo "$ac_cv_prog_cc_g" >&6; }
d45dc31f
SE
4342if test "$ac_test_CFLAGS" = set; then
4343 CFLAGS=$ac_save_CFLAGS
4344elif test $ac_cv_prog_cc_g = yes; then
4345 if test "$GCC" = yes; then
4346 CFLAGS="-g -O2"
ac48eca1 4347 else
d45dc31f 4348 CFLAGS="-g"
42ecbf5e 4349 fi
ac48eca1 4350else
d45dc31f
SE
4351 if test "$GCC" = yes; then
4352 CFLAGS="-O2"
4353 else
4354 CFLAGS=
42ecbf5e 4355 fi
ac48eca1 4356fi
81ecdfbb
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4358$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4359if test "${ac_cv_prog_cc_c89+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
d45dc31f 4361else
81ecdfbb 4362 ac_cv_prog_cc_c89=no
d45dc31f 4363ac_save_CC=$CC
81ecdfbb 4364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 4365/* end confdefs.h. */
d45dc31f
SE
4366#include <stdarg.h>
4367#include <stdio.h>
4368#include <sys/types.h>
4369#include <sys/stat.h>
4370/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4371struct buf { int x; };
4372FILE * (*rcsopen) (struct buf *, struct stat *, int);
4373static char *e (p, i)
4374 char **p;
4375 int i;
4376{
4377 return p[i];
4378}
4379static char *f (char * (*g) (char **, int), char **p, ...)
4380{
4381 char *s;
4382 va_list v;
4383 va_start (v,p);
4384 s = g (p, va_arg (v,int));
4385 va_end (v);
4386 return s;
4387}
4388
4389/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4390 function prototypes and stuff, but not '\xHH' hex character constants.
4391 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4392 as 'x'. The following induces an error, until -std is added to get
d45dc31f
SE
4393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4394 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4395 that's true only with -std. */
d45dc31f 4396int osf4_cc_array ['\x00' == 0 ? 1 : -1];
252b5132 4397
81ecdfbb
RW
4398/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4399 inside strings and character constants. */
4400#define FOO(x) 'x'
4401int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4402
d45dc31f
SE
4403int test (int i, double x);
4404struct s1 {int (*f) (int a);};
4405struct s2 {int (*f) (double a);};
4406int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4407int argc;
4408char **argv;
42ecbf5e
DJ
4409int
4410main ()
4411{
d45dc31f 4412return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
42ecbf5e
DJ
4413 ;
4414 return 0;
4415}
4416_ACEOF
81ecdfbb
RW
4417for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d45dc31f
SE
4419do
4420 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4421 if ac_fn_c_try_compile "$LINENO"; then :
4422 ac_cv_prog_cc_c89=$ac_arg
252b5132 4423fi
81ecdfbb
RW
4424rm -f core conftest.err conftest.$ac_objext
4425 test "x$ac_cv_prog_cc_c89" != "xno" && break
d45dc31f 4426done
81ecdfbb 4427rm -f conftest.$ac_ext
d45dc31f 4428CC=$ac_save_CC
ac48eca1 4429
252b5132 4430fi
81ecdfbb
RW
4431# AC_CACHE_VAL
4432case "x$ac_cv_prog_cc_c89" in
4433 x)
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4435$as_echo "none needed" >&6; } ;;
4436 xno)
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4438$as_echo "unsupported" >&6; } ;;
d45dc31f 4439 *)
81ecdfbb
RW
4440 CC="$CC $ac_cv_prog_cc_c89"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4442$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
252b5132 4443esac
81ecdfbb 4444if test "x$ac_cv_prog_cc_c89" != xno; then :
252b5132 4445
d45dc31f 4446fi
ac48eca1 4447
d45dc31f
SE
4448ac_ext=c
4449ac_cpp='$CPP $CPPFLAGS'
4450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 4453
7357c5b6
AM
4454ac_ext=c
4455ac_cpp='$CPP $CPPFLAGS'
4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4460$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4461# On Suns, sometimes $CPP names a directory.
4462if test -n "$CPP" && test -d "$CPP"; then
4463 CPP=
4464fi
4465if test -z "$CPP"; then
81ecdfbb
RW
4466 if test "${ac_cv_prog_CPP+set}" = set; then :
4467 $as_echo_n "(cached) " >&6
7357c5b6
AM
4468else
4469 # Double quotes because CPP needs to be expanded
4470 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 do
4472 ac_preproc_ok=false
4473for ac_c_preproc_warn_flag in '' yes
4474do
4475 # Use a header file that comes with gcc, so configuring glibc
4476 # with a fresh cross-compiler works.
4477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4478 # <limits.h> exists even on freestanding compilers.
4479 # On the NeXT, cc -E runs the code through the compiler's parser,
4480 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4482/* end confdefs.h. */
4483#ifdef __STDC__
4484# include <limits.h>
4485#else
4486# include <assert.h>
4487#endif
4488 Syntax error
4489_ACEOF
81ecdfbb 4490if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4491
81ecdfbb 4492else
7357c5b6
AM
4493 # Broken: fails on valid input.
4494continue
4495fi
4496rm -f conftest.err conftest.$ac_ext
d7040cdb 4497
81ecdfbb 4498 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4499 # can be detected and how.
81ecdfbb 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4501/* end confdefs.h. */
4502#include <ac_nonexistent.h>
4503_ACEOF
81ecdfbb 4504if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4505 # Broken: success on invalid input.
4506continue
4507else
7357c5b6
AM
4508 # Passes both tests.
4509ac_preproc_ok=:
4510break
4511fi
4512rm -f conftest.err conftest.$ac_ext
d7040cdb 4513
7357c5b6
AM
4514done
4515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4516rm -f conftest.err conftest.$ac_ext
81ecdfbb 4517if $ac_preproc_ok; then :
7357c5b6
AM
4518 break
4519fi
d7040cdb 4520
7357c5b6
AM
4521 done
4522 ac_cv_prog_CPP=$CPP
d7040cdb 4523
7357c5b6
AM
4524fi
4525 CPP=$ac_cv_prog_CPP
4526else
4527 ac_cv_prog_CPP=$CPP
4528fi
81ecdfbb
RW
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4530$as_echo "$CPP" >&6; }
7357c5b6
AM
4531ac_preproc_ok=false
4532for ac_c_preproc_warn_flag in '' yes
4533do
4534 # Use a header file that comes with gcc, so configuring glibc
4535 # with a fresh cross-compiler works.
4536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537 # <limits.h> exists even on freestanding compilers.
4538 # On the NeXT, cc -E runs the code through the compiler's parser,
4539 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4541/* end confdefs.h. */
4542#ifdef __STDC__
4543# include <limits.h>
4544#else
4545# include <assert.h>
4546#endif
4547 Syntax error
4548_ACEOF
81ecdfbb 4549if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4550
81ecdfbb 4551else
7357c5b6
AM
4552 # Broken: fails on valid input.
4553continue
4554fi
4555rm -f conftest.err conftest.$ac_ext
d7040cdb 4556
81ecdfbb 4557 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4558 # can be detected and how.
81ecdfbb 4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4560/* end confdefs.h. */
4561#include <ac_nonexistent.h>
4562_ACEOF
81ecdfbb 4563if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4564 # Broken: success on invalid input.
4565continue
4566else
7357c5b6
AM
4567 # Passes both tests.
4568ac_preproc_ok=:
4569break
4570fi
4571rm -f conftest.err conftest.$ac_ext
d7040cdb 4572
7357c5b6
AM
4573done
4574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4575rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4576if $ac_preproc_ok; then :
4577
7357c5b6 4578else
81ecdfbb
RW
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581as_fn_error "C preprocessor \"$CPP\" fails sanity check
4582See \`config.log' for more details." "$LINENO" 5; }
7357c5b6 4583fi
d7040cdb 4584
7357c5b6
AM
4585ac_ext=c
4586ac_cpp='$CPP $CPPFLAGS'
4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
4590
4591
81ecdfbb
RW
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4593$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4594if test "${ac_cv_path_GREP+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
7357c5b6 4596else
81ecdfbb
RW
4597 if test -z "$GREP"; then
4598 ac_path_GREP_found=false
4599 # Loop through the user's path and test for each of PROGNAME-LIST
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_prog in grep ggrep; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4608 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4609# Check for GNU ac_path_GREP and select it if it is found.
4610 # Check for GNU $ac_path_GREP
4611case `"$ac_path_GREP" --version 2>&1` in
4612*GNU*)
4613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614*)
4615 ac_count=0
4616 $as_echo_n 0123456789 >"conftest.in"
4617 while :
4618 do
4619 cat "conftest.in" "conftest.in" >"conftest.tmp"
4620 mv "conftest.tmp" "conftest.in"
4621 cp "conftest.in" "conftest.nl"
4622 $as_echo 'GREP' >> "conftest.nl"
4623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625 as_fn_arith $ac_count + 1 && ac_count=$as_val
4626 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4627 # Best one so far, save it but keep looking for a better one
4628 ac_cv_path_GREP="$ac_path_GREP"
4629 ac_path_GREP_max=$ac_count
7357c5b6 4630 fi
81ecdfbb
RW
4631 # 10*(2^10) chars as input seems more than enough
4632 test $ac_count -gt 10 && break
4633 done
4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635esac
4636
4637 $ac_path_GREP_found && break 3
4638 done
4639 done
4640 done
4641IFS=$as_save_IFS
4642 if test -z "$ac_cv_path_GREP"; then
4643 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 fi
4645else
4646 ac_cv_path_GREP=$GREP
4647fi
4648
7357c5b6 4649fi
81ecdfbb
RW
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4651$as_echo "$ac_cv_path_GREP" >&6; }
4652 GREP="$ac_cv_path_GREP"
d7040cdb 4653
d7040cdb 4654
81ecdfbb
RW
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4656$as_echo_n "checking for egrep... " >&6; }
4657if test "${ac_cv_path_EGREP+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
7357c5b6 4659else
81ecdfbb
RW
4660 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4661 then ac_cv_path_EGREP="$GREP -E"
4662 else
4663 if test -z "$EGREP"; then
4664 ac_path_EGREP_found=false
4665 # Loop through the user's path and test for each of PROGNAME-LIST
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_prog in egrep; do
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4674 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4675# Check for GNU ac_path_EGREP and select it if it is found.
4676 # Check for GNU $ac_path_EGREP
4677case `"$ac_path_EGREP" --version 2>&1` in
4678*GNU*)
4679 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4680*)
4681 ac_count=0
4682 $as_echo_n 0123456789 >"conftest.in"
4683 while :
4684 do
4685 cat "conftest.in" "conftest.in" >"conftest.tmp"
4686 mv "conftest.tmp" "conftest.in"
4687 cp "conftest.in" "conftest.nl"
4688 $as_echo 'EGREP' >> "conftest.nl"
4689 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691 as_fn_arith $ac_count + 1 && ac_count=$as_val
4692 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4693 # Best one so far, save it but keep looking for a better one
4694 ac_cv_path_EGREP="$ac_path_EGREP"
4695 ac_path_EGREP_max=$ac_count
4696 fi
4697 # 10*(2^10) chars as input seems more than enough
4698 test $ac_count -gt 10 && break
4699 done
4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701esac
4702
4703 $ac_path_EGREP_found && break 3
4704 done
4705 done
4706 done
4707IFS=$as_save_IFS
4708 if test -z "$ac_cv_path_EGREP"; then
4709 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 fi
4711else
4712 ac_cv_path_EGREP=$EGREP
4713fi
4714
4715 fi
4716fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4718$as_echo "$ac_cv_path_EGREP" >&6; }
4719 EGREP="$ac_cv_path_EGREP"
4720
4721
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4723$as_echo_n "checking for ANSI C header files... " >&6; }
4724if test "${ac_cv_header_stdc+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4728/* end confdefs.h. */
4729#include <stdlib.h>
4730#include <stdarg.h>
4731#include <string.h>
4732#include <float.h>
d7040cdb 4733
7357c5b6
AM
4734int
4735main ()
4736{
d7040cdb 4737
7357c5b6
AM
4738 ;
4739 return 0;
4740}
4741_ACEOF
81ecdfbb 4742if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4743 ac_cv_header_stdc=yes
4744else
81ecdfbb 4745 ac_cv_header_stdc=no
7357c5b6 4746fi
81ecdfbb 4747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4748
7357c5b6
AM
4749if test $ac_cv_header_stdc = yes; then
4750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4752/* end confdefs.h. */
4753#include <string.h>
d7040cdb 4754
7357c5b6
AM
4755_ACEOF
4756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4757 $EGREP "memchr" >/dev/null 2>&1; then :
4758
d45dc31f 4759else
7357c5b6
AM
4760 ac_cv_header_stdc=no
4761fi
4762rm -f conftest*
d7040cdb 4763
7357c5b6 4764fi
d7040cdb 4765
7357c5b6
AM
4766if test $ac_cv_header_stdc = yes; then
4767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4769/* end confdefs.h. */
4770#include <stdlib.h>
d7040cdb 4771
7357c5b6
AM
4772_ACEOF
4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4774 $EGREP "free" >/dev/null 2>&1; then :
4775
7357c5b6
AM
4776else
4777 ac_cv_header_stdc=no
4778fi
4779rm -f conftest*
d7040cdb 4780
7357c5b6 4781fi
d7040cdb 4782
7357c5b6
AM
4783if test $ac_cv_header_stdc = yes; then
4784 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4785 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4786 :
4787else
81ecdfbb 4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4789/* end confdefs.h. */
4790#include <ctype.h>
81ecdfbb 4791#include <stdlib.h>
7357c5b6
AM
4792#if ((' ' & 0x0FF) == 0x020)
4793# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4794# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4795#else
4796# define ISLOWER(c) \
4797 (('a' <= (c) && (c) <= 'i') \
4798 || ('j' <= (c) && (c) <= 'r') \
4799 || ('s' <= (c) && (c) <= 'z'))
4800# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4801#endif
d7040cdb 4802
7357c5b6
AM
4803#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4804int
4805main ()
4806{
4807 int i;
4808 for (i = 0; i < 256; i++)
4809 if (XOR (islower (i), ISLOWER (i))
4810 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4811 return 2;
4812 return 0;
7357c5b6
AM
4813}
4814_ACEOF
81ecdfbb 4815if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4816
81ecdfbb
RW
4817else
4818 ac_cv_header_stdc=no
7357c5b6 4819fi
81ecdfbb
RW
4820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4821 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4822fi
81ecdfbb 4823
7357c5b6
AM
4824fi
4825fi
81ecdfbb
RW
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4827$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4828if test $ac_cv_header_stdc = yes; then
d7040cdb 4829
81ecdfbb 4830$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4831
7357c5b6 4832fi
d7040cdb 4833
7357c5b6 4834# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4835for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4836 inttypes.h stdint.h unistd.h
4837do :
4838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4840"
4841eval as_val=\$$as_ac_Header
4842 if test "x$as_val" = x""yes; then :
4843 cat >>confdefs.h <<_ACEOF
4844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4845_ACEOF
d7040cdb 4846
81ecdfbb 4847fi
d7040cdb 4848
81ecdfbb 4849done
d7040cdb
SE
4850
4851
4852
81ecdfbb
RW
4853 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4854if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4855 MINIX=yes
4856else
4857 MINIX=
4858fi
d7040cdb
SE
4859
4860
81ecdfbb 4861 if test "$MINIX" = yes; then
d7040cdb 4862
81ecdfbb 4863$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb 4864
d7040cdb 4865
81ecdfbb 4866$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4867
4868
81ecdfbb 4869$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4870
81ecdfbb 4871 fi
d7040cdb
SE
4872
4873
81ecdfbb
RW
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4875$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4876if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
7357c5b6 4878else
81ecdfbb 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4880/* end confdefs.h. */
d7040cdb 4881
7357c5b6
AM
4882# define __EXTENSIONS__ 1
4883 $ac_includes_default
4884int
4885main ()
4886{
d7040cdb 4887
7357c5b6
AM
4888 ;
4889 return 0;
4890}
4891_ACEOF
81ecdfbb 4892if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 4893 ac_cv_safe_to_define___extensions__=yes
d7040cdb 4894else
81ecdfbb 4895 ac_cv_safe_to_define___extensions__=no
d7040cdb 4896fi
81ecdfbb 4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4898fi
81ecdfbb
RW
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4900$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4901 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4902 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d7040cdb 4903
81ecdfbb 4904 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4905
81ecdfbb 4906 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
d7040cdb 4907
81ecdfbb 4908 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
d7040cdb 4909
81ecdfbb 4910 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb
SE
4911
4912
e3525117 4913
5691d22d 4914
81ecdfbb 4915
718a6fd8
SE
4916case `pwd` in
4917 *\ * | *\ *)
81ecdfbb
RW
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4919$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 4920esac
d7040cdb
SE
4921
4922
7357c5b6 4923
f2c621e4
AS
4924macro_version='2.2.7a'
4925macro_revision='1.3134'
7357c5b6
AM
4926
4927
4928
4929
4930
4931
7357c5b6
AM
4932
4933
4934
4935
4936
4937
4938
718a6fd8 4939ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 4940
3725885a
RW
4941# Backslashify metacharacters that are still active within
4942# double-quoted strings.
4943sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4944
4945# Same as above, but do not quote variable references.
4946double_quote_subst='s/\(["`\\]\)/\\\1/g'
4947
4948# Sed substitution to delay expansion of an escaped shell variable in a
4949# double_quote_subst'ed string.
4950delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4951
4952# Sed substitution to delay expansion of an escaped single quote.
4953delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4954
4955# Sed substitution to avoid accidental globbing in evaled expressions
4956no_glob_subst='s/\*/\\\*/g'
4957
4958ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4959ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4960ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4961
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4963$as_echo_n "checking how to print strings... " >&6; }
4964# Test print first, because it will be a builtin if present.
f2c621e4 4965if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
4966 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4967 ECHO='print -r --'
4968elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4969 ECHO='printf %s\n'
4970else
4971 # Use this function as a fallback that always works.
4972 func_fallback_echo ()
4973 {
4974 eval 'cat <<_LTECHO_EOF
4975$1
4976_LTECHO_EOF'
4977 }
4978 ECHO='func_fallback_echo'
4979fi
4980
4981# func_echo_all arg...
4982# Invoke $ECHO with all args, space-separated.
4983func_echo_all ()
4984{
4985 $ECHO ""
4986}
4987
4988case "$ECHO" in
4989 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4990$as_echo "printf" >&6; } ;;
4991 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4992$as_echo "print -r" >&6; } ;;
4993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4994$as_echo "cat" >&6; } ;;
4995esac
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
81ecdfbb
RW
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5011$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5012if test "${ac_cv_path_SED+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
7357c5b6 5014else
81ecdfbb
RW
5015 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5016 for ac_i in 1 2 3 4 5 6 7; do
5017 ac_script="$ac_script$as_nl$ac_script"
5018 done
5019 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5020 { ac_script=; unset ac_script;}
5021 if test -z "$SED"; then
5022 ac_path_SED_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
81ecdfbb 5029 for ac_prog in sed gsed; do
7357c5b6 5030 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5031 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5032 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5033# Check for GNU ac_path_SED and select it if it is found.
5034 # Check for GNU $ac_path_SED
5035case `"$ac_path_SED" --version 2>&1` in
5036*GNU*)
5037 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5038*)
5039 ac_count=0
5040 $as_echo_n 0123456789 >"conftest.in"
5041 while :
5042 do
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo '' >> "conftest.nl"
5047 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_SED_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_SED="$ac_path_SED"
5053 ac_path_SED_max=$ac_count
5054 fi
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5057 done
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059esac
5060
5061 $ac_path_SED_found && break 3
7357c5b6
AM
5062 done
5063 done
81ecdfbb 5064 done
7357c5b6 5065IFS=$as_save_IFS
81ecdfbb
RW
5066 if test -z "$ac_cv_path_SED"; then
5067 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5068 fi
81ecdfbb
RW
5069else
5070 ac_cv_path_SED=$SED
7357c5b6
AM
5071fi
5072
81ecdfbb
RW
5073fi
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5075$as_echo "$ac_cv_path_SED" >&6; }
5076 SED="$ac_cv_path_SED"
5077 rm -f conftest.sed
7357c5b6
AM
5078
5079test -z "$SED" && SED=sed
5080Xsed="$SED -e 1s/^X//"
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
81ecdfbb
RW
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5093$as_echo_n "checking for fgrep... " >&6; }
5094if test "${ac_cv_path_FGREP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
7357c5b6 5096else
81ecdfbb
RW
5097 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5098 then ac_cv_path_FGREP="$GREP -F"
5099 else
5100 if test -z "$FGREP"; then
5101 ac_path_FGREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in fgrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5112# Check for GNU ac_path_FGREP and select it if it is found.
5113 # Check for GNU $ac_path_FGREP
5114case `"$ac_path_FGREP" --version 2>&1` in
5115*GNU*)
5116 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5117*)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'FGREP' >> "conftest.nl"
5126 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_FGREP="$ac_path_FGREP"
5132 ac_path_FGREP_max=$ac_count
7357c5b6 5133 fi
81ecdfbb
RW
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138esac
5139
5140 $ac_path_FGREP_found && break 3
5141 done
5142 done
5143 done
5144IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_FGREP"; then
5146 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148else
5149 ac_cv_path_FGREP=$FGREP
5150fi
5151
5152 fi
7357c5b6 5153fi
81ecdfbb
RW
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5155$as_echo "$ac_cv_path_FGREP" >&6; }
5156 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5157
5158
5159test -z "$GREP" && GREP=grep
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
81ecdfbb
RW
5179# Check whether --with-gnu-ld was given.
5180if test "${with_gnu_ld+set}" = set; then :
5181 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5182else
5183 with_gnu_ld=no
81ecdfbb
RW
5184fi
5185
7357c5b6
AM
5186ac_prog=ld
5187if test "$GCC" = yes; then
5188 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5190$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5191 case $host in
5192 *-*-mingw*)
d45dc31f
SE
5193 # gcc leaves a trailing carriage return which upsets mingw
5194 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5195 *)
5196 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5197 esac
5198 case $ac_prog in
5199 # Accept absolute paths.
d7040cdb 5200 [\\/]* | ?:[\\/]*)
d45dc31f 5201 re_direlt='/[^/][^/]*/\.\./'
d7040cdb
SE
5202 # Canonicalize the pathname of ld
5203 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5204 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5205 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
d45dc31f
SE
5206 done
5207 test -z "$LD" && LD="$ac_prog"
5208 ;;
5209 "")
5210 # If it fails, then pretend we aren't using GCC.
5211 ac_prog=ld
5212 ;;
5213 *)
5214 # If it is relative, then search for the first ld in PATH.
5215 with_gnu_ld=unknown
5216 ;;
5217 esac
5218elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5220$as_echo_n "checking for GNU ld... " >&6; }
d45dc31f 5221else
81ecdfbb
RW
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5223$as_echo_n "checking for non-GNU ld... " >&6; }
d45dc31f 5224fi
81ecdfbb
RW
5225if test "${lt_cv_path_LD+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
d45dc31f
SE
5227else
5228 if test -z "$LD"; then
d7040cdb 5229 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
d45dc31f 5230 for ac_dir in $PATH; do
d7040cdb 5231 IFS="$lt_save_ifs"
d45dc31f
SE
5232 test -z "$ac_dir" && ac_dir=.
5233 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5234 lt_cv_path_LD="$ac_dir/$ac_prog"
5235 # Check to see if the program is GNU ld. I'd rather use --version,
d7040cdb 5236 # but apparently some variants of GNU ld only accept -v.
d45dc31f 5237 # Break only if it was the GNU/non-GNU ld that we prefer.
d7040cdb
SE
5238 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5239 *GNU* | *'with BFD'*)
d45dc31f 5240 test "$with_gnu_ld" != no && break
d7040cdb
SE
5241 ;;
5242 *)
d45dc31f 5243 test "$with_gnu_ld" != yes && break
d7040cdb
SE
5244 ;;
5245 esac
d45dc31f
SE
5246 fi
5247 done
d7040cdb 5248 IFS="$lt_save_ifs"
d45dc31f
SE
5249else
5250 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5251fi
5252fi
1ad12f97 5253
d45dc31f
SE
5254LD="$lt_cv_path_LD"
5255if test -n "$LD"; then
81ecdfbb
RW
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5257$as_echo "$LD" >&6; }
d45dc31f 5258else
81ecdfbb
RW
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260$as_echo "no" >&6; }
d45dc31f 5261fi
81ecdfbb
RW
5262test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5264$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5265if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
d45dc31f 5267else
d7040cdb
SE
5268 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5269case `$LD -v 2>&1 </dev/null` in
5270*GNU* | *'with BFD'*)
d45dc31f 5271 lt_cv_prog_gnu_ld=yes
d7040cdb
SE
5272 ;;
5273*)
d45dc31f 5274 lt_cv_prog_gnu_ld=no
d7040cdb
SE
5275 ;;
5276esac
d45dc31f 5277fi
81ecdfbb
RW
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5279$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d45dc31f 5280with_gnu_ld=$lt_cv_prog_gnu_ld
569acd2c 5281
d45dc31f 5282
42ecbf5e 5283
d7040cdb
SE
5284
5285
5286
5287
5288
5289
81ecdfbb
RW
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5291$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5292if test "${lt_cv_path_NM+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
d45dc31f
SE
5294else
5295 if test -n "$NM"; then
5296 # Let the user override the test.
5297 lt_cv_path_NM="$NM"
5298else
d7040cdb
SE
5299 lt_nm_to_check="${ac_tool_prefix}nm"
5300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5301 lt_nm_to_check="$lt_nm_to_check nm"
5302 fi
5303 for lt_tmp_nm in $lt_nm_to_check; do
5304 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5306 IFS="$lt_save_ifs"
5307 test -z "$ac_dir" && ac_dir=.
5308 tmp_nm="$ac_dir/$lt_tmp_nm"
5309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5310 # Check to see if the nm accepts a BSD-compat flag.
5311 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5312 # nm: unknown option "B" ignored
5313 # Tru64's nm complains that /dev/null is an invalid object file
5314 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5315 */dev/null* | *'Invalid file or object type'*)
5316 lt_cv_path_NM="$tmp_nm -B"
5317 break
5318 ;;
5319 *)
5320 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5321 */dev/null*)
5322 lt_cv_path_NM="$tmp_nm -p"
5323 break
5324 ;;
5325 *)
5326 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5327 continue # so that we can try to find one that supports BSD flags
5328 ;;
5329 esac
5330 ;;
5331 esac
d45dc31f 5332 fi
d7040cdb
SE
5333 done
5334 IFS="$lt_save_ifs"
d45dc31f 5335 done
d7040cdb 5336 : ${lt_cv_path_NM=no}
d45dc31f 5337fi
a541e3ce 5338fi
81ecdfbb
RW
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5340$as_echo "$lt_cv_path_NM" >&6; }
d7040cdb
SE
5341if test "$lt_cv_path_NM" != "no"; then
5342 NM="$lt_cv_path_NM"
d45dc31f 5343else
d7040cdb 5344 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5345 if test -n "$DUMPBIN"; then :
5346 # Let the user override the test.
5347 else
5348 if test -n "$ac_tool_prefix"; then
5349 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5350 do
5351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
d45dc31f 5357else
d7040cdb
SE
5358 if test -n "$DUMPBIN"; then
5359 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5368 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
5370 break 2
5371 fi
5372done
81ecdfbb
RW
5373 done
5374IFS=$as_save_IFS
398ee8f1 5375
d7040cdb
SE
5376fi
5377fi
5378DUMPBIN=$ac_cv_prog_DUMPBIN
5379if test -n "$DUMPBIN"; then
81ecdfbb
RW
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5381$as_echo "$DUMPBIN" >&6; }
d7040cdb 5382else
81ecdfbb
RW
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
d7040cdb 5385fi
d15b04bd 5386
81ecdfbb 5387
d7040cdb
SE
5388 test -n "$DUMPBIN" && break
5389 done
5390fi
5391if test -z "$DUMPBIN"; then
5392 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5393 for ac_prog in dumpbin "link -dump"
d7040cdb
SE
5394do
5395 # Extract the first word of "$ac_prog", so it can be a program name with args.
5396set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
d7040cdb
SE
5401else
5402 if test -n "$ac_ct_DUMPBIN"; then
5403 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 5412 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5414 break 2
d45dc31f 5415 fi
d7040cdb 5416done
81ecdfbb
RW
5417 done
5418IFS=$as_save_IFS
d15b04bd 5419
d7040cdb
SE
5420fi
5421fi
5422ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5423if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5425$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5426else
81ecdfbb
RW
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
d7040cdb 5429fi
42ecbf5e 5430
81ecdfbb 5431
d7040cdb
SE
5432 test -n "$ac_ct_DUMPBIN" && break
5433done
d45dc31f 5434
81ecdfbb
RW
5435 if test "x$ac_ct_DUMPBIN" = x; then
5436 DUMPBIN=":"
5437 else
5438 case $cross_compiling:$ac_tool_warned in
5439yes:)
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442ac_tool_warned=yes ;;
5443esac
5444 DUMPBIN=$ac_ct_DUMPBIN
5445 fi
d7040cdb 5446fi
d45dc31f 5447
3725885a
RW
5448 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5449 *COFF*)
5450 DUMPBIN="$DUMPBIN -symbols"
5451 ;;
5452 *)
5453 DUMPBIN=:
5454 ;;
5455 esac
5456 fi
d45dc31f 5457
d7040cdb
SE
5458 if test "$DUMPBIN" != ":"; then
5459 NM="$DUMPBIN"
42ecbf5e 5460 fi
d7040cdb
SE
5461fi
5462test -z "$NM" && NM=nm
d45dc31f 5463
42ecbf5e 5464
d15b04bd 5465
42ecbf5e 5466
d45dc31f 5467
42ecbf5e 5468
81ecdfbb
RW
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5470$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5471if test "${lt_cv_nm_interface+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
d7040cdb
SE
5473else
5474 lt_cv_nm_interface="BSD nm"
5475 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5476 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
d7040cdb
SE
5477 (eval "$ac_compile" 2>conftest.err)
5478 cat conftest.err >&5
3725885a 5479 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
d7040cdb
SE
5480 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5481 cat conftest.err >&5
3725885a 5482 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
d7040cdb
SE
5483 cat conftest.out >&5
5484 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5485 lt_cv_nm_interface="MS dumpbin"
5486 fi
5487 rm -f conftest*
42ecbf5e 5488fi
81ecdfbb
RW
5489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5490$as_echo "$lt_cv_nm_interface" >&6; }
42ecbf5e 5491
81ecdfbb
RW
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5493$as_echo_n "checking whether ln -s works... " >&6; }
d7040cdb
SE
5494LN_S=$as_ln_s
5495if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5497$as_echo "yes" >&6; }
d7040cdb 5498else
81ecdfbb
RW
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5500$as_echo "no, using $LN_S" >&6; }
d7040cdb 5501fi
d45dc31f
SE
5502
5503# find the maximum length of command line arguments
81ecdfbb
RW
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5505$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5506if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
42ecbf5e 5508else
d45dc31f
SE
5509 i=0
5510 teststring="ABCD"
5511
5512 case $build_os in
5513 msdosdjgpp*)
5514 # On DJGPP, this test can blow up pretty badly due to problems in libc
5515 # (any single argument exceeding 2000 bytes causes a buffer overrun
5516 # during glob expansion). Even if it were fixed, the result of this
5517 # check would be larger than it should be.
5518 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5519 ;;
5520
d7040cdb
SE
5521 gnu*)
5522 # Under GNU Hurd, this test is not required because there is
5523 # no limit to the length of command line arguments.
5524 # Libtool will interpret -1 as no limit whatsoever
5525 lt_cv_sys_max_cmd_len=-1;
5526 ;;
5527
718a6fd8 5528 cygwin* | mingw* | cegcc*)
d45dc31f
SE
5529 # On Win9x/ME, this test blows up -- it succeeds, but takes
5530 # about 5 minutes as the teststring grows exponentially.
5531 # Worse, since 9x/ME are not pre-emptively multitasking,
5532 # you end up with a "frozen" computer, even though with patience
5533 # the test eventually succeeds (with a max line length of 256k).
5534 # Instead, let's just punt: use the minimum linelength reported by
5535 # all of the supported platforms: 8192 (on NT/2K/XP).
5536 lt_cv_sys_max_cmd_len=8192;
5537 ;;
5538
3725885a
RW
5539 mint*)
5540 # On MiNT this can take a long time and run out of memory.
5541 lt_cv_sys_max_cmd_len=8192;
5542 ;;
5543
d45dc31f
SE
5544 amigaos*)
5545 # On AmigaOS with pdksh, this test takes hours, literally.
5546 # So we just punt and use a minimum line length of 8192.
5547 lt_cv_sys_max_cmd_len=8192;
5548 ;;
5549
5550 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5551 # This has been around since 386BSD, at least. Likely further.
5552 if test -x /sbin/sysctl; then
5553 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5554 elif test -x /usr/sbin/sysctl; then
5555 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5556 else
d7040cdb 5557 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
d45dc31f
SE
5558 fi
5559 # And add a safety zone
5560 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5561 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5562 ;;
d7040cdb
SE
5563
5564 interix*)
5565 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5566 lt_cv_sys_max_cmd_len=196608
5567 ;;
5568
5569 osf*)
5570 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5571 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5572 # nice to cause kernel panics so lets avoid the loop below.
5573 # First set a reasonable default.
5574 lt_cv_sys_max_cmd_len=16384
5575 #
5576 if test -x /sbin/sysconfig; then
5577 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5578 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5579 esac
5580 fi
5581 ;;
5582 sco3.2v5*)
5583 lt_cv_sys_max_cmd_len=102400
5584 ;;
5585 sysv5* | sco5v6* | sysv4.2uw2*)
5586 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5587 if test -n "$kargmax"; then
5588 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5589 else
5590 lt_cv_sys_max_cmd_len=32768
5591 fi
5592 ;;
5593 *)
718a6fd8
SE
5594 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5595 if test -n "$lt_cv_sys_max_cmd_len"; then
5ba684e2
NC
5596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5598 else
5599 # Make teststring a little bigger before we do anything with it.
5600 # a 1K string should be a reasonable start.
5601 for i in 1 2 3 4 5 6 7 8 ; do
5602 teststring=$teststring$teststring
5603 done
5604 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5605 # If test is not a shell built-in, we'll probably end up computing a
5606 # maximum length that is only half of the actual maximum length, but
5607 # we can't tell.
3725885a
RW
5608 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5609 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5ba684e2
NC
5610 test $i != 17 # 1/2 MB should be enough
5611 do
5612 i=`expr $i + 1`
5613 teststring=$teststring$teststring
5614 done
5615 # Only check the string length outside the loop.
5616 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5617 teststring=
5618 # Add a significant safety factor because C++ compilers can tack on
5619 # massive amounts of additional arguments before passing them to the
5620 # linker. It appears as though 1/2 is a usable value.
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5622 fi
d7040cdb 5623 ;;
d45dc31f 5624 esac
42ecbf5e 5625
42ecbf5e
DJ
5626fi
5627
d7040cdb 5628if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5630$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
252b5132 5631else
81ecdfbb
RW
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5633$as_echo "none" >&6; }
252b5132 5634fi
d7040cdb 5635max_cmd_len=$lt_cv_sys_max_cmd_len
e5a52504 5636
d45dc31f 5637
42ecbf5e 5638
d45dc31f 5639
d45dc31f 5640
d7040cdb 5641
d7040cdb
SE
5642: ${CP="cp -f"}
5643: ${MV="mv -f"}
5644: ${RM="rm -f"}
5645
81ecdfbb
RW
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5647$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
d7040cdb
SE
5648# Try some XSI features
5649xsi_shell=no
5650( _lt_dummy="a/b/c"
f2c621e4
AS
5651 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5652 = c,a/b,, \
718a6fd8
SE
5653 && eval 'test $(( 1 + 1 )) -eq 2 \
5654 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
d7040cdb 5655 && xsi_shell=yes
81ecdfbb
RW
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5657$as_echo "$xsi_shell" >&6; }
d7040cdb
SE
5658
5659
81ecdfbb
RW
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5661$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
d7040cdb
SE
5662lt_shell_append=no
5663( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5664 >/dev/null 2>&1 \
5665 && lt_shell_append=yes
81ecdfbb
RW
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5667$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
5668
5669
5670if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5671 lt_unset=unset
252b5132 5672else
d7040cdb 5673 lt_unset=false
252b5132
RH
5674fi
5675
d7040cdb
SE
5676
5677
5678
5679
5680# test EBCDIC or ASCII
5681case `echo X|tr X '\101'` in
5682 A) # ASCII based system
5683 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5684 lt_SP2NL='tr \040 \012'
5685 lt_NL2SP='tr \015\012 \040\040'
5686 ;;
5687 *) # EBCDIC based system
5688 lt_SP2NL='tr \100 \n'
5689 lt_NL2SP='tr \r\n \100\100'
5690 ;;
5691esac
5692
5693
5694
5695
5696
5697
5698
5699
5700
81ecdfbb
RW
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5702$as_echo_n "checking for $LD option to reload object files... " >&6; }
5703if test "${lt_cv_ld_reload_flag+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
252b5132 5705else
d7040cdb
SE
5706 lt_cv_ld_reload_flag='-r'
5707fi
81ecdfbb
RW
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5709$as_echo "$lt_cv_ld_reload_flag" >&6; }
d7040cdb
SE
5710reload_flag=$lt_cv_ld_reload_flag
5711case $reload_flag in
5712"" | " "*) ;;
5713*) reload_flag=" $reload_flag" ;;
5714esac
5715reload_cmds='$LD$reload_flag -o $output$reload_objs'
5716case $host_os in
5717 darwin*)
5718 if test "$GCC" = yes; then
5719 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5720 else
5721 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5722 fi
5723 ;;
5724esac
5725
5726
5727
5728
5729
5730
5731
5732
5733
718a6fd8
SE
5734if test -n "$ac_tool_prefix"; then
5735 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5736set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
718a6fd8
SE
5741else
5742 if test -n "$OBJDUMP"; then
5743 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5752 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5754 break 2
5755 fi
5756done
81ecdfbb
RW
5757 done
5758IFS=$as_save_IFS
718a6fd8
SE
5759
5760fi
5761fi
5762OBJDUMP=$ac_cv_prog_OBJDUMP
5763if test -n "$OBJDUMP"; then
81ecdfbb
RW
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5765$as_echo "$OBJDUMP" >&6; }
718a6fd8 5766else
81ecdfbb
RW
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
718a6fd8
SE
5769fi
5770
81ecdfbb 5771
718a6fd8
SE
5772fi
5773if test -z "$ac_cv_prog_OBJDUMP"; then
5774 ac_ct_OBJDUMP=$OBJDUMP
5775 # Extract the first word of "objdump", so it can be a program name with args.
5776set dummy objdump; ac_word=$2
81ecdfbb
RW
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
718a6fd8
SE
5781else
5782 if test -n "$ac_ct_OBJDUMP"; then
5783 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 5792 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
5794 break 2
5795 fi
5796done
81ecdfbb
RW
5797 done
5798IFS=$as_save_IFS
718a6fd8 5799
718a6fd8
SE
5800fi
5801fi
5802ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5803if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5805$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 5806else
81ecdfbb
RW
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
718a6fd8
SE
5809fi
5810
81ecdfbb
RW
5811 if test "x$ac_ct_OBJDUMP" = x; then
5812 OBJDUMP="false"
5813 else
5814 case $cross_compiling:$ac_tool_warned in
5815yes:)
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818ac_tool_warned=yes ;;
5819esac
5820 OBJDUMP=$ac_ct_OBJDUMP
5821 fi
718a6fd8
SE
5822else
5823 OBJDUMP="$ac_cv_prog_OBJDUMP"
5824fi
5825
5826test -z "$OBJDUMP" && OBJDUMP=objdump
5827
5828
5829
5830
5831
5832
5833
5834
d7040cdb 5835
81ecdfbb
RW
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5837$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5838if test "${lt_cv_deplibs_check_method+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
d7040cdb
SE
5840else
5841 lt_cv_file_magic_cmd='$MAGIC_CMD'
5842lt_cv_file_magic_test_file=
5843lt_cv_deplibs_check_method='unknown'
5844# Need to set the preceding variable on all platforms that support
5845# interlibrary dependencies.
5846# 'none' -- dependencies not supported.
5847# `unknown' -- same as none, but documents that we really don't know.
5848# 'pass_all' -- all dependencies passed with no checks.
5849# 'test_compile' -- check by making test program.
5850# 'file_magic [[regex]]' -- check by looking for files in library path
5851# which responds to the $file_magic_cmd with a given extended regex.
5852# If you have `file' or equivalent on your system and you're not sure
5853# whether `pass_all' will *always* work, you probably want this one.
5854
5855case $host_os in
50e7d84b 5856aix[4-9]*)
d7040cdb
SE
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859
5860beos*)
5861 lt_cv_deplibs_check_method=pass_all
5862 ;;
5863
5864bsdi[45]*)
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5866 lt_cv_file_magic_cmd='/usr/bin/file -L'
5867 lt_cv_file_magic_test_file=/shlib/libc.so
5868 ;;
5869
5870cygwin*)
5871 # func_win32_libid is a shell function defined in ltmain.sh
5872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5873 lt_cv_file_magic_cmd='func_win32_libid'
5874 ;;
5875
5876mingw* | pw32*)
5877 # Base MSYS/MinGW do not provide the 'file' command needed by
5878 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5879 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
5880 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5881 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
d7040cdb
SE
5882 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5883 lt_cv_file_magic_cmd='func_win32_libid'
5884 else
f2c621e4 5885 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d7040cdb
SE
5886 lt_cv_file_magic_cmd='$OBJDUMP -f'
5887 fi
5888 ;;
5889
3725885a 5890cegcc*)
718a6fd8
SE
5891 # use the weaker test based on 'objdump'. See mingw*.
5892 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5893 lt_cv_file_magic_cmd='$OBJDUMP -f'
5894 ;;
5895
d7040cdb
SE
5896darwin* | rhapsody*)
5897 lt_cv_deplibs_check_method=pass_all
d45dc31f 5898 ;;
d7040cdb
SE
5899
5900freebsd* | dragonfly*)
5901 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5902 case $host_cpu in
5903 i*86 )
5904 # Not sure whether the presence of OpenBSD here was a mistake.
5905 # Let's accept both of them until this is cleared up.
5906 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5907 lt_cv_file_magic_cmd=/usr/bin/file
5908 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5909 ;;
5910 esac
5911 else
5912 lt_cv_deplibs_check_method=pass_all
5913 fi
5914 ;;
5915
5916gnu*)
5917 lt_cv_deplibs_check_method=pass_all
d45dc31f 5918 ;;
d7040cdb 5919
3725885a
RW
5920haiku*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
d7040cdb
SE
5924hpux10.20* | hpux11*)
5925 lt_cv_file_magic_cmd=/usr/bin/file
5926 case $host_cpu in
5927 ia64*)
5928 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5929 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5930 ;;
5931 hppa*64*)
3725885a 5932 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]'
d7040cdb
SE
5933 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5934 ;;
d45dc31f 5935 *)
3725885a 5936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
d7040cdb
SE
5937 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5938 ;;
5939 esac
5940 ;;
42ecbf5e 5941
d7040cdb
SE
5942interix[3-9]*)
5943 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5944 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5945 ;;
42ecbf5e 5946
d7040cdb
SE
5947irix5* | irix6* | nonstopux*)
5948 case $LD in
5949 *-32|*"-32 ") libmagic=32-bit;;
5950 *-n32|*"-n32 ") libmagic=N32;;
5951 *-64|*"-64 ") libmagic=64-bit;;
5952 *) libmagic=never-match;;
5953 esac
5954 lt_cv_deplibs_check_method=pass_all
d45dc31f 5955 ;;
42ecbf5e 5956
d7040cdb 5957# This must be Linux ELF.
58e24671 5958linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
252b5132 5961
d7040cdb
SE
5962netbsd*)
5963 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5964 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f 5965 else
d7040cdb 5966 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
d45dc31f 5967 fi
d7040cdb
SE
5968 ;;
5969
5970newos6*)
5971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5972 lt_cv_file_magic_cmd=/usr/bin/file
5973 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5974 ;;
5975
5976*nto* | *qnx*)
5977 lt_cv_deplibs_check_method=pass_all
5978 ;;
42ecbf5e 5979
d7040cdb
SE
5980openbsd*)
5981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5982 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5983 else
5984 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d45dc31f
SE
5985 fi
5986 ;;
d7040cdb
SE
5987
5988osf3* | osf4* | osf5*)
5989 lt_cv_deplibs_check_method=pass_all
5990 ;;
5991
5992rdos*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996solaris*)
5997 lt_cv_deplibs_check_method=pass_all
5998 ;;
5999
6000sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004sysv4 | sysv4.3*)
6005 case $host_vendor in
6006 motorola)
6007 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]'
6008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6009 ;;
6010 ncr)
6011 lt_cv_deplibs_check_method=pass_all
6012 ;;
6013 sequent)
6014 lt_cv_file_magic_cmd='/bin/file'
6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6016 ;;
6017 sni)
6018 lt_cv_file_magic_cmd='/bin/file'
6019 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6020 lt_cv_file_magic_test_file=/lib/libc.so
6021 ;;
6022 siemens)
6023 lt_cv_deplibs_check_method=pass_all
6024 ;;
6025 pc)
6026 lt_cv_deplibs_check_method=pass_all
6027 ;;
6028 esac
6029 ;;
6030
6031tpf*)
6032 lt_cv_deplibs_check_method=pass_all
6033 ;;
d45dc31f 6034esac
42ecbf5e 6035
d7040cdb 6036fi
81ecdfbb
RW
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6038$as_echo "$lt_cv_deplibs_check_method" >&6; }
d7040cdb
SE
6039file_magic_cmd=$lt_cv_file_magic_cmd
6040deplibs_check_method=$lt_cv_deplibs_check_method
6041test -z "$deplibs_check_method" && deplibs_check_method=unknown
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
d45dc31f 6054if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6055 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6056set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058$as_echo_n "checking for $ac_word... " >&6; }
6059if test "${ac_cv_prog_AR+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
42ecbf5e 6061else
d7040cdb
SE
6062 if test -n "$AR"; then
6063 ac_cv_prog_AR="$AR" # Let the user override the test.
d45dc31f
SE
6064else
6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066for as_dir in $PATH
6067do
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6072 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6074 break 2
6075 fi
6076done
81ecdfbb
RW
6077 done
6078IFS=$as_save_IFS
42ecbf5e 6079
42ecbf5e 6080fi
d45dc31f 6081fi
d7040cdb
SE
6082AR=$ac_cv_prog_AR
6083if test -n "$AR"; then
81ecdfbb
RW
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6085$as_echo "$AR" >&6; }
d45dc31f 6086else
81ecdfbb
RW
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088$as_echo "no" >&6; }
d45dc31f 6089fi
42ecbf5e 6090
81ecdfbb 6091
42ecbf5e 6092fi
f2c621e4 6093if test -z "$ac_cv_prog_AR"; then
d7040cdb 6094 ac_ct_AR=$AR
f2c621e4
AS
6095 # Extract the first word of "ar", so it can be a program name with args.
6096set dummy ar; ac_word=$2
81ecdfbb
RW
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098$as_echo_n "checking for $ac_word... " >&6; }
6099if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
42ecbf5e 6101else
d7040cdb
SE
6102 if test -n "$ac_ct_AR"; then
6103 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
42ecbf5e 6104else
d45dc31f
SE
6105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106for as_dir in $PATH
6107do
6108 IFS=$as_save_IFS
6109 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f2c621e4 6112 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6114 break 2
6115 fi
6116done
81ecdfbb
RW
6117 done
6118IFS=$as_save_IFS
42ecbf5e 6119
42ecbf5e 6120fi
42ecbf5e 6121fi
d7040cdb
SE
6122ac_ct_AR=$ac_cv_prog_ac_ct_AR
6123if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6125$as_echo "$ac_ct_AR" >&6; }
252b5132 6126else
81ecdfbb
RW
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128$as_echo "no" >&6; }
252b5132 6129fi
252b5132 6130
81ecdfbb
RW
6131 if test "x$ac_ct_AR" = x; then
6132 AR="false"
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135yes:)
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140 AR=$ac_ct_AR
6141 fi
df7b86aa 6142else
f2c621e4
AS
6143 AR="$ac_cv_prog_AR"
6144fi
df7b86aa 6145
f2c621e4
AS
6146test -z "$AR" && AR=ar
6147test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6148
df7b86aa 6149
df7b86aa 6150
df7b86aa 6151
df7b86aa 6152
d7040cdb
SE
6153
6154
6155
6156
6157
6158
d45dc31f
SE
6159if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6161set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163$as_echo_n "checking for $ac_word... " >&6; }
6164if test "${ac_cv_prog_STRIP+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
d45dc31f
SE
6166else
6167 if test -n "$STRIP"; then
6168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6169else
6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171for as_dir in $PATH
42ecbf5e 6172do
d45dc31f
SE
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 6177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6179 break 2
6180 fi
6181done
81ecdfbb
RW
6182 done
6183IFS=$as_save_IFS
d45dc31f
SE
6184
6185fi
6186fi
6187STRIP=$ac_cv_prog_STRIP
6188if test -n "$STRIP"; then
81ecdfbb
RW
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6190$as_echo "$STRIP" >&6; }
252b5132 6191else
81ecdfbb
RW
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193$as_echo "no" >&6; }
d45dc31f 6194fi
42ecbf5e 6195
81ecdfbb 6196
252b5132 6197fi
d45dc31f
SE
6198if test -z "$ac_cv_prog_STRIP"; then
6199 ac_ct_STRIP=$STRIP
6200 # Extract the first word of "strip", so it can be a program name with args.
6201set dummy strip; ac_word=$2
81ecdfbb
RW
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203$as_echo_n "checking for $ac_word... " >&6; }
6204if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
d45dc31f
SE
6206else
6207 if test -n "$ac_ct_STRIP"; then
6208 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d45dc31f 6217 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d45dc31f
SE
6219 break 2
6220 fi
6221done
81ecdfbb
RW
6222 done
6223IFS=$as_save_IFS
42ecbf5e 6224
d45dc31f
SE
6225fi
6226fi
6227ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6228if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6230$as_echo "$ac_ct_STRIP" >&6; }
d45dc31f 6231else
81ecdfbb
RW
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233$as_echo "no" >&6; }
252b5132 6234fi
e5a52504 6235
81ecdfbb
RW
6236 if test "x$ac_ct_STRIP" = x; then
6237 STRIP=":"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240yes:)
6241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243ac_tool_warned=yes ;;
6244esac
6245 STRIP=$ac_ct_STRIP
6246 fi
d45dc31f
SE
6247else
6248 STRIP="$ac_cv_prog_STRIP"
6249fi
e5a52504 6250
d7040cdb 6251test -z "$STRIP" && STRIP=:
d45dc31f 6252
d45dc31f
SE
6253
6254
d45dc31f 6255
d45dc31f
SE
6256
6257
d7040cdb
SE
6258if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6260set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262$as_echo_n "checking for $ac_word... " >&6; }
6263if test "${ac_cv_prog_RANLIB+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
d45dc31f 6265else
d7040cdb
SE
6266 if test -n "$RANLIB"; then
6267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6268else
6269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270for as_dir in $PATH
6271do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6278 break 2
d45dc31f 6279 fi
d7040cdb 6280done
81ecdfbb
RW
6281 done
6282IFS=$as_save_IFS
d45dc31f 6283
d7040cdb
SE
6284fi
6285fi
6286RANLIB=$ac_cv_prog_RANLIB
6287if test -n "$RANLIB"; then
81ecdfbb
RW
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6289$as_echo "$RANLIB" >&6; }
d7040cdb 6290else
81ecdfbb
RW
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292$as_echo "no" >&6; }
d7040cdb 6293fi
d45dc31f 6294
81ecdfbb 6295
d7040cdb
SE
6296fi
6297if test -z "$ac_cv_prog_RANLIB"; then
6298 ac_ct_RANLIB=$RANLIB
6299 # Extract the first word of "ranlib", so it can be a program name with args.
6300set dummy ranlib; ac_word=$2
81ecdfbb
RW
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
6303if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
d7040cdb
SE
6305else
6306 if test -n "$ac_ct_RANLIB"; then
6307 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 6316 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 6318 break 2
d45dc31f 6319 fi
d7040cdb 6320done
81ecdfbb
RW
6321 done
6322IFS=$as_save_IFS
d45dc31f 6323
d7040cdb
SE
6324fi
6325fi
6326ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6327if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6329$as_echo "$ac_ct_RANLIB" >&6; }
d15b04bd 6330else
81ecdfbb
RW
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
d7040cdb 6333fi
252b5132 6334
81ecdfbb
RW
6335 if test "x$ac_ct_RANLIB" = x; then
6336 RANLIB=":"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339yes:)
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342ac_tool_warned=yes ;;
6343esac
6344 RANLIB=$ac_ct_RANLIB
6345 fi
d7040cdb
SE
6346else
6347 RANLIB="$ac_cv_prog_RANLIB"
6348fi
d45dc31f 6349
d7040cdb 6350test -z "$RANLIB" && RANLIB=:
d45dc31f 6351
d45dc31f 6352
d45dc31f 6353
42ecbf5e 6354
e5a52504 6355
d7040cdb
SE
6356
6357# Determine commands to create old-style static archives.
718a6fd8 6358old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d7040cdb
SE
6359old_postinstall_cmds='chmod 644 $oldlib'
6360old_postuninstall_cmds=
6361
6362if test -n "$RANLIB"; then
6363 case $host_os in
6364 openbsd*)
6365 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6366 ;;
6367 *)
6368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6369 ;;
6370 esac
6371 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d45dc31f 6372fi
d45dc31f 6373
3725885a
RW
6374case $host_os in
6375 darwin*)
6376 lock_old_archive_extraction=yes ;;
6377 *)
6378 lock_old_archive_extraction=no ;;
6379esac
6380
6381
6382
6383
6384
6385
d45dc31f 6386
d45dc31f
SE
6387
6388
d15b04bd 6389
3e321448 6390
d45dc31f 6391
d45dc31f 6392
d45dc31f
SE
6393
6394
d45dc31f 6395
d45dc31f 6396
d45dc31f
SE
6397
6398
6399
6400
6401
6402
6403
d45dc31f 6404
d45dc31f 6405
d45dc31f 6406
d45dc31f 6407
d45dc31f 6408
d45dc31f 6409
d45dc31f 6410
d45dc31f 6411
3e321448
L
6412
6413
d45dc31f
SE
6414
6415
d45dc31f
SE
6416
6417
d45dc31f 6418
d7040cdb
SE
6419# If no C compiler was specified, use CC.
6420LTCC=${LTCC-"$CC"}
42ecbf5e 6421
d7040cdb
SE
6422# If no C compiler flags were specified, use CFLAGS.
6423LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
e5a52504 6424
d7040cdb
SE
6425# Allow CC to be a program name with arguments.
6426compiler=$CC
d15b04bd 6427
d7040cdb
SE
6428
6429# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6431$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6432if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
d15b04bd 6434else
d7040cdb
SE
6435
6436# These are sane defaults that work on at least a few old systems.
6437# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6438
6439# Character class describing NM global symbol codes.
6440symcode='[BCDEGRST]'
6441
6442# Regexp to match symbols that can be accessed directly from C.
6443sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6444
6445# Define system-specific variables.
6446case $host_os in
6447aix*)
6448 symcode='[BCDT]'
6449 ;;
718a6fd8 6450cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
6451 symcode='[ABCDGISTW]'
6452 ;;
6453hpux*)
6454 if test "$host_cpu" = ia64; then
6455 symcode='[ABCDEGRST]'
42ecbf5e 6456 fi
d7040cdb
SE
6457 ;;
6458irix* | nonstopux*)
6459 symcode='[BCDEGRST]'
6460 ;;
6461osf*)
6462 symcode='[BCDEGQRST]'
6463 ;;
6464solaris*)
6465 symcode='[BDRT]'
6466 ;;
6467sco3.2v5*)
6468 symcode='[DT]'
6469 ;;
6470sysv4.2uw2*)
6471 symcode='[DT]'
6472 ;;
6473sysv5* | sco5v6* | unixware* | OpenUNIX*)
6474 symcode='[ABDT]'
6475 ;;
6476sysv4)
6477 symcode='[DFNSTU]'
6478 ;;
6479esac
d15b04bd 6480
d7040cdb
SE
6481# If we're using GNU nm, then use its standard symbol codes.
6482case `$NM -V 2>&1` in
6483*GNU* | *'with BFD'*)
6484 symcode='[ABCDGIRSTW]' ;;
6485esac
e5a52504 6486
d7040cdb
SE
6487# Transform an extracted symbol line into a proper C declaration.
6488# Some systems (esp. on ia64) link data and code symbols differently,
7357c5b6
AM
6489# so use this general approach.
6490lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6491
7357c5b6 6492# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6493lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6494lt_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 6495
7357c5b6
AM
6496# Handle CRLF in mingw tool chain
6497opt_cr=
6498case $build_os in
6499mingw*)
6500 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6501 ;;
6502esac
d7040cdb 6503
7357c5b6
AM
6504# Try without a prefix underscore, then with it.
6505for ac_symprfx in "" "_"; do
d7040cdb 6506
7357c5b6
AM
6507 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6508 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6509
7357c5b6
AM
6510 # Write the raw and C identifiers.
6511 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6512 # Fake it for dumpbin and say T for any non-static function
6513 # and D for any global variable.
6514 # Also find C++ and __fastcall symbols from MSVC++,
6515 # which start with @ or ?.
6516 lt_cv_sys_global_symbol_pipe="$AWK '"\
6517" {last_section=section; section=\$ 3};"\
6518" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6519" \$ 0!~/External *\|/{next};"\
6520" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6521" {if(hide[section]) next};"\
6522" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6523" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6524" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6525" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6526" ' prfx=^$ac_symprfx"
6527 else
6528 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6529 fi
6530
6531 # Check to see that the pipe works correctly.
6532 pipe_works=no
6533
6534 rm -f conftest*
6535 cat > conftest.$ac_ext <<_LT_EOF
6536#ifdef __cplusplus
6537extern "C" {
6538#endif
6539char nm_test_var;
6540void nm_test_func(void);
6541void nm_test_func(void){}
6542#ifdef __cplusplus
d7040cdb 6543}
7357c5b6
AM
6544#endif
6545int main(){nm_test_var='a';nm_test_func();return(0);}
6546_LT_EOF
6547
81ecdfbb 6548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6549 (eval $ac_compile) 2>&5
42ecbf5e 6550 ac_status=$?
81ecdfbb
RW
6551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552 test $ac_status = 0; }; then
7357c5b6
AM
6553 # Now try to grab the symbols.
6554 nlist=conftest.nm
3725885a
RW
6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6556 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
42ecbf5e 6557 ac_status=$?
81ecdfbb
RW
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6560 # Try sorting and uniquifying the output.
6561 if sort "$nlist" | uniq > "$nlist"T; then
6562 mv -f "$nlist"T "$nlist"
6563 else
6564 rm -f "$nlist"T
6565 fi
d7040cdb 6566
7357c5b6
AM
6567 # Make sure that we snagged all the symbols we need.
6568 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6569 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6570 cat <<_LT_EOF > conftest.$ac_ext
6571#ifdef __cplusplus
6572extern "C" {
6573#endif
e5a52504 6574
7357c5b6
AM
6575_LT_EOF
6576 # Now generate the symbol file.
6577 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7148cc28 6578
7357c5b6 6579 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6580
7357c5b6 6581/* The mapping between symbol names and symbols. */
f2c621e4 6582const struct {
7357c5b6
AM
6583 const char *name;
6584 void *address;
6585}
6586lt__PROGRAM__LTX_preloaded_symbols[] =
6587{
6588 { "@PROGRAM@", (void *) 0 },
6589_LT_EOF
6590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6591 cat <<\_LT_EOF >> conftest.$ac_ext
6592 {0, (void *) 0}
6593};
d7040cdb 6594
7357c5b6
AM
6595/* This works around a problem in FreeBSD linker */
6596#ifdef FREEBSD_WORKAROUND
6597static const void *lt_preloaded_setup() {
6598 return lt__PROGRAM__LTX_preloaded_symbols;
6599}
d7040cdb
SE
6600#endif
6601
7357c5b6 6602#ifdef __cplusplus
d7040cdb 6603}
7357c5b6
AM
6604#endif
6605_LT_EOF
6606 # Now try linking the two files.
6607 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6608 lt_save_LIBS="$LIBS"
6609 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6610 LIBS="conftstm.$ac_objext"
6611 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
6613 (eval $ac_link) 2>&5
6614 ac_status=$?
81ecdfbb
RW
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6617 pipe_works=yes
6618 fi
f2c621e4
AS
6619 LIBS="$lt_save_LIBS"
6620 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6621 else
6622 echo "cannot find nm_test_func in $nlist" >&5
6623 fi
6624 else
6625 echo "cannot find nm_test_var in $nlist" >&5
6626 fi
6627 else
6628 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6629 fi
6630 else
6631 echo "$progname: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6633 fi
718a6fd8 6634 rm -rf conftest* conftst*
7357c5b6
AM
6635
6636 # Do not use the global_symbol_pipe unless it works.
6637 if test "$pipe_works" = yes; then
6638 break
6639 else
6640 lt_cv_sys_global_symbol_pipe=
6641 fi
6642done
d7040cdb 6643
d7040cdb 6644fi
7357c5b6
AM
6645
6646if test -z "$lt_cv_sys_global_symbol_pipe"; then
6647 lt_cv_sys_global_symbol_to_cdecl=
d7040cdb 6648fi
7357c5b6 6649if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6651$as_echo "failed" >&6; }
7357c5b6 6652else
81ecdfbb
RW
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6654$as_echo "ok" >&6; }
d7040cdb 6655fi
20e95c23 6656
20e95c23 6657
20e95c23 6658
20e95c23 6659
20e95c23 6660
20e95c23 6661
20e95c23
DJ
6662
6663
7357c5b6
AM
6664
6665
6666
718a6fd8
SE
6667
6668
6669
6670
6671
7357c5b6 6672
df7b86aa
NC
6673
6674
6675
6676
7357c5b6 6677
81ecdfbb
RW
6678# Check whether --enable-libtool-lock was given.
6679if test "${enable_libtool_lock+set}" = set; then :
6680 enableval=$enable_libtool_lock;
6681fi
7357c5b6 6682
7357c5b6
AM
6683test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6684
6685# Some flags need to be propagated to the compiler or linker for good
6686# libtool support.
6687case $host in
6688ia64-*-hpux*)
6689 # Find out which ABI we are using.
6690 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6692 (eval $ac_compile) 2>&5
6693 ac_status=$?
81ecdfbb
RW
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; then
7357c5b6
AM
6696 case `/usr/bin/file conftest.$ac_objext` in
6697 *ELF-32*)
6698 HPUX_IA64_MODE="32"
6699 ;;
6700 *ELF-64*)
6701 HPUX_IA64_MODE="64"
6702 ;;
6703 esac
6704 fi
6705 rm -rf conftest*
6706 ;;
6707*-*-irix6*)
6708 # Find out which ABI we are using.
3725885a 6709 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
81ecdfbb
RW
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; then
7357c5b6
AM
6715 if test "$lt_cv_prog_gnu_ld" = yes; then
6716 case `/usr/bin/file conftest.$ac_objext` in
6717 *32-bit*)
6718 LD="${LD-ld} -melf32bsmip"
6719 ;;
6720 *N32*)
6721 LD="${LD-ld} -melf32bmipn32"
6722 ;;
6723 *64-bit*)
6724 LD="${LD-ld} -melf64bmip"
6725 ;;
6726 esac
6727 else
6728 case `/usr/bin/file conftest.$ac_objext` in
6729 *32-bit*)
6730 LD="${LD-ld} -32"
6731 ;;
6732 *N32*)
6733 LD="${LD-ld} -n32"
6734 ;;
6735 *64-bit*)
6736 LD="${LD-ld} -64"
6737 ;;
6738 esac
6739 fi
6740 fi
6741 rm -rf conftest*
6742 ;;
6743
cc9afea3 6744x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6745s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6746 # Find out which ABI we are using.
6747 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6749 (eval $ac_compile) 2>&5
6750 ac_status=$?
81ecdfbb
RW
6751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6752 test $ac_status = 0; }; then
7357c5b6
AM
6753 case `/usr/bin/file conftest.o` in
6754 *32-bit*)
6755 case $host in
6756 x86_64-*kfreebsd*-gnu)
6757 LD="${LD-ld} -m elf_i386_fbsd"
6758 ;;
6759 x86_64-*linux*)
6d2920c8
L
6760 case `/usr/bin/file conftest.o` in
6761 *x86-64*)
6762 LD="${LD-ld} -m elf32_x86_64"
6763 ;;
6764 *)
6765 LD="${LD-ld} -m elf_i386"
6766 ;;
6767 esac
7357c5b6 6768 ;;
cc9afea3
AM
6769 powerpc64le-*linux*)
6770 LD="${LD-ld} -m elf32lppclinux"
6771 ;;
6772 powerpc64-*linux*)
7357c5b6
AM
6773 LD="${LD-ld} -m elf32ppclinux"
6774 ;;
6775 s390x-*linux*)
6776 LD="${LD-ld} -m elf_s390"
6777 ;;
6778 sparc64-*linux*)
6779 LD="${LD-ld} -m elf32_sparc"
6780 ;;
6781 esac
6782 ;;
6783 *64-bit*)
6784 case $host in
6785 x86_64-*kfreebsd*-gnu)
6786 LD="${LD-ld} -m elf_x86_64_fbsd"
6787 ;;
6788 x86_64-*linux*)
6789 LD="${LD-ld} -m elf_x86_64"
6790 ;;
cc9afea3
AM
6791 powerpcle-*linux*)
6792 LD="${LD-ld} -m elf64lppc"
6793 ;;
6794 powerpc-*linux*)
7357c5b6
AM
6795 LD="${LD-ld} -m elf64ppc"
6796 ;;
6797 s390*-*linux*|s390*-*tpf*)
6798 LD="${LD-ld} -m elf64_s390"
6799 ;;
6800 sparc*-*linux*)
6801 LD="${LD-ld} -m elf64_sparc"
6802 ;;
6803 esac
6804 ;;
6805 esac
6806 fi
6807 rm -rf conftest*
6808 ;;
6809
6810*-*-sco3.2v5*)
6811 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6812 SAVE_CFLAGS="$CFLAGS"
6813 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6815$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6816if test "${lt_cv_cc_needs_belf+set}" = set; then :
6817 $as_echo_n "(cached) " >&6
d7040cdb 6818else
7357c5b6
AM
6819 ac_ext=c
6820ac_cpp='$CPP $CPPFLAGS'
6821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824
81ecdfbb 6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 6826/* end confdefs.h. */
20e95c23 6827
7357c5b6
AM
6828int
6829main ()
6830{
6831
6832 ;
6833 return 0;
6834}
d7040cdb 6835_ACEOF
81ecdfbb 6836if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 6837 lt_cv_cc_needs_belf=yes
d15b04bd 6838else
81ecdfbb 6839 lt_cv_cc_needs_belf=no
d7040cdb 6840fi
81ecdfbb
RW
6841rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
6843 ac_ext=c
6844ac_cpp='$CPP $CPPFLAGS'
6845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6847ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 6848
718a6fd8 6849fi
81ecdfbb
RW
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6851$as_echo "$lt_cv_cc_needs_belf" >&6; }
718a6fd8
SE
6852 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6853 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6854 CFLAGS="$SAVE_CFLAGS"
6855 fi
6856 ;;
6857sparc*-*solaris*)
6858 # Find out which ABI we are using.
6859 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
718a6fd8
SE
6861 (eval $ac_compile) 2>&5
6862 ac_status=$?
81ecdfbb
RW
6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864 test $ac_status = 0; }; then
718a6fd8
SE
6865 case `/usr/bin/file conftest.o` in
6866 *64-bit*)
6867 case $lt_cv_prog_gnu_ld in
6868 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6869 *)
6870 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6871 LD="${LD-ld} -64"
6872 fi
6873 ;;
6874 esac
6875 ;;
6876 esac
6877 fi
df7b86aa
NC
6878 rm -rf conftest*
6879 ;;
6880esac
6881
6882need_locks="$enable_libtool_lock"
6883
718a6fd8
SE
6884
6885 case $host_os in
6886 rhapsody* | darwin*)
6887 if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
6892if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
718a6fd8
SE
6894else
6895 if test -n "$DSYMUTIL"; then
6896 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6905 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6907 break 2
6908 fi
6909done
81ecdfbb
RW
6910 done
6911IFS=$as_save_IFS
718a6fd8
SE
6912
6913fi
6914fi
6915DSYMUTIL=$ac_cv_prog_DSYMUTIL
6916if test -n "$DSYMUTIL"; then
81ecdfbb
RW
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6918$as_echo "$DSYMUTIL" >&6; }
718a6fd8 6919else
81ecdfbb
RW
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
718a6fd8
SE
6922fi
6923
81ecdfbb 6924
718a6fd8
SE
6925fi
6926if test -z "$ac_cv_prog_DSYMUTIL"; then
6927 ac_ct_DSYMUTIL=$DSYMUTIL
6928 # Extract the first word of "dsymutil", so it can be a program name with args.
6929set dummy dsymutil; ac_word=$2
81ecdfbb
RW
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
6932if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
718a6fd8
SE
6934else
6935 if test -n "$ac_ct_DSYMUTIL"; then
6936 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6945 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6947 break 2
6948 fi
6949done
81ecdfbb
RW
6950 done
6951IFS=$as_save_IFS
718a6fd8 6952
718a6fd8
SE
6953fi
6954fi
6955ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6956if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6958$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 6959else
81ecdfbb
RW
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
718a6fd8
SE
6962fi
6963
81ecdfbb
RW
6964 if test "x$ac_ct_DSYMUTIL" = x; then
6965 DSYMUTIL=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
6973 DSYMUTIL=$ac_ct_DSYMUTIL
6974 fi
718a6fd8
SE
6975else
6976 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6977fi
6978
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6981set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983$as_echo_n "checking for $ac_word... " >&6; }
6984if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6985 $as_echo_n "(cached) " >&6
718a6fd8
SE
6986else
6987 if test -n "$NMEDIT"; then
6988 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6989else
6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 6997 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6999 break 2
7000 fi
7001done
81ecdfbb
RW
7002 done
7003IFS=$as_save_IFS
718a6fd8
SE
7004
7005fi
7006fi
7007NMEDIT=$ac_cv_prog_NMEDIT
7008if test -n "$NMEDIT"; then
81ecdfbb
RW
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7010$as_echo "$NMEDIT" >&6; }
718a6fd8 7011else
81ecdfbb
RW
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013$as_echo "no" >&6; }
718a6fd8
SE
7014fi
7015
81ecdfbb 7016
718a6fd8
SE
7017fi
7018if test -z "$ac_cv_prog_NMEDIT"; then
7019 ac_ct_NMEDIT=$NMEDIT
7020 # Extract the first word of "nmedit", so it can be a program name with args.
7021set dummy nmedit; ac_word=$2
81ecdfbb
RW
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
718a6fd8
SE
7026else
7027 if test -n "$ac_ct_NMEDIT"; then
7028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7037 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7039 break 2
7040 fi
7041done
81ecdfbb
RW
7042 done
7043IFS=$as_save_IFS
718a6fd8 7044
718a6fd8
SE
7045fi
7046fi
7047ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7048if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7050$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7051else
81ecdfbb
RW
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
718a6fd8
SE
7054fi
7055
81ecdfbb
RW
7056 if test "x$ac_ct_NMEDIT" = x; then
7057 NMEDIT=":"
7058 else
7059 case $cross_compiling:$ac_tool_warned in
7060yes:)
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063ac_tool_warned=yes ;;
7064esac
7065 NMEDIT=$ac_ct_NMEDIT
7066 fi
718a6fd8
SE
7067else
7068 NMEDIT="$ac_cv_prog_NMEDIT"
7069fi
7070
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7073set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075$as_echo_n "checking for $ac_word... " >&6; }
7076if test "${ac_cv_prog_LIPO+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
718a6fd8
SE
7078else
7079 if test -n "$LIPO"; then
7080 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7089 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7091 break 2
7092 fi
7093done
81ecdfbb
RW
7094 done
7095IFS=$as_save_IFS
718a6fd8
SE
7096
7097fi
7098fi
7099LIPO=$ac_cv_prog_LIPO
7100if test -n "$LIPO"; then
81ecdfbb
RW
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7102$as_echo "$LIPO" >&6; }
718a6fd8 7103else
81ecdfbb
RW
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105$as_echo "no" >&6; }
718a6fd8
SE
7106fi
7107
81ecdfbb 7108
718a6fd8
SE
7109fi
7110if test -z "$ac_cv_prog_LIPO"; then
7111 ac_ct_LIPO=$LIPO
7112 # Extract the first word of "lipo", so it can be a program name with args.
7113set dummy lipo; ac_word=$2
81ecdfbb
RW
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
718a6fd8
SE
7118else
7119 if test -n "$ac_ct_LIPO"; then
7120 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7129 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7131 break 2
7132 fi
7133done
81ecdfbb
RW
7134 done
7135IFS=$as_save_IFS
718a6fd8 7136
718a6fd8
SE
7137fi
7138fi
7139ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7140if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7142$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7143else
81ecdfbb
RW
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
718a6fd8
SE
7146fi
7147
81ecdfbb
RW
7148 if test "x$ac_ct_LIPO" = x; then
7149 LIPO=":"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152yes:)
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155ac_tool_warned=yes ;;
7156esac
7157 LIPO=$ac_ct_LIPO
7158 fi
718a6fd8
SE
7159else
7160 LIPO="$ac_cv_prog_LIPO"
7161fi
7162
7163 if test -n "$ac_tool_prefix"; then
7164 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7165set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7167$as_echo_n "checking for $ac_word... " >&6; }
7168if test "${ac_cv_prog_OTOOL+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
718a6fd8
SE
7170else
7171 if test -n "$OTOOL"; then
7172 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7181 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7183 break 2
7184 fi
7185done
81ecdfbb
RW
7186 done
7187IFS=$as_save_IFS
718a6fd8
SE
7188
7189fi
7190fi
7191OTOOL=$ac_cv_prog_OTOOL
7192if test -n "$OTOOL"; then
81ecdfbb
RW
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7194$as_echo "$OTOOL" >&6; }
718a6fd8 7195else
81ecdfbb
RW
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7197$as_echo "no" >&6; }
718a6fd8
SE
7198fi
7199
81ecdfbb 7200
718a6fd8
SE
7201fi
7202if test -z "$ac_cv_prog_OTOOL"; then
7203 ac_ct_OTOOL=$OTOOL
7204 # Extract the first word of "otool", so it can be a program name with args.
7205set dummy otool; ac_word=$2
81ecdfbb
RW
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
718a6fd8
SE
7210else
7211 if test -n "$ac_ct_OTOOL"; then
7212 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7221 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7223 break 2
7224 fi
7225done
81ecdfbb
RW
7226 done
7227IFS=$as_save_IFS
718a6fd8 7228
718a6fd8
SE
7229fi
7230fi
7231ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7232if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7234$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7235else
81ecdfbb
RW
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
718a6fd8
SE
7238fi
7239
81ecdfbb
RW
7240 if test "x$ac_ct_OTOOL" = x; then
7241 OTOOL=":"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244yes:)
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247ac_tool_warned=yes ;;
7248esac
7249 OTOOL=$ac_ct_OTOOL
7250 fi
718a6fd8
SE
7251else
7252 OTOOL="$ac_cv_prog_OTOOL"
7253fi
7254
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
718a6fd8
SE
7262else
7263 if test -n "$OTOOL64"; then
7264 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7273 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7275 break 2
7276 fi
7277done
81ecdfbb
RW
7278 done
7279IFS=$as_save_IFS
718a6fd8
SE
7280
7281fi
7282fi
7283OTOOL64=$ac_cv_prog_OTOOL64
7284if test -n "$OTOOL64"; then
81ecdfbb
RW
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7286$as_echo "$OTOOL64" >&6; }
718a6fd8 7287else
81ecdfbb
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
718a6fd8
SE
7290fi
7291
81ecdfbb 7292
718a6fd8
SE
7293fi
7294if test -z "$ac_cv_prog_OTOOL64"; then
7295 ac_ct_OTOOL64=$OTOOL64
7296 # Extract the first word of "otool64", so it can be a program name with args.
7297set dummy otool64; ac_word=$2
81ecdfbb
RW
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7301 $as_echo_n "(cached) " >&6
718a6fd8
SE
7302else
7303 if test -n "$ac_ct_OTOOL64"; then
7304 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7311 for ac_exec_ext in '' $ac_executable_extensions; do
7312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
718a6fd8 7313 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7315 break 2
7316 fi
7317done
81ecdfbb
RW
7318 done
7319IFS=$as_save_IFS
718a6fd8 7320
718a6fd8
SE
7321fi
7322fi
7323ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7324if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7326$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7327else
81ecdfbb
RW
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
718a6fd8
SE
7330fi
7331
81ecdfbb
RW
7332 if test "x$ac_ct_OTOOL64" = x; then
7333 OTOOL64=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341 OTOOL64=$ac_ct_OTOOL64
7342 fi
718a6fd8
SE
7343else
7344 OTOOL64="$ac_cv_prog_OTOOL64"
7345fi
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
81ecdfbb
RW
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7374$as_echo_n "checking for -single_module linker flag... " >&6; }
7375if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
718a6fd8
SE
7377else
7378 lt_cv_apple_cc_single_mod=no
7379 if test -z "${LT_MULTI_MODULE}"; then
7380 # By default we will add the -single_module flag. You can override
7381 # by either setting the environment variable LT_MULTI_MODULE
7382 # non-empty at configure time, or by adding -multi_module to the
7383 # link flags.
7384 rm -rf libconftest.dylib*
7385 echo "int foo(void){return 1;}" > conftest.c
7386 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7387-dynamiclib -Wl,-single_module conftest.c" >&5
7388 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7389 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7390 _lt_result=$?
7391 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7392 lt_cv_apple_cc_single_mod=yes
7393 else
7394 cat conftest.err >&5
7395 fi
7396 rm -rf libconftest.dylib*
7397 rm -f conftest.*
7398 fi
7399fi
81ecdfbb
RW
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7401$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7403$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7404if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
718a6fd8
SE
7406else
7407 lt_cv_ld_exported_symbols_list=no
7408 save_LDFLAGS=$LDFLAGS
7409 echo "_main" > conftest.sym
7410 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7412/* end confdefs.h. */
7413
7414int
7415main ()
7416{
7417
7418 ;
7419 return 0;
7420}
7421_ACEOF
81ecdfbb 7422if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7423 lt_cv_ld_exported_symbols_list=yes
7424else
81ecdfbb 7425 lt_cv_ld_exported_symbols_list=no
718a6fd8 7426fi
81ecdfbb
RW
7427rm -f core conftest.err conftest.$ac_objext \
7428 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7429 LDFLAGS="$save_LDFLAGS"
7430
7431fi
81ecdfbb
RW
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7433$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7435$as_echo_n "checking for -force_load linker flag... " >&6; }
7436if test "${lt_cv_ld_force_load+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438else
7439 lt_cv_ld_force_load=no
7440 cat > conftest.c << _LT_EOF
7441int forced_loaded() { return 2;}
7442_LT_EOF
7443 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7444 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7445 echo "$AR cru libconftest.a conftest.o" >&5
7446 $AR cru libconftest.a conftest.o 2>&5
7447 cat > conftest.c << _LT_EOF
7448int main() { return 0;}
7449_LT_EOF
7450 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7451 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7452 _lt_result=$?
7453 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7454 lt_cv_ld_force_load=yes
7455 else
7456 cat conftest.err >&5
7457 fi
7458 rm -f conftest.err libconftest.a conftest conftest.c
7459 rm -rf conftest.dSYM
7460
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7463$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7464 case $host_os in
7465 rhapsody* | darwin1.[012])
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7467 darwin1.*)
7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469 darwin*) # darwin 5.x on
7470 # if running on 10.5 or later, the deployment target defaults
7471 # to the OS version, if on x86, and 10.4, the deployment
7472 # target defaults to 10.4. Don't you love it?
7473 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7474 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7475 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7476 10.[012][,.]*)
718a6fd8
SE
7477 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7478 10.*)
7479 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7480 esac
7481 ;;
7482 esac
7483 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7484 _lt_dar_single_mod='$single_module'
7485 fi
7486 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7487 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7488 else
7489 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7490 fi
3725885a 7491 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7492 _lt_dsymutil='~$DSYMUTIL $lib || :'
7493 else
7494 _lt_dsymutil=
7495 fi
7496 ;;
7497 esac
7498
718a6fd8 7499for ac_header in dlfcn.h
81ecdfbb
RW
7500do :
7501 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7502"
7503if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
718a6fd8 7504 cat >>confdefs.h <<_ACEOF
81ecdfbb 7505#define HAVE_DLFCN_H 1
718a6fd8
SE
7506_ACEOF
7507
7508fi
7509
7510done
7511
7512
7513
3725885a
RW
7514
7515
718a6fd8
SE
7516# Set options
7517
7518
7519
7520 enable_dlopen=no
7521
7522
7523 enable_win32_dll=no
7524
7525
81ecdfbb
RW
7526 # Check whether --enable-shared was given.
7527if test "${enable_shared+set}" = set; then :
7528 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7529 case $enableval in
7530 yes) enable_shared=yes ;;
7531 no) enable_shared=no ;;
7532 *)
7533 enable_shared=no
7534 # Look at the argument we got. We use all the common list separators.
7535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7536 for pkg in $enableval; do
7537 IFS="$lt_save_ifs"
7538 if test "X$pkg" = "X$p"; then
7539 enable_shared=yes
7540 fi
7541 done
7542 IFS="$lt_save_ifs"
7543 ;;
7544 esac
7545else
7546 enable_shared=yes
81ecdfbb 7547fi
718a6fd8
SE
7548
7549
7550
7551
7552
7553
7554
7555
81ecdfbb
RW
7556
7557 # Check whether --enable-static was given.
7558if test "${enable_static+set}" = set; then :
7559 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7560 case $enableval in
7561 yes) enable_static=yes ;;
7562 no) enable_static=no ;;
7563 *)
7564 enable_static=no
7565 # Look at the argument we got. We use all the common list separators.
7566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7567 for pkg in $enableval; do
7568 IFS="$lt_save_ifs"
7569 if test "X$pkg" = "X$p"; then
7570 enable_static=yes
7571 fi
7572 done
7573 IFS="$lt_save_ifs"
7574 ;;
7575 esac
7576else
7577 enable_static=yes
81ecdfbb 7578fi
718a6fd8
SE
7579
7580
7581
7582
7583
7584
7585
7586
7587
81ecdfbb
RW
7588
7589# Check whether --with-pic was given.
7590if test "${with_pic+set}" = set; then :
7591 withval=$with_pic; pic_mode="$withval"
718a6fd8
SE
7592else
7593 pic_mode=default
81ecdfbb
RW
7594fi
7595
718a6fd8
SE
7596
7597test -z "$pic_mode" && pic_mode=default
7598
7599
7600
7601
7602
7603
7604
81ecdfbb
RW
7605 # Check whether --enable-fast-install was given.
7606if test "${enable_fast_install+set}" = set; then :
7607 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7608 case $enableval in
7609 yes) enable_fast_install=yes ;;
7610 no) enable_fast_install=no ;;
7611 *)
7612 enable_fast_install=no
7613 # Look at the argument we got. We use all the common list separators.
7614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7615 for pkg in $enableval; do
7616 IFS="$lt_save_ifs"
7617 if test "X$pkg" = "X$p"; then
7618 enable_fast_install=yes
7619 fi
7620 done
7621 IFS="$lt_save_ifs"
7357c5b6
AM
7622 ;;
7623 esac
718a6fd8
SE
7624else
7625 enable_fast_install=yes
81ecdfbb
RW
7626fi
7627
20e95c23 7628
20e95c23
DJ
7629
7630
42ecbf5e 7631
d7040cdb 7632
20e95c23 7633
d7040cdb 7634
d7040cdb
SE
7635
7636
7637
7638# This can be used to rebuild libtool when needed
7639LIBTOOL_DEPS="$ltmain"
7640
7641# Always use our own libtool.
7642LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
3725885a 7666
d7040cdb
SE
7667
7668
7669test -z "$LN_S" && LN_S="ln -s"
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684if test -n "${ZSH_VERSION+set}" ; then
7685 setopt NO_GLOB_SUBST
7686fi
7687
81ecdfbb
RW
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7689$as_echo_n "checking for objdir... " >&6; }
7690if test "${lt_cv_objdir+set}" = set; then :
7691 $as_echo_n "(cached) " >&6
20e95c23 7692else
d7040cdb
SE
7693 rm -f .libs 2>/dev/null
7694mkdir .libs 2>/dev/null
7695if test -d .libs; then
7696 lt_cv_objdir=.libs
42ecbf5e 7697else
d7040cdb
SE
7698 # MS-DOS does not allow filenames that begin with a dot.
7699 lt_cv_objdir=_libs
7700fi
7701rmdir .libs 2>/dev/null
42ecbf5e 7702fi
81ecdfbb
RW
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7704$as_echo "$lt_cv_objdir" >&6; }
d7040cdb 7705objdir=$lt_cv_objdir
42ecbf5e 7706
d7040cdb
SE
7707
7708
7709
7710
7711cat >>confdefs.h <<_ACEOF
7712#define LT_OBJDIR "$lt_cv_objdir/"
7713_ACEOF
7714
7715
7716
7717
d7040cdb
SE
7718case $host_os in
7719aix3*)
7720 # AIX sometimes has problems with the GCC collect2 program. For some
7721 # reason, if we set the COLLECT_NAMES environment variable, the problems
7722 # vanish in a puff of smoke.
7723 if test "X${COLLECT_NAMES+set}" != Xset; then
7724 COLLECT_NAMES=
7725 export COLLECT_NAMES
7726 fi
7727 ;;
7728esac
7729
d7040cdb
SE
7730# Global variables:
7731ofile=libtool
7732can_build_shared=yes
7733
7734# All known linkers require a `.a' archive for static linking (except MSVC,
7735# which needs '.lib').
7736libext=a
7737
7738with_gnu_ld="$lt_cv_prog_gnu_ld"
7739
7740old_CC="$CC"
7741old_CFLAGS="$CFLAGS"
7742
7743# Set sane defaults for various variables
7744test -z "$CC" && CC=cc
7745test -z "$LTCC" && LTCC=$CC
7746test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7747test -z "$LD" && LD=ld
7748test -z "$ac_objext" && ac_objext=o
7749
7750for cc_temp in $compiler""; do
7751 case $cc_temp in
7752 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7753 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7754 \-*) ;;
7755 *) break;;
7756 esac
7757done
3725885a 7758cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
7759
7760
7761# Only perform the check for file, if the check method requires it
7762test -z "$MAGIC_CMD" && MAGIC_CMD=file
7763case $deplibs_check_method in
7764file_magic*)
7765 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7767$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7768if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
42ecbf5e 7770else
d7040cdb
SE
7771 case $MAGIC_CMD in
7772[\\/*] | ?:[\\/]*)
7773 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
20e95c23 7774 ;;
d7040cdb
SE
7775*)
7776 lt_save_MAGIC_CMD="$MAGIC_CMD"
7777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7778 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7779 for ac_dir in $ac_dummy; do
7780 IFS="$lt_save_ifs"
7781 test -z "$ac_dir" && ac_dir=.
7782 if test -f $ac_dir/${ac_tool_prefix}file; then
7783 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7784 if test -n "$file_magic_test_file"; then
7785 case $deplibs_check_method in
7786 "file_magic "*)
7787 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7788 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7790 $EGREP "$file_magic_regex" > /dev/null; then
7791 :
7792 else
7793 cat <<_LT_EOF 1>&2
42ecbf5e 7794
d7040cdb
SE
7795*** Warning: the command libtool uses to detect shared libraries,
7796*** $file_magic_cmd, produces output that libtool cannot recognize.
7797*** The result is that libtool may fail to recognize shared libraries
7798*** as such. This will affect the creation of libtool libraries that
7799*** depend on shared libraries, but programs linked with such libtool
7800*** libraries will work regardless of this problem. Nevertheless, you
7801*** may want to report the problem to your system manager and/or to
7802*** bug-libtool@gnu.org
7803
7804_LT_EOF
7805 fi ;;
7806 esac
7807 fi
7808 break
7809 fi
7810 done
7811 IFS="$lt_save_ifs"
7812 MAGIC_CMD="$lt_save_MAGIC_CMD"
20e95c23
DJ
7813 ;;
7814esac
42ecbf5e 7815fi
20e95c23 7816
d7040cdb
SE
7817MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7818if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7820$as_echo "$MAGIC_CMD" >&6; }
42ecbf5e 7821else
81ecdfbb
RW
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
42ecbf5e
DJ
7824fi
7825
20e95c23
DJ
7826
7827
42ecbf5e 7828
20e95c23 7829
d7040cdb
SE
7830if test -z "$lt_cv_path_MAGIC_CMD"; then
7831 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7833$as_echo_n "checking for file... " >&6; }
7834if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
42ecbf5e 7836else
d7040cdb
SE
7837 case $MAGIC_CMD in
7838[\\/*] | ?:[\\/]*)
7839 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7840 ;;
7841*)
7842 lt_save_MAGIC_CMD="$MAGIC_CMD"
7843 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7844 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7845 for ac_dir in $ac_dummy; do
7846 IFS="$lt_save_ifs"
7847 test -z "$ac_dir" && ac_dir=.
7848 if test -f $ac_dir/file; then
7849 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7850 if test -n "$file_magic_test_file"; then
7851 case $deplibs_check_method in
7852 "file_magic "*)
7853 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7856 $EGREP "$file_magic_regex" > /dev/null; then
7857 :
7858 else
7859 cat <<_LT_EOF 1>&2
7860
7861*** Warning: the command libtool uses to detect shared libraries,
7862*** $file_magic_cmd, produces output that libtool cannot recognize.
7863*** The result is that libtool may fail to recognize shared libraries
7864*** as such. This will affect the creation of libtool libraries that
7865*** depend on shared libraries, but programs linked with such libtool
7866*** libraries will work regardless of this problem. Nevertheless, you
7867*** may want to report the problem to your system manager and/or to
7868*** bug-libtool@gnu.org
7869
7870_LT_EOF
7871 fi ;;
7872 esac
7873 fi
7874 break
7875 fi
7876 done
7877 IFS="$lt_save_ifs"
7878 MAGIC_CMD="$lt_save_MAGIC_CMD"
7879 ;;
20e95c23
DJ
7880esac
7881fi
d7040cdb
SE
7882
7883MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7884if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7886$as_echo "$MAGIC_CMD" >&6; }
20e95c23 7887else
81ecdfbb
RW
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
20e95c23
DJ
7890fi
7891
20e95c23 7892
42ecbf5e 7893 else
d7040cdb 7894 MAGIC_CMD=:
42ecbf5e 7895 fi
42ecbf5e 7896fi
42ecbf5e 7897
20e95c23 7898 fi
d7040cdb
SE
7899 ;;
7900esac
42ecbf5e 7901
d7040cdb 7902# Use C for the default configuration in the libtool script
42ecbf5e 7903
d7040cdb
SE
7904lt_save_CC="$CC"
7905ac_ext=c
7906ac_cpp='$CPP $CPPFLAGS'
7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e 7910
42ecbf5e 7911
d7040cdb
SE
7912# Source file extension for C test sources.
7913ac_ext=c
42ecbf5e 7914
d7040cdb
SE
7915# Object file extension for compiled C test sources.
7916objext=o
7917objext=$objext
42ecbf5e 7918
d7040cdb
SE
7919# Code to be used in simple compile tests
7920lt_simple_compile_test_code="int some_variable = 0;"
42ecbf5e 7921
d7040cdb
SE
7922# Code to be used in simple link tests
7923lt_simple_link_test_code='int main(){return(0);}'
42ecbf5e 7924
ac48eca1 7925
42ecbf5e 7926
42ecbf5e 7927
d5fbea21 7928
d5fbea21
DJ
7929
7930
d7040cdb
SE
7931# If no C compiler was specified, use CC.
7932LTCC=${LTCC-"$CC"}
20e95c23 7933
d7040cdb
SE
7934# If no C compiler flags were specified, use CFLAGS.
7935LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42ecbf5e 7936
d7040cdb
SE
7937# Allow CC to be a program name with arguments.
7938compiler=$CC
252b5132 7939
d7040cdb
SE
7940# Save the default compiler, since it gets overwritten when the other
7941# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7942compiler_DEFAULT=$CC
42ecbf5e 7943
d7040cdb
SE
7944# save warnings/boilerplate of simple test code
7945ac_outfile=conftest.$ac_objext
7946echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7947eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7948_lt_compiler_boilerplate=`cat conftest.err`
7949$RM conftest*
252b5132 7950
d7040cdb
SE
7951ac_outfile=conftest.$ac_objext
7952echo "$lt_simple_link_test_code" >conftest.$ac_ext
7953eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7954_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 7955$RM -r conftest*
252b5132 7956
42ecbf5e 7957
f2c621e4
AS
7958## CAVEAT EMPTOR:
7959## There is no encapsulation within the following macros, do not change
7960## the running order or otherwise move them around unless you know exactly
7961## what you are doing...
d7040cdb 7962if test -n "$compiler"; then
252b5132 7963
d7040cdb 7964lt_prog_compiler_no_builtin_flag=
252b5132 7965
d7040cdb 7966if test "$GCC" = yes; then
3725885a
RW
7967 case $cc_basename in
7968 nvcc*)
7969 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7970 *)
7971 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7972 esac
d15b04bd 7973
81ecdfbb
RW
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7975$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7976if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
252b5132 7978else
d7040cdb
SE
7979 lt_cv_prog_compiler_rtti_exceptions=no
7980 ac_outfile=conftest.$ac_objext
7981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7982 lt_compiler_flag="-fno-rtti -fno-exceptions"
7983 # Insert the option either (1) after the last *FLAGS variable, or
7984 # (2) before a word containing "conftest.", or (3) at the end.
7985 # Note that $ac_compile itself does not contain backslashes and begins
7986 # with a dollar sign (not a hyphen), so the echo should work correctly.
7987 # The option is referenced via a variable to avoid confusing sed.
7988 lt_compile=`echo "$ac_compile" | $SED \
7989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7991 -e 's:$: $lt_compiler_flag:'`
3725885a 7992 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
7993 (eval "$lt_compile" 2>conftest.err)
7994 ac_status=$?
7995 cat conftest.err >&5
3725885a 7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
7997 if (exit $ac_status) && test -s "$ac_outfile"; then
7998 # The compiler can only warn and ignore the option if not recognized
7999 # So say no if there are warnings other than the usual output.
3725885a 8000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8002 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8003 lt_cv_prog_compiler_rtti_exceptions=yes
8004 fi
8005 fi
8006 $RM conftest*
42ecbf5e 8007
252b5132 8008fi
81ecdfbb
RW
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8010$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb
SE
8011
8012if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8013 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
20e95c23 8014else
d7040cdb 8015 :
252b5132 8016fi
252b5132
RH
8017
8018fi
d7040cdb
SE
8019
8020
8021
8022
8023
8024
8025 lt_prog_compiler_wl=
8026lt_prog_compiler_pic=
8027lt_prog_compiler_static=
8028
f2c621e4
AS
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8030$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb
SE
8031
8032 if test "$GCC" = yes; then
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_static='-static'
8035
8036 case $host_os in
8037 aix*)
8038 # All AIX code is PIC.
8039 if test "$host_cpu" = ia64; then
8040 # AIX 5 now supports IA64 processor
8041 lt_prog_compiler_static='-Bstatic'
8042 fi
6c9c0a50 8043 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8044 ;;
8045
8046 amigaos*)
718a6fd8
SE
8047 case $host_cpu in
8048 powerpc)
8049 # see comment about AmigaOS4 .so support
8050 lt_prog_compiler_pic='-fPIC'
8051 ;;
8052 m68k)
8053 # FIXME: we need at least 68020 code to build shared libraries, but
8054 # adding the `-m68020' flag to GCC prevents building anything better,
8055 # like `-m68040'.
8056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8057 ;;
8058 esac
d7040cdb
SE
8059 ;;
8060
8061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8062 # PIC is the default for these OSes.
8063 ;;
8064
718a6fd8 8065 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8066 # This hack is so that the source file can tell whether it is being
8067 # built for inclusion in a dll (and should export symbols for example).
8068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8069 # (--disable-auto-import) libraries
8070 lt_prog_compiler_pic='-DDLL_EXPORT'
8071 ;;
8072
8073 darwin* | rhapsody*)
8074 # PIC is the default on this platform
8075 # Common symbols not allowed in MH_DYLIB files
8076 lt_prog_compiler_pic='-fno-common'
8077 ;;
8078
3725885a
RW
8079 haiku*)
8080 # PIC is the default for Haiku.
8081 # The "-static" flag exists, but is broken.
8082 lt_prog_compiler_static=
8083 ;;
8084
d7040cdb 8085 hpux*)
718a6fd8
SE
8086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8088 # sets the default TLS model and affects inlining.
d7040cdb 8089 case $host_cpu in
718a6fd8 8090 hppa*64*)
d7040cdb
SE
8091 # +Z the default
8092 ;;
8093 *)
8094 lt_prog_compiler_pic='-fPIC'
8095 ;;
8096 esac
8097 ;;
8098
8099 interix[3-9]*)
8100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8101 # Instead, we relocate shared libraries at runtime.
8102 ;;
8103
8104 msdosdjgpp*)
8105 # Just because we use GCC doesn't mean we suddenly get shared libraries
8106 # on systems that don't support them.
8107 lt_prog_compiler_can_build_shared=no
8108 enable_shared=no
8109 ;;
8110
8111 *nto* | *qnx*)
8112 # QNX uses GNU C++, but need to define -shared option too, otherwise
8113 # it will coredump.
8114 lt_prog_compiler_pic='-fPIC -shared'
8115 ;;
8116
8117 sysv4*MP*)
8118 if test -d /usr/nec; then
8119 lt_prog_compiler_pic=-Kconform_pic
8120 fi
8121 ;;
8122
8123 *)
8124 lt_prog_compiler_pic='-fPIC'
8125 ;;
8126 esac
3725885a
RW
8127
8128 case $cc_basename in
8129 nvcc*) # Cuda Compiler Driver 2.2
8130 lt_prog_compiler_wl='-Xlinker '
8131 lt_prog_compiler_pic='-Xcompiler -fPIC'
8132 ;;
8133 esac
d7040cdb
SE
8134 else
8135 # PORTME Check for flag to pass linker flags through the system compiler.
8136 case $host_os in
8137 aix*)
8138 lt_prog_compiler_wl='-Wl,'
8139 if test "$host_cpu" = ia64; then
8140 # AIX 5 now supports IA64 processor
8141 lt_prog_compiler_static='-Bstatic'
8142 else
8143 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8144 fi
8145 ;;
d7040cdb 8146
718a6fd8 8147 mingw* | cygwin* | pw32* | os2* | cegcc*)
d7040cdb
SE
8148 # This hack is so that the source file can tell whether it is being
8149 # built for inclusion in a dll (and should export symbols for example).
8150 lt_prog_compiler_pic='-DDLL_EXPORT'
8151 ;;
8152
8153 hpux9* | hpux10* | hpux11*)
8154 lt_prog_compiler_wl='-Wl,'
8155 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8156 # not for PA HP-UX.
8157 case $host_cpu in
8158 hppa*64*|ia64*)
8159 # +Z the default
8160 ;;
8161 *)
8162 lt_prog_compiler_pic='+Z'
8163 ;;
8164 esac
8165 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8166 lt_prog_compiler_static='${wl}-a ${wl}archive'
8167 ;;
8168
8169 irix5* | irix6* | nonstopux*)
8170 lt_prog_compiler_wl='-Wl,'
8171 # PIC (with -KPIC) is the default.
8172 lt_prog_compiler_static='-non_shared'
8173 ;;
8174
58e24671 8175 linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb 8176 case $cc_basename in
718a6fd8
SE
8177 # old Intel for x86_64 which still supported -KPIC.
8178 ecc*)
d7040cdb
SE
8179 lt_prog_compiler_wl='-Wl,'
8180 lt_prog_compiler_pic='-KPIC'
8181 lt_prog_compiler_static='-static'
8182 ;;
718a6fd8
SE
8183 # icc used to be incompatible with GCC.
8184 # ICC 10 doesn't accept -KPIC any more.
8185 icc* | ifort*)
8186 lt_prog_compiler_wl='-Wl,'
8187 lt_prog_compiler_pic='-fPIC'
8188 lt_prog_compiler_static='-static'
8189 ;;
8190 # Lahey Fortran 8.1.
8191 lf95*)
8192 lt_prog_compiler_wl='-Wl,'
8193 lt_prog_compiler_pic='--shared'
8194 lt_prog_compiler_static='--static'
8195 ;;
3725885a 8196 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
d7040cdb
SE
8197 # Portland Group compilers (*not* the Pentium gcc compiler,
8198 # which looks to be a dead project)
8199 lt_prog_compiler_wl='-Wl,'
8200 lt_prog_compiler_pic='-fpic'
8201 lt_prog_compiler_static='-Bstatic'
8202 ;;
8203 ccc*)
8204 lt_prog_compiler_wl='-Wl,'
8205 # All Alpha code is PIC.
8206 lt_prog_compiler_static='-non_shared'
8207 ;;
3725885a
RW
8208 xl* | bgxl* | bgf* | mpixl*)
8209 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_pic='-qpic'
8212 lt_prog_compiler_static='-qstaticlink'
8213 ;;
d7040cdb
SE
8214 *)
8215 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8216 *Sun\ F* | *Sun*Fortran*)
8217 # Sun Fortran 8.3 passes all unrecognized flags to the linker
d7040cdb
SE
8218 lt_prog_compiler_pic='-KPIC'
8219 lt_prog_compiler_static='-Bstatic'
3725885a 8220 lt_prog_compiler_wl=''
d7040cdb 8221 ;;
3725885a
RW
8222 *Sun\ C*)
8223 # Sun C 5.9
d7040cdb
SE
8224 lt_prog_compiler_pic='-KPIC'
8225 lt_prog_compiler_static='-Bstatic'
3725885a 8226 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8227 ;;
8228 esac
8229 ;;
8230 esac
8231 ;;
8232
8233 newsos6)
8234 lt_prog_compiler_pic='-KPIC'
8235 lt_prog_compiler_static='-Bstatic'
8236 ;;
8237
8238 *nto* | *qnx*)
8239 # QNX uses GNU C++, but need to define -shared option too, otherwise
8240 # it will coredump.
8241 lt_prog_compiler_pic='-fPIC -shared'
8242 ;;
8243
8244 osf3* | osf4* | osf5*)
8245 lt_prog_compiler_wl='-Wl,'
8246 # All OSF/1 code is PIC.
8247 lt_prog_compiler_static='-non_shared'
8248 ;;
8249
8250 rdos*)
8251 lt_prog_compiler_static='-non_shared'
8252 ;;
8253
8254 solaris*)
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8257 case $cc_basename in
f2c621e4 8258 f77* | f90* | f95*)
d7040cdb
SE
8259 lt_prog_compiler_wl='-Qoption ld ';;
8260 *)
8261 lt_prog_compiler_wl='-Wl,';;
8262 esac
8263 ;;
8264
8265 sunos4*)
8266 lt_prog_compiler_wl='-Qoption ld '
8267 lt_prog_compiler_pic='-PIC'
8268 lt_prog_compiler_static='-Bstatic'
8269 ;;
8270
8271 sysv4 | sysv4.2uw2* | sysv4.3*)
8272 lt_prog_compiler_wl='-Wl,'
8273 lt_prog_compiler_pic='-KPIC'
8274 lt_prog_compiler_static='-Bstatic'
8275 ;;
8276
8277 sysv4*MP*)
8278 if test -d /usr/nec ;then
8279 lt_prog_compiler_pic='-Kconform_pic'
8280 lt_prog_compiler_static='-Bstatic'
8281 fi
8282 ;;
8283
8284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_pic='-KPIC'
8287 lt_prog_compiler_static='-Bstatic'
8288 ;;
8289
8290 unicos*)
8291 lt_prog_compiler_wl='-Wl,'
8292 lt_prog_compiler_can_build_shared=no
8293 ;;
8294
8295 uts4*)
8296 lt_prog_compiler_pic='-pic'
8297 lt_prog_compiler_static='-Bstatic'
8298 ;;
8299
8300 *)
8301 lt_prog_compiler_can_build_shared=no
8302 ;;
8303 esac
8304 fi
8305
8306case $host_os in
8307 # For platforms which do not support PIC, -DPIC is meaningless:
8308 *djgpp*)
8309 lt_prog_compiler_pic=
8310 ;;
8311 *)
8312 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8313 ;;
8314esac
f2c621e4
AS
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8316$as_echo "$lt_prog_compiler_pic" >&6; }
8317
8318
8319
8320
d7040cdb
SE
8321
8322
8323#
8324# Check to make sure the PIC flag actually works.
8325#
8326if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8328$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8329if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8330 $as_echo_n "(cached) " >&6
42ecbf5e 8331else
718a6fd8 8332 lt_cv_prog_compiler_pic_works=no
d7040cdb
SE
8333 ac_outfile=conftest.$ac_objext
8334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8336 # Insert the option either (1) after the last *FLAGS variable, or
8337 # (2) before a word containing "conftest.", or (3) at the end.
8338 # Note that $ac_compile itself does not contain backslashes and begins
8339 # with a dollar sign (not a hyphen), so the echo should work correctly.
8340 # The option is referenced via a variable to avoid confusing sed.
8341 lt_compile=`echo "$ac_compile" | $SED \
8342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344 -e 's:$: $lt_compiler_flag:'`
3725885a 8345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8346 (eval "$lt_compile" 2>conftest.err)
8347 ac_status=$?
8348 cat conftest.err >&5
3725885a 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8350 if (exit $ac_status) && test -s "$ac_outfile"; then
8351 # The compiler can only warn and ignore the option if not recognized
8352 # So say no if there are warnings other than the usual output.
3725885a 8353 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
d7040cdb
SE
8354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8355 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8356 lt_cv_prog_compiler_pic_works=yes
d7040cdb
SE
8357 fi
8358 fi
8359 $RM conftest*
42ecbf5e 8360
252b5132 8361fi
81ecdfbb
RW
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8363$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8364
718a6fd8 8365if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
d7040cdb
SE
8366 case $lt_prog_compiler_pic in
8367 "" | " "*) ;;
8368 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8369 esac
252b5132 8370else
d7040cdb
SE
8371 lt_prog_compiler_pic=
8372 lt_prog_compiler_can_build_shared=no
252b5132 8373fi
252b5132
RH
8374
8375fi
42ecbf5e 8376
d7040cdb
SE
8377
8378
8379
8380
8381
8382#
8383# Check to make sure the static flag actually works.
8384#
8385wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8387$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8388if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
42ecbf5e 8390else
718a6fd8 8391 lt_cv_prog_compiler_static_works=no
d7040cdb
SE
8392 save_LDFLAGS="$LDFLAGS"
8393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8396 # The linker can only warn and ignore the option if not recognized
8397 # So say no if there are warnings
8398 if test -s conftest.err; then
8399 # Append any errors to the config.log.
8400 cat conftest.err 1>&5
3725885a 8401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
d7040cdb
SE
8402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8403 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8404 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8405 fi
8406 else
718a6fd8 8407 lt_cv_prog_compiler_static_works=yes
d7040cdb
SE
8408 fi
8409 fi
718a6fd8 8410 $RM -r conftest*
d7040cdb 8411 LDFLAGS="$save_LDFLAGS"
42ecbf5e 8412
42ecbf5e 8413fi
81ecdfbb
RW
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8415$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8416
718a6fd8 8417if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d7040cdb
SE
8418 :
8419else
8420 lt_prog_compiler_static=
42ecbf5e 8421fi
42ecbf5e 8422
252b5132 8423
252b5132 8424
42ecbf5e 8425
252b5132 8426
20e95c23 8427
d7040cdb 8428
81ecdfbb
RW
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8430$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8431if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
252b5132 8433else
d7040cdb
SE
8434 lt_cv_prog_compiler_c_o=no
8435 $RM -r conftest 2>/dev/null
8436 mkdir conftest
8437 cd conftest
8438 mkdir out
8439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8440
8441 lt_compiler_flag="-o out/conftest2.$ac_objext"
8442 # Insert the option either (1) after the last *FLAGS variable, or
8443 # (2) before a word containing "conftest.", or (3) at the end.
8444 # Note that $ac_compile itself does not contain backslashes and begins
8445 # with a dollar sign (not a hyphen), so the echo should work correctly.
8446 lt_compile=`echo "$ac_compile" | $SED \
8447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449 -e 's:$: $lt_compiler_flag:'`
3725885a 8450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8451 (eval "$lt_compile" 2>out/conftest.err)
8452 ac_status=$?
8453 cat out/conftest.err >&5
3725885a 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8456 then
8457 # The compiler can only warn and ignore the option if not recognized
8458 # So say no if there are warnings
3725885a 8459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8462 lt_cv_prog_compiler_c_o=yes
8463 fi
8464 fi
8465 chmod u+w . 2>&5
8466 $RM conftest*
8467 # SGI C++ compiler will create directory out/ii_files/ for
8468 # template instantiation
8469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8470 $RM out/* && rmdir out
8471 cd ..
8472 $RM -r conftest
8473 $RM conftest*
8474
252b5132 8475fi
81ecdfbb
RW
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8477$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
42ecbf5e 8478
20e95c23 8479
20e95c23
DJ
8480
8481
d7040cdb
SE
8482
8483
81ecdfbb
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8485$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8486if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
42ecbf5e 8488else
d7040cdb
SE
8489 lt_cv_prog_compiler_c_o=no
8490 $RM -r conftest 2>/dev/null
8491 mkdir conftest
8492 cd conftest
8493 mkdir out
8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495
8496 lt_compiler_flag="-o out/conftest2.$ac_objext"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 lt_compile=`echo "$ac_compile" | $SED \
8502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504 -e 's:$: $lt_compiler_flag:'`
3725885a 8505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
d7040cdb
SE
8506 (eval "$lt_compile" 2>out/conftest.err)
8507 ac_status=$?
8508 cat out/conftest.err >&5
3725885a 8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d7040cdb
SE
8510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8511 then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings
3725885a 8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
d7040cdb
SE
8515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_c_o=yes
8518 fi
8519 fi
8520 chmod u+w . 2>&5
8521 $RM conftest*
8522 # SGI C++ compiler will create directory out/ii_files/ for
8523 # template instantiation
8524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8525 $RM out/* && rmdir out
8526 cd ..
8527 $RM -r conftest
8528 $RM conftest*
8529
8530fi
81ecdfbb
RW
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8532$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8533
8534
8535
8536
8537hard_links="nottested"
8538if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8539 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8541$as_echo_n "checking if we can lock with hard links... " >&6; }
d7040cdb
SE
8542 hard_links=yes
8543 $RM conftest*
8544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8545 touch conftest.a
8546 ln conftest.a conftest.b 2>&5 || hard_links=no
8547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8549$as_echo "$hard_links" >&6; }
d7040cdb 8550 if test "$hard_links" = no; then
81ecdfbb
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8552$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d7040cdb
SE
8553 need_locks=warn
8554 fi
8555else
8556 need_locks=no
8557fi
8558
8559
8560
8561
8562
8563
81ecdfbb
RW
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8565$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb
SE
8566
8567 runpath_var=
8568 allow_undefined_flag=
8569 always_export_symbols=no
8570 archive_cmds=
8571 archive_expsym_cmds=
8572 compiler_needs_object=no
8573 enable_shared_with_static_runtimes=no
8574 export_dynamic_flag_spec=
8575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8576 hardcode_automatic=no
8577 hardcode_direct=no
8578 hardcode_direct_absolute=no
8579 hardcode_libdir_flag_spec=
8580 hardcode_libdir_flag_spec_ld=
8581 hardcode_libdir_separator=
8582 hardcode_minus_L=no
8583 hardcode_shlibpath_var=unsupported
8584 inherit_rpath=no
8585 link_all_deplibs=unknown
8586 module_cmds=
8587 module_expsym_cmds=
8588 old_archive_from_new_cmds=
8589 old_archive_from_expsyms_cmds=
8590 thread_safe_flag_spec=
8591 whole_archive_flag_spec=
8592 # include_expsyms should be a list of space-separated symbols to be *always*
8593 # included in the symbol list
8594 include_expsyms=
8595 # exclude_expsyms can be an extended regexp of symbols to exclude
8596 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8597 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8598 # as well as any symbol that contains `d'.
718a6fd8 8599 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d7040cdb
SE
8600 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8601 # platforms (ab)use it in PIC code, but their linkers get confused if
8602 # the symbol is explicitly referenced. Since portable code cannot
8603 # rely on this symbol name, it's probably fine to never include it in
8604 # preloaded symbol tables.
718a6fd8 8605 # Exclude shared library initialization/finalization symbols.
d7040cdb
SE
8606 extract_expsyms_cmds=
8607
8608 case $host_os in
718a6fd8 8609 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8610 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8611 # When not using gcc, we currently assume that we are using
8612 # Microsoft Visual C++.
8613 if test "$GCC" != yes; then
8614 with_gnu_ld=no
8615 fi
8616 ;;
8617 interix*)
8618 # we just hope/assume this is gcc and not c89 (= MSVC++)
8619 with_gnu_ld=yes
8620 ;;
8621 openbsd*)
8622 with_gnu_ld=no
8623 ;;
8624 esac
8625
8626 ld_shlibs=yes
3725885a
RW
8627
8628 # On some targets, GNU ld is compatible enough with the native linker
8629 # that we're better off using the native interface for both.
8630 lt_use_gnu_ld_interface=no
d7040cdb 8631 if test "$with_gnu_ld" = yes; then
3725885a
RW
8632 case $host_os in
8633 aix*)
8634 # The AIX port of GNU ld has always aspired to compatibility
8635 # with the native linker. However, as the warning in the GNU ld
8636 # block says, versions before 2.19.5* couldn't really create working
8637 # shared libraries, regardless of the interface used.
8638 case `$LD -v 2>&1` in
8639 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8640 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8641 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8642 *)
8643 lt_use_gnu_ld_interface=yes
8644 ;;
8645 esac
8646 ;;
8647 *)
8648 lt_use_gnu_ld_interface=yes
8649 ;;
8650 esac
8651 fi
8652
8653 if test "$lt_use_gnu_ld_interface" = yes; then
d7040cdb
SE
8654 # If archive_cmds runs LD, not CC, wlarc should be empty
8655 wlarc='${wl}'
8656
8657 # Set some defaults for GNU ld with shared library support. These
8658 # are reset later if shared libraries are not supported. Putting them
8659 # here allows them to be overridden if necessary.
8660 runpath_var=LD_RUN_PATH
8661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8662 export_dynamic_flag_spec='${wl}--export-dynamic'
8663 # ancient GNU ld didn't support --whole-archive et. al.
8664 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8665 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8666 else
8667 whole_archive_flag_spec=
8668 fi
8669 supports_anon_versioning=no
8670 case `$LD -v 2>&1` in
3725885a 8671 *GNU\ gold*) supports_anon_versioning=yes ;;
d7040cdb
SE
8672 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8673 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8674 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8675 *\ 2.11.*) ;; # other 2.11 versions
8676 *) supports_anon_versioning=yes ;;
8677 esac
8678
8679 # See if GNU ld supports shared libraries.
8680 case $host_os in
50e7d84b 8681 aix[3-9]*)
d7040cdb
SE
8682 # On AIX/PPC, the GNU linker is very broken
8683 if test "$host_cpu" != ia64; then
8684 ld_shlibs=no
8685 cat <<_LT_EOF 1>&2
8686
3725885a 8687*** Warning: the GNU linker, at least up to release 2.19, is reported
d7040cdb
SE
8688*** to be unable to reliably create shared libraries on AIX.
8689*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8690*** really care for shared libraries, you may want to install binutils
8691*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8692*** You will then need to restart the configuration process.
d7040cdb
SE
8693
8694_LT_EOF
8695 fi
8696 ;;
8697
8698 amigaos*)
718a6fd8
SE
8699 case $host_cpu in
8700 powerpc)
8701 # see comment about AmigaOS4 .so support
8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds=''
8704 ;;
8705 m68k)
8706 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)'
8707 hardcode_libdir_flag_spec='-L$libdir'
8708 hardcode_minus_L=yes
8709 ;;
8710 esac
d7040cdb
SE
8711 ;;
8712
8713 beos*)
8714 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8715 allow_undefined_flag=unsupported
8716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8717 # support --undefined. This deserves some investigation. FIXME
8718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 else
8720 ld_shlibs=no
8721 fi
8722 ;;
8723
718a6fd8 8724 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
8725 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8726 # as there is no search path for DLLs.
8727 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8728 export_dynamic_flag_spec='${wl}--export-all-symbols'
d7040cdb
SE
8729 allow_undefined_flag=unsupported
8730 always_export_symbols=no
8731 enable_shared_with_static_runtimes=yes
f2c621e4 8732 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb
SE
8733
8734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8735 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736 # If the export-symbols file already is a .def file (1st line
8737 # is EXPORTS), use it as is; otherwise, prepend...
8738 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8739 cp $export_symbols $output_objdir/$soname.def;
8740 else
8741 echo EXPORTS > $output_objdir/$soname.def;
8742 cat $export_symbols >> $output_objdir/$soname.def;
8743 fi~
8744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8745 else
8746 ld_shlibs=no
8747 fi
8748 ;;
8749
3725885a
RW
8750 haiku*)
8751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752 link_all_deplibs=yes
8753 ;;
8754
d7040cdb
SE
8755 interix[3-9]*)
8756 hardcode_direct=no
8757 hardcode_shlibpath_var=no
8758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8759 export_dynamic_flag_spec='${wl}-E'
8760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8761 # Instead, shared libraries are loaded at an image base (0x10000000 by
8762 # default) and relocated if they conflict, which is a slow very memory
8763 # consuming and fragmenting process. To avoid this, we pick a random,
8764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8767 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'
8768 ;;
8769
58e24671 8770 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
8771 tmp_diet=no
8772 if test "$host_os" = linux-dietlibc; then
8773 case $cc_basename in
8774 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8775 esac
8776 fi
8777 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8778 && test "$tmp_diet" = no
8779 then
6e733cce 8780 tmp_addflag=' $pic_flag'
718a6fd8 8781 tmp_sharedflag='-shared'
d7040cdb
SE
8782 case $cc_basename,$host_cpu in
8783 pgcc*) # Portland Group C compiler
3725885a 8784 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
d7040cdb
SE
8785 tmp_addflag=' $pic_flag'
8786 ;;
3725885a
RW
8787 pgf77* | pgf90* | pgf95* | pgfortran*)
8788 # Portland Group f77 and f90 compilers
8789 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'
d7040cdb
SE
8790 tmp_addflag=' $pic_flag -Mnomain' ;;
8791 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8792 tmp_addflag=' -i_dynamic' ;;
8793 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8794 tmp_addflag=' -i_dynamic -nofor_main' ;;
8795 ifc* | ifort*) # Intel Fortran compiler
8796 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
8797 lf95*) # Lahey Fortran 8.1
8798 whole_archive_flag_spec=
8799 tmp_sharedflag='--shared' ;;
3725885a 8800 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
8801 tmp_sharedflag='-qmkshrobj'
8802 tmp_addflag= ;;
3725885a
RW
8803 nvcc*) # Cuda Compiler Driver 2.2
8804 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'
8805 compiler_needs_object=yes
8806 ;;
d7040cdb
SE
8807 esac
8808 case `$CC -V 2>&1 | sed 5q` in
8809 *Sun\ C*) # Sun C 5.9
3725885a 8810 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'
d7040cdb
SE
8811 compiler_needs_object=yes
8812 tmp_sharedflag='-G' ;;
8813 *Sun\ F*) # Sun Fortran 8.3
8814 tmp_sharedflag='-G' ;;
d7040cdb
SE
8815 esac
8816 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817
8818 if test "x$supports_anon_versioning" = xyes; then
8819 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8820 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8821 echo "local: *; };" >> $output_objdir/$libname.ver~
8822 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8823 fi
718a6fd8
SE
8824
8825 case $cc_basename in
3725885a 8826 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
8827 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8828 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8829 hardcode_libdir_flag_spec=
8830 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 8831 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
8832 if test "x$supports_anon_versioning" = xyes; then
8833 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8835 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 8836 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
8837 fi
8838 ;;
8839 esac
d7040cdb
SE
8840 else
8841 ld_shlibs=no
8842 fi
8843 ;;
8844
8845 netbsd*)
8846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8847 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8848 wlarc=
8849 else
f2c621e4
AS
8850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8852 fi
8853 ;;
8854
8855 solaris*)
8856 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8857 ld_shlibs=no
8858 cat <<_LT_EOF 1>&2
8859
8860*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8861*** create shared libraries on Solaris systems. Therefore, libtool
8862*** is disabling shared libraries support. We urge you to upgrade GNU
8863*** binutils to release 2.9.1 or newer. Another option is to modify
8864*** your PATH or compiler configuration so that the native linker is
8865*** used, and then restart.
8866
8867_LT_EOF
8868 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8871 else
8872 ld_shlibs=no
8873 fi
8874 ;;
8875
8876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8877 case `$LD -v 2>&1` in
8878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8879 ld_shlibs=no
8880 cat <<_LT_EOF 1>&2
8881
8882*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8883*** reliably create shared libraries on SCO systems. Therefore, libtool
8884*** is disabling shared libraries support. We urge you to upgrade GNU
8885*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8886*** your PATH or compiler configuration so that the native linker is
8887*** used, and then restart.
8888
8889_LT_EOF
8890 ;;
8891 *)
8892 # For security reasons, it is highly recommended that you always
8893 # use absolute paths for naming shared libraries, and exclude the
8894 # DT_RUNPATH tag from executables and libraries. But doing so
8895 # requires that you compile everything twice, which is a pain.
8896 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8897 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8900 else
8901 ld_shlibs=no
8902 fi
8903 ;;
8904 esac
8905 ;;
8906
8907 sunos4*)
8908 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8909 wlarc=
8910 hardcode_direct=yes
8911 hardcode_shlibpath_var=no
8912 ;;
8913
8914 *)
8915 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
8916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d7040cdb
SE
8918 else
8919 ld_shlibs=no
8920 fi
8921 ;;
8922 esac
8923
8924 if test "$ld_shlibs" = no; then
8925 runpath_var=
8926 hardcode_libdir_flag_spec=
8927 export_dynamic_flag_spec=
8928 whole_archive_flag_spec=
8929 fi
8930 else
8931 # PORTME fill in a description of your system's linker (not GNU ld)
8932 case $host_os in
8933 aix3*)
8934 allow_undefined_flag=unsupported
8935 always_export_symbols=yes
8936 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'
8937 # Note: this linker hardcodes the directories in LIBPATH if there
8938 # are no directories specified by -L.
8939 hardcode_minus_L=yes
8940 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8941 # Neither direct hardcoding nor static linking is supported with a
8942 # broken collect2.
8943 hardcode_direct=unsupported
8944 fi
8945 ;;
8946
50e7d84b 8947 aix[4-9]*)
d7040cdb
SE
8948 if test "$host_cpu" = ia64; then
8949 # On IA64, the linker does run time linking by default, so we don't
8950 # have to do anything special.
8951 aix_use_runtimelinking=no
8952 exp_sym_flag='-Bexport'
8953 no_entry_flag=""
8954 else
8955 # If we're using GNU nm, then we don't want the "-C" option.
8956 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
8957 # Also, AIX nm treats weak defined symbols like other global
8958 # defined symbols, whereas GNU nm marks them as "W".
d7040cdb 8959 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 8960 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'
d7040cdb
SE
8961 else
8962 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'
8963 fi
8964 aix_use_runtimelinking=no
8965
8966 # Test if we are trying to use run time linking or normal
8967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8968 # need to do runtime linking.
50e7d84b 8969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d7040cdb
SE
8970 for ld_flag in $LDFLAGS; do
8971 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8972 aix_use_runtimelinking=yes
8973 break
8974 fi
8975 done
8976 ;;
8977 esac
8978
8979 exp_sym_flag='-bexport'
8980 no_entry_flag='-bnoentry'
8981 fi
8982
8983 # When large executables or shared objects are built, AIX ld can
8984 # have problems creating the table of contents. If linking a library
8985 # or program results in "error TOC overflow" add -mminimal-toc to
8986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8988
8989 archive_cmds=''
8990 hardcode_direct=yes
8991 hardcode_direct_absolute=yes
8992 hardcode_libdir_separator=':'
8993 link_all_deplibs=yes
8994 file_list_spec='${wl}-f,'
8995
8996 if test "$GCC" = yes; then
8997 case $host_os in aix4.[012]|aix4.[012].*)
8998 # We only want to do this on AIX 4.2 and lower, the check
8999 # below for broken collect2 doesn't work under 4.3+
9000 collect2name=`${CC} -print-prog-name=collect2`
9001 if test -f "$collect2name" &&
9002 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9003 then
9004 # We have reworked collect2
9005 :
9006 else
9007 # We have old collect2
9008 hardcode_direct=unsupported
9009 # It fails to find uninstalled libraries when the uninstalled
9010 # path is not listed in the libpath. Setting hardcode_minus_L
9011 # to unsupported forces relinking
9012 hardcode_minus_L=yes
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_libdir_separator=
9015 fi
9016 ;;
9017 esac
9018 shared_flag='-shared'
9019 if test "$aix_use_runtimelinking" = yes; then
9020 shared_flag="$shared_flag "'${wl}-G'
9021 fi
9022 else
9023 # not using gcc
9024 if test "$host_cpu" = ia64; then
9025 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9026 # chokes on -Wl,-G. The following line is correct:
9027 shared_flag='-G'
9028 else
9029 if test "$aix_use_runtimelinking" = yes; then
9030 shared_flag='${wl}-G'
9031 else
9032 shared_flag='${wl}-bM:SRE'
9033 fi
9034 fi
9035 fi
9036
718a6fd8 9037 export_dynamic_flag_spec='${wl}-bexpall'
d7040cdb
SE
9038 # It seems that -bexpall does not export symbols beginning with
9039 # underscore (_), so it is better to generate a list of symbols to export.
9040 always_export_symbols=yes
9041 if test "$aix_use_runtimelinking" = yes; then
9042 # Warning - without using the other runtime loading flags (-brtl),
9043 # -berok will link without error, but may produce a broken library.
9044 allow_undefined_flag='-berok'
9045 # Determine the default libpath from the value encoded in an
9046 # empty executable.
f2c621e4 9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9048/* end confdefs.h. */
d7040cdb
SE
9049
9050int
9051main ()
9052{
9053
9054 ;
9055 return 0;
9056}
42ecbf5e 9057_ACEOF
81ecdfbb 9058if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9059
f2c621e4
AS
9060lt_aix_libpath_sed='
9061 /Import File Strings/,/^$/ {
9062 /^0/ {
9063 s/^0 *\(.*\)$/\1/
9064 p
9065 }
9066 }'
9067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9068# Check for a 64-bit object if we didn't find anything.
9069if test -z "$aix_libpath"; then
9070 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9071fi
252b5132 9072fi
81ecdfbb
RW
9073rm -f core conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9075if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
252b5132 9076
d7040cdb 9077 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9078 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"
d7040cdb
SE
9079 else
9080 if test "$host_cpu" = ia64; then
9081 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9082 allow_undefined_flag="-z nodefs"
9083 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"
9084 else
9085 # Determine the default libpath from the value encoded in an
9086 # empty executable.
f2c621e4 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 9088/* end confdefs.h. */
d7040cdb
SE
9089
9090int
9091main ()
9092{
9093
9094 ;
9095 return 0;
9096}
42ecbf5e 9097_ACEOF
81ecdfbb 9098if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9099
f2c621e4
AS
9100lt_aix_libpath_sed='
9101 /Import File Strings/,/^$/ {
9102 /^0/ {
9103 s/^0 *\(.*\)$/\1/
9104 p
9105 }
9106 }'
9107aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9108# Check for a 64-bit object if we didn't find anything.
9109if test -z "$aix_libpath"; then
9110 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9111fi
252b5132 9112fi
81ecdfbb
RW
9113rm -f core conftest.err conftest.$ac_objext \
9114 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb
SE
9116
9117 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9118 # Warning - without using the other run time loading flags,
9119 # -berok will link without error, but may produce a broken library.
9120 no_undefined_flag=' ${wl}-bernotok'
9121 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9122 if test "$with_gnu_ld" = yes; then
9123 # We only use this code for GNU lds that support --whole-archive.
9124 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9125 else
9126 # Exported symbols can be pulled into shared objects from archives
9127 whole_archive_flag_spec='$convenience'
9128 fi
d7040cdb
SE
9129 archive_cmds_need_lc=yes
9130 # This is similar to how AIX traditionally builds its shared libraries.
9131 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'
9132 fi
9133 fi
9134 ;;
42ecbf5e 9135
d7040cdb 9136 amigaos*)
718a6fd8
SE
9137 case $host_cpu in
9138 powerpc)
9139 # see comment about AmigaOS4 .so support
9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9141 archive_expsym_cmds=''
9142 ;;
9143 m68k)
9144 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)'
9145 hardcode_libdir_flag_spec='-L$libdir'
9146 hardcode_minus_L=yes
9147 ;;
9148 esac
d7040cdb 9149 ;;
252b5132 9150
d7040cdb
SE
9151 bsdi[45]*)
9152 export_dynamic_flag_spec=-rdynamic
9153 ;;
252b5132 9154
718a6fd8 9155 cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
9156 # When not using gcc, we currently assume that we are using
9157 # Microsoft Visual C++.
9158 # hardcode_libdir_flag_spec is actually meaningless, as there is
9159 # no search path for DLLs.
f2c621e4
AS
9160 hardcode_libdir_flag_spec=' '
9161 allow_undefined_flag=unsupported
9162 # Tell ltmain to make .lib files, not .a files.
9163 libext=lib
9164 # Tell ltmain to make .dll files, not .so files.
9165 shrext_cmds=".dll"
9166 # FIXME: Setting linknames here is a bad hack.
9167 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9168 # The linker will automatically build a .lib file if we build a DLL.
9169 old_archive_from_new_cmds='true'
9170 # FIXME: Should let the user specify the lib program.
9171 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9172 fix_srcfile_path='`cygpath -w "$srcfile"`'
9173 enable_shared_with_static_runtimes=yes
d7040cdb 9174 ;;
252b5132 9175
d7040cdb 9176 darwin* | rhapsody*)
c46f8c51 9177
718a6fd8
SE
9178
9179 archive_cmds_need_lc=no
9180 hardcode_direct=no
9181 hardcode_automatic=yes
9182 hardcode_shlibpath_var=unsupported
3725885a
RW
9183 if test "$lt_cv_ld_force_load" = "yes"; then
9184 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\"`'
9185 else
9186 whole_archive_flag_spec=''
9187 fi
718a6fd8
SE
9188 link_all_deplibs=yes
9189 allow_undefined_flag="$_lt_dar_allow_undefined"
9190 case $cc_basename in
9191 ifort*) _lt_dar_can_shared=yes ;;
9192 *) _lt_dar_can_shared=$GCC ;;
9193 esac
9194 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9195 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9196 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9197 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9198 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}"
9199 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}"
9200
9201 else
9202 ld_shlibs=no
9203 fi
9204
d7040cdb 9205 ;;
42ecbf5e 9206
d7040cdb
SE
9207 dgux*)
9208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209 hardcode_libdir_flag_spec='-L$libdir'
9210 hardcode_shlibpath_var=no
9211 ;;
252b5132 9212
d7040cdb
SE
9213 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9214 # support. Future versions do this automatically, but an explicit c++rt0.o
9215 # does not break anything, and helps significantly (at the cost of a little
9216 # extra space).
9217 freebsd2.2*)
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9219 hardcode_libdir_flag_spec='-R$libdir'
9220 hardcode_direct=yes
9221 hardcode_shlibpath_var=no
9222 ;;
252b5132 9223
d7040cdb 9224 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9225 freebsd2.*)
d7040cdb
SE
9226 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227 hardcode_direct=yes
9228 hardcode_minus_L=yes
9229 hardcode_shlibpath_var=no
9230 ;;
42ecbf5e 9231
d7040cdb
SE
9232 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9233 freebsd* | dragonfly*)
f2c621e4 9234 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9235 hardcode_libdir_flag_spec='-R$libdir'
9236 hardcode_direct=yes
9237 hardcode_shlibpath_var=no
9238 ;;
252b5132 9239
d7040cdb
SE
9240 hpux9*)
9241 if test "$GCC" = yes; then
f2c621e4 9242 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'
d7040cdb
SE
9243 else
9244 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'
9245 fi
9246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9247 hardcode_libdir_separator=:
9248 hardcode_direct=yes
9249
9250 # hardcode_minus_L: Not really in the search PATH,
9251 # but as the default location of the library.
9252 hardcode_minus_L=yes
9253 export_dynamic_flag_spec='${wl}-E'
9254 ;;
20e95c23 9255
d7040cdb 9256 hpux10*)
3725885a 9257 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9258 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9259 else
9260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9261 fi
9262 if test "$with_gnu_ld" = no; then
9263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264 hardcode_libdir_flag_spec_ld='+b $libdir'
9265 hardcode_libdir_separator=:
9266 hardcode_direct=yes
9267 hardcode_direct_absolute=yes
9268 export_dynamic_flag_spec='${wl}-E'
9269 # hardcode_minus_L: Not really in the search PATH,
9270 # but as the default location of the library.
9271 hardcode_minus_L=yes
9272 fi
9273 ;;
20e95c23 9274
d7040cdb 9275 hpux11*)
3725885a 9276 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
d7040cdb
SE
9277 case $host_cpu in
9278 hppa*64*)
9279 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9280 ;;
9281 ia64*)
f2c621e4 9282 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9283 ;;
9284 *)
f2c621e4 9285 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb
SE
9286 ;;
9287 esac
9288 else
9289 case $host_cpu in
9290 hppa*64*)
9291 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292 ;;
9293 ia64*)
9294 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9295 ;;
9296 *)
3725885a
RW
9297
9298 # Older versions of the 11.00 compiler do not understand -b yet
9299 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9301$as_echo_n "checking if $CC understands -b... " >&6; }
9302if test "${lt_cv_prog_compiler__b+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9304else
9305 lt_cv_prog_compiler__b=no
9306 save_LDFLAGS="$LDFLAGS"
9307 LDFLAGS="$LDFLAGS -b"
9308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310 # The linker can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 if test -s conftest.err; then
9313 # Append any errors to the config.log.
9314 cat conftest.err 1>&5
9315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317 if diff conftest.exp conftest.er2 >/dev/null; then
9318 lt_cv_prog_compiler__b=yes
9319 fi
9320 else
9321 lt_cv_prog_compiler__b=yes
9322 fi
9323 fi
9324 $RM -r conftest*
9325 LDFLAGS="$save_LDFLAGS"
9326
9327fi
9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9329$as_echo "$lt_cv_prog_compiler__b" >&6; }
9330
9331if test x"$lt_cv_prog_compiler__b" = xyes; then
9332 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9333else
9334 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9335fi
9336
d7040cdb
SE
9337 ;;
9338 esac
9339 fi
9340 if test "$with_gnu_ld" = no; then
9341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342 hardcode_libdir_separator=:
9343
9344 case $host_cpu in
9345 hppa*64*|ia64*)
9346 hardcode_direct=no
9347 hardcode_shlibpath_var=no
9348 ;;
9349 *)
9350 hardcode_direct=yes
9351 hardcode_direct_absolute=yes
9352 export_dynamic_flag_spec='${wl}-E'
9353
9354 # hardcode_minus_L: Not really in the search PATH,
9355 # but as the default location of the library.
9356 hardcode_minus_L=yes
9357 ;;
9358 esac
9359 fi
9360 ;;
9361
9362 irix5* | irix6* | nonstopux*)
9363 if test "$GCC" = yes; then
f2c621e4 9364 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'
d7040cdb
SE
9365 # Try to use the -exported_symbol ld option, if it does not
9366 # work, assume that -exports_file does not work either and
9367 # implicitly export all symbols.
f2c621e4
AS
9368 save_LDFLAGS="$LDFLAGS"
9369 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9371/* end confdefs.h. */
f2c621e4 9372int foo(void) {}
42ecbf5e 9373_ACEOF
81ecdfbb 9374if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9375 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'
9376
42ecbf5e 9377fi
81ecdfbb
RW
9378rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9380 LDFLAGS="$save_LDFLAGS"
d7040cdb 9381 else
3725885a
RW
9382 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'
9383 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'
d7040cdb
SE
9384 fi
9385 archive_cmds_need_lc='no'
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 hardcode_libdir_separator=:
9388 inherit_rpath=yes
9389 link_all_deplibs=yes
9390 ;;
42ecbf5e 9391
d7040cdb
SE
9392 netbsd*)
9393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9395 else
9396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9397 fi
9398 hardcode_libdir_flag_spec='-R$libdir'
9399 hardcode_direct=yes
9400 hardcode_shlibpath_var=no
9401 ;;
42ecbf5e 9402
d7040cdb
SE
9403 newsos6)
9404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_direct=yes
9406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407 hardcode_libdir_separator=:
9408 hardcode_shlibpath_var=no
9409 ;;
42ecbf5e 9410
d7040cdb
SE
9411 *nto* | *qnx*)
9412 ;;
252b5132 9413
d7040cdb 9414 openbsd*)
718a6fd8
SE
9415 if test -f /usr/libexec/ld.so; then
9416 hardcode_direct=yes
9417 hardcode_shlibpath_var=no
9418 hardcode_direct_absolute=yes
9419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d7040cdb 9420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9421 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
d7040cdb 9422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9423 export_dynamic_flag_spec='${wl}-E'
9424 else
9425 case $host_os in
9426 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_libdir_flag_spec='-R$libdir'
9429 ;;
9430 *)
9431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9433 ;;
9434 esac
9435 fi
9436 else
9437 ld_shlibs=no
d7040cdb
SE
9438 fi
9439 ;;
252b5132 9440
d7040cdb
SE
9441 os2*)
9442 hardcode_libdir_flag_spec='-L$libdir'
9443 hardcode_minus_L=yes
9444 allow_undefined_flag=unsupported
3725885a 9445 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'
d7040cdb
SE
9446 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9447 ;;
2481e6a2 9448
d7040cdb
SE
9449 osf3*)
9450 if test "$GCC" = yes; then
9451 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9452 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'
d7040cdb
SE
9453 else
9454 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9455 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'
d7040cdb
SE
9456 fi
9457 archive_cmds_need_lc='no'
9458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459 hardcode_libdir_separator=:
9460 ;;
42ecbf5e 9461
d7040cdb
SE
9462 osf4* | osf5*) # as osf3* with the addition of -msym flag
9463 if test "$GCC" = yes; then
9464 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9465 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'
d7040cdb
SE
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 else
9468 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9469 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'
d7040cdb 9470 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 9471 $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'
42ecbf5e 9472
d7040cdb
SE
9473 # Both c and cxx compiler support -rpath directly
9474 hardcode_libdir_flag_spec='-rpath $libdir'
9475 fi
9476 archive_cmds_need_lc='no'
9477 hardcode_libdir_separator=:
9478 ;;
9479
9480 solaris*)
9481 no_undefined_flag=' -z defs'
9482 if test "$GCC" = yes; then
9483 wlarc='${wl}'
f2c621e4 9484 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9485 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9486 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d7040cdb
SE
9487 else
9488 case `$CC -V 2>&1` in
9489 *"Compilers 5.0"*)
9490 wlarc=''
9491 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9494 ;;
9495 *)
9496 wlarc='${wl}'
9497 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9499 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9500 ;;
9501 esac
9502 fi
9503 hardcode_libdir_flag_spec='-R$libdir'
9504 hardcode_shlibpath_var=no
9505 case $host_os in
9506 solaris2.[0-5] | solaris2.[0-5].*) ;;
9507 *)
9508 # The compiler driver will combine and reorder linker options,
9509 # but understands `-z linker_flag'. GCC discards it without `$wl',
9510 # but is careful enough not to reorder.
9511 # Supported since Solaris 2.6 (maybe 2.5.1?)
9512 if test "$GCC" = yes; then
9513 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9514 else
9515 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9516 fi
9517 ;;
9518 esac
9519 link_all_deplibs=yes
9520 ;;
9521
9522 sunos4*)
9523 if test "x$host_vendor" = xsequent; then
9524 # Use $CC to link under sequent, because it throws in some extra .o
9525 # files that make .init and .fini sections work.
9526 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9527 else
9528 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9529 fi
9530 hardcode_libdir_flag_spec='-L$libdir'
9531 hardcode_direct=yes
9532 hardcode_minus_L=yes
9533 hardcode_shlibpath_var=no
9534 ;;
9535
9536 sysv4)
9537 case $host_vendor in
9538 sni)
9539 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_direct=yes # is this really true???
9541 ;;
9542 siemens)
9543 ## LD is ld it makes a PLAMLIB
9544 ## CC just makes a GrossModule.
9545 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9546 reload_cmds='$CC -r -o $output$reload_objs'
9547 hardcode_direct=no
9548 ;;
9549 motorola)
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9552 ;;
9553 esac
9554 runpath_var='LD_RUN_PATH'
9555 hardcode_shlibpath_var=no
9556 ;;
9557
9558 sysv4.3*)
9559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560 hardcode_shlibpath_var=no
9561 export_dynamic_flag_spec='-Bexport'
9562 ;;
9563
9564 sysv4*MP*)
9565 if test -d /usr/nec; then
9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567 hardcode_shlibpath_var=no
9568 runpath_var=LD_RUN_PATH
9569 hardcode_runpath_var=yes
9570 ld_shlibs=yes
9571 fi
9572 ;;
9573
9574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9575 no_undefined_flag='${wl}-z,text'
9576 archive_cmds_need_lc=no
9577 hardcode_shlibpath_var=no
9578 runpath_var='LD_RUN_PATH'
9579
9580 if test "$GCC" = yes; then
9581 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583 else
9584 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586 fi
9587 ;;
9588
9589 sysv5* | sco3.2v5* | sco5v6*)
9590 # Note: We can NOT use -z defs as we might desire, because we do not
9591 # link with -lc, and that would cause any symbols used from libc to
9592 # always be unresolved, which means just about no library would
9593 # ever link correctly. If we're not using GNU ld we use -z text
9594 # though, which does catch some bad symbols but isn't as heavy-handed
9595 # as -z defs.
9596 no_undefined_flag='${wl}-z,text'
9597 allow_undefined_flag='${wl}-z,nodefs'
9598 archive_cmds_need_lc=no
9599 hardcode_shlibpath_var=no
9600 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9601 hardcode_libdir_separator=':'
9602 link_all_deplibs=yes
9603 export_dynamic_flag_spec='${wl}-Bexport'
9604 runpath_var='LD_RUN_PATH'
9605
9606 if test "$GCC" = yes; then
9607 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 else
9610 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612 fi
9613 ;;
9614
9615 uts4*)
9616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9617 hardcode_libdir_flag_spec='-L$libdir'
9618 hardcode_shlibpath_var=no
9619 ;;
9620
9621 *)
9622 ld_shlibs=no
9623 ;;
9624 esac
9625
9626 if test x$host_vendor = xsni; then
9627 case $host in
9628 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9629 export_dynamic_flag_spec='${wl}-Blargedynsym'
9630 ;;
9631 esac
9632 fi
9633 fi
9634
81ecdfbb
RW
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9636$as_echo "$ld_shlibs" >&6; }
d7040cdb
SE
9637test "$ld_shlibs" = no && can_build_shared=no
9638
9639with_gnu_ld=$with_gnu_ld
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655#
9656# Do we need to explicitly link libc?
9657#
9658case "x$archive_cmds_need_lc" in
9659x|xyes)
9660 # Assume -lc should be added
9661 archive_cmds_need_lc=yes
9662
9663 if test "$enable_shared" = yes && test "$GCC" = yes; then
9664 case $archive_cmds in
9665 *'~'*)
9666 # FIXME: we may have to deal with multi-command sequences.
9667 ;;
9668 '$CC '*)
9669 # Test whether the compiler implicitly links with -lc since on some
9670 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9671 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9673$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9674if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
39144654
RW
9676else
9677 $RM conftest*
9678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9679
81ecdfbb 9680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
d7040cdb 9681 (eval $ac_compile) 2>&5
20e95c23 9682 ac_status=$?
81ecdfbb
RW
9683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9684 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9685 soname=conftest
9686 lib=conftest
9687 libobjs=conftest.$ac_objext
9688 deplibs=
9689 wl=$lt_prog_compiler_wl
9690 pic_flag=$lt_prog_compiler_pic
9691 compiler_flags=-v
9692 linker_flags=-v
9693 verstring=
9694 output_objdir=.
9695 libname=conftest
9696 lt_save_allow_undefined_flag=$allow_undefined_flag
9697 allow_undefined_flag=
81ecdfbb 9698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
d7040cdb 9699 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20e95c23 9700 ac_status=$?
81ecdfbb
RW
9701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702 test $ac_status = 0; }
39144654
RW
9703 then
9704 lt_cv_archive_cmds_need_lc=no
9705 else
9706 lt_cv_archive_cmds_need_lc=yes
9707 fi
9708 allow_undefined_flag=$lt_save_allow_undefined_flag
9709 else
9710 cat conftest.err 1>&5
9711 fi
9712 $RM conftest*
9713
9714fi
81ecdfbb
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9716$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9717 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
d7040cdb
SE
9718 ;;
9719 esac
9720 fi
9721 ;;
9722esac
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
81ecdfbb
RW
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9881$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
9882
9883if test "$GCC" = yes; then
d7040cdb
SE
9884 case $host_os in
9885 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9886 *) lt_awk_arg="/^libraries:/" ;;
9887 esac
3725885a
RW
9888 case $host_os in
9889 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9890 *) lt_sed_strip_eq="s,=/,/,g" ;;
9891 esac
9892 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9893 case $lt_search_path_spec in
9894 *\;*)
d7040cdb
SE
9895 # if the path contains ";" then we assume it to be the separator
9896 # otherwise default to the standard path separator (i.e. ":") - it is
9897 # assumed that no part of a normal pathname contains ";" but that should
9898 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
9899 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9900 ;;
9901 *)
9902 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9903 ;;
9904 esac
d7040cdb
SE
9905 # Ok, now we have the path, separated by spaces, we can step through it
9906 # and add multilib dir if necessary.
9907 lt_tmp_lt_search_path_spec=
9908 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9909 for lt_sys_path in $lt_search_path_spec; do
9910 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9912 else
9913 test -d "$lt_sys_path" && \
9914 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9915 fi
9916 done
3725885a 9917 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
d7040cdb
SE
9918BEGIN {RS=" "; FS="/|\n";} {
9919 lt_foo="";
9920 lt_count=0;
9921 for (lt_i = NF; lt_i > 0; lt_i--) {
9922 if ($lt_i != "" && $lt_i != ".") {
9923 if ($lt_i == "..") {
9924 lt_count++;
9925 } else {
9926 if (lt_count == 0) {
9927 lt_foo="/" $lt_i lt_foo;
9928 } else {
9929 lt_count--;
9930 }
9931 }
9932 }
9933 }
9934 if (lt_foo != "") { lt_freq[lt_foo]++; }
9935 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9936}'`
3725885a
RW
9937 # AWK program above erroneously prepends '/' to C:/dos/paths
9938 # for these hosts.
9939 case $host_os in
9940 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9941 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9942 esac
9943 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb
SE
9944else
9945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9946fi
9947library_names_spec=
9948libname_spec='lib$name'
9949soname_spec=
9950shrext_cmds=".so"
9951postinstall_cmds=
9952postuninstall_cmds=
9953finish_cmds=
9954finish_eval=
9955shlibpath_var=
9956shlibpath_overrides_runpath=unknown
9957version_type=none
9958dynamic_linker="$host_os ld.so"
9959sys_lib_dlsearch_path_spec="/lib /usr/lib"
9960need_lib_prefix=unknown
9961hardcode_into_libs=no
9962
9963# when you set need_version to no, make sure it does not cause -set_version
9964# flags to be left without arguments
9965need_version=unknown
9966
9967case $host_os in
9968aix3*)
9969 version_type=linux
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9971 shlibpath_var=LIBPATH
9972
9973 # AIX 3 has no versioning support, so we append a major version to the name.
9974 soname_spec='${libname}${release}${shared_ext}$major'
9975 ;;
9976
50e7d84b 9977aix[4-9]*)
d7040cdb
SE
9978 version_type=linux
9979 need_lib_prefix=no
9980 need_version=no
9981 hardcode_into_libs=yes
9982 if test "$host_cpu" = ia64; then
9983 # AIX 5 supports IA64
9984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 else
9987 # With GCC up to 2.95.x, collect2 would create an import file
9988 # for dependence libraries. The import file would start with
9989 # the line `#! .'. This would cause the generated library to
9990 # depend on `.', always an invalid library. This was fixed in
9991 # development snapshots of GCC prior to 3.0.
9992 case $host_os in
9993 aix4 | aix4.[01] | aix4.[01].*)
9994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9995 echo ' yes '
9996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9997 :
9998 else
9999 can_build_shared=no
10000 fi
10001 ;;
10002 esac
10003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10004 # soname into executable. Probably we can add versioning support to
10005 # collect2, so additional links can be useful in future.
10006 if test "$aix_use_runtimelinking" = yes; then
10007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10008 # instead of lib<name>.a to let people know that these are not
10009 # typical AIX shared libraries.
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011 else
10012 # We preserve .a as extension for shared libraries through AIX4.2
10013 # and later when we are not doing run time linking.
10014 library_names_spec='${libname}${release}.a $libname.a'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 fi
10017 shlibpath_var=LIBPATH
10018 fi
10019 ;;
10020
10021amigaos*)
718a6fd8
SE
10022 case $host_cpu in
10023 powerpc)
10024 # Since July 2007 AmigaOS4 officially supports .so libraries.
10025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027 ;;
10028 m68k)
d7040cdb
SE
10029 library_names_spec='$libname.ixlibrary $libname.a'
10030 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10031 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
10032 ;;
10033 esac
d7040cdb
SE
10034 ;;
10035
10036beos*)
10037 library_names_spec='${libname}${shared_ext}'
10038 dynamic_linker="$host_os ld.so"
10039 shlibpath_var=LIBRARY_PATH
10040 ;;
10041
10042bsdi[45]*)
10043 version_type=linux
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10051 # the default ld.so.conf also contains /usr/contrib/lib and
10052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10053 # libtool to hard-code these into programs
10054 ;;
10055
718a6fd8 10056cygwin* | mingw* | pw32* | cegcc*)
d7040cdb
SE
10057 version_type=windows
10058 shrext_cmds=".dll"
10059 need_version=no
10060 need_lib_prefix=no
10061
f2c621e4
AS
10062 case $GCC,$host_os in
10063 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d7040cdb
SE
10064 library_names_spec='$libname.dll.a'
10065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10066 postinstall_cmds='base_file=`basename \${file}`~
10067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10068 dldir=$destdir/`dirname \$dlpath`~
10069 test -d \$dldir || mkdir -p \$dldir~
10070 $install_prog $dir/$dlname \$dldir/$dlname~
10071 chmod a+x \$dldir/$dlname~
10072 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10073 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10074 fi'
10075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10076 dlpath=$dir/\$dldll~
10077 $RM \$dlpath'
10078 shlibpath_overrides_runpath=yes
10079
10080 case $host_os in
10081 cygwin*)
10082 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10084
10085 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
d7040cdb 10086 ;;
718a6fd8 10087 mingw* | cegcc*)
d7040cdb
SE
10088 # MinGW DLLs use traditional 'lib' prefix
10089 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
d7040cdb
SE
10090 ;;
10091 pw32*)
10092 # pw32 DLLs use 'pw' prefix rather than 'lib'
10093 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10094 ;;
10095 esac
10096 ;;
10097
10098 *)
10099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10100 ;;
10101 esac
f2c621e4 10102 dynamic_linker='Win32 ld.exe'
d7040cdb
SE
10103 # FIXME: first we should search . and the directory the executable is in
10104 shlibpath_var=PATH
10105 ;;
10106
10107darwin* | rhapsody*)
10108 dynamic_linker="$host_os dyld"
10109 version_type=darwin
10110 need_lib_prefix=no
10111 need_version=no
10112 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10113 soname_spec='${libname}${release}${major}$shared_ext'
10114 shlibpath_overrides_runpath=yes
10115 shlibpath_var=DYLD_LIBRARY_PATH
10116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10117
10118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10120 ;;
10121
10122dgux*)
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 ;;
10130
d7040cdb
SE
10131freebsd* | dragonfly*)
10132 # DragonFly does not have aout. When/if they implement a new
10133 # versioning mechanism, adjust this.
10134 if test -x /usr/bin/objformat; then
10135 objformat=`/usr/bin/objformat`
10136 else
10137 case $host_os in
6d2920c8 10138 freebsd[23].*) objformat=aout ;;
d7040cdb
SE
10139 *) objformat=elf ;;
10140 esac
10141 fi
10142 version_type=freebsd-$objformat
10143 case $version_type in
10144 freebsd-elf*)
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10146 need_version=no
10147 need_lib_prefix=no
10148 ;;
10149 freebsd-*)
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10151 need_version=yes
10152 ;;
10153 esac
10154 shlibpath_var=LD_LIBRARY_PATH
10155 case $host_os in
6d2920c8 10156 freebsd2.*)
d7040cdb
SE
10157 shlibpath_overrides_runpath=yes
10158 ;;
10159 freebsd3.[01]* | freebsdelf3.[01]*)
10160 shlibpath_overrides_runpath=yes
10161 hardcode_into_libs=yes
10162 ;;
10163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10165 shlibpath_overrides_runpath=no
10166 hardcode_into_libs=yes
10167 ;;
10168 *) # from 4.6 on, and DragonFly
10169 shlibpath_overrides_runpath=yes
10170 hardcode_into_libs=yes
10171 ;;
10172 esac
10173 ;;
10174
10175gnu*)
10176 version_type=linux
10177 need_lib_prefix=no
10178 need_version=no
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10181 shlibpath_var=LD_LIBRARY_PATH
10182 hardcode_into_libs=yes
10183 ;;
10184
3725885a
RW
10185haiku*)
10186 version_type=linux
10187 need_lib_prefix=no
10188 need_version=no
10189 dynamic_linker="$host_os runtime_loader"
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LIBRARY_PATH
10193 shlibpath_overrides_runpath=yes
f2c621e4 10194 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10195 hardcode_into_libs=yes
10196 ;;
10197
d7040cdb
SE
10198hpux9* | hpux10* | hpux11*)
10199 # Give a soname corresponding to the major version so that dld.sl refuses to
10200 # link against other versions.
10201 version_type=sunos
10202 need_lib_prefix=no
10203 need_version=no
10204 case $host_cpu in
10205 ia64*)
10206 shrext_cmds='.so'
10207 hardcode_into_libs=yes
10208 dynamic_linker="$host_os dld.so"
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212 soname_spec='${libname}${release}${shared_ext}$major'
10213 if test "X$HPUX_IA64_MODE" = X32; then
10214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10215 else
10216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10217 fi
10218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10219 ;;
10220 hppa*64*)
10221 shrext_cmds='.sl'
10222 hardcode_into_libs=yes
10223 dynamic_linker="$host_os dld.sl"
10224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10230 ;;
10231 *)
10232 shrext_cmds='.sl'
10233 dynamic_linker="$host_os dld.sl"
10234 shlibpath_var=SHLIB_PATH
10235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 ;;
10239 esac
3725885a 10240 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
d7040cdb 10241 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10242 # or fails outright, so override atomically:
10243 install_override_mode=555
d7040cdb
SE
10244 ;;
10245
10246interix[3-9]*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10253 shlibpath_var=LD_LIBRARY_PATH
10254 shlibpath_overrides_runpath=no
10255 hardcode_into_libs=yes
10256 ;;
10257
10258irix5* | irix6* | nonstopux*)
10259 case $host_os in
10260 nonstopux*) version_type=nonstopux ;;
10261 *)
10262 if test "$lt_cv_prog_gnu_ld" = yes; then
10263 version_type=linux
10264 else
10265 version_type=irix
10266 fi ;;
10267 esac
10268 need_lib_prefix=no
10269 need_version=no
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10272 case $host_os in
10273 irix5* | nonstopux*)
10274 libsuff= shlibsuff=
10275 ;;
10276 *)
10277 case $LD in # libtool.m4 will add one of these switches to LD
10278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10279 libsuff= shlibsuff= libmagic=32-bit;;
10280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10281 libsuff=32 shlibsuff=N32 libmagic=N32;;
10282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10283 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10284 *) libsuff= shlibsuff= libmagic=never-match;;
10285 esac
10286 ;;
10287 esac
10288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10289 shlibpath_overrides_runpath=no
10290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10292 hardcode_into_libs=yes
10293 ;;
10294
10295# No shared lib support for Linux oldld, aout, or coff.
10296linux*oldld* | linux*aout* | linux*coff*)
10297 dynamic_linker=no
10298 ;;
10299
10300# This must be Linux ELF.
58e24671 10301linux* | k*bsd*-gnu | kopensolaris*-gnu)
d7040cdb
SE
10302 version_type=linux
10303 need_lib_prefix=no
10304 need_version=no
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=no
39144654 10310
d7040cdb 10311 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10312 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10313 $as_echo_n "(cached) " >&6
39144654
RW
10314else
10315 lt_cv_shlibpath_overrides_runpath=no
10316 save_LDFLAGS=$LDFLAGS
10317 save_libdir=$libdir
10318 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10319 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10321/* end confdefs.h. */
10322
10323int
10324main ()
10325{
10326
10327 ;
10328 return 0;
10329}
10330_ACEOF
81ecdfbb
RW
10331if ac_fn_c_try_link "$LINENO"; then :
10332 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10333 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10334fi
d7040cdb 10335fi
81ecdfbb
RW
10336rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10338 LDFLAGS=$save_LDFLAGS
10339 libdir=$save_libdir
10340
10341fi
10342
10343 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb
SE
10344
10345 # This implies no fast_install, which is unacceptable.
10346 # Some rework will be needed to allow for fast_install
10347 # before this can be enabled.
10348 hardcode_into_libs=yes
10349
10350 # Append ld.so.conf contents to the search path
10351 if test -f /etc/ld.so.conf; then
3725885a 10352 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
f2c621e4 10353 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
d7040cdb
SE
10354 fi
10355
10356 # We used to test for /lib/ld.so.1 and disable shared libraries on
10357 # powerpc, because MkLinux only supported shared libraries with the
10358 # GNU dynamic linker. Since this was broken with cross compilers,
10359 # most powerpc-linux boxes support dynamic linking these days and
10360 # people can always --disable-shared, the test was removed, and we
10361 # assume the GNU/Linux dynamic linker is in use.
10362 dynamic_linker='GNU/Linux ld.so'
10363 ;;
10364
10365netbsd*)
10366 version_type=sunos
10367 need_lib_prefix=no
10368 need_version=no
10369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10372 dynamic_linker='NetBSD (a.out) ld.so'
10373 else
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 dynamic_linker='NetBSD ld.elf_so'
10377 fi
10378 shlibpath_var=LD_LIBRARY_PATH
10379 shlibpath_overrides_runpath=yes
10380 hardcode_into_libs=yes
10381 ;;
10382
10383newsos6)
10384 version_type=linux
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 shlibpath_var=LD_LIBRARY_PATH
10387 shlibpath_overrides_runpath=yes
10388 ;;
10389
10390*nto* | *qnx*)
10391 version_type=qnx
10392 need_lib_prefix=no
10393 need_version=no
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 shlibpath_overrides_runpath=no
10398 hardcode_into_libs=yes
10399 dynamic_linker='ldqnx.so'
10400 ;;
10401
10402openbsd*)
10403 version_type=sunos
10404 sys_lib_dlsearch_path_spec="/usr/lib"
10405 need_lib_prefix=no
10406 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10407 case $host_os in
10408 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10409 *) need_version=no ;;
10410 esac
10411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10415 case $host_os in
10416 openbsd2.[89] | openbsd2.[89].*)
10417 shlibpath_overrides_runpath=no
10418 ;;
10419 *)
10420 shlibpath_overrides_runpath=yes
10421 ;;
10422 esac
10423 else
10424 shlibpath_overrides_runpath=yes
10425 fi
10426 ;;
10427
10428os2*)
10429 libname_spec='$name'
10430 shrext_cmds=".dll"
10431 need_lib_prefix=no
10432 library_names_spec='$libname${shared_ext} $libname.a'
10433 dynamic_linker='OS/2 ld.exe'
10434 shlibpath_var=LIBPATH
10435 ;;
10436
10437osf3* | osf4* | osf5*)
10438 version_type=osf
10439 need_lib_prefix=no
10440 need_version=no
10441 soname_spec='${libname}${release}${shared_ext}$major'
10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443 shlibpath_var=LD_LIBRARY_PATH
10444 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10445 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10446 ;;
10447
10448rdos*)
10449 dynamic_linker=no
10450 ;;
10451
10452solaris*)
10453 version_type=linux
10454 need_lib_prefix=no
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=yes
10460 hardcode_into_libs=yes
10461 # ldd complains unless libraries are executable
10462 postinstall_cmds='chmod +x $lib'
10463 ;;
10464
10465sunos4*)
10466 version_type=sunos
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10469 shlibpath_var=LD_LIBRARY_PATH
10470 shlibpath_overrides_runpath=yes
10471 if test "$with_gnu_ld" = yes; then
10472 need_lib_prefix=no
10473 fi
10474 need_version=yes
10475 ;;
10476
10477sysv4 | sysv4.3*)
10478 version_type=linux
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 case $host_vendor in
10483 sni)
10484 shlibpath_overrides_runpath=no
10485 need_lib_prefix=no
10486 runpath_var=LD_RUN_PATH
10487 ;;
10488 siemens)
10489 need_lib_prefix=no
10490 ;;
10491 motorola)
10492 need_lib_prefix=no
10493 need_version=no
10494 shlibpath_overrides_runpath=no
10495 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10496 ;;
10497 esac
10498 ;;
10499
10500sysv4*MP*)
10501 if test -d /usr/nec ;then
10502 version_type=linux
10503 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10504 soname_spec='$libname${shared_ext}.$major'
10505 shlibpath_var=LD_LIBRARY_PATH
10506 fi
10507 ;;
10508
10509sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10510 version_type=freebsd-elf
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=yes
10517 hardcode_into_libs=yes
10518 if test "$with_gnu_ld" = yes; then
10519 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10520 else
10521 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10522 case $host_os in
10523 sco3.2v5*)
10524 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10525 ;;
10526 esac
10527 fi
10528 sys_lib_dlsearch_path_spec='/usr/lib'
10529 ;;
10530
10531tpf*)
10532 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10533 version_type=linux
10534 need_lib_prefix=no
10535 need_version=no
718a6fd8 10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
d7040cdb
SE
10537 shlibpath_var=LD_LIBRARY_PATH
10538 shlibpath_overrides_runpath=no
10539 hardcode_into_libs=yes
10540 ;;
10541
10542uts4*)
10543 version_type=linux
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 ;;
10548
10549*)
10550 dynamic_linker=no
10551 ;;
10552esac
81ecdfbb
RW
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10554$as_echo "$dynamic_linker" >&6; }
d7040cdb
SE
10555test "$dynamic_linker" = no && can_build_shared=no
10556
10557variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10558if test "$GCC" = yes; then
10559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10560fi
10561
718a6fd8
SE
10562if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10563 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10564fi
10565if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10566 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10567fi
10568
d7040cdb
SE
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
3725885a
RW
10649
10650
10651
10652
10653
d7040cdb
SE
10654
10655
10656
10657
10658
10659
81ecdfbb
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10661$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
d7040cdb
SE
10662hardcode_action=
10663if test -n "$hardcode_libdir_flag_spec" ||
10664 test -n "$runpath_var" ||
10665 test "X$hardcode_automatic" = "Xyes" ; then
10666
10667 # We can hardcode non-existent directories.
10668 if test "$hardcode_direct" != no &&
10669 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10670 # have to relink, otherwise we might link with an installed library
10671 # when we should be linking with a yet-to-be-installed one
10672 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10673 test "$hardcode_minus_L" != no; then
10674 # Linking always hardcodes the temporary library directory.
10675 hardcode_action=relink
10676 else
10677 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10678 hardcode_action=immediate
10679 fi
10680else
10681 # We cannot hardcode anything, or else we can only hardcode existing
10682 # directories.
10683 hardcode_action=unsupported
10684fi
81ecdfbb
RW
10685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10686$as_echo "$hardcode_action" >&6; }
d7040cdb
SE
10687
10688if test "$hardcode_action" = relink ||
10689 test "$inherit_rpath" = yes; then
10690 # Fast installation is not supported
10691 enable_fast_install=no
10692elif test "$shlibpath_overrides_runpath" = yes ||
10693 test "$enable_shared" = no; then
10694 # Fast installation is not necessary
10695 enable_fast_install=needless
10696fi
10697
10698
10699
10700
10701
10702
10703 if test "x$enable_dlopen" != xyes; then
10704 enable_dlopen=unknown
10705 enable_dlopen_self=unknown
10706 enable_dlopen_self_static=unknown
10707else
10708 lt_cv_dlopen=no
10709 lt_cv_dlopen_libs=
10710
10711 case $host_os in
10712 beos*)
10713 lt_cv_dlopen="load_add_on"
10714 lt_cv_dlopen_libs=
10715 lt_cv_dlopen_self=yes
10716 ;;
10717
718a6fd8 10718 mingw* | pw32* | cegcc*)
d7040cdb
SE
10719 lt_cv_dlopen="LoadLibrary"
10720 lt_cv_dlopen_libs=
10721 ;;
10722
10723 cygwin*)
10724 lt_cv_dlopen="dlopen"
10725 lt_cv_dlopen_libs=
10726 ;;
10727
10728 darwin*)
10729 # if libdl is installed we need to link against it
81ecdfbb
RW
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10731$as_echo_n "checking for dlopen in -ldl... " >&6; }
10732if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10733 $as_echo_n "(cached) " >&6
d7040cdb
SE
10734else
10735 ac_check_lib_save_LIBS=$LIBS
10736LIBS="-ldl $LIBS"
81ecdfbb 10737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10738/* end confdefs.h. */
10739
81ecdfbb
RW
10740/* Override any GCC internal prototype to avoid an error.
10741 Use char because int might match the return type of a GCC
10742 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10743#ifdef __cplusplus
10744extern "C"
10745#endif
d7040cdb
SE
10746char dlopen ();
10747int
10748main ()
10749{
81ecdfbb 10750return dlopen ();
d7040cdb
SE
10751 ;
10752 return 0;
10753}
10754_ACEOF
81ecdfbb 10755if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10756 ac_cv_lib_dl_dlopen=yes
10757else
81ecdfbb 10758 ac_cv_lib_dl_dlopen=no
d7040cdb 10759fi
81ecdfbb
RW
10760rm -f core conftest.err conftest.$ac_objext \
10761 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10762LIBS=$ac_check_lib_save_LIBS
10763fi
81ecdfbb
RW
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10765$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10766if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
d7040cdb
SE
10767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10768else
10769
10770 lt_cv_dlopen="dyld"
10771 lt_cv_dlopen_libs=
10772 lt_cv_dlopen_self=yes
10773
10774fi
10775
10776 ;;
10777
10778 *)
81ecdfbb
RW
10779 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10780if test "x$ac_cv_func_shl_load" = x""yes; then :
d7040cdb
SE
10781 lt_cv_dlopen="shl_load"
10782else
81ecdfbb
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10784$as_echo_n "checking for shl_load in -ldld... " >&6; }
10785if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10786 $as_echo_n "(cached) " >&6
d7040cdb
SE
10787else
10788 ac_check_lib_save_LIBS=$LIBS
10789LIBS="-ldld $LIBS"
81ecdfbb 10790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10791/* end confdefs.h. */
10792
81ecdfbb
RW
10793/* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10796#ifdef __cplusplus
10797extern "C"
10798#endif
d7040cdb
SE
10799char shl_load ();
10800int
10801main ()
10802{
81ecdfbb 10803return shl_load ();
d7040cdb
SE
10804 ;
10805 return 0;
10806}
10807_ACEOF
81ecdfbb 10808if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10809 ac_cv_lib_dld_shl_load=yes
10810else
81ecdfbb 10811 ac_cv_lib_dld_shl_load=no
d7040cdb 10812fi
81ecdfbb
RW
10813rm -f core conftest.err conftest.$ac_objext \
10814 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10815LIBS=$ac_check_lib_save_LIBS
10816fi
81ecdfbb
RW
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10818$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10819if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
718a6fd8 10820 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
d7040cdb 10821else
81ecdfbb
RW
10822 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10823if test "x$ac_cv_func_dlopen" = x""yes; then :
10824 lt_cv_dlopen="dlopen"
d7040cdb 10825else
81ecdfbb
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10827$as_echo_n "checking for dlopen in -ldl... " >&6; }
10828if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
10830else
10831 ac_check_lib_save_LIBS=$LIBS
10832LIBS="-ldl $LIBS"
10833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 10834/* end confdefs.h. */
d7040cdb 10835
81ecdfbb
RW
10836/* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10839#ifdef __cplusplus
10840extern "C"
d7040cdb 10841#endif
d7040cdb 10842char dlopen ();
d7040cdb
SE
10843int
10844main ()
10845{
81ecdfbb 10846return dlopen ();
d7040cdb
SE
10847 ;
10848 return 0;
10849}
10850_ACEOF
81ecdfbb
RW
10851if ac_fn_c_try_link "$LINENO"; then :
10852 ac_cv_lib_dl_dlopen=yes
d7040cdb 10853else
81ecdfbb 10854 ac_cv_lib_dl_dlopen=no
d7040cdb 10855fi
81ecdfbb
RW
10856rm -f core conftest.err conftest.$ac_objext \
10857 conftest$ac_exeext conftest.$ac_ext
10858LIBS=$ac_check_lib_save_LIBS
d7040cdb 10859fi
81ecdfbb
RW
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10861$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10862if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10863 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 10864else
81ecdfbb
RW
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10866$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10867if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
d7040cdb
SE
10869else
10870 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10871LIBS="-lsvld $LIBS"
10872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10873/* end confdefs.h. */
10874
81ecdfbb
RW
10875/* Override any GCC internal prototype to avoid an error.
10876 Use char because int might match the return type of a GCC
10877 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10878#ifdef __cplusplus
10879extern "C"
10880#endif
d7040cdb
SE
10881char dlopen ();
10882int
10883main ()
10884{
81ecdfbb 10885return dlopen ();
d7040cdb
SE
10886 ;
10887 return 0;
10888}
10889_ACEOF
81ecdfbb
RW
10890if ac_fn_c_try_link "$LINENO"; then :
10891 ac_cv_lib_svld_dlopen=yes
d7040cdb 10892else
81ecdfbb 10893 ac_cv_lib_svld_dlopen=no
d7040cdb 10894fi
81ecdfbb
RW
10895rm -f core conftest.err conftest.$ac_objext \
10896 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10897LIBS=$ac_check_lib_save_LIBS
10898fi
81ecdfbb
RW
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10900$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10901if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
d7040cdb 10903else
81ecdfbb
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10905$as_echo_n "checking for dld_link in -ldld... " >&6; }
10906if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10907 $as_echo_n "(cached) " >&6
d7040cdb
SE
10908else
10909 ac_check_lib_save_LIBS=$LIBS
81ecdfbb
RW
10910LIBS="-ldld $LIBS"
10911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10912/* end confdefs.h. */
10913
81ecdfbb
RW
10914/* Override any GCC internal prototype to avoid an error.
10915 Use char because int might match the return type of a GCC
10916 builtin and then its argument prototype would still apply. */
d7040cdb
SE
10917#ifdef __cplusplus
10918extern "C"
10919#endif
81ecdfbb 10920char dld_link ();
d7040cdb
SE
10921int
10922main ()
10923{
81ecdfbb 10924return dld_link ();
d7040cdb
SE
10925 ;
10926 return 0;
10927}
10928_ACEOF
81ecdfbb 10929if ac_fn_c_try_link "$LINENO"; then :
d7040cdb
SE
10930 ac_cv_lib_dld_dld_link=yes
10931else
81ecdfbb 10932 ac_cv_lib_dld_dld_link=no
d7040cdb 10933fi
81ecdfbb
RW
10934rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
d7040cdb
SE
10936LIBS=$ac_check_lib_save_LIBS
10937fi
81ecdfbb
RW
10938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10939$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10940if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
718a6fd8 10941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
10942fi
10943
10944
10945fi
10946
10947
10948fi
10949
10950
10951fi
10952
10953
10954fi
10955
10956
10957fi
10958
10959 ;;
10960 esac
10961
10962 if test "x$lt_cv_dlopen" != xno; then
10963 enable_dlopen=yes
10964 else
10965 enable_dlopen=no
10966 fi
10967
10968 case $lt_cv_dlopen in
10969 dlopen)
10970 save_CPPFLAGS="$CPPFLAGS"
10971 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10972
10973 save_LDFLAGS="$LDFLAGS"
10974 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10975
10976 save_LIBS="$LIBS"
10977 LIBS="$lt_cv_dlopen_libs $LIBS"
10978
81ecdfbb
RW
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10980$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10981if test "${lt_cv_dlopen_self+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
d7040cdb
SE
10983else
10984 if test "$cross_compiling" = yes; then :
10985 lt_cv_dlopen_self=cross
10986else
10987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10988 lt_status=$lt_dlunknown
10989 cat > conftest.$ac_ext <<_LT_EOF
7fac9594 10990#line 10990 "configure"
d7040cdb
SE
10991#include "confdefs.h"
10992
10993#if HAVE_DLFCN_H
10994#include <dlfcn.h>
10995#endif
10996
10997#include <stdio.h>
10998
10999#ifdef RTLD_GLOBAL
11000# define LT_DLGLOBAL RTLD_GLOBAL
11001#else
11002# ifdef DL_GLOBAL
11003# define LT_DLGLOBAL DL_GLOBAL
11004# else
11005# define LT_DLGLOBAL 0
11006# endif
11007#endif
11008
11009/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11010 find out it does not work in some platform. */
11011#ifndef LT_DLLAZY_OR_NOW
11012# ifdef RTLD_LAZY
11013# define LT_DLLAZY_OR_NOW RTLD_LAZY
11014# else
11015# ifdef DL_LAZY
11016# define LT_DLLAZY_OR_NOW DL_LAZY
11017# else
11018# ifdef RTLD_NOW
11019# define LT_DLLAZY_OR_NOW RTLD_NOW
11020# else
11021# ifdef DL_NOW
11022# define LT_DLLAZY_OR_NOW DL_NOW
11023# else
11024# define LT_DLLAZY_OR_NOW 0
11025# endif
11026# endif
11027# endif
11028# endif
11029#endif
11030
3725885a
RW
11031/* When -fvisbility=hidden is used, assume the code has been annotated
11032 correspondingly for the symbols needed. */
11033#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11034void fnord () __attribute__((visibility("default")));
3725885a
RW
11035#endif
11036
f2c621e4 11037void fnord () { int i=42; }
d7040cdb
SE
11038int main ()
11039{
11040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11041 int status = $lt_dlunknown;
11042
11043 if (self)
11044 {
11045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11046 else
11047 {
11048 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11049 else puts (dlerror ());
11050 }
d7040cdb
SE
11051 /* dlclose (self); */
11052 }
11053 else
11054 puts (dlerror ());
11055
718a6fd8 11056 return status;
d7040cdb
SE
11057}
11058_LT_EOF
81ecdfbb 11059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11060 (eval $ac_link) 2>&5
11061 ac_status=$?
81ecdfbb
RW
11062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11063 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11064 (./conftest; exit; ) >&5 2>/dev/null
11065 lt_status=$?
11066 case x$lt_status in
11067 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11068 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11069 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11070 esac
11071 else :
11072 # compilation failed
11073 lt_cv_dlopen_self=no
11074 fi
11075fi
11076rm -fr conftest*
11077
11078
11079fi
81ecdfbb
RW
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11081$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb
SE
11082
11083 if test "x$lt_cv_dlopen_self" = xyes; then
11084 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11086$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11087if test "${lt_cv_dlopen_self_static+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
d7040cdb
SE
11089else
11090 if test "$cross_compiling" = yes; then :
11091 lt_cv_dlopen_self_static=cross
11092else
11093 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11094 lt_status=$lt_dlunknown
11095 cat > conftest.$ac_ext <<_LT_EOF
7fac9594 11096#line 11096 "configure"
d7040cdb
SE
11097#include "confdefs.h"
11098
11099#if HAVE_DLFCN_H
11100#include <dlfcn.h>
11101#endif
11102
11103#include <stdio.h>
11104
11105#ifdef RTLD_GLOBAL
11106# define LT_DLGLOBAL RTLD_GLOBAL
11107#else
11108# ifdef DL_GLOBAL
11109# define LT_DLGLOBAL DL_GLOBAL
11110# else
11111# define LT_DLGLOBAL 0
11112# endif
11113#endif
11114
11115/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11116 find out it does not work in some platform. */
11117#ifndef LT_DLLAZY_OR_NOW
11118# ifdef RTLD_LAZY
11119# define LT_DLLAZY_OR_NOW RTLD_LAZY
11120# else
11121# ifdef DL_LAZY
11122# define LT_DLLAZY_OR_NOW DL_LAZY
11123# else
11124# ifdef RTLD_NOW
11125# define LT_DLLAZY_OR_NOW RTLD_NOW
11126# else
11127# ifdef DL_NOW
11128# define LT_DLLAZY_OR_NOW DL_NOW
11129# else
11130# define LT_DLLAZY_OR_NOW 0
11131# endif
11132# endif
11133# endif
11134# endif
11135#endif
11136
3725885a
RW
11137/* When -fvisbility=hidden is used, assume the code has been annotated
11138 correspondingly for the symbols needed. */
11139#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11140void fnord () __attribute__((visibility("default")));
3725885a
RW
11141#endif
11142
f2c621e4 11143void fnord () { int i=42; }
d7040cdb
SE
11144int main ()
11145{
11146 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11147 int status = $lt_dlunknown;
11148
11149 if (self)
11150 {
11151 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11152 else
11153 {
11154 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11155 else puts (dlerror ());
11156 }
d7040cdb
SE
11157 /* dlclose (self); */
11158 }
11159 else
11160 puts (dlerror ());
11161
718a6fd8 11162 return status;
d7040cdb
SE
11163}
11164_LT_EOF
81ecdfbb 11165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11166 (eval $ac_link) 2>&5
11167 ac_status=$?
81ecdfbb
RW
11168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11169 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
d7040cdb
SE
11170 (./conftest; exit; ) >&5 2>/dev/null
11171 lt_status=$?
11172 case x$lt_status in
11173 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11174 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11175 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11176 esac
11177 else :
11178 # compilation failed
11179 lt_cv_dlopen_self_static=no
11180 fi
11181fi
11182rm -fr conftest*
11183
11184
11185fi
81ecdfbb
RW
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11187$as_echo "$lt_cv_dlopen_self_static" >&6; }
d7040cdb
SE
11188 fi
11189
11190 CPPFLAGS="$save_CPPFLAGS"
11191 LDFLAGS="$save_LDFLAGS"
11192 LIBS="$save_LIBS"
11193 ;;
11194 esac
11195
11196 case $lt_cv_dlopen_self in
11197 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11198 *) enable_dlopen_self=unknown ;;
11199 esac
11200
11201 case $lt_cv_dlopen_self_static in
11202 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11203 *) enable_dlopen_self_static=unknown ;;
11204 esac
11205fi
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223striplib=
11224old_striplib=
81ecdfbb
RW
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11226$as_echo_n "checking whether stripping libraries is possible... " >&6; }
d7040cdb
SE
11227if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11228 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11229 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231$as_echo "yes" >&6; }
d7040cdb
SE
11232else
11233# FIXME - insert some real tests, host_os isn't really good enough
11234 case $host_os in
11235 darwin*)
11236 if test -n "$STRIP" ; then
11237 striplib="$STRIP -x"
11238 old_striplib="$STRIP -S"
81ecdfbb
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11240$as_echo "yes" >&6; }
d7040cdb 11241 else
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
d7040cdb
SE
11244 fi
11245 ;;
11246 *)
81ecdfbb
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248$as_echo "no" >&6; }
d7040cdb
SE
11249 ;;
11250 esac
11251fi
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264 # Report which library types will actually be built
81ecdfbb
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11266$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11268$as_echo "$can_build_shared" >&6; }
d7040cdb 11269
81ecdfbb
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11271$as_echo_n "checking whether to build shared libraries... " >&6; }
d7040cdb
SE
11272 test "$can_build_shared" = "no" && enable_shared=no
11273
11274 # On AIX, shared libraries and static libraries use the same namespace, and
11275 # are all built from PIC.
11276 case $host_os in
11277 aix3*)
11278 test "$enable_shared" = yes && enable_static=no
11279 if test -n "$RANLIB"; then
11280 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11281 postinstall_cmds='$RANLIB $lib'
11282 fi
11283 ;;
11284
50e7d84b 11285 aix[4-9]*)
d7040cdb
SE
11286 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11287 test "$enable_shared" = yes && enable_static=no
11288 fi
11289 ;;
11290 esac
81ecdfbb
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11292$as_echo "$enable_shared" >&6; }
d7040cdb 11293
81ecdfbb
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11295$as_echo_n "checking whether to build static libraries... " >&6; }
d7040cdb
SE
11296 # Make sure either enable_shared or enable_static is yes.
11297 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11299$as_echo "$enable_static" >&6; }
d7040cdb
SE
11300
11301
11302
11303
11304fi
11305ac_ext=c
11306ac_cpp='$CPP $CPPFLAGS'
11307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309ac_compiler_gnu=$ac_cv_c_compiler_gnu
11310
11311CC="$lt_save_CC"
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
81ecdfbb 11325 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11326
11327
11328
11329
11330# Only expand once:
11331
11332
11333
b879806f
AM
11334# The tests for host and target for $enable_largefile require
11335# canonical names.
11336
11337
11338
11339# As the $enable_largefile decision depends on --enable-plugins we must set it
11340# even in directories otherwise not depending on the $plugins option.
11341
11342
11343 maybe_plugins=no
11344 for ac_header in dlfcn.h
11345do :
11346 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11347"
11348if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11349 cat >>confdefs.h <<_ACEOF
11350#define HAVE_DLFCN_H 1
11351_ACEOF
11352 maybe_plugins=yes
11353fi
11354
11355done
11356
11357 for ac_header in windows.h
11358do :
11359 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11360"
11361if test "x$ac_cv_header_windows_h" = x""yes; then :
11362 cat >>confdefs.h <<_ACEOF
11363#define HAVE_WINDOWS_H 1
11364_ACEOF
11365 maybe_plugins=yes
11366fi
11367
11368done
11369
11370
11371 # Check whether --enable-plugins was given.
11372if test "${enable_plugins+set}" = set; then :
11373 enableval=$enable_plugins; case "${enableval}" in
11374 no) plugins=no ;;
11375 *) plugins=yes
11376 if test "$maybe_plugins" != "yes" ; then
11377 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11378 fi ;;
11379 esac
11380else
11381 plugins=$maybe_plugins
11382
11383fi
11384
2974be62
AM
11385 if test "$plugins" = "yes"; then
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11387$as_echo_n "checking for library containing dlopen... " >&6; }
11388if test "${ac_cv_search_dlopen+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
11390else
11391 ac_func_search_save_LIBS=$LIBS
11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h. */
11394
11395/* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398#ifdef __cplusplus
11399extern "C"
11400#endif
11401char dlopen ();
11402int
11403main ()
11404{
11405return dlopen ();
11406 ;
11407 return 0;
11408}
11409_ACEOF
11410for ac_lib in '' dl; do
11411 if test -z "$ac_lib"; then
11412 ac_res="none required"
11413 else
11414 ac_res=-l$ac_lib
11415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11416 fi
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_search_dlopen=$ac_res
11419fi
11420rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext
11422 if test "${ac_cv_search_dlopen+set}" = set; then :
11423 break
11424fi
11425done
11426if test "${ac_cv_search_dlopen+set}" = set; then :
11427
11428else
11429 ac_cv_search_dlopen=no
11430fi
11431rm conftest.$ac_ext
11432LIBS=$ac_func_search_save_LIBS
11433fi
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11435$as_echo "$ac_cv_search_dlopen" >&6; }
11436ac_res=$ac_cv_search_dlopen
11437if test "$ac_res" != no; then :
11438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11439
11440fi
11441
11442 fi
b879806f
AM
11443
11444
11445case "${host}" in
11446 sparc-*-solaris*|i[3-7]86-*-solaris*)
11447 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11448 # are mutually exclusive; and without procfs support, the bfd/ elf module
11449 # cannot provide certain routines such as elfcore_write_prpsinfo
11450 # or elfcore_write_prstatus. So unless the user explicitly requested
11451 # large-file support through the --enable-largefile switch, disable
11452 # large-file support in favor of procfs support.
11453 test "${target}" = "${host}" -a "x$plugins" = xno \
11454 && : ${enable_largefile="no"}
11455 ;;
11456esac
11457
11458# Check whether --enable-largefile was given.
11459if test "${enable_largefile+set}" = set; then :
11460 enableval=$enable_largefile;
11461fi
11462
11463if test "$enable_largefile" != no; then
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11466$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11467if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11468 $as_echo_n "(cached) " >&6
11469else
11470 ac_cv_sys_largefile_CC=no
11471 if test "$GCC" != yes; then
11472 ac_save_CC=$CC
11473 while :; do
11474 # IRIX 6.2 and later do not support large files by default,
11475 # so use the C compiler's -n32 option if that helps.
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477/* end confdefs.h. */
11478#include <sys/types.h>
11479 /* Check that off_t can represent 2**63 - 1 correctly.
11480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11481 since some C++ compilers masquerading as C compilers
11482 incorrectly reject 9223372036854775807. */
11483#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11485 && LARGE_OFF_T % 2147483647 == 1)
11486 ? 1 : -1];
11487int
11488main ()
11489{
11490
11491 ;
11492 return 0;
11493}
11494_ACEOF
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496 break
11497fi
11498rm -f core conftest.err conftest.$ac_objext
11499 CC="$CC -n32"
11500 if ac_fn_c_try_compile "$LINENO"; then :
11501 ac_cv_sys_largefile_CC=' -n32'; break
11502fi
11503rm -f core conftest.err conftest.$ac_objext
11504 break
11505 done
11506 CC=$ac_save_CC
11507 rm -f conftest.$ac_ext
11508 fi
11509fi
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11511$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11512 if test "$ac_cv_sys_largefile_CC" != no; then
11513 CC=$CC$ac_cv_sys_largefile_CC
11514 fi
11515
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11517$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11518if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520else
11521 while :; do
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523/* end confdefs.h. */
11524#include <sys/types.h>
11525 /* Check that off_t can represent 2**63 - 1 correctly.
11526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11527 since some C++ compilers masquerading as C compilers
11528 incorrectly reject 9223372036854775807. */
11529#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11531 && LARGE_OFF_T % 2147483647 == 1)
11532 ? 1 : -1];
11533int
11534main ()
11535{
11536
11537 ;
11538 return 0;
11539}
11540_ACEOF
11541if ac_fn_c_try_compile "$LINENO"; then :
11542 ac_cv_sys_file_offset_bits=no; break
11543fi
11544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11546/* end confdefs.h. */
11547#define _FILE_OFFSET_BITS 64
11548#include <sys/types.h>
11549 /* Check that off_t can represent 2**63 - 1 correctly.
11550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11551 since some C++ compilers masquerading as C compilers
11552 incorrectly reject 9223372036854775807. */
11553#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11555 && LARGE_OFF_T % 2147483647 == 1)
11556 ? 1 : -1];
11557int
11558main ()
11559{
11560
11561 ;
11562 return 0;
11563}
11564_ACEOF
11565if ac_fn_c_try_compile "$LINENO"; then :
11566 ac_cv_sys_file_offset_bits=64; break
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 ac_cv_sys_file_offset_bits=unknown
11570 break
11571done
11572fi
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11574$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11575case $ac_cv_sys_file_offset_bits in #(
11576 no | unknown) ;;
11577 *)
11578cat >>confdefs.h <<_ACEOF
11579#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11580_ACEOF
11581;;
11582esac
11583rm -rf conftest*
11584 if test $ac_cv_sys_file_offset_bits = unknown; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11586$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11587if test "${ac_cv_sys_large_files+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589else
11590 while :; do
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592/* end confdefs.h. */
11593#include <sys/types.h>
11594 /* Check that off_t can represent 2**63 - 1 correctly.
11595 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11596 since some C++ compilers masquerading as C compilers
11597 incorrectly reject 9223372036854775807. */
11598#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11599 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11600 && LARGE_OFF_T % 2147483647 == 1)
11601 ? 1 : -1];
11602int
11603main ()
11604{
11605
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610if ac_fn_c_try_compile "$LINENO"; then :
11611 ac_cv_sys_large_files=no; break
11612fi
11613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615/* end confdefs.h. */
11616#define _LARGE_FILES 1
11617#include <sys/types.h>
11618 /* Check that off_t can represent 2**63 - 1 correctly.
11619 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11620 since some C++ compilers masquerading as C compilers
11621 incorrectly reject 9223372036854775807. */
11622#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11623 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11624 && LARGE_OFF_T % 2147483647 == 1)
11625 ? 1 : -1];
11626int
11627main ()
11628{
11629
11630 ;
11631 return 0;
11632}
11633_ACEOF
11634if ac_fn_c_try_compile "$LINENO"; then :
11635 ac_cv_sys_large_files=1; break
11636fi
11637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 ac_cv_sys_large_files=unknown
11639 break
11640done
11641fi
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11643$as_echo "$ac_cv_sys_large_files" >&6; }
11644case $ac_cv_sys_large_files in #(
11645 no | unknown) ;;
11646 *)
11647cat >>confdefs.h <<_ACEOF
11648#define _LARGE_FILES $ac_cv_sys_large_files
11649_ACEOF
11650;;
11651esac
11652rm -rf conftest*
11653 fi
11654fi
11655
11656
11657
81ecdfbb
RW
11658# Check whether --enable-targets was given.
11659if test "${enable_targets+set}" = set; then :
11660 enableval=$enable_targets; case "${enableval}" in
11661 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
d7040cdb
SE
11662 ;;
11663 no) enable_targets= ;;
11664 *) enable_targets=$enableval ;;
11665esac
81ecdfbb
RW
11666fi
11667
9cb80f72
RM
11668# Check whether --enable-deterministic-archives was given.
11669if test "${enable_deterministic_archives+set}" = set; then :
11670 enableval=$enable_deterministic_archives;
11671if test "${enableval}" = no; then
11672 default_ar_deterministic=0
11673else
11674 default_ar_deterministic=1
11675fi
11676else
11677 default_ar_deterministic=0
11678fi
11679
11680
11681
11682cat >>confdefs.h <<_ACEOF
11683#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
11684_ACEOF
11685
11686
7fac9594
NC
11687# Check whether --enable-default-strings-all was given.
11688if test "${enable_default_strings_all+set}" = set; then :
11689 enableval=$enable_default_strings_all;
11690if test "${enableval}" = no; then
11691 default_strings_all=0
11692else
11693 default_strings_all=1
11694fi
11695else
11696 default_strings_all=1
11697fi
11698
11699
11700
11701cat >>confdefs.h <<_ACEOF
11702#define DEFAULT_STRINGS_ALL $default_strings_all
11703_ACEOF
11704
11705
d7040cdb 11706
270c9937
JB
11707# Set the 'development' global.
11708. $srcdir/../bfd/development.sh
11709
397841b5
AM
11710GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712/* end confdefs.h. */
11713__GNUC__
11714_ACEOF
11715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11716 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11717
11718else
11719 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11720fi
11721rm -f conftest*
11722
d7040cdb 11723
81ecdfbb
RW
11724# Check whether --enable-werror was given.
11725if test "${enable_werror+set}" = set; then :
11726 enableval=$enable_werror; case "${enableval}" in
d7040cdb
SE
11727 yes | y) ERROR_ON_WARNING="yes" ;;
11728 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11729 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
d7040cdb 11730 esac
81ecdfbb
RW
11731fi
11732
d7040cdb 11733
397841b5 11734# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11735case "${host}" in
11736 *-*-mingw32*)
11737 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11738 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11739 fi
11740 ;;
11741 *) ;;
11742esac
11743
270c9937
JB
11744# Enable -Werror by default when using gcc. Turn it off for releases.
11745if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
d7040cdb
SE
11746 ERROR_ON_WARNING=yes
11747fi
11748
11749NO_WERROR=
11750if test "${ERROR_ON_WARNING}" = yes ; then
11751 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11752 NO_WERROR="-Wno-error"
11753fi
11754
11755if test "${GCC}" = yes ; then
11756 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11757fi
11758
81ecdfbb
RW
11759# Check whether --enable-build-warnings was given.
11760if test "${enable_build_warnings+set}" = set; then :
11761 enableval=$enable_build_warnings; case "${enableval}" in
d7040cdb
SE
11762 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11763 no) if test "${GCC}" = yes ; then
11764 WARN_CFLAGS="-w"
11765 fi;;
11766 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11767 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11768 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11769 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11770 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11771esac
81ecdfbb
RW
11772fi
11773
d7040cdb
SE
11774
11775if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11776 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11777fi
11778
11779
11780
11781
11782
81ecdfbb 11783ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb
SE
11784
11785
df7b86aa
NC
11786
11787
d7040cdb 11788if test -z "$target" ; then
81ecdfbb 11789 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
11790fi
11791if test -z "$host" ; then
81ecdfbb 11792 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
d7040cdb
SE
11793fi
11794
11795for ac_prog in 'bison -y' byacc
11796do
11797 # Extract the first word of "$ac_prog", so it can be a program name with args.
11798set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
11801if test "${ac_cv_prog_YACC+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
d7040cdb
SE
11803else
11804 if test -n "$YACC"; then
11805 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11806else
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11814 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11816 break 2
11817 fi
11818done
81ecdfbb
RW
11819 done
11820IFS=$as_save_IFS
d7040cdb
SE
11821
11822fi
11823fi
11824YACC=$ac_cv_prog_YACC
11825if test -n "$YACC"; then
81ecdfbb
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11827$as_echo "$YACC" >&6; }
d7040cdb 11828else
81ecdfbb
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
d7040cdb
SE
11831fi
11832
81ecdfbb 11833
d7040cdb
SE
11834 test -n "$YACC" && break
11835done
11836test -n "$YACC" || YACC="yacc"
11837
11838for ac_prog in flex lex
11839do
11840 # Extract the first word of "$ac_prog", so it can be a program name with args.
11841set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
11842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11843$as_echo_n "checking for $ac_word... " >&6; }
11844if test "${ac_cv_prog_LEX+set}" = set; then :
11845 $as_echo_n "(cached) " >&6
d7040cdb
SE
11846else
11847 if test -n "$LEX"; then
11848 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11849else
11850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11855 for ac_exec_ext in '' $ac_executable_extensions; do
11856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11857 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11859 break 2
11860 fi
11861done
81ecdfbb
RW
11862 done
11863IFS=$as_save_IFS
d7040cdb
SE
11864
11865fi
11866fi
11867LEX=$ac_cv_prog_LEX
11868if test -n "$LEX"; then
81ecdfbb
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11870$as_echo "$LEX" >&6; }
d7040cdb 11871else
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
d7040cdb
SE
11874fi
11875
81ecdfbb 11876
d7040cdb
SE
11877 test -n "$LEX" && break
11878done
11879test -n "$LEX" || LEX=":"
11880
81ecdfbb
RW
11881if test "x$LEX" != "x:"; then
11882 cat >conftest.l <<_ACEOF
11883%%
11884a { ECHO; }
11885b { REJECT; }
11886c { yymore (); }
11887d { yyless (1); }
11888e { yyless (input () != 0); }
11889f { unput (yytext[0]); }
11890. { BEGIN INITIAL; }
11891%%
11892#ifdef YYTEXT_POINTER
11893extern char *yytext;
d7040cdb 11894#endif
d7040cdb 11895int
81ecdfbb 11896main (void)
d7040cdb 11897{
81ecdfbb 11898 return ! yylex () + ! yywrap ();
d7040cdb
SE
11899}
11900_ACEOF
81ecdfbb
RW
11901{ { ac_try="$LEX conftest.l"
11902case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11907$as_echo "$ac_try_echo"; } >&5
11908 (eval "$LEX conftest.l") 2>&5
d7040cdb 11909 ac_status=$?
81ecdfbb
RW
11910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911 test $ac_status = 0; }
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
11913$as_echo_n "checking lex output file root... " >&6; }
11914if test "${ac_cv_prog_lex_root+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
d7040cdb 11916else
d7040cdb 11917
81ecdfbb
RW
11918if test -f lex.yy.c; then
11919 ac_cv_prog_lex_root=lex.yy
11920elif test -f lexyy.c; then
11921 ac_cv_prog_lex_root=lexyy
11922else
11923 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
d7040cdb 11924fi
d7040cdb 11925fi
81ecdfbb
RW
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11927$as_echo "$ac_cv_prog_lex_root" >&6; }
11928LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 11929
81ecdfbb
RW
11930if test -z "${LEXLIB+set}"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
11932$as_echo_n "checking lex library... " >&6; }
11933if test "${ac_cv_lib_lex+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
d7040cdb 11935else
d7040cdb 11936
81ecdfbb
RW
11937 ac_save_LIBS=$LIBS
11938 ac_cv_lib_lex='none needed'
11939 for ac_lib in '' -lfl -ll; do
11940 LIBS="$ac_lib $ac_save_LIBS"
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942/* end confdefs.h. */
11943`cat $LEX_OUTPUT_ROOT.c`
11944_ACEOF
11945if ac_fn_c_try_link "$LINENO"; then :
11946 ac_cv_lib_lex=$ac_lib
d7040cdb 11947fi
81ecdfbb
RW
11948rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950 test "$ac_cv_lib_lex" != 'none needed' && break
11951 done
11952 LIBS=$ac_save_LIBS
d7040cdb
SE
11953
11954fi
81ecdfbb
RW
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11956$as_echo "$ac_cv_lib_lex" >&6; }
11957 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
11958fi
11959
d7040cdb 11960
81ecdfbb
RW
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11962$as_echo_n "checking whether yytext is a pointer... " >&6; }
11963if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
11964 $as_echo_n "(cached) " >&6
d7040cdb
SE
11965else
11966 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 11967# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
11968# not all implementations provide the %pointer and %array declarations.
11969ac_cv_prog_lex_yytext_pointer=no
d7040cdb 11970ac_save_LIBS=$LIBS
81ecdfbb
RW
11971LIBS="$LEXLIB $ac_save_LIBS"
11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h. */
11974#define YYTEXT_POINTER 1
d7040cdb
SE
11975`cat $LEX_OUTPUT_ROOT.c`
11976_ACEOF
81ecdfbb 11977if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 11978 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 11979fi
81ecdfbb
RW
11980rm -f core conftest.err conftest.$ac_objext \
11981 conftest$ac_exeext conftest.$ac_ext
d7040cdb 11982LIBS=$ac_save_LIBS
d7040cdb
SE
11983
11984fi
81ecdfbb
RW
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11986$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
11987if test $ac_cv_prog_lex_yytext_pointer = yes; then
11988
81ecdfbb 11989$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
11990
11991fi
81ecdfbb 11992rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
11993
11994fi
11995if test "$LEX" = :; then
11996 LEX=${am_missing_run}flex
11997fi
11998
31f7d8fd 11999ALL_LINGUAS="bg da es fi fr id it ja ro ru rw sk sv tr uk vi zh_CN zh_TW hr"
d7040cdb
SE
12000# If we haven't got the data from the intl directory,
12001# assume NLS is disabled.
12002USE_NLS=no
12003LIBINTL=
12004LIBINTL_DEP=
12005INCINTL=
12006XGETTEXT=
12007GMSGFMT=
12008POSUB=
12009
12010if test -f ../intl/config.intl; then
12011 . ../intl/config.intl
12012fi
81ecdfbb
RW
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12014$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 12015if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
d7040cdb 12018else
81ecdfbb
RW
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020$as_echo "yes" >&6; }
d7040cdb 12021
81ecdfbb 12022$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
12023
12024
81ecdfbb
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12026$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
12027 # Look for .po and .gmo files in the source directory.
12028 CATALOGS=
12029 XLINGUAS=
12030 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12031 # If there aren't any .gmo files the shell will give us the
12032 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12033 # weeded out.
12034 case "$cat" in *\**)
12035 continue;;
12036 esac
12037 # The quadruple backslash is collapsed to a double backslash
12038 # by the backticks, then collapsed again by the double quotes,
12039 # leaving us with one backslash in the sed expression (right
12040 # before the dot that mustn't act as a wildcard).
12041 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12042 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12043 # The user is allowed to set LINGUAS to a list of languages to
12044 # install catalogs for. If it's empty that means "all of them."
12045 if test "x$LINGUAS" = x; then
12046 CATALOGS="$CATALOGS $cat"
12047 XLINGUAS="$XLINGUAS $lang"
12048 else
12049 case "$LINGUAS" in *$lang*)
12050 CATALOGS="$CATALOGS $cat"
12051 XLINGUAS="$XLINGUAS $lang"
12052 ;;
12053 esac
12054 fi
12055 done
12056 LINGUAS="$XLINGUAS"
81ecdfbb
RW
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12058$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
12059
12060
12061 DATADIRNAME=share
12062
12063 INSTOBJEXT=.mo
12064
12065 GENCAT=gencat
12066
12067 CATOBJEXT=.gmo
12068
12069fi
12070
12071 MKINSTALLDIRS=
12072 if test -n "$ac_aux_dir"; then
12073 case "$ac_aux_dir" in
12074 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12075 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12076 esac
12077 fi
12078 if test -z "$MKINSTALLDIRS"; then
12079 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12080 fi
12081
12082
12083
81ecdfbb
RW
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12085$as_echo_n "checking whether NLS is requested... " >&6; }
12086 # Check whether --enable-nls was given.
12087if test "${enable_nls+set}" = set; then :
12088 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
12089else
12090 USE_NLS=yes
81ecdfbb
RW
12091fi
12092
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12094$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
12095
12096
12097
12098
12099
12100
12101# Prepare PATH_SEPARATOR.
12102# The user is always right.
12103if test "${PATH_SEPARATOR+set}" != set; then
12104 echo "#! /bin/sh" >conf$$.sh
12105 echo "exit 0" >>conf$$.sh
12106 chmod +x conf$$.sh
12107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12108 PATH_SEPARATOR=';'
12109 else
12110 PATH_SEPARATOR=:
12111 fi
12112 rm -f conf$$.sh
12113fi
12114
12115# Find out how to test for executable files. Don't use a zero-byte file,
12116# as systems may use methods other than mode bits to determine executability.
12117cat >conf$$.file <<_ASEOF
12118#! /bin/sh
12119exit 0
12120_ASEOF
12121chmod +x conf$$.file
12122if test -x conf$$.file >/dev/null 2>&1; then
12123 ac_executable_p="test -x"
12124else
12125 ac_executable_p="test -f"
12126fi
12127rm -f conf$$.file
12128
12129# Extract the first word of "msgfmt", so it can be a program name with args.
12130set dummy msgfmt; ac_word=$2
81ecdfbb
RW
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132$as_echo_n "checking for $ac_word... " >&6; }
12133if test "${ac_cv_path_MSGFMT+set}" = set; then :
12134 $as_echo_n "(cached) " >&6
d7040cdb
SE
12135else
12136 case "$MSGFMT" in
12137 [\\/]* | ?:[\\/]*)
12138 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12139 ;;
12140 *)
12141 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12142 for ac_dir in $PATH; do
12143 IFS="$ac_save_IFS"
12144 test -z "$ac_dir" && ac_dir=.
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12147 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12148 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12149 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12150 break 2
12151 fi
12152 fi
12153 done
12154 done
12155 IFS="$ac_save_IFS"
12156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12157 ;;
12158esac
12159fi
12160MSGFMT="$ac_cv_path_MSGFMT"
12161if test "$MSGFMT" != ":"; then
81ecdfbb
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12163$as_echo "$MSGFMT" >&6; }
d7040cdb 12164else
81ecdfbb
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
d7040cdb
SE
12167fi
12168
12169 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12170set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172$as_echo_n "checking for $ac_word... " >&6; }
12173if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
d7040cdb
SE
12175else
12176 case $GMSGFMT in
12177 [\\/]* | ?:[\\/]*)
12178 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12179 ;;
12180 *)
12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182for as_dir in $PATH
12183do
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12188 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12190 break 2
12191 fi
12192done
81ecdfbb
RW
12193 done
12194IFS=$as_save_IFS
d7040cdb
SE
12195
12196 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12197 ;;
12198esac
12199fi
12200GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 12201if test -n "$GMSGFMT"; then
81ecdfbb
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12203$as_echo "$GMSGFMT" >&6; }
d7040cdb 12204else
81ecdfbb
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
d7040cdb
SE
12207fi
12208
12209
12210
81ecdfbb 12211
d7040cdb
SE
12212# Prepare PATH_SEPARATOR.
12213# The user is always right.
12214if test "${PATH_SEPARATOR+set}" != set; then
12215 echo "#! /bin/sh" >conf$$.sh
12216 echo "exit 0" >>conf$$.sh
12217 chmod +x conf$$.sh
12218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12219 PATH_SEPARATOR=';'
12220 else
12221 PATH_SEPARATOR=:
12222 fi
12223 rm -f conf$$.sh
12224fi
12225
12226# Find out how to test for executable files. Don't use a zero-byte file,
12227# as systems may use methods other than mode bits to determine executability.
12228cat >conf$$.file <<_ASEOF
12229#! /bin/sh
12230exit 0
12231_ASEOF
12232chmod +x conf$$.file
12233if test -x conf$$.file >/dev/null 2>&1; then
12234 ac_executable_p="test -x"
12235else
12236 ac_executable_p="test -f"
12237fi
12238rm -f conf$$.file
12239
12240# Extract the first word of "xgettext", so it can be a program name with args.
12241set dummy xgettext; ac_word=$2
81ecdfbb
RW
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
d7040cdb
SE
12246else
12247 case "$XGETTEXT" in
12248 [\\/]* | ?:[\\/]*)
12249 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12250 ;;
12251 *)
12252 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12253 for ac_dir in $PATH; do
12254 IFS="$ac_save_IFS"
12255 test -z "$ac_dir" && ac_dir=.
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12258 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12259 (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
12260 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12261 break 2
12262 fi
12263 fi
12264 done
12265 done
12266 IFS="$ac_save_IFS"
12267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12268 ;;
12269esac
12270fi
12271XGETTEXT="$ac_cv_path_XGETTEXT"
12272if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12274$as_echo "$XGETTEXT" >&6; }
d7040cdb 12275else
81ecdfbb
RW
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277$as_echo "no" >&6; }
d7040cdb
SE
12278fi
12279
12280 rm -f messages.po
12281
12282
12283# Prepare PATH_SEPARATOR.
12284# The user is always right.
12285if test "${PATH_SEPARATOR+set}" != set; then
12286 echo "#! /bin/sh" >conf$$.sh
12287 echo "exit 0" >>conf$$.sh
12288 chmod +x conf$$.sh
12289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12290 PATH_SEPARATOR=';'
12291 else
12292 PATH_SEPARATOR=:
12293 fi
12294 rm -f conf$$.sh
12295fi
12296
12297# Find out how to test for executable files. Don't use a zero-byte file,
12298# as systems may use methods other than mode bits to determine executability.
12299cat >conf$$.file <<_ASEOF
12300#! /bin/sh
12301exit 0
12302_ASEOF
12303chmod +x conf$$.file
12304if test -x conf$$.file >/dev/null 2>&1; then
12305 ac_executable_p="test -x"
12306else
12307 ac_executable_p="test -f"
12308fi
12309rm -f conf$$.file
12310
12311# Extract the first word of "msgmerge", so it can be a program name with args.
12312set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
d7040cdb
SE
12317else
12318 case "$MSGMERGE" in
12319 [\\/]* | ?:[\\/]*)
12320 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12321 ;;
12322 *)
12323 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12324 for ac_dir in $PATH; do
12325 IFS="$ac_save_IFS"
12326 test -z "$ac_dir" && ac_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12329 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12330 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12331 break 2
12332 fi
12333 fi
12334 done
12335 done
12336 IFS="$ac_save_IFS"
12337 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12338 ;;
12339esac
12340fi
12341MSGMERGE="$ac_cv_path_MSGMERGE"
12342if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12344$as_echo "$MSGMERGE" >&6; }
d7040cdb 12345else
81ecdfbb
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
d7040cdb
SE
12348fi
12349
12350
12351 if test "$GMSGFMT" != ":"; then
12352 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12353 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12354 : ;
12355 else
12356 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12358$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12359 GMSGFMT=":"
12360 fi
12361 fi
12362
12363 if test "$XGETTEXT" != ":"; then
12364 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12365 (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
12366 : ;
12367 else
81ecdfbb
RW
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12369$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12370 XGETTEXT=":"
12371 fi
12372 rm -f messages.po
12373 fi
12374
81ecdfbb 12375 ac_config_commands="$ac_config_commands default-1"
d7040cdb
SE
12376
12377
12378
81ecdfbb
RW
12379
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12381$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12382 # Check whether --enable-maintainer-mode was given.
12383if test "${enable_maintainer_mode+set}" = set; then :
12384 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
42ecbf5e 12385else
d7040cdb 12386 USE_MAINTAINER_MODE=no
81ecdfbb 12387fi
d7040cdb 12388
81ecdfbb
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12390$as_echo "$USE_MAINTAINER_MODE" >&6; }
12391 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
12392 MAINTAINER_MODE_TRUE=
12393 MAINTAINER_MODE_FALSE='#'
12394else
12395 MAINTAINER_MODE_TRUE='#'
12396 MAINTAINER_MODE_FALSE=
42ecbf5e 12397fi
d7040cdb
SE
12398
12399 MAINT=$MAINTAINER_MODE_TRUE
12400
12401
81ecdfbb 12402 if false; then
d7040cdb
SE
12403 GENINSRC_NEVER_TRUE=
12404 GENINSRC_NEVER_FALSE='#'
12405else
12406 GENINSRC_NEVER_TRUE='#'
12407 GENINSRC_NEVER_FALSE=
42ecbf5e 12408fi
d7040cdb
SE
12409
12410
12411if test -n "$EXEEXT"; then
20e95c23 12412
81ecdfbb 12413$as_echo "#define HAVE_EXECUTABLE_SUFFIX 1" >>confdefs.h
42ecbf5e 12414
252b5132
RH
12415fi
12416
d7040cdb
SE
12417cat >>confdefs.h <<_ACEOF
12418#define EXECUTABLE_SUFFIX "${EXEEXT}"
12419_ACEOF
42ecbf5e 12420
252b5132 12421
d7040cdb 12422# host-specific stuff:
252b5132 12423
d7040cdb 12424HDEFINES=
252b5132 12425
d7040cdb 12426. ${srcdir}/../bfd/configure.host
252b5132 12427
252b5132 12428
d7040cdb 12429AR=${AR-ar}
252b5132 12430
d7040cdb
SE
12431if test -n "$ac_tool_prefix"; then
12432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12433set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435$as_echo_n "checking for $ac_word... " >&6; }
12436if test "${ac_cv_prog_RANLIB+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
d7040cdb
SE
12438else
12439 if test -n "$RANLIB"; then
12440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12441else
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12451 break 2
12452 fi
12453done
81ecdfbb
RW
12454 done
12455IFS=$as_save_IFS
252b5132 12456
d7040cdb
SE
12457fi
12458fi
12459RANLIB=$ac_cv_prog_RANLIB
12460if test -n "$RANLIB"; then
81ecdfbb
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12462$as_echo "$RANLIB" >&6; }
d7040cdb 12463else
81ecdfbb
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
d7040cdb 12466fi
20e95c23 12467
81ecdfbb 12468
d7040cdb
SE
12469fi
12470if test -z "$ac_cv_prog_RANLIB"; then
12471 ac_ct_RANLIB=$RANLIB
12472 # Extract the first word of "ranlib", so it can be a program name with args.
12473set dummy ranlib; ac_word=$2
81ecdfbb
RW
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12475$as_echo_n "checking for $ac_word... " >&6; }
12476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12477 $as_echo_n "(cached) " >&6
252b5132 12478else
d7040cdb
SE
12479 if test -n "$ac_ct_RANLIB"; then
12480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12481else
12482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483for as_dir in $PATH
12484do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 12489 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
12491 break 2
12492 fi
12493done
81ecdfbb
RW
12494 done
12495IFS=$as_save_IFS
20e95c23 12496
d7040cdb
SE
12497fi
12498fi
12499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12500if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12502$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 12503else
81ecdfbb
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505$as_echo "no" >&6; }
d7040cdb
SE
12506fi
12507
81ecdfbb
RW
12508 if test "x$ac_ct_RANLIB" = x; then
12509 RANLIB=":"
d7040cdb 12510 else
81ecdfbb
RW
12511 case $cross_compiling:$ac_tool_warned in
12512yes:)
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515ac_tool_warned=yes ;;
12516esac
12517 RANLIB=$ac_ct_RANLIB
d7040cdb 12518 fi
81ecdfbb
RW
12519else
12520 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 12521fi
d7040cdb 12522
d7040cdb
SE
12523
12524
12525# Put a plausible default for CC_FOR_BUILD in Makefile.
12526if test -z "$CC_FOR_BUILD"; then
12527 if test "x$cross_compiling" = "xno"; then
12528 CC_FOR_BUILD='$(CC)'
12529 else
12530 CC_FOR_BUILD=gcc
12531 fi
12532fi
20e95c23 12533
d7040cdb
SE
12534# Also set EXEEXT_FOR_BUILD.
12535if test "x$cross_compiling" = "xno"; then
12536 EXEEXT_FOR_BUILD='$(EXEEXT)'
12537else
81ecdfbb
RW
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12539$as_echo_n "checking for build system executable suffix... " >&6; }
12540if test "${bfd_cv_build_exeext+set}" = set; then :
12541 $as_echo_n "(cached) " >&6
d7040cdb
SE
12542else
12543 rm -f conftest*
12544 echo 'int main () { return 0; }' > conftest.c
12545 bfd_cv_build_exeext=
12546 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12547 for file in conftest.*; do
12548 case $file in
12549 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12550 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12551 esac
12552 done
12553 rm -f conftest*
12554 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 12555fi
81ecdfbb
RW
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12557$as_echo "$bfd_cv_build_exeext" >&6; }
d7040cdb
SE
12558 EXEEXT_FOR_BUILD=""
12559 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
252b5132
RH
12560fi
12561
12562
d7040cdb
SE
12563DEMANGLER_NAME=c++filt
12564case "${host}" in
12565 *-*-go32* | *-*-msdos*)
12566 DEMANGLER_NAME=cxxfilt
12567esac
8a965946
ILT
12568
12569
3bfcb652 12570for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h limits.h locale.h sys/param.h wchar.h
81ecdfbb
RW
12571do :
12572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12573ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12574eval as_val=\$$as_ac_Header
12575 if test "x$as_val" = x""yes; then :
12576 cat >>confdefs.h <<_ACEOF
12577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578_ACEOF
42ecbf5e 12579
81ecdfbb 12580fi
42ecbf5e 12581
81ecdfbb 12582done
42ecbf5e 12583
81ecdfbb
RW
12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12585$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12586if test "${ac_cv_header_sys_wait_h+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
42ecbf5e 12588else
81ecdfbb 12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12590/* end confdefs.h. */
252b5132
RH
12591#include <sys/types.h>
12592#include <sys/wait.h>
12593#ifndef WEXITSTATUS
81ecdfbb 12594# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
252b5132
RH
12595#endif
12596#ifndef WIFEXITED
42ecbf5e 12597# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 12598#endif
42ecbf5e
DJ
12599
12600int
12601main ()
12602{
12603 int s;
12604 wait (&s);
12605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12606 ;
12607 return 0;
12608}
12609_ACEOF
81ecdfbb 12610if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
12611 ac_cv_header_sys_wait_h=yes
12612else
81ecdfbb 12613 ac_cv_header_sys_wait_h=no
252b5132 12614fi
81ecdfbb 12615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 12616fi
81ecdfbb
RW
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12618$as_echo "$ac_cv_header_sys_wait_h" >&6; }
d15b04bd 12619if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e 12620
81ecdfbb 12621$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
252b5132
RH
12622
12623fi
12624
df7b86aa
NC
12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12626$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12627if test "${gcc_cv_header_string+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12629else
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631/* end confdefs.h. */
12632#include <string.h>
12633#include <strings.h>
12634int
12635main ()
12636{
12637
12638 ;
12639 return 0;
12640}
12641_ACEOF
12642if ac_fn_c_try_compile "$LINENO"; then :
12643 gcc_cv_header_string=yes
12644else
12645 gcc_cv_header_string=no
12646fi
12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648fi
12649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12650$as_echo "$gcc_cv_header_string" >&6; }
12651if test $gcc_cv_header_string = yes; then
12652
12653$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12654
12655fi
12656
252b5132
RH
12657# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12658# for constant arguments. Useless!
81ecdfbb
RW
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12660$as_echo_n "checking for working alloca.h... " >&6; }
12661if test "${ac_cv_working_alloca_h+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
42ecbf5e 12663else
81ecdfbb 12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12665/* end confdefs.h. */
252b5132 12666#include <alloca.h>
42ecbf5e
DJ
12667int
12668main ()
12669{
12670char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 12671 if (p) return 0;
42ecbf5e
DJ
12672 ;
12673 return 0;
12674}
12675_ACEOF
81ecdfbb 12676if ac_fn_c_try_link "$LINENO"; then :
42ecbf5e
DJ
12677 ac_cv_working_alloca_h=yes
12678else
81ecdfbb 12679 ac_cv_working_alloca_h=no
42ecbf5e 12680fi
81ecdfbb
RW
12681rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
42ecbf5e 12683fi
81ecdfbb
RW
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12685$as_echo "$ac_cv_working_alloca_h" >&6; }
42ecbf5e
DJ
12686if test $ac_cv_working_alloca_h = yes; then
12687
81ecdfbb 12688$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
12689
12690fi
12691
81ecdfbb
RW
12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12693$as_echo_n "checking for alloca... " >&6; }
12694if test "${ac_cv_func_alloca_works+set}" = set; then :
12695 $as_echo_n "(cached) " >&6
252b5132 12696else
81ecdfbb 12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12698/* end confdefs.h. */
252b5132
RH
12699#ifdef __GNUC__
12700# define alloca __builtin_alloca
12701#else
12702# ifdef _MSC_VER
12703# include <malloc.h>
12704# define alloca _alloca
12705# else
81ecdfbb 12706# ifdef HAVE_ALLOCA_H
252b5132
RH
12707# include <alloca.h>
12708# else
12709# ifdef _AIX
12710 #pragma alloca
12711# else
12712# ifndef alloca /* predefined by HP cc +Olibcalls */
12713char *alloca ();
12714# endif
12715# endif
12716# endif
12717# endif
12718#endif
12719
42ecbf5e
DJ
12720int
12721main ()
12722{
12723char *p = (char *) alloca (1);
81ecdfbb 12724 if (p) return 0;
42ecbf5e
DJ
12725 ;
12726 return 0;
12727}
12728_ACEOF
81ecdfbb 12729if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
12730 ac_cv_func_alloca_works=yes
12731else
81ecdfbb 12732 ac_cv_func_alloca_works=no
252b5132 12733fi
81ecdfbb
RW
12734rm -f core conftest.err conftest.$ac_objext \
12735 conftest$ac_exeext conftest.$ac_ext
252b5132 12736fi
81ecdfbb
RW
12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12738$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 12739
252b5132 12740if test $ac_cv_func_alloca_works = yes; then
e5a52504 12741
81ecdfbb 12742$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
e5a52504 12743
42ecbf5e 12744else
d15b04bd 12745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
12746# that cause trouble. Some versions do not even contain alloca or
12747# contain a buggy version. If you still want to use their alloca,
12748# use ar to extract alloca.o from them instead of compiling alloca.c.
12749
81ecdfbb 12750ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
42ecbf5e 12751
81ecdfbb 12752$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132
RH
12753
12754
81ecdfbb
RW
12755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12756$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12757if test "${ac_cv_os_cray+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
252b5132 12759else
81ecdfbb 12760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12761/* end confdefs.h. */
81ecdfbb 12762#if defined CRAY && ! defined CRAY2
252b5132
RH
12763webecray
12764#else
12765wenotbecray
12766#endif
12767
42ecbf5e 12768_ACEOF
252b5132 12769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 12770 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
12771 ac_cv_os_cray=yes
12772else
252b5132
RH
12773 ac_cv_os_cray=no
12774fi
12775rm -f conftest*
12776
12777fi
81ecdfbb
RW
12778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12779$as_echo "$ac_cv_os_cray" >&6; }
d15b04bd 12780if test $ac_cv_os_cray = yes; then
42ecbf5e 12781 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
12782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12783ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12784eval as_val=\$$as_ac_var
12785 if test "x$as_val" = x""yes; then :
42ecbf5e
DJ
12786
12787cat >>confdefs.h <<_ACEOF
252b5132 12788#define CRAY_STACKSEG_END $ac_func
42ecbf5e 12789_ACEOF
252b5132 12790
42ecbf5e 12791 break
252b5132
RH
12792fi
12793
42ecbf5e 12794 done
252b5132
RH
12795fi
12796
81ecdfbb
RW
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12798$as_echo_n "checking stack direction for C alloca... " >&6; }
12799if test "${ac_cv_c_stack_direction+set}" = set; then :
12800 $as_echo_n "(cached) " >&6
252b5132 12801else
81ecdfbb 12802 if test "$cross_compiling" = yes; then :
252b5132
RH
12803 ac_cv_c_stack_direction=0
12804else
81ecdfbb 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12806/* end confdefs.h. */
81ecdfbb 12807$ac_includes_default
42ecbf5e 12808int
252b5132
RH
12809find_stack_direction ()
12810{
12811 static char *addr = 0;
12812 auto char dummy;
12813 if (addr == 0)
12814 {
12815 addr = &dummy;
12816 return find_stack_direction ();
12817 }
12818 else
12819 return (&dummy > addr) ? 1 : -1;
12820}
42ecbf5e
DJ
12821
12822int
252b5132
RH
12823main ()
12824{
81ecdfbb 12825 return find_stack_direction () < 0;
252b5132 12826}
42ecbf5e 12827_ACEOF
81ecdfbb 12828if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
12829 ac_cv_c_stack_direction=1
12830else
81ecdfbb 12831 ac_cv_c_stack_direction=-1
252b5132 12832fi
81ecdfbb
RW
12833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12834 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132
RH
12835fi
12836
81ecdfbb
RW
12837fi
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12839$as_echo "$ac_cv_c_stack_direction" >&6; }
42ecbf5e 12840cat >>confdefs.h <<_ACEOF
252b5132 12841#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
12842_ACEOF
12843
252b5132
RH
12844
12845fi
12846
44350750 12847for ac_func in sbrk utimes setmode getc_unlocked strcoll setlocale
81ecdfbb
RW
12848do :
12849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12851eval as_val=\$$as_ac_var
12852 if test "x$as_val" = x""yes; then :
12853 cat >>confdefs.h <<_ACEOF
12854#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12855_ACEOF
42ecbf5e 12856
81ecdfbb
RW
12857fi
12858done
42ecbf5e 12859
81ecdfbb
RW
12860ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12861if test "x$ac_cv_func_mkstemp" = x""yes; then :
42ecbf5e 12862
81ecdfbb 12863$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
42ecbf5e 12864
81ecdfbb 12865fi
42ecbf5e 12866
81ecdfbb
RW
12867ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
12868if test "x$ac_cv_func_mkdtemp" = x""yes; then :
42ecbf5e 12869
81ecdfbb 12870$as_echo "#define HAVE_MKDTEMP 1" >>confdefs.h
42ecbf5e 12871
81ecdfbb 12872fi
d15b04bd 12873
3bfcb652
NC
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12875$as_echo_n "checking for mbstate_t... " >&6; }
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h. */
12878#include <wchar.h>
12879int
12880main ()
12881{
12882mbstate_t teststate;
12883 ;
12884 return 0;
12885}
12886_ACEOF
12887if ac_fn_c_try_compile "$LINENO"; then :
12888 have_mbstate_t=yes
12889else
12890 have_mbstate_t=no
12891fi
12892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
12894$as_echo "$have_mbstate_t" >&6; }
12895 if test x"$have_mbstate_t" = xyes; then
12896
12897$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12898
12899 fi
d15b04bd 12900
81ecdfbb
RW
12901# Some systems have frexp only in -lm, not in -lc.
12902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing frexp" >&5
12903$as_echo_n "checking for library containing frexp... " >&6; }
12904if test "${ac_cv_search_frexp+set}" = set; then :
12905 $as_echo_n "(cached) " >&6
f9c026a8 12906else
81ecdfbb
RW
12907 ac_func_search_save_LIBS=$LIBS
12908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f9c026a8 12909/* end confdefs.h. */
f9c026a8 12910
81ecdfbb
RW
12911/* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
f9c026a8 12913 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
12914#ifdef __cplusplus
12915extern "C"
12916#endif
42ecbf5e
DJ
12917char frexp ();
12918int
12919main ()
12920{
81ecdfbb 12921return frexp ();
42ecbf5e
DJ
12922 ;
12923 return 0;
12924}
12925_ACEOF
81ecdfbb
RW
12926for ac_lib in '' m; do
12927 if test -z "$ac_lib"; then
12928 ac_res="none required"
12929 else
12930 ac_res=-l$ac_lib
42ecbf5e 12931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
12932 fi
12933 if ac_fn_c_try_link "$LINENO"; then :
12934 ac_cv_search_frexp=$ac_res
12935fi
12936rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext
12938 if test "${ac_cv_search_frexp+set}" = set; then :
12939 break
12940fi
12941done
12942if test "${ac_cv_search_frexp+set}" = set; then :
42ecbf5e 12943
f353eb8a 12944else
81ecdfbb 12945 ac_cv_search_frexp=no
e5a52504 12946fi
81ecdfbb 12947rm conftest.$ac_ext
42ecbf5e
DJ
12948LIBS=$ac_func_search_save_LIBS
12949fi
81ecdfbb
RW
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_frexp" >&5
12951$as_echo "$ac_cv_search_frexp" >&6; }
12952ac_res=$ac_cv_search_frexp
12953if test "$ac_res" != no; then :
12954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 12955
f353eb8a
ILT
12956fi
12957
42ecbf5e 12958
44350750
NC
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12961$as_echo_n "checking for LC_MESSAGES... " >&6; }
12962if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
12964else
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966/* end confdefs.h. */
12967#include <locale.h>
12968int
12969main ()
12970{
12971return LC_MESSAGES
12972 ;
12973 return 0;
12974}
12975_ACEOF
12976if ac_fn_c_try_link "$LINENO"; then :
12977 am_cv_val_LC_MESSAGES=yes
12978else
12979 am_cv_val_LC_MESSAGES=no
12980fi
12981rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983fi
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12985$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12986 if test $am_cv_val_LC_MESSAGES = yes; then
12987
12988$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12989
12990 fi
12991
12992
81ecdfbb
RW
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in time.h" >&5
12994$as_echo_n "checking for time_t in time.h... " >&6; }
12995if test "${bu_cv_decl_time_t_time_h+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
252b5132 12997else
81ecdfbb 12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 12999/* end confdefs.h. */
252b5132 13000#include <time.h>
42ecbf5e
DJ
13001int
13002main ()
13003{
252b5132 13004time_t i;
42ecbf5e
DJ
13005 ;
13006 return 0;
13007}
13008_ACEOF
81ecdfbb 13009if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13010 bu_cv_decl_time_t_time_h=yes
13011else
81ecdfbb 13012 bu_cv_decl_time_t_time_h=no
252b5132 13013fi
81ecdfbb 13014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13015fi
13016
81ecdfbb
RW
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_time_h" >&5
13018$as_echo "$bu_cv_decl_time_t_time_h" >&6; }
252b5132 13019if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e 13020
81ecdfbb 13021$as_echo "#define HAVE_TIME_T_IN_TIME_H 1" >>confdefs.h
252b5132
RH
13022
13023fi
13024
81ecdfbb
RW
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time_t in sys/types.h" >&5
13026$as_echo_n "checking for time_t in sys/types.h... " >&6; }
13027if test "${bu_cv_decl_time_t_types_h+set}" = set; then :
13028 $as_echo_n "(cached) " >&6
252b5132 13029else
81ecdfbb 13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13031/* end confdefs.h. */
252b5132 13032#include <sys/types.h>
42ecbf5e
DJ
13033int
13034main ()
13035{
252b5132 13036time_t i;
42ecbf5e
DJ
13037 ;
13038 return 0;
13039}
13040_ACEOF
81ecdfbb 13041if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13042 bu_cv_decl_time_t_types_h=yes
13043else
81ecdfbb 13044 bu_cv_decl_time_t_types_h=no
252b5132 13045fi
81ecdfbb 13046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13047fi
13048
81ecdfbb
RW
13049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_time_t_types_h" >&5
13050$as_echo "$bu_cv_decl_time_t_types_h" >&6; }
252b5132 13051if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e 13052
81ecdfbb 13053$as_echo "#define HAVE_TIME_T_IN_TYPES_H 1" >>confdefs.h
252b5132
RH
13054
13055fi
13056
81ecdfbb
RW
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
13058$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
13059if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
e46eba98 13061else
81ecdfbb 13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13063/* end confdefs.h. */
e46eba98 13064#include <unistd.h>
42ecbf5e
DJ
13065int
13066main ()
13067{
e46eba98 13068extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
13069 ;
13070 return 0;
13071}
13072_ACEOF
81ecdfbb 13073if ac_fn_c_try_compile "$LINENO"; then :
e46eba98
NC
13074 bu_cv_decl_getopt_unistd_h=yes
13075else
81ecdfbb 13076 bu_cv_decl_getopt_unistd_h=no
e46eba98 13077fi
81ecdfbb 13078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
13079fi
13080
81ecdfbb
RW
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_decl_getopt_unistd_h" >&5
13082$as_echo "$bu_cv_decl_getopt_unistd_h" >&6; }
e46eba98 13083if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 13084
81ecdfbb 13085$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
e46eba98
NC
13086
13087fi
13088
252b5132
RH
13089# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
13090# by default.
81ecdfbb
RW
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
13092$as_echo_n "checking for utime.h... " >&6; }
13093if test "${bu_cv_header_utime_h+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
42ecbf5e 13095else
81ecdfbb 13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 13097/* end confdefs.h. */
252b5132
RH
13098#include <sys/types.h>
13099#ifdef HAVE_TIME_H
13100#include <time.h>
13101#endif
13102#include <utime.h>
42ecbf5e
DJ
13103int
13104main ()
13105{
252b5132 13106struct utimbuf s;
42ecbf5e
DJ
13107 ;
13108 return 0;
13109}
13110_ACEOF
81ecdfbb 13111if ac_fn_c_try_compile "$LINENO"; then :
252b5132
RH
13112 bu_cv_header_utime_h=yes
13113else
81ecdfbb 13114 bu_cv_header_utime_h=no
252b5132 13115fi
81ecdfbb 13116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
13117fi
13118
81ecdfbb
RW
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bu_cv_header_utime_h" >&5
13120$as_echo "$bu_cv_header_utime_h" >&6; }
252b5132 13121if test $bu_cv_header_utime_h = yes; then
42ecbf5e 13122
81ecdfbb 13123$as_echo "#define HAVE_GOOD_UTIME_H 1" >>confdefs.h
252b5132
RH
13124
13125fi
13126
952781e8
AM
13127ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
13128if test "x$ac_cv_have_decl_environ" = x""yes; then :
13129 ac_have_decl=1
13130else
13131 ac_have_decl=0
13132fi
13133
13134cat >>confdefs.h <<_ACEOF
13135#define HAVE_DECL_ENVIRON $ac_have_decl
13136_ACEOF
81ecdfbb
RW
13137ac_fn_c_check_decl "$LINENO" "fprintf" "ac_cv_have_decl_fprintf" "$ac_includes_default"
13138if test "x$ac_cv_have_decl_fprintf" = x""yes; then :
13139 ac_have_decl=1
252b5132 13140else
81ecdfbb
RW
13141 ac_have_decl=0
13142fi
398ee8f1 13143
81ecdfbb
RW
13144cat >>confdefs.h <<_ACEOF
13145#define HAVE_DECL_FPRINTF $ac_have_decl
42ecbf5e 13146_ACEOF
952781e8
AM
13147ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
13148if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
81ecdfbb 13149 ac_have_decl=1
252b5132 13150else
81ecdfbb 13151 ac_have_decl=0
252b5132 13152fi
252b5132 13153
398ee8f1 13154cat >>confdefs.h <<_ACEOF
952781e8 13155#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
398ee8f1 13156_ACEOF
952781e8
AM
13157ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13158if test "x$ac_cv_have_decl_getenv" = x""yes; then :
81ecdfbb 13159 ac_have_decl=1
398ee8f1 13160else
81ecdfbb
RW
13161 ac_have_decl=0
13162fi
3e321448
L
13163
13164cat >>confdefs.h <<_ACEOF
952781e8 13165#define HAVE_DECL_GETENV $ac_have_decl
42ecbf5e 13166_ACEOF
81ecdfbb
RW
13167ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
13168if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
13169 ac_have_decl=1
252b5132 13170else
81ecdfbb 13171 ac_have_decl=0
252b5132 13172fi
252b5132 13173
398ee8f1 13174cat >>confdefs.h <<_ACEOF
81ecdfbb 13175#define HAVE_DECL_SBRK $ac_have_decl
398ee8f1 13176_ACEOF
952781e8
AM
13177ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13178if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
81ecdfbb 13179 ac_have_decl=1
398ee8f1 13180else
81ecdfbb 13181 ac_have_decl=0
398ee8f1 13182fi
252b5132 13183
398ee8f1 13184cat >>confdefs.h <<_ACEOF
952781e8 13185#define HAVE_DECL_SNPRINTF $ac_have_decl
398ee8f1 13186_ACEOF
952781e8
AM
13187ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13188if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
81ecdfbb 13189 ac_have_decl=1
398ee8f1 13190else
81ecdfbb 13191 ac_have_decl=0
398ee8f1 13192fi
252b5132 13193
398ee8f1 13194cat >>confdefs.h <<_ACEOF
952781e8 13195#define HAVE_DECL_STPCPY $ac_have_decl
b7d4af3a 13196_ACEOF
952781e8
AM
13197ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13198if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
81ecdfbb 13199 ac_have_decl=1
b7d4af3a 13200else
81ecdfbb 13201 ac_have_decl=0
b7d4af3a 13202fi
b7d4af3a
JW
13203
13204cat >>confdefs.h <<_ACEOF
952781e8 13205#define HAVE_DECL_STRNLEN $ac_have_decl
b7d4af3a 13206_ACEOF
952781e8
AM
13207ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13208if test "x$ac_cv_have_decl_strstr" = x""yes; then :
81ecdfbb 13209 ac_have_decl=1
b7d4af3a 13210else
81ecdfbb 13211 ac_have_decl=0
db50c840 13212fi
db50c840
EB
13213
13214cat >>confdefs.h <<_ACEOF
952781e8 13215#define HAVE_DECL_STRSTR $ac_have_decl
db50c840 13216_ACEOF
81ecdfbb
RW
13217ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13218if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13219 ac_have_decl=1
db50c840 13220else
81ecdfbb 13221 ac_have_decl=0
db50c840 13222fi
db50c840
EB
13223
13224cat >>confdefs.h <<_ACEOF
81ecdfbb 13225#define HAVE_DECL_VSNPRINTF $ac_have_decl
db50c840
EB
13226_ACEOF
13227
13228
1b315056
CS
13229# Link in zlib if we can. This allows us to read compressed debug
13230# sections. This is used only by readelf.c (objdump uses bfd for
13231# reading compressed sections).
52546677
RM
13232
13233 # See if the user specified whether he wants zlib support or not.
13234
13235# Check whether --with-zlib was given.
13236if test "${with_zlib+set}" = set; then :
13237 withval=$with_zlib;
13238else
13239 with_zlib=auto
13240fi
13241
13242
13243 if test "$with_zlib" != "no"; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
13245$as_echo_n "checking for library containing zlibVersion... " >&6; }
13246if test "${ac_cv_search_zlibVersion+set}" = set; then :
13247 $as_echo_n "(cached) " >&6
1b315056
CS
13248else
13249 ac_func_search_save_LIBS=$LIBS
81ecdfbb 13250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1b315056
CS
13251/* end confdefs.h. */
13252
81ecdfbb
RW
13253/* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
1b315056 13255 builtin and then its argument prototype would still apply. */
1b315056
CS
13256#ifdef __cplusplus
13257extern "C"
13258#endif
1b315056
CS
13259char zlibVersion ();
13260int
13261main ()
13262{
81ecdfbb 13263return zlibVersion ();
1b315056
CS
13264 ;
13265 return 0;
13266}
81ecdfbb
RW
13267_ACEOF
13268for ac_lib in '' z; do
13269 if test -z "$ac_lib"; then
13270 ac_res="none required"
1b315056 13271 else
81ecdfbb
RW
13272 ac_res=-l$ac_lib
13273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1b315056 13274 fi
81ecdfbb
RW
13275 if ac_fn_c_try_link "$LINENO"; then :
13276 ac_cv_search_zlibVersion=$ac_res
1b315056 13277fi
81ecdfbb
RW
13278rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext
13280 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13281 break
1b315056 13282fi
81ecdfbb
RW
13283done
13284if test "${ac_cv_search_zlibVersion+set}" = set; then :
1b315056 13285
1b315056 13286else
81ecdfbb 13287 ac_cv_search_zlibVersion=no
1b315056 13288fi
81ecdfbb
RW
13289rm conftest.$ac_ext
13290LIBS=$ac_func_search_save_LIBS
1b315056 13291fi
81ecdfbb
RW
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13293$as_echo "$ac_cv_search_zlibVersion" >&6; }
13294ac_res=$ac_cv_search_zlibVersion
13295if test "$ac_res" != no; then :
13296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13297 for ac_header in zlib.h
13298do :
13299 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13300if test "x$ac_cv_header_zlib_h" = x""yes; then :
1b315056 13301 cat >>confdefs.h <<_ACEOF
81ecdfbb 13302#define HAVE_ZLIB_H 1
1b315056
CS
13303_ACEOF
13304
13305fi
13306
13307done
13308
13309fi
13310
52546677
RM
13311 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13312 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13313 fi
13314 fi
13315
1b315056 13316
252b5132
RH
13317
13318case "${host}" in
8a965946 13319*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 13320
81ecdfbb 13321$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
13322 ;;
13323esac
13324
13325# target-specific stuff:
13326
13327# Canonicalize the secondary target names.
13328if test -n "$enable_targets"; then
13329 for targ in `echo $enable_targets | sed 's/,/ /g'`
13330 do
6d83c84b 13331 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
13332 if test -n "$result"; then
13333 canon_targets="$canon_targets $result"
13334 else
13335 # Allow targets that config.sub doesn't recognize, like "all".
13336 canon_targets="$canon_targets $targ"
13337 fi
13338 done
13339fi
13340
81ecdfbb
RW
13341ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
13342if test "x$ac_cv_header_iconv_h" = x""yes; then :
5ba684e2
NC
13343
13344fi
13345
13346
13347
13348 if test "X$prefix" = "XNONE"; then
13349 acl_final_prefix="$ac_default_prefix"
13350 else
13351 acl_final_prefix="$prefix"
13352 fi
13353 if test "X$exec_prefix" = "XNONE"; then
13354 acl_final_exec_prefix='${prefix}'
13355 else
13356 acl_final_exec_prefix="$exec_prefix"
13357 fi
13358 acl_save_prefix="$prefix"
13359 prefix="$acl_final_prefix"
13360 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13361 prefix="$acl_save_prefix"
13362
13363
81ecdfbb
RW
13364# Check whether --with-gnu-ld was given.
13365if test "${with_gnu_ld+set}" = set; then :
13366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5ba684e2
NC
13367else
13368 with_gnu_ld=no
81ecdfbb
RW
13369fi
13370
5ba684e2
NC
13371# Prepare PATH_SEPARATOR.
13372# The user is always right.
13373if test "${PATH_SEPARATOR+set}" != set; then
13374 echo "#! /bin/sh" >conf$$.sh
13375 echo "exit 0" >>conf$$.sh
13376 chmod +x conf$$.sh
13377 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13378 PATH_SEPARATOR=';'
13379 else
13380 PATH_SEPARATOR=:
13381 fi
13382 rm -f conf$$.sh
13383fi
13384ac_prog=ld
13385if test "$GCC" = yes; then
13386 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13388$as_echo_n "checking for ld used by GCC... " >&6; }
5ba684e2
NC
13389 case $host in
13390 *-*-mingw*)
13391 # gcc leaves a trailing carriage return which upsets mingw
13392 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13393 *)
13394 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13395 esac
13396 case $ac_prog in
13397 # Accept absolute paths.
13398 [\\/]* | [A-Za-z]:[\\/]*)
13399 re_direlt='/[^/][^/]*/\.\./'
13400 # Canonicalize the path of ld
13401 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13402 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13403 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13404 done
13405 test -z "$LD" && LD="$ac_prog"
13406 ;;
13407 "")
13408 # If it fails, then pretend we aren't using GCC.
13409 ac_prog=ld
13410 ;;
13411 *)
13412 # If it is relative, then search for the first ld in PATH.
13413 with_gnu_ld=unknown
13414 ;;
13415 esac
13416elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13418$as_echo_n "checking for GNU ld... " >&6; }
5ba684e2 13419else
81ecdfbb
RW
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13421$as_echo_n "checking for non-GNU ld... " >&6; }
5ba684e2 13422fi
81ecdfbb
RW
13423if test "${acl_cv_path_LD+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
5ba684e2
NC
13425else
13426 if test -z "$LD"; then
13427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13428 for ac_dir in $PATH; do
13429 test -z "$ac_dir" && ac_dir=.
13430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13431 acl_cv_path_LD="$ac_dir/$ac_prog"
13432 # Check to see if the program is GNU ld. I'd rather use --version,
13433 # but apparently some GNU ld's only accept -v.
13434 # Break only if it was the GNU/non-GNU ld that we prefer.
13435 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
13436 test "$with_gnu_ld" != no && break
13437 else
13438 test "$with_gnu_ld" != yes && break
13439 fi
13440 fi
13441 done
13442 IFS="$ac_save_ifs"
13443else
13444 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13445fi
13446fi
13447
13448LD="$acl_cv_path_LD"
13449if test -n "$LD"; then
81ecdfbb
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13451$as_echo "$LD" >&6; }
5ba684e2 13452else
81ecdfbb
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
5ba684e2 13455fi
81ecdfbb
RW
13456test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13458$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13459if test "${acl_cv_prog_gnu_ld+set}" = set; then :
13460 $as_echo_n "(cached) " >&6
5ba684e2
NC
13461else
13462 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13463if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
13464 acl_cv_prog_gnu_ld=yes
13465else
13466 acl_cv_prog_gnu_ld=no
13467fi
13468fi
81ecdfbb
RW
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13470$as_echo "$acl_cv_prog_gnu_ld" >&6; }
5ba684e2
NC
13471with_gnu_ld=$acl_cv_prog_gnu_ld
13472
13473
13474
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13476$as_echo_n "checking for shared library run path origin... " >&6; }
13477if test "${acl_cv_rpath+set}" = set; then :
13478 $as_echo_n "(cached) " >&6
5ba684e2
NC
13479else
13480
13481 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13482 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13483 . ./conftest.sh
13484 rm -f ./conftest.sh
13485 acl_cv_rpath=done
13486
13487fi
81ecdfbb
RW
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13489$as_echo "$acl_cv_rpath" >&6; }
5ba684e2
NC
13490 wl="$acl_cv_wl"
13491 libext="$acl_cv_libext"
13492 shlibext="$acl_cv_shlibext"
13493 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13494 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13495 hardcode_direct="$acl_cv_hardcode_direct"
13496 hardcode_minus_L="$acl_cv_hardcode_minus_L"
81ecdfbb
RW
13497 # Check whether --enable-rpath was given.
13498if test "${enable_rpath+set}" = set; then :
13499 enableval=$enable_rpath; :
5ba684e2
NC
13500else
13501 enable_rpath=yes
81ecdfbb
RW
13502fi
13503
5ba684e2
NC
13504
13505
13506
13507
13508
13509
13510
13511 use_additional=yes
13512
13513 acl_save_prefix="$prefix"
13514 prefix="$acl_final_prefix"
13515 acl_save_exec_prefix="$exec_prefix"
13516 exec_prefix="$acl_final_exec_prefix"
13517
13518 eval additional_includedir=\"$includedir\"
13519 eval additional_libdir=\"$libdir\"
13520
13521 exec_prefix="$acl_save_exec_prefix"
13522 prefix="$acl_save_prefix"
13523
13524
81ecdfbb
RW
13525# Check whether --with-libiconv-prefix was given.
13526if test "${with_libiconv_prefix+set}" = set; then :
13527 withval=$with_libiconv_prefix;
5ba684e2
NC
13528 if test "X$withval" = "Xno"; then
13529 use_additional=no
13530 else
13531 if test "X$withval" = "X"; then
13532
13533 acl_save_prefix="$prefix"
13534 prefix="$acl_final_prefix"
13535 acl_save_exec_prefix="$exec_prefix"
13536 exec_prefix="$acl_final_exec_prefix"
13537
13538 eval additional_includedir=\"$includedir\"
13539 eval additional_libdir=\"$libdir\"
13540
13541 exec_prefix="$acl_save_exec_prefix"
13542 prefix="$acl_save_prefix"
13543
13544 else
13545 additional_includedir="$withval/include"
13546 additional_libdir="$withval/lib"
13547 fi
13548 fi
13549
81ecdfbb
RW
13550fi
13551
5ba684e2
NC
13552 LIBICONV=
13553 LTLIBICONV=
13554 INCICONV=
13555 rpathdirs=
13556 ltrpathdirs=
13557 names_already_handled=
13558 names_next_round='iconv '
13559 while test -n "$names_next_round"; do
13560 names_this_round="$names_next_round"
13561 names_next_round=
13562 for name in $names_this_round; do
13563 already_handled=
13564 for n in $names_already_handled; do
13565 if test "$n" = "$name"; then
13566 already_handled=yes
13567 break
13568 fi
13569 done
13570 if test -z "$already_handled"; then
13571 names_already_handled="$names_already_handled $name"
13572 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13573 eval value=\"\$HAVE_LIB$uppername\"
13574 if test -n "$value"; then
13575 if test "$value" = yes; then
13576 eval value=\"\$LIB$uppername\"
13577 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13578 eval value=\"\$LTLIB$uppername\"
13579 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13580 else
13581 :
13582 fi
13583 else
13584 found_dir=
13585 found_la=
13586 found_so=
13587 found_a=
13588 if test $use_additional = yes; then
13589 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13590 found_dir="$additional_libdir"
13591 found_so="$additional_libdir/lib$name.$shlibext"
13592 if test -f "$additional_libdir/lib$name.la"; then
13593 found_la="$additional_libdir/lib$name.la"
13594 fi
13595 else
13596 if test -f "$additional_libdir/lib$name.$libext"; then
13597 found_dir="$additional_libdir"
13598 found_a="$additional_libdir/lib$name.$libext"
13599 if test -f "$additional_libdir/lib$name.la"; then
13600 found_la="$additional_libdir/lib$name.la"
13601 fi
13602 fi
13603 fi
13604 fi
13605 if test "X$found_dir" = "X"; then
13606 for x in $LDFLAGS $LTLIBICONV; do
13607
13608 acl_save_prefix="$prefix"
13609 prefix="$acl_final_prefix"
13610 acl_save_exec_prefix="$exec_prefix"
13611 exec_prefix="$acl_final_exec_prefix"
13612 eval x=\"$x\"
13613 exec_prefix="$acl_save_exec_prefix"
13614 prefix="$acl_save_prefix"
13615
13616 case "$x" in
13617 -L*)
13618 dir=`echo "X$x" | sed -e 's/^X-L//'`
13619 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13620 found_dir="$dir"
13621 found_so="$dir/lib$name.$shlibext"
13622 if test -f "$dir/lib$name.la"; then
13623 found_la="$dir/lib$name.la"
13624 fi
13625 else
13626 if test -f "$dir/lib$name.$libext"; then
13627 found_dir="$dir"
13628 found_a="$dir/lib$name.$libext"
13629 if test -f "$dir/lib$name.la"; then
13630 found_la="$dir/lib$name.la"
13631 fi
13632 fi
13633 fi
13634 ;;
13635 esac
13636 if test "X$found_dir" != "X"; then
13637 break
13638 fi
13639 done
13640 fi
13641 if test "X$found_dir" != "X"; then
13642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13643 if test "X$found_so" != "X"; then
13644 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13645 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13646 else
13647 haveit=
13648 for x in $ltrpathdirs; do
13649 if test "X$x" = "X$found_dir"; then
13650 haveit=yes
13651 break
13652 fi
13653 done
13654 if test -z "$haveit"; then
13655 ltrpathdirs="$ltrpathdirs $found_dir"
13656 fi
13657 if test "$hardcode_direct" = yes; then
13658 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13659 else
13660 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13661 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13662 haveit=
13663 for x in $rpathdirs; do
13664 if test "X$x" = "X$found_dir"; then
13665 haveit=yes
13666 break
13667 fi
13668 done
13669 if test -z "$haveit"; then
13670 rpathdirs="$rpathdirs $found_dir"
13671 fi
13672 else
13673 haveit=
13674 for x in $LDFLAGS $LIBICONV; do
13675
13676 acl_save_prefix="$prefix"
13677 prefix="$acl_final_prefix"
13678 acl_save_exec_prefix="$exec_prefix"
13679 exec_prefix="$acl_final_exec_prefix"
13680 eval x=\"$x\"
13681 exec_prefix="$acl_save_exec_prefix"
13682 prefix="$acl_save_prefix"
13683
13684 if test "X$x" = "X-L$found_dir"; then
13685 haveit=yes
13686 break
13687 fi
13688 done
13689 if test -z "$haveit"; then
13690 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13691 fi
13692 if test "$hardcode_minus_L" != no; then
13693 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13694 else
13695 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13696 fi
13697 fi
13698 fi
13699 fi
13700 else
13701 if test "X$found_a" != "X"; then
13702 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13703 else
13704 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13705 fi
13706 fi
13707 additional_includedir=
13708 case "$found_dir" in
13709 */lib | */lib/)
13710 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13711 additional_includedir="$basedir/include"
13712 ;;
13713 esac
13714 if test "X$additional_includedir" != "X"; then
13715 if test "X$additional_includedir" != "X/usr/include"; then
13716 haveit=
13717 if test "X$additional_includedir" = "X/usr/local/include"; then
13718 if test -n "$GCC"; then
13719 case $host_os in
13720 linux*) haveit=yes;;
13721 esac
13722 fi
13723 fi
13724 if test -z "$haveit"; then
13725 for x in $CPPFLAGS $INCICONV; do
13726
13727 acl_save_prefix="$prefix"
13728 prefix="$acl_final_prefix"
13729 acl_save_exec_prefix="$exec_prefix"
13730 exec_prefix="$acl_final_exec_prefix"
13731 eval x=\"$x\"
13732 exec_prefix="$acl_save_exec_prefix"
13733 prefix="$acl_save_prefix"
13734
13735 if test "X$x" = "X-I$additional_includedir"; then
13736 haveit=yes
13737 break
13738 fi
13739 done
13740 if test -z "$haveit"; then
13741 if test -d "$additional_includedir"; then
13742 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13743 fi
13744 fi
13745 fi
13746 fi
13747 fi
13748 if test -n "$found_la"; then
13749 save_libdir="$libdir"
13750 case "$found_la" in
13751 */* | *\\*) . "$found_la" ;;
13752 *) . "./$found_la" ;;
13753 esac
13754 libdir="$save_libdir"
13755 for dep in $dependency_libs; do
13756 case "$dep" in
13757 -L*)
13758 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13759 if test "X$additional_libdir" != "X/usr/lib"; then
13760 haveit=
13761 if test "X$additional_libdir" = "X/usr/local/lib"; then
13762 if test -n "$GCC"; then
13763 case $host_os in
13764 linux*) haveit=yes;;
13765 esac
13766 fi
13767 fi
13768 if test -z "$haveit"; then
13769 haveit=
13770 for x in $LDFLAGS $LIBICONV; do
13771
13772 acl_save_prefix="$prefix"
13773 prefix="$acl_final_prefix"
13774 acl_save_exec_prefix="$exec_prefix"
13775 exec_prefix="$acl_final_exec_prefix"
13776 eval x=\"$x\"
13777 exec_prefix="$acl_save_exec_prefix"
13778 prefix="$acl_save_prefix"
13779
13780 if test "X$x" = "X-L$additional_libdir"; then
13781 haveit=yes
13782 break
13783 fi
13784 done
13785 if test -z "$haveit"; then
13786 if test -d "$additional_libdir"; then
13787 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13788 fi
13789 fi
13790 haveit=
13791 for x in $LDFLAGS $LTLIBICONV; do
13792
13793 acl_save_prefix="$prefix"
13794 prefix="$acl_final_prefix"
13795 acl_save_exec_prefix="$exec_prefix"
13796 exec_prefix="$acl_final_exec_prefix"
13797 eval x=\"$x\"
13798 exec_prefix="$acl_save_exec_prefix"
13799 prefix="$acl_save_prefix"
13800
13801 if test "X$x" = "X-L$additional_libdir"; then
13802 haveit=yes
13803 break
13804 fi
13805 done
13806 if test -z "$haveit"; then
13807 if test -d "$additional_libdir"; then
13808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13809 fi
13810 fi
13811 fi
13812 fi
13813 ;;
13814 -R*)
13815 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13816 if test "$enable_rpath" != no; then
13817 haveit=
13818 for x in $rpathdirs; do
13819 if test "X$x" = "X$dir"; then
13820 haveit=yes
13821 break
13822 fi
13823 done
13824 if test -z "$haveit"; then
13825 rpathdirs="$rpathdirs $dir"
13826 fi
13827 haveit=
13828 for x in $ltrpathdirs; do
13829 if test "X$x" = "X$dir"; then
13830 haveit=yes
13831 break
13832 fi
13833 done
13834 if test -z "$haveit"; then
13835 ltrpathdirs="$ltrpathdirs $dir"
13836 fi
13837 fi
13838 ;;
13839 -l*)
13840 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13841 ;;
13842 *.la)
13843 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13844 ;;
13845 *)
13846 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13847 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13848 ;;
13849 esac
13850 done
13851 fi
13852 else
13853 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13854 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13855 fi
13856 fi
13857 fi
13858 done
13859 done
13860 if test "X$rpathdirs" != "X"; then
13861 if test -n "$hardcode_libdir_separator"; then
13862 alldirs=
13863 for found_dir in $rpathdirs; do
13864 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13865 done
13866 acl_save_libdir="$libdir"
13867 libdir="$alldirs"
13868 eval flag=\"$hardcode_libdir_flag_spec\"
13869 libdir="$acl_save_libdir"
13870 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13871 else
13872 for found_dir in $rpathdirs; do
13873 acl_save_libdir="$libdir"
13874 libdir="$found_dir"
13875 eval flag=\"$hardcode_libdir_flag_spec\"
13876 libdir="$acl_save_libdir"
13877 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13878 done
13879 fi
13880 fi
13881 if test "X$ltrpathdirs" != "X"; then
13882 for found_dir in $ltrpathdirs; do
13883 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13884 done
13885 fi
13886
13887
13888
13889
13890
13891
13892
13893 am_save_CPPFLAGS="$CPPFLAGS"
13894
13895 for element in $INCICONV; do
13896 haveit=
13897 for x in $CPPFLAGS; do
13898
13899 acl_save_prefix="$prefix"
13900 prefix="$acl_final_prefix"
13901 acl_save_exec_prefix="$exec_prefix"
13902 exec_prefix="$acl_final_exec_prefix"
13903 eval x=\"$x\"
13904 exec_prefix="$acl_save_exec_prefix"
13905 prefix="$acl_save_prefix"
13906
13907 if test "X$x" = "X$element"; then
13908 haveit=yes
13909 break
13910 fi
13911 done
13912 if test -z "$haveit"; then
13913 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13914 fi
13915 done
13916
13917
81ecdfbb
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13919$as_echo_n "checking for iconv... " >&6; }
13920if test "${am_cv_func_iconv+set}" = set; then :
13921 $as_echo_n "(cached) " >&6
5ba684e2
NC
13922else
13923
13924 am_cv_func_iconv="no, consider installing GNU libiconv"
13925 am_cv_lib_iconv=no
81ecdfbb 13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13927/* end confdefs.h. */
13928#include <stdlib.h>
13929#include <iconv.h>
13930int
13931main ()
13932{
13933iconv_t cd = iconv_open("","");
13934 iconv(cd,NULL,NULL,NULL,NULL);
13935 iconv_close(cd);
13936 ;
13937 return 0;
13938}
13939_ACEOF
81ecdfbb 13940if ac_fn_c_try_link "$LINENO"; then :
5ba684e2 13941 am_cv_func_iconv=yes
5ba684e2 13942fi
81ecdfbb
RW
13943rm -f core conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
13945 if test "$am_cv_func_iconv" != yes; then
13946 am_save_LIBS="$LIBS"
13947 LIBS="$LIBS $LIBICONV"
81ecdfbb 13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
13949/* end confdefs.h. */
13950#include <stdlib.h>
13951#include <iconv.h>
13952int
13953main ()
13954{
13955iconv_t cd = iconv_open("","");
13956 iconv(cd,NULL,NULL,NULL,NULL);
13957 iconv_close(cd);
13958 ;
13959 return 0;
13960}
13961_ACEOF
81ecdfbb 13962if ac_fn_c_try_link "$LINENO"; then :
5ba684e2
NC
13963 am_cv_lib_iconv=yes
13964 am_cv_func_iconv=yes
5ba684e2 13965fi
81ecdfbb
RW
13966rm -f core conftest.err conftest.$ac_objext \
13967 conftest$ac_exeext conftest.$ac_ext
5ba684e2
NC
13968 LIBS="$am_save_LIBS"
13969 fi
13970
13971fi
81ecdfbb
RW
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13973$as_echo "$am_cv_func_iconv" >&6; }
5ba684e2
NC
13974 if test "$am_cv_func_iconv" = yes; then
13975
81ecdfbb 13976$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5ba684e2
NC
13977
13978 fi
13979 if test "$am_cv_lib_iconv" = yes; then
81ecdfbb
RW
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13981$as_echo_n "checking how to link with libiconv... " >&6; }
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13983$as_echo "$LIBICONV" >&6; }
5ba684e2
NC
13984 else
13985 CPPFLAGS="$am_save_CPPFLAGS"
13986 LIBICONV=
13987 LTLIBICONV=
13988 fi
13989
13990
13991
13992 if test "$am_cv_func_iconv" = yes; then
81ecdfbb
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13994$as_echo_n "checking for iconv declaration... " >&6; }
13995 if test "${am_cv_proto_iconv+set}" = set; then :
13996 $as_echo_n "(cached) " >&6
5ba684e2
NC
13997else
13998
81ecdfbb 13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5ba684e2
NC
14000/* end confdefs.h. */
14001
14002#include <stdlib.h>
14003#include <iconv.h>
14004extern
14005#ifdef __cplusplus
14006"C"
14007#endif
14008#if defined(__STDC__) || defined(__cplusplus)
14009size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14010#else
14011size_t iconv();
14012#endif
14013
14014int
14015main ()
14016{
14017
14018 ;
14019 return 0;
14020}
14021_ACEOF
81ecdfbb 14022if ac_fn_c_try_compile "$LINENO"; then :
5ba684e2
NC
14023 am_cv_proto_iconv_arg1=""
14024else
81ecdfbb 14025 am_cv_proto_iconv_arg1="const"
5ba684e2 14026fi
81ecdfbb 14027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5ba684e2
NC
14028 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14029fi
14030
14031 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
81ecdfbb 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5ba684e2 14033 }$am_cv_proto_iconv" >&5
81ecdfbb
RW
14034$as_echo "${ac_t:-
14035 }$am_cv_proto_iconv" >&6; }
5ba684e2
NC
14036
14037cat >>confdefs.h <<_ACEOF
14038#define ICONV_CONST $am_cv_proto_iconv_arg1
14039_ACEOF
14040
14041 fi
14042
14043
252b5132
RH
14044all_targets=false
14045BUILD_NLMCONV=
14046NLMCONV_DEFS=
14047BUILD_SRCONV=
14048BUILD_DLLTOOL=
14049DLLTOOL_DEFS=
7aad4c3d 14050DLLTOOL_DEFAULT=
252b5132 14051BUILD_WINDRES=
692ed3e7 14052BUILD_WINDMC=
252b5132
RH
14053BUILD_DLLWRAP=
14054BUILD_MISC=
1d97d67f 14055BUILD_INSTALL_MISC=
8b1e6df3 14056OBJDUMP_DEFS=
6abcee90
TG
14057OBJDUMP_PRIVATE_VECTORS=
14058OBJDUMP_PRIVATE_OFILES=
14059od_vectors=
252b5132
RH
14060
14061for targ in $target $canon_targets
14062do
14063 if test "x$targ" = "xall"; then
14064 all_targets=true
14065 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14066 BUILD_SRCONV='$(SRCONV_PROG)'
14067 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
1d97d67f 14068 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
003bc0ba
NC
14069 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14070 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14071 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
14072 if test -z "$DLLTOOL_DEFAULT"; then
14073 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14074 fi
14075 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14076 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
1ab52cbe 14077 od_vectors="$od_vectors objdump_private_desc_xcoff"
252b5132
RH
14078 else
14079 case $targ in
42ecbf5e 14080 i[3-7]86*-*-netware*)
252b5132
RH
14081 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14082 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
14083 ;;
14084 alpha*-*-netware*)
14085 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14086 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
14087 ;;
14088 powerpc*-*-netware*)
14089 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14090 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
14091 ;;
14092 sparc*-*-netware*)
14093 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
14094 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
14095 ;;
14096 esac
6abcee90 14097
252b5132
RH
14098 case $targ in
14099 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
14100 esac
6abcee90 14101
252b5132 14102 case $targ in
a8c548cb
NC
14103 arm-epoc-pe*)
14104 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14105 if test -z "$DLLTOOL_DEFAULT"; then
14106 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_EPOC"
14107 fi
a8c548cb
NC
14108 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
14109 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14110 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
a8c548cb 14111 ;;
361dff73 14112 arm-wince-pe* | arm-*-wince | arm*-*-cegcc* | arm*-*-mingw32ce*)
7148cc28 14113 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14114 if test -z "$DLLTOOL_DEFAULT"; then
14115 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM_WINCE"
14116 fi
7148cc28
NC
14117 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_WINCE -DDLLTOOL_ARM"
14118 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14119 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7148cc28
NC
14120 ;;
14121 arm-*-pe*)
252b5132 14122 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14123 if test -z "$DLLTOOL_DEFAULT"; then
14124 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_ARM"
14125 fi
252b5132
RH
14126 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
14127 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14128 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14129 ;;
ee36d918 14130 x86_64-*-mingw* | x86_64-*-cygwin*)
99ad8390 14131 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14132 if test -z "$DLLTOOL_DEFAULT"; then
14133 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MX86_64"
14134 fi
99ad8390
NC
14135 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MX86_64"
14136 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14137 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
99ad8390
NC
14138 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
14139 ;;
80c7c40a 14140 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132 14141 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14142 if test -z "$DLLTOOL_DEFAULT"; then
14143 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14144 fi
252b5132
RH
14145 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14146 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14147 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
252b5132 14148 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 14149 ;;
80c7c40a 14150 i[3-7]86-*-interix)
7a7b06ef 14151 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
7aad4c3d
L
14152 if test -z "$DLLTOOL_DEFAULT"; then
14153 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_I386"
14154 fi
7a7b06ef
ILT
14155 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
14156 ;;
f0660b73
NC
14157 powerpc*-aix5.[01])
14158 ;;
e5231592 14159 powerpc*-aix[5-9].*)
f0660b73
NC
14160 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
14161 ;;
e1d5b1e7 14162 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132 14163 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14164 if test -z "$DLLTOOL_DEFAULT"; then
14165 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_PPC"
14166 fi
252b5132
RH
14167 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
14168 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14169 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14170 ;;
59678365 14171 powerpc*-*-linux* | powerpc*-*-elf* | powerpc*-*-eabi*)
1ab52cbe
AM
14172 case "$BUILD_INSTALL_MISC" in
14173 *embedspu*) ;;
14174 *) BUILD_INSTALL_MISC="${BUILD_INSTALL_MISC} embedspu"
14175 esac
669a9a2a 14176 ;;
e1d5b1e7 14177 sh*-*-pe)
8a0e0f38 14178 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14179 if test -z "$DLLTOOL_DEFAULT"; then
14180 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_SH"
14181 fi
8a0e0f38
NC
14182 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
14183 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14184 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
8a0e0f38 14185 ;;
cd14b966 14186 spu-*-*)
1d97d67f 14187 BUILD_MISC="${BUILD_MISC} "'bin2c$(EXEEXT_FOR_BUILD)'
cd14b966 14188 ;;
e1d5b1e7 14189 mips*-*-pe)
8a0e0f38 14190 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14191 if test -z "$DLLTOOL_DEFAULT"; then
14192 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MIPS"
14193 fi
8a0e0f38
NC
14194 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
14195 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14196 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14197 ;;
27a710e5 14198 mcore-*-pe)
661016bb 14199 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14200 if test -z "$DLLTOOL_DEFAULT"; then
14201 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE"
14202 fi
661016bb
NC
14203 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
14204 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
692ed3e7 14205 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
7a7b06ef 14206 ;;
27a710e5 14207 mcore-*-elf)
661016bb 14208 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
7aad4c3d
L
14209 if test -z "$DLLTOOL_DEFAULT"; then
14210 DLLTOOL_DEFAULT="-DDLLTOOL_DEFAULT_MCORE_ELF"
14211 fi
661016bb 14212 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 14213 ;;
15ab5209
DB
14214 mep-*)
14215 OBJDUMP_DEFS="-DSKIP_ZEROES=256 -DSKIP_ZEROES_AT_END=0"
14216 ;;
252b5132 14217 esac
6abcee90
TG
14218
14219 # Add objdump private vectors.
14220 case $targ in
6d0cfb9c
DC
14221 avr-*-*)
14222 od_vectors="$od_vectors objdump_private_desc_elf32_avr"
14223 ;;
6abcee90 14224 powerpc-*-aix*)
c5012cd8
TG
14225 od_vectors="$od_vectors objdump_private_desc_xcoff"
14226 ;;
14227 *-*-darwin*)
14228 od_vectors="$od_vectors objdump_private_desc_mach_o"
6abcee90
TG
14229 ;;
14230 esac
252b5132
RH
14231 fi
14232done
14233
6abcee90
TG
14234# Uniq objdump private vector, build objdump target ofiles.
14235od_files=
14236f=""
14237for i in $od_vectors ; do
14238 case " $f " in
14239 *" $i "*) ;;
14240 *)
14241 f="$f $i"
14242 OBJDUMP_PRIVATE_VECTORS="$OBJDUMP_PRIVATE_VECTORS &$i,"
14243 case $i in
6d0cfb9c
DC
14244 objdump_private_desc_elf32_avr)
14245 od_files="$od_files od-elf32_avr" ;;
6abcee90
TG
14246 objdump_private_desc_xcoff)
14247 od_files="$od_files od-xcoff" ;;
c5012cd8
TG
14248 objdump_private_desc_mach_o)
14249 od_files="$od_files od-macho" ;;
6abcee90
TG
14250 *) as_fn_error "*** unknown private vector $i" "$LINENO" 5 ;;
14251 esac
14252 ;;
14253 esac
14254done
14255
14256# Uniq objdump target ofiles
14257f=""
14258for i in $od_files ; do
14259 case " $f " in
14260 *" $i "*) ;;
14261 *)
14262 f="$f $i"
14263 OBJDUMP_PRIVATE_OFILES="$OBJDUMP_PRIVATE_OFILES $i.$objext"
14264 ;;
14265 esac
14266done
14267
7aad4c3d
L
14268DLLTOOL_DEFS="$DLLTOOL_DEFS $DLLTOOL_DEFAULT"
14269
42ecbf5e
DJ
14270if test "${with_windres+set}" = set; then
14271 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
14272fi
14273
692ed3e7
NC
14274if test "${with_windmc+set}" = set; then
14275 BUILD_WINDMC='$(WINDMC_PROG)$(EXEEXT)'
14276fi
14277
6abcee90
TG
14278OBJDUMP_DEFS="${OBJDUMP_DEFS} -DOBJDUMP_PRIVATE_VECTORS=\"${OBJDUMP_PRIVATE_VECTORS}\""
14279
14280
692ed3e7 14281
42ecbf5e
DJ
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
1d97d67f 14293
42ecbf5e
DJ
14294cat >>confdefs.h <<_ACEOF
14295#define TARGET "${target}"
14296_ACEOF
14297
14298
14299targ=$target
14300. $srcdir/../bfd/config.bfd
14301if test "x$targ_underscore" = "xyes"; then
14302 UNDERSCORE=1
14303else
14304 UNDERSCORE=0
14305fi
14306
14307cat >>confdefs.h <<_ACEOF
14308#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
14309_ACEOF
14310
14311
14312# Emulation
52fbfb5d
AM
14313targ=$target
14314. ${srcdir}/configure.tgt
14315EMULATION=$targ_emul
14316EMULATION_VECTOR=$targ_emul_vector
42ecbf5e
DJ
14317
14318
14319
14320
108a6f8e
CD
14321# Required for html and install-html
14322
14323
14324
14325
31dd3154 14326
81ecdfbb 14327ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
da594c4a 14328
42ecbf5e
DJ
14329cat >confcache <<\_ACEOF
14330# This file is a shell script that caches the results of configure
14331# tests run on this system so they can be shared between configure
14332# scripts and configure runs, see configure's option --config-cache.
14333# It is not useful on other systems. If it contains results you don't
14334# want to keep, you may remove or edit it.
14335#
14336# config.status only pays attention to the cache file if you give it
14337# the --recheck option to rerun configure.
14338#
14339# `ac_cv_env_foo' variables (set or unset) will be overridden when
14340# loading this file, other *unset* `ac_cv_foo' will be assigned the
14341# following values.
14342
14343_ACEOF
14344
14345# The following way of writing the cache mishandles newlines in values,
14346# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14347# So, we kill variables containing newlines.
42ecbf5e
DJ
14348# Ultrix sh set writes to stderr and can't be redirected directly,
14349# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14350(
14351 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14352 eval ac_val=\$$ac_var
14353 case $ac_val in #(
14354 *${as_nl}*)
14355 case $ac_var in #(
14356 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14357$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14358 esac
14359 case $ac_var in #(
14360 _ | IFS | as_nl) ;; #(
14361 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14362 *) { eval $ac_var=; unset $ac_var;} ;;
14363 esac ;;
14364 esac
14365 done
14366
42ecbf5e 14367 (set) 2>&1 |
81ecdfbb
RW
14368 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14369 *${as_nl}ac_space=\ *)
14370 # `set' does not quote correctly, so add quotes: double-quote
14371 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
14372 sed -n \
14373 "s/'/'\\\\''/g;
14374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14375 ;; #(
42ecbf5e
DJ
14376 *)
14377 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 14379 ;;
81ecdfbb
RW
14380 esac |
14381 sort
14382) |
42ecbf5e 14383 sed '
81ecdfbb 14384 /^ac_cv_env_/b end
42ecbf5e 14385 t clear
81ecdfbb 14386 :clear
42ecbf5e
DJ
14387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14388 t end
81ecdfbb
RW
14389 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14390 :end' >>confcache
14391if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14392 if test -w "$cache_file"; then
14393 test "x$cache_file" != "x/dev/null" &&
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14395$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
14396 cat confcache >$cache_file
14397 else
81ecdfbb
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14399$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
14400 fi
14401fi
14402rm -f confcache
14403
14404test "x$prefix" = xNONE && prefix=$ac_default_prefix
14405# Let make expand exec_prefix.
14406test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14407
42ecbf5e
DJ
14408DEFS=-DHAVE_CONFIG_H
14409
14410ac_libobjs=
14411ac_ltlibobjs=
14412for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14413 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14414 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14415 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14416 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14417 # will be set to the directory where LIBOBJS objects are built.
14418 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14419 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
14420done
14421LIBOBJS=$ac_libobjs
14422
14423LTLIBOBJS=$ac_ltlibobjs
14424
14425
14426if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
14427 as_fn_error "conditional \"AMDEP\" was never defined.
14428Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
14429fi
14430if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
14431 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14432Usually this means the macro was only invoked conditionally." "$LINENO" 5
14433fi
14434 if test -n "$EXEEXT"; then
14435 am__EXEEXT_TRUE=
14436 am__EXEEXT_FALSE='#'
14437else
14438 am__EXEEXT_TRUE='#'
14439 am__EXEEXT_FALSE=
42ecbf5e 14440fi
81ecdfbb 14441
42ecbf5e 14442if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
14443 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14444Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 14445fi
d5fbea21 14446if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
14447 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14448Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 14449fi
42ecbf5e
DJ
14450
14451: ${CONFIG_STATUS=./config.status}
81ecdfbb 14452ac_write_fail=0
42ecbf5e
DJ
14453ac_clean_files_save=$ac_clean_files
14454ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14455{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14456$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14457as_write_fail=0
14458cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
14459#! $SHELL
14460# Generated by $as_me.
14461# Run this file to recreate the current configuration.
14462# Compiler output produced by configure, useful for debugging
14463# configure, is in config.log if it exists.
14464
14465debug=false
14466ac_cs_recheck=false
14467ac_cs_silent=false
252b5132 14468
81ecdfbb
RW
14469SHELL=\${CONFIG_SHELL-$SHELL}
14470export SHELL
14471_ASEOF
14472cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14473## -------------------- ##
14474## M4sh Initialization. ##
14475## -------------------- ##
252b5132 14476
81ecdfbb
RW
14477# Be more Bourne compatible
14478DUALCASE=1; export DUALCASE # for MKS sh
14479if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
14480 emulate sh
14481 NULLCMD=:
81ecdfbb 14482 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
14483 # is contrary to our usage. Disable this feature.
14484 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14485 setopt NO_GLOB_SUBST
14486else
14487 case `(set -o) 2>/dev/null` in #(
14488 *posix*) :
14489 set -o posix ;; #(
14490 *) :
14491 ;;
14492esac
42ecbf5e 14493fi
252b5132 14494
81ecdfbb
RW
14495
14496as_nl='
14497'
14498export as_nl
14499# Printing a long string crashes Solaris 7 /usr/bin/printf.
14500as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14501as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14502as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14503# Prefer a ksh shell builtin over an external printf program on Solaris,
14504# but without wasting forks for bash or zsh.
14505if test -z "$BASH_VERSION$ZSH_VERSION" \
14506 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14507 as_echo='print -r --'
14508 as_echo_n='print -rn --'
14509elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14510 as_echo='printf %s\n'
14511 as_echo_n='printf %s'
14512else
14513 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14514 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14515 as_echo_n='/usr/ucb/echo -n'
14516 else
14517 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14518 as_echo_n_body='eval
14519 arg=$1;
14520 case $arg in #(
14521 *"$as_nl"*)
14522 expr "X$arg" : "X\\(.*\\)$as_nl";
14523 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14524 esac;
14525 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14526 '
14527 export as_echo_n_body
14528 as_echo_n='sh -c $as_echo_n_body as_echo'
14529 fi
14530 export as_echo_body
14531 as_echo='sh -c $as_echo_body as_echo'
14532fi
14533
14534# The user is always right.
14535if test "${PATH_SEPARATOR+set}" != set; then
14536 PATH_SEPARATOR=:
14537 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14538 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14539 PATH_SEPARATOR=';'
14540 }
42ecbf5e 14541fi
252b5132
RH
14542
14543
81ecdfbb
RW
14544# IFS
14545# We need space, tab and new line, in precisely that order. Quoting is
14546# there to prevent editors from complaining about space-tab.
14547# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14548# splitting by setting IFS to empty value.)
14549IFS=" "" $as_nl"
14550
14551# Find who we are. Look in the path if we contain no directory separator.
14552case $0 in #((
14553 *[\\/]* ) as_myself=$0 ;;
14554 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555for as_dir in $PATH
14556do
14557 IFS=$as_save_IFS
14558 test -z "$as_dir" && as_dir=.
14559 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14560 done
14561IFS=$as_save_IFS
14562
14563 ;;
14564esac
14565# We did not find ourselves, most probably we were run as `sh COMMAND'
14566# in which case we are not to be found in the path.
14567if test "x$as_myself" = x; then
14568 as_myself=$0
14569fi
14570if test ! -f "$as_myself"; then
14571 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14572 exit 1
14573fi
14574
14575# Unset variables that we do not need and which cause bugs (e.g. in
14576# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14577# suppresses any "Segmentation fault" message there. '((' could
14578# trigger a bug in pdksh 5.2.14.
14579for as_var in BASH_ENV ENV MAIL MAILPATH
14580do eval test x\${$as_var+set} = xset \
14581 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14582done
42ecbf5e
DJ
14583PS1='$ '
14584PS2='> '
14585PS4='+ '
252b5132 14586
42ecbf5e 14587# NLS nuisances.
81ecdfbb
RW
14588LC_ALL=C
14589export LC_ALL
14590LANGUAGE=C
14591export LANGUAGE
14592
14593# CDPATH.
14594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14595
14596
14597# as_fn_error ERROR [LINENO LOG_FD]
14598# ---------------------------------
14599# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14600# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14601# script with status $?, using 1 if that was 0.
14602as_fn_error ()
14603{
14604 as_status=$?; test $as_status -eq 0 && as_status=1
14605 if test "$3"; then
14606 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14607 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 14608 fi
81ecdfbb
RW
14609 $as_echo "$as_me: error: $1" >&2
14610 as_fn_exit $as_status
14611} # as_fn_error
14612
14613
14614# as_fn_set_status STATUS
14615# -----------------------
14616# Set $? to STATUS, without forking.
14617as_fn_set_status ()
14618{
14619 return $1
14620} # as_fn_set_status
14621
14622# as_fn_exit STATUS
14623# -----------------
14624# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14625as_fn_exit ()
14626{
14627 set +e
14628 as_fn_set_status $1
14629 exit $1
14630} # as_fn_exit
14631
14632# as_fn_unset VAR
14633# ---------------
14634# Portably unset VAR.
14635as_fn_unset ()
14636{
14637 { eval $1=; unset $1;}
14638}
14639as_unset=as_fn_unset
14640# as_fn_append VAR VALUE
14641# ----------------------
14642# Append the text in VALUE to the end of the definition contained in VAR. Take
14643# advantage of any shell optimizations that allow amortized linear growth over
14644# repeated appends, instead of the typical quadratic growth present in naive
14645# implementations.
14646if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14647 eval 'as_fn_append ()
14648 {
14649 eval $1+=\$2
14650 }'
14651else
14652 as_fn_append ()
14653 {
14654 eval $1=\$$1\$2
14655 }
14656fi # as_fn_append
14657
14658# as_fn_arith ARG...
14659# ------------------
14660# Perform arithmetic evaluation on the ARGs, and store the result in the
14661# global $as_val. Take advantage of shells that can avoid forks. The arguments
14662# must be portable across $(()) and expr.
14663if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14664 eval 'as_fn_arith ()
14665 {
14666 as_val=$(( $* ))
14667 }'
14668else
14669 as_fn_arith ()
14670 {
14671 as_val=`expr "$@" || test $? -eq 1`
14672 }
14673fi # as_fn_arith
14674
252b5132 14675
81ecdfbb
RW
14676if expr a : '\(a\)' >/dev/null 2>&1 &&
14677 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
14678 as_expr=expr
14679else
14680 as_expr=false
14681fi
252b5132 14682
81ecdfbb 14683if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
14684 as_basename=basename
14685else
14686 as_basename=false
14687fi
252b5132 14688
81ecdfbb
RW
14689if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14690 as_dirname=dirname
14691else
14692 as_dirname=false
14693fi
8b1e6df3 14694
81ecdfbb 14695as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
14696$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14697 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14699$as_echo X/"$0" |
14700 sed '/^.*\/\([^/][^/]*\)\/*$/{
14701 s//\1/
14702 q
14703 }
14704 /^X\/\(\/\/\)$/{
14705 s//\1/
14706 q
14707 }
14708 /^X\/\(\/\).*/{
14709 s//\1/
14710 q
14711 }
14712 s/.*/./; q'`
0218d1e4 14713
42ecbf5e
DJ
14714# Avoid depending upon Character Ranges.
14715as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14716as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14717as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14718as_cr_digits='0123456789'
14719as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 14720
81ecdfbb
RW
14721ECHO_C= ECHO_N= ECHO_T=
14722case `echo -n x` in #(((((
14723-n*)
14724 case `echo 'xy\c'` in
14725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14726 xy) ECHO_C='\c';;
14727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14728 ECHO_T=' ';;
14729 esac;;
14730*)
14731 ECHO_N='-n';;
42ecbf5e 14732esac
eb1e0e80 14733
81ecdfbb
RW
14734rm -f conf$$ conf$$.exe conf$$.file
14735if test -d conf$$.dir; then
14736 rm -f conf$$.dir/conf$$.file
d15b04bd 14737else
81ecdfbb
RW
14738 rm -f conf$$.dir
14739 mkdir conf$$.dir 2>/dev/null
42ecbf5e 14740fi
81ecdfbb
RW
14741if (echo >conf$$.file) 2>/dev/null; then
14742 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 14743 as_ln_s='ln -s'
81ecdfbb
RW
14744 # ... but there are two gotchas:
14745 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14746 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14747 # In both cases, we have to default to `cp -p'.
14748 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14749 as_ln_s='cp -p'
14750 elif ln conf$$.file conf$$ 2>/dev/null; then
14751 as_ln_s=ln
14752 else
14753 as_ln_s='cp -p'
252b5132 14754 fi
42ecbf5e
DJ
14755else
14756 as_ln_s='cp -p'
252b5132 14757fi
81ecdfbb
RW
14758rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14759rmdir conf$$.dir 2>/dev/null
14760
14761
14762# as_fn_mkdir_p
14763# -------------
14764# Create "$as_dir" as a directory, including parents if necessary.
14765as_fn_mkdir_p ()
14766{
14767
14768 case $as_dir in #(
14769 -*) as_dir=./$as_dir;;
14770 esac
14771 test -d "$as_dir" || eval $as_mkdir_p || {
14772 as_dirs=
14773 while :; do
14774 case $as_dir in #(
14775 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14776 *) as_qdir=$as_dir;;
14777 esac
14778 as_dirs="'$as_qdir' $as_dirs"
14779 as_dir=`$as_dirname -- "$as_dir" ||
14780$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14781 X"$as_dir" : 'X\(//\)[^/]' \| \
14782 X"$as_dir" : 'X\(//\)$' \| \
14783 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14784$as_echo X"$as_dir" |
14785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14786 s//\1/
14787 q
14788 }
14789 /^X\(\/\/\)[^/].*/{
14790 s//\1/
14791 q
14792 }
14793 /^X\(\/\/\)$/{
14794 s//\1/
14795 q
14796 }
14797 /^X\(\/\).*/{
14798 s//\1/
14799 q
14800 }
14801 s/.*/./; q'`
14802 test -d "$as_dir" && break
14803 done
14804 test -z "$as_dirs" || eval "mkdir $as_dirs"
14805 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14806
252b5132 14807
81ecdfbb 14808} # as_fn_mkdir_p
42ecbf5e 14809if mkdir -p . 2>/dev/null; then
81ecdfbb 14810 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
14811else
14812 test -d ./-p && rmdir ./-p
14813 as_mkdir_p=false
14814fi
81ecdfbb
RW
14815
14816if test -x / >/dev/null 2>&1; then
14817 as_test_x='test -x'
14818else
14819 if ls -dL / >/dev/null 2>&1; then
14820 as_ls_L_option=L
14821 else
14822 as_ls_L_option=
14823 fi
14824 as_test_x='
14825 eval sh -c '\''
14826 if test -d "$1"; then
14827 test -d "$1/.";
14828 else
14829 case $1 in #(
14830 -*)set "./$1";;
14831 esac;
14832 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14833 ???[sx]*):;;*)false;;esac;fi
14834 '\'' sh
14835 '
14836fi
14837as_executable_p=$as_test_x
252b5132 14838
42ecbf5e
DJ
14839# Sed expression to map a string onto a valid CPP name.
14840as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14841
14842# Sed expression to map a string onto a valid variable name.
14843as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14844
14845
42ecbf5e 14846exec 6>&1
81ecdfbb
RW
14847## ----------------------------------- ##
14848## Main body of $CONFIG_STATUS script. ##
14849## ----------------------------------- ##
14850_ASEOF
14851test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42ecbf5e 14852
81ecdfbb
RW
14853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14854# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 14855# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14856# values after options handling.
14857ac_log="
91dc4e0a 14858This file was extended by binutils $as_me 2.25.51, which was
81ecdfbb 14859generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
14860
14861 CONFIG_FILES = $CONFIG_FILES
14862 CONFIG_HEADERS = $CONFIG_HEADERS
14863 CONFIG_LINKS = $CONFIG_LINKS
14864 CONFIG_COMMANDS = $CONFIG_COMMANDS
14865 $ $0 $@
14866
81ecdfbb
RW
14867on `(hostname || uname -n) 2>/dev/null | sed 1q`
14868"
14869
42ecbf5e
DJ
14870_ACEOF
14871
81ecdfbb
RW
14872case $ac_config_files in *"
14873"*) set x $ac_config_files; shift; ac_config_files=$*;;
14874esac
252b5132 14875
81ecdfbb
RW
14876case $ac_config_headers in *"
14877"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14878esac
e5a52504
MM
14879
14880
81ecdfbb
RW
14881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14882# Files that config.status was made for.
14883config_files="$ac_config_files"
14884config_headers="$ac_config_headers"
14885config_commands="$ac_config_commands"
d15b04bd 14886
81ecdfbb 14887_ACEOF
42ecbf5e 14888
81ecdfbb 14889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 14890ac_cs_usage="\
81ecdfbb
RW
14891\`$as_me' instantiates files and other configuration actions
14892from templates according to the current configuration. Unless the files
14893and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 14894
81ecdfbb 14895Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
14896
14897 -h, --help print this help, then exit
81ecdfbb
RW
14898 -V, --version print version number and configuration settings, then exit
14899 -q, --quiet, --silent
14900 do not print progress messages
42ecbf5e
DJ
14901 -d, --debug don't remove temporary files
14902 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14903 --file=FILE[:TEMPLATE]
14904 instantiate the configuration file FILE
14905 --header=FILE[:TEMPLATE]
14906 instantiate the configuration header FILE
42ecbf5e
DJ
14907
14908Configuration files:
14909$config_files
14910
14911Configuration headers:
14912$config_headers
14913
14914Configuration commands:
14915$config_commands
14916
81ecdfbb 14917Report bugs to the package provider."
42ecbf5e 14918
81ecdfbb
RW
14919_ACEOF
14920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 14921ac_cs_version="\\
91dc4e0a 14922binutils config.status 2.25.51
81ecdfbb
RW
14923configured by $0, generated by GNU Autoconf 2.64,
14924 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 14925
81ecdfbb 14926Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
14927This config.status script is free software; the Free Software Foundation
14928gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14929
14930ac_pwd='$ac_pwd'
14931srcdir='$srcdir'
14932INSTALL='$INSTALL'
14933MKDIR_P='$MKDIR_P'
14934AWK='$AWK'
14935test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
14936_ACEOF
14937
81ecdfbb
RW
14938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14939# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
14940ac_need_defaults=:
14941while test $# != 0
14942do
14943 case $1 in
14944 --*=*)
81ecdfbb
RW
14945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e
DJ
14947 ac_shift=:
14948 ;;
81ecdfbb 14949 *)
42ecbf5e
DJ
14950 ac_option=$1
14951 ac_optarg=$2
14952 ac_shift=shift
14953 ;;
42ecbf5e
DJ
14954 esac
14955
14956 case $ac_option in
14957 # Handling of the options.
42ecbf5e
DJ
14958 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14959 ac_cs_recheck=: ;;
81ecdfbb
RW
14960 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14961 $as_echo "$ac_cs_version"; exit ;;
14962 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
14963 debug=: ;;
14964 --file | --fil | --fi | --f )
14965 $ac_shift
81ecdfbb
RW
14966 case $ac_optarg in
14967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14968 esac
14969 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
14970 ac_need_defaults=false;;
14971 --header | --heade | --head | --hea )
14972 $ac_shift
81ecdfbb
RW
14973 case $ac_optarg in
14974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14975 esac
14976 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 14977 ac_need_defaults=false;;
81ecdfbb
RW
14978 --he | --h)
14979 # Conflict between --help and --header
14980 as_fn_error "ambiguous option: \`$1'
14981Try \`$0 --help' for more information.";;
14982 --help | --hel | -h )
14983 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
14984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14985 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14986 ac_cs_silent=: ;;
14987
14988 # This is an error.
81ecdfbb
RW
14989 -*) as_fn_error "unrecognized option: \`$1'
14990Try \`$0 --help' for more information." ;;
42ecbf5e 14991
81ecdfbb
RW
14992 *) as_fn_append ac_config_targets " $1"
14993 ac_need_defaults=false ;;
42ecbf5e
DJ
14994
14995 esac
14996 shift
14997done
14998
14999ac_configure_extra_args=
15000
15001if $ac_cs_silent; then
15002 exec 6>/dev/null
15003 ac_configure_extra_args="$ac_configure_extra_args --silent"
15004fi
15005
15006_ACEOF
81ecdfbb 15007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 15008if \$ac_cs_recheck; then
81ecdfbb
RW
15009 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15010 shift
15011 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15012 CONFIG_SHELL='$SHELL'
15013 export CONFIG_SHELL
15014 exec "\$@"
42ecbf5e
DJ
15015fi
15016
15017_ACEOF
81ecdfbb
RW
15018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15019exec 5>>config.log
15020{
15021 echo
15022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15023## Running $as_me. ##
15024_ASBOX
15025 $as_echo "$ac_log"
15026} >&5
42ecbf5e 15027
81ecdfbb
RW
15028_ACEOF
15029cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d15b04bd 15030#
81ecdfbb 15031# INIT-COMMANDS
d15b04bd 15032#
42ecbf5e 15033AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15034
15035
15036# The HP-UX ksh and POSIX shell print the target directory to stdout
15037# if CDPATH is set.
15038(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15039
15040sed_quote_subst='$sed_quote_subst'
15041double_quote_subst='$double_quote_subst'
15042delay_variable_subst='$delay_variable_subst'
3725885a
RW
15043macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15044macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15045enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15046enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15047pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15048enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15049SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15050ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15051host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15052host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15053host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15054build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15055build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15056build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15057SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15058Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15059GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15060EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15061FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15062LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15063NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15064LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15065max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15066ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15067exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15068lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15069lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15070lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15071reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15072reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15073OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15074deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15075file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15076AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15077AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15078STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15079RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15080old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15081old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15082old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15083lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15084CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15085CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15086compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15087GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15088lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15089lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15090lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15091lt_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"`'
15092objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15093MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15094lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15095lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15096lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15097lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15098lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15099need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15100DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15101NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15102LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15103OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15104OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15105libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15106shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15107extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15108archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15109enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15110export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15111whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15112compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15113old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15114old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15115archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15116archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15117module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15118module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15119with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15120allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15121no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15122hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15123hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15124hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15125hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15126hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15127hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15128hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15129hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15130inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15131link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 15132fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15133always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15134export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15135exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15136include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15137prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15138file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15139variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15140need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15141need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15142version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15143runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15144shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15145shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15146libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15147library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15148soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15149install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15150postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15151postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15152finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15153finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15154hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15155sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15156sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15157hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15158enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15159enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15160enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15161old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15162striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
15163
15164LTCC='$LTCC'
15165LTCFLAGS='$LTCFLAGS'
15166compiler='$compiler_DEFAULT'
15167
3725885a
RW
15168# A function that is used when there is no print builtin or printf.
15169func_fallback_echo ()
15170{
15171 eval 'cat <<_LTECHO_EOF
15172\$1
15173_LTECHO_EOF'
15174}
15175
d7040cdb 15176# Quote evaled strings.
3725885a
RW
15177for var in SHELL \
15178ECHO \
15179SED \
d7040cdb
SE
15180GREP \
15181EGREP \
15182FGREP \
15183LD \
15184NM \
15185LN_S \
15186lt_SP2NL \
15187lt_NL2SP \
15188reload_flag \
718a6fd8 15189OBJDUMP \
d7040cdb
SE
15190deplibs_check_method \
15191file_magic_cmd \
15192AR \
15193AR_FLAGS \
15194STRIP \
15195RANLIB \
15196CC \
15197CFLAGS \
15198compiler \
15199lt_cv_sys_global_symbol_pipe \
15200lt_cv_sys_global_symbol_to_cdecl \
15201lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 15202lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 15203lt_prog_compiler_no_builtin_flag \
df7b86aa 15204lt_prog_compiler_wl \
f2c621e4 15205lt_prog_compiler_pic \
d7040cdb
SE
15206lt_prog_compiler_static \
15207lt_cv_prog_compiler_c_o \
15208need_locks \
718a6fd8
SE
15209DSYMUTIL \
15210NMEDIT \
15211LIPO \
15212OTOOL \
15213OTOOL64 \
d7040cdb
SE
15214shrext_cmds \
15215export_dynamic_flag_spec \
15216whole_archive_flag_spec \
15217compiler_needs_object \
15218with_gnu_ld \
15219allow_undefined_flag \
15220no_undefined_flag \
15221hardcode_libdir_flag_spec \
15222hardcode_libdir_flag_spec_ld \
15223hardcode_libdir_separator \
f2c621e4 15224fix_srcfile_path \
d7040cdb
SE
15225exclude_expsyms \
15226include_expsyms \
15227file_list_spec \
15228variables_saved_for_relink \
15229libname_spec \
15230library_names_spec \
15231soname_spec \
3725885a 15232install_override_mode \
d7040cdb
SE
15233finish_eval \
15234old_striplib \
15235striplib; do
3725885a 15236 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15237 *[\\\\\\\`\\"\\\$]*)
3725885a 15238 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
15239 ;;
15240 *)
15241 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15242 ;;
15243 esac
15244done
15245
15246# Double-quote double-evaled strings.
15247for var in reload_cmds \
15248old_postinstall_cmds \
15249old_postuninstall_cmds \
15250old_archive_cmds \
15251extract_expsyms_cmds \
15252old_archive_from_new_cmds \
15253old_archive_from_expsyms_cmds \
15254archive_cmds \
15255archive_expsym_cmds \
15256module_cmds \
15257module_expsym_cmds \
15258export_symbols_cmds \
15259prelink_cmds \
15260postinstall_cmds \
15261postuninstall_cmds \
15262finish_cmds \
15263sys_lib_search_path_spec \
15264sys_lib_dlsearch_path_spec; do
3725885a 15265 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 15266 *[\\\\\\\`\\"\\\$]*)
3725885a 15267 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
15268 ;;
15269 *)
15270 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15271 ;;
15272 esac
15273done
15274
d7040cdb
SE
15275ac_aux_dir='$ac_aux_dir'
15276xsi_shell='$xsi_shell'
15277lt_shell_append='$lt_shell_append'
15278
15279# See if we are running on zsh, and set the options which allow our
15280# commands through without removal of \ escapes INIT.
15281if test -n "\${ZSH_VERSION+set}" ; then
15282 setopt NO_GLOB_SUBST
15283fi
15284
15285
15286 PACKAGE='$PACKAGE'
15287 VERSION='$VERSION'
15288 TIMESTAMP='$TIMESTAMP'
15289 RM='$RM'
15290 ofile='$ofile'
15291
15292
15293
20e95c23
DJ
15294# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15295 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15296 # from automake.
15297 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15298 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15299 LINGUAS="${LINGUAS-%UNSET%}"
15300
42ecbf5e
DJ
15301
15302_ACEOF
15303
81ecdfbb 15304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 15305
81ecdfbb 15306# Handling of arguments.
42ecbf5e 15307for ac_config_target in $ac_config_targets
252b5132 15308do
81ecdfbb
RW
15309 case $ac_config_target in
15310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15312 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15313 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15314 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15315 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15316 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15317
15318 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
d15b04bd 15319 esac
252b5132
RH
15320done
15321
81ecdfbb 15322
42ecbf5e
DJ
15323# If the user did not use the arguments to specify the items to instantiate,
15324# then the envvar interface is used. Set only those that are not.
15325# We use the long form for the default assignment because of an extremely
15326# bizarre bug on SunOS 4.1.3.
15327if $ac_need_defaults; then
15328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15331fi
15332
15333# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15334# simply because there is no reason against having it here, and in addition,
42ecbf5e 15335# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15336# Hook for its removal unless debugging.
15337# Note that there is a small window in which the directory will not be cleaned:
15338# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
15339$debug ||
15340{
81ecdfbb
RW
15341 tmp=
15342 trap 'exit_status=$?
15343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15344' 0
15345 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 15346}
42ecbf5e 15347# Create a (secure) tmp directory for tmp files.
e5a52504 15348
42ecbf5e 15349{
81ecdfbb 15350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
15351 test -n "$tmp" && test -d "$tmp"
15352} ||
15353{
81ecdfbb
RW
15354 tmp=./conf$$-$RANDOM
15355 (umask 077 && mkdir "$tmp")
15356} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15357
15358# Set up the scripts for CONFIG_FILES section.
15359# No need to generate them if there are no CONFIG_FILES.
15360# This happens for instance with `./config.status config.h'.
15361if test -n "$CONFIG_FILES"; then
15362
15363
15364ac_cr=`echo X | tr X '\015'`
15365# On cygwin, bash can eat \r inside `` if the user requested igncr.
15366# But we know of no other shell where ac_cr would be empty at this
15367# point, so we can use a bashism as a fallback.
15368if test "x$ac_cr" = x; then
15369 eval ac_cr=\$\'\\r\'
15370fi
15371ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15372if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15373 ac_cs_awk_cr='\r'
15374else
15375 ac_cs_awk_cr=$ac_cr
15376fi
15377
15378echo 'BEGIN {' >"$tmp/subs1.awk" &&
15379_ACEOF
15380
15381
15382{
15383 echo "cat >conf$$subs.awk <<_ACEOF" &&
15384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15385 echo "_ACEOF"
15386} >conf$$subs.sh ||
15387 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15388ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15389ac_delim='%!_!# '
15390for ac_last_try in false false false false false :; do
15391 . ./conf$$subs.sh ||
15392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15393
15394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15395 if test $ac_delim_n = $ac_delim_num; then
15396 break
15397 elif $ac_last_try; then
15398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15399 else
15400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15401 fi
15402done
15403rm -f conf$$subs.sh
15404
15405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15406cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15407_ACEOF
15408sed -n '
15409h
15410s/^/S["/; s/!.*/"]=/
15411p
15412g
15413s/^[^!]*!//
15414:repl
15415t repl
15416s/'"$ac_delim"'$//
15417t delim
15418:nl
15419h
15420s/\(.\{148\}\).*/\1/
15421t more1
15422s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15423p
15424n
15425b repl
15426:more1
15427s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15428p
15429g
15430s/.\{148\}//
15431t nl
15432:delim
15433h
15434s/\(.\{148\}\).*/\1/
15435t more2
15436s/["\\]/\\&/g; s/^/"/; s/$/"/
15437p
15438b
15439:more2
15440s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15441p
15442g
15443s/.\{148\}//
15444t delim
15445' <conf$$subs.awk | sed '
15446/^[^""]/{
15447 N
15448 s/\n//
15449}
15450' >>$CONFIG_STATUS || ac_write_fail=1
15451rm -f conf$$subs.awk
15452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453_ACAWK
15454cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15455 for (key in S) S_is_set[key] = 1
15456 FS = "\a"
15457
15458}
42ecbf5e 15459{
81ecdfbb
RW
15460 line = $ 0
15461 nfields = split(line, field, "@")
15462 substed = 0
15463 len = length(field[1])
15464 for (i = 2; i < nfields; i++) {
15465 key = field[i]
15466 keylen = length(key)
15467 if (S_is_set[key]) {
15468 value = S[key]
15469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15470 len += length(value) + length(field[++i])
15471 substed = 1
15472 } else
15473 len += 1 + keylen
15474 }
15475
15476 print line
42ecbf5e
DJ
15477}
15478
81ecdfbb
RW
15479_ACAWK
15480_ACEOF
15481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15484else
15485 cat
15486fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e
DJ
15488_ACEOF
15489
81ecdfbb
RW
15490# VPATH may cause trouble with some makes, so we remove $(srcdir),
15491# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15492# trailing colons and then remove the whole line if VPATH becomes empty
15493# (actually we leave an empty line to preserve line numbers).
15494if test "x$srcdir" = x.; then
15495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15496s/:*\$(srcdir):*/:/
15497s/:*\${srcdir}:*/:/
15498s/:*@srcdir@:*/:/
15499s/^\([^=]*=[ ]*\):*/\1/
15500s/:*$//
15501s/^[^=]*=[ ]*$//
15502}'
15503fi
e5a52504 15504
81ecdfbb
RW
15505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506fi # test -n "$CONFIG_FILES"
252b5132 15507
81ecdfbb
RW
15508# Set up the scripts for CONFIG_HEADERS section.
15509# No need to generate them if there are no CONFIG_HEADERS.
15510# This happens for instance with `./config.status Makefile'.
15511if test -n "$CONFIG_HEADERS"; then
15512cat >"$tmp/defines.awk" <<\_ACAWK ||
15513BEGIN {
42ecbf5e
DJ
15514_ACEOF
15515
81ecdfbb
RW
15516# Transform confdefs.h into an awk script `defines.awk', embedded as
15517# here-document in config.status, that substitutes the proper values into
15518# config.h.in to produce config.h.
15519
15520# Create a delimiter string that does not exist in confdefs.h, to ease
15521# handling of long lines.
15522ac_delim='%!_!# '
15523for ac_last_try in false false :; do
15524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15525 if test -z "$ac_t"; then
15526 break
15527 elif $ac_last_try; then
15528 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15529 else
15530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
252b5132 15531 fi
81ecdfbb 15532done
252b5132 15533
81ecdfbb
RW
15534# For the awk script, D is an array of macro values keyed by name,
15535# likewise P contains macro parameters if any. Preserve backslash
15536# newline sequences.
15537
15538ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15539sed -n '
15540s/.\{148\}/&'"$ac_delim"'/g
15541t rset
15542:rset
15543s/^[ ]*#[ ]*define[ ][ ]*/ /
15544t def
15545d
15546:def
15547s/\\$//
15548t bsnl
15549s/["\\]/\\&/g
15550s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15551D["\1"]=" \3"/p
15552s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15553d
15554:bsnl
15555s/["\\]/\\&/g
15556s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15557D["\1"]=" \3\\\\\\n"\\/p
15558t cont
15559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15560t cont
15561d
15562:cont
15563n
15564s/.\{148\}/&'"$ac_delim"'/g
15565t clear
15566:clear
15567s/\\$//
15568t bsnlc
15569s/["\\]/\\&/g; s/^/"/; s/$/"/p
15570d
15571:bsnlc
15572s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15573b cont
15574' <confdefs.h | sed '
15575s/'"$ac_delim"'/"\\\
15576"/g' >>$CONFIG_STATUS || ac_write_fail=1
15577
15578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15579 for (key in D) D_is_set[key] = 1
15580 FS = "\a"
15581}
15582/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15583 line = \$ 0
15584 split(line, arg, " ")
15585 if (arg[1] == "#") {
15586 defundef = arg[2]
15587 mac1 = arg[3]
15588 } else {
15589 defundef = substr(arg[1], 2)
15590 mac1 = arg[2]
15591 }
15592 split(mac1, mac2, "(") #)
15593 macro = mac2[1]
15594 prefix = substr(line, 1, index(line, defundef) - 1)
15595 if (D_is_set[macro]) {
15596 # Preserve the white space surrounding the "#".
15597 print prefix "define", macro P[macro] D[macro]
15598 next
15599 } else {
15600 # Replace #undef with comments. This is necessary, for example,
15601 # in the case of _POSIX_SOURCE, which is predefined and required
15602 # on some systems where configure will not decide to define it.
15603 if (defundef == "undef") {
15604 print "/*", prefix defundef, macro, "*/"
15605 next
15606 }
15607 }
15608}
15609{ print }
15610_ACAWK
42ecbf5e 15611_ACEOF
81ecdfbb
RW
15612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15613 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15614fi # test -n "$CONFIG_HEADERS"
15615
15616
15617eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15618shift
15619for ac_tag
15620do
15621 case $ac_tag in
15622 :[FHLC]) ac_mode=$ac_tag; continue;;
15623 esac
15624 case $ac_mode$ac_tag in
15625 :[FHL]*:*);;
15626 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15627 :[FH]-) ac_tag=-:-;;
15628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15629 esac
15630 ac_save_IFS=$IFS
15631 IFS=:
15632 set x $ac_tag
15633 IFS=$ac_save_IFS
15634 shift
15635 ac_file=$1
15636 shift
15637
15638 case $ac_mode in
15639 :L) ac_source=$1;;
15640 :[FH])
15641 ac_file_inputs=
15642 for ac_f
15643 do
15644 case $ac_f in
15645 -) ac_f="$tmp/stdin";;
15646 *) # Look for the file first in the build tree, then in the source tree
15647 # (if the path is not absolute). The absolute path cannot be DOS-style,
15648 # because $ac_f cannot contain `:'.
15649 test -f "$ac_f" ||
15650 case $ac_f in
15651 [\\/$]*) false;;
15652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15653 esac ||
15654 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15655 esac
15656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15657 as_fn_append ac_file_inputs " '$ac_f'"
15658 done
15659
15660 # Let's still pretend it is `configure' which instantiates (i.e., don't
15661 # use $as_me), people would be surprised to read:
15662 # /* config.h. Generated by config.status. */
15663 configure_input='Generated from '`
15664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15665 `' by configure.'
15666 if test x"$ac_file" != x-; then
15667 configure_input="$ac_file. $configure_input"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15669$as_echo "$as_me: creating $ac_file" >&6;}
15670 fi
15671 # Neutralize special characters interpreted by sed in replacement strings.
15672 case $configure_input in #(
15673 *\&* | *\|* | *\\* )
15674 ac_sed_conf_input=`$as_echo "$configure_input" |
15675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15676 *) ac_sed_conf_input=$configure_input;;
15677 esac
15678
15679 case $ac_tag in
15680 *:-:* | *:-) cat >"$tmp/stdin" \
15681 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15682 esac
15683 ;;
252b5132
RH
15684 esac
15685
81ecdfbb 15686 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
15687$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15688 X"$ac_file" : 'X\(//\)[^/]' \| \
15689 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15691$as_echo X"$ac_file" |
15692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15693 s//\1/
15694 q
15695 }
15696 /^X\(\/\/\)[^/].*/{
15697 s//\1/
15698 q
15699 }
15700 /^X\(\/\/\)$/{
15701 s//\1/
15702 q
15703 }
15704 /^X\(\/\).*/{
15705 s//\1/
15706 q
15707 }
15708 s/.*/./; q'`
15709 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e 15710 ac_builddir=.
e5a52504 15711
81ecdfbb
RW
15712case "$ac_dir" in
15713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15714*)
15715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15716 # A ".." for each directory in $ac_dir_suffix.
15717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15718 case $ac_top_builddir_sub in
15719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15721 esac ;;
15722esac
15723ac_abs_top_builddir=$ac_pwd
15724ac_abs_builddir=$ac_pwd$ac_dir_suffix
15725# for backward compatibility:
15726ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
15727
15728case $srcdir in
81ecdfbb 15729 .) # We are building in place.
42ecbf5e 15730 ac_srcdir=.
81ecdfbb
RW
15731 ac_top_srcdir=$ac_top_builddir_sub
15732 ac_abs_top_srcdir=$ac_pwd ;;
15733 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 15734 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15735 ac_top_srcdir=$srcdir
15736 ac_abs_top_srcdir=$srcdir ;;
15737 *) # Relative name.
15738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15739 ac_top_srcdir=$ac_top_build_prefix$srcdir
15740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 15741esac
81ecdfbb 15742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15743
e5a52504 15744
81ecdfbb
RW
15745 case $ac_mode in
15746 :F)
15747 #
15748 # CONFIG_FILE
15749 #
42ecbf5e
DJ
15750
15751 case $INSTALL in
15752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
15753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15754 esac
15755 ac_MKDIR_P=$MKDIR_P
15756 case $MKDIR_P in
15757 [\\/$]* | ?:[\\/]* ) ;;
15758 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 15759 esac
81ecdfbb 15760_ACEOF
e5a52504 15761
81ecdfbb
RW
15762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15763# If the template does not know about datarootdir, expand it.
15764# FIXME: This hack should be removed a few years after 2.60.
15765ac_datarootdir_hack=; ac_datarootdir_seen=
15766ac_sed_dataroot='
15767/datarootdir/ {
15768 p
15769 q
15770}
15771/@datadir@/p
15772/@docdir@/p
15773/@infodir@/p
15774/@localedir@/p
15775/@mandir@/p'
15776case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15777*datarootdir*) ac_datarootdir_seen=yes;;
15778*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15780$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15781_ACEOF
15782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15783 ac_datarootdir_hack='
15784 s&@datadir@&$datadir&g
15785 s&@docdir@&$docdir&g
15786 s&@infodir@&$infodir&g
15787 s&@localedir@&$localedir&g
15788 s&@mandir@&$mandir&g
15789 s&\\\${datarootdir}&$datarootdir&g' ;;
15790esac
42ecbf5e 15791_ACEOF
81ecdfbb
RW
15792
15793# Neutralize VPATH when `$srcdir' = `.'.
15794# Shell code in configure.ac might set extrasub.
15795# FIXME: do we really want to maintain this feature?
15796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
15798$extrasub
15799_ACEOF
81ecdfbb 15800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
15801:t
15802/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15803s|@configure_input@|$ac_sed_conf_input|;t t
15804s&@top_builddir@&$ac_top_builddir_sub&;t t
15805s&@top_build_prefix@&$ac_top_build_prefix&;t t
15806s&@srcdir@&$ac_srcdir&;t t
15807s&@abs_srcdir@&$ac_abs_srcdir&;t t
15808s&@top_srcdir@&$ac_top_srcdir&;t t
15809s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15810s&@builddir@&$ac_builddir&;t t
15811s&@abs_builddir@&$ac_abs_builddir&;t t
15812s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15813s&@INSTALL@&$ac_INSTALL&;t t
15814s&@MKDIR_P@&$ac_MKDIR_P&;t t
15815$ac_datarootdir_hack
15816"
15817eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15818 || as_fn_error "could not create $ac_file" "$LINENO" 5
15819
15820test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15821 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15822 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15824which seems to be undefined. Please make sure it is defined." >&5
15825$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15826which seems to be undefined. Please make sure it is defined." >&2;}
15827
15828 rm -f "$tmp/stdin"
42ecbf5e 15829 case $ac_file in
81ecdfbb
RW
15830 -) cat "$tmp/out" && rm -f "$tmp/out";;
15831 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15832 esac \
15833 || as_fn_error "could not create $ac_file" "$LINENO" 5
15834 ;;
15835 :H)
15836 #
15837 # CONFIG_HEADER
15838 #
42ecbf5e 15839 if test x"$ac_file" != x-; then
81ecdfbb
RW
15840 {
15841 $as_echo "/* $configure_input */" \
15842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15843 } >"$tmp/config.h" \
15844 || as_fn_error "could not create $ac_file" "$LINENO" 5
15845 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15847$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 15848 else
81ecdfbb
RW
15849 rm -f "$ac_file"
15850 mv "$tmp/config.h" "$ac_file" \
15851 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 15852 fi
42ecbf5e 15853 else
81ecdfbb
RW
15854 $as_echo "/* $configure_input */" \
15855 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15856 || as_fn_error "could not create -" "$LINENO" 5
252b5132 15857 fi
81ecdfbb
RW
15858# Compute "$ac_file"'s index in $config_headers.
15859_am_arg="$ac_file"
42ecbf5e
DJ
15860_am_stamp_count=1
15861for _am_header in $config_headers :; do
15862 case $_am_header in
81ecdfbb 15863 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
15864 break ;;
15865 * )
15866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15867 esac
15868done
81ecdfbb
RW
15869echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15870$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15871 X"$_am_arg" : 'X\(//\)[^/]' \| \
15872 X"$_am_arg" : 'X\(//\)$' \| \
15873 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15874$as_echo X"$_am_arg" |
15875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15876 s//\1/
15877 q
15878 }
15879 /^X\(\/\/\)[^/].*/{
15880 s//\1/
15881 q
15882 }
15883 /^X\(\/\/\)$/{
15884 s//\1/
15885 q
15886 }
15887 /^X\(\/\).*/{
15888 s//\1/
15889 q
15890 }
15891 s/.*/./; q'`/stamp-h$_am_stamp_count
15892 ;;
42ecbf5e 15893
81ecdfbb
RW
15894 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15895$as_echo "$as_me: executing $ac_file commands" >&6;}
15896 ;;
15897 esac
e5a52504 15898
42ecbf5e 15899
81ecdfbb
RW
15900 case $ac_file$ac_mode in
15901 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15902 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15903 # are listed without --file. Let's play safe and only enable the eval
15904 # if we detect the quoting.
15905 case $CONFIG_FILES in
15906 *\'*) eval set x "$CONFIG_FILES" ;;
15907 *) set x $CONFIG_FILES ;;
15908 esac
15909 shift
15910 for mf
15911 do
15912 # Strip MF so we end up with the name of the file.
15913 mf=`echo "$mf" | sed -e 's/:.*$//'`
15914 # Check whether this is an Automake generated Makefile or not.
15915 # We used to match only the files named `Makefile.in', but
15916 # some people rename them; so instead we look at the file content.
15917 # Grep'ing the first line is not enough: some people post-process
15918 # each Makefile.in and add a new line on top of each file to say so.
15919 # Grep'ing the whole file is not good either: AIX grep has a line
15920 # limit of 2048, but all sed's we know have understand at least 4000.
15921 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15922 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
15923$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15924 X"$mf" : 'X\(//\)[^/]' \| \
15925 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
15926 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15927$as_echo X"$mf" |
15928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15929 s//\1/
15930 q
15931 }
15932 /^X\(\/\/\)[^/].*/{
15933 s//\1/
15934 q
15935 }
15936 /^X\(\/\/\)$/{
15937 s//\1/
15938 q
15939 }
15940 /^X\(\/\).*/{
15941 s//\1/
15942 q
15943 }
15944 s/.*/./; q'`
15945 else
15946 continue
15947 fi
15948 # Extract the definition of DEPDIR, am__include, and am__quote
15949 # from the Makefile without running `make'.
15950 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15951 test -z "$DEPDIR" && continue
15952 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15953 test -z "am__include" && continue
15954 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15955 # When using ansi2knr, U may be empty or an underscore; expand it
15956 U=`sed -n 's/^U = //p' < "$mf"`
15957 # Find all dependency output files, they are included files with
15958 # $(DEPDIR) in their names. We invoke sed twice because it is the
15959 # simplest approach to changing $(DEPDIR) to its actual value in the
15960 # expansion.
15961 for file in `sed -n "
15962 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15963 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15964 # Make sure the directory exists.
15965 test -f "$dirpart/$file" && continue
15966 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
15967$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15968 X"$file" : 'X\(//\)[^/]' \| \
15969 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
15970 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15971$as_echo X"$file" |
15972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15973 s//\1/
15974 q
15975 }
15976 /^X\(\/\/\)[^/].*/{
15977 s//\1/
15978 q
15979 }
15980 /^X\(\/\/\)$/{
15981 s//\1/
15982 q
15983 }
15984 /^X\(\/\).*/{
15985 s//\1/
15986 q
15987 }
15988 s/.*/./; q'`
15989 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15990 # echo "creating $dirpart/$file"
15991 echo '# dummy' > "$dirpart/$file"
42ecbf5e 15992 done
42ecbf5e 15993 done
81ecdfbb 15994}
d7040cdb 15995 ;;
81ecdfbb 15996 "libtool":C)
d7040cdb
SE
15997
15998 # See if we are running on zsh, and set the options which allow our
15999 # commands through without removal of \ escapes.
16000 if test -n "${ZSH_VERSION+set}" ; then
16001 setopt NO_GLOB_SUBST
16002 fi
16003
16004 cfgfile="${ofile}T"
16005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16006 $RM "$cfgfile"
16007
16008 cat <<_LT_EOF >> "$cfgfile"
16009#! $SHELL
16010
16011# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16012# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16013# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16014# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16015#
718a6fd8 16016# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16017# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16018# Written by Gordon Matzigkeit, 1996
d7040cdb 16019#
718a6fd8 16020# This file is part of GNU Libtool.
d7040cdb 16021#
718a6fd8
SE
16022# GNU Libtool is free software; you can redistribute it and/or
16023# modify it under the terms of the GNU General Public License as
16024# published by the Free Software Foundation; either version 2 of
16025# the License, or (at your option) any later version.
d7040cdb 16026#
718a6fd8
SE
16027# As a special exception to the GNU General Public License,
16028# if you distribute this file as part of a program or library that
16029# is built using GNU Libtool, you may include this file under the
16030# same distribution terms that you use for the rest of that program.
d7040cdb 16031#
718a6fd8
SE
16032# GNU Libtool is distributed in the hope that it will be useful,
16033# but WITHOUT ANY WARRANTY; without even the implied warranty of
16034# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16035# GNU General Public License for more details.
d7040cdb 16036#
718a6fd8
SE
16037# You should have received a copy of the GNU General Public License
16038# along with GNU Libtool; see the file COPYING. If not, a copy
16039# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16040# obtained by writing to the Free Software Foundation, Inc.,
16041# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16042
16043
16044# The names of the tagged configurations supported by this script.
16045available_tags=""
16046
16047# ### BEGIN LIBTOOL CONFIG
16048
16049# Which release of libtool.m4 was used?
16050macro_version=$macro_version
16051macro_revision=$macro_revision
16052
16053# Whether or not to build shared libraries.
16054build_libtool_libs=$enable_shared
16055
16056# Whether or not to build static libraries.
16057build_old_libs=$enable_static
16058
16059# What type of objects to build.
16060pic_mode=$pic_mode
16061
16062# Whether or not to optimize for fast installation.
16063fast_install=$enable_fast_install
16064
3725885a
RW
16065# Shell to use when invoking shell scripts.
16066SHELL=$lt_SHELL
16067
16068# An echo program that protects backslashes.
16069ECHO=$lt_ECHO
16070
d7040cdb
SE
16071# The host system.
16072host_alias=$host_alias
16073host=$host
16074host_os=$host_os
16075
16076# The build system.
16077build_alias=$build_alias
16078build=$build
16079build_os=$build_os
16080
16081# A sed program that does not truncate output.
16082SED=$lt_SED
16083
16084# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16085Xsed="\$SED -e 1s/^X//"
16086
16087# A grep program that handles long lines.
16088GREP=$lt_GREP
16089
16090# An ERE matcher.
16091EGREP=$lt_EGREP
16092
16093# A literal string matcher.
16094FGREP=$lt_FGREP
16095
16096# A BSD- or MS-compatible name lister.
16097NM=$lt_NM
16098
16099# Whether we need soft or hard links.
16100LN_S=$lt_LN_S
16101
16102# What is the maximum length of a command?
16103max_cmd_len=$max_cmd_len
16104
16105# Object file suffix (normally "o").
16106objext=$ac_objext
16107
16108# Executable file suffix (normally "").
16109exeext=$exeext
16110
16111# whether the shell understands "unset".
16112lt_unset=$lt_unset
16113
16114# turn spaces into newlines.
16115SP2NL=$lt_lt_SP2NL
16116
16117# turn newlines into spaces.
16118NL2SP=$lt_lt_NL2SP
16119
718a6fd8
SE
16120# An object symbol dumper.
16121OBJDUMP=$lt_OBJDUMP
16122
d7040cdb
SE
16123# Method to check whether dependent libraries are shared objects.
16124deplibs_check_method=$lt_deplibs_check_method
16125
f2c621e4 16126# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
16127file_magic_cmd=$lt_file_magic_cmd
16128
16129# The archiver.
16130AR=$lt_AR
16131AR_FLAGS=$lt_AR_FLAGS
16132
16133# A symbol stripping program.
16134STRIP=$lt_STRIP
16135
16136# Commands used to install an old-style archive.
16137RANLIB=$lt_RANLIB
16138old_postinstall_cmds=$lt_old_postinstall_cmds
16139old_postuninstall_cmds=$lt_old_postuninstall_cmds
16140
3725885a
RW
16141# Whether to use a lock for old archive extraction.
16142lock_old_archive_extraction=$lock_old_archive_extraction
16143
d7040cdb
SE
16144# A C compiler.
16145LTCC=$lt_CC
16146
16147# LTCC compiler flags.
16148LTCFLAGS=$lt_CFLAGS
16149
16150# Take the output of nm and produce a listing of raw symbols and C names.
16151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16152
16153# Transform the output of nm in a proper C declaration.
16154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16155
16156# Transform the output of nm in a C name address pair.
16157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16158
718a6fd8
SE
16159# Transform the output of nm in a C name address pair when lib prefix is needed.
16160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16161
d7040cdb
SE
16162# The name of the directory that contains temporary libtool files.
16163objdir=$objdir
16164
d7040cdb
SE
16165# Used to examine libraries when file_magic_cmd begins with "file".
16166MAGIC_CMD=$MAGIC_CMD
16167
16168# Must we lock files when doing compilation?
16169need_locks=$lt_need_locks
16170
718a6fd8
SE
16171# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16172DSYMUTIL=$lt_DSYMUTIL
16173
16174# Tool to change global to local symbols on Mac OS X.
16175NMEDIT=$lt_NMEDIT
16176
16177# Tool to manipulate fat objects and archives on Mac OS X.
16178LIPO=$lt_LIPO
16179
16180# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16181OTOOL=$lt_OTOOL
16182
16183# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16184OTOOL64=$lt_OTOOL64
16185
d7040cdb
SE
16186# Old archive suffix (normally "a").
16187libext=$libext
16188
16189# Shared library suffix (normally ".so").
16190shrext_cmds=$lt_shrext_cmds
16191
16192# The commands to extract the exported symbol list from a shared archive.
16193extract_expsyms_cmds=$lt_extract_expsyms_cmds
16194
16195# Variables whose values should be saved in libtool wrapper scripts and
16196# restored at link time.
16197variables_saved_for_relink=$lt_variables_saved_for_relink
16198
16199# Do we need the "lib" prefix for modules?
16200need_lib_prefix=$need_lib_prefix
16201
16202# Do we need a version for libraries?
16203need_version=$need_version
16204
16205# Library versioning type.
16206version_type=$version_type
16207
16208# Shared library runtime path variable.
16209runpath_var=$runpath_var
16210
16211# Shared library path variable.
16212shlibpath_var=$shlibpath_var
16213
16214# Is shlibpath searched before the hard-coded library search path?
16215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16216
16217# Format of library name prefix.
16218libname_spec=$lt_libname_spec
16219
16220# List of archive names. First name is the real one, the rest are links.
16221# The last name is the one that the linker finds with -lNAME
16222library_names_spec=$lt_library_names_spec
16223
16224# The coded name of the library, if different from the real name.
16225soname_spec=$lt_soname_spec
16226
3725885a
RW
16227# Permission mode override for installation of shared libraries.
16228install_override_mode=$lt_install_override_mode
16229
d7040cdb
SE
16230# Command to use after installation of a shared archive.
16231postinstall_cmds=$lt_postinstall_cmds
16232
16233# Command to use after uninstallation of a shared archive.
16234postuninstall_cmds=$lt_postuninstall_cmds
16235
16236# Commands used to finish a libtool library installation in a directory.
16237finish_cmds=$lt_finish_cmds
16238
16239# As "finish_cmds", except a single script fragment to be evaled but
16240# not shown.
16241finish_eval=$lt_finish_eval
16242
16243# Whether we should hardcode library paths into libraries.
16244hardcode_into_libs=$hardcode_into_libs
16245
16246# Compile-time system search path for libraries.
16247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16248
16249# Run-time system search path for libraries.
16250sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16251
16252# Whether dlopen is supported.
16253dlopen_support=$enable_dlopen
16254
16255# Whether dlopen of programs is supported.
16256dlopen_self=$enable_dlopen_self
16257
16258# Whether dlopen of statically linked programs is supported.
16259dlopen_self_static=$enable_dlopen_self_static
16260
16261# Commands to strip libraries.
16262old_striplib=$lt_old_striplib
16263striplib=$lt_striplib
16264
16265
16266# The linker used to build libraries.
16267LD=$lt_LD
16268
3725885a
RW
16269# How to create reloadable object files.
16270reload_flag=$lt_reload_flag
16271reload_cmds=$lt_reload_cmds
16272
d7040cdb
SE
16273# Commands used to build an old-style archive.
16274old_archive_cmds=$lt_old_archive_cmds
16275
16276# A language specific compiler.
16277CC=$lt_compiler
16278
16279# Is the compiler the GNU compiler?
16280with_gcc=$GCC
16281
16282# Compiler flag to turn off builtin functions.
16283no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16284
df7b86aa
NC
16285# How to pass a linker flag through the compiler.
16286wl=$lt_lt_prog_compiler_wl
16287
f2c621e4
AS
16288# Additional compiler flags for building library objects.
16289pic_flag=$lt_lt_prog_compiler_pic
16290
d7040cdb
SE
16291# Compiler flag to prevent dynamic linking.
16292link_static_flag=$lt_lt_prog_compiler_static
16293
16294# Does compiler simultaneously support -c and -o options?
16295compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16296
16297# Whether or not to add -lc for building shared libraries.
16298build_libtool_need_lc=$archive_cmds_need_lc
16299
16300# Whether or not to disallow shared libs when runtime libs are static.
16301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16302
16303# Compiler flag to allow reflexive dlopens.
16304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16305
16306# Compiler flag to generate shared objects directly from archives.
16307whole_archive_flag_spec=$lt_whole_archive_flag_spec
16308
16309# Whether the compiler copes with passing no objects directly.
16310compiler_needs_object=$lt_compiler_needs_object
16311
16312# Create an old-style archive from a shared archive.
16313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16314
16315# Create a temporary old-style archive to link instead of a shared archive.
16316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16317
16318# Commands used to build a shared archive.
16319archive_cmds=$lt_archive_cmds
16320archive_expsym_cmds=$lt_archive_expsym_cmds
16321
16322# Commands used to build a loadable module if different from building
16323# a shared archive.
16324module_cmds=$lt_module_cmds
16325module_expsym_cmds=$lt_module_expsym_cmds
16326
16327# Whether we are building with GNU ld or not.
16328with_gnu_ld=$lt_with_gnu_ld
16329
16330# Flag that allows shared libraries with undefined symbols to be built.
16331allow_undefined_flag=$lt_allow_undefined_flag
16332
16333# Flag that enforces no undefined symbols.
16334no_undefined_flag=$lt_no_undefined_flag
16335
16336# Flag to hardcode \$libdir into a binary during linking.
16337# This must work even if \$libdir does not exist
16338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16339
16340# If ld is used when linking, flag to hardcode \$libdir into a binary
16341# during linking. This must work even if \$libdir does not exist.
16342hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16343
16344# Whether we need a single "-rpath" flag with a separated argument.
16345hardcode_libdir_separator=$lt_hardcode_libdir_separator
16346
16347# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16348# DIR into the resulting binary.
16349hardcode_direct=$hardcode_direct
16350
16351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16352# DIR into the resulting binary and the resulting library dependency is
16353# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16354# library is relocated.
16355hardcode_direct_absolute=$hardcode_direct_absolute
16356
16357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16358# into the resulting binary.
16359hardcode_minus_L=$hardcode_minus_L
16360
16361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16362# into the resulting binary.
16363hardcode_shlibpath_var=$hardcode_shlibpath_var
16364
16365# Set to "yes" if building a shared library automatically hardcodes DIR
16366# into the library and all subsequent libraries and executables linked
16367# against it.
16368hardcode_automatic=$hardcode_automatic
16369
16370# Set to yes if linker adds runtime paths of dependent libraries
16371# to runtime path list.
16372inherit_rpath=$inherit_rpath
16373
16374# Whether libtool must link a program against all its dependency libraries.
16375link_all_deplibs=$link_all_deplibs
16376
f2c621e4
AS
16377# Fix the shell variable \$srcfile for the compiler.
16378fix_srcfile_path=$lt_fix_srcfile_path
16379
d7040cdb
SE
16380# Set to "yes" if exported symbols are required.
16381always_export_symbols=$always_export_symbols
16382
16383# The commands to list exported symbols.
16384export_symbols_cmds=$lt_export_symbols_cmds
16385
16386# Symbols that should not be listed in the preloaded symbols.
16387exclude_expsyms=$lt_exclude_expsyms
16388
16389# Symbols that must always be exported.
16390include_expsyms=$lt_include_expsyms
16391
16392# Commands necessary for linking programs (against libraries) with templates.
16393prelink_cmds=$lt_prelink_cmds
16394
16395# Specify filename containing input files.
16396file_list_spec=$lt_file_list_spec
16397
16398# How to hardcode a shared library path into an executable.
16399hardcode_action=$hardcode_action
16400
16401# ### END LIBTOOL CONFIG
16402
16403_LT_EOF
16404
16405 case $host_os in
16406 aix3*)
16407 cat <<\_LT_EOF >> "$cfgfile"
16408# AIX sometimes has problems with the GCC collect2 program. For some
16409# reason, if we set the COLLECT_NAMES environment variable, the problems
16410# vanish in a puff of smoke.
16411if test "X${COLLECT_NAMES+set}" != Xset; then
16412 COLLECT_NAMES=
16413 export COLLECT_NAMES
16414fi
16415_LT_EOF
16416 ;;
16417 esac
16418
16419
16420ltmain="$ac_aux_dir/ltmain.sh"
16421
16422
16423 # We use sed instead of cat because bash on DJGPP gets confused if
16424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16425 # text mode, it properly converts lines to CR/LF. This bash problem
16426 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
16427 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16428 || (rm -f "$cfgfile"; exit 1)
16429
16430 case $xsi_shell in
16431 yes)
16432 cat << \_LT_EOF >> "$cfgfile"
16433
16434# func_dirname file append nondir_replacement
16435# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16436# otherwise set result to NONDIR_REPLACEMENT.
16437func_dirname ()
16438{
16439 case ${1} in
16440 */*) func_dirname_result="${1%/*}${2}" ;;
16441 * ) func_dirname_result="${3}" ;;
16442 esac
16443}
16444
16445# func_basename file
16446func_basename ()
16447{
16448 func_basename_result="${1##*/}"
16449}
16450
16451# func_dirname_and_basename file append nondir_replacement
16452# perform func_basename and func_dirname in a single function
16453# call:
16454# dirname: Compute the dirname of FILE. If nonempty,
16455# add APPEND to the result, otherwise set result
16456# to NONDIR_REPLACEMENT.
16457# value returned in "$func_dirname_result"
16458# basename: Compute filename of FILE.
16459# value retuned in "$func_basename_result"
16460# Implementation must be kept synchronized with func_dirname
16461# and func_basename. For efficiency, we do not delegate to
16462# those functions but instead duplicate the functionality here.
16463func_dirname_and_basename ()
16464{
16465 case ${1} in
16466 */*) func_dirname_result="${1%/*}${2}" ;;
16467 * ) func_dirname_result="${3}" ;;
16468 esac
16469 func_basename_result="${1##*/}"
16470}
16471
16472# func_stripname prefix suffix name
16473# strip PREFIX and SUFFIX off of NAME.
16474# PREFIX and SUFFIX must not contain globbing or regex special
16475# characters, hashes, percent signs, but SUFFIX may contain a leading
16476# dot (in which case that matches only a dot).
16477func_stripname ()
16478{
16479 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16480 # positional parameters, so assign one to ordinary parameter first.
16481 func_stripname_result=${3}
16482 func_stripname_result=${func_stripname_result#"${1}"}
16483 func_stripname_result=${func_stripname_result%"${2}"}
16484}
16485
16486# func_opt_split
16487func_opt_split ()
16488{
16489 func_opt_split_opt=${1%%=*}
16490 func_opt_split_arg=${1#*=}
16491}
16492
16493# func_lo2o object
16494func_lo2o ()
16495{
16496 case ${1} in
16497 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16498 *) func_lo2o_result=${1} ;;
16499 esac
16500}
16501
16502# func_xform libobj-or-source
16503func_xform ()
16504{
16505 func_xform_result=${1%.*}.lo
16506}
16507
16508# func_arith arithmetic-term...
16509func_arith ()
16510{
16511 func_arith_result=$(( $* ))
16512}
16513
16514# func_len string
16515# STRING may not start with a hyphen.
16516func_len ()
16517{
16518 func_len_result=${#1}
16519}
16520
16521_LT_EOF
16522 ;;
16523 *) # Bourne compatible functions.
16524 cat << \_LT_EOF >> "$cfgfile"
16525
16526# func_dirname file append nondir_replacement
16527# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16528# otherwise set result to NONDIR_REPLACEMENT.
16529func_dirname ()
16530{
16531 # Extract subdirectory from the argument.
16532 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16533 if test "X$func_dirname_result" = "X${1}"; then
16534 func_dirname_result="${3}"
16535 else
16536 func_dirname_result="$func_dirname_result${2}"
16537 fi
16538}
16539
16540# func_basename file
16541func_basename ()
16542{
16543 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16544}
16545
16546
16547# func_stripname prefix suffix name
16548# strip PREFIX and SUFFIX off of NAME.
16549# PREFIX and SUFFIX must not contain globbing or regex special
16550# characters, hashes, percent signs, but SUFFIX may contain a leading
16551# dot (in which case that matches only a dot).
16552# func_strip_suffix prefix name
16553func_stripname ()
16554{
16555 case ${2} in
16556 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16557 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16558 esac
16559}
16560
16561# sed scripts:
16562my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16563my_sed_long_arg='1s/^-[^=]*=//'
16564
16565# func_opt_split
16566func_opt_split ()
16567{
16568 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16569 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16570}
16571
16572# func_lo2o object
16573func_lo2o ()
16574{
16575 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16576}
16577
16578# func_xform libobj-or-source
16579func_xform ()
16580{
16581 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16582}
16583
16584# func_arith arithmetic-term...
16585func_arith ()
16586{
16587 func_arith_result=`expr "$@"`
16588}
16589
16590# func_len string
16591# STRING may not start with a hyphen.
16592func_len ()
16593{
16594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16595}
16596
16597_LT_EOF
16598esac
16599
16600case $lt_shell_append in
16601 yes)
16602 cat << \_LT_EOF >> "$cfgfile"
16603
16604# func_append var value
16605# Append VALUE to the end of shell variable VAR.
16606func_append ()
16607{
16608 eval "$1+=\$2"
16609}
16610_LT_EOF
16611 ;;
16612 *)
16613 cat << \_LT_EOF >> "$cfgfile"
16614
16615# func_append var value
16616# Append VALUE to the end of shell variable VAR.
16617func_append ()
16618{
16619 eval "$1=\$$1\$2"
16620}
16621
16622_LT_EOF
16623 ;;
16624 esac
16625
16626
16627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16628 || (rm -f "$cfgfile"; exit 1)
16629
16630 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
16631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16632 chmod +x "$ofile"
16633
42ecbf5e 16634 ;;
81ecdfbb 16635 "default-1":C)
20e95c23
DJ
16636 for ac_file in $CONFIG_FILES; do
16637 # Support "outfile[:infile[:infile...]]"
16638 case "$ac_file" in
16639 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16640 esac
16641 # PO directories have a Makefile.in generated from Makefile.in.in.
16642 case "$ac_file" in */Makefile.in)
16643 # Adjust a relative srcdir.
16644 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 16645 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
16646 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16647 # In autoconf-2.13 it is called $ac_given_srcdir.
16648 # In autoconf-2.50 it is called $srcdir.
16649 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16650 case "$ac_given_srcdir" in
16651 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16652 /*) top_srcdir="$ac_given_srcdir" ;;
16653 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16654 esac
16655 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16656 rm -f "$ac_dir/POTFILES"
16657 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16658 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16659 POMAKEFILEDEPS="POTFILES.in"
16660 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16661 # on $ac_dir but don't depend on user-specified configuration
16662 # parameters.
16663 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16664 # The LINGUAS file contains the set of available languages.
16665 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16666 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16667 fi
16668 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16669 # Hide the ALL_LINGUAS assigment from automake.
16670 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16671 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16672 else
16673 # The set of available languages was given in configure.in.
16674 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16675 fi
16676 case "$ac_given_srcdir" in
16677 .) srcdirpre= ;;
16678 *) srcdirpre='$(srcdir)/' ;;
16679 esac
16680 POFILES=
16681 GMOFILES=
16682 UPDATEPOFILES=
16683 DUMMYPOFILES=
16684 for lang in $ALL_LINGUAS; do
16685 POFILES="$POFILES $srcdirpre$lang.po"
16686 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16687 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16688 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16689 done
16690 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16691 # environment variable.
16692 INST_LINGUAS=
16693 if test -n "$ALL_LINGUAS"; then
16694 for presentlang in $ALL_LINGUAS; do
16695 useit=no
16696 if test "%UNSET%" != "$LINGUAS"; then
16697 desiredlanguages="$LINGUAS"
16698 else
16699 desiredlanguages="$ALL_LINGUAS"
16700 fi
16701 for desiredlang in $desiredlanguages; do
16702 # Use the presentlang catalog if desiredlang is
16703 # a. equal to presentlang, or
16704 # b. a variant of presentlang (because in this case,
16705 # presentlang can be used as a fallback for messages
16706 # which are not translated in the desiredlang catalog).
16707 case "$desiredlang" in
16708 "$presentlang"*) useit=yes;;
16709 esac
16710 done
16711 if test $useit = yes; then
16712 INST_LINGUAS="$INST_LINGUAS $presentlang"
16713 fi
16714 done
16715 fi
16716 CATALOGS=
16717 if test -n "$INST_LINGUAS"; then
16718 for lang in $INST_LINGUAS; do
16719 CATALOGS="$CATALOGS $lang.gmo"
16720 done
16721 fi
16722 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16723 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"
16724 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16725 if test -f "$f"; then
16726 case "$f" in
16727 *.orig | *.bak | *~) ;;
16728 *) cat "$f" >> "$ac_dir/Makefile" ;;
16729 esac
16730 fi
16731 done
16732 fi
16733 ;;
16734 esac
16735 done ;;
81ecdfbb 16736
42ecbf5e 16737 esac
81ecdfbb 16738done # for ac_tag
e5a52504 16739
42ecbf5e 16740
81ecdfbb 16741as_fn_exit 0
42ecbf5e 16742_ACEOF
42ecbf5e
DJ
16743ac_clean_files=$ac_clean_files_save
16744
81ecdfbb
RW
16745test $ac_write_fail = 0 ||
16746 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16747
42ecbf5e
DJ
16748
16749# configure is writing to config.log, and then calls config.status.
16750# config.status does its own redirection, appending to config.log.
16751# Unfortunately, on DOS this fails, as config.log is still kept open
16752# by configure, so config.status won't be able to write to it; its
16753# output is simply discarded. So we exec the FD to /dev/null,
16754# effectively closing config.log, so it can be properly (re)opened and
16755# appended to by config.status. When coming back to configure, we
16756# need to make the FD available again.
16757if test "$no_create" != yes; then
16758 ac_cs_success=:
16759 ac_config_status_args=
16760 test "$silent" = yes &&
16761 ac_config_status_args="$ac_config_status_args --quiet"
16762 exec 5>/dev/null
16763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16764 exec 5>>config.log
16765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16766 # would make configure fail if this is the last instruction.
81ecdfbb
RW
16767 $ac_cs_success || as_fn_exit $?
16768fi
16769if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16771$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 16772fi
252b5132 16773
This page took 2.065293 seconds and 4 git commands to generate.