enable -Wwrite-strings for gas
[deliverable/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for opcodes 2.26.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
979273e3 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 :
979273e3
NN
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
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
979273e3 31fi
979273e3 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 }
979273e3
NN
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
979273e3
NN
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
979273e3 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."
979273e3 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."
979273e3 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
979273e3 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
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
979273e3
NN
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
979273e3 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
979273e3
NN
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'`
979273e3 418
979273e3
NN
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
979273e3 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 |
979273e3 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
979273e3 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
979273e3 444 t loop
81ecdfbb 445 s/-\n.*//
979273e3 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; }
979273e3
NN
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"
979273e3
NN
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';;
979273e3
NN
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
979273e3 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
979273e3 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 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'
979273e3 491 fi
979273e3
NN
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
979273e3
NN
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
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
979273e3
NN
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
979273e3
NN
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
979273e3
NN
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
979273e3 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
979273e3
NN
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
979273e3
NN
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='opcodes'
558PACKAGE_TARNAME='opcodes'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='opcodes 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
979273e3
NN
563
564ac_unique_file="z8k-dis.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
979273e3
NN
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
979273e3
NN
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
979273e3
NN
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
979273e3
NN
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
979273e3
NN
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
979273e3
NN
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
979273e3 592# include <inttypes.h>
979273e3 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
979273e3
NN
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605BFD_MACHINES
606archdefs
607SHARED_DEPENDENCIES
608SHARED_LIBADD
609SHARED_LDFLAGS
2eee5593
AM
610BUILD_LIB_DEPS
611BUILD_LIBS
81ecdfbb
RW
612LIBM
613cgendir
614CGEN_MAINT_FALSE
615CGEN_MAINT_TRUE
616HDEFINES
617EXEEXT_FOR_BUILD
618CC_FOR_BUILD
619MSGMERGE
620MSGFMT
621MKINSTALLDIRS
622CATOBJEXT
623GENCAT
624INSTOBJEXT
625DATADIRNAME
626CATALOGS
627POSUB
628GMSGFMT
629XGETTEXT
630INCINTL
631LIBINTL_DEP
632LIBINTL
633USE_NLS
634bfdincludedir
635bfdlibdir
636target_noncanonical
637host_noncanonical
638INSTALL_LIBBFD_FALSE
639INSTALL_LIBBFD_TRUE
640MAINT
641MAINTAINER_MODE_FALSE
642MAINTAINER_MODE_TRUE
35d0a169 643NO_WMISSING_FIELD_INITIALIZERS
6757cf57 644WARN_WRITE_STRINGS
81ecdfbb
RW
645NO_WERROR
646WARN_CFLAGS
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
81ecdfbb
RW
652OBJDUMP
653LN_S
654NM
655ac_ct_DUMPBIN
656DUMPBIN
657LD
658FGREP
659SED
660LIBTOOL
661RANLIB
662AR
663EGREP
664GREP
665CPP
666am__fastdepCC_FALSE
667am__fastdepCC_TRUE
668CCDEPMODE
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698OBJEXT
699EXEEXT
700ac_ct_CC
701CPPFLAGS
702LDFLAGS
703CFLAGS
704CC
705target_os
706target_vendor
707target_cpu
708target
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717target_alias
718host_alias
719build_alias
720LIBS
721ECHO_T
722ECHO_N
723ECHO_C
724DEFS
725mandir
726localedir
727libdir
728psdir
729pdfdir
730dvidir
731htmldir
732infodir
733docdir
734oldincludedir
735includedir
736localstatedir
737sharedstatedir
738sysconfdir
739datadir
740datarootdir
741libexecdir
742sbindir
743bindir
744program_transform_name
745prefix
746exec_prefix
747PACKAGE_URL
748PACKAGE_BUGREPORT
749PACKAGE_STRING
750PACKAGE_VERSION
751PACKAGE_TARNAME
752PACKAGE_NAME
753PATH_SEPARATOR
754SHELL'
979273e3 755ac_subst_files=''
81ecdfbb
RW
756ac_user_opts='
757enable_option_checking
758enable_dependency_tracking
759enable_shared
760enable_static
761with_pic
762enable_fast_install
763with_gnu_ld
764enable_libtool_lock
765enable_targets
766enable_werror
767enable_build_warnings
768enable_maintainer_mode
769enable_install_libbfd
770enable_nls
771enable_cgen_maint
772'
773 ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781CPP'
782
252b5132
RH
783
784# Initialize some variables set by options.
979273e3
NN
785ac_init_help=
786ac_init_version=false
81ecdfbb
RW
787ac_unrecognized_opts=
788ac_unrecognized_sep=
252b5132
RH
789# The variables have the same names as the options, with
790# dashes changed to underlines.
979273e3 791cache_file=/dev/null
252b5132 792exec_prefix=NONE
252b5132 793no_create=
252b5132
RH
794no_recursion=
795prefix=NONE
796program_prefix=NONE
797program_suffix=NONE
798program_transform_name=s,x,x,
799silent=
800site=
801srcdir=
252b5132
RH
802verbose=
803x_includes=NONE
804x_libraries=NONE
979273e3
NN
805
806# Installation directory options.
807# These are left unexpanded so users can "make install exec_prefix=/foo"
808# and all the variables that are supposed to be based on exec_prefix
809# by default will actually change.
810# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 811# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
812bindir='${exec_prefix}/bin'
813sbindir='${exec_prefix}/sbin'
814libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
815datarootdir='${prefix}/share'
816datadir='${datarootdir}'
252b5132
RH
817sysconfdir='${prefix}/etc'
818sharedstatedir='${prefix}/com'
819localstatedir='${prefix}/var'
252b5132
RH
820includedir='${prefix}/include'
821oldincludedir='/usr/include'
2e98a7bd 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
823infodir='${datarootdir}/info'
824htmldir='${docdir}'
825dvidir='${docdir}'
826pdfdir='${docdir}'
827psdir='${docdir}'
828libdir='${exec_prefix}/lib'
829localedir='${datarootdir}/locale'
830mandir='${datarootdir}/man'
252b5132 831
252b5132 832ac_prev=
81ecdfbb 833ac_dashdash=
252b5132
RH
834for ac_option
835do
252b5132
RH
836 # If the previous option needs an argument, assign it.
837 if test -n "$ac_prev"; then
81ecdfbb 838 eval $ac_prev=\$ac_option
252b5132
RH
839 ac_prev=
840 continue
841 fi
842
81ecdfbb
RW
843 case $ac_option in
844 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 *) ac_optarg=yes ;;
846 esac
252b5132
RH
847
848 # Accept the important Cygnus configure options, so we can diagnose typos.
849
81ecdfbb
RW
850 case $ac_dashdash$ac_option in
851 --)
852 ac_dashdash=yes ;;
252b5132
RH
853
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 ac_prev=bindir ;;
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 857 bindir=$ac_optarg ;;
252b5132
RH
858
859 -build | --build | --buil | --bui | --bu)
979273e3 860 ac_prev=build_alias ;;
252b5132 861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 862 build_alias=$ac_optarg ;;
252b5132
RH
863
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979273e3
NN
869 cache_file=$ac_optarg ;;
870
871 --config-cache | -C)
872 cache_file=config.cache ;;
252b5132 873
81ecdfbb 874 -datadir | --datadir | --datadi | --datad)
252b5132 875 ac_prev=datadir ;;
81ecdfbb 876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979273e3 877 datadir=$ac_optarg ;;
252b5132 878
81ecdfbb
RW
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
885
252b5132 886 -disable-* | --disable-*)
81ecdfbb 887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 888 # Reject names that are not valid shell variable names.
81ecdfbb
RW
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
894 *"
895"enable_$ac_useropt"
896"*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=no ;;
901
902 -docdir | --docdir | --docdi | --doc | --do)
903 ac_prev=docdir ;;
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 docdir=$ac_optarg ;;
906
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 ac_prev=dvidir ;;
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 dvidir=$ac_optarg ;;
252b5132
RH
911
912 -enable-* | --enable-*)
81ecdfbb 913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 914 # Reject names that are not valid shell variable names.
81ecdfbb
RW
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921"enable_$ac_useropt"
922"*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
252b5132 925 esac
81ecdfbb 926 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
927
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
979273e3 935 exec_prefix=$ac_optarg ;;
252b5132
RH
936
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
939 with_gas=yes ;;
940
979273e3
NN
941 -help | --help | --hel | --he | -h)
942 ac_init_help=long ;;
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
252b5132
RH
947
948 -host | --host | --hos | --ho)
979273e3 949 ac_prev=host_alias ;;
252b5132 950 -host=* | --host=* | --hos=* | --ho=*)
979273e3 951 host_alias=$ac_optarg ;;
252b5132 952
81ecdfbb
RW
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 ac_prev=htmldir ;;
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 | --ht=*)
957 htmldir=$ac_optarg ;;
958
252b5132
RH
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
979273e3 964 includedir=$ac_optarg ;;
252b5132
RH
965
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 ac_prev=infodir ;;
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 969 infodir=$ac_optarg ;;
252b5132
RH
970
971 -libdir | --libdir | --libdi | --libd)
972 ac_prev=libdir ;;
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 974 libdir=$ac_optarg ;;
252b5132
RH
975
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
979273e3 981 libexecdir=$ac_optarg ;;
252b5132 982
81ecdfbb
RW
983 -localedir | --localedir | --localedi | --localed | --locale)
984 ac_prev=localedir ;;
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
987
252b5132 988 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 989 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979273e3 993 localstatedir=$ac_optarg ;;
252b5132
RH
994
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 ac_prev=mandir ;;
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 998 mandir=$ac_optarg ;;
252b5132
RH
999
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1002 with_fp=no ;;
1003
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979273e3 1005 | --no-cr | --no-c | -n)
252b5132
RH
1006 no_create=yes ;;
1007
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 no_recursion=yes ;;
1011
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979273e3 1019 oldincludedir=$ac_optarg ;;
252b5132
RH
1020
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 ac_prev=prefix ;;
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 1024 prefix=$ac_optarg ;;
252b5132
RH
1025
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979273e3 1031 program_prefix=$ac_optarg ;;
252b5132
RH
1032
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979273e3 1038 program_suffix=$ac_optarg ;;
252b5132
RH
1039
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
979273e3 1055 program_transform_name=$ac_optarg ;;
252b5132 1056
81ecdfbb
RW
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 ac_prev=pdfdir ;;
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1061
1062 -psdir | --psdir | --psdi | --psd | --ps)
1063 ac_prev=psdir ;;
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 psdir=$ac_optarg ;;
1066
252b5132
RH
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1069 silent=yes ;;
1070
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 ac_prev=sbindir ;;
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 | --sbi=* | --sb=*)
979273e3 1075 sbindir=$ac_optarg ;;
252b5132
RH
1076
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1080 | --sha | --sh)
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 | --sha=* | --sh=*)
979273e3 1086 sharedstatedir=$ac_optarg ;;
252b5132
RH
1087
1088 -site | --site | --sit)
1089 ac_prev=site ;;
1090 -site=* | --site=* | --sit=*)
979273e3 1091 site=$ac_optarg ;;
1fe1f39c 1092
252b5132
RH
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 ac_prev=srcdir ;;
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 1096 srcdir=$ac_optarg ;;
252b5132
RH
1097
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979273e3 1103 sysconfdir=$ac_optarg ;;
252b5132
RH
1104
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 1106 ac_prev=target_alias ;;
252b5132 1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 1108 target_alias=$ac_optarg ;;
252b5132
RH
1109
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 verbose=yes ;;
1112
979273e3
NN
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
252b5132
RH
1115
1116 -with-* | --with-*)
81ecdfbb 1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1118 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125"with_$ac_useropt"
1126"*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
252b5132 1129 esac
81ecdfbb 1130 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1131
1132 -without-* | --without-*)
81ecdfbb 1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1134 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141"with_$ac_useropt"
1142"*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval with_$ac_useropt=no ;;
252b5132
RH
1147
1148 --x)
1149 # Obsolete; use --with-x.
1150 with_x=yes ;;
1151
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
979273e3 1157 x_includes=$ac_optarg ;;
252b5132
RH
1158
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979273e3 1164 x_libraries=$ac_optarg ;;
252b5132 1165
81ecdfbb
RW
1166 -*) as_fn_error "unrecognized option: \`$ac_option'
1167Try \`$0 --help' for more information."
252b5132
RH
1168 ;;
1169
979273e3
NN
1170 *=*)
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1176 esac
1177 eval $ac_envvar=\$ac_optarg
979273e3
NN
1178 export $ac_envvar ;;
1179
252b5132 1180 *)
979273e3 1181 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
979273e3 1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
979273e3 1185 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1186 ;;
1187
1188 esac
1189done
1190
1191if test -n "$ac_prev"; then
979273e3 1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1193 as_fn_error "missing argument to $ac_option"
252b5132 1194fi
252b5132 1195
81ecdfbb
RW
1196if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1198 no) ;;
1199 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
979273e3 1201 esac
81ecdfbb 1202fi
252b5132 1203
81ecdfbb
RW
1204# Check all directory arguments for consistency.
1205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
252b5132 1209do
81ecdfbb
RW
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1212 case $ac_val in
1213 */ )
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1216 esac
1217 # Be sure to have absolute directory names.
979273e3 1218 case $ac_val in
81ecdfbb
RW
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1221 esac
81ecdfbb 1222 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1223done
1224
979273e3
NN
1225# There might be people who depend on the old broken behavior: `$host'
1226# used to hold the argument of --host etc.
1227# FIXME: To remove some day.
1228build=$build_alias
1229host=$host_alias
1230target=$target_alias
1231
1232# FIXME: To remove some day.
1233if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
81ecdfbb 1236 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
979273e3
NN
1237 If a cross compiler is detected then cross compile mode will be used." >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1239 cross_compiling=yes
1240 fi
1241fi
252b5132 1242
979273e3
NN
1243ac_tool_prefix=
1244test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245
1246test "$silent" = yes && exec 6>/dev/null
252b5132 1247
252b5132 1248
81ecdfbb
RW
1249ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250ac_ls_di=`ls -di .` &&
1251ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error "working directory cannot be determined"
1253test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error "pwd does not report name of working directory"
1255
1256
252b5132
RH
1257# Find the source files, if location was not specified.
1258if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
81ecdfbb
RW
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266$as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)[^/].*/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)$/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\).*/{
1280 s//\1/
1281 q
1282 }
1283 s/.*/./; q'`
252b5132 1284 srcdir=$ac_confdir
81ecdfbb 1285 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1286 srcdir=..
1287 fi
1288else
1289 ac_srcdir_defaulted=no
1290fi
81ecdfbb
RW
1291if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1294fi
1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1298 pwd)`
1299# When building in place, set srcdir=.
1300if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1302fi
1303# Remove unnecessary trailing slashes from srcdir.
1304# Double slashes in file names in object file debugging info
1305# mess up M-x gdb in Emacs.
1306case $srcdir in
1307*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308esac
1309for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314done
252b5132 1315
979273e3
NN
1316#
1317# Report the --help message.
1318#
1319if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
d8bd95ef 1323\`configure' configures opcodes 2.26.51 to adapt to many kinds of systems.
252b5132 1324
979273e3 1325Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1326
979273e3
NN
1327To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1329
979273e3 1330Defaults for the options are specified in brackets.
ac48eca1 1331
979273e3
NN
1332Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342
979273e3
NN
1343Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1345 [$ac_default_prefix]
979273e3 1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1347 [PREFIX]
ac48eca1 1348
979273e3
NN
1349By default, \`make install' will install all the files in
1350\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352for instance \`--prefix=\$HOME'.
ac48eca1 1353
979273e3 1354For better control, use the options below.
ac48eca1 1355
979273e3 1356Fine tuning of the installation directories:
81ecdfbb
RW
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1371 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes]
81ecdfbb
RW
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
979273e3 1376_ACEOF
ac48eca1 1377
979273e3 1378 cat <<\_ACEOF
252b5132 1379
979273e3
NN
1380Program names:
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1384
979273e3
NN
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 --target=TARGET configure for building compilers for TARGET [HOST]
1389_ACEOF
252b5132 1390fi
252b5132 1391
979273e3 1392if test -n "$ac_init_help"; then
2e98a7bd 1393 case $ac_init_help in
d8bd95ef 1394 short | recursive ) echo "Configuration of opcodes 2.26.51:";;
2e98a7bd 1395 esac
979273e3 1396 cat <<\_ACEOF
252b5132 1397
979273e3 1398Optional Features:
81ecdfbb 1399 --disable-option-checking ignore unrecognized --enable/--with options
979273e3
NN
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1402 --disable-dependency-tracking speeds up one-time build
1403 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1404 --enable-shared[=PKGS] build shared libraries [default=no]
1405 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1406 --enable-fast-install[=PKGS]
1407 optimize for fast installation [default=yes]
979273e3
NN
1408 --disable-libtool-lock avoid locking (might break parallel builds)
1409 --enable-targets alternative target configurations
241a6c40
AM
1410 --enable-werror treat compile warnings as errors
1411 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1412 --enable-maintainer-mode enable make rules and dependencies not useful
1413 (and sometimes confusing) to the casual installer
979273e3
NN
1414 --enable-install-libbfd controls installation of libbfd and related headers
1415 --disable-nls do not use Native Language Support
1416 --enable-cgen-maint=dir build cgen generated files
1417
1418Optional Packages:
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1421 --with-pic try to use only PIC/non-PIC objects [default=use
1422 both]
1423 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1424
979273e3
NN
1425Some influential environment variables:
1426 CC C compiler command
1427 CFLAGS C compiler flags
1428 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1429 nonstandard directory <lib dir>
81ecdfbb
RW
1430 LIBS libraries to pass to the linker, e.g. -l<library>
1431 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432 you have headers in a nonstandard directory <include dir>
979273e3 1433 CPP C preprocessor
a2d91340 1434
979273e3
NN
1435Use these variables to override the choices made by `configure' or to help
1436it to find libraries and programs with nonstandard names/locations.
1437
81ecdfbb 1438Report bugs to the package provider.
979273e3 1439_ACEOF
81ecdfbb 1440ac_status=$?
a2d91340
AC
1441fi
1442
979273e3
NN
1443if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
979273e3 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
979273e3
NN
1449 ac_builddir=.
1450
81ecdfbb
RW
1451case "$ac_dir" in
1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453*)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461esac
1462ac_abs_top_builddir=$ac_pwd
1463ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464# for backward compatibility:
1465ac_top_builddir=$ac_top_build_prefix
a2d91340 1466
979273e3 1467case $srcdir in
81ecdfbb 1468 .) # We are building in place.
979273e3 1469 ac_srcdir=.
81ecdfbb
RW
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 1473 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a2d91340 1480esac
81ecdfbb
RW
1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
979273e3 1491 else
81ecdfbb
RW
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
979273e3
NN
1495 done
1496fi
a2d91340 1497
81ecdfbb 1498test -n "$ac_init_help" && exit $ac_status
979273e3
NN
1499if $ac_init_version; then
1500 cat <<\_ACEOF
d8bd95ef 1501opcodes configure 2.26.51
81ecdfbb 1502generated by GNU Autoconf 2.64
252b5132 1503
81ecdfbb 1504Copyright (C) 2009 Free Software Foundation, Inc.
979273e3
NN
1505This configure script is free software; the Free Software Foundation
1506gives unlimited permission to copy, distribute and modify it.
1507_ACEOF
81ecdfbb 1508 exit
979273e3 1509fi
2c73f9d8 1510
81ecdfbb
RW
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
252b5132 1514
81ecdfbb
RW
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542else
1543 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
252b5132 1545
81ecdfbb
RW
1546 ac_retval=1
1547fi
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 return $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_c_try_link LINENO
1554# -----------------------
1555# Try to link conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_link ()
979273e3 1557{
81ecdfbb
RW
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext conftest$ac_exeext
1560 if { { ac_try="$ac_link"
1561case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_link") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest$ac_exeext && {
1579 test "$cross_compiling" = yes ||
1580 $as_test_x conftest$ac_exeext
1581 }; then :
1582 ac_retval=0
1583else
1584 $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
979273e3 1586
81ecdfbb
RW
1587 ac_retval=1
1588fi
1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1591 # interfere with the next link command; also delete a directory that is
1592 # left behind by Apple's compiler. We do this before executing the actions.
1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1595 return $ac_retval
979273e3 1596
81ecdfbb
RW
1597} # ac_fn_c_try_link
1598
1599# ac_fn_c_try_cpp LINENO
1600# ----------------------
1601# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602ac_fn_c_try_cpp ()
1603{
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609esac
1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611$as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } >/dev/null && {
1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 }; then :
1624 ac_retval=0
1625else
1626 $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630fi
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 return $ac_retval
1633
1634} # ac_fn_c_try_cpp
1635
1636# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1637# -------------------------------------------------------
1638# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1639# the include files in INCLUDES and setting the cache variable VAR
1640# accordingly.
1641ac_fn_c_check_header_mongrel ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646$as_echo_n "checking for $2... " >&6; }
1647if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1648 $as_echo_n "(cached) " >&6
1649fi
1650eval ac_res=\$$3
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1652$as_echo "$ac_res" >&6; }
1653else
1654 # Is the header compilable?
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1656$as_echo_n "checking $2 usability... " >&6; }
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h. */
1659$4
1660#include <$2>
1661_ACEOF
1662if ac_fn_c_try_compile "$LINENO"; then :
1663 ac_header_compiler=yes
1664else
1665 ac_header_compiler=no
1666fi
1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1669$as_echo "$ac_header_compiler" >&6; }
1670
1671# Is the header present?
1672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1673$as_echo_n "checking $2 presence... " >&6; }
1674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675/* end confdefs.h. */
1676#include <$2>
1677_ACEOF
1678if ac_fn_c_try_cpp "$LINENO"; then :
1679 ac_header_preproc=yes
1680else
1681 ac_header_preproc=no
1682fi
1683rm -f conftest.err conftest.$ac_ext
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1685$as_echo "$ac_header_preproc" >&6; }
1686
1687# So? What about this header?
1688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689 yes:no: )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1691$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1693$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 ;;
1695 no:yes:* )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1697$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1699$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1701$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1703$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ;;
1707esac
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709$as_echo_n "checking for $2... " >&6; }
1710if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 $as_echo_n "(cached) " >&6
1712else
1713 eval "$3=\$ac_header_compiler"
1714fi
1715eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717$as_echo "$ac_res" >&6; }
1718fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720
1721} # ac_fn_c_check_header_mongrel
1722
1723# ac_fn_c_try_run LINENO
1724# ----------------------
1725# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1726# that executables *can* be run.
1727ac_fn_c_try_run ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { { ac_try="$ac_link"
1731case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734esac
1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736$as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1741 { { case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_try") 2>&5
1748 ac_status=$?
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; }; }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: program exited with status $ac_status" >&5
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=$ac_status
1758fi
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
1762
1763} # ac_fn_c_try_run
1764
1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1766# -------------------------------------------------------
1767# Tests whether HEADER exists and can be compiled using the include files in
1768# INCLUDES, setting the cache variable VAR accordingly.
1769ac_fn_c_check_header_compile ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1776else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h. */
1779$4
1780#include <$2>
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"; then :
1783 eval "$3=yes"
1784else
1785 eval "$3=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793
1794} # ac_fn_c_check_header_compile
1795
1796# ac_fn_c_check_func LINENO FUNC VAR
1797# ----------------------------------
1798# Tests whether FUNC exists, setting the cache variable VAR accordingly
1799ac_fn_c_check_func ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803$as_echo_n "checking for $2... " >&6; }
1804if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1806else
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1811#define $2 innocuous_$2
1812
1813/* System header to define __stub macros and hopefully few prototypes,
1814 which can conflict with char $2 (); below.
1815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1816 <limits.h> exists even on freestanding compilers. */
1817
1818#ifdef __STDC__
1819# include <limits.h>
1820#else
1821# include <assert.h>
1822#endif
1823
1824#undef $2
1825
1826/* Override any GCC internal prototype to avoid an error.
1827 Use char because int might match the return type of a GCC
1828 builtin and then its argument prototype would still apply. */
1829#ifdef __cplusplus
1830extern "C"
1831#endif
1832char $2 ();
1833/* The GNU C library defines this for functions which it implements
1834 to always fail with ENOSYS. Some functions are actually named
1835 something starting with __ and the normal name is an alias. */
1836#if defined __stub_$2 || defined __stub___$2
1837choke me
1838#endif
1839
1840int
1841main ()
1842{
1843return $2 ();
1844 ;
1845 return 0;
1846}
1847_ACEOF
1848if ac_fn_c_try_link "$LINENO"; then :
1849 eval "$3=yes"
1850else
1851 eval "$3=no"
1852fi
1853rm -f core conftest.err conftest.$ac_objext \
1854 conftest$ac_exeext conftest.$ac_ext
1855fi
1856eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858$as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860
1861} # ac_fn_c_check_func
1862
1863# ac_fn_c_check_decl LINENO SYMBOL VAR
1864# ------------------------------------
1865# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1866ac_fn_c_check_decl ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
1869 as_decl_name=`echo $2|sed 's/ *(.*//'`
1870 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1872$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
1873if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874 $as_echo_n "(cached) " >&6
1875else
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878$4
1879int
1880main ()
1881{
360cfc9c
AM
1882#ifndef $as_decl_name
1883#ifdef __cplusplus
1884 (void) $as_decl_use;
1885#else
1886 (void) $as_decl_name;
1887#endif
81ecdfbb
RW
1888#endif
1889
1890 ;
1891 return 0;
1892}
1893_ACEOF
1894if ac_fn_c_try_compile "$LINENO"; then :
1895 eval "$3=yes"
1896else
1897 eval "$3=no"
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906} # ac_fn_c_check_decl
1907cat >config.log <<_ACEOF
1908This file contains any messages produced by compilers while
1909running configure, to aid debugging if configure makes a mistake.
1910
d8bd95ef 1911It was created by opcodes $as_me 2.26.51, which was
81ecdfbb
RW
1912generated by GNU Autoconf 2.64. Invocation command line was
1913
1914 $ $0 $@
1915
1916_ACEOF
1917exec 5>>config.log
1918{
1919cat <<_ASUNAME
1920## --------- ##
1921## Platform. ##
1922## --------- ##
1923
1924hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928uname -v = `(uname -v) 2>/dev/null || echo unknown`
1929
1930/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979273e3
NN
1932
1933/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1936/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
979273e3
NN
1937/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940
1941_ASUNAME
1942
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1948 $as_echo "PATH: $as_dir"
1949 done
1950IFS=$as_save_IFS
252b5132 1951
979273e3 1952} >&5
75798298 1953
979273e3 1954cat >&5 <<_ACEOF
252b5132 1955
252b5132 1956
979273e3
NN
1957## ----------- ##
1958## Core tests. ##
1959## ----------- ##
1960
1961_ACEOF
1962
1963
1964# Keep a trace of the command line.
1965# Strip out --no-create and --no-recursion so they do not pile up.
1966# Strip out --silent because we don't want to record it for future runs.
1967# Also quote any args containing shell meta-characters.
1968# Make two passes to allow for proper duplicate-argument suppression.
1969ac_configure_args=
1970ac_configure_args0=
1971ac_configure_args1=
979273e3
NN
1972ac_must_keep_next=false
1973for ac_pass in 1 2
1974do
1975 for ac_arg
1976 do
1977 case $ac_arg in
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1981 continue ;;
81ecdfbb
RW
1982 *\'*)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
1984 esac
1985 case $ac_pass in
81ecdfbb 1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
979273e3 1987 2)
81ecdfbb 1988 as_fn_append ac_configure_args1 " '$ac_arg'"
979273e3
NN
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1991 else
1992 case $ac_arg in
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1999 esac
2000 ;;
2001 -* ) ac_must_keep_next=true ;;
2002 esac
2003 fi
81ecdfbb 2004 as_fn_append ac_configure_args " '$ac_arg'"
979273e3
NN
2005 ;;
2006 esac
2007 done
2008done
81ecdfbb
RW
2009{ ac_configure_args0=; unset ac_configure_args0;}
2010{ ac_configure_args1=; unset ac_configure_args1;}
979273e3
NN
2011
2012# When interrupted or exit'd, cleanup temporary files, and complete
2013# config.log. We remove comments because anyway the quotes in there
2014# would cause problems or look ugly.
81ecdfbb
RW
2015# WARNING: Use '\'' to represent an apostrophe within the trap.
2016# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
979273e3
NN
2017trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2019 {
2020 echo
2021
2022 cat <<\_ASBOX
2023## ---------------- ##
2024## Cache variables. ##
2025## ---------------- ##
2026_ASBOX
2027 echo
2028 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2029(
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2032 case $ac_val in #(
2033 *${as_nl}*)
2034 case $ac_var in #(
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 esac
2038 case $ac_var in #(
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2042 esac ;;
2043 esac
2044 done
979273e3 2045 (set) 2>&1 |
81ecdfbb
RW
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
979273e3 2048 sed -n \
81ecdfbb
RW
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 ;; #(
979273e3 2052 *)
81ecdfbb 2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 2054 ;;
81ecdfbb
RW
2055 esac |
2056 sort
2057)
979273e3
NN
2058 echo
2059
2060 cat <<\_ASBOX
2061## ----------------- ##
2062## Output variables. ##
2063## ----------------- ##
2064_ASBOX
2065 echo
2066 for ac_var in $ac_subst_vars
2067 do
81ecdfbb
RW
2068 eval ac_val=\$$ac_var
2069 case $ac_val in
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071 esac
2072 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2073 done | sort
2074 echo
2075
2076 if test -n "$ac_subst_files"; then
2077 cat <<\_ASBOX
81ecdfbb
RW
2078## ------------------- ##
2079## File substitutions. ##
2080## ------------------- ##
979273e3
NN
2081_ASBOX
2082 echo
2083 for ac_var in $ac_subst_files
2084 do
81ecdfbb
RW
2085 eval ac_val=\$$ac_var
2086 case $ac_val in
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac
2089 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2090 done | sort
2091 echo
2092 fi
2093
2094 if test -s confdefs.h; then
2095 cat <<\_ASBOX
2096## ----------- ##
2097## confdefs.h. ##
2098## ----------- ##
2099_ASBOX
2100 echo
81ecdfbb 2101 cat confdefs.h
979273e3
NN
2102 echo
2103 fi
2104 test "$ac_signal" != 0 &&
81ecdfbb
RW
2105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
979273e3 2107 } >&5
81ecdfbb
RW
2108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
979273e3 2110 exit $exit_status
81ecdfbb 2111' 0
979273e3 2112for ac_signal in 1 2 13 15; do
81ecdfbb 2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
979273e3
NN
2114done
2115ac_signal=0
2116
2117# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2118rm -f -r conftest* confdefs.h
2119
2120$as_echo "/* confdefs.h */" > confdefs.h
979273e3
NN
2121
2122# Predefined preprocessor variables.
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_NAME "$PACKAGE_NAME"
2126_ACEOF
2127
979273e3
NN
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130_ACEOF
2131
979273e3
NN
2132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_VERSION "$PACKAGE_VERSION"
2134_ACEOF
2135
979273e3
NN
2136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_STRING "$PACKAGE_STRING"
2138_ACEOF
2139
979273e3
NN
2140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142_ACEOF
2143
81ecdfbb
RW
2144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_URL "$PACKAGE_URL"
2146_ACEOF
2147
979273e3
NN
2148
2149# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2150# Prefer an explicitly selected file to automatically selected ones.
2151ac_site_file1=NONE
2152ac_site_file2=NONE
2153if test -n "$CONFIG_SITE"; then
2154 ac_site_file1=$CONFIG_SITE
2155elif test "x$prefix" != xNONE; then
2156 ac_site_file1=$prefix/share/config.site
2157 ac_site_file2=$prefix/etc/config.site
2158else
2159 ac_site_file1=$ac_default_prefix/share/config.site
2160 ac_site_file2=$ac_default_prefix/etc/config.site
2161fi
2162for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163do
2164 test "x$ac_site_file" = xNONE && continue
979273e3 2165 if test -r "$ac_site_file"; then
81ecdfbb
RW
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2167$as_echo "$as_me: loading site script $ac_site_file" >&6;}
979273e3
NN
2168 sed 's/^/| /' "$ac_site_file" >&5
2169 . "$ac_site_file"
2170 fi
2171done
2172
2173if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special
2175 # files actually), so we avoid doing that.
2176 if test -f "$cache_file"; then
81ecdfbb
RW
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178$as_echo "$as_me: loading cache $cache_file" >&6;}
979273e3 2179 case $cache_file in
81ecdfbb
RW
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
979273e3
NN
2182 esac
2183 fi
2184else
81ecdfbb
RW
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186$as_echo "$as_me: creating cache $cache_file" >&6;}
979273e3
NN
2187 >$cache_file
2188fi
2189
2190# Check that the precious variables saved in the cache have kept the same
2191# value.
2192ac_cache_corrupted=false
81ecdfbb 2193for ac_var in $ac_precious_vars; do
979273e3
NN
2194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value
979273e3
NN
2198 case $ac_old_set,$ac_new_set in
2199 set,)
81ecdfbb
RW
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
979273e3
NN
2202 ac_cache_corrupted=: ;;
2203 ,set)
81ecdfbb
RW
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
979273e3
NN
2206 ac_cache_corrupted=: ;;
2207 ,);;
2208 *)
2209 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2210 # differences in whitespace do not lead to failure.
2211 ac_old_val_w=`echo x $ac_old_val`
2212 ac_new_val_w=`echo x $ac_new_val`
2213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 ac_cache_corrupted=:
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220 eval $ac_var=\$ac_old_val
2221 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2223$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2225$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
2226 fi;;
2227 esac
2228 # Pass precious variables to config.status.
2229 if test "$ac_new_set" = set; then
2230 case $ac_new_val in
81ecdfbb 2231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2232 *) ac_arg=$ac_var=$ac_new_val ;;
2233 esac
2234 case " $ac_configure_args " in
2235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
979273e3
NN
2237 esac
2238 fi
2239done
2240if $ac_cache_corrupted; then
81ecdfbb
RW
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
979273e3 2246fi
81ecdfbb
RW
2247## -------------------- ##
2248## Main body of script. ##
2249## -------------------- ##
979273e3
NN
2250
2251ac_ext=c
2252ac_cpp='$CPP $CPPFLAGS'
2253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
2257
2258
979273e3
NN
2259
2260
2261
2262
2263ac_aux_dir=
81ecdfbb
RW
2264for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 for ac_t in install-sh install.sh shtool; do
2266 if test -f "$ac_dir/$ac_t"; then
2267 ac_aux_dir=$ac_dir
2268 ac_install_sh="$ac_aux_dir/$ac_t -c"
2269 break 2
2270 fi
2271 done
979273e3
NN
2272done
2273if test -z "$ac_aux_dir"; then
81ecdfbb 2274 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
979273e3 2275fi
81ecdfbb
RW
2276
2277# These three variables are undocumented and unsupported,
2278# and are intended to be withdrawn in a future Autoconf release.
2279# They can cause serious problems if a builder's source tree is in a directory
2280# whose full name contains unusual characters.
2281ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284
979273e3
NN
2285
2286# Make sure we can run config.sub.
81ecdfbb
RW
2287$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2288 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2289
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2291$as_echo_n "checking build system type... " >&6; }
2292if test "${ac_cv_build+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294else
2295 ac_build_alias=$build_alias
2296test "x$ac_build_alias" = x &&
2297 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2298test "x$ac_build_alias" = x &&
2299 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2300ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2301 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2302
2303fi
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2305$as_echo "$ac_cv_build" >&6; }
2306case $ac_cv_build in
2307*-*-*) ;;
2308*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2309esac
979273e3 2310build=$ac_cv_build
81ecdfbb
RW
2311ac_save_IFS=$IFS; IFS='-'
2312set x $ac_cv_build
2313shift
2314build_cpu=$1
2315build_vendor=$2
2316shift; shift
2317# Remember, the first character of IFS is used to create $*,
2318# except with old shells:
2319build_os=$*
2320IFS=$ac_save_IFS
2321case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2322
2323
81ecdfbb
RW
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2325$as_echo_n "checking host system type... " >&6; }
2326if test "${ac_cv_host+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
979273e3 2328else
81ecdfbb
RW
2329 if test "x$host_alias" = x; then
2330 ac_cv_host=$ac_cv_build
2331else
2332 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2334fi
979273e3
NN
2335
2336fi
81ecdfbb
RW
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2338$as_echo "$ac_cv_host" >&6; }
2339case $ac_cv_host in
2340*-*-*) ;;
2341*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2342esac
979273e3 2343host=$ac_cv_host
81ecdfbb
RW
2344ac_save_IFS=$IFS; IFS='-'
2345set x $ac_cv_host
2346shift
2347host_cpu=$1
2348host_vendor=$2
2349shift; shift
2350# Remember, the first character of IFS is used to create $*,
2351# except with old shells:
2352host_os=$*
2353IFS=$ac_save_IFS
2354case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2355
2356
81ecdfbb
RW
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2358$as_echo_n "checking target system type... " >&6; }
2359if test "${ac_cv_target+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
2361else
2362 if test "x$target_alias" = x; then
2363 ac_cv_target=$ac_cv_host
979273e3 2364else
81ecdfbb
RW
2365 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2366 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2367fi
979273e3
NN
2368
2369fi
81ecdfbb
RW
2370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2371$as_echo "$ac_cv_target" >&6; }
2372case $ac_cv_target in
2373*-*-*) ;;
2374*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2375esac
979273e3 2376target=$ac_cv_target
81ecdfbb
RW
2377ac_save_IFS=$IFS; IFS='-'
2378set x $ac_cv_target
2379shift
2380target_cpu=$1
2381target_vendor=$2
2382shift; shift
2383# Remember, the first character of IFS is used to create $*,
2384# except with old shells:
2385target_os=$*
2386IFS=$ac_save_IFS
2387case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2388
2389
2390# The aliases save the names the user supplied, while $host etc.
2391# will get canonicalized.
2392test -n "$target_alias" &&
2393 test "$program_prefix$program_suffix$program_transform_name" = \
2394 NONENONEs,x,x, &&
2395 program_prefix=${target_alias}-
2396ac_ext=c
2397ac_cpp='$CPP $CPPFLAGS'
2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if test "${ac_cv_prog_CC+set}" = set; then :
2407 $as_echo_n "(cached) " >&6
979273e3
NN
2408else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2421 break 2
2422 fi
2423done
81ecdfbb
RW
2424 done
2425IFS=$as_save_IFS
979273e3
NN
2426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
81ecdfbb
RW
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432$as_echo "$CC" >&6; }
979273e3 2433else
81ecdfbb
RW
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
979273e3
NN
2436fi
2437
81ecdfbb 2438
979273e3
NN
2439fi
2440if test -z "$ac_cv_prog_CC"; then
2441 ac_ct_CC=$CC
2442 # Extract the first word of "gcc", so it can be a program name with args.
2443set dummy gcc; ac_word=$2
81ecdfbb
RW
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
979273e3
NN
2448else
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2459 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2461 break 2
2462 fi
2463done
81ecdfbb
RW
2464 done
2465IFS=$as_save_IFS
979273e3
NN
2466
2467fi
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2472$as_echo "$ac_ct_CC" >&6; }
979273e3 2473else
81ecdfbb
RW
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475$as_echo "no" >&6; }
979273e3
NN
2476fi
2477
81ecdfbb
RW
2478 if test "x$ac_ct_CC" = x; then
2479 CC=""
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482yes:)
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485ac_tool_warned=yes ;;
2486esac
2487 CC=$ac_ct_CC
2488 fi
979273e3
NN
2489else
2490 CC="$ac_cv_prog_CC"
2491fi
2492
2493if test -z "$CC"; then
81ecdfbb
RW
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
979273e3 2496set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498$as_echo_n "checking for $ac_word... " >&6; }
2499if test "${ac_cv_prog_CC+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
979273e3
NN
2501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2514 break 2
2515 fi
2516done
81ecdfbb
RW
2517 done
2518IFS=$as_save_IFS
979273e3
NN
2519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
81ecdfbb
RW
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525$as_echo "$CC" >&6; }
979273e3 2526else
81ecdfbb
RW
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528$as_echo "no" >&6; }
979273e3
NN
2529fi
2530
979273e3 2531
81ecdfbb 2532 fi
979273e3
NN
2533fi
2534if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536set dummy cc; ac_word=$2
81ecdfbb
RW
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
2539if test "${ac_cv_prog_CC+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
979273e3
NN
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545 ac_prog_rejected=no
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3
NN
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2556 fi
2557 ac_cv_prog_CC="cc"
81ecdfbb 2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2559 break 2
2560 fi
2561done
81ecdfbb
RW
2562 done
2563IFS=$as_save_IFS
979273e3
NN
2564
2565if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 fi
2576fi
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
81ecdfbb
RW
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582$as_echo "$CC" >&6; }
979273e3 2583else
81ecdfbb
RW
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
979273e3
NN
2586fi
2587
81ecdfbb 2588
979273e3
NN
2589fi
2590if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
81ecdfbb 2592 for ac_prog in cl.exe
979273e3
NN
2593 do
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if test "${ac_cv_prog_CC+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
979273e3
NN
2600else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2613 break 2
2614 fi
2615done
81ecdfbb
RW
2616 done
2617IFS=$as_save_IFS
979273e3
NN
2618
2619fi
2620fi
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
81ecdfbb
RW
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624$as_echo "$CC" >&6; }
979273e3 2625else
81ecdfbb
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
979273e3
NN
2628fi
2629
81ecdfbb 2630
979273e3
NN
2631 test -n "$CC" && break
2632 done
2633fi
2634if test -z "$CC"; then
2635 ac_ct_CC=$CC
81ecdfbb 2636 for ac_prog in cl.exe
979273e3
NN
2637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
979273e3
NN
2644else
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2655 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2657 break 2
2658 fi
2659done
81ecdfbb
RW
2660 done
2661IFS=$as_save_IFS
2662
979273e3
NN
2663fi
2664fi
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668$as_echo "$ac_ct_CC" >&6; }
979273e3 2669else
81ecdfbb
RW
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
979273e3
NN
2672fi
2673
81ecdfbb 2674
979273e3
NN
2675 test -n "$ac_ct_CC" && break
2676done
2677
81ecdfbb
RW
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685ac_tool_warned=yes ;;
2686esac
2687 CC=$ac_ct_CC
2688 fi
979273e3
NN
2689fi
2690
2691fi
2692
2693
81ecdfbb
RW
2694test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696as_fn_error "no acceptable C compiler found in \$PATH
2697See \`config.log' for more details." "$LINENO" 5; }
979273e3
NN
2698
2699# Provide some information about the compiler.
81ecdfbb
RW
2700$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2701set X $ac_compile
2702ac_compiler=$2
2703for ac_option in --version -v -V -qversion; do
2704 { { ac_try="$ac_compiler $ac_option >&5"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710$as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
979273e3 2712 ac_status=$?
81ecdfbb
RW
2713 if test -s conftest.err; then
2714 sed '10a\
2715... rest of stderr output deleted ...
2716 10q' conftest.err >conftest.er1
2717 cat conftest.er1 >&5
2718 rm -f conftest.er1 conftest.err
2719 fi
2720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721 test $ac_status = 0; }
2722done
979273e3 2723
81ecdfbb 2724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2725/* end confdefs.h. */
2726
2727int
2728main ()
2729{
2730
2731 ;
2732 return 0;
2733}
2734_ACEOF
2735ac_clean_files_save=$ac_clean_files
81ecdfbb 2736ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
979273e3
NN
2737# Try to create an executable without -o first, disregard a.out.
2738# It will help us diagnose broken compilers, and finding out an intuition
2739# of exeext.
81ecdfbb
RW
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2741$as_echo_n "checking for C compiler default output file name... " >&6; }
2742ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2743
2744# The possible output files:
2745ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2746
2747ac_rmfiles=
2748for ac_file in $ac_files
2749do
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2753 esac
2754done
2755rm -f $ac_rmfiles
2756
2757if { { ac_try="$ac_link_default"
2758case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2761esac
2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763$as_echo "$ac_try_echo"; } >&5
2764 (eval "$ac_link_default") 2>&5
2765 ac_status=$?
2766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767 test $ac_status = 0; }; then :
2768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2769# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2770# in a Makefile. We should not override ac_cv_exeext if it was cached,
2771# so that the user can short-circuit this test for compilers unknown to
2772# Autoconf.
2773for ac_file in $ac_files ''
979273e3
NN
2774do
2775 test -f "$ac_file" || continue
2776 case $ac_file in
81ecdfbb 2777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
979273e3
NN
2778 ;;
2779 [ab].out )
2780 # We found the default executable, but exeext='' is most
2781 # certainly right.
2782 break;;
2783 *.* )
81ecdfbb
RW
2784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2785 then :; else
2786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2787 fi
2788 # We set ac_cv_exeext here because the later test for it is not
2789 # safe: cross compilers may not add the suffix if given an `-o'
2790 # argument, so we may need to know it at that point already.
2791 # Even if this section looks crufty: it has the advantage of
2792 # actually working.
979273e3
NN
2793 break;;
2794 * )
2795 break;;
2796 esac
2797done
81ecdfbb
RW
2798test "$ac_cv_exeext" = no && ac_cv_exeext=
2799
979273e3 2800else
81ecdfbb
RW
2801 ac_file=''
2802fi
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2804$as_echo "$ac_file" >&6; }
2805if test -z "$ac_file"; then :
2806 $as_echo "$as_me: failed program was:" >&5
979273e3
NN
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
81ecdfbb
RW
2809{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2811{ as_fn_set_status 77
2812as_fn_error "C compiler cannot create executables
2813See \`config.log' for more details." "$LINENO" 5; }; }
979273e3 2814fi
979273e3 2815ac_exeext=$ac_cv_exeext
979273e3 2816
81ecdfbb 2817# Check that the compiler produces executables we can run. If not, either
979273e3 2818# the compiler is broken, or we cross compile.
81ecdfbb
RW
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2820$as_echo_n "checking whether the C compiler works... " >&6; }
979273e3
NN
2821# If not cross compiling, check that we can run a simple program.
2822if test "$cross_compiling" != yes; then
2823 if { ac_try='./$ac_file'
81ecdfbb
RW
2824 { { case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
2828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2829$as_echo "$ac_try_echo"; } >&5
2830 (eval "$ac_try") 2>&5
979273e3 2831 ac_status=$?
81ecdfbb
RW
2832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2833 test $ac_status = 0; }; }; then
979273e3
NN
2834 cross_compiling=no
2835 else
2836 if test "$cross_compiling" = maybe; then
2837 cross_compiling=yes
2838 else
81ecdfbb
RW
2839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841as_fn_error "cannot run C compiled programs.
979273e3 2842If you meant to cross compile, use \`--host'.
81ecdfbb 2843See \`config.log' for more details." "$LINENO" 5; }
979273e3
NN
2844 fi
2845 fi
2846fi
81ecdfbb
RW
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2848$as_echo "yes" >&6; }
979273e3 2849
81ecdfbb 2850rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
979273e3 2851ac_clean_files=$ac_clean_files_save
81ecdfbb 2852# Check that the compiler produces executables we can run. If not, either
979273e3 2853# the compiler is broken, or we cross compile.
81ecdfbb
RW
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2855$as_echo_n "checking whether we are cross compiling... " >&6; }
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2857$as_echo "$cross_compiling" >&6; }
2858
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2860$as_echo_n "checking for suffix of executables... " >&6; }
2861if { { ac_try="$ac_link"
2862case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867$as_echo "$ac_try_echo"; } >&5
2868 (eval "$ac_link") 2>&5
979273e3 2869 ac_status=$?
81ecdfbb
RW
2870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }; then :
979273e3
NN
2872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2873# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2874# work properly (i.e., refer to `conftest.exe'), while it won't with
2875# `rm'.
2876for ac_file in conftest.exe conftest conftest.*; do
2877 test -f "$ac_file" || continue
2878 case $ac_file in
81ecdfbb 2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
979273e3 2880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
979273e3
NN
2881 break;;
2882 * ) break;;
2883 esac
2884done
2885else
81ecdfbb
RW
2886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2888as_fn_error "cannot compute suffix of executables: cannot compile and link
2889See \`config.log' for more details." "$LINENO" 5; }
979273e3 2890fi
979273e3 2891rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2893$as_echo "$ac_cv_exeext" >&6; }
979273e3
NN
2894
2895rm -f conftest.$ac_ext
2896EXEEXT=$ac_cv_exeext
2897ac_exeext=$EXEEXT
81ecdfbb
RW
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2899$as_echo_n "checking for suffix of object files... " >&6; }
2900if test "${ac_cv_objext+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
979273e3 2902else
81ecdfbb 2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2904/* end confdefs.h. */
2905
2906int
2907main ()
2908{
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914rm -f conftest.o conftest.obj
81ecdfbb
RW
2915if { { ac_try="$ac_compile"
2916case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919esac
2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921$as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_compile") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; then :
2926 for ac_file in conftest.o conftest.obj conftest.*; do
2927 test -f "$ac_file" || continue;
979273e3 2928 case $ac_file in
81ecdfbb 2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
979273e3
NN
2930 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2931 break;;
2932 esac
2933done
2934else
81ecdfbb 2935 $as_echo "$as_me: failed program was:" >&5
979273e3
NN
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
81ecdfbb
RW
2938{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error "cannot compute suffix of object files: cannot compile
2941See \`config.log' for more details." "$LINENO" 5; }
979273e3 2942fi
979273e3
NN
2943rm -f conftest.$ac_cv_objext conftest.$ac_ext
2944fi
81ecdfbb
RW
2945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2946$as_echo "$ac_cv_objext" >&6; }
979273e3
NN
2947OBJEXT=$ac_cv_objext
2948ac_objext=$OBJEXT
81ecdfbb
RW
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2950$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2951if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2952 $as_echo_n "(cached) " >&6
979273e3 2953else
81ecdfbb 2954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2955/* end confdefs.h. */
2956
2957int
2958main ()
2959{
2960#ifndef __GNUC__
2961 choke me
2962#endif
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
81ecdfbb 2968if ac_fn_c_try_compile "$LINENO"; then :
979273e3
NN
2969 ac_compiler_gnu=yes
2970else
81ecdfbb 2971 ac_compiler_gnu=no
979273e3 2972fi
81ecdfbb 2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
979273e3
NN
2974ac_cv_c_compiler_gnu=$ac_compiler_gnu
2975
2976fi
81ecdfbb
RW
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2978$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2979if test $ac_compiler_gnu = yes; then
2980 GCC=yes
2981else
2982 GCC=
2983fi
979273e3
NN
2984ac_test_CFLAGS=${CFLAGS+set}
2985ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2987$as_echo_n "checking whether $CC accepts -g... " >&6; }
2988if test "${ac_cv_prog_cc_g+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
2990else
2991 ac_save_c_werror_flag=$ac_c_werror_flag
2992 ac_c_werror_flag=yes
2993 ac_cv_prog_cc_g=no
2994 CFLAGS="-g"
2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2996/* end confdefs.h. */
2997
2998int
2999main ()
3000{
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
81ecdfbb 3006if ac_fn_c_try_compile "$LINENO"; then :
979273e3
NN
3007 ac_cv_prog_cc_g=yes
3008else
81ecdfbb
RW
3009 CFLAGS=""
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021if ac_fn_c_try_compile "$LINENO"; then :
3022
3023else
3024 ac_c_werror_flag=$ac_save_c_werror_flag
3025 CFLAGS="-g"
3026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3027/* end confdefs.h. */
979273e3 3028
81ecdfbb
RW
3029int
3030main ()
3031{
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037if ac_fn_c_try_compile "$LINENO"; then :
3038 ac_cv_prog_cc_g=yes
979273e3 3039fi
81ecdfbb 3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
979273e3 3041fi
81ecdfbb
RW
3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045 ac_c_werror_flag=$ac_save_c_werror_flag
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3048$as_echo "$ac_cv_prog_cc_g" >&6; }
979273e3
NN
3049if test "$ac_test_CFLAGS" = set; then
3050 CFLAGS=$ac_save_CFLAGS
3051elif test $ac_cv_prog_cc_g = yes; then
3052 if test "$GCC" = yes; then
3053 CFLAGS="-g -O2"
3054 else
3055 CFLAGS="-g"
3056 fi
3057else
3058 if test "$GCC" = yes; then
3059 CFLAGS="-O2"
3060 else
3061 CFLAGS=
3062 fi
3063fi
81ecdfbb
RW
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3065$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3066if test "${ac_cv_prog_cc_c89+set}" = set; then :
3067 $as_echo_n "(cached) " >&6
979273e3 3068else
81ecdfbb 3069 ac_cv_prog_cc_c89=no
979273e3 3070ac_save_CC=$CC
81ecdfbb 3071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3072/* end confdefs.h. */
3073#include <stdarg.h>
3074#include <stdio.h>
3075#include <sys/types.h>
3076#include <sys/stat.h>
3077/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3078struct buf { int x; };
3079FILE * (*rcsopen) (struct buf *, struct stat *, int);
3080static char *e (p, i)
3081 char **p;
3082 int i;
3083{
3084 return p[i];
3085}
3086static char *f (char * (*g) (char **, int), char **p, ...)
3087{
3088 char *s;
3089 va_list v;
3090 va_start (v,p);
3091 s = g (p, va_arg (v,int));
3092 va_end (v);
3093 return s;
3094}
3095
3096/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3097 function prototypes and stuff, but not '\xHH' hex character constants.
3098 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3099 as 'x'. The following induces an error, until -std is added to get
979273e3
NN
3100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3101 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3102 that's true only with -std. */
979273e3
NN
3103int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3104
81ecdfbb
RW
3105/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3106 inside strings and character constants. */
3107#define FOO(x) 'x'
3108int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3109
979273e3
NN
3110int test (int i, double x);
3111struct s1 {int (*f) (int a);};
3112struct s2 {int (*f) (double a);};
3113int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3114int argc;
3115char **argv;
3116int
3117main ()
3118{
3119return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3120 ;
3121 return 0;
3122}
3123_ACEOF
81ecdfbb
RW
3124for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
979273e3
NN
3126do
3127 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3128 if ac_fn_c_try_compile "$LINENO"; then :
3129 ac_cv_prog_cc_c89=$ac_arg
979273e3 3130fi
81ecdfbb
RW
3131rm -f core conftest.err conftest.$ac_objext
3132 test "x$ac_cv_prog_cc_c89" != "xno" && break
979273e3 3133done
81ecdfbb 3134rm -f conftest.$ac_ext
979273e3
NN
3135CC=$ac_save_CC
3136
3137fi
81ecdfbb
RW
3138# AC_CACHE_VAL
3139case "x$ac_cv_prog_cc_c89" in
3140 x)
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3142$as_echo "none needed" >&6; } ;;
3143 xno)
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3145$as_echo "unsupported" >&6; } ;;
979273e3 3146 *)
81ecdfbb
RW
3147 CC="$CC $ac_cv_prog_cc_c89"
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3149$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
979273e3 3150esac
81ecdfbb 3151if test "x$ac_cv_prog_cc_c89" != xno; then :
979273e3 3152
979273e3
NN
3153fi
3154
979273e3
NN
3155ac_ext=c
3156ac_cpp='$CPP $CPPFLAGS'
3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160
3161
81ecdfbb
RW
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3163$as_echo_n "checking for library containing strerror... " >&6; }
3164if test "${ac_cv_search_strerror+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
979273e3 3166else
8ae85421 3167 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3169/* end confdefs.h. */
3170
81ecdfbb
RW
3171/* Override any GCC internal prototype to avoid an error.
3172 Use char because int might match the return type of a GCC
3173 builtin and then its argument prototype would still apply. */
979273e3
NN
3174#ifdef __cplusplus
3175extern "C"
3176#endif
979273e3
NN
3177char strerror ();
3178int
3179main ()
3180{
81ecdfbb 3181return strerror ();
979273e3
NN
3182 ;
3183 return 0;
3184}
3185_ACEOF
81ecdfbb
RW
3186for ac_lib in '' cposix; do
3187 if test -z "$ac_lib"; then
3188 ac_res="none required"
3189 else
3190 ac_res=-l$ac_lib
8ae85421 3191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3192 fi
3193 if ac_fn_c_try_link "$LINENO"; then :
3194 ac_cv_search_strerror=$ac_res
3195fi
3196rm -f core conftest.err conftest.$ac_objext \
3197 conftest$ac_exeext
3198 if test "${ac_cv_search_strerror+set}" = set; then :
3199 break
3200fi
3201done
3202if test "${ac_cv_search_strerror+set}" = set; then :
8ae85421 3203
8ae85421 3204else
81ecdfbb 3205 ac_cv_search_strerror=no
979273e3 3206fi
81ecdfbb 3207rm conftest.$ac_ext
8ae85421
AM
3208LIBS=$ac_func_search_save_LIBS
3209fi
81ecdfbb
RW
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3211$as_echo "$ac_cv_search_strerror" >&6; }
3212ac_res=$ac_cv_search_strerror
3213if test "$ac_res" != no; then :
3214 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
979273e3 3215
8ae85421 3216fi
979273e3
NN
3217
3218
81ecdfbb
RW
3219am__api_version='1.11'
3220
979273e3
NN
3221# Find a good install program. We prefer a C program (faster),
3222# so one script is as good as another. But avoid the broken or
3223# incompatible versions:
3224# SysV /etc/install, /usr/sbin/install
3225# SunOS /usr/etc/install
3226# IRIX /sbin/install
3227# AIX /bin/install
3228# AmigaOS /C/install, which installs bootblocks on floppy discs
3229# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3230# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 3231# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 3232# OS/2's system install, which has a completely different semantic
252b5132 3233# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3234# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3236$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3237if test -z "$INSTALL"; then
81ecdfbb
RW
3238if test "${ac_cv_path_install+set}" = set; then :
3239 $as_echo_n "(cached) " >&6
252b5132 3240else
979273e3
NN
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3246 # Account for people who put trailing slashes in PATH elements.
3247case $as_dir/ in #((
3248 ./ | .// | /[cC]/* | \
979273e3 3249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3250 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
979273e3
NN
3251 /usr/ucb/* ) ;;
3252 *)
3253 # OSF1 and SCO ODT 3.0 have their own names for install.
3254 # Don't use installbsd from OSF since it installs stuff as root
3255 # by default.
3256 for ac_prog in ginstall scoinst install; do
3257 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3258 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3259 if test $ac_prog = install &&
979273e3 3260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3261 # AIX install. It has an incompatible calling convention.
3262 :
979273e3
NN
3263 elif test $ac_prog = install &&
3264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3265 # program-specific install script used by HP pwplus--don't use.
3266 :
252b5132 3267 else
58c85be7
RW
3268 rm -rf conftest.one conftest.two conftest.dir
3269 echo one > conftest.one
3270 echo two > conftest.two
3271 mkdir conftest.dir
3272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3273 test -s conftest.one && test -s conftest.two &&
3274 test -s conftest.dir/conftest.one &&
3275 test -s conftest.dir/conftest.two
3276 then
3277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3278 break 3
3279 fi
252b5132
RH
3280 fi
3281 fi
3282 done
979273e3
NN
3283 done
3284 ;;
3285esac
81ecdfbb
RW
3286
3287 done
3288IFS=$as_save_IFS
979273e3 3289
58c85be7 3290rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3291
3292fi
3293 if test "${ac_cv_path_install+set}" = set; then
979273e3 3294 INSTALL=$ac_cv_path_install
252b5132 3295 else
58c85be7
RW
3296 # As a last resort, use the slow shell script. Don't cache a
3297 # value for INSTALL within a source directory, because that will
252b5132 3298 # break other packages using the cache if that directory is
58c85be7 3299 # removed, or if the value is a relative name.
979273e3 3300 INSTALL=$ac_install_sh
252b5132
RH
3301 fi
3302fi
81ecdfbb
RW
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3304$as_echo "$INSTALL" >&6; }
252b5132
RH
3305
3306# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3307# It thinks the first close brace ends the variable substitution.
3308test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3309
979273e3 3310test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3311
3312test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3313
81ecdfbb
RW
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3315$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3316# Just in case
3317sleep 1
8ae85421 3318echo timestamp > conftest.file
81ecdfbb
RW
3319# Reject unsafe characters in $srcdir or the absolute working directory
3320# name. Accept space and tab only in the latter.
3321am_lf='
3322'
3323case `pwd` in
3324 *[\\\"\#\$\&\'\`$am_lf]*)
3325 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3326esac
3327case $srcdir in
3328 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3329 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3330esac
3331
252b5132
RH
3332# Do `set' in a subshell so we don't clobber the current shell's
3333# arguments. Must try -L first in case configure is actually a
3334# symlink; some systems play weird games with the mod time of symlinks
3335# (eg FreeBSD returns the mod time of the symlink's containing
3336# directory).
3337if (
81ecdfbb 3338 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3339 if test "$*" = "X"; then
3340 # -L didn't work.
81ecdfbb 3341 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3342 fi
8ae85421
AM
3343 rm -f conftest.file
3344 if test "$*" != "X $srcdir/configure conftest.file" \
3345 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3346
3347 # If neither matched, then we have a broken ls. This can happen
3348 # if, for instance, CONFIG_SHELL is bash and it inherits a
3349 # broken ls alias from the environment. This has actually
3350 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3351 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3352alias in your environment" "$LINENO" 5
252b5132
RH
3353 fi
3354
8ae85421 3355 test "$2" = conftest.file
252b5132
RH
3356 )
3357then
3358 # Ok.
3359 :
3360else
81ecdfbb
RW
3361 as_fn_error "newly created file is older than distributed files!
3362Check your system clock" "$LINENO" 5
252b5132 3363fi
81ecdfbb
RW
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365$as_echo "yes" >&6; }
252b5132 3366test "$program_prefix" != NONE &&
81ecdfbb 3367 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3368# Use a double $ so make ignores it.
3369test "$program_suffix" != NONE &&
81ecdfbb
RW
3370 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3371# Double any \ or $.
979273e3 3372# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3373ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3374program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
979273e3 3375
8ae85421
AM
3376# expand $ac_aux_dir to an absolute path
3377am_aux_dir=`cd $ac_aux_dir && pwd`
3378
81ecdfbb
RW
3379if test x"${MISSING+set}" != xset; then
3380 case $am_aux_dir in
3381 *\ * | *\ *)
3382 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3383 *)
3384 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3385 esac
3386fi
8ae85421
AM
3387# Use eval to expand $SHELL
3388if eval "$MISSING --run true"; then
3389 am_missing_run="$MISSING --run "
3390else
3391 am_missing_run=
81ecdfbb
RW
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3393$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3394fi
3395
3396if test x"${install_sh}" != xset; then
3397 case $am_aux_dir in
3398 *\ * | *\ *)
3399 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3400 *)
3401 install_sh="\${SHELL} $am_aux_dir/install-sh"
3402 esac
3403fi
3404
3405# Installed binaries are usually stripped using `strip' when the user
3406# run `make install-strip'. However `strip' might not be the right
3407# tool to use in cross-compilation environments, therefore Automake
3408# will honor the `STRIP' environment variable to overrule this program.
3409if test "$cross_compiling" != no; then
3410 if test -n "$ac_tool_prefix"; then
3411 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3412set dummy ${ac_tool_prefix}strip; ac_word=$2
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414$as_echo_n "checking for $ac_word... " >&6; }
3415if test "${ac_cv_prog_STRIP+set}" = set; then :
3416 $as_echo_n "(cached) " >&6
3417else
3418 if test -n "$STRIP"; then
3419 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3420else
3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422for as_dir in $PATH
3423do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432done
3433 done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438STRIP=$ac_cv_prog_STRIP
3439if test -n "$STRIP"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3441$as_echo "$STRIP" >&6; }
3442else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445fi
3446
3447
3448fi
3449if test -z "$ac_cv_prog_STRIP"; then
3450 ac_ct_STRIP=$STRIP
3451 # Extract the first word of "strip", so it can be a program name with args.
3452set dummy strip; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; }
3455if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457else
3458 if test -n "$ac_ct_STRIP"; then
3459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3460else
3461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462for as_dir in $PATH
3463do
3464 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_ac_ct_STRIP="strip"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2
3471 fi
3472done
8ae85421 3473 done
81ecdfbb
RW
3474IFS=$as_save_IFS
3475
3476fi
3477fi
3478ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3479if test -n "$ac_ct_STRIP"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3481$as_echo "$ac_ct_STRIP" >&6; }
3482else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485fi
3486
3487 if test "x$ac_ct_STRIP" = x; then
3488 STRIP=":"
3489 else
3490 case $cross_compiling:$ac_tool_warned in
3491yes:)
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3494ac_tool_warned=yes ;;
3495esac
3496 STRIP=$ac_ct_STRIP
3497 fi
3498else
3499 STRIP="$ac_cv_prog_STRIP"
3500fi
3501
3502fi
3503INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3504
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3506$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3507if test -z "$MKDIR_P"; then
3508 if test "${ac_cv_path_mkdir+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3513do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_prog in mkdir gmkdir; do
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3519 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3520 'mkdir (GNU coreutils) '* | \
3521 'mkdir (coreutils) '* | \
3522 'mkdir (fileutils) '4.1*)
3523 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3524 break 3;;
3525 esac
3526 done
3527 done
3528 done
3529IFS=$as_save_IFS
3530
3531fi
3532
3533 if test "${ac_cv_path_mkdir+set}" = set; then
3534 MKDIR_P="$ac_cv_path_mkdir -p"
8ae85421 3535 else
81ecdfbb
RW
3536 # As a last resort, use the slow shell script. Don't cache a
3537 # value for MKDIR_P within a source directory, because that will
3538 # break other packages using the cache if that directory is
3539 # removed, or if the value is a relative name.
3540 test -d ./--version && rmdir ./--version
3541 MKDIR_P="$ac_install_sh -d"
8ae85421
AM
3542 fi
3543fi
81ecdfbb
RW
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3545$as_echo "$MKDIR_P" >&6; }
3546
3547mkdir_p="$MKDIR_P"
3548case $mkdir_p in
3549 [\\/$]* | ?:[\\/]*) ;;
3550 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3551esac
8ae85421
AM
3552
3553for ac_prog in gawk mawk nawk awk
3554do
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558$as_echo_n "checking for $ac_word... " >&6; }
3559if test "${ac_cv_prog_AWK+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
8ae85421
AM
3561else
3562 if test -n "$AWK"; then
3563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ae85421 3572 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8ae85421
AM
3574 break 2
3575 fi
3576done
81ecdfbb
RW
3577 done
3578IFS=$as_save_IFS
8ae85421
AM
3579
3580fi
3581fi
3582AWK=$ac_cv_prog_AWK
3583if test -n "$AWK"; then
81ecdfbb
RW
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3585$as_echo "$AWK" >&6; }
8ae85421 3586else
81ecdfbb
RW
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588$as_echo "no" >&6; }
8ae85421
AM
3589fi
3590
81ecdfbb 3591
8ae85421
AM
3592 test -n "$AWK" && break
3593done
3594
81ecdfbb
RW
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3596$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3597set x ${MAKE-make}
3598ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3599if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3600 $as_echo_n "(cached) " >&6
979273e3
NN
3601else
3602 cat >conftest.make <<\_ACEOF
81ecdfbb 3603SHELL = /bin/sh
252b5132 3604all:
81ecdfbb 3605 @echo '@@@%%%=$(MAKE)=@@@%%%'
979273e3 3606_ACEOF
252b5132 3607# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3608case `${MAKE-make} -f conftest.make 2>/dev/null` in
3609 *@@@%%%=?*=@@@%%%*)
3610 eval ac_cv_prog_make_${ac_make}_set=yes;;
3611 *)
3612 eval ac_cv_prog_make_${ac_make}_set=no;;
3613esac
979273e3 3614rm -f conftest.make
252b5132 3615fi
81ecdfbb
RW
3616if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618$as_echo "yes" >&6; }
252b5132
RH
3619 SET_MAKE=
3620else
81ecdfbb
RW
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
252b5132
RH
3623 SET_MAKE="MAKE=${MAKE-make}"
3624fi
3625
8ae85421
AM
3626rm -rf .tst 2>/dev/null
3627mkdir .tst 2>/dev/null
3628if test -d .tst; then
3629 am__leading_dot=.
3630else
3631 am__leading_dot=_
3632fi
3633rmdir .tst 2>/dev/null
3634
3635DEPDIR="${am__leading_dot}deps"
3636
81ecdfbb 3637ac_config_commands="$ac_config_commands depfiles"
8ae85421
AM
3638
3639
3640am_make=${MAKE-make}
3641cat > confinc << 'END'
3642am__doit:
81ecdfbb 3643 @echo this is the am__doit target
8ae85421
AM
3644.PHONY: am__doit
3645END
3646# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3648$as_echo_n "checking for style of include used by $am_make... " >&6; }
8ae85421
AM
3649am__include="#"
3650am__quote=
3651_am_result=none
3652# First try GNU make style include.
3653echo "include confinc" > confmf
81ecdfbb
RW
3654# Ignore all kinds of additional output from `make'.
3655case `$am_make -s -f confmf 2> /dev/null` in #(
3656*the\ am__doit\ target*)
3657 am__include=include
3658 am__quote=
3659 _am_result=GNU
3660 ;;
3661esac
8ae85421
AM
3662# Now try BSD make style include.
3663if test "$am__include" = "#"; then
3664 echo '.include "confinc"' > confmf
81ecdfbb
RW
3665 case `$am_make -s -f confmf 2> /dev/null` in #(
3666 *the\ am__doit\ target*)
3667 am__include=.include
3668 am__quote="\""
3669 _am_result=BSD
3670 ;;
3671 esac
8ae85421
AM
3672fi
3673
3674
81ecdfbb
RW
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3676$as_echo "$_am_result" >&6; }
8ae85421
AM
3677rm -f confinc confmf
3678
81ecdfbb
RW
3679# Check whether --enable-dependency-tracking was given.
3680if test "${enable_dependency_tracking+set}" = set; then :
3681 enableval=$enable_dependency_tracking;
3682fi
8ae85421 3683
8ae85421
AM
3684if test "x$enable_dependency_tracking" != xno; then
3685 am_depcomp="$ac_aux_dir/depcomp"
3686 AMDEPBACKSLASH='\'
3687fi
81ecdfbb 3688 if test "x$enable_dependency_tracking" != xno; then
8ae85421
AM
3689 AMDEP_TRUE=
3690 AMDEP_FALSE='#'
3691else
3692 AMDEP_TRUE='#'
3693 AMDEP_FALSE=
3694fi
252b5132 3695
252b5132 3696
81ecdfbb
RW
3697if test "`cd $srcdir && pwd`" != "`pwd`"; then
3698 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3699 # is not polluted with repeated "-I."
3700 am__isrc=' -I$(srcdir)'
3701 # test to see if srcdir already configured
3702 if test -f $srcdir/config.status; then
3703 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3704 fi
252b5132 3705fi
979273e3 3706
8ae85421
AM
3707# test whether we have cygpath
3708if test -z "$CYGPATH_W"; then
3709 if (cygpath --version) >/dev/null 2>/dev/null; then
3710 CYGPATH_W='cygpath -w'
3711 else
3712 CYGPATH_W=echo
3713 fi
3714fi
3715
3716
3717# Define the identity of the package.
2e98a7bd 3718 PACKAGE='opcodes'
d8bd95ef 3719 VERSION='2.26.51'
8ae85421
AM
3720
3721
979273e3 3722cat >>confdefs.h <<_ACEOF
252b5132 3723#define PACKAGE "$PACKAGE"
979273e3 3724_ACEOF
252b5132 3725
979273e3
NN
3726
3727cat >>confdefs.h <<_ACEOF
252b5132 3728#define VERSION "$VERSION"
979273e3 3729_ACEOF
252b5132 3730
8ae85421 3731# Some tools Automake needs.
252b5132 3732
8ae85421 3733ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3734
8ae85421
AM
3735
3736AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3737
3738
3739AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3740
3741
3742AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3743
3744
3745MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3746
8ae85421
AM
3747# We need awk for the "check" target. The system "awk" is bad on
3748# some platforms.
3749# Always define AMTAR for backward compatibility.
3750
3751AMTAR=${AMTAR-"${am_missing_run}tar"}
3752
3753am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3754
3755
3756
3757
3758depcc="$CC" am_compiler_list=
3759
81ecdfbb
RW
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3761$as_echo_n "checking dependency style of $depcc... " >&6; }
3762if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
252b5132 3764else
8ae85421
AM
3765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3766 # We make a subdir and do the tests there. Otherwise we can end up
3767 # making bogus files that we don't know about and never remove. For
3768 # instance it was reported that on HP-UX the gcc test will end up
3769 # making a dummy file named `D' -- because `-MD' means `put the output
3770 # in D'.
3771 mkdir conftest.dir
3772 # Copy depcomp to subdir because otherwise we won't find it if we're
3773 # using a relative directory.
3774 cp "$am_depcomp" conftest.dir
3775 cd conftest.dir
3776 # We will build objects and dependencies in a subdirectory because
3777 # it helps to detect inapplicable dependency modes. For instance
3778 # both Tru64's cc and ICC support -MD to output dependencies as a
3779 # side effect of compilation, but ICC will put the dependencies in
3780 # the current directory while Tru64 will put them in the object
3781 # directory.
3782 mkdir sub
3783
3784 am_cv_CC_dependencies_compiler_type=none
3785 if test "$am_compiler_list" = ""; then
3786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3787 fi
81ecdfbb
RW
3788 am__universal=false
3789 case " $depcc " in #(
3790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3791 esac
3792
8ae85421
AM
3793 for depmode in $am_compiler_list; do
3794 # Setup a source with many dependencies, because some compilers
3795 # like to wrap large dependency lists on column 80 (with \), and
3796 # we should not choose a depcomp mode which is confused by this.
3797 #
3798 # We need to recreate these files for each test, as the compiler may
3799 # overwrite some of them when testing with obscure command lines.
3800 # This happens at least with the AIX C compiler.
3801 : > sub/conftest.c
3802 for i in 1 2 3 4 5 6; do
3803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3805 # Solaris 8's {/usr,}/bin/sh.
3806 touch sub/conftst$i.h
3807 done
3808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3809
81ecdfbb
RW
3810 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3811 # mode. It turns out that the SunPro C++ compiler does not properly
3812 # handle `-M -o', and we need to detect this. Also, some Intel
3813 # versions had trouble with output in subdirs
3814 am__obj=sub/conftest.${OBJEXT-o}
3815 am__minus_obj="-o $am__obj"
8ae85421 3816 case $depmode in
81ecdfbb
RW
3817 gcc)
3818 # This depmode causes a compiler race in universal mode.
3819 test "$am__universal" = false || continue
3820 ;;
8ae85421
AM
3821 nosideeffect)
3822 # after this tag, mechanisms are not by side-effect, so they'll
3823 # only be used when explicitly requested
3824 if test "x$enable_dependency_tracking" = xyes; then
3825 continue
3826 else
3827 break
3828 fi
3829 ;;
81ecdfbb
RW
3830 msvisualcpp | msvcmsys)
3831 # This compiler won't grok `-c -o', but also, the minuso test has
3832 # not run yet. These depmodes are late enough in the game, and
3833 # so weak that their functioning should not be impacted.
3834 am__obj=conftest.${OBJEXT-o}
3835 am__minus_obj=
3836 ;;
8ae85421
AM
3837 none) break ;;
3838 esac
8ae85421 3839 if depmode=$depmode \
81ecdfbb 3840 source=sub/conftest.c object=$am__obj \
8ae85421 3841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8ae85421 3843 >/dev/null 2>conftest.err &&
81ecdfbb 3844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8ae85421 3845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8ae85421
AM
3847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848 # icc doesn't choke on unknown options, it will just issue warnings
3849 # or remarks (even with -Werror). So we grep stderr for any message
3850 # that says an option was ignored or not supported.
3851 # When given -MP, icc 7.0 and 7.1 complain thusly:
3852 # icc: Command line warning: ignoring option '-M'; no argument required
3853 # The diagnosis changed in icc 8.0:
3854 # icc: Command line remark: option '-MP' not supported
3855 if (grep 'ignoring option' conftest.err ||
3856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857 am_cv_CC_dependencies_compiler_type=$depmode
3858 break
3859 fi
3860 fi
3861 done
3862
3863 cd ..
3864 rm -rf conftest.dir
3865else
3866 am_cv_CC_dependencies_compiler_type=none
3867fi
3868
252b5132 3869fi
81ecdfbb
RW
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3871$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8ae85421
AM
3872CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873
81ecdfbb 3874 if
8ae85421
AM
3875 test "x$enable_dependency_tracking" != xno \
3876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3877 am__fastdepCC_TRUE=
3878 am__fastdepCC_FALSE='#'
252b5132 3879else
8ae85421
AM
3880 am__fastdepCC_TRUE='#'
3881 am__fastdepCC_FALSE=
252b5132
RH
3882fi
3883
3884
3885
8ae85421 3886
dabbade6
L
3887ac_ext=c
3888ac_cpp='$CPP $CPPFLAGS'
3889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3892if test -n "$ac_tool_prefix"; then
dabbade6
L
3893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3894set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
3897if test "${ac_cv_prog_CC+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
252b5132 3899else
dabbade6
L
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3902else
979273e3
NN
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 3910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3912 break 2
3913 fi
3914done
81ecdfbb
RW
3915 done
3916IFS=$as_save_IFS
979273e3 3917
252b5132
RH
3918fi
3919fi
dabbade6
L
3920CC=$ac_cv_prog_CC
3921if test -n "$CC"; then
81ecdfbb
RW
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923$as_echo "$CC" >&6; }
252b5132 3924else
81ecdfbb
RW
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926$as_echo "no" >&6; }
979273e3
NN
3927fi
3928
81ecdfbb 3929
252b5132 3930fi
dabbade6
L
3931if test -z "$ac_cv_prog_CC"; then
3932 ac_ct_CC=$CC
3933 # Extract the first word of "gcc", so it can be a program name with args.
3934set dummy gcc; ac_word=$2
81ecdfbb
RW
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936$as_echo_n "checking for $ac_word... " >&6; }
3937if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
979273e3 3939else
dabbade6
L
3940 if test -n "$ac_ct_CC"; then
3941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 3950 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3952 break 2
3953 fi
3954done
81ecdfbb
RW
3955 done
3956IFS=$as_save_IFS
252b5132 3957
979273e3
NN
3958fi
3959fi
dabbade6
L
3960ac_ct_CC=$ac_cv_prog_ac_ct_CC
3961if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3963$as_echo "$ac_ct_CC" >&6; }
979273e3 3964else
81ecdfbb
RW
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966$as_echo "no" >&6; }
979273e3 3967fi
252b5132 3968
81ecdfbb
RW
3969 if test "x$ac_ct_CC" = x; then
3970 CC=""
3971 else
3972 case $cross_compiling:$ac_tool_warned in
3973yes:)
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3976ac_tool_warned=yes ;;
3977esac
3978 CC=$ac_ct_CC
3979 fi
979273e3 3980else
dabbade6 3981 CC="$ac_cv_prog_CC"
979273e3 3982fi
252b5132 3983
dabbade6 3984if test -z "$CC"; then
81ecdfbb
RW
3985 if test -n "$ac_tool_prefix"; then
3986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
dabbade6 3987set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
3990if test "${ac_cv_prog_CC+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
252b5132 3992else
dabbade6
L
3993 if test -n "$CC"; then
3994 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3995else
979273e3
NN
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4003 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
4005 break 2
4006 fi
4007done
81ecdfbb
RW
4008 done
4009IFS=$as_save_IFS
979273e3 4010
252b5132
RH
4011fi
4012fi
dabbade6
L
4013CC=$ac_cv_prog_CC
4014if test -n "$CC"; then
81ecdfbb
RW
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4016$as_echo "$CC" >&6; }
252b5132 4017else
81ecdfbb
RW
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019$as_echo "no" >&6; }
252b5132
RH
4020fi
4021
252b5132 4022
81ecdfbb 4023 fi
dabbade6
L
4024fi
4025if test -z "$CC"; then
4026 # Extract the first word of "cc", so it can be a program name with args.
4027set dummy cc; ac_word=$2
81ecdfbb
RW
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
dabbade6
L
4032else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035else
4036 ac_prog_rejected=no
4037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038for as_dir in $PATH
4039do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6
L
4044 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4045 ac_prog_rejected=yes
4046 continue
4047 fi
4048 ac_cv_prog_CC="cc"
81ecdfbb 4049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4050 break 2
4051 fi
4052done
81ecdfbb
RW
4053 done
4054IFS=$as_save_IFS
252b5132 4055
dabbade6
L
4056if test $ac_prog_rejected = yes; then
4057 # We found a bogon in the path, so make sure we never use it.
4058 set dummy $ac_cv_prog_CC
4059 shift
4060 if test $# != 0; then
4061 # We chose a different compiler from the bogus one.
4062 # However, it has the same basename, so the bogon will be chosen
4063 # first if we set CC to just the basename; use the full file name.
4064 shift
4065 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4066 fi
4067fi
4068fi
4069fi
4070CC=$ac_cv_prog_CC
4071if test -n "$CC"; then
81ecdfbb
RW
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4073$as_echo "$CC" >&6; }
252b5132 4074else
81ecdfbb
RW
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076$as_echo "no" >&6; }
dabbade6 4077fi
252b5132 4078
81ecdfbb 4079
dabbade6
L
4080fi
4081if test -z "$CC"; then
4082 if test -n "$ac_tool_prefix"; then
81ecdfbb 4083 for ac_prog in cl.exe
dabbade6
L
4084 do
4085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4086set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088$as_echo_n "checking for $ac_word... " >&6; }
4089if test "${ac_cv_prog_CC+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
dabbade6
L
4091else
4092 if test -n "$CC"; then
4093 ac_cv_prog_CC="$CC" # Let the user override the test.
4094else
4095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096for as_dir in $PATH
4097do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4102 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4104 break 2
4105 fi
4106done
81ecdfbb
RW
4107 done
4108IFS=$as_save_IFS
d7040cdb 4109
dabbade6
L
4110fi
4111fi
4112CC=$ac_cv_prog_CC
4113if test -n "$CC"; then
81ecdfbb
RW
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4115$as_echo "$CC" >&6; }
dabbade6 4116else
81ecdfbb
RW
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
dabbade6 4119fi
d7040cdb 4120
81ecdfbb 4121
dabbade6
L
4122 test -n "$CC" && break
4123 done
4124fi
4125if test -z "$CC"; then
4126 ac_ct_CC=$CC
81ecdfbb 4127 for ac_prog in cl.exe
dabbade6
L
4128do
4129 # Extract the first word of "$ac_prog", so it can be a program name with args.
4130set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
4133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4134 $as_echo_n "(cached) " >&6
dabbade6
L
4135else
4136 if test -n "$ac_ct_CC"; then
4137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4146 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4148 break 2
4149 fi
4150done
81ecdfbb
RW
4151 done
4152IFS=$as_save_IFS
d7040cdb 4153
dabbade6
L
4154fi
4155fi
4156ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159$as_echo "$ac_ct_CC" >&6; }
dabbade6 4160else
81ecdfbb
RW
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
dabbade6 4163fi
d7040cdb 4164
81ecdfbb 4165
dabbade6
L
4166 test -n "$ac_ct_CC" && break
4167done
d7040cdb 4168
81ecdfbb
RW
4169 if test "x$ac_ct_CC" = x; then
4170 CC=""
4171 else
4172 case $cross_compiling:$ac_tool_warned in
4173yes:)
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4176ac_tool_warned=yes ;;
4177esac
4178 CC=$ac_ct_CC
4179 fi
dabbade6 4180fi
d7040cdb 4181
dabbade6 4182fi
d7040cdb
SE
4183
4184
81ecdfbb
RW
4185test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187as_fn_error "no acceptable C compiler found in \$PATH
4188See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4189
dabbade6 4190# Provide some information about the compiler.
81ecdfbb
RW
4191$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4192set X $ac_compile
4193ac_compiler=$2
4194for ac_option in --version -v -V -qversion; do
4195 { { ac_try="$ac_compiler $ac_option >&5"
4196case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201$as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
dabbade6 4203 ac_status=$?
81ecdfbb
RW
4204 if test -s conftest.err; then
4205 sed '10a\
4206... rest of stderr output deleted ...
4207 10q' conftest.err >conftest.er1
4208 cat conftest.er1 >&5
4209 rm -f conftest.er1 conftest.err
4210 fi
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }
4213done
d7040cdb 4214
81ecdfbb
RW
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4216$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4217if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
252b5132 4219else
81ecdfbb 4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 4221/* end confdefs.h. */
d7040cdb 4222
dabbade6
L
4223int
4224main ()
4225{
4226#ifndef __GNUC__
4227 choke me
4228#endif
d7040cdb 4229
dabbade6
L
4230 ;
4231 return 0;
4232}
4233_ACEOF
81ecdfbb 4234if ac_fn_c_try_compile "$LINENO"; then :
dabbade6 4235 ac_compiler_gnu=yes
d7040cdb 4236else
81ecdfbb 4237 ac_compiler_gnu=no
dabbade6 4238fi
81ecdfbb 4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4240ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4241
dabbade6 4242fi
81ecdfbb
RW
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4244$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4245if test $ac_compiler_gnu = yes; then
4246 GCC=yes
4247else
4248 GCC=
4249fi
dabbade6
L
4250ac_test_CFLAGS=${CFLAGS+set}
4251ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4253$as_echo_n "checking whether $CC accepts -g... " >&6; }
4254if test "${ac_cv_prog_cc_g+set}" = set; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 ac_save_c_werror_flag=$ac_c_werror_flag
4258 ac_c_werror_flag=yes
4259 ac_cv_prog_cc_g=no
4260 CFLAGS="-g"
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 4262/* end confdefs.h. */
d7040cdb 4263
dabbade6
L
4264int
4265main ()
4266{
d7040cdb 4267
dabbade6
L
4268 ;
4269 return 0;
4270}
4271_ACEOF
81ecdfbb 4272if ac_fn_c_try_compile "$LINENO"; then :
dabbade6
L
4273 ac_cv_prog_cc_g=yes
4274else
81ecdfbb
RW
4275 CFLAGS=""
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277/* end confdefs.h. */
d7040cdb 4278
81ecdfbb
RW
4279int
4280main ()
4281{
4282
4283 ;
4284 return 0;
4285}
4286_ACEOF
4287if ac_fn_c_try_compile "$LINENO"; then :
4288
4289else
4290 ac_c_werror_flag=$ac_save_c_werror_flag
4291 CFLAGS="-g"
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h. */
4294
4295int
4296main ()
4297{
4298
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_prog_cc_g=yes
4305fi
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4307fi
81ecdfbb 4308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4309fi
81ecdfbb
RW
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_c_werror_flag=$ac_save_c_werror_flag
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4314$as_echo "$ac_cv_prog_cc_g" >&6; }
dabbade6
L
4315if test "$ac_test_CFLAGS" = set; then
4316 CFLAGS=$ac_save_CFLAGS
4317elif test $ac_cv_prog_cc_g = yes; then
4318 if test "$GCC" = yes; then
4319 CFLAGS="-g -O2"
4320 else
4321 CFLAGS="-g"
4322 fi
4323else
4324 if test "$GCC" = yes; then
4325 CFLAGS="-O2"
4326 else
4327 CFLAGS=
4328 fi
4329fi
81ecdfbb
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4331$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4332if test "${ac_cv_prog_cc_c89+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
d7040cdb 4334else
81ecdfbb 4335 ac_cv_prog_cc_c89=no
dabbade6 4336ac_save_CC=$CC
81ecdfbb 4337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6
L
4338/* end confdefs.h. */
4339#include <stdarg.h>
4340#include <stdio.h>
4341#include <sys/types.h>
4342#include <sys/stat.h>
4343/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4344struct buf { int x; };
4345FILE * (*rcsopen) (struct buf *, struct stat *, int);
4346static char *e (p, i)
4347 char **p;
4348 int i;
4349{
4350 return p[i];
4351}
4352static char *f (char * (*g) (char **, int), char **p, ...)
4353{
4354 char *s;
4355 va_list v;
4356 va_start (v,p);
4357 s = g (p, va_arg (v,int));
4358 va_end (v);
4359 return s;
4360}
d7040cdb 4361
dabbade6
L
4362/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4363 function prototypes and stuff, but not '\xHH' hex character constants.
4364 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4365 as 'x'. The following induces an error, until -std is added to get
dabbade6
L
4366 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4367 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4368 that's true only with -std. */
dabbade6 4369int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4370
81ecdfbb
RW
4371/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4372 inside strings and character constants. */
4373#define FOO(x) 'x'
4374int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4375
dabbade6
L
4376int test (int i, double x);
4377struct s1 {int (*f) (int a);};
4378struct s2 {int (*f) (double a);};
4379int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4380int argc;
4381char **argv;
4382int
4383main ()
4384{
4385return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4386 ;
4387 return 0;
4388}
4389_ACEOF
81ecdfbb
RW
4390for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4391 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
dabbade6
L
4392do
4393 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4394 if ac_fn_c_try_compile "$LINENO"; then :
4395 ac_cv_prog_cc_c89=$ac_arg
d7040cdb 4396fi
81ecdfbb
RW
4397rm -f core conftest.err conftest.$ac_objext
4398 test "x$ac_cv_prog_cc_c89" != "xno" && break
dabbade6 4399done
81ecdfbb 4400rm -f conftest.$ac_ext
dabbade6 4401CC=$ac_save_CC
d7040cdb 4402
dabbade6 4403fi
81ecdfbb
RW
4404# AC_CACHE_VAL
4405case "x$ac_cv_prog_cc_c89" in
4406 x)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4408$as_echo "none needed" >&6; } ;;
4409 xno)
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4411$as_echo "unsupported" >&6; } ;;
252b5132 4412 *)
81ecdfbb
RW
4413 CC="$CC $ac_cv_prog_cc_c89"
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4415$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
dabbade6 4416esac
81ecdfbb 4417if test "x$ac_cv_prog_cc_c89" != xno; then :
ac48eca1 4418
dabbade6 4419fi
252b5132 4420
dabbade6
L
4421ac_ext=c
4422ac_cpp='$CPP $CPPFLAGS'
4423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4426
7357c5b6
AM
4427ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4433$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4434# On Suns, sometimes $CPP names a directory.
4435if test -n "$CPP" && test -d "$CPP"; then
4436 CPP=
4437fi
4438if test -z "$CPP"; then
81ecdfbb
RW
4439 if test "${ac_cv_prog_CPP+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
dabbade6 4441else
7357c5b6
AM
4442 # Double quotes because CPP needs to be expanded
4443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4444 do
4445 ac_preproc_ok=false
4446for ac_c_preproc_warn_flag in '' yes
dabbade6 4447do
7357c5b6
AM
4448 # Use a header file that comes with gcc, so configuring glibc
4449 # with a fresh cross-compiler works.
4450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451 # <limits.h> exists even on freestanding compilers.
4452 # On the NeXT, cc -E runs the code through the compiler's parser,
4453 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4455/* end confdefs.h. */
4456#ifdef __STDC__
4457# include <limits.h>
4458#else
4459# include <assert.h>
4460#endif
4461 Syntax error
4462_ACEOF
81ecdfbb 4463if ac_fn_c_try_cpp "$LINENO"; then :
dabbade6 4464
81ecdfbb 4465else
7357c5b6
AM
4466 # Broken: fails on valid input.
4467continue
252b5132 4468fi
7357c5b6
AM
4469rm -f conftest.err conftest.$ac_ext
4470
81ecdfbb 4471 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4472 # can be detected and how.
81ecdfbb 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4474/* end confdefs.h. */
4475#include <ac_nonexistent.h>
4476_ACEOF
81ecdfbb 4477if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4478 # Broken: success on invalid input.
4479continue
dabbade6 4480else
7357c5b6
AM
4481 # Passes both tests.
4482ac_preproc_ok=:
4483break
dabbade6 4484fi
7357c5b6 4485rm -f conftest.err conftest.$ac_ext
dabbade6 4486
d7040cdb 4487done
7357c5b6
AM
4488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4489rm -f conftest.err conftest.$ac_ext
81ecdfbb 4490if $ac_preproc_ok; then :
7357c5b6
AM
4491 break
4492fi
4493
4494 done
4495 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4496
4497fi
7357c5b6
AM
4498 CPP=$ac_cv_prog_CPP
4499else
4500 ac_cv_prog_CPP=$CPP
d7040cdb 4501fi
81ecdfbb
RW
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4503$as_echo "$CPP" >&6; }
7357c5b6
AM
4504ac_preproc_ok=false
4505for ac_c_preproc_warn_flag in '' yes
4506do
4507 # Use a header file that comes with gcc, so configuring glibc
4508 # with a fresh cross-compiler works.
4509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4510 # <limits.h> exists even on freestanding compilers.
4511 # On the NeXT, cc -E runs the code through the compiler's parser,
4512 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4514/* end confdefs.h. */
4515#ifdef __STDC__
4516# include <limits.h>
4517#else
4518# include <assert.h>
4519#endif
4520 Syntax error
4521_ACEOF
81ecdfbb 4522if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4523
81ecdfbb 4524else
7357c5b6
AM
4525 # Broken: fails on valid input.
4526continue
d7040cdb 4527fi
7357c5b6 4528rm -f conftest.err conftest.$ac_ext
d7040cdb 4529
81ecdfbb 4530 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4531 # can be detected and how.
81ecdfbb 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4533/* end confdefs.h. */
4534#include <ac_nonexistent.h>
4535_ACEOF
81ecdfbb 4536if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4537 # Broken: success on invalid input.
4538continue
dabbade6 4539else
7357c5b6
AM
4540 # Passes both tests.
4541ac_preproc_ok=:
4542break
4543fi
4544rm -f conftest.err conftest.$ac_ext
d7040cdb 4545
7357c5b6
AM
4546done
4547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4548rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4549if $ac_preproc_ok; then :
4550
4551else
4552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554as_fn_error "C preprocessor \"$CPP\" fails sanity check
4555See \`config.log' for more details." "$LINENO" 5; }
4556fi
4557
4558ac_ext=c
4559ac_cpp='$CPP $CPPFLAGS'
4560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4562ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4566$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4567if test "${ac_cv_path_GREP+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569else
4570 if test -z "$GREP"; then
4571 ac_path_GREP_found=false
4572 # Loop through the user's path and test for each of PROGNAME-LIST
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_prog in grep ggrep; do
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4581 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4582# Check for GNU ac_path_GREP and select it if it is found.
4583 # Check for GNU $ac_path_GREP
4584case `"$ac_path_GREP" --version 2>&1` in
4585*GNU*)
4586 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587*)
4588 ac_count=0
4589 $as_echo_n 0123456789 >"conftest.in"
4590 while :
4591 do
4592 cat "conftest.in" "conftest.in" >"conftest.tmp"
4593 mv "conftest.tmp" "conftest.in"
4594 cp "conftest.in" "conftest.nl"
4595 $as_echo 'GREP' >> "conftest.nl"
4596 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598 as_fn_arith $ac_count + 1 && ac_count=$as_val
4599 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4600 # Best one so far, save it but keep looking for a better one
4601 ac_cv_path_GREP="$ac_path_GREP"
4602 ac_path_GREP_max=$ac_count
4603 fi
4604 # 10*(2^10) chars as input seems more than enough
4605 test $ac_count -gt 10 && break
4606 done
4607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608esac
4609
4610 $ac_path_GREP_found && break 3
4611 done
4612 done
4613 done
4614IFS=$as_save_IFS
4615 if test -z "$ac_cv_path_GREP"; then
4616 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617 fi
dabbade6 4618else
81ecdfbb 4619 ac_cv_path_GREP=$GREP
7357c5b6 4620fi
d7040cdb 4621
81ecdfbb
RW
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4624$as_echo "$ac_cv_path_GREP" >&6; }
4625 GREP="$ac_cv_path_GREP"
d7040cdb
SE
4626
4627
81ecdfbb
RW
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4629$as_echo_n "checking for egrep... " >&6; }
4630if test "${ac_cv_path_EGREP+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
7357c5b6 4632else
81ecdfbb
RW
4633 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634 then ac_cv_path_EGREP="$GREP -E"
4635 else
4636 if test -z "$EGREP"; then
4637 ac_path_EGREP_found=false
4638 # Loop through the user's path and test for each of PROGNAME-LIST
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_prog in egrep; do
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4648# Check for GNU ac_path_EGREP and select it if it is found.
4649 # Check for GNU $ac_path_EGREP
4650case `"$ac_path_EGREP" --version 2>&1` in
4651*GNU*)
4652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653*)
4654 ac_count=0
4655 $as_echo_n 0123456789 >"conftest.in"
4656 while :
4657 do
4658 cat "conftest.in" "conftest.in" >"conftest.tmp"
4659 mv "conftest.tmp" "conftest.in"
4660 cp "conftest.in" "conftest.nl"
4661 $as_echo 'EGREP' >> "conftest.nl"
4662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664 as_fn_arith $ac_count + 1 && ac_count=$as_val
4665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666 # Best one so far, save it but keep looking for a better one
4667 ac_cv_path_EGREP="$ac_path_EGREP"
4668 ac_path_EGREP_max=$ac_count
7357c5b6 4669 fi
81ecdfbb
RW
4670 # 10*(2^10) chars as input seems more than enough
4671 test $ac_count -gt 10 && break
4672 done
4673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674esac
4675
4676 $ac_path_EGREP_found && break 3
4677 done
4678 done
4679 done
4680IFS=$as_save_IFS
4681 if test -z "$ac_cv_path_EGREP"; then
4682 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683 fi
4684else
4685 ac_cv_path_EGREP=$EGREP
4686fi
4687
4688 fi
7357c5b6 4689fi
81ecdfbb
RW
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4691$as_echo "$ac_cv_path_EGREP" >&6; }
4692 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
4693
4694
81ecdfbb
RW
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4696$as_echo_n "checking for ANSI C header files... " >&6; }
4697if test "${ac_cv_header_stdc+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
7357c5b6 4699else
81ecdfbb 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4701/* end confdefs.h. */
4702#include <stdlib.h>
4703#include <stdarg.h>
4704#include <string.h>
4705#include <float.h>
d7040cdb 4706
7357c5b6
AM
4707int
4708main ()
4709{
d7040cdb 4710
7357c5b6
AM
4711 ;
4712 return 0;
4713}
4714_ACEOF
81ecdfbb 4715if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4716 ac_cv_header_stdc=yes
4717else
81ecdfbb 4718 ac_cv_header_stdc=no
7357c5b6 4719fi
81ecdfbb 4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4721
7357c5b6
AM
4722if test $ac_cv_header_stdc = yes; then
4723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4725/* end confdefs.h. */
4726#include <string.h>
d7040cdb 4727
7357c5b6
AM
4728_ACEOF
4729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4730 $EGREP "memchr" >/dev/null 2>&1; then :
4731
7357c5b6
AM
4732else
4733 ac_cv_header_stdc=no
4734fi
4735rm -f conftest*
d7040cdb 4736
7357c5b6 4737fi
d7040cdb 4738
7357c5b6
AM
4739if test $ac_cv_header_stdc = yes; then
4740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4742/* end confdefs.h. */
4743#include <stdlib.h>
d7040cdb 4744
7357c5b6
AM
4745_ACEOF
4746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4747 $EGREP "free" >/dev/null 2>&1; then :
4748
7357c5b6
AM
4749else
4750 ac_cv_header_stdc=no
4751fi
4752rm -f conftest*
d7040cdb 4753
7357c5b6 4754fi
d7040cdb 4755
7357c5b6
AM
4756if test $ac_cv_header_stdc = yes; then
4757 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4758 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4759 :
4760else
81ecdfbb 4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4762/* end confdefs.h. */
4763#include <ctype.h>
81ecdfbb 4764#include <stdlib.h>
7357c5b6
AM
4765#if ((' ' & 0x0FF) == 0x020)
4766# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4767# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4768#else
4769# define ISLOWER(c) \
4770 (('a' <= (c) && (c) <= 'i') \
4771 || ('j' <= (c) && (c) <= 'r') \
4772 || ('s' <= (c) && (c) <= 'z'))
4773# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4774#endif
d7040cdb 4775
7357c5b6
AM
4776#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4777int
4778main ()
4779{
4780 int i;
4781 for (i = 0; i < 256; i++)
4782 if (XOR (islower (i), ISLOWER (i))
4783 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4784 return 2;
4785 return 0;
7357c5b6
AM
4786}
4787_ACEOF
81ecdfbb 4788if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4789
81ecdfbb
RW
4790else
4791 ac_cv_header_stdc=no
7357c5b6 4792fi
81ecdfbb
RW
4793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4794 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4795fi
81ecdfbb 4796
7357c5b6
AM
4797fi
4798fi
81ecdfbb
RW
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4800$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4801if test $ac_cv_header_stdc = yes; then
d7040cdb 4802
81ecdfbb 4803$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4804
7357c5b6 4805fi
d7040cdb 4806
7357c5b6 4807# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4808for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4809 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4810do :
4811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4813"
4814eval as_val=\$$as_ac_Header
4815 if test "x$as_val" = x""yes; then :
7357c5b6 4816 cat >>confdefs.h <<_ACEOF
81ecdfbb 4817#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4818_ACEOF
d7040cdb 4819
7357c5b6 4820fi
d7040cdb 4821
7357c5b6 4822done
d7040cdb
SE
4823
4824
4825
81ecdfbb
RW
4826 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4827if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4828 MINIX=yes
4829else
4830 MINIX=
4831fi
d7040cdb
SE
4832
4833
7357c5b6 4834 if test "$MINIX" = yes; then
d7040cdb 4835
81ecdfbb 4836$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
dabbade6 4837
252b5132 4838
81ecdfbb 4839$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4840
4841
81ecdfbb 4842$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4843
7357c5b6 4844 fi
d7040cdb
SE
4845
4846
81ecdfbb
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4848$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4849if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
ac48eca1 4851else
81ecdfbb 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4853/* end confdefs.h. */
ac48eca1 4854
7357c5b6
AM
4855# define __EXTENSIONS__ 1
4856 $ac_includes_default
4857int
4858main ()
4859{
87e6d782 4860
7357c5b6
AM
4861 ;
4862 return 0;
4863}
4864_ACEOF
81ecdfbb 4865if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4866 ac_cv_safe_to_define___extensions__=yes
4867else
81ecdfbb 4868 ac_cv_safe_to_define___extensions__=no
7357c5b6 4869fi
81ecdfbb 4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4871fi
81ecdfbb
RW
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4873$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4874 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4875 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
ac48eca1 4876
81ecdfbb 4877 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4878
81ecdfbb
RW
4879 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4880
4881 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4882
4883 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4884
ac48eca1 4885
ac48eca1 4886
ac48eca1 4887
87e6d782 4888
7357c5b6
AM
4889if test -n "$ac_tool_prefix"; then
4890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4891set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893$as_echo_n "checking for $ac_word... " >&6; }
4894if test "${ac_cv_prog_AR+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
dabbade6 4896else
7357c5b6
AM
4897 if test -n "$AR"; then
4898 ac_cv_prog_AR="$AR" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 4907 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4909 break 2
4910 fi
4911done
81ecdfbb
RW
4912 done
4913IFS=$as_save_IFS
ac48eca1 4914
7357c5b6
AM
4915fi
4916fi
4917AR=$ac_cv_prog_AR
4918if test -n "$AR"; then
81ecdfbb
RW
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4920$as_echo "$AR" >&6; }
dabbade6 4921else
81ecdfbb
RW
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923$as_echo "no" >&6; }
dabbade6 4924fi
6be7c12c 4925
81ecdfbb 4926
7357c5b6
AM
4927fi
4928if test -z "$ac_cv_prog_AR"; then
4929 ac_ct_AR=$AR
4930 # Extract the first word of "ar", so it can be a program name with args.
4931set dummy ar; ac_word=$2
81ecdfbb
RW
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933$as_echo_n "checking for $ac_word... " >&6; }
4934if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
7357c5b6
AM
4936else
4937 if test -n "$ac_ct_AR"; then
4938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 4947 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4949 break 2
4950 fi
4951done
81ecdfbb
RW
4952 done
4953IFS=$as_save_IFS
7357c5b6
AM
4954
4955fi
4956fi
4957ac_ct_AR=$ac_cv_prog_ac_ct_AR
4958if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4960$as_echo "$ac_ct_AR" >&6; }
7357c5b6 4961else
81ecdfbb
RW
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
7357c5b6
AM
4964fi
4965
81ecdfbb
RW
4966 if test "x$ac_ct_AR" = x; then
4967 AR=""
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970yes:)
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973ac_tool_warned=yes ;;
4974esac
4975 AR=$ac_ct_AR
4976 fi
7357c5b6
AM
4977else
4978 AR="$ac_cv_prog_AR"
4979fi
4980
4981if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4983set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985$as_echo_n "checking for $ac_word... " >&6; }
4986if test "${ac_cv_prog_RANLIB+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
7357c5b6
AM
4988else
4989 if test -n "$RANLIB"; then
4990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4991else
4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 4999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5001 break 2
5002 fi
5003done
81ecdfbb
RW
5004 done
5005IFS=$as_save_IFS
7357c5b6
AM
5006
5007fi
5008fi
5009RANLIB=$ac_cv_prog_RANLIB
5010if test -n "$RANLIB"; then
81ecdfbb
RW
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5012$as_echo "$RANLIB" >&6; }
7357c5b6 5013else
81ecdfbb
RW
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015$as_echo "no" >&6; }
7357c5b6
AM
5016fi
5017
81ecdfbb 5018
7357c5b6
AM
5019fi
5020if test -z "$ac_cv_prog_RANLIB"; then
5021 ac_ct_RANLIB=$RANLIB
5022 # Extract the first word of "ranlib", so it can be a program name with args.
5023set dummy ranlib; ac_word=$2
81ecdfbb
RW
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025$as_echo_n "checking for $ac_word... " >&6; }
5026if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
7357c5b6
AM
5028else
5029 if test -n "$ac_ct_RANLIB"; then
5030 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5039 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5041 break 2
5042 fi
5043done
81ecdfbb
RW
5044 done
5045IFS=$as_save_IFS
7357c5b6 5046
7357c5b6
AM
5047fi
5048fi
5049ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5050if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5052$as_echo "$ac_ct_RANLIB" >&6; }
7357c5b6 5053else
81ecdfbb
RW
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055$as_echo "no" >&6; }
7357c5b6
AM
5056fi
5057
81ecdfbb
RW
5058 if test "x$ac_ct_RANLIB" = x; then
5059 RANLIB=":"
5060 else
5061 case $cross_compiling:$ac_tool_warned in
5062yes:)
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5065ac_tool_warned=yes ;;
5066esac
5067 RANLIB=$ac_ct_RANLIB
5068 fi
7357c5b6
AM
5069else
5070 RANLIB="$ac_cv_prog_RANLIB"
5071fi
5072
5073
81ecdfbb
RW
5074# Check whether --enable-shared was given.
5075if test "${enable_shared+set}" = set; then :
5076 enableval=$enable_shared; p=${PACKAGE-default}
7357c5b6
AM
5077 case $enableval in
5078 yes) enable_shared=yes ;;
5079 no) enable_shared=no ;;
5080 *)
5081 enable_shared=no
5082 # Look at the argument we got. We use all the common list separators.
5083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5084 for pkg in $enableval; do
5085 IFS="$lt_save_ifs"
5086 if test "X$pkg" = "X$p"; then
5087 enable_shared=yes
5088 fi
5089 done
5090 IFS="$lt_save_ifs"
5091 ;;
5092 esac
5093else
5094 enable_shared=no
81ecdfbb
RW
5095fi
5096
7357c5b6
AM
5097
5098
5099
5100
5101
5102
5103
5104
5105
1927a18f
L
5106case `pwd` in
5107 *\ * | *\ *)
81ecdfbb
RW
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5109$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1927a18f 5110esac
7357c5b6
AM
5111
5112
7357c5b6 5113
3725885a
RW
5114macro_version='2.2.7a'
5115macro_revision='1.3134'
7357c5b6
AM
5116
5117
5118
5119
5120
5121
7357c5b6
AM
5122
5123
5124
5125
5126
5127
5128
1927a18f 5129ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5130
3725885a
RW
5131# Backslashify metacharacters that are still active within
5132# double-quoted strings.
5133sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5134
5135# Same as above, but do not quote variable references.
5136double_quote_subst='s/\(["`\\]\)/\\\1/g'
5137
5138# Sed substitution to delay expansion of an escaped shell variable in a
5139# double_quote_subst'ed string.
5140delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5141
5142# Sed substitution to delay expansion of an escaped single quote.
5143delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5144
5145# Sed substitution to avoid accidental globbing in evaled expressions
5146no_glob_subst='s/\*/\\\*/g'
5147
5148ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5149ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5150ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5153$as_echo_n "checking how to print strings... " >&6; }
5154# Test print first, because it will be a builtin if present.
5155if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5156 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5157 ECHO='print -r --'
5158elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5159 ECHO='printf %s\n'
5160else
5161 # Use this function as a fallback that always works.
5162 func_fallback_echo ()
5163 {
5164 eval 'cat <<_LTECHO_EOF
5165$1
5166_LTECHO_EOF'
5167 }
5168 ECHO='func_fallback_echo'
5169fi
5170
5171# func_echo_all arg...
5172# Invoke $ECHO with all args, space-separated.
5173func_echo_all ()
5174{
5175 $ECHO ""
5176}
5177
5178case "$ECHO" in
5179 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5180$as_echo "printf" >&6; } ;;
5181 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5182$as_echo "print -r" >&6; } ;;
5183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5184$as_echo "cat" >&6; } ;;
5185esac
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
81ecdfbb
RW
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5201$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5202if test "${ac_cv_path_SED+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
7357c5b6 5204else
81ecdfbb
RW
5205 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5206 for ac_i in 1 2 3 4 5 6 7; do
5207 ac_script="$ac_script$as_nl$ac_script"
5208 done
5209 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5210 { ac_script=; unset ac_script;}
5211 if test -z "$SED"; then
5212 ac_path_SED_found=false
5213 # Loop through the user's path and test for each of PROGNAME-LIST
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
81ecdfbb 5219 for ac_prog in sed gsed; do
7357c5b6 5220 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5221 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5222 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5223# Check for GNU ac_path_SED and select it if it is found.
5224 # Check for GNU $ac_path_SED
5225case `"$ac_path_SED" --version 2>&1` in
5226*GNU*)
5227 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5228*)
5229 ac_count=0
5230 $as_echo_n 0123456789 >"conftest.in"
5231 while :
5232 do
5233 cat "conftest.in" "conftest.in" >"conftest.tmp"
5234 mv "conftest.tmp" "conftest.in"
5235 cp "conftest.in" "conftest.nl"
5236 $as_echo '' >> "conftest.nl"
5237 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5239 as_fn_arith $ac_count + 1 && ac_count=$as_val
5240 if test $ac_count -gt ${ac_path_SED_max-0}; then
5241 # Best one so far, save it but keep looking for a better one
5242 ac_cv_path_SED="$ac_path_SED"
5243 ac_path_SED_max=$ac_count
5244 fi
5245 # 10*(2^10) chars as input seems more than enough
5246 test $ac_count -gt 10 && break
5247 done
5248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5249esac
5250
5251 $ac_path_SED_found && break 3
7357c5b6
AM
5252 done
5253 done
81ecdfbb 5254 done
7357c5b6 5255IFS=$as_save_IFS
81ecdfbb
RW
5256 if test -z "$ac_cv_path_SED"; then
5257 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5258 fi
81ecdfbb
RW
5259else
5260 ac_cv_path_SED=$SED
7357c5b6
AM
5261fi
5262
81ecdfbb
RW
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5265$as_echo "$ac_cv_path_SED" >&6; }
5266 SED="$ac_cv_path_SED"
5267 rm -f conftest.sed
7357c5b6
AM
5268
5269test -z "$SED" && SED=sed
5270Xsed="$SED -e 1s/^X//"
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
81ecdfbb
RW
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5283$as_echo_n "checking for fgrep... " >&6; }
5284if test "${ac_cv_path_FGREP+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
7357c5b6 5286else
81ecdfbb
RW
5287 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5288 then ac_cv_path_FGREP="$GREP -F"
5289 else
5290 if test -z "$FGREP"; then
5291 ac_path_FGREP_found=false
5292 # Loop through the user's path and test for each of PROGNAME-LIST
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295do
5296 IFS=$as_save_IFS
5297 test -z "$as_dir" && as_dir=.
5298 for ac_prog in fgrep; do
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5302# Check for GNU ac_path_FGREP and select it if it is found.
5303 # Check for GNU $ac_path_FGREP
5304case `"$ac_path_FGREP" --version 2>&1` in
5305*GNU*)
5306 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5307*)
5308 ac_count=0
5309 $as_echo_n 0123456789 >"conftest.in"
5310 while :
5311 do
5312 cat "conftest.in" "conftest.in" >"conftest.tmp"
5313 mv "conftest.tmp" "conftest.in"
5314 cp "conftest.in" "conftest.nl"
5315 $as_echo 'FGREP' >> "conftest.nl"
5316 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318 as_fn_arith $ac_count + 1 && ac_count=$as_val
5319 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5320 # Best one so far, save it but keep looking for a better one
5321 ac_cv_path_FGREP="$ac_path_FGREP"
5322 ac_path_FGREP_max=$ac_count
7357c5b6 5323 fi
81ecdfbb
RW
5324 # 10*(2^10) chars as input seems more than enough
5325 test $ac_count -gt 10 && break
5326 done
5327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328esac
5329
5330 $ac_path_FGREP_found && break 3
5331 done
5332 done
5333 done
5334IFS=$as_save_IFS
5335 if test -z "$ac_cv_path_FGREP"; then
5336 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337 fi
5338else
5339 ac_cv_path_FGREP=$FGREP
5340fi
5341
5342 fi
7357c5b6 5343fi
81ecdfbb
RW
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5345$as_echo "$ac_cv_path_FGREP" >&6; }
5346 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5347
5348
5349test -z "$GREP" && GREP=grep
d7040cdb 5350
d7040cdb 5351
d7040cdb 5352
ac48eca1
AO
5353
5354
5355
ac48eca1 5356
ac48eca1 5357
ac48eca1 5358
ac48eca1 5359
ac48eca1 5360
ac48eca1 5361
ac48eca1 5362
ac48eca1 5363
ac48eca1 5364
ac48eca1 5365
dabbade6
L
5366
5367
5368
81ecdfbb
RW
5369# Check whether --with-gnu-ld was given.
5370if test "${with_gnu_ld+set}" = set; then :
5371 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dabbade6
L
5372else
5373 with_gnu_ld=no
81ecdfbb
RW
5374fi
5375
dabbade6
L
5376ac_prog=ld
5377if test "$GCC" = yes; then
5378 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380$as_echo_n "checking for ld used by $CC... " >&6; }
dabbade6
L
5381 case $host in
5382 *-*-mingw*)
5383 # gcc leaves a trailing carriage return which upsets mingw
5384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385 *)
5386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387 esac
5388 case $ac_prog in
5389 # Accept absolute paths.
5390 [\\/]* | ?:[\\/]*)
5391 re_direlt='/[^/][^/]*/\.\./'
5392 # Canonicalize the pathname of ld
5393 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396 done
5397 test -z "$LD" && LD="$ac_prog"
5398 ;;
5399 "")
5400 # If it fails, then pretend we aren't using GCC.
5401 ac_prog=ld
5402 ;;
5403 *)
5404 # If it is relative, then search for the first ld in PATH.
5405 with_gnu_ld=unknown
5406 ;;
5407 esac
5408elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410$as_echo_n "checking for GNU ld... " >&6; }
dabbade6 5411else
81ecdfbb
RW
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413$as_echo_n "checking for non-GNU ld... " >&6; }
dabbade6 5414fi
81ecdfbb
RW
5415if test "${lt_cv_path_LD+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
ac48eca1 5417else
dabbade6
L
5418 if test -z "$LD"; then
5419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5420 for ac_dir in $PATH; do
5421 IFS="$lt_save_ifs"
5422 test -z "$ac_dir" && ac_dir=.
5423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5424 lt_cv_path_LD="$ac_dir/$ac_prog"
5425 # Check to see if the program is GNU ld. I'd rather use --version,
5426 # but apparently some variants of GNU ld only accept -v.
5427 # Break only if it was the GNU/non-GNU ld that we prefer.
5428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5429 *GNU* | *'with BFD'*)
5430 test "$with_gnu_ld" != no && break
5431 ;;
5432 *)
5433 test "$with_gnu_ld" != yes && break
5434 ;;
5435 esac
5436 fi
5437 done
5438 IFS="$lt_save_ifs"
ac48eca1 5439else
dabbade6 5440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5441fi
5442fi
dabbade6
L
5443
5444LD="$lt_cv_path_LD"
5445if test -n "$LD"; then
81ecdfbb
RW
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5447$as_echo "$LD" >&6; }
ac48eca1 5448else
81ecdfbb
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
ac48eca1 5451fi
81ecdfbb
RW
5452test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5454$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5455if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
ac48eca1 5457else
dabbade6
L
5458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5459case `$LD -v 2>&1 </dev/null` in
5460*GNU* | *'with BFD'*)
5461 lt_cv_prog_gnu_ld=yes
5462 ;;
5463*)
5464 lt_cv_prog_gnu_ld=no
5465 ;;
5466esac
ac48eca1 5467fi
81ecdfbb
RW
5468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5469$as_echo "$lt_cv_prog_gnu_ld" >&6; }
dabbade6 5470with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5471
5472
5473
5474
5475
5476
5477
5478
5479
81ecdfbb
RW
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5481$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5482if test "${lt_cv_path_NM+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
ac48eca1 5484else
dabbade6
L
5485 if test -n "$NM"; then
5486 # Let the user override the test.
5487 lt_cv_path_NM="$NM"
ac48eca1 5488else
dabbade6
L
5489 lt_nm_to_check="${ac_tool_prefix}nm"
5490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5491 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 5492 fi
dabbade6
L
5493 for lt_tmp_nm in $lt_nm_to_check; do
5494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496 IFS="$lt_save_ifs"
5497 test -z "$ac_dir" && ac_dir=.
5498 tmp_nm="$ac_dir/$lt_tmp_nm"
5499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5500 # Check to see if the nm accepts a BSD-compat flag.
5501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5502 # nm: unknown option "B" ignored
5503 # Tru64's nm complains that /dev/null is an invalid object file
5504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5505 */dev/null* | *'Invalid file or object type'*)
5506 lt_cv_path_NM="$tmp_nm -B"
5507 break
5508 ;;
5509 *)
5510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5511 */dev/null*)
5512 lt_cv_path_NM="$tmp_nm -p"
5513 break
5514 ;;
5515 *)
5516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5517 continue # so that we can try to find one that supports BSD flags
5518 ;;
5519 esac
5520 ;;
5521 esac
5522 fi
5523 done
5524 IFS="$lt_save_ifs"
5525 done
5526 : ${lt_cv_path_NM=no}
ac48eca1
AO
5527fi
5528fi
81ecdfbb
RW
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5530$as_echo "$lt_cv_path_NM" >&6; }
dabbade6
L
5531if test "$lt_cv_path_NM" != "no"; then
5532 NM="$lt_cv_path_NM"
ac48eca1 5533else
dabbade6 5534 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5535 if test -n "$DUMPBIN"; then :
5536 # Let the user override the test.
5537 else
5538 if test -n "$ac_tool_prefix"; then
5539 for ac_prog in dumpbin "link -dump"
dabbade6
L
5540 do
5541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544$as_echo_n "checking for $ac_word... " >&6; }
5545if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
ac48eca1 5547else
dabbade6
L
5548 if test -n "$DUMPBIN"; then
5549 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5550else
979273e3
NN
5551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552for as_dir in $PATH
5553do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 5558 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
5560 break 2
5561 fi
5562done
81ecdfbb
RW
5563 done
5564IFS=$as_save_IFS
979273e3 5565
ac48eca1
AO
5566fi
5567fi
dabbade6
L
5568DUMPBIN=$ac_cv_prog_DUMPBIN
5569if test -n "$DUMPBIN"; then
81ecdfbb
RW
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5571$as_echo "$DUMPBIN" >&6; }
ac48eca1 5572else
81ecdfbb
RW
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574$as_echo "no" >&6; }
ac48eca1
AO
5575fi
5576
81ecdfbb 5577
dabbade6
L
5578 test -n "$DUMPBIN" && break
5579 done
ac48eca1 5580fi
dabbade6
L
5581if test -z "$DUMPBIN"; then
5582 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5583 for ac_prog in dumpbin "link -dump"
dabbade6
L
5584do
5585 # Extract the first word of "$ac_prog", so it can be a program name with args.
5586set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588$as_echo_n "checking for $ac_word... " >&6; }
5589if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
ac48eca1 5591else
dabbade6
L
5592 if test -n "$ac_ct_DUMPBIN"; then
5593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 5602 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5604 break 2
252b5132 5605 fi
d7040cdb 5606done
81ecdfbb
RW
5607 done
5608IFS=$as_save_IFS
252b5132 5609
d7040cdb
SE
5610fi
5611fi
dabbade6
L
5612ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5613if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5615$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5616else
81ecdfbb
RW
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618$as_echo "no" >&6; }
d7040cdb 5619fi
4867be41 5620
81ecdfbb 5621
dabbade6 5622 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5623done
32fba81d 5624
81ecdfbb
RW
5625 if test "x$ac_ct_DUMPBIN" = x; then
5626 DUMPBIN=":"
5627 else
5628 case $cross_compiling:$ac_tool_warned in
5629yes:)
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5632ac_tool_warned=yes ;;
5633esac
5634 DUMPBIN=$ac_ct_DUMPBIN
5635 fi
d7040cdb 5636fi
979273e3 5637
3725885a
RW
5638 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5639 *COFF*)
5640 DUMPBIN="$DUMPBIN -symbols"
5641 ;;
5642 *)
5643 DUMPBIN=:
5644 ;;
5645 esac
5646 fi
979273e3 5647
dabbade6
L
5648 if test "$DUMPBIN" != ":"; then
5649 NM="$DUMPBIN"
5650 fi
5651fi
5652test -z "$NM" && NM=nm
ac48eca1 5653
252b5132 5654
252b5132 5655
979273e3 5656
ac48eca1 5657
d7040cdb 5658
81ecdfbb
RW
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5660$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5661if test "${lt_cv_nm_interface+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
dabbade6
L
5663else
5664 lt_cv_nm_interface="BSD nm"
5665 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5666 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
dabbade6
L
5667 (eval "$ac_compile" 2>conftest.err)
5668 cat conftest.err >&5
3725885a 5669 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5670 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5671 cat conftest.err >&5
3725885a 5672 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
dabbade6
L
5673 cat conftest.out >&5
5674 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5675 lt_cv_nm_interface="MS dumpbin"
5676 fi
5677 rm -f conftest*
5678fi
81ecdfbb
RW
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5680$as_echo "$lt_cv_nm_interface" >&6; }
d7040cdb 5681
81ecdfbb
RW
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5683$as_echo_n "checking whether ln -s works... " >&6; }
dabbade6
L
5684LN_S=$as_ln_s
5685if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687$as_echo "yes" >&6; }
dabbade6 5688else
81ecdfbb
RW
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5690$as_echo "no, using $LN_S" >&6; }
dabbade6
L
5691fi
5692
5693# find the maximum length of command line arguments
81ecdfbb
RW
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5695$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5696if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5697 $as_echo_n "(cached) " >&6
dabbade6
L
5698else
5699 i=0
5700 teststring="ABCD"
5701
5702 case $build_os in
5703 msdosdjgpp*)
5704 # On DJGPP, this test can blow up pretty badly due to problems in libc
5705 # (any single argument exceeding 2000 bytes causes a buffer overrun
5706 # during glob expansion). Even if it were fixed, the result of this
5707 # check would be larger than it should be.
5708 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5709 ;;
5710
5711 gnu*)
5712 # Under GNU Hurd, this test is not required because there is
5713 # no limit to the length of command line arguments.
5714 # Libtool will interpret -1 as no limit whatsoever
5715 lt_cv_sys_max_cmd_len=-1;
5716 ;;
5717
1927a18f 5718 cygwin* | mingw* | cegcc*)
dabbade6
L
5719 # On Win9x/ME, this test blows up -- it succeeds, but takes
5720 # about 5 minutes as the teststring grows exponentially.
5721 # Worse, since 9x/ME are not pre-emptively multitasking,
5722 # you end up with a "frozen" computer, even though with patience
5723 # the test eventually succeeds (with a max line length of 256k).
5724 # Instead, let's just punt: use the minimum linelength reported by
5725 # all of the supported platforms: 8192 (on NT/2K/XP).
5726 lt_cv_sys_max_cmd_len=8192;
5727 ;;
5728
3725885a
RW
5729 mint*)
5730 # On MiNT this can take a long time and run out of memory.
5731 lt_cv_sys_max_cmd_len=8192;
5732 ;;
5733
dabbade6
L
5734 amigaos*)
5735 # On AmigaOS with pdksh, this test takes hours, literally.
5736 # So we just punt and use a minimum line length of 8192.
5737 lt_cv_sys_max_cmd_len=8192;
5738 ;;
5739
5740 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5741 # This has been around since 386BSD, at least. Likely further.
5742 if test -x /sbin/sysctl; then
5743 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5744 elif test -x /usr/sbin/sysctl; then
5745 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5746 else
5747 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5748 fi
5749 # And add a safety zone
5750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5752 ;;
5753
5754 interix*)
5755 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5756 lt_cv_sys_max_cmd_len=196608
5757 ;;
5758
5759 osf*)
5760 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5761 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5762 # nice to cause kernel panics so lets avoid the loop below.
5763 # First set a reasonable default.
5764 lt_cv_sys_max_cmd_len=16384
5765 #
5766 if test -x /sbin/sysconfig; then
5767 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5768 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5769 esac
5770 fi
5771 ;;
5772 sco3.2v5*)
5773 lt_cv_sys_max_cmd_len=102400
5774 ;;
5775 sysv5* | sco5v6* | sysv4.2uw2*)
5776 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5777 if test -n "$kargmax"; then
5778 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5779 else
5780 lt_cv_sys_max_cmd_len=32768
5781 fi
d7040cdb
SE
5782 ;;
5783 *)
1927a18f
L
5784 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5785 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5788 else
5789 # Make teststring a little bigger before we do anything with it.
5790 # a 1K string should be a reasonable start.
5791 for i in 1 2 3 4 5 6 7 8 ; do
5792 teststring=$teststring$teststring
5793 done
5794 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5795 # If test is not a shell built-in, we'll probably end up computing a
5796 # maximum length that is only half of the actual maximum length, but
5797 # we can't tell.
3725885a
RW
5798 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5799 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
dabbade6
L
5800 test $i != 17 # 1/2 MB should be enough
5801 do
5802 i=`expr $i + 1`
5803 teststring=$teststring$teststring
5804 done
5805 # Only check the string length outside the loop.
5806 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5807 teststring=
5808 # Add a significant safety factor because C++ compilers can tack on
5809 # massive amounts of additional arguments before passing them to the
5810 # linker. It appears as though 1/2 is a usable value.
5811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5812 fi
d7040cdb
SE
5813 ;;
5814 esac
252b5132 5815
dabbade6 5816fi
252b5132 5817
dabbade6 5818if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5820$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
dabbade6 5821else
81ecdfbb
RW
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5823$as_echo "none" >&6; }
dabbade6
L
5824fi
5825max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5826
252b5132 5827
979273e3 5828
979273e3 5829
252b5132 5830
252b5132 5831
dabbade6
L
5832: ${CP="cp -f"}
5833: ${MV="mv -f"}
5834: ${RM="rm -f"}
252b5132 5835
81ecdfbb
RW
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5837$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
dabbade6
L
5838# Try some XSI features
5839xsi_shell=no
5840( _lt_dummy="a/b/c"
5841 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5842 = c,a/b,, \
5843 && eval 'test $(( 1 + 1 )) -eq 2 \
5844 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6 5845 && xsi_shell=yes
81ecdfbb
RW
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5847$as_echo "$xsi_shell" >&6; }
252b5132 5848
252b5132 5849
81ecdfbb
RW
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5851$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
dabbade6
L
5852lt_shell_append=no
5853( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5854 >/dev/null 2>&1 \
5855 && lt_shell_append=yes
81ecdfbb
RW
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5857$as_echo "$lt_shell_append" >&6; }
252b5132 5858
ac48eca1 5859
dabbade6
L
5860if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5861 lt_unset=unset
5862else
5863 lt_unset=false
5864fi
979273e3
NN
5865
5866
5867
5868
ac48eca1 5869
dabbade6
L
5870# test EBCDIC or ASCII
5871case `echo X|tr X '\101'` in
5872 A) # ASCII based system
5873 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5874 lt_SP2NL='tr \040 \012'
5875 lt_NL2SP='tr \015\012 \040\040'
5876 ;;
5877 *) # EBCDIC based system
5878 lt_SP2NL='tr \100 \n'
5879 lt_NL2SP='tr \r\n \100\100'
5880 ;;
5881esac
9e9b66a9 5882
1ad12f97 5883
1ad12f97 5884
9e9b66a9 5885
1ad12f97 5886
a541e3ce 5887
9e9b66a9 5888
a2d91340
AC
5889
5890
81ecdfbb
RW
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5892$as_echo_n "checking for $LD option to reload object files... " >&6; }
5893if test "${lt_cv_ld_reload_flag+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
dabbade6
L
5895else
5896 lt_cv_ld_reload_flag='-r'
5897fi
81ecdfbb
RW
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5899$as_echo "$lt_cv_ld_reload_flag" >&6; }
dabbade6
L
5900reload_flag=$lt_cv_ld_reload_flag
5901case $reload_flag in
5902"" | " "*) ;;
5903*) reload_flag=" $reload_flag" ;;
5904esac
5905reload_cmds='$LD$reload_flag -o $output$reload_objs'
5906case $host_os in
5907 darwin*)
5908 if test "$GCC" = yes; then
5909 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5910 else
5911 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5912 fi
5913 ;;
5914esac
9e9b66a9
AM
5915
5916
5917
252b5132 5918
252b5132 5919
252b5132 5920
252b5132 5921
252b5132 5922
d7040cdb 5923
1927a18f
L
5924if test -n "$ac_tool_prefix"; then
5925 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5926set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
1927a18f
L
5931else
5932 if test -n "$OBJDUMP"; then
5933 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 5942 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5944 break 2
5945 fi
5946done
81ecdfbb
RW
5947 done
5948IFS=$as_save_IFS
1927a18f
L
5949
5950fi
5951fi
5952OBJDUMP=$ac_cv_prog_OBJDUMP
5953if test -n "$OBJDUMP"; then
81ecdfbb
RW
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5955$as_echo "$OBJDUMP" >&6; }
1927a18f 5956else
81ecdfbb
RW
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958$as_echo "no" >&6; }
1927a18f
L
5959fi
5960
81ecdfbb 5961
1927a18f
L
5962fi
5963if test -z "$ac_cv_prog_OBJDUMP"; then
5964 ac_ct_OBJDUMP=$OBJDUMP
5965 # Extract the first word of "objdump", so it can be a program name with args.
5966set dummy objdump; ac_word=$2
81ecdfbb
RW
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968$as_echo_n "checking for $ac_word... " >&6; }
5969if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
1927a18f
L
5971else
5972 if test -n "$ac_ct_OBJDUMP"; then
5973 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 5982 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5984 break 2
5985 fi
5986done
81ecdfbb
RW
5987 done
5988IFS=$as_save_IFS
1927a18f 5989
1927a18f
L
5990fi
5991fi
5992ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5993if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5995$as_echo "$ac_ct_OBJDUMP" >&6; }
1927a18f 5996else
81ecdfbb
RW
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
1927a18f
L
5999fi
6000
81ecdfbb
RW
6001 if test "x$ac_ct_OBJDUMP" = x; then
6002 OBJDUMP="false"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005yes:)
6006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008ac_tool_warned=yes ;;
6009esac
6010 OBJDUMP=$ac_ct_OBJDUMP
6011 fi
1927a18f
L
6012else
6013 OBJDUMP="$ac_cv_prog_OBJDUMP"
6014fi
6015
6016test -z "$OBJDUMP" && OBJDUMP=objdump
6017
6018
6019
6020
6021
6022
6023
6024
d7040cdb 6025
81ecdfbb
RW
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6027$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6028if test "${lt_cv_deplibs_check_method+set}" = set; then :
6029 $as_echo_n "(cached) " >&6
252b5132 6030else
dabbade6
L
6031 lt_cv_file_magic_cmd='$MAGIC_CMD'
6032lt_cv_file_magic_test_file=
6033lt_cv_deplibs_check_method='unknown'
6034# Need to set the preceding variable on all platforms that support
6035# interlibrary dependencies.
6036# 'none' -- dependencies not supported.
6037# `unknown' -- same as none, but documents that we really don't know.
6038# 'pass_all' -- all dependencies passed with no checks.
6039# 'test_compile' -- check by making test program.
6040# 'file_magic [[regex]]' -- check by looking for files in library path
6041# which responds to the $file_magic_cmd with a given extended regex.
6042# If you have `file' or equivalent on your system and you're not sure
6043# whether `pass_all' will *always* work, you probably want this one.
8ae85421 6044
dabbade6 6045case $host_os in
50e7d84b 6046aix[4-9]*)
dabbade6
L
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
979273e3 6049
dabbade6
L
6050beos*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
24443139 6053
dabbade6
L
6054bsdi[45]*)
6055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6056 lt_cv_file_magic_cmd='/usr/bin/file -L'
6057 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 6058 ;;
dabbade6
L
6059
6060cygwin*)
6061 # func_win32_libid is a shell function defined in ltmain.sh
6062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6063 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6064 ;;
dabbade6
L
6065
6066mingw* | pw32*)
6067 # Base MSYS/MinGW do not provide the 'file' command needed by
6068 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6069 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6070 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6071 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
dabbade6
L
6072 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6073 lt_cv_file_magic_cmd='func_win32_libid'
6074 else
6075 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6076 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
6077 fi
6078 ;;
dabbade6 6079
3725885a 6080cegcc*)
1927a18f
L
6081 # use the weaker test based on 'objdump'. See mingw*.
6082 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6083 lt_cv_file_magic_cmd='$OBJDUMP -f'
6084 ;;
6085
dabbade6
L
6086darwin* | rhapsody*)
6087 lt_cv_deplibs_check_method=pass_all
d7040cdb 6088 ;;
dabbade6
L
6089
6090freebsd* | dragonfly*)
6091 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6092 case $host_cpu in
6093 i*86 )
6094 # Not sure whether the presence of OpenBSD here was a mistake.
6095 # Let's accept both of them until this is cleared up.
6096 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6097 lt_cv_file_magic_cmd=/usr/bin/file
6098 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6099 ;;
6100 esac
6101 else
6102 lt_cv_deplibs_check_method=pass_all
6103 fi
d7040cdb 6104 ;;
dabbade6
L
6105
6106gnu*)
6107 lt_cv_deplibs_check_method=pass_all
d7040cdb 6108 ;;
dabbade6 6109
3725885a
RW
6110haiku*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
dabbade6
L
6114hpux10.20* | hpux11*)
6115 lt_cv_file_magic_cmd=/usr/bin/file
6116 case $host_cpu in
6117 ia64*)
6118 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6119 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6120 ;;
6121 hppa*64*)
3725885a 6122 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]'
dabbade6
L
6123 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6124 ;;
6125 *)
3725885a 6126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
dabbade6
L
6127 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6128 ;;
6129 esac
d7040cdb 6130 ;;
24443139 6131
dabbade6
L
6132interix[3-9]*)
6133 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6135 ;;
24443139 6136
dabbade6
L
6137irix5* | irix6* | nonstopux*)
6138 case $LD in
6139 *-32|*"-32 ") libmagic=32-bit;;
6140 *-n32|*"-n32 ") libmagic=N32;;
6141 *-64|*"-64 ") libmagic=64-bit;;
6142 *) libmagic=never-match;;
6143 esac
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
8ae85421 6146
dabbade6 6147# This must be Linux ELF.
58e24671 6148linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
24443139 6151
dabbade6
L
6152netbsd*)
6153 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6155 else
6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6157 fi
d7040cdb 6158 ;;
24443139 6159
dabbade6
L
6160newos6*)
6161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6162 lt_cv_file_magic_cmd=/usr/bin/file
6163 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6164 ;;
d7040cdb 6165
dabbade6
L
6166*nto* | *qnx*)
6167 lt_cv_deplibs_check_method=pass_all
6168 ;;
d7040cdb 6169
dabbade6
L
6170openbsd*)
6171 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 6173 else
dabbade6 6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 6175 fi
dabbade6 6176 ;;
24443139 6177
dabbade6
L
6178osf3* | osf4* | osf5*)
6179 lt_cv_deplibs_check_method=pass_all
6180 ;;
24443139 6181
dabbade6
L
6182rdos*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
81172ff2 6185
dabbade6
L
6186solaris*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
81172ff2 6189
dabbade6
L
6190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
252b5132 6193
dabbade6
L
6194sysv4 | sysv4.3*)
6195 case $host_vendor in
6196 motorola)
6197 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]'
6198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6199 ;;
6200 ncr)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203 sequent)
6204 lt_cv_file_magic_cmd='/bin/file'
6205 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6206 ;;
6207 sni)
6208 lt_cv_file_magic_cmd='/bin/file'
6209 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6210 lt_cv_file_magic_test_file=/lib/libc.so
6211 ;;
6212 siemens)
6213 lt_cv_deplibs_check_method=pass_all
6214 ;;
6215 pc)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218 esac
6219 ;;
252b5132 6220
dabbade6
L
6221tpf*)
6222 lt_cv_deplibs_check_method=pass_all
6223 ;;
6224esac
979273e3 6225
dabbade6 6226fi
81ecdfbb
RW
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6228$as_echo "$lt_cv_deplibs_check_method" >&6; }
dabbade6
L
6229file_magic_cmd=$lt_cv_file_magic_cmd
6230deplibs_check_method=$lt_cv_deplibs_check_method
6231test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6232
979273e3 6233
979273e3 6234
dabbade6
L
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if test "${ac_cv_prog_AR+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
dabbade6
L
6251else
6252 if test -n "$AR"; then
6253 ac_cv_prog_AR="$AR" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6262 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6264 break 2
252b5132 6265 fi
979273e3 6266done
81ecdfbb
RW
6267 done
6268IFS=$as_save_IFS
979273e3 6269
dabbade6
L
6270fi
6271fi
6272AR=$ac_cv_prog_AR
6273if test -n "$AR"; then
81ecdfbb
RW
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6275$as_echo "$AR" >&6; }
dabbade6 6276else
81ecdfbb
RW
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278$as_echo "no" >&6; }
979273e3 6279fi
d7040cdb 6280
81ecdfbb 6281
252b5132 6282fi
dabbade6
L
6283if test -z "$ac_cv_prog_AR"; then
6284 ac_ct_AR=$AR
6285 # Extract the first word of "ar", so it can be a program name with args.
6286set dummy ar; ac_word=$2
81ecdfbb
RW
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
6289if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
979273e3 6291else
dabbade6
L
6292 if test -n "$ac_ct_AR"; then
6293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6302 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6304 break 2
6305 fi
6306done
81ecdfbb
RW
6307 done
6308IFS=$as_save_IFS
dabbade6 6309
dabbade6
L
6310fi
6311fi
6312ac_ct_AR=$ac_cv_prog_ac_ct_AR
6313if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6315$as_echo "$ac_ct_AR" >&6; }
dabbade6 6316else
81ecdfbb
RW
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
252b5132
RH
6319fi
6320
81ecdfbb
RW
6321 if test "x$ac_ct_AR" = x; then
6322 AR="false"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325yes:)
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328ac_tool_warned=yes ;;
6329esac
6330 AR=$ac_ct_AR
6331 fi
dabbade6
L
6332else
6333 AR="$ac_cv_prog_AR"
6334fi
252b5132 6335
dabbade6
L
6336test -z "$AR" && AR=ar
6337test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 6338
979273e3 6339
979273e3 6340
979273e3 6341
252b5132 6342
979273e3 6343
979273e3 6344
252b5132 6345
979273e3 6346
979273e3 6347
979273e3 6348
dabbade6
L
6349if test -n "$ac_tool_prefix"; then
6350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6351set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6353$as_echo_n "checking for $ac_word... " >&6; }
6354if test "${ac_cv_prog_STRIP+set}" = set; then :
6355 $as_echo_n "(cached) " >&6
dabbade6
L
6356else
6357 if test -n "$STRIP"; then
6358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6359else
6360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363 IFS=$as_save_IFS
6364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6369 break 2
6370 fi
6371done
81ecdfbb
RW
6372 done
6373IFS=$as_save_IFS
979273e3 6374
dabbade6
L
6375fi
6376fi
6377STRIP=$ac_cv_prog_STRIP
6378if test -n "$STRIP"; then
81ecdfbb
RW
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6380$as_echo "$STRIP" >&6; }
dabbade6 6381else
81ecdfbb
RW
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6383$as_echo "no" >&6; }
dabbade6 6384fi
979273e3 6385
81ecdfbb 6386
dabbade6
L
6387fi
6388if test -z "$ac_cv_prog_STRIP"; then
6389 ac_ct_STRIP=$STRIP
6390 # Extract the first word of "strip", so it can be a program name with args.
6391set dummy strip; ac_word=$2
81ecdfbb
RW
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6395 $as_echo_n "(cached) " >&6
dabbade6
L
6396else
6397 if test -n "$ac_ct_STRIP"; then
6398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403 IFS=$as_save_IFS
6404 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6405 for ac_exec_ext in '' $ac_executable_extensions; do
6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6407 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6409 break 2
6410 fi
6411done
81ecdfbb
RW
6412 done
6413IFS=$as_save_IFS
979273e3 6414
dabbade6
L
6415fi
6416fi
6417ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6418if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6420$as_echo "$ac_ct_STRIP" >&6; }
dabbade6 6421else
81ecdfbb
RW
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
dabbade6 6424fi
979273e3 6425
81ecdfbb
RW
6426 if test "x$ac_ct_STRIP" = x; then
6427 STRIP=":"
6428 else
6429 case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6433ac_tool_warned=yes ;;
6434esac
6435 STRIP=$ac_ct_STRIP
6436 fi
dabbade6
L
6437else
6438 STRIP="$ac_cv_prog_STRIP"
6439fi
979273e3 6440
dabbade6 6441test -z "$STRIP" && STRIP=:
979273e3 6442
d7040cdb 6443
979273e3 6444
d7040cdb 6445
979273e3 6446
979273e3 6447
dabbade6
L
6448if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6450set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452$as_echo_n "checking for $ac_word... " >&6; }
6453if test "${ac_cv_prog_RANLIB+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
979273e3 6455else
dabbade6
L
6456 if test -n "$RANLIB"; then
6457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6458else
6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6460for as_dir in $PATH
6461do
6462 IFS=$as_save_IFS
6463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6466 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6468 break 2
6469 fi
6470done
81ecdfbb
RW
6471 done
6472IFS=$as_save_IFS
979273e3 6473
979273e3 6474fi
979273e3 6475fi
dabbade6
L
6476RANLIB=$ac_cv_prog_RANLIB
6477if test -n "$RANLIB"; then
81ecdfbb
RW
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6479$as_echo "$RANLIB" >&6; }
dabbade6 6480else
81ecdfbb
RW
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482$as_echo "no" >&6; }
dabbade6 6483fi
d7040cdb 6484
81ecdfbb 6485
d7040cdb 6486fi
dabbade6
L
6487if test -z "$ac_cv_prog_RANLIB"; then
6488 ac_ct_RANLIB=$RANLIB
6489 # Extract the first word of "ranlib", so it can be a program name with args.
6490set dummy ranlib; ac_word=$2
81ecdfbb
RW
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492$as_echo_n "checking for $ac_word... " >&6; }
6493if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
979273e3 6495else
dabbade6
L
6496 if test -n "$ac_ct_RANLIB"; then
6497 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6498else
6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500for as_dir in $PATH
d7040cdb 6501do
dabbade6
L
6502 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6506 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6508 break 2
979273e3 6509 fi
dabbade6 6510done
81ecdfbb
RW
6511 done
6512IFS=$as_save_IFS
dabbade6 6513
979273e3 6514fi
dabbade6
L
6515fi
6516ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6517if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6519$as_echo "$ac_ct_RANLIB" >&6; }
979273e3 6520else
81ecdfbb
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522$as_echo "no" >&6; }
d7040cdb 6523fi
d7040cdb 6524
81ecdfbb
RW
6525 if test "x$ac_ct_RANLIB" = x; then
6526 RANLIB=":"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529yes:)
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532ac_tool_warned=yes ;;
6533esac
6534 RANLIB=$ac_ct_RANLIB
6535 fi
d7040cdb 6536else
dabbade6 6537 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6538fi
979273e3 6539
dabbade6 6540test -z "$RANLIB" && RANLIB=:
979273e3 6541
252b5132 6542
252b5132 6543
d7040cdb 6544
d7040cdb 6545
d7040cdb 6546
dabbade6 6547# Determine commands to create old-style static archives.
1927a18f 6548old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6549old_postinstall_cmds='chmod 644 $oldlib'
6550old_postuninstall_cmds=
d7040cdb 6551
dabbade6
L
6552if test -n "$RANLIB"; then
6553 case $host_os in
6554 openbsd*)
6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6556 ;;
6557 *)
6558 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6559 ;;
6560 esac
6561 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6562fi
6563
3725885a
RW
6564case $host_os in
6565 darwin*)
6566 lock_old_archive_extraction=yes ;;
6567 *)
6568 lock_old_archive_extraction=no ;;
6569esac
6570
6571
6572
6573
6574
6575
d7040cdb
SE
6576
6577
d7040cdb 6578
d7040cdb 6579
252b5132 6580
d7040cdb 6581
d7040cdb 6582
d7040cdb
SE
6583
6584
6585
d7040cdb 6586
d7040cdb 6587
d7040cdb 6588
252b5132 6589
d7040cdb
SE
6590
6591
6592
d7040cdb 6593
d7040cdb
SE
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
dabbade6
L
6609# If no C compiler was specified, use CC.
6610LTCC=${LTCC-"$CC"}
d7040cdb 6611
dabbade6
L
6612# If no C compiler flags were specified, use CFLAGS.
6613LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6614
dabbade6
L
6615# Allow CC to be a program name with arguments.
6616compiler=$CC
d7040cdb
SE
6617
6618
dabbade6 6619# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6621$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6622if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6623 $as_echo_n "(cached) " >&6
dabbade6 6624else
d7040cdb 6625
dabbade6
L
6626# These are sane defaults that work on at least a few old systems.
6627# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6628
dabbade6
L
6629# Character class describing NM global symbol codes.
6630symcode='[BCDEGRST]'
d7040cdb 6631
dabbade6
L
6632# Regexp to match symbols that can be accessed directly from C.
6633sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6634
dabbade6
L
6635# Define system-specific variables.
6636case $host_os in
6637aix*)
6638 symcode='[BCDT]'
6639 ;;
1927a18f 6640cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6641 symcode='[ABCDGISTW]'
6642 ;;
6643hpux*)
6644 if test "$host_cpu" = ia64; then
6645 symcode='[ABCDEGRST]'
6646 fi
6647 ;;
6648irix* | nonstopux*)
6649 symcode='[BCDEGRST]'
6650 ;;
6651osf*)
6652 symcode='[BCDEGQRST]'
6653 ;;
6654solaris*)
6655 symcode='[BDRT]'
6656 ;;
6657sco3.2v5*)
6658 symcode='[DT]'
6659 ;;
6660sysv4.2uw2*)
6661 symcode='[DT]'
6662 ;;
6663sysv5* | sco5v6* | unixware* | OpenUNIX*)
6664 symcode='[ABDT]'
6665 ;;
6666sysv4)
6667 symcode='[DFNSTU]'
6668 ;;
6669esac
6670
6671# If we're using GNU nm, then use its standard symbol codes.
6672case `$NM -V 2>&1` in
6673*GNU* | *'with BFD'*)
6674 symcode='[ABCDGIRSTW]' ;;
6675esac
d7040cdb 6676
dabbade6
L
6677# Transform an extracted symbol line into a proper C declaration.
6678# Some systems (esp. on ia64) link data and code symbols differently,
6679# so use this general approach.
6680lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6681
dabbade6 6682# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6683lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6684lt_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 6685
7357c5b6
AM
6686# Handle CRLF in mingw tool chain
6687opt_cr=
6688case $build_os in
6689mingw*)
6690 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6691 ;;
6692esac
d7040cdb 6693
7357c5b6
AM
6694# Try without a prefix underscore, then with it.
6695for ac_symprfx in "" "_"; do
d7040cdb 6696
7357c5b6
AM
6697 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6698 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6699
7357c5b6
AM
6700 # Write the raw and C identifiers.
6701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6702 # Fake it for dumpbin and say T for any non-static function
6703 # and D for any global variable.
6704 # Also find C++ and __fastcall symbols from MSVC++,
6705 # which start with @ or ?.
6706 lt_cv_sys_global_symbol_pipe="$AWK '"\
6707" {last_section=section; section=\$ 3};"\
6708" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6709" \$ 0!~/External *\|/{next};"\
6710" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6711" {if(hide[section]) next};"\
6712" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6713" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6714" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6715" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6716" ' prfx=^$ac_symprfx"
6717 else
6718 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6719 fi
d7040cdb 6720
7357c5b6
AM
6721 # Check to see that the pipe works correctly.
6722 pipe_works=no
d7040cdb 6723
7357c5b6
AM
6724 rm -f conftest*
6725 cat > conftest.$ac_ext <<_LT_EOF
6726#ifdef __cplusplus
6727extern "C" {
6728#endif
6729char nm_test_var;
6730void nm_test_func(void);
6731void nm_test_func(void){}
6732#ifdef __cplusplus
dabbade6 6733}
7357c5b6
AM
6734#endif
6735int main(){nm_test_var='a';nm_test_func();return(0);}
6736_LT_EOF
6737
81ecdfbb 6738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6739 (eval $ac_compile) 2>&5
dabbade6 6740 ac_status=$?
81ecdfbb
RW
6741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742 test $ac_status = 0; }; then
7357c5b6
AM
6743 # Now try to grab the symbols.
6744 nlist=conftest.nm
3725885a
RW
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6746 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
dabbade6 6747 ac_status=$?
81ecdfbb
RW
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6750 # Try sorting and uniquifying the output.
6751 if sort "$nlist" | uniq > "$nlist"T; then
6752 mv -f "$nlist"T "$nlist"
6753 else
6754 rm -f "$nlist"T
6755 fi
d7040cdb 6756
7357c5b6
AM
6757 # Make sure that we snagged all the symbols we need.
6758 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6759 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6760 cat <<_LT_EOF > conftest.$ac_ext
6761#ifdef __cplusplus
6762extern "C" {
6763#endif
d7040cdb 6764
7357c5b6
AM
6765_LT_EOF
6766 # Now generate the symbol file.
6767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6768
7357c5b6 6769 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6770
7357c5b6
AM
6771/* The mapping between symbol names and symbols. */
6772const struct {
6773 const char *name;
6774 void *address;
6775}
6776lt__PROGRAM__LTX_preloaded_symbols[] =
6777{
6778 { "@PROGRAM@", (void *) 0 },
6779_LT_EOF
6780 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6781 cat <<\_LT_EOF >> conftest.$ac_ext
6782 {0, (void *) 0}
6783};
d7040cdb 6784
7357c5b6
AM
6785/* This works around a problem in FreeBSD linker */
6786#ifdef FREEBSD_WORKAROUND
6787static const void *lt_preloaded_setup() {
6788 return lt__PROGRAM__LTX_preloaded_symbols;
6789}
dabbade6 6790#endif
d7040cdb 6791
7357c5b6 6792#ifdef __cplusplus
dabbade6 6793}
7357c5b6
AM
6794#endif
6795_LT_EOF
6796 # Now try linking the two files.
6797 mv conftest.$ac_objext conftstm.$ac_objext
6798 lt_save_LIBS="$LIBS"
6799 lt_save_CFLAGS="$CFLAGS"
6800 LIBS="conftstm.$ac_objext"
6801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
6803 (eval $ac_link) 2>&5
6804 ac_status=$?
81ecdfbb
RW
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6807 pipe_works=yes
6808 fi
6809 LIBS="$lt_save_LIBS"
6810 CFLAGS="$lt_save_CFLAGS"
6811 else
6812 echo "cannot find nm_test_func in $nlist" >&5
6813 fi
6814 else
6815 echo "cannot find nm_test_var in $nlist" >&5
6816 fi
6817 else
6818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6819 fi
6820 else
6821 echo "$progname: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6823 fi
1927a18f 6824 rm -rf conftest* conftst*
7357c5b6
AM
6825
6826 # Do not use the global_symbol_pipe unless it works.
6827 if test "$pipe_works" = yes; then
6828 break
6829 else
6830 lt_cv_sys_global_symbol_pipe=
6831 fi
6832done
d7040cdb 6833
dabbade6 6834fi
7357c5b6
AM
6835
6836if test -z "$lt_cv_sys_global_symbol_pipe"; then
6837 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6838fi
7357c5b6 6839if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6841$as_echo "failed" >&6; }
7357c5b6 6842else
81ecdfbb
RW
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6844$as_echo "ok" >&6; }
dabbade6 6845fi
d7040cdb 6846
d7040cdb 6847
d7040cdb 6848
d7040cdb 6849
d7040cdb 6850
d7040cdb 6851
d7040cdb 6852
d7040cdb 6853
d7040cdb 6854
d7040cdb 6855
d7040cdb 6856
d7040cdb 6857
7357c5b6
AM
6858
6859
6860
1927a18f
L
6861
6862
6863
6864
6865
7357c5b6
AM
6866
6867
81ecdfbb
RW
6868# Check whether --enable-libtool-lock was given.
6869if test "${enable_libtool_lock+set}" = set; then :
6870 enableval=$enable_libtool_lock;
6871fi
7357c5b6 6872
7357c5b6
AM
6873test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875# Some flags need to be propagated to the compiler or linker for good
6876# libtool support.
6877case $host in
6878ia64-*-hpux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
81ecdfbb
RW
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
7357c5b6
AM
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897*-*-irix6*)
6898 # Find out which ABI we are using.
3725885a 6899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
81ecdfbb
RW
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
7357c5b6
AM
6905 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6909 ;;
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6912 ;;
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6915 ;;
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6921 ;;
6922 *N32*)
6923 LD="${LD-ld} -n32"
6924 ;;
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6927 ;;
6928 esac
6929 fi
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
cc9afea3 6934x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
6935s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
81ecdfbb
RW
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
7357c5b6
AM
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6948 ;;
6949 x86_64-*linux*)
6d2920c8
L
6950 case `/usr/bin/file conftest.o` in
6951 *x86-64*)
6952 LD="${LD-ld} -m elf32_x86_64"
6953 ;;
6954 *)
6955 LD="${LD-ld} -m elf_i386"
6956 ;;
6957 esac
7357c5b6 6958 ;;
cc9afea3
AM
6959 powerpc64le-*linux*)
6960 LD="${LD-ld} -m elf32lppclinux"
6961 ;;
6962 powerpc64-*linux*)
7357c5b6
AM
6963 LD="${LD-ld} -m elf32ppclinux"
6964 ;;
6965 s390x-*linux*)
6966 LD="${LD-ld} -m elf_s390"
6967 ;;
6968 sparc64-*linux*)
6969 LD="${LD-ld} -m elf32_sparc"
6970 ;;
6971 esac
6972 ;;
6973 *64-bit*)
6974 case $host in
6975 x86_64-*kfreebsd*-gnu)
6976 LD="${LD-ld} -m elf_x86_64_fbsd"
6977 ;;
6978 x86_64-*linux*)
6979 LD="${LD-ld} -m elf_x86_64"
6980 ;;
cc9afea3
AM
6981 powerpcle-*linux*)
6982 LD="${LD-ld} -m elf64lppc"
6983 ;;
6984 powerpc-*linux*)
7357c5b6
AM
6985 LD="${LD-ld} -m elf64ppc"
6986 ;;
6987 s390*-*linux*|s390*-*tpf*)
6988 LD="${LD-ld} -m elf64_s390"
6989 ;;
6990 sparc*-*linux*)
6991 LD="${LD-ld} -m elf64_sparc"
6992 ;;
6993 esac
6994 ;;
6995 esac
6996 fi
6997 rm -rf conftest*
6998 ;;
6999
7000*-*-sco3.2v5*)
7001 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7002 SAVE_CFLAGS="$CFLAGS"
7003 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7005$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7006if test "${lt_cv_cc_needs_belf+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
dabbade6 7008else
7357c5b6
AM
7009 ac_ext=c
7010ac_cpp='$CPP $CPPFLAGS'
7011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7013ac_compiler_gnu=$ac_cv_c_compiler_gnu
7014
81ecdfbb 7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 7016/* end confdefs.h. */
d7040cdb 7017
7357c5b6
AM
7018int
7019main ()
7020{
7021
7022 ;
7023 return 0;
7024}
dabbade6 7025_ACEOF
81ecdfbb 7026if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7027 lt_cv_cc_needs_belf=yes
dabbade6 7028else
81ecdfbb 7029 lt_cv_cc_needs_belf=no
dabbade6 7030fi
81ecdfbb
RW
7031rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7033 ac_ext=c
7034ac_cpp='$CPP $CPPFLAGS'
7035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7038
dabbade6 7039fi
81ecdfbb
RW
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7041$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7044 CFLAGS="$SAVE_CFLAGS"
7045 fi
7046 ;;
7047sparc*-*solaris*)
7048 # Find out which ABI we are using.
7049 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7051 (eval $ac_compile) 2>&5
7052 ac_status=$?
81ecdfbb
RW
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7357c5b6
AM
7055 case `/usr/bin/file conftest.o` in
7056 *64-bit*)
7057 case $lt_cv_prog_gnu_ld in
7058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
7059 *)
7060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061 LD="${LD-ld} -64"
7062 fi
7063 ;;
7357c5b6
AM
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070esac
d7040cdb 7071
7357c5b6 7072need_locks="$enable_libtool_lock"
d7040cdb 7073
d7040cdb 7074
1927a18f
L
7075 case $host_os in
7076 rhapsody* | darwin*)
7077 if test -n "$ac_tool_prefix"; then
7078 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7079set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081$as_echo_n "checking for $ac_word... " >&6; }
7082if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7083 $as_echo_n "(cached) " >&6
1927a18f
L
7084else
7085 if test -n "$DSYMUTIL"; then
7086 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7087else
7088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089for as_dir in $PATH
7090do
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7095 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7097 break 2
7098 fi
7099done
81ecdfbb
RW
7100 done
7101IFS=$as_save_IFS
1927a18f
L
7102
7103fi
7104fi
7105DSYMUTIL=$ac_cv_prog_DSYMUTIL
7106if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7108$as_echo "$DSYMUTIL" >&6; }
1927a18f 7109else
81ecdfbb
RW
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111$as_echo "no" >&6; }
1927a18f
L
7112fi
7113
81ecdfbb 7114
1927a18f
L
7115fi
7116if test -z "$ac_cv_prog_DSYMUTIL"; then
7117 ac_ct_DSYMUTIL=$DSYMUTIL
7118 # Extract the first word of "dsymutil", so it can be a program name with args.
7119set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121$as_echo_n "checking for $ac_word... " >&6; }
7122if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7123 $as_echo_n "(cached) " >&6
1927a18f
L
7124else
7125 if test -n "$ac_ct_DSYMUTIL"; then
7126 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7127else
7128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129for as_dir in $PATH
7130do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7135 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7137 break 2
7138 fi
7139done
81ecdfbb
RW
7140 done
7141IFS=$as_save_IFS
1927a18f 7142
1927a18f
L
7143fi
7144fi
7145ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7146if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7148$as_echo "$ac_ct_DSYMUTIL" >&6; }
1927a18f 7149else
81ecdfbb
RW
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151$as_echo "no" >&6; }
1927a18f
L
7152fi
7153
81ecdfbb
RW
7154 if test "x$ac_ct_DSYMUTIL" = x; then
7155 DSYMUTIL=":"
7156 else
7157 case $cross_compiling:$ac_tool_warned in
7158yes:)
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7161ac_tool_warned=yes ;;
7162esac
7163 DSYMUTIL=$ac_ct_DSYMUTIL
7164 fi
1927a18f
L
7165else
7166 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7167fi
7168
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7171set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173$as_echo_n "checking for $ac_word... " >&6; }
7174if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
1927a18f
L
7176else
7177 if test -n "$NMEDIT"; then
7178 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7187 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7189 break 2
7190 fi
7191done
81ecdfbb
RW
7192 done
7193IFS=$as_save_IFS
1927a18f
L
7194
7195fi
7196fi
7197NMEDIT=$ac_cv_prog_NMEDIT
7198if test -n "$NMEDIT"; then
81ecdfbb
RW
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7200$as_echo "$NMEDIT" >&6; }
1927a18f 7201else
81ecdfbb
RW
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203$as_echo "no" >&6; }
1927a18f
L
7204fi
7205
81ecdfbb 7206
1927a18f
L
7207fi
7208if test -z "$ac_cv_prog_NMEDIT"; then
7209 ac_ct_NMEDIT=$NMEDIT
7210 # Extract the first word of "nmedit", so it can be a program name with args.
7211set dummy nmedit; ac_word=$2
81ecdfbb
RW
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7215 $as_echo_n "(cached) " >&6
1927a18f
L
7216else
7217 if test -n "$ac_ct_NMEDIT"; then
7218 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7227 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7229 break 2
7230 fi
7231done
81ecdfbb
RW
7232 done
7233IFS=$as_save_IFS
1927a18f 7234
1927a18f
L
7235fi
7236fi
7237ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7238if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7240$as_echo "$ac_ct_NMEDIT" >&6; }
1927a18f 7241else
81ecdfbb
RW
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
1927a18f
L
7244fi
7245
81ecdfbb
RW
7246 if test "x$ac_ct_NMEDIT" = x; then
7247 NMEDIT=":"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255 NMEDIT=$ac_ct_NMEDIT
7256 fi
1927a18f
L
7257else
7258 NMEDIT="$ac_cv_prog_NMEDIT"
7259fi
7260
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7263set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265$as_echo_n "checking for $ac_word... " >&6; }
7266if test "${ac_cv_prog_LIPO+set}" = set; then :
7267 $as_echo_n "(cached) " >&6
1927a18f
L
7268else
7269 if test -n "$LIPO"; then
7270 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7271else
7272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7279 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7281 break 2
7282 fi
7283done
81ecdfbb
RW
7284 done
7285IFS=$as_save_IFS
1927a18f
L
7286
7287fi
7288fi
7289LIPO=$ac_cv_prog_LIPO
7290if test -n "$LIPO"; then
81ecdfbb
RW
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7292$as_echo "$LIPO" >&6; }
1927a18f 7293else
81ecdfbb
RW
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295$as_echo "no" >&6; }
1927a18f
L
7296fi
7297
81ecdfbb 7298
1927a18f
L
7299fi
7300if test -z "$ac_cv_prog_LIPO"; then
7301 ac_ct_LIPO=$LIPO
7302 # Extract the first word of "lipo", so it can be a program name with args.
7303set dummy lipo; ac_word=$2
81ecdfbb
RW
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305$as_echo_n "checking for $ac_word... " >&6; }
7306if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7307 $as_echo_n "(cached) " >&6
1927a18f
L
7308else
7309 if test -n "$ac_ct_LIPO"; then
7310 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7311else
7312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7319 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7321 break 2
7322 fi
7323done
81ecdfbb
RW
7324 done
7325IFS=$as_save_IFS
1927a18f 7326
1927a18f
L
7327fi
7328fi
7329ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7330if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7332$as_echo "$ac_ct_LIPO" >&6; }
1927a18f 7333else
81ecdfbb
RW
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335$as_echo "no" >&6; }
1927a18f
L
7336fi
7337
81ecdfbb
RW
7338 if test "x$ac_ct_LIPO" = x; then
7339 LIPO=":"
7340 else
7341 case $cross_compiling:$ac_tool_warned in
7342yes:)
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345ac_tool_warned=yes ;;
7346esac
7347 LIPO=$ac_ct_LIPO
7348 fi
1927a18f
L
7349else
7350 LIPO="$ac_cv_prog_LIPO"
7351fi
7352
7353 if test -n "$ac_tool_prefix"; then
7354 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7355set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357$as_echo_n "checking for $ac_word... " >&6; }
7358if test "${ac_cv_prog_OTOOL+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
1927a18f
L
7360else
7361 if test -n "$OTOOL"; then
7362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7363else
7364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7371 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7373 break 2
7374 fi
7375done
81ecdfbb
RW
7376 done
7377IFS=$as_save_IFS
1927a18f
L
7378
7379fi
7380fi
7381OTOOL=$ac_cv_prog_OTOOL
7382if test -n "$OTOOL"; then
81ecdfbb
RW
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7384$as_echo "$OTOOL" >&6; }
1927a18f 7385else
81ecdfbb
RW
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387$as_echo "no" >&6; }
1927a18f
L
7388fi
7389
81ecdfbb 7390
1927a18f
L
7391fi
7392if test -z "$ac_cv_prog_OTOOL"; then
7393 ac_ct_OTOOL=$OTOOL
7394 # Extract the first word of "otool", so it can be a program name with args.
7395set dummy otool; ac_word=$2
81ecdfbb
RW
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397$as_echo_n "checking for $ac_word... " >&6; }
7398if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
1927a18f
L
7400else
7401 if test -n "$ac_ct_OTOOL"; then
7402 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7403else
7404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405for as_dir in $PATH
7406do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7411 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7413 break 2
7414 fi
7415done
81ecdfbb
RW
7416 done
7417IFS=$as_save_IFS
1927a18f 7418
1927a18f
L
7419fi
7420fi
7421ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7422if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7424$as_echo "$ac_ct_OTOOL" >&6; }
1927a18f 7425else
81ecdfbb
RW
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427$as_echo "no" >&6; }
1927a18f
L
7428fi
7429
81ecdfbb
RW
7430 if test "x$ac_ct_OTOOL" = x; then
7431 OTOOL=":"
7432 else
7433 case $cross_compiling:$ac_tool_warned in
7434yes:)
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437ac_tool_warned=yes ;;
7438esac
7439 OTOOL=$ac_ct_OTOOL
7440 fi
1927a18f
L
7441else
7442 OTOOL="$ac_cv_prog_OTOOL"
7443fi
7444
7445 if test -n "$ac_tool_prefix"; then
7446 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7447set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449$as_echo_n "checking for $ac_word... " >&6; }
7450if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7451 $as_echo_n "(cached) " >&6
1927a18f
L
7452else
7453 if test -n "$OTOOL64"; then
7454 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7455else
7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457for as_dir in $PATH
7458do
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7463 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7465 break 2
7466 fi
7467done
81ecdfbb
RW
7468 done
7469IFS=$as_save_IFS
1927a18f
L
7470
7471fi
7472fi
7473OTOOL64=$ac_cv_prog_OTOOL64
7474if test -n "$OTOOL64"; then
81ecdfbb
RW
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7476$as_echo "$OTOOL64" >&6; }
1927a18f 7477else
81ecdfbb
RW
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479$as_echo "no" >&6; }
1927a18f
L
7480fi
7481
81ecdfbb 7482
1927a18f
L
7483fi
7484if test -z "$ac_cv_prog_OTOOL64"; then
7485 ac_ct_OTOOL64=$OTOOL64
7486 # Extract the first word of "otool64", so it can be a program name with args.
7487set dummy otool64; ac_word=$2
81ecdfbb
RW
7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7489$as_echo_n "checking for $ac_word... " >&6; }
7490if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
1927a18f
L
7492else
7493 if test -n "$ac_ct_OTOOL64"; then
7494 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499 IFS=$as_save_IFS
7500 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7503 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7505 break 2
7506 fi
7507done
81ecdfbb
RW
7508 done
7509IFS=$as_save_IFS
1927a18f 7510
1927a18f
L
7511fi
7512fi
7513ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7514if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7516$as_echo "$ac_ct_OTOOL64" >&6; }
1927a18f 7517else
81ecdfbb
RW
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519$as_echo "no" >&6; }
1927a18f
L
7520fi
7521
81ecdfbb
RW
7522 if test "x$ac_ct_OTOOL64" = x; then
7523 OTOOL64=":"
7524 else
7525 case $cross_compiling:$ac_tool_warned in
7526yes:)
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7529ac_tool_warned=yes ;;
7530esac
7531 OTOOL64=$ac_ct_OTOOL64
7532 fi
1927a18f
L
7533else
7534 OTOOL64="$ac_cv_prog_OTOOL64"
7535fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
81ecdfbb
RW
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7564$as_echo_n "checking for -single_module linker flag... " >&6; }
7565if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
1927a18f
L
7567else
7568 lt_cv_apple_cc_single_mod=no
7569 if test -z "${LT_MULTI_MODULE}"; then
7570 # By default we will add the -single_module flag. You can override
7571 # by either setting the environment variable LT_MULTI_MODULE
7572 # non-empty at configure time, or by adding -multi_module to the
7573 # link flags.
7574 rm -rf libconftest.dylib*
7575 echo "int foo(void){return 1;}" > conftest.c
7576 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7577-dynamiclib -Wl,-single_module conftest.c" >&5
7578 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7579 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7580 _lt_result=$?
7581 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7582 lt_cv_apple_cc_single_mod=yes
7583 else
7584 cat conftest.err >&5
7585 fi
7586 rm -rf libconftest.dylib*
7587 rm -f conftest.*
7588 fi
7589fi
81ecdfbb
RW
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7591$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7593$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7594if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
1927a18f
L
7596else
7597 lt_cv_ld_exported_symbols_list=no
7598 save_LDFLAGS=$LDFLAGS
7599 echo "_main" > conftest.sym
7600 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927a18f
L
7602/* end confdefs.h. */
7603
7604int
7605main ()
7606{
7607
7608 ;
7609 return 0;
7610}
7611_ACEOF
81ecdfbb 7612if ac_fn_c_try_link "$LINENO"; then :
1927a18f
L
7613 lt_cv_ld_exported_symbols_list=yes
7614else
81ecdfbb 7615 lt_cv_ld_exported_symbols_list=no
1927a18f 7616fi
81ecdfbb
RW
7617rm -f core conftest.err conftest.$ac_objext \
7618 conftest$ac_exeext conftest.$ac_ext
1927a18f
L
7619 LDFLAGS="$save_LDFLAGS"
7620
7621fi
81ecdfbb
RW
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7623$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7625$as_echo_n "checking for -force_load linker flag... " >&6; }
7626if test "${lt_cv_ld_force_load+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
7628else
7629 lt_cv_ld_force_load=no
7630 cat > conftest.c << _LT_EOF
7631int forced_loaded() { return 2;}
7632_LT_EOF
7633 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7634 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7635 echo "$AR cru libconftest.a conftest.o" >&5
7636 $AR cru libconftest.a conftest.o 2>&5
7637 cat > conftest.c << _LT_EOF
7638int main() { return 0;}
7639_LT_EOF
7640 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7641 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7642 _lt_result=$?
7643 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7644 lt_cv_ld_force_load=yes
7645 else
7646 cat conftest.err >&5
7647 fi
7648 rm -f conftest.err libconftest.a conftest conftest.c
7649 rm -rf conftest.dSYM
7650
7651fi
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7653$as_echo "$lt_cv_ld_force_load" >&6; }
1927a18f
L
7654 case $host_os in
7655 rhapsody* | darwin1.[012])
7656 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7657 darwin1.*)
7658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7659 darwin*) # darwin 5.x on
7660 # if running on 10.5 or later, the deployment target defaults
7661 # to the OS version, if on x86, and 10.4, the deployment
7662 # target defaults to 10.4. Don't you love it?
7663 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7664 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7665 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7666 10.[012][,.]*)
1927a18f
L
7667 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7668 10.*)
7669 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7670 esac
7671 ;;
7672 esac
7673 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7674 _lt_dar_single_mod='$single_module'
7675 fi
7676 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7677 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7678 else
7679 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7680 fi
3725885a 7681 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1927a18f
L
7682 _lt_dsymutil='~$DSYMUTIL $lib || :'
7683 else
7684 _lt_dsymutil=
7685 fi
7686 ;;
7687 esac
7688
dabbade6 7689for ac_header in dlfcn.h
81ecdfbb
RW
7690do :
7691 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7692"
7693if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
dabbade6 7694 cat >>confdefs.h <<_ACEOF
81ecdfbb 7695#define HAVE_DLFCN_H 1
dabbade6 7696_ACEOF
d7040cdb 7697
dabbade6 7698fi
d7040cdb 7699
dabbade6 7700done
d7040cdb 7701
d7040cdb 7702
d7040cdb 7703
3725885a
RW
7704
7705
1927a18f
L
7706# Set options
7707
7708
7709
7710 enable_dlopen=no
7711
7712
7713 enable_win32_dll=no
7714
7715
7716
81ecdfbb
RW
7717 # Check whether --enable-static was given.
7718if test "${enable_static+set}" = set; then :
7719 enableval=$enable_static; p=${PACKAGE-default}
1927a18f
L
7720 case $enableval in
7721 yes) enable_static=yes ;;
7722 no) enable_static=no ;;
7723 *)
7724 enable_static=no
7725 # Look at the argument we got. We use all the common list separators.
7726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7727 for pkg in $enableval; do
7728 IFS="$lt_save_ifs"
7729 if test "X$pkg" = "X$p"; then
7730 enable_static=yes
7731 fi
7732 done
7733 IFS="$lt_save_ifs"
7734 ;;
7735 esac
7736else
7737 enable_static=yes
81ecdfbb 7738fi
1927a18f
L
7739
7740
7741
7742
7743
7744
7745
7746
7747
81ecdfbb
RW
7748
7749# Check whether --with-pic was given.
7750if test "${with_pic+set}" = set; then :
7751 withval=$with_pic; pic_mode="$withval"
1927a18f
L
7752else
7753 pic_mode=default
81ecdfbb
RW
7754fi
7755
1927a18f
L
7756
7757test -z "$pic_mode" && pic_mode=default
7758
7759
7760
7761
7762
7763
7764
81ecdfbb
RW
7765 # Check whether --enable-fast-install was given.
7766if test "${enable_fast_install+set}" = set; then :
7767 enableval=$enable_fast_install; p=${PACKAGE-default}
1927a18f
L
7768 case $enableval in
7769 yes) enable_fast_install=yes ;;
7770 no) enable_fast_install=no ;;
7771 *)
7772 enable_fast_install=no
7773 # Look at the argument we got. We use all the common list separators.
7774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7775 for pkg in $enableval; do
7776 IFS="$lt_save_ifs"
7777 if test "X$pkg" = "X$p"; then
7778 enable_fast_install=yes
7779 fi
7780 done
7781 IFS="$lt_save_ifs"
7782 ;;
7783 esac
7784else
7785 enable_fast_install=yes
81ecdfbb
RW
7786fi
7787
1927a18f
L
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
dabbade6
L
7798# This can be used to rebuild libtool when needed
7799LIBTOOL_DEPS="$ltmain"
d7040cdb 7800
dabbade6
L
7801# Always use our own libtool.
7802LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7803
d7040cdb 7804
d7040cdb 7805
d7040cdb
SE
7806
7807
7808
7809
7810
7811
d7040cdb 7812
d7040cdb 7813
d7040cdb 7814
d7040cdb
SE
7815
7816
7817
7818
7819
7820
d7040cdb 7821
d7040cdb 7822
d7040cdb
SE
7823
7824
7825
3725885a 7826
d7040cdb
SE
7827
7828
dabbade6 7829test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7830
7831
d7040cdb 7832
d7040cdb 7833
d7040cdb
SE
7834
7835
7836
7837
7838
7839
dabbade6
L
7840
7841
7842
7843
7844if test -n "${ZSH_VERSION+set}" ; then
7845 setopt NO_GLOB_SUBST
7846fi
7847
81ecdfbb
RW
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7849$as_echo_n "checking for objdir... " >&6; }
7850if test "${lt_cv_objdir+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
d7040cdb 7852else
dabbade6
L
7853 rm -f .libs 2>/dev/null
7854mkdir .libs 2>/dev/null
7855if test -d .libs; then
7856 lt_cv_objdir=.libs
7857else
7858 # MS-DOS does not allow filenames that begin with a dot.
7859 lt_cv_objdir=_libs
d7040cdb 7860fi
dabbade6
L
7861rmdir .libs 2>/dev/null
7862fi
81ecdfbb
RW
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7864$as_echo "$lt_cv_objdir" >&6; }
dabbade6 7865objdir=$lt_cv_objdir
d7040cdb
SE
7866
7867
7868
7869
d7040cdb 7870
dabbade6
L
7871cat >>confdefs.h <<_ACEOF
7872#define LT_OBJDIR "$lt_cv_objdir/"
7873_ACEOF
d7040cdb
SE
7874
7875
7876
7877
dabbade6
L
7878case $host_os in
7879aix3*)
7880 # AIX sometimes has problems with the GCC collect2 program. For some
7881 # reason, if we set the COLLECT_NAMES environment variable, the problems
7882 # vanish in a puff of smoke.
7883 if test "X${COLLECT_NAMES+set}" != Xset; then
7884 COLLECT_NAMES=
7885 export COLLECT_NAMES
7886 fi
7887 ;;
7888esac
d7040cdb 7889
dabbade6
L
7890# Global variables:
7891ofile=libtool
7892can_build_shared=yes
d7040cdb 7893
dabbade6
L
7894# All known linkers require a `.a' archive for static linking (except MSVC,
7895# which needs '.lib').
7896libext=a
d7040cdb 7897
dabbade6 7898with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7899
dabbade6
L
7900old_CC="$CC"
7901old_CFLAGS="$CFLAGS"
d7040cdb 7902
dabbade6
L
7903# Set sane defaults for various variables
7904test -z "$CC" && CC=cc
7905test -z "$LTCC" && LTCC=$CC
7906test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7907test -z "$LD" && LD=ld
7908test -z "$ac_objext" && ac_objext=o
7909
7910for cc_temp in $compiler""; do
7911 case $cc_temp in
7912 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7913 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7914 \-*) ;;
7915 *) break;;
7916 esac
7917done
3725885a 7918cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
dabbade6
L
7919
7920
7921# Only perform the check for file, if the check method requires it
7922test -z "$MAGIC_CMD" && MAGIC_CMD=file
7923case $deplibs_check_method in
7924file_magic*)
7925 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7927$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7928if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
dabbade6
L
7930else
7931 case $MAGIC_CMD in
7932[\\/*] | ?:[\\/]*)
7933 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934 ;;
7935*)
7936 lt_save_MAGIC_CMD="$MAGIC_CMD"
7937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939 for ac_dir in $ac_dummy; do
7940 IFS="$lt_save_ifs"
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/${ac_tool_prefix}file; then
7943 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944 if test -n "$file_magic_test_file"; then
7945 case $deplibs_check_method in
7946 "file_magic "*)
7947 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950 $EGREP "$file_magic_regex" > /dev/null; then
7951 :
d7040cdb 7952 else
dabbade6 7953 cat <<_LT_EOF 1>&2
d7040cdb 7954
dabbade6
L
7955*** Warning: the command libtool uses to detect shared libraries,
7956*** $file_magic_cmd, produces output that libtool cannot recognize.
7957*** The result is that libtool may fail to recognize shared libraries
7958*** as such. This will affect the creation of libtool libraries that
7959*** depend on shared libraries, but programs linked with such libtool
7960*** libraries will work regardless of this problem. Nevertheless, you
7961*** may want to report the problem to your system manager and/or to
7962*** bug-libtool@gnu.org
d7040cdb 7963
dabbade6
L
7964_LT_EOF
7965 fi ;;
7966 esac
d7040cdb 7967 fi
dabbade6 7968 break
d7040cdb 7969 fi
dabbade6
L
7970 done
7971 IFS="$lt_save_ifs"
7972 MAGIC_CMD="$lt_save_MAGIC_CMD"
7973 ;;
7974esac
7975fi
d7040cdb 7976
dabbade6
L
7977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7980$as_echo "$MAGIC_CMD" >&6; }
dabbade6 7981else
81ecdfbb
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
dabbade6 7984fi
d7040cdb 7985
d7040cdb 7986
d7040cdb 7987
d7040cdb 7988
d7040cdb 7989
dabbade6
L
7990if test -z "$lt_cv_path_MAGIC_CMD"; then
7991 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7993$as_echo_n "checking for file... " >&6; }
7994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
dabbade6
L
7996else
7997 case $MAGIC_CMD in
7998[\\/*] | ?:[\\/]*)
7999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8000 ;;
8001*)
8002 lt_save_MAGIC_CMD="$MAGIC_CMD"
8003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8004 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8005 for ac_dir in $ac_dummy; do
8006 IFS="$lt_save_ifs"
8007 test -z "$ac_dir" && ac_dir=.
8008 if test -f $ac_dir/file; then
8009 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8010 if test -n "$file_magic_test_file"; then
8011 case $deplibs_check_method in
8012 "file_magic "*)
8013 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8016 $EGREP "$file_magic_regex" > /dev/null; then
8017 :
d7040cdb 8018 else
dabbade6 8019 cat <<_LT_EOF 1>&2
d7040cdb 8020
dabbade6
L
8021*** Warning: the command libtool uses to detect shared libraries,
8022*** $file_magic_cmd, produces output that libtool cannot recognize.
8023*** The result is that libtool may fail to recognize shared libraries
8024*** as such. This will affect the creation of libtool libraries that
8025*** depend on shared libraries, but programs linked with such libtool
8026*** libraries will work regardless of this problem. Nevertheless, you
8027*** may want to report the problem to your system manager and/or to
8028*** bug-libtool@gnu.org
d7040cdb 8029
dabbade6
L
8030_LT_EOF
8031 fi ;;
8032 esac
8033 fi
8034 break
8035 fi
8036 done
8037 IFS="$lt_save_ifs"
8038 MAGIC_CMD="$lt_save_MAGIC_CMD"
8039 ;;
8040esac
d7040cdb 8041fi
dabbade6
L
8042
8043MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8046$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8047else
81ecdfbb
RW
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
dabbade6
L
8050fi
8051
d7040cdb 8052
dabbade6
L
8053 else
8054 MAGIC_CMD=:
8055 fi
d7040cdb 8056fi
d7040cdb 8057
dabbade6
L
8058 fi
8059 ;;
8060esac
d7040cdb 8061
dabbade6 8062# Use C for the default configuration in the libtool script
d7040cdb 8063
dabbade6
L
8064lt_save_CC="$CC"
8065ac_ext=c
8066ac_cpp='$CPP $CPPFLAGS'
8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8070
d7040cdb 8071
dabbade6
L
8072# Source file extension for C test sources.
8073ac_ext=c
d7040cdb 8074
dabbade6
L
8075# Object file extension for compiled C test sources.
8076objext=o
8077objext=$objext
8078
8079# Code to be used in simple compile tests
8080lt_simple_compile_test_code="int some_variable = 0;"
8081
8082# Code to be used in simple link tests
8083lt_simple_link_test_code='int main(){return(0);}'
8084
8085
8086
8087
8088
8089
8090
8091# If no C compiler was specified, use CC.
8092LTCC=${LTCC-"$CC"}
8093
8094# If no C compiler flags were specified, use CFLAGS.
8095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8096
8097# Allow CC to be a program name with arguments.
8098compiler=$CC
8099
8100# Save the default compiler, since it gets overwritten when the other
8101# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8102compiler_DEFAULT=$CC
8103
8104# save warnings/boilerplate of simple test code
8105ac_outfile=conftest.$ac_objext
8106echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8107eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8108_lt_compiler_boilerplate=`cat conftest.err`
8109$RM conftest*
8110
8111ac_outfile=conftest.$ac_objext
8112echo "$lt_simple_link_test_code" >conftest.$ac_ext
8113eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8114_lt_linker_boilerplate=`cat conftest.err`
1927a18f 8115$RM -r conftest*
dabbade6
L
8116
8117
8118## CAVEAT EMPTOR:
8119## There is no encapsulation within the following macros, do not change
8120## the running order or otherwise move them around unless you know exactly
8121## what you are doing...
8122if test -n "$compiler"; then
8123
8124lt_prog_compiler_no_builtin_flag=
8125
8126if test "$GCC" = yes; then
3725885a
RW
8127 case $cc_basename in
8128 nvcc*)
8129 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8130 *)
8131 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8132 esac
dabbade6 8133
81ecdfbb
RW
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8135$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8136if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8137 $as_echo_n "(cached) " >&6
dabbade6
L
8138else
8139 lt_cv_prog_compiler_rtti_exceptions=no
8140 ac_outfile=conftest.$ac_objext
8141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8142 lt_compiler_flag="-fno-rtti -fno-exceptions"
8143 # Insert the option either (1) after the last *FLAGS variable, or
8144 # (2) before a word containing "conftest.", or (3) at the end.
8145 # Note that $ac_compile itself does not contain backslashes and begins
8146 # with a dollar sign (not a hyphen), so the echo should work correctly.
8147 # The option is referenced via a variable to avoid confusing sed.
8148 lt_compile=`echo "$ac_compile" | $SED \
8149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8151 -e 's:$: $lt_compiler_flag:'`
3725885a 8152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8153 (eval "$lt_compile" 2>conftest.err)
8154 ac_status=$?
8155 cat conftest.err >&5
3725885a 8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8157 if (exit $ac_status) && test -s "$ac_outfile"; then
8158 # The compiler can only warn and ignore the option if not recognized
8159 # So say no if there are warnings other than the usual output.
3725885a 8160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8163 lt_cv_prog_compiler_rtti_exceptions=yes
8164 fi
8165 fi
8166 $RM conftest*
8167
8168fi
81ecdfbb
RW
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8170$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
dabbade6
L
8171
8172if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8174else
8175 :
8176fi
8177
8178fi
8179
8180
8181
8182
8183
8184
8185 lt_prog_compiler_wl=
8186lt_prog_compiler_pic=
8187lt_prog_compiler_static=
8188
81ecdfbb
RW
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8190$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
dabbade6
L
8191
8192 if test "$GCC" = yes; then
8193 lt_prog_compiler_wl='-Wl,'
8194 lt_prog_compiler_static='-static'
8195
8196 case $host_os in
8197 aix*)
8198 # All AIX code is PIC.
8199 if test "$host_cpu" = ia64; then
8200 # AIX 5 now supports IA64 processor
8201 lt_prog_compiler_static='-Bstatic'
8202 fi
b132a67d 8203 lt_prog_compiler_pic='-fPIC'
dabbade6 8204 ;;
d7040cdb
SE
8205
8206 amigaos*)
1927a18f
L
8207 case $host_cpu in
8208 powerpc)
8209 # see comment about AmigaOS4 .so support
8210 lt_prog_compiler_pic='-fPIC'
8211 ;;
8212 m68k)
8213 # FIXME: we need at least 68020 code to build shared libraries, but
8214 # adding the `-m68020' flag to GCC prevents building anything better,
8215 # like `-m68040'.
8216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8217 ;;
8218 esac
d7040cdb
SE
8219 ;;
8220
dabbade6
L
8221 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8222 # PIC is the default for these OSes.
d7040cdb
SE
8223 ;;
8224
1927a18f 8225 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8226 # This hack is so that the source file can tell whether it is being
8227 # built for inclusion in a dll (and should export symbols for example).
8228 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8229 # (--disable-auto-import) libraries
8230 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8231 ;;
8232
8233 darwin* | rhapsody*)
dabbade6
L
8234 # PIC is the default on this platform
8235 # Common symbols not allowed in MH_DYLIB files
8236 lt_prog_compiler_pic='-fno-common'
8237 ;;
8238
3725885a
RW
8239 haiku*)
8240 # PIC is the default for Haiku.
8241 # The "-static" flag exists, but is broken.
8242 lt_prog_compiler_static=
8243 ;;
8244
dabbade6 8245 hpux*)
1927a18f
L
8246 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8247 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8248 # sets the default TLS model and affects inlining.
dabbade6 8249 case $host_cpu in
1927a18f 8250 hppa*64*)
dabbade6 8251 # +Z the default
d7040cdb 8252 ;;
dabbade6
L
8253 *)
8254 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8255 ;;
8256 esac
dabbade6 8257 ;;
d7040cdb 8258
dabbade6
L
8259 interix[3-9]*)
8260 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8261 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8262 ;;
8263
dabbade6
L
8264 msdosdjgpp*)
8265 # Just because we use GCC doesn't mean we suddenly get shared libraries
8266 # on systems that don't support them.
8267 lt_prog_compiler_can_build_shared=no
8268 enable_shared=no
d7040cdb
SE
8269 ;;
8270
dabbade6
L
8271 *nto* | *qnx*)
8272 # QNX uses GNU C++, but need to define -shared option too, otherwise
8273 # it will coredump.
8274 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8275 ;;
8276
dabbade6
L
8277 sysv4*MP*)
8278 if test -d /usr/nec; then
8279 lt_prog_compiler_pic=-Kconform_pic
8280 fi
d7040cdb
SE
8281 ;;
8282
dabbade6
L
8283 *)
8284 lt_prog_compiler_pic='-fPIC'
d7040cdb 8285 ;;
dabbade6 8286 esac
3725885a
RW
8287
8288 case $cc_basename in
8289 nvcc*) # Cuda Compiler Driver 2.2
8290 lt_prog_compiler_wl='-Xlinker '
8291 lt_prog_compiler_pic='-Xcompiler -fPIC'
8292 ;;
8293 esac
dabbade6
L
8294 else
8295 # PORTME Check for flag to pass linker flags through the system compiler.
8296 case $host_os in
8297 aix*)
8298 lt_prog_compiler_wl='-Wl,'
8299 if test "$host_cpu" = ia64; then
8300 # AIX 5 now supports IA64 processor
8301 lt_prog_compiler_static='-Bstatic'
d7040cdb 8302 else
dabbade6 8303 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8304 fi
dabbade6 8305 ;;
d7040cdb 8306
1927a18f 8307 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8308 # This hack is so that the source file can tell whether it is being
8309 # built for inclusion in a dll (and should export symbols for example).
8310 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8311 ;;
8312
dabbade6
L
8313 hpux9* | hpux10* | hpux11*)
8314 lt_prog_compiler_wl='-Wl,'
8315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8316 # not for PA HP-UX.
8317 case $host_cpu in
8318 hppa*64*|ia64*)
8319 # +Z the default
8320 ;;
8321 *)
8322 lt_prog_compiler_pic='+Z'
8323 ;;
8324 esac
8325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8326 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8327 ;;
8328
dabbade6
L
8329 irix5* | irix6* | nonstopux*)
8330 lt_prog_compiler_wl='-Wl,'
8331 # PIC (with -KPIC) is the default.
8332 lt_prog_compiler_static='-non_shared'
8333 ;;
d7040cdb 8334
58e24671 8335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6 8336 case $cc_basename in
1927a18f
L
8337 # old Intel for x86_64 which still supported -KPIC.
8338 ecc*)
dabbade6
L
8339 lt_prog_compiler_wl='-Wl,'
8340 lt_prog_compiler_pic='-KPIC'
8341 lt_prog_compiler_static='-static'
8342 ;;
1927a18f
L
8343 # icc used to be incompatible with GCC.
8344 # ICC 10 doesn't accept -KPIC any more.
8345 icc* | ifort*)
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-fPIC'
8348 lt_prog_compiler_static='-static'
8349 ;;
8350 # Lahey Fortran 8.1.
8351 lf95*)
8352 lt_prog_compiler_wl='-Wl,'
8353 lt_prog_compiler_pic='--shared'
8354 lt_prog_compiler_static='--static'
8355 ;;
3725885a 8356 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
dabbade6
L
8357 # Portland Group compilers (*not* the Pentium gcc compiler,
8358 # which looks to be a dead project)
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-fpic'
8361 lt_prog_compiler_static='-Bstatic'
8362 ;;
8363 ccc*)
8364 lt_prog_compiler_wl='-Wl,'
8365 # All Alpha code is PIC.
8366 lt_prog_compiler_static='-non_shared'
8367 ;;
3725885a
RW
8368 xl* | bgxl* | bgf* | mpixl*)
8369 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1927a18f
L
8370 lt_prog_compiler_wl='-Wl,'
8371 lt_prog_compiler_pic='-qpic'
8372 lt_prog_compiler_static='-qstaticlink'
8373 ;;
dabbade6
L
8374 *)
8375 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8376 *Sun\ F* | *Sun*Fortran*)
8377 # Sun Fortran 8.3 passes all unrecognized flags to the linker
dabbade6
L
8378 lt_prog_compiler_pic='-KPIC'
8379 lt_prog_compiler_static='-Bstatic'
3725885a 8380 lt_prog_compiler_wl=''
d7040cdb 8381 ;;
3725885a
RW
8382 *Sun\ C*)
8383 # Sun C 5.9
dabbade6
L
8384 lt_prog_compiler_pic='-KPIC'
8385 lt_prog_compiler_static='-Bstatic'
3725885a 8386 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8387 ;;
8388 esac
dabbade6
L
8389 ;;
8390 esac
d7040cdb
SE
8391 ;;
8392
dabbade6
L
8393 newsos6)
8394 lt_prog_compiler_pic='-KPIC'
8395 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8396 ;;
8397
dabbade6
L
8398 *nto* | *qnx*)
8399 # QNX uses GNU C++, but need to define -shared option too, otherwise
8400 # it will coredump.
8401 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8402 ;;
8403
dabbade6
L
8404 osf3* | osf4* | osf5*)
8405 lt_prog_compiler_wl='-Wl,'
8406 # All OSF/1 code is PIC.
8407 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8408 ;;
8409
dabbade6
L
8410 rdos*)
8411 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8412 ;;
8413
8414 solaris*)
dabbade6
L
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8417 case $cc_basename in
8418 f77* | f90* | f95*)
8419 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8420 *)
dabbade6 8421 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8422 esac
d7040cdb
SE
8423 ;;
8424
8425 sunos4*)
dabbade6
L
8426 lt_prog_compiler_wl='-Qoption ld '
8427 lt_prog_compiler_pic='-PIC'
8428 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8429 ;;
8430
dabbade6
L
8431 sysv4 | sysv4.2uw2* | sysv4.3*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_pic='-KPIC'
8434 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8435 ;;
8436
8437 sysv4*MP*)
dabbade6
L
8438 if test -d /usr/nec ;then
8439 lt_prog_compiler_pic='-Kconform_pic'
8440 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8441 fi
8442 ;;
8443
dabbade6
L
8444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8445 lt_prog_compiler_wl='-Wl,'
8446 lt_prog_compiler_pic='-KPIC'
8447 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8448 ;;
8449
dabbade6
L
8450 unicos*)
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8453 ;;
8454
8455 uts4*)
dabbade6
L
8456 lt_prog_compiler_pic='-pic'
8457 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8458 ;;
8459
8460 *)
dabbade6 8461 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8462 ;;
8463 esac
d7040cdb
SE
8464 fi
8465
dabbade6
L
8466case $host_os in
8467 # For platforms which do not support PIC, -DPIC is meaningless:
8468 *djgpp*)
8469 lt_prog_compiler_pic=
8470 ;;
8471 *)
8472 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8473 ;;
8474esac
81ecdfbb
RW
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8476$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8477
8478
8479
8480
8481
8482
8483#
dabbade6 8484# Check to make sure the PIC flag actually works.
d7040cdb 8485#
dabbade6 8486if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8488$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8489if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
dabbade6 8491else
1927a18f 8492 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8493 ac_outfile=conftest.$ac_objext
8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8496 # Insert the option either (1) after the last *FLAGS variable, or
8497 # (2) before a word containing "conftest.", or (3) at the end.
8498 # Note that $ac_compile itself does not contain backslashes and begins
8499 # with a dollar sign (not a hyphen), so the echo should work correctly.
8500 # The option is referenced via a variable to avoid confusing sed.
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)
dabbade6
L
8506 (eval "$lt_compile" 2>conftest.err)
8507 ac_status=$?
8508 cat conftest.err >&5
3725885a 8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8510 if (exit $ac_status) && test -s "$ac_outfile"; then
8511 # The compiler can only warn and ignore the option if not recognized
8512 # So say no if there are warnings other than the usual output.
3725885a 8513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8516 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8517 fi
8518 fi
8519 $RM conftest*
d7040cdb 8520
dabbade6 8521fi
81ecdfbb
RW
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8523$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8524
1927a18f 8525if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8526 case $lt_prog_compiler_pic in
8527 "" | " "*) ;;
8528 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8529 esac
8530else
8531 lt_prog_compiler_pic=
8532 lt_prog_compiler_can_build_shared=no
8533fi
d7040cdb 8534
dabbade6 8535fi
d7040cdb
SE
8536
8537
8538
8539
8540
8541
dabbade6
L
8542#
8543# Check to make sure the static flag actually works.
8544#
8545wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8547$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8548if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
dabbade6 8550else
1927a18f 8551 lt_cv_prog_compiler_static_works=no
dabbade6
L
8552 save_LDFLAGS="$LDFLAGS"
8553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8556 # The linker can only warn and ignore the option if not recognized
8557 # So say no if there are warnings
8558 if test -s conftest.err; then
8559 # Append any errors to the config.log.
8560 cat conftest.err 1>&5
3725885a 8561 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
dabbade6
L
8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8563 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8564 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8565 fi
8566 else
1927a18f 8567 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8568 fi
8569 fi
1927a18f 8570 $RM -r conftest*
dabbade6 8571 LDFLAGS="$save_LDFLAGS"
d7040cdb 8572
dabbade6 8573fi
81ecdfbb
RW
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8575$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8576
1927a18f 8577if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8578 :
8579else
8580 lt_prog_compiler_static=
8581fi
d7040cdb
SE
8582
8583
8584
8585
8586
8587
8588
81ecdfbb
RW
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8590$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8591if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
dabbade6
L
8593else
8594 lt_cv_prog_compiler_c_o=no
8595 $RM -r conftest 2>/dev/null
8596 mkdir conftest
8597 cd conftest
8598 mkdir out
8599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8600
dabbade6
L
8601 lt_compiler_flag="-o out/conftest2.$ac_objext"
8602 # Insert the option either (1) after the last *FLAGS variable, or
8603 # (2) before a word containing "conftest.", or (3) at the end.
8604 # Note that $ac_compile itself does not contain backslashes and begins
8605 # with a dollar sign (not a hyphen), so the echo should work correctly.
8606 lt_compile=`echo "$ac_compile" | $SED \
8607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609 -e 's:$: $lt_compiler_flag:'`
3725885a 8610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8611 (eval "$lt_compile" 2>out/conftest.err)
8612 ac_status=$?
8613 cat out/conftest.err >&5
3725885a 8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8615 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8616 then
8617 # The compiler can only warn and ignore the option if not recognized
8618 # So say no if there are warnings
3725885a 8619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8620 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8621 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8622 lt_cv_prog_compiler_c_o=yes
8623 fi
8624 fi
8625 chmod u+w . 2>&5
8626 $RM conftest*
8627 # SGI C++ compiler will create directory out/ii_files/ for
8628 # template instantiation
8629 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8630 $RM out/* && rmdir out
8631 cd ..
8632 $RM -r conftest
8633 $RM conftest*
d7040cdb 8634
dabbade6 8635fi
81ecdfbb
RW
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8637$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8638
8639
8640
8641
8642
8643
81ecdfbb
RW
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8645$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8646if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
dabbade6
L
8648else
8649 lt_cv_prog_compiler_c_o=no
8650 $RM -r conftest 2>/dev/null
8651 mkdir conftest
8652 cd conftest
8653 mkdir out
8654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8655
dabbade6
L
8656 lt_compiler_flag="-o out/conftest2.$ac_objext"
8657 # Insert the option either (1) after the last *FLAGS variable, or
8658 # (2) before a word containing "conftest.", or (3) at the end.
8659 # Note that $ac_compile itself does not contain backslashes and begins
8660 # with a dollar sign (not a hyphen), so the echo should work correctly.
8661 lt_compile=`echo "$ac_compile" | $SED \
8662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664 -e 's:$: $lt_compiler_flag:'`
3725885a 8665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8666 (eval "$lt_compile" 2>out/conftest.err)
8667 ac_status=$?
8668 cat out/conftest.err >&5
3725885a 8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8671 then
8672 # The compiler can only warn and ignore the option if not recognized
8673 # So say no if there are warnings
3725885a 8674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8677 lt_cv_prog_compiler_c_o=yes
8678 fi
8679 fi
8680 chmod u+w . 2>&5
8681 $RM conftest*
8682 # SGI C++ compiler will create directory out/ii_files/ for
8683 # template instantiation
8684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8685 $RM out/* && rmdir out
8686 cd ..
8687 $RM -r conftest
8688 $RM conftest*
d7040cdb 8689
dabbade6 8690fi
81ecdfbb
RW
8691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8692$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8693
8694
8695
8696
dabbade6
L
8697hard_links="nottested"
8698if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8699 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8701$as_echo_n "checking if we can lock with hard links... " >&6; }
dabbade6
L
8702 hard_links=yes
8703 $RM conftest*
8704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8705 touch conftest.a
8706 ln conftest.a conftest.b 2>&5 || hard_links=no
8707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8709$as_echo "$hard_links" >&6; }
dabbade6 8710 if test "$hard_links" = no; then
81ecdfbb
RW
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8712$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
dabbade6
L
8713 need_locks=warn
8714 fi
8715else
8716 need_locks=no
8717fi
d7040cdb
SE
8718
8719
8720
8721
8722
8723
81ecdfbb
RW
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8725$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8726
dabbade6
L
8727 runpath_var=
8728 allow_undefined_flag=
8729 always_export_symbols=no
8730 archive_cmds=
8731 archive_expsym_cmds=
8732 compiler_needs_object=no
8733 enable_shared_with_static_runtimes=no
8734 export_dynamic_flag_spec=
8735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8736 hardcode_automatic=no
8737 hardcode_direct=no
8738 hardcode_direct_absolute=no
8739 hardcode_libdir_flag_spec=
8740 hardcode_libdir_flag_spec_ld=
8741 hardcode_libdir_separator=
8742 hardcode_minus_L=no
8743 hardcode_shlibpath_var=unsupported
8744 inherit_rpath=no
8745 link_all_deplibs=unknown
8746 module_cmds=
8747 module_expsym_cmds=
8748 old_archive_from_new_cmds=
8749 old_archive_from_expsyms_cmds=
8750 thread_safe_flag_spec=
8751 whole_archive_flag_spec=
8752 # include_expsyms should be a list of space-separated symbols to be *always*
8753 # included in the symbol list
8754 include_expsyms=
8755 # exclude_expsyms can be an extended regexp of symbols to exclude
8756 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8757 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8758 # as well as any symbol that contains `d'.
1927a18f 8759 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8760 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8761 # platforms (ab)use it in PIC code, but their linkers get confused if
8762 # the symbol is explicitly referenced. Since portable code cannot
8763 # rely on this symbol name, it's probably fine to never include it in
8764 # preloaded symbol tables.
1927a18f 8765 # Exclude shared library initialization/finalization symbols.
dabbade6 8766 extract_expsyms_cmds=
d7040cdb 8767
dabbade6 8768 case $host_os in
1927a18f 8769 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8770 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8771 # When not using gcc, we currently assume that we are using
8772 # Microsoft Visual C++.
8773 if test "$GCC" != yes; then
8774 with_gnu_ld=no
8775 fi
8776 ;;
8777 interix*)
8778 # we just hope/assume this is gcc and not c89 (= MSVC++)
8779 with_gnu_ld=yes
8780 ;;
8781 openbsd*)
8782 with_gnu_ld=no
8783 ;;
8784 esac
d7040cdb 8785
dabbade6 8786 ld_shlibs=yes
3725885a
RW
8787
8788 # On some targets, GNU ld is compatible enough with the native linker
8789 # that we're better off using the native interface for both.
8790 lt_use_gnu_ld_interface=no
dabbade6 8791 if test "$with_gnu_ld" = yes; then
3725885a
RW
8792 case $host_os in
8793 aix*)
8794 # The AIX port of GNU ld has always aspired to compatibility
8795 # with the native linker. However, as the warning in the GNU ld
8796 # block says, versions before 2.19.5* couldn't really create working
8797 # shared libraries, regardless of the interface used.
8798 case `$LD -v 2>&1` in
8799 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8800 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8801 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8802 *)
8803 lt_use_gnu_ld_interface=yes
8804 ;;
8805 esac
8806 ;;
8807 *)
8808 lt_use_gnu_ld_interface=yes
8809 ;;
8810 esac
8811 fi
8812
8813 if test "$lt_use_gnu_ld_interface" = yes; then
dabbade6
L
8814 # If archive_cmds runs LD, not CC, wlarc should be empty
8815 wlarc='${wl}'
d7040cdb 8816
dabbade6
L
8817 # Set some defaults for GNU ld with shared library support. These
8818 # are reset later if shared libraries are not supported. Putting them
8819 # here allows them to be overridden if necessary.
8820 runpath_var=LD_RUN_PATH
8821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822 export_dynamic_flag_spec='${wl}--export-dynamic'
8823 # ancient GNU ld didn't support --whole-archive et. al.
8824 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8825 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8826 else
8827 whole_archive_flag_spec=
8828 fi
8829 supports_anon_versioning=no
8830 case `$LD -v 2>&1` in
3725885a 8831 *GNU\ gold*) supports_anon_versioning=yes ;;
dabbade6
L
8832 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8833 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8834 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8835 *\ 2.11.*) ;; # other 2.11 versions
8836 *) supports_anon_versioning=yes ;;
8837 esac
d7040cdb 8838
dabbade6
L
8839 # See if GNU ld supports shared libraries.
8840 case $host_os in
50e7d84b 8841 aix[3-9]*)
dabbade6
L
8842 # On AIX/PPC, the GNU linker is very broken
8843 if test "$host_cpu" != ia64; then
8844 ld_shlibs=no
8845 cat <<_LT_EOF 1>&2
d7040cdb 8846
3725885a 8847*** Warning: the GNU linker, at least up to release 2.19, is reported
dabbade6
L
8848*** to be unable to reliably create shared libraries on AIX.
8849*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8850*** really care for shared libraries, you may want to install binutils
8851*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8852*** You will then need to restart the configuration process.
d7040cdb 8853
dabbade6
L
8854_LT_EOF
8855 fi
8856 ;;
d7040cdb 8857
dabbade6 8858 amigaos*)
1927a18f
L
8859 case $host_cpu in
8860 powerpc)
8861 # see comment about AmigaOS4 .so support
8862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863 archive_expsym_cmds=''
8864 ;;
8865 m68k)
8866 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)'
8867 hardcode_libdir_flag_spec='-L$libdir'
8868 hardcode_minus_L=yes
8869 ;;
8870 esac
dabbade6 8871 ;;
d7040cdb 8872
dabbade6
L
8873 beos*)
8874 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8875 allow_undefined_flag=unsupported
8876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8877 # support --undefined. This deserves some investigation. FIXME
8878 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879 else
8880 ld_shlibs=no
8881 fi
8882 ;;
d7040cdb 8883
1927a18f 8884 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8885 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8886 # as there is no search path for DLLs.
8887 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8888 export_dynamic_flag_spec='${wl}--export-all-symbols'
dabbade6
L
8889 allow_undefined_flag=unsupported
8890 always_export_symbols=no
8891 enable_shared_with_static_runtimes=yes
8892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8893
dabbade6
L
8894 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8895 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8896 # If the export-symbols file already is a .def file (1st line
8897 # is EXPORTS), use it as is; otherwise, prepend...
8898 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8899 cp $export_symbols $output_objdir/$soname.def;
8900 else
8901 echo EXPORTS > $output_objdir/$soname.def;
8902 cat $export_symbols >> $output_objdir/$soname.def;
8903 fi~
8904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8905 else
8906 ld_shlibs=no
8907 fi
8908 ;;
d7040cdb 8909
3725885a
RW
8910 haiku*)
8911 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8912 link_all_deplibs=yes
8913 ;;
8914
dabbade6
L
8915 interix[3-9]*)
8916 hardcode_direct=no
8917 hardcode_shlibpath_var=no
8918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8919 export_dynamic_flag_spec='${wl}-E'
8920 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8921 # Instead, shared libraries are loaded at an image base (0x10000000 by
8922 # default) and relocated if they conflict, which is a slow very memory
8923 # consuming and fragmenting process. To avoid this, we pick a random,
8924 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8925 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8927 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'
8928 ;;
d7040cdb 8929
58e24671 8930 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
8931 tmp_diet=no
8932 if test "$host_os" = linux-dietlibc; then
8933 case $cc_basename in
8934 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8935 esac
8936 fi
8937 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8938 && test "$tmp_diet" = no
8939 then
6e733cce 8940 tmp_addflag=' $pic_flag'
1927a18f 8941 tmp_sharedflag='-shared'
dabbade6
L
8942 case $cc_basename,$host_cpu in
8943 pgcc*) # Portland Group C compiler
3725885a 8944 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'
dabbade6
L
8945 tmp_addflag=' $pic_flag'
8946 ;;
3725885a
RW
8947 pgf77* | pgf90* | pgf95* | pgfortran*)
8948 # Portland Group f77 and f90 compilers
8949 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'
dabbade6
L
8950 tmp_addflag=' $pic_flag -Mnomain' ;;
8951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8952 tmp_addflag=' -i_dynamic' ;;
8953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8954 tmp_addflag=' -i_dynamic -nofor_main' ;;
8955 ifc* | ifort*) # Intel Fortran compiler
8956 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8957 lf95*) # Lahey Fortran 8.1
8958 whole_archive_flag_spec=
8959 tmp_sharedflag='--shared' ;;
3725885a 8960 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1927a18f
L
8961 tmp_sharedflag='-qmkshrobj'
8962 tmp_addflag= ;;
3725885a
RW
8963 nvcc*) # Cuda Compiler Driver 2.2
8964 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'
8965 compiler_needs_object=yes
8966 ;;
dabbade6
L
8967 esac
8968 case `$CC -V 2>&1 | sed 5q` in
8969 *Sun\ C*) # Sun C 5.9
3725885a 8970 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'
dabbade6
L
8971 compiler_needs_object=yes
8972 tmp_sharedflag='-G' ;;
8973 *Sun\ F*) # Sun Fortran 8.3
8974 tmp_sharedflag='-G' ;;
dabbade6
L
8975 esac
8976 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8977
dabbade6
L
8978 if test "x$supports_anon_versioning" = xyes; then
8979 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8980 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8981 echo "local: *; };" >> $output_objdir/$libname.ver~
8982 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8983 fi
1927a18f
L
8984
8985 case $cc_basename in
3725885a 8986 xlf* | bgf* | bgxlf* | mpixlf*)
1927a18f
L
8987 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8988 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8989 hardcode_libdir_flag_spec=
8990 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8991 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8992 if test "x$supports_anon_versioning" = xyes; then
8993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8995 echo "local: *; };" >> $output_objdir/$libname.ver~
8996 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8997 fi
8998 ;;
8999 esac
dabbade6
L
9000 else
9001 ld_shlibs=no
9002 fi
9003 ;;
d7040cdb 9004
dabbade6
L
9005 netbsd*)
9006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9007 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9008 wlarc=
9009 else
9010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012 fi
9013 ;;
d7040cdb 9014
dabbade6
L
9015 solaris*)
9016 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9017 ld_shlibs=no
9018 cat <<_LT_EOF 1>&2
d7040cdb 9019
dabbade6
L
9020*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9021*** create shared libraries on Solaris systems. Therefore, libtool
9022*** is disabling shared libraries support. We urge you to upgrade GNU
9023*** binutils to release 2.9.1 or newer. Another option is to modify
9024*** your PATH or compiler configuration so that the native linker is
9025*** used, and then restart.
d7040cdb 9026
dabbade6
L
9027_LT_EOF
9028 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
d7040cdb 9035
dabbade6
L
9036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9037 case `$LD -v 2>&1` in
9038 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9039 ld_shlibs=no
9040 cat <<_LT_EOF 1>&2
d7040cdb 9041
dabbade6
L
9042*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9043*** reliably create shared libraries on SCO systems. Therefore, libtool
9044*** is disabling shared libraries support. We urge you to upgrade GNU
9045*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9046*** your PATH or compiler configuration so that the native linker is
9047*** used, and then restart.
d7040cdb 9048
dabbade6
L
9049_LT_EOF
9050 ;;
9051 *)
9052 # For security reasons, it is highly recommended that you always
9053 # use absolute paths for naming shared libraries, and exclude the
9054 # DT_RUNPATH tag from executables and libraries. But doing so
9055 # requires that you compile everything twice, which is a pain.
9056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9058 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9059 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9060 else
9061 ld_shlibs=no
9062 fi
9063 ;;
9064 esac
9065 ;;
d7040cdb 9066
dabbade6
L
9067 sunos4*)
9068 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9069 wlarc=
9070 hardcode_direct=yes
9071 hardcode_shlibpath_var=no
9072 ;;
d7040cdb 9073
dabbade6
L
9074 *)
9075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9078 else
9079 ld_shlibs=no
9080 fi
9081 ;;
9082 esac
d7040cdb 9083
dabbade6
L
9084 if test "$ld_shlibs" = no; then
9085 runpath_var=
9086 hardcode_libdir_flag_spec=
9087 export_dynamic_flag_spec=
9088 whole_archive_flag_spec=
9089 fi
9090 else
9091 # PORTME fill in a description of your system's linker (not GNU ld)
9092 case $host_os in
9093 aix3*)
9094 allow_undefined_flag=unsupported
9095 always_export_symbols=yes
9096 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'
9097 # Note: this linker hardcodes the directories in LIBPATH if there
9098 # are no directories specified by -L.
9099 hardcode_minus_L=yes
9100 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9101 # Neither direct hardcoding nor static linking is supported with a
9102 # broken collect2.
9103 hardcode_direct=unsupported
9104 fi
9105 ;;
d7040cdb 9106
50e7d84b 9107 aix[4-9]*)
dabbade6
L
9108 if test "$host_cpu" = ia64; then
9109 # On IA64, the linker does run time linking by default, so we don't
9110 # have to do anything special.
9111 aix_use_runtimelinking=no
9112 exp_sym_flag='-Bexport'
9113 no_entry_flag=""
9114 else
9115 # If we're using GNU nm, then we don't want the "-C" option.
9116 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9117 # Also, AIX nm treats weak defined symbols like other global
9118 # defined symbols, whereas GNU nm marks them as "W".
dabbade6 9119 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9120 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'
dabbade6 9121 else
5c14705f 9122 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
dabbade6
L
9123 fi
9124 aix_use_runtimelinking=no
d7040cdb 9125
dabbade6
L
9126 # Test if we are trying to use run time linking or normal
9127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9128 # need to do runtime linking.
50e7d84b 9129 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
9130 for ld_flag in $LDFLAGS; do
9131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9132 aix_use_runtimelinking=yes
9133 break
9134 fi
9135 done
9136 ;;
9137 esac
d7040cdb 9138
dabbade6
L
9139 exp_sym_flag='-bexport'
9140 no_entry_flag='-bnoentry'
9141 fi
d7040cdb 9142
dabbade6
L
9143 # When large executables or shared objects are built, AIX ld can
9144 # have problems creating the table of contents. If linking a library
9145 # or program results in "error TOC overflow" add -mminimal-toc to
9146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9148
dabbade6
L
9149 archive_cmds=''
9150 hardcode_direct=yes
9151 hardcode_direct_absolute=yes
9152 hardcode_libdir_separator=':'
9153 link_all_deplibs=yes
9154 file_list_spec='${wl}-f,'
d7040cdb 9155
dabbade6
L
9156 if test "$GCC" = yes; then
9157 case $host_os in aix4.[012]|aix4.[012].*)
9158 # We only want to do this on AIX 4.2 and lower, the check
9159 # below for broken collect2 doesn't work under 4.3+
9160 collect2name=`${CC} -print-prog-name=collect2`
9161 if test -f "$collect2name" &&
9162 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9163 then
9164 # We have reworked collect2
9165 :
9166 else
9167 # We have old collect2
9168 hardcode_direct=unsupported
9169 # It fails to find uninstalled libraries when the uninstalled
9170 # path is not listed in the libpath. Setting hardcode_minus_L
9171 # to unsupported forces relinking
9172 hardcode_minus_L=yes
9173 hardcode_libdir_flag_spec='-L$libdir'
9174 hardcode_libdir_separator=
9175 fi
9176 ;;
9177 esac
9178 shared_flag='-shared'
9179 if test "$aix_use_runtimelinking" = yes; then
9180 shared_flag="$shared_flag "'${wl}-G'
9181 fi
9182 else
9183 # not using gcc
9184 if test "$host_cpu" = ia64; then
9185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9186 # chokes on -Wl,-G. The following line is correct:
9187 shared_flag='-G'
9188 else
9189 if test "$aix_use_runtimelinking" = yes; then
9190 shared_flag='${wl}-G'
9191 else
9192 shared_flag='${wl}-bM:SRE'
9193 fi
9194 fi
9195 fi
d7040cdb 9196
1927a18f 9197 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
9198 # It seems that -bexpall does not export symbols beginning with
9199 # underscore (_), so it is better to generate a list of symbols to export.
9200 always_export_symbols=yes
9201 if test "$aix_use_runtimelinking" = yes; then
9202 # Warning - without using the other runtime loading flags (-brtl),
9203 # -berok will link without error, but may produce a broken library.
9204 allow_undefined_flag='-berok'
9205 # Determine the default libpath from the value encoded in an
9206 # empty executable.
81ecdfbb 9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9208/* end confdefs.h. */
d7040cdb 9209
dabbade6
L
9210int
9211main ()
9212{
d7040cdb 9213
dabbade6
L
9214 ;
9215 return 0;
9216}
9217_ACEOF
81ecdfbb 9218if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9219
dabbade6
L
9220lt_aix_libpath_sed='
9221 /Import File Strings/,/^$/ {
9222 /^0/ {
9223 s/^0 *\(.*\)$/\1/
9224 p
9225 }
9226 }'
9227aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228# Check for a 64-bit object if we didn't find anything.
9229if test -z "$aix_libpath"; then
9230 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9231fi
dabbade6 9232fi
81ecdfbb
RW
9233rm -f core conftest.err conftest.$ac_objext \
9234 conftest$ac_exeext conftest.$ac_ext
dabbade6 9235if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9236
dabbade6 9237 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9238 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"
dabbade6
L
9239 else
9240 if test "$host_cpu" = ia64; then
9241 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9242 allow_undefined_flag="-z nodefs"
9243 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"
9244 else
9245 # Determine the default libpath from the value encoded in an
9246 # empty executable.
81ecdfbb 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9248/* end confdefs.h. */
d7040cdb 9249
dabbade6
L
9250int
9251main ()
9252{
d7040cdb 9253
dabbade6
L
9254 ;
9255 return 0;
9256}
9257_ACEOF
81ecdfbb 9258if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9259
dabbade6
L
9260lt_aix_libpath_sed='
9261 /Import File Strings/,/^$/ {
9262 /^0/ {
9263 s/^0 *\(.*\)$/\1/
9264 p
9265 }
9266 }'
9267aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268# Check for a 64-bit object if we didn't find anything.
9269if test -z "$aix_libpath"; then
9270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9271fi
dabbade6 9272fi
81ecdfbb
RW
9273rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
dabbade6 9275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9276
dabbade6
L
9277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9278 # Warning - without using the other run time loading flags,
9279 # -berok will link without error, but may produce a broken library.
9280 no_undefined_flag=' ${wl}-bernotok'
9281 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9282 if test "$with_gnu_ld" = yes; then
9283 # We only use this code for GNU lds that support --whole-archive.
9284 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9285 else
9286 # Exported symbols can be pulled into shared objects from archives
9287 whole_archive_flag_spec='$convenience'
9288 fi
dabbade6
L
9289 archive_cmds_need_lc=yes
9290 # This is similar to how AIX traditionally builds its shared libraries.
9291 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'
9292 fi
9293 fi
9294 ;;
d7040cdb 9295
dabbade6 9296 amigaos*)
1927a18f
L
9297 case $host_cpu in
9298 powerpc)
9299 # see comment about AmigaOS4 .so support
9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301 archive_expsym_cmds=''
9302 ;;
9303 m68k)
9304 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)'
9305 hardcode_libdir_flag_spec='-L$libdir'
9306 hardcode_minus_L=yes
9307 ;;
9308 esac
dabbade6 9309 ;;
d7040cdb 9310
dabbade6
L
9311 bsdi[45]*)
9312 export_dynamic_flag_spec=-rdynamic
9313 ;;
d7040cdb 9314
1927a18f 9315 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9316 # When not using gcc, we currently assume that we are using
9317 # Microsoft Visual C++.
9318 # hardcode_libdir_flag_spec is actually meaningless, as there is
9319 # no search path for DLLs.
9320 hardcode_libdir_flag_spec=' '
9321 allow_undefined_flag=unsupported
9322 # Tell ltmain to make .lib files, not .a files.
9323 libext=lib
9324 # Tell ltmain to make .dll files, not .so files.
9325 shrext_cmds=".dll"
9326 # FIXME: Setting linknames here is a bad hack.
3725885a 9327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
dabbade6
L
9328 # The linker will automatically build a .lib file if we build a DLL.
9329 old_archive_from_new_cmds='true'
9330 # FIXME: Should let the user specify the lib program.
9331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9332 fix_srcfile_path='`cygpath -w "$srcfile"`'
9333 enable_shared_with_static_runtimes=yes
9334 ;;
d7040cdb 9335
dabbade6 9336 darwin* | rhapsody*)
d7040cdb 9337
1927a18f
L
9338
9339 archive_cmds_need_lc=no
9340 hardcode_direct=no
9341 hardcode_automatic=yes
9342 hardcode_shlibpath_var=unsupported
3725885a
RW
9343 if test "$lt_cv_ld_force_load" = "yes"; then
9344 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\"`'
9345 else
9346 whole_archive_flag_spec=''
9347 fi
1927a18f
L
9348 link_all_deplibs=yes
9349 allow_undefined_flag="$_lt_dar_allow_undefined"
9350 case $cc_basename in
9351 ifort*) _lt_dar_can_shared=yes ;;
9352 *) _lt_dar_can_shared=$GCC ;;
9353 esac
9354 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9355 output_verbose_link_cmd=func_echo_all
1927a18f
L
9356 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9357 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9358 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}"
9359 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}"
9360
9361 else
9362 ld_shlibs=no
9363 fi
9364
dabbade6 9365 ;;
d7040cdb 9366
dabbade6
L
9367 dgux*)
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_libdir_flag_spec='-L$libdir'
9370 hardcode_shlibpath_var=no
9371 ;;
d7040cdb 9372
dabbade6
L
9373 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9374 # support. Future versions do this automatically, but an explicit c++rt0.o
9375 # does not break anything, and helps significantly (at the cost of a little
9376 # extra space).
9377 freebsd2.2*)
9378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9379 hardcode_libdir_flag_spec='-R$libdir'
9380 hardcode_direct=yes
9381 hardcode_shlibpath_var=no
9382 ;;
d7040cdb 9383
dabbade6 9384 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9385 freebsd2.*)
dabbade6
L
9386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_direct=yes
9388 hardcode_minus_L=yes
9389 hardcode_shlibpath_var=no
9390 ;;
d7040cdb 9391
dabbade6
L
9392 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9393 freebsd* | dragonfly*)
9394 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9395 hardcode_libdir_flag_spec='-R$libdir'
9396 hardcode_direct=yes
9397 hardcode_shlibpath_var=no
9398 ;;
d7040cdb 9399
dabbade6
L
9400 hpux9*)
9401 if test "$GCC" = yes; then
9402 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'
9403 else
9404 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'
9405 fi
9406 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407 hardcode_libdir_separator=:
9408 hardcode_direct=yes
d7040cdb 9409
dabbade6
L
9410 # hardcode_minus_L: Not really in the search PATH,
9411 # but as the default location of the library.
9412 hardcode_minus_L=yes
9413 export_dynamic_flag_spec='${wl}-E'
9414 ;;
d7040cdb 9415
dabbade6 9416 hpux10*)
3725885a 9417 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9419 else
9420 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9421 fi
9422 if test "$with_gnu_ld" = no; then
9423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9424 hardcode_libdir_flag_spec_ld='+b $libdir'
9425 hardcode_libdir_separator=:
9426 hardcode_direct=yes
9427 hardcode_direct_absolute=yes
9428 export_dynamic_flag_spec='${wl}-E'
9429 # hardcode_minus_L: Not really in the search PATH,
9430 # but as the default location of the library.
9431 hardcode_minus_L=yes
9432 fi
9433 ;;
d7040cdb 9434
dabbade6 9435 hpux11*)
3725885a 9436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9437 case $host_cpu in
9438 hppa*64*)
9439 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 ia64*)
1927a18f 9442 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9443 ;;
9444 *)
9445 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 ;;
9447 esac
9448 else
9449 case $host_cpu in
9450 hppa*64*)
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 ;;
9453 ia64*)
9454 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455 ;;
9456 *)
3725885a
RW
9457
9458 # Older versions of the 11.00 compiler do not understand -b yet
9459 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9461$as_echo_n "checking if $CC understands -b... " >&6; }
9462if test "${lt_cv_prog_compiler__b+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464else
9465 lt_cv_prog_compiler__b=no
9466 save_LDFLAGS="$LDFLAGS"
9467 LDFLAGS="$LDFLAGS -b"
9468 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err; then
9473 # Append any errors to the config.log.
9474 cat conftest.err 1>&5
9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9477 if diff conftest.exp conftest.er2 >/dev/null; then
9478 lt_cv_prog_compiler__b=yes
9479 fi
9480 else
9481 lt_cv_prog_compiler__b=yes
9482 fi
9483 fi
9484 $RM -r conftest*
9485 LDFLAGS="$save_LDFLAGS"
9486
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9489$as_echo "$lt_cv_prog_compiler__b" >&6; }
9490
9491if test x"$lt_cv_prog_compiler__b" = xyes; then
9492 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9493else
9494 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9495fi
9496
dabbade6
L
9497 ;;
9498 esac
9499 fi
9500 if test "$with_gnu_ld" = no; then
9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502 hardcode_libdir_separator=:
d7040cdb 9503
dabbade6
L
9504 case $host_cpu in
9505 hppa*64*|ia64*)
9506 hardcode_direct=no
9507 hardcode_shlibpath_var=no
9508 ;;
9509 *)
9510 hardcode_direct=yes
9511 hardcode_direct_absolute=yes
9512 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9513
dabbade6
L
9514 # hardcode_minus_L: Not really in the search PATH,
9515 # but as the default location of the library.
9516 hardcode_minus_L=yes
9517 ;;
9518 esac
9519 fi
9520 ;;
d7040cdb 9521
dabbade6
L
9522 irix5* | irix6* | nonstopux*)
9523 if test "$GCC" = yes; then
3725885a 9524 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'
dabbade6
L
9525 # Try to use the -exported_symbol ld option, if it does not
9526 # work, assume that -exports_file does not work either and
9527 # implicitly export all symbols.
9528 save_LDFLAGS="$LDFLAGS"
9529 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h. */
dabbade6
L
9532int foo(void) {}
9533_ACEOF
81ecdfbb 9534if ac_fn_c_try_link "$LINENO"; then :
3725885a 9535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
d7040cdb 9536
d7040cdb 9537fi
81ecdfbb
RW
9538rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9540 LDFLAGS="$save_LDFLAGS"
9541 else
3725885a
RW
9542 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'
9543 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'
dabbade6
L
9544 fi
9545 archive_cmds_need_lc='no'
9546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547 hardcode_libdir_separator=:
9548 inherit_rpath=yes
9549 link_all_deplibs=yes
9550 ;;
d7040cdb 9551
dabbade6
L
9552 netbsd*)
9553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9555 else
9556 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9557 fi
9558 hardcode_libdir_flag_spec='-R$libdir'
9559 hardcode_direct=yes
9560 hardcode_shlibpath_var=no
9561 ;;
d7040cdb 9562
dabbade6
L
9563 newsos6)
9564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565 hardcode_direct=yes
9566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9567 hardcode_libdir_separator=:
9568 hardcode_shlibpath_var=no
9569 ;;
d7040cdb 9570
dabbade6
L
9571 *nto* | *qnx*)
9572 ;;
d7040cdb 9573
dabbade6 9574 openbsd*)
1927a18f
L
9575 if test -f /usr/libexec/ld.so; then
9576 hardcode_direct=yes
9577 hardcode_shlibpath_var=no
9578 hardcode_direct_absolute=yes
9579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9581 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9583 export_dynamic_flag_spec='${wl}-E'
9584 else
9585 case $host_os in
9586 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9588 hardcode_libdir_flag_spec='-R$libdir'
9589 ;;
9590 *)
9591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9593 ;;
9594 esac
9595 fi
9596 else
9597 ld_shlibs=no
d7040cdb
SE
9598 fi
9599 ;;
d7040cdb 9600
dabbade6
L
9601 os2*)
9602 hardcode_libdir_flag_spec='-L$libdir'
9603 hardcode_minus_L=yes
9604 allow_undefined_flag=unsupported
3725885a 9605 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'
dabbade6
L
9606 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9607 ;;
d7040cdb 9608
dabbade6
L
9609 osf3*)
9610 if test "$GCC" = yes; then
9611 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9612 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'
dabbade6
L
9613 else
9614 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9615 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'
dabbade6
L
9616 fi
9617 archive_cmds_need_lc='no'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator=:
9620 ;;
d7040cdb 9621
dabbade6
L
9622 osf4* | osf5*) # as osf3* with the addition of -msym flag
9623 if test "$GCC" = yes; then
9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9625 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'
dabbade6
L
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627 else
9628 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9629 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'
dabbade6 9630 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 9631 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 9632
dabbade6
L
9633 # Both c and cxx compiler support -rpath directly
9634 hardcode_libdir_flag_spec='-rpath $libdir'
9635 fi
9636 archive_cmds_need_lc='no'
9637 hardcode_libdir_separator=:
9638 ;;
d7040cdb 9639
dabbade6
L
9640 solaris*)
9641 no_undefined_flag=' -z defs'
9642 if test "$GCC" = yes; then
9643 wlarc='${wl}'
9644 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9646 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9647 else
9648 case `$CC -V 2>&1` in
9649 *"Compilers 5.0"*)
9650 wlarc=''
9651 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9653 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9654 ;;
9655 *)
9656 wlarc='${wl}'
9657 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9659 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9660 ;;
9661 esac
9662 fi
9663 hardcode_libdir_flag_spec='-R$libdir'
9664 hardcode_shlibpath_var=no
9665 case $host_os in
9666 solaris2.[0-5] | solaris2.[0-5].*) ;;
9667 *)
9668 # The compiler driver will combine and reorder linker options,
9669 # but understands `-z linker_flag'. GCC discards it without `$wl',
9670 # but is careful enough not to reorder.
9671 # Supported since Solaris 2.6 (maybe 2.5.1?)
9672 if test "$GCC" = yes; then
9673 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9674 else
9675 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9676 fi
9677 ;;
9678 esac
9679 link_all_deplibs=yes
d7040cdb 9680 ;;
dabbade6
L
9681
9682 sunos4*)
9683 if test "x$host_vendor" = xsequent; then
9684 # Use $CC to link under sequent, because it throws in some extra .o
9685 # files that make .init and .fini sections work.
9686 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9687 else
dabbade6 9688 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9689 fi
dabbade6
L
9690 hardcode_libdir_flag_spec='-L$libdir'
9691 hardcode_direct=yes
9692 hardcode_minus_L=yes
9693 hardcode_shlibpath_var=no
d7040cdb 9694 ;;
dabbade6
L
9695
9696 sysv4)
9697 case $host_vendor in
9698 sni)
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_direct=yes # is this really true???
9701 ;;
9702 siemens)
9703 ## LD is ld it makes a PLAMLIB
9704 ## CC just makes a GrossModule.
9705 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9706 reload_cmds='$CC -r -o $output$reload_objs'
9707 hardcode_direct=no
9708 ;;
9709 motorola)
9710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9711 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9712 ;;
9713 esac
9714 runpath_var='LD_RUN_PATH'
9715 hardcode_shlibpath_var=no
d7040cdb 9716 ;;
d7040cdb 9717
dabbade6
L
9718 sysv4.3*)
9719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_shlibpath_var=no
9721 export_dynamic_flag_spec='-Bexport'
9722 ;;
d7040cdb 9723
dabbade6
L
9724 sysv4*MP*)
9725 if test -d /usr/nec; then
9726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9727 hardcode_shlibpath_var=no
9728 runpath_var=LD_RUN_PATH
9729 hardcode_runpath_var=yes
9730 ld_shlibs=yes
9731 fi
9732 ;;
d7040cdb 9733
dabbade6
L
9734 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9735 no_undefined_flag='${wl}-z,text'
9736 archive_cmds_need_lc=no
9737 hardcode_shlibpath_var=no
9738 runpath_var='LD_RUN_PATH'
d7040cdb 9739
dabbade6
L
9740 if test "$GCC" = yes; then
9741 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 else
9744 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 fi
9747 ;;
d7040cdb 9748
dabbade6
L
9749 sysv5* | sco3.2v5* | sco5v6*)
9750 # Note: We can NOT use -z defs as we might desire, because we do not
9751 # link with -lc, and that would cause any symbols used from libc to
9752 # always be unresolved, which means just about no library would
9753 # ever link correctly. If we're not using GNU ld we use -z text
9754 # though, which does catch some bad symbols but isn't as heavy-handed
9755 # as -z defs.
9756 no_undefined_flag='${wl}-z,text'
9757 allow_undefined_flag='${wl}-z,nodefs'
9758 archive_cmds_need_lc=no
9759 hardcode_shlibpath_var=no
9760 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9761 hardcode_libdir_separator=':'
9762 link_all_deplibs=yes
9763 export_dynamic_flag_spec='${wl}-Bexport'
9764 runpath_var='LD_RUN_PATH'
d7040cdb 9765
dabbade6
L
9766 if test "$GCC" = yes; then
9767 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9768 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 else
9770 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 fi
d7040cdb 9773 ;;
d7040cdb 9774
dabbade6
L
9775 uts4*)
9776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 hardcode_shlibpath_var=no
9779 ;;
d7040cdb 9780
dabbade6
L
9781 *)
9782 ld_shlibs=no
9783 ;;
9784 esac
9785
9786 if test x$host_vendor = xsni; then
9787 case $host in
9788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9789 export_dynamic_flag_spec='${wl}-Blargedynsym'
9790 ;;
9791 esac
d7040cdb 9792 fi
dabbade6 9793 fi
d7040cdb 9794
81ecdfbb
RW
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9796$as_echo "$ld_shlibs" >&6; }
dabbade6 9797test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9798
dabbade6 9799with_gnu_ld=$with_gnu_ld
d7040cdb 9800
d7040cdb 9801
d7040cdb 9802
d7040cdb 9803
d7040cdb 9804
d7040cdb 9805
d7040cdb 9806
d7040cdb 9807
d7040cdb 9808
d7040cdb 9809
d7040cdb 9810
d7040cdb 9811
d7040cdb 9812
d7040cdb 9813
d7040cdb 9814
dabbade6
L
9815#
9816# Do we need to explicitly link libc?
9817#
9818case "x$archive_cmds_need_lc" in
9819x|xyes)
9820 # Assume -lc should be added
9821 archive_cmds_need_lc=yes
d7040cdb 9822
dabbade6
L
9823 if test "$enable_shared" = yes && test "$GCC" = yes; then
9824 case $archive_cmds in
9825 *'~'*)
9826 # FIXME: we may have to deal with multi-command sequences.
9827 ;;
9828 '$CC '*)
9829 # Test whether the compiler implicitly links with -lc since on some
9830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9833$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9834if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
39144654
RW
9836else
9837 $RM conftest*
9838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9839
81ecdfbb 9840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
dabbade6
L
9841 (eval $ac_compile) 2>&5
9842 ac_status=$?
81ecdfbb
RW
9843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9844 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9845 soname=conftest
9846 lib=conftest
9847 libobjs=conftest.$ac_objext
9848 deplibs=
9849 wl=$lt_prog_compiler_wl
9850 pic_flag=$lt_prog_compiler_pic
9851 compiler_flags=-v
9852 linker_flags=-v
9853 verstring=
9854 output_objdir=.
9855 libname=conftest
9856 lt_save_allow_undefined_flag=$allow_undefined_flag
9857 allow_undefined_flag=
81ecdfbb 9858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
dabbade6
L
9859 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9860 ac_status=$?
81ecdfbb
RW
9861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9862 test $ac_status = 0; }
39144654
RW
9863 then
9864 lt_cv_archive_cmds_need_lc=no
9865 else
9866 lt_cv_archive_cmds_need_lc=yes
9867 fi
9868 allow_undefined_flag=$lt_save_allow_undefined_flag
9869 else
9870 cat conftest.err 1>&5
9871 fi
9872 $RM conftest*
9873
9874fi
81ecdfbb
RW
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9876$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9877 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9878 ;;
9879 esac
d7040cdb 9880 fi
d7040cdb 9881 ;;
dabbade6 9882esac
d7040cdb 9883
d7040cdb 9884
d7040cdb 9885
d7040cdb 9886
d7040cdb 9887
d7040cdb 9888
d7040cdb 9889
d7040cdb
SE
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
d7040cdb 9977
d7040cdb 9978
d7040cdb
SE
9979
9980
9981
9982
9983
9984
d7040cdb 9985
d7040cdb 9986
d7040cdb 9987
d7040cdb 9988
d7040cdb 9989
d7040cdb 9990
d7040cdb 9991
d7040cdb 9992
d7040cdb 9993
d7040cdb 9994
d7040cdb 9995
d7040cdb 9996
d7040cdb 9997
d7040cdb 9998
d7040cdb 9999
d7040cdb 10000
d7040cdb 10001
d7040cdb 10002
d7040cdb 10003
d7040cdb 10004
d7040cdb 10005
d7040cdb 10006
d7040cdb 10007
d7040cdb 10008
dabbade6
L
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
81ecdfbb
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10041$as_echo_n "checking dynamic linker characteristics... " >&6; }
1927a18f
L
10042
10043if test "$GCC" = yes; then
dabbade6
L
10044 case $host_os in
10045 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10046 *) lt_awk_arg="/^libraries:/" ;;
10047 esac
3725885a
RW
10048 case $host_os in
10049 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10050 *) lt_sed_strip_eq="s,=/,/,g" ;;
10051 esac
10052 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10053 case $lt_search_path_spec in
10054 *\;*)
dabbade6
L
10055 # if the path contains ";" then we assume it to be the separator
10056 # otherwise default to the standard path separator (i.e. ":") - it is
10057 # assumed that no part of a normal pathname contains ";" but that should
10058 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10059 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10060 ;;
10061 *)
10062 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10063 ;;
10064 esac
dabbade6
L
10065 # Ok, now we have the path, separated by spaces, we can step through it
10066 # and add multilib dir if necessary.
10067 lt_tmp_lt_search_path_spec=
10068 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10069 for lt_sys_path in $lt_search_path_spec; do
10070 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10071 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10072 else
10073 test -d "$lt_sys_path" && \
10074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10075 fi
10076 done
3725885a 10077 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
dabbade6
L
10078BEGIN {RS=" "; FS="/|\n";} {
10079 lt_foo="";
10080 lt_count=0;
10081 for (lt_i = NF; lt_i > 0; lt_i--) {
10082 if ($lt_i != "" && $lt_i != ".") {
10083 if ($lt_i == "..") {
10084 lt_count++;
10085 } else {
10086 if (lt_count == 0) {
10087 lt_foo="/" $lt_i lt_foo;
10088 } else {
10089 lt_count--;
10090 }
10091 }
10092 }
10093 }
10094 if (lt_foo != "") { lt_freq[lt_foo]++; }
10095 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10096}'`
3725885a
RW
10097 # AWK program above erroneously prepends '/' to C:/dos/paths
10098 # for these hosts.
10099 case $host_os in
10100 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10101 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10102 esac
10103 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10104else
dabbade6
L
10105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10106fi
10107library_names_spec=
10108libname_spec='lib$name'
10109soname_spec=
10110shrext_cmds=".so"
10111postinstall_cmds=
10112postuninstall_cmds=
10113finish_cmds=
10114finish_eval=
10115shlibpath_var=
10116shlibpath_overrides_runpath=unknown
10117version_type=none
10118dynamic_linker="$host_os ld.so"
10119sys_lib_dlsearch_path_spec="/lib /usr/lib"
10120need_lib_prefix=unknown
10121hardcode_into_libs=no
10122
10123# when you set need_version to no, make sure it does not cause -set_version
10124# flags to be left without arguments
10125need_version=unknown
10126
10127case $host_os in
10128aix3*)
10129 version_type=linux
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10131 shlibpath_var=LIBPATH
10132
10133 # AIX 3 has no versioning support, so we append a major version to the name.
10134 soname_spec='${libname}${release}${shared_ext}$major'
10135 ;;
10136
50e7d84b 10137aix[4-9]*)
dabbade6
L
10138 version_type=linux
10139 need_lib_prefix=no
10140 need_version=no
10141 hardcode_into_libs=yes
10142 if test "$host_cpu" = ia64; then
10143 # AIX 5 supports IA64
10144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10145 shlibpath_var=LD_LIBRARY_PATH
10146 else
10147 # With GCC up to 2.95.x, collect2 would create an import file
10148 # for dependence libraries. The import file would start with
10149 # the line `#! .'. This would cause the generated library to
10150 # depend on `.', always an invalid library. This was fixed in
10151 # development snapshots of GCC prior to 3.0.
10152 case $host_os in
10153 aix4 | aix4.[01] | aix4.[01].*)
10154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10155 echo ' yes '
10156 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10157 :
10158 else
10159 can_build_shared=no
10160 fi
10161 ;;
10162 esac
10163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10164 # soname into executable. Probably we can add versioning support to
10165 # collect2, so additional links can be useful in future.
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10168 # instead of lib<name>.a to let people know that these are not
10169 # typical AIX shared libraries.
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171 else
10172 # We preserve .a as extension for shared libraries through AIX4.2
10173 # and later when we are not doing run time linking.
10174 library_names_spec='${libname}${release}.a $libname.a'
10175 soname_spec='${libname}${release}${shared_ext}$major'
10176 fi
10177 shlibpath_var=LIBPATH
10178 fi
10179 ;;
10180
10181amigaos*)
1927a18f
L
10182 case $host_cpu in
10183 powerpc)
10184 # Since July 2007 AmigaOS4 officially supports .so libraries.
10185 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187 ;;
10188 m68k)
dabbade6
L
10189 library_names_spec='$libname.ixlibrary $libname.a'
10190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10191 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'
1927a18f
L
10192 ;;
10193 esac
dabbade6
L
10194 ;;
10195
10196beos*)
10197 library_names_spec='${libname}${shared_ext}'
10198 dynamic_linker="$host_os ld.so"
10199 shlibpath_var=LIBRARY_PATH
10200 ;;
10201
10202bsdi[45]*)
10203 version_type=linux
10204 need_version=no
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 soname_spec='${libname}${release}${shared_ext}$major'
10207 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10208 shlibpath_var=LD_LIBRARY_PATH
10209 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10210 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10211 # the default ld.so.conf also contains /usr/contrib/lib and
10212 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10213 # libtool to hard-code these into programs
10214 ;;
10215
1927a18f 10216cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
10217 version_type=windows
10218 shrext_cmds=".dll"
10219 need_version=no
10220 need_lib_prefix=no
10221
1927a18f
L
10222 case $GCC,$host_os in
10223 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
10224 library_names_spec='$libname.dll.a'
10225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10226 postinstall_cmds='base_file=`basename \${file}`~
10227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10228 dldir=$destdir/`dirname \$dlpath`~
10229 test -d \$dldir || mkdir -p \$dldir~
10230 $install_prog $dir/$dlname \$dldir/$dlname~
10231 chmod a+x \$dldir/$dlname~
10232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10234 fi'
10235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10236 dlpath=$dir/\$dldll~
10237 $RM \$dlpath'
10238 shlibpath_overrides_runpath=yes
10239
10240 case $host_os in
10241 cygwin*)
10242 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10243 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10244
10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
dabbade6 10246 ;;
1927a18f 10247 mingw* | cegcc*)
dabbade6
L
10248 # MinGW DLLs use traditional 'lib' prefix
10249 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
dabbade6
L
10250 ;;
10251 pw32*)
10252 # pw32 DLLs use 'pw' prefix rather than 'lib'
10253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254 ;;
10255 esac
10256 ;;
10257
10258 *)
10259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10260 ;;
10261 esac
10262 dynamic_linker='Win32 ld.exe'
10263 # FIXME: first we should search . and the directory the executable is in
10264 shlibpath_var=PATH
10265 ;;
10266
10267darwin* | rhapsody*)
10268 dynamic_linker="$host_os dyld"
10269 version_type=darwin
10270 need_lib_prefix=no
10271 need_version=no
10272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10273 soname_spec='${libname}${release}${major}$shared_ext'
10274 shlibpath_overrides_runpath=yes
10275 shlibpath_var=DYLD_LIBRARY_PATH
10276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10277
10278 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10280 ;;
10281
10282dgux*)
10283 version_type=linux
10284 need_lib_prefix=no
10285 need_version=no
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 ;;
10290
dabbade6
L
10291freebsd* | dragonfly*)
10292 # DragonFly does not have aout. When/if they implement a new
10293 # versioning mechanism, adjust this.
10294 if test -x /usr/bin/objformat; then
10295 objformat=`/usr/bin/objformat`
10296 else
10297 case $host_os in
6d2920c8 10298 freebsd[23].*) objformat=aout ;;
dabbade6
L
10299 *) objformat=elf ;;
10300 esac
10301 fi
10302 version_type=freebsd-$objformat
10303 case $version_type in
10304 freebsd-elf*)
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10306 need_version=no
10307 need_lib_prefix=no
10308 ;;
10309 freebsd-*)
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10311 need_version=yes
10312 ;;
10313 esac
10314 shlibpath_var=LD_LIBRARY_PATH
10315 case $host_os in
6d2920c8 10316 freebsd2.*)
dabbade6
L
10317 shlibpath_overrides_runpath=yes
10318 ;;
10319 freebsd3.[01]* | freebsdelf3.[01]*)
10320 shlibpath_overrides_runpath=yes
10321 hardcode_into_libs=yes
10322 ;;
10323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10327 ;;
10328 *) # from 4.6 on, and DragonFly
10329 shlibpath_overrides_runpath=yes
10330 hardcode_into_libs=yes
10331 ;;
10332 esac
10333 ;;
10334
10335gnu*)
10336 version_type=linux
10337 need_lib_prefix=no
10338 need_version=no
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LD_LIBRARY_PATH
10342 hardcode_into_libs=yes
10343 ;;
10344
3725885a
RW
10345haiku*)
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 dynamic_linker="$host_os runtime_loader"
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 shlibpath_var=LIBRARY_PATH
10353 shlibpath_overrides_runpath=yes
10354 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10355 hardcode_into_libs=yes
10356 ;;
10357
dabbade6
L
10358hpux9* | hpux10* | hpux11*)
10359 # Give a soname corresponding to the major version so that dld.sl refuses to
10360 # link against other versions.
10361 version_type=sunos
10362 need_lib_prefix=no
10363 need_version=no
10364 case $host_cpu in
10365 ia64*)
10366 shrext_cmds='.so'
10367 hardcode_into_libs=yes
10368 dynamic_linker="$host_os dld.so"
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10372 soname_spec='${libname}${release}${shared_ext}$major'
10373 if test "X$HPUX_IA64_MODE" = X32; then
10374 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10375 else
10376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10377 fi
10378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10379 ;;
10380 hppa*64*)
10381 shrext_cmds='.sl'
10382 hardcode_into_libs=yes
10383 dynamic_linker="$host_os dld.sl"
10384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10390 ;;
10391 *)
10392 shrext_cmds='.sl'
10393 dynamic_linker="$host_os dld.sl"
10394 shlibpath_var=SHLIB_PATH
10395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 ;;
10399 esac
3725885a 10400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
dabbade6 10401 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10402 # or fails outright, so override atomically:
10403 install_override_mode=555
dabbade6
L
10404 ;;
10405
10406interix[3-9]*)
10407 version_type=linux
10408 need_lib_prefix=no
10409 need_version=no
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 shlibpath_overrides_runpath=no
10415 hardcode_into_libs=yes
10416 ;;
10417
10418irix5* | irix6* | nonstopux*)
10419 case $host_os in
10420 nonstopux*) version_type=nonstopux ;;
10421 *)
10422 if test "$lt_cv_prog_gnu_ld" = yes; then
10423 version_type=linux
10424 else
10425 version_type=irix
10426 fi ;;
10427 esac
10428 need_lib_prefix=no
10429 need_version=no
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10432 case $host_os in
10433 irix5* | nonstopux*)
10434 libsuff= shlibsuff=
10435 ;;
10436 *)
10437 case $LD in # libtool.m4 will add one of these switches to LD
10438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10439 libsuff= shlibsuff= libmagic=32-bit;;
10440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10441 libsuff=32 shlibsuff=N32 libmagic=N32;;
10442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10443 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10444 *) libsuff= shlibsuff= libmagic=never-match;;
10445 esac
10446 ;;
10447 esac
10448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10449 shlibpath_overrides_runpath=no
10450 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10451 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10452 hardcode_into_libs=yes
10453 ;;
10454
10455# No shared lib support for Linux oldld, aout, or coff.
10456linux*oldld* | linux*aout* | linux*coff*)
10457 dynamic_linker=no
10458 ;;
10459
10460# This must be Linux ELF.
58e24671 10461linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
10462 version_type=linux
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10468 shlibpath_var=LD_LIBRARY_PATH
10469 shlibpath_overrides_runpath=no
39144654 10470
dabbade6 10471 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10472 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
39144654
RW
10474else
10475 lt_cv_shlibpath_overrides_runpath=no
10476 save_LDFLAGS=$LDFLAGS
10477 save_libdir=$libdir
10478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10481/* end confdefs.h. */
10482
d7040cdb
SE
10483int
10484main ()
10485{
dabbade6 10486
d7040cdb
SE
10487 ;
10488 return 0;
10489}
10490_ACEOF
81ecdfbb
RW
10491if ac_fn_c_try_link "$LINENO"; then :
10492 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10493 lt_cv_shlibpath_overrides_runpath=yes
dabbade6 10494fi
d7040cdb 10495fi
81ecdfbb
RW
10496rm -f core conftest.err conftest.$ac_objext \
10497 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10498 LDFLAGS=$save_LDFLAGS
10499 libdir=$save_libdir
10500
10501fi
10502
10503 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10504
10505 # This implies no fast_install, which is unacceptable.
10506 # Some rework will be needed to allow for fast_install
10507 # before this can be enabled.
10508 hardcode_into_libs=yes
10509
10510 # Append ld.so.conf contents to the search path
10511 if test -f /etc/ld.so.conf; then
3725885a 10512 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' ' '`
dabbade6
L
10513 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10514 fi
10515
10516 # We used to test for /lib/ld.so.1 and disable shared libraries on
10517 # powerpc, because MkLinux only supported shared libraries with the
10518 # GNU dynamic linker. Since this was broken with cross compilers,
10519 # most powerpc-linux boxes support dynamic linking these days and
10520 # people can always --disable-shared, the test was removed, and we
10521 # assume the GNU/Linux dynamic linker is in use.
10522 dynamic_linker='GNU/Linux ld.so'
10523 ;;
10524
10525netbsd*)
10526 version_type=sunos
10527 need_lib_prefix=no
10528 need_version=no
10529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10532 dynamic_linker='NetBSD (a.out) ld.so'
10533 else
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10535 soname_spec='${libname}${release}${shared_ext}$major'
10536 dynamic_linker='NetBSD ld.elf_so'
10537 fi
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=yes
10540 hardcode_into_libs=yes
10541 ;;
10542
10543newsos6)
10544 version_type=linux
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10548 ;;
10549
10550*nto* | *qnx*)
10551 version_type=qnx
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 shlibpath_overrides_runpath=no
10558 hardcode_into_libs=yes
10559 dynamic_linker='ldqnx.so'
10560 ;;
10561
10562openbsd*)
10563 version_type=sunos
10564 sys_lib_dlsearch_path_spec="/usr/lib"
10565 need_lib_prefix=no
10566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10567 case $host_os in
10568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10569 *) need_version=no ;;
10570 esac
10571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10573 shlibpath_var=LD_LIBRARY_PATH
10574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10575 case $host_os in
10576 openbsd2.[89] | openbsd2.[89].*)
10577 shlibpath_overrides_runpath=no
10578 ;;
10579 *)
10580 shlibpath_overrides_runpath=yes
10581 ;;
10582 esac
10583 else
10584 shlibpath_overrides_runpath=yes
10585 fi
10586 ;;
10587
10588os2*)
10589 libname_spec='$name'
10590 shrext_cmds=".dll"
10591 need_lib_prefix=no
10592 library_names_spec='$libname${shared_ext} $libname.a'
10593 dynamic_linker='OS/2 ld.exe'
10594 shlibpath_var=LIBPATH
10595 ;;
10596
10597osf3* | osf4* | osf5*)
10598 version_type=osf
10599 need_lib_prefix=no
10600 need_version=no
10601 soname_spec='${libname}${release}${shared_ext}$major'
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 shlibpath_var=LD_LIBRARY_PATH
10604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10606 ;;
10607
10608rdos*)
10609 dynamic_linker=no
10610 ;;
10611
10612solaris*)
10613 version_type=linux
10614 need_lib_prefix=no
10615 need_version=no
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 hardcode_into_libs=yes
10621 # ldd complains unless libraries are executable
10622 postinstall_cmds='chmod +x $lib'
10623 ;;
10624
10625sunos4*)
10626 version_type=sunos
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10628 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 if test "$with_gnu_ld" = yes; then
10632 need_lib_prefix=no
10633 fi
10634 need_version=yes
10635 ;;
10636
10637sysv4 | sysv4.3*)
10638 version_type=linux
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 case $host_vendor in
10643 sni)
10644 shlibpath_overrides_runpath=no
10645 need_lib_prefix=no
10646 runpath_var=LD_RUN_PATH
10647 ;;
10648 siemens)
10649 need_lib_prefix=no
10650 ;;
10651 motorola)
10652 need_lib_prefix=no
10653 need_version=no
10654 shlibpath_overrides_runpath=no
10655 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10656 ;;
10657 esac
10658 ;;
10659
10660sysv4*MP*)
10661 if test -d /usr/nec ;then
10662 version_type=linux
10663 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10664 soname_spec='$libname${shared_ext}.$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 fi
10667 ;;
10668
10669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10670 version_type=freebsd-elf
10671 need_lib_prefix=no
10672 need_version=no
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 shlibpath_var=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath=yes
10677 hardcode_into_libs=yes
10678 if test "$with_gnu_ld" = yes; then
10679 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10680 else
10681 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10682 case $host_os in
10683 sco3.2v5*)
10684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10685 ;;
10686 esac
10687 fi
10688 sys_lib_dlsearch_path_spec='/usr/lib'
10689 ;;
10690
10691tpf*)
10692 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10693 version_type=linux
10694 need_lib_prefix=no
10695 need_version=no
1927a18f 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10697 shlibpath_var=LD_LIBRARY_PATH
10698 shlibpath_overrides_runpath=no
10699 hardcode_into_libs=yes
10700 ;;
10701
10702uts4*)
10703 version_type=linux
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 shlibpath_var=LD_LIBRARY_PATH
10707 ;;
d7040cdb 10708
dabbade6
L
10709*)
10710 dynamic_linker=no
10711 ;;
10712esac
81ecdfbb
RW
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10714$as_echo "$dynamic_linker" >&6; }
dabbade6 10715test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10716
dabbade6
L
10717variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10718if test "$GCC" = yes; then
10719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10720fi
d7040cdb 10721
1927a18f
L
10722if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10723 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10724fi
10725if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10726 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10727fi
10728
d7040cdb 10729
d7040cdb
SE
10730
10731
d7040cdb
SE
10732
10733
d7040cdb
SE
10734
10735
d7040cdb
SE
10736
10737
d7040cdb
SE
10738
10739
d7040cdb 10740
d7040cdb 10741
d7040cdb 10742
d7040cdb 10743
d7040cdb 10744
d7040cdb 10745
d7040cdb 10746
d7040cdb 10747
d7040cdb 10748
d7040cdb 10749
d7040cdb 10750
d7040cdb 10751
d7040cdb 10752
d7040cdb 10753
d7040cdb
SE
10754
10755
d7040cdb 10756
d7040cdb 10757
d7040cdb 10758
d7040cdb 10759
d7040cdb 10760
d7040cdb 10761
d7040cdb 10762
d7040cdb 10763
d7040cdb 10764
d7040cdb
SE
10765
10766
d7040cdb 10767
d7040cdb 10768
d7040cdb 10769
d7040cdb
SE
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
d7040cdb
SE
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
d7040cdb 10799
d7040cdb 10800
dabbade6
L
10801
10802
10803
10804
10805
10806
10807
10808
3725885a
RW
10809
10810
10811
10812
10813
dabbade6
L
10814
10815
10816
10817
10818
10819
81ecdfbb
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10821$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
dabbade6
L
10822hardcode_action=
10823if test -n "$hardcode_libdir_flag_spec" ||
10824 test -n "$runpath_var" ||
10825 test "X$hardcode_automatic" = "Xyes" ; then
10826
10827 # We can hardcode non-existent directories.
10828 if test "$hardcode_direct" != no &&
10829 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10830 # have to relink, otherwise we might link with an installed library
10831 # when we should be linking with a yet-to-be-installed one
10832 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10833 test "$hardcode_minus_L" != no; then
10834 # Linking always hardcodes the temporary library directory.
10835 hardcode_action=relink
10836 else
10837 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10838 hardcode_action=immediate
10839 fi
10840else
10841 # We cannot hardcode anything, or else we can only hardcode existing
10842 # directories.
10843 hardcode_action=unsupported
10844fi
81ecdfbb
RW
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10846$as_echo "$hardcode_action" >&6; }
dabbade6
L
10847
10848if test "$hardcode_action" = relink ||
10849 test "$inherit_rpath" = yes; then
10850 # Fast installation is not supported
10851 enable_fast_install=no
10852elif test "$shlibpath_overrides_runpath" = yes ||
10853 test "$enable_shared" = no; then
10854 # Fast installation is not necessary
10855 enable_fast_install=needless
10856fi
10857
10858
10859
10860
10861
10862
10863 if test "x$enable_dlopen" != xyes; then
10864 enable_dlopen=unknown
10865 enable_dlopen_self=unknown
10866 enable_dlopen_self_static=unknown
10867else
10868 lt_cv_dlopen=no
10869 lt_cv_dlopen_libs=
10870
d7040cdb 10871 case $host_os in
dabbade6
L
10872 beos*)
10873 lt_cv_dlopen="load_add_on"
10874 lt_cv_dlopen_libs=
10875 lt_cv_dlopen_self=yes
d7040cdb
SE
10876 ;;
10877
1927a18f 10878 mingw* | pw32* | cegcc*)
dabbade6
L
10879 lt_cv_dlopen="LoadLibrary"
10880 lt_cv_dlopen_libs=
d7040cdb 10881 ;;
d7040cdb 10882
dabbade6
L
10883 cygwin*)
10884 lt_cv_dlopen="dlopen"
10885 lt_cv_dlopen_libs=
10886 ;;
d7040cdb 10887
dabbade6
L
10888 darwin*)
10889 # if libdl is installed we need to link against it
81ecdfbb
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10891$as_echo_n "checking for dlopen in -ldl... " >&6; }
10892if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
dabbade6
L
10894else
10895 ac_check_lib_save_LIBS=$LIBS
10896LIBS="-ldl $LIBS"
81ecdfbb 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10898/* end confdefs.h. */
d7040cdb 10899
81ecdfbb
RW
10900/* Override any GCC internal prototype to avoid an error.
10901 Use char because int might match the return type of a GCC
10902 builtin and then its argument prototype would still apply. */
dabbade6
L
10903#ifdef __cplusplus
10904extern "C"
10905#endif
dabbade6
L
10906char dlopen ();
10907int
10908main ()
10909{
81ecdfbb 10910return dlopen ();
dabbade6
L
10911 ;
10912 return 0;
10913}
10914_ACEOF
81ecdfbb 10915if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10916 ac_cv_lib_dl_dlopen=yes
10917else
81ecdfbb 10918 ac_cv_lib_dl_dlopen=no
d7040cdb 10919fi
81ecdfbb
RW
10920rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10922LIBS=$ac_check_lib_save_LIBS
10923fi
81ecdfbb
RW
10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10925$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10926if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
dabbade6
L
10927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10928else
d7040cdb 10929
dabbade6
L
10930 lt_cv_dlopen="dyld"
10931 lt_cv_dlopen_libs=
10932 lt_cv_dlopen_self=yes
d7040cdb 10933
81ecdfbb 10934fi
d7040cdb 10935
81ecdfbb
RW
10936 ;;
10937
10938 *)
10939 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10940if test "x$ac_cv_func_shl_load" = x""yes; then :
10941 lt_cv_dlopen="shl_load"
10942else
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10944$as_echo_n "checking for shl_load in -ldld... " >&6; }
10945if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947else
10948 ac_check_lib_save_LIBS=$LIBS
10949LIBS="-ldld $LIBS"
10950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951/* end confdefs.h. */
10952
10953/* Override any GCC internal prototype to avoid an error.
10954 Use char because int might match the return type of a GCC
dabbade6 10955 builtin and then its argument prototype would still apply. */
dabbade6 10956#ifdef __cplusplus
81ecdfbb 10957extern "C"
dabbade6 10958#endif
81ecdfbb 10959char shl_load ();
dabbade6
L
10960int
10961main ()
10962{
81ecdfbb 10963return shl_load ();
dabbade6
L
10964 ;
10965 return 0;
10966}
10967_ACEOF
81ecdfbb
RW
10968if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_lib_dld_shl_load=yes
dabbade6 10970else
81ecdfbb 10971 ac_cv_lib_dld_shl_load=no
dabbade6 10972fi
81ecdfbb
RW
10973rm -f core conftest.err conftest.$ac_objext \
10974 conftest$ac_exeext conftest.$ac_ext
10975LIBS=$ac_check_lib_save_LIBS
dabbade6 10976fi
81ecdfbb
RW
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10978$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10979if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10980 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10981else
10982 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10983if test "x$ac_cv_func_dlopen" = x""yes; then :
dabbade6
L
10984 lt_cv_dlopen="dlopen"
10985else
81ecdfbb
RW
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10987$as_echo_n "checking for dlopen in -ldl... " >&6; }
10988if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
dabbade6
L
10990else
10991 ac_check_lib_save_LIBS=$LIBS
10992LIBS="-ldl $LIBS"
81ecdfbb 10993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10994/* end confdefs.h. */
d7040cdb 10995
81ecdfbb
RW
10996/* Override any GCC internal prototype to avoid an error.
10997 Use char because int might match the return type of a GCC
10998 builtin and then its argument prototype would still apply. */
dabbade6
L
10999#ifdef __cplusplus
11000extern "C"
11001#endif
dabbade6
L
11002char dlopen ();
11003int
11004main ()
11005{
81ecdfbb 11006return dlopen ();
dabbade6
L
11007 ;
11008 return 0;
11009}
11010_ACEOF
81ecdfbb 11011if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
11012 ac_cv_lib_dl_dlopen=yes
11013else
81ecdfbb 11014 ac_cv_lib_dl_dlopen=no
dabbade6 11015fi
81ecdfbb
RW
11016rm -f core conftest.err conftest.$ac_objext \
11017 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
11018LIBS=$ac_check_lib_save_LIBS
11019fi
81ecdfbb
RW
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11021$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11022if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
dabbade6
L
11023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11024else
81ecdfbb
RW
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11026$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11027if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
dabbade6
L
11029else
11030 ac_check_lib_save_LIBS=$LIBS
11031LIBS="-lsvld $LIBS"
81ecdfbb 11032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 11033/* end confdefs.h. */
d7040cdb 11034
81ecdfbb
RW
11035/* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
dabbade6
L
11038#ifdef __cplusplus
11039extern "C"
11040#endif
dabbade6
L
11041char dlopen ();
11042int
11043main ()
11044{
81ecdfbb 11045return dlopen ();
dabbade6
L
11046 ;
11047 return 0;
11048}
11049_ACEOF
81ecdfbb 11050if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
11051 ac_cv_lib_svld_dlopen=yes
11052else
81ecdfbb 11053 ac_cv_lib_svld_dlopen=no
dabbade6 11054fi
81ecdfbb
RW
11055rm -f core conftest.err conftest.$ac_objext \
11056 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
11057LIBS=$ac_check_lib_save_LIBS
11058fi
81ecdfbb
RW
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11060$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11061if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
dabbade6
L
11062 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11063else
81ecdfbb
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11065$as_echo_n "checking for dld_link in -ldld... " >&6; }
11066if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
dabbade6
L
11068else
11069 ac_check_lib_save_LIBS=$LIBS
11070LIBS="-ldld $LIBS"
81ecdfbb 11071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 11072/* end confdefs.h. */
d7040cdb 11073
81ecdfbb
RW
11074/* Override any GCC internal prototype to avoid an error.
11075 Use char because int might match the return type of a GCC
11076 builtin and then its argument prototype would still apply. */
dabbade6
L
11077#ifdef __cplusplus
11078extern "C"
11079#endif
dabbade6
L
11080char dld_link ();
11081int
11082main ()
11083{
81ecdfbb 11084return dld_link ();
dabbade6
L
11085 ;
11086 return 0;
11087}
11088_ACEOF
81ecdfbb 11089if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
11090 ac_cv_lib_dld_dld_link=yes
11091else
81ecdfbb 11092 ac_cv_lib_dld_dld_link=no
d7040cdb 11093fi
81ecdfbb
RW
11094rm -f core conftest.err conftest.$ac_objext \
11095 conftest$ac_exeext conftest.$ac_ext
dabbade6 11096LIBS=$ac_check_lib_save_LIBS
d7040cdb 11097fi
81ecdfbb
RW
11098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11100if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1927a18f 11101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11102fi
11103
d7040cdb 11104
d7040cdb
SE
11105fi
11106
11107
dabbade6 11108fi
d7040cdb
SE
11109
11110
dabbade6 11111fi
d7040cdb
SE
11112
11113
d7040cdb
SE
11114fi
11115
979273e3 11116
252b5132 11117fi
252b5132 11118
dabbade6
L
11119 ;;
11120 esac
252b5132 11121
dabbade6
L
11122 if test "x$lt_cv_dlopen" != xno; then
11123 enable_dlopen=yes
11124 else
11125 enable_dlopen=no
11126 fi
1c0d3aa6 11127
dabbade6
L
11128 case $lt_cv_dlopen in
11129 dlopen)
11130 save_CPPFLAGS="$CPPFLAGS"
11131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 11132
dabbade6
L
11133 save_LDFLAGS="$LDFLAGS"
11134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 11135
dabbade6
L
11136 save_LIBS="$LIBS"
11137 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 11138
81ecdfbb
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11141if test "${lt_cv_dlopen_self+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
d7040cdb 11143else
dabbade6
L
11144 if test "$cross_compiling" = yes; then :
11145 lt_cv_dlopen_self=cross
d7040cdb 11146else
dabbade6
L
11147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11148 lt_status=$lt_dlunknown
11149 cat > conftest.$ac_ext <<_LT_EOF
6757cf57 11150#line 11150 "configure"
dabbade6 11151#include "confdefs.h"
20e95c23 11152
dabbade6
L
11153#if HAVE_DLFCN_H
11154#include <dlfcn.h>
11155#endif
20e95c23 11156
dabbade6 11157#include <stdio.h>
20e95c23 11158
dabbade6
L
11159#ifdef RTLD_GLOBAL
11160# define LT_DLGLOBAL RTLD_GLOBAL
11161#else
11162# ifdef DL_GLOBAL
11163# define LT_DLGLOBAL DL_GLOBAL
11164# else
11165# define LT_DLGLOBAL 0
11166# endif
11167#endif
20e95c23 11168
dabbade6
L
11169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11170 find out it does not work in some platform. */
11171#ifndef LT_DLLAZY_OR_NOW
11172# ifdef RTLD_LAZY
11173# define LT_DLLAZY_OR_NOW RTLD_LAZY
11174# else
11175# ifdef DL_LAZY
11176# define LT_DLLAZY_OR_NOW DL_LAZY
11177# else
11178# ifdef RTLD_NOW
11179# define LT_DLLAZY_OR_NOW RTLD_NOW
11180# else
11181# ifdef DL_NOW
11182# define LT_DLLAZY_OR_NOW DL_NOW
11183# else
11184# define LT_DLLAZY_OR_NOW 0
11185# endif
11186# endif
11187# endif
11188# endif
11189#endif
20e95c23 11190
3725885a
RW
11191/* When -fvisbility=hidden is used, assume the code has been annotated
11192 correspondingly for the symbols needed. */
11193#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11194void fnord () __attribute__((visibility("default")));
11195#endif
11196
11197void fnord () { int i=42; }
dabbade6
L
11198int main ()
11199{
11200 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11201 int status = $lt_dlunknown;
20e95c23 11202
dabbade6
L
11203 if (self)
11204 {
11205 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11206 else
11207 {
11208 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11209 else puts (dlerror ());
11210 }
dabbade6
L
11211 /* dlclose (self); */
11212 }
11213 else
11214 puts (dlerror ());
d7040cdb 11215
1927a18f 11216 return status;
dabbade6
L
11217}
11218_LT_EOF
81ecdfbb 11219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11220 (eval $ac_link) 2>&5
11221 ac_status=$?
81ecdfbb
RW
11222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11223 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11224 (./conftest; exit; ) >&5 2>/dev/null
11225 lt_status=$?
11226 case x$lt_status in
11227 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11228 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11229 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11230 esac
11231 else :
11232 # compilation failed
11233 lt_cv_dlopen_self=no
11234 fi
d7040cdb 11235fi
dabbade6
L
11236rm -fr conftest*
11237
252b5132 11238
d7040cdb 11239fi
81ecdfbb
RW
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11241$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb 11242
dabbade6
L
11243 if test "x$lt_cv_dlopen_self" = xyes; then
11244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11246$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11247if test "${lt_cv_dlopen_self_static+set}" = set; then :
11248 $as_echo_n "(cached) " >&6
252b5132 11249else
dabbade6
L
11250 if test "$cross_compiling" = yes; then :
11251 lt_cv_dlopen_self_static=cross
d7040cdb 11252else
dabbade6
L
11253 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11254 lt_status=$lt_dlunknown
11255 cat > conftest.$ac_ext <<_LT_EOF
6757cf57 11256#line 11256 "configure"
dabbade6 11257#include "confdefs.h"
252b5132 11258
dabbade6
L
11259#if HAVE_DLFCN_H
11260#include <dlfcn.h>
11261#endif
252b5132 11262
dabbade6 11263#include <stdio.h>
d7040cdb 11264
dabbade6
L
11265#ifdef RTLD_GLOBAL
11266# define LT_DLGLOBAL RTLD_GLOBAL
11267#else
11268# ifdef DL_GLOBAL
11269# define LT_DLGLOBAL DL_GLOBAL
11270# else
11271# define LT_DLGLOBAL 0
11272# endif
11273#endif
20e95c23 11274
dabbade6
L
11275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11276 find out it does not work in some platform. */
11277#ifndef LT_DLLAZY_OR_NOW
11278# ifdef RTLD_LAZY
11279# define LT_DLLAZY_OR_NOW RTLD_LAZY
11280# else
11281# ifdef DL_LAZY
11282# define LT_DLLAZY_OR_NOW DL_LAZY
11283# else
11284# ifdef RTLD_NOW
11285# define LT_DLLAZY_OR_NOW RTLD_NOW
11286# else
11287# ifdef DL_NOW
11288# define LT_DLLAZY_OR_NOW DL_NOW
11289# else
11290# define LT_DLLAZY_OR_NOW 0
11291# endif
11292# endif
11293# endif
11294# endif
11295#endif
979273e3 11296
3725885a
RW
11297/* When -fvisbility=hidden is used, assume the code has been annotated
11298 correspondingly for the symbols needed. */
11299#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11300void fnord () __attribute__((visibility("default")));
11301#endif
11302
11303void fnord () { int i=42; }
dabbade6
L
11304int main ()
11305{
11306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11307 int status = $lt_dlunknown;
d7040cdb 11308
dabbade6
L
11309 if (self)
11310 {
11311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11312 else
11313 {
11314 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11315 else puts (dlerror ());
11316 }
dabbade6
L
11317 /* dlclose (self); */
11318 }
11319 else
11320 puts (dlerror ());
d7040cdb 11321
1927a18f 11322 return status;
dabbade6
L
11323}
11324_LT_EOF
81ecdfbb 11325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11326 (eval $ac_link) 2>&5
11327 ac_status=$?
81ecdfbb
RW
11328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11329 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11330 (./conftest; exit; ) >&5 2>/dev/null
11331 lt_status=$?
11332 case x$lt_status in
11333 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11334 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11335 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11336 esac
11337 else :
11338 # compilation failed
11339 lt_cv_dlopen_self_static=no
11340 fi
20e95c23 11341fi
dabbade6 11342rm -fr conftest*
979273e3 11343
d7040cdb
SE
11344
11345fi
81ecdfbb
RW
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11347$as_echo "$lt_cv_dlopen_self_static" >&6; }
dabbade6
L
11348 fi
11349
11350 CPPFLAGS="$save_CPPFLAGS"
11351 LDFLAGS="$save_LDFLAGS"
11352 LIBS="$save_LIBS"
11353 ;;
11354 esac
11355
11356 case $lt_cv_dlopen_self in
11357 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11358 *) enable_dlopen_self=unknown ;;
11359 esac
11360
11361 case $lt_cv_dlopen_self_static in
11362 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11363 *) enable_dlopen_self_static=unknown ;;
11364 esac
d7040cdb 11365fi
dabbade6
L
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383striplib=
11384old_striplib=
81ecdfbb
RW
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11386$as_echo_n "checking whether stripping libraries is possible... " >&6; }
dabbade6
L
11387if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11391$as_echo "yes" >&6; }
d7040cdb 11392else
dabbade6
L
11393# FIXME - insert some real tests, host_os isn't really good enough
11394 case $host_os in
11395 darwin*)
11396 if test -n "$STRIP" ; then
11397 striplib="$STRIP -x"
11398 old_striplib="$STRIP -S"
81ecdfbb
RW
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400$as_echo "yes" >&6; }
dabbade6 11401 else
81ecdfbb
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
dabbade6
L
11404 fi
11405 ;;
11406 *)
81ecdfbb
RW
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
dabbade6
L
11409 ;;
11410 esac
d7040cdb 11411fi
20e95c23 11412
979273e3 11413
dabbade6
L
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424 # Report which library types will actually be built
81ecdfbb
RW
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11426$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11428$as_echo "$can_build_shared" >&6; }
dabbade6 11429
81ecdfbb
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11431$as_echo_n "checking whether to build shared libraries... " >&6; }
dabbade6
L
11432 test "$can_build_shared" = "no" && enable_shared=no
11433
11434 # On AIX, shared libraries and static libraries use the same namespace, and
11435 # are all built from PIC.
11436 case $host_os in
11437 aix3*)
11438 test "$enable_shared" = yes && enable_static=no
11439 if test -n "$RANLIB"; then
11440 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11441 postinstall_cmds='$RANLIB $lib'
11442 fi
11443 ;;
11444
50e7d84b 11445 aix[4-9]*)
dabbade6
L
11446 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11447 test "$enable_shared" = yes && enable_static=no
11448 fi
11449 ;;
11450 esac
81ecdfbb
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11452$as_echo "$enable_shared" >&6; }
dabbade6 11453
81ecdfbb
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11455$as_echo_n "checking whether to build static libraries... " >&6; }
dabbade6
L
11456 # Make sure either enable_shared or enable_static is yes.
11457 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11459$as_echo "$enable_static" >&6; }
dabbade6
L
11460
11461
11462
d7040cdb 11463
252b5132 11464fi
dabbade6
L
11465ac_ext=c
11466ac_cpp='$CPP $CPPFLAGS'
11467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11469ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11470
dabbade6 11471CC="$lt_save_CC"
20e95c23 11472
20e95c23 11473
d7040cdb 11474
d7040cdb 11475
d7040cdb 11476
20e95c23 11477
dabbade6
L
11478
11479
11480
11481
11482
11483
11484
81ecdfbb 11485 ac_config_commands="$ac_config_commands libtool"
dabbade6
L
11486
11487
11488
11489
11490# Only expand once:
11491
11492
11493
81ecdfbb
RW
11494# Check whether --enable-targets was given.
11495if test "${enable_targets+set}" = set; then :
11496 enableval=$enable_targets; case "${enableval}" in
11497 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
dabbade6
L
11498 ;;
11499 no) enable_targets= ;;
11500 *) enable_targets=$enableval ;;
11501esac
81ecdfbb
RW
11502fi
11503
dabbade6 11504
270c9937
JB
11505# Set the 'development' global.
11506. $srcdir/../bfd/development.sh
11507
9780e045 11508# Default set of GCC warnings to enable.
397841b5 11509GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
11510
11511# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
11512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513/* end confdefs.h. */
11514__GNUC__
11515_ACEOF
11516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11517 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11518
11519else
11520 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11521fi
11522rm -f conftest*
11523
dabbade6 11524
9780e045
NC
11525# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h. */
11528__GNUC__
11529_ACEOF
11530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11531 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11532
11533else
11534 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11535fi
11536rm -f conftest*
11537
11538
6757cf57
TS
11539# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
11540WARN_WRITE_STRINGS=""
11541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542/* end confdefs.h. */
11543__GNUC__
11544_ACEOF
11545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11546 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11547
11548else
11549 WARN_WRITE_STRINGS="-Wwrite-strings"
11550fi
11551rm -f conftest*
11552
9780e045 11553
81ecdfbb
RW
11554# Check whether --enable-werror was given.
11555if test "${enable_werror+set}" = set; then :
11556 enableval=$enable_werror; case "${enableval}" in
dabbade6
L
11557 yes | y) ERROR_ON_WARNING="yes" ;;
11558 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11559 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
dabbade6 11560 esac
81ecdfbb
RW
11561fi
11562
dabbade6 11563
397841b5 11564# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11565case "${host}" in
11566 *-*-mingw32*)
11567 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11568 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11569 fi
11570 ;;
11571 *) ;;
11572esac
11573
270c9937
JB
11574# Enable -Werror by default when using gcc. Turn it off for releases.
11575if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
dabbade6 11576 ERROR_ON_WARNING=yes
d7040cdb 11577fi
20e95c23 11578
dabbade6
L
11579NO_WERROR=
11580if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 11581 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
dabbade6 11582 NO_WERROR="-Wno-error"
20e95c23 11583fi
d7040cdb 11584
dabbade6
L
11585if test "${GCC}" = yes ; then
11586 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11587fi
d7040cdb 11588
81ecdfbb
RW
11589# Check whether --enable-build-warnings was given.
11590if test "${enable_build_warnings+set}" = set; then :
11591 enableval=$enable_build_warnings; case "${enableval}" in
dabbade6
L
11592 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11593 no) if test "${GCC}" = yes ; then
11594 WARN_CFLAGS="-w"
11595 fi;;
11596 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11597 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11598 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11599 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11600 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11601esac
81ecdfbb
RW
11602fi
11603
979273e3 11604
dabbade6
L
11605if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11606 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11607fi
dabbade6
L
11608
11609
11610
11611
6757cf57 11612
8a643cc3
L
11613ac_ext=c
11614ac_cpp='$CPP $CPPFLAGS'
11615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11617ac_compiler_gnu=$ac_cv_c_compiler_gnu
11618
35d0a169
MR
11619NO_WMISSING_FIELD_INITIALIZERS=
11620save_CFLAGS="$CFLAGS"
11621for real_option in -Wno-missing-field-initializers; do
11622 # Do the check with the no- prefix removed since gcc silently
11623 # accepts any -Wno-* option on purpose
11624 case $real_option in
11625 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11626 *) option=$real_option ;;
11627 esac
11628 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11629
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11631$as_echo_n "checking whether $CC supports $option... " >&6; }
11632if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11633 $as_echo_n "(cached) " >&6
11634else
11635 CFLAGS="$option"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h. */
11638
11639int
11640main ()
11641{
11642
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647if ac_fn_c_try_compile "$LINENO"; then :
11648 eval "$as_acx_Woption=yes"
11649else
11650 eval "$as_acx_Woption=no"
11651fi
11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653
11654fi
11655eval ac_res=\$$as_acx_Woption
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11657$as_echo "$ac_res" >&6; }
11658 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11659 NO_WMISSING_FIELD_INITIALIZERS="$NO_WMISSING_FIELD_INITIALIZERS${NO_WMISSING_FIELD_INITIALIZERS:+ }$real_option"
11660fi
11661 done
11662CFLAGS="$save_CFLAGS"
8a643cc3
L
11663ac_ext=c
11664ac_cpp='$CPP $CPPFLAGS'
11665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668
35d0a169 11669
dabbade6 11670
81ecdfbb 11671ac_config_headers="$ac_config_headers config.h:config.in"
dabbade6
L
11672
11673
df7b86aa
NC
11674# PR 14072
11675
11676
dabbade6 11677if test -z "$target" ; then
81ecdfbb 11678 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb 11679fi
dabbade6 11680
81ecdfbb
RW
11681
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11683$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11684 # Check whether --enable-maintainer-mode was given.
11685if test "${enable_maintainer_mode+set}" = set; then :
11686 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb 11687else
dabbade6 11688 USE_MAINTAINER_MODE=no
81ecdfbb 11689fi
d7040cdb 11690
81ecdfbb
RW
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11692$as_echo "$USE_MAINTAINER_MODE" >&6; }
11693 if test $USE_MAINTAINER_MODE = yes; then
dabbade6
L
11694 MAINTAINER_MODE_TRUE=
11695 MAINTAINER_MODE_FALSE='#'
252b5132 11696else
dabbade6
L
11697 MAINTAINER_MODE_TRUE='#'
11698 MAINTAINER_MODE_FALSE=
252b5132 11699fi
d7040cdb 11700
dabbade6
L
11701 MAINT=$MAINTAINER_MODE_TRUE
11702
11703
11704 case ${build_alias} in
11705 "") build_noncanonical=${build} ;;
11706 *) build_noncanonical=${build_alias} ;;
11707esac
11708
11709 case ${host_alias} in
11710 "") host_noncanonical=${build_noncanonical} ;;
11711 *) host_noncanonical=${host_alias} ;;
11712esac
979273e3 11713
dabbade6
L
11714 case ${target_alias} in
11715 "") target_noncanonical=${host_noncanonical} ;;
11716 *) target_noncanonical=${target_alias} ;;
d7040cdb 11717esac
252b5132 11718
81ecdfbb
RW
11719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11720$as_echo_n "checking whether to install libbfd... " >&6; }
11721 # Check whether --enable-install-libbfd was given.
11722if test "${enable_install_libbfd+set}" = set; then :
11723 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
979273e3 11724else
dabbade6
L
11725 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11726 install_libbfd_p=yes
11727 else
11728 install_libbfd_p=no
11729 fi
81ecdfbb 11730fi
d7040cdb 11731
81ecdfbb
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11733$as_echo "$install_libbfd_p" >&6; }
11734 if test $install_libbfd_p = yes; then
dabbade6
L
11735 INSTALL_LIBBFD_TRUE=
11736 INSTALL_LIBBFD_FALSE='#'
11737else
11738 INSTALL_LIBBFD_TRUE='#'
11739 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11740fi
11741
dabbade6 11742 # Need _noncanonical variables for this.
979273e3 11743
d7040cdb
SE
11744
11745
dabbade6
L
11746
11747 # libbfd.a is a host library containing target dependent code
11748 bfdlibdir='$(libdir)'
11749 bfdincludedir='$(includedir)'
11750 if test "${host}" != "${target}"; then
11751 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11752 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11753 fi
11754
11755
11756
11757
11758
11759
573e8a1c
RW
11760
11761
dabbade6
L
11762# host-specific stuff:
11763
eb80cb87 11764ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN it uk"
d7040cdb
SE
11765# If we haven't got the data from the intl directory,
11766# assume NLS is disabled.
11767USE_NLS=no
11768LIBINTL=
11769LIBINTL_DEP=
11770INCINTL=
11771XGETTEXT=
11772GMSGFMT=
11773POSUB=
11774
11775if test -f ../intl/config.intl; then
11776 . ../intl/config.intl
11777fi
81ecdfbb
RW
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11779$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11780if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11782$as_echo "no" >&6; }
d7040cdb 11783else
81ecdfbb
RW
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785$as_echo "yes" >&6; }
d7040cdb 11786
81ecdfbb 11787$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11788
11789
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11791$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11792 # Look for .po and .gmo files in the source directory.
11793 CATALOGS=
11794 XLINGUAS=
11795 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11796 # If there aren't any .gmo files the shell will give us the
11797 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11798 # weeded out.
11799 case "$cat" in *\**)
11800 continue;;
11801 esac
11802 # The quadruple backslash is collapsed to a double backslash
11803 # by the backticks, then collapsed again by the double quotes,
11804 # leaving us with one backslash in the sed expression (right
11805 # before the dot that mustn't act as a wildcard).
11806 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11807 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11808 # The user is allowed to set LINGUAS to a list of languages to
11809 # install catalogs for. If it's empty that means "all of them."
11810 if test "x$LINGUAS" = x; then
11811 CATALOGS="$CATALOGS $cat"
11812 XLINGUAS="$XLINGUAS $lang"
11813 else
11814 case "$LINGUAS" in *$lang*)
11815 CATALOGS="$CATALOGS $cat"
11816 XLINGUAS="$XLINGUAS $lang"
11817 ;;
11818 esac
11819 fi
11820 done
11821 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11823$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11824
11825
11826 DATADIRNAME=share
11827
11828 INSTOBJEXT=.mo
11829
11830 GENCAT=gencat
11831
11832 CATOBJEXT=.gmo
11833
11834fi
11835
11836 MKINSTALLDIRS=
11837 if test -n "$ac_aux_dir"; then
11838 case "$ac_aux_dir" in
11839 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11840 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11841 esac
11842 fi
11843 if test -z "$MKINSTALLDIRS"; then
11844 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11845 fi
11846
11847
11848
81ecdfbb
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11850$as_echo_n "checking whether NLS is requested... " >&6; }
11851 # Check whether --enable-nls was given.
11852if test "${enable_nls+set}" = set; then :
11853 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11854else
11855 USE_NLS=yes
81ecdfbb
RW
11856fi
11857
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11859$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11860
11861
11862
11863
11864
11865
11866# Prepare PATH_SEPARATOR.
11867# The user is always right.
11868if test "${PATH_SEPARATOR+set}" != set; then
11869 echo "#! /bin/sh" >conf$$.sh
11870 echo "exit 0" >>conf$$.sh
11871 chmod +x conf$$.sh
11872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11873 PATH_SEPARATOR=';'
11874 else
11875 PATH_SEPARATOR=:
11876 fi
11877 rm -f conf$$.sh
11878fi
979273e3 11879
d7040cdb
SE
11880# Find out how to test for executable files. Don't use a zero-byte file,
11881# as systems may use methods other than mode bits to determine executability.
11882cat >conf$$.file <<_ASEOF
11883#! /bin/sh
11884exit 0
11885_ASEOF
11886chmod +x conf$$.file
11887if test -x conf$$.file >/dev/null 2>&1; then
11888 ac_executable_p="test -x"
252b5132 11889else
d7040cdb 11890 ac_executable_p="test -f"
252b5132 11891fi
d7040cdb 11892rm -f conf$$.file
252b5132 11893
d7040cdb
SE
11894# Extract the first word of "msgfmt", so it can be a program name with args.
11895set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
11898if test "${ac_cv_path_MSGFMT+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
252b5132 11900else
d7040cdb
SE
11901 case "$MSGFMT" in
11902 [\\/]* | ?:[\\/]*)
11903 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11904 ;;
11905 *)
11906 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11907 for ac_dir in $PATH; do
11908 IFS="$ac_save_IFS"
11909 test -z "$ac_dir" && ac_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11912 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11913 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11914 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11915 break 2
11916 fi
11917 fi
11918 done
11919 done
11920 IFS="$ac_save_IFS"
11921 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11922 ;;
11923esac
11924fi
11925MSGFMT="$ac_cv_path_MSGFMT"
11926if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11928$as_echo "$MSGFMT" >&6; }
d7040cdb 11929else
81ecdfbb
RW
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931$as_echo "no" >&6; }
252b5132
RH
11932fi
11933
d7040cdb
SE
11934 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11935set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937$as_echo_n "checking for $ac_word... " >&6; }
11938if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
20e95c23 11940else
d7040cdb
SE
11941 case $GMSGFMT in
11942 [\\/]* | ?:[\\/]*)
11943 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11944 ;;
11945 *)
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11953 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11955 break 2
11956 fi
11957done
81ecdfbb
RW
11958 done
11959IFS=$as_save_IFS
252b5132 11960
d7040cdb
SE
11961 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11962 ;;
11963esac
11964fi
11965GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11966if test -n "$GMSGFMT"; then
81ecdfbb
RW
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11968$as_echo "$GMSGFMT" >&6; }
252b5132 11969else
81ecdfbb
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
252b5132
RH
11972fi
11973
11974
20e95c23 11975
81ecdfbb 11976
d7040cdb
SE
11977# Prepare PATH_SEPARATOR.
11978# The user is always right.
11979if test "${PATH_SEPARATOR+set}" != set; then
11980 echo "#! /bin/sh" >conf$$.sh
11981 echo "exit 0" >>conf$$.sh
11982 chmod +x conf$$.sh
11983 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11984 PATH_SEPARATOR=';'
11985 else
11986 PATH_SEPARATOR=:
11987 fi
11988 rm -f conf$$.sh
252b5132
RH
11989fi
11990
d7040cdb
SE
11991# Find out how to test for executable files. Don't use a zero-byte file,
11992# as systems may use methods other than mode bits to determine executability.
11993cat >conf$$.file <<_ASEOF
11994#! /bin/sh
11995exit 0
11996_ASEOF
11997chmod +x conf$$.file
11998if test -x conf$$.file >/dev/null 2>&1; then
11999 ac_executable_p="test -x"
12000else
12001 ac_executable_p="test -f"
12002fi
12003rm -f conf$$.file
20e95c23 12004
d7040cdb
SE
12005# Extract the first word of "xgettext", so it can be a program name with args.
12006set dummy xgettext; ac_word=$2
81ecdfbb
RW
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
252b5132 12011else
d7040cdb
SE
12012 case "$XGETTEXT" in
12013 [\\/]* | ?:[\\/]*)
12014 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12015 ;;
12016 *)
12017 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12018 for ac_dir in $PATH; do
12019 IFS="$ac_save_IFS"
12020 test -z "$ac_dir" && ac_dir=.
12021 for ac_exec_ext in '' $ac_executable_extensions; do
12022 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12023 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12024 (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
12025 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12026 break 2
12027 fi
12028 fi
12029 done
12030 done
12031 IFS="$ac_save_IFS"
12032 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12033 ;;
12034esac
20e95c23 12035fi
d7040cdb
SE
12036XGETTEXT="$ac_cv_path_XGETTEXT"
12037if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12039$as_echo "$XGETTEXT" >&6; }
d7040cdb 12040else
81ecdfbb
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
d7040cdb
SE
12043fi
12044
12045 rm -f messages.po
12046
979273e3 12047
d7040cdb
SE
12048# Prepare PATH_SEPARATOR.
12049# The user is always right.
12050if test "${PATH_SEPARATOR+set}" != set; then
12051 echo "#! /bin/sh" >conf$$.sh
12052 echo "exit 0" >>conf$$.sh
12053 chmod +x conf$$.sh
12054 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12055 PATH_SEPARATOR=';'
12056 else
12057 PATH_SEPARATOR=:
12058 fi
12059 rm -f conf$$.sh
252b5132 12060fi
979273e3 12061
d7040cdb
SE
12062# Find out how to test for executable files. Don't use a zero-byte file,
12063# as systems may use methods other than mode bits to determine executability.
12064cat >conf$$.file <<_ASEOF
12065#! /bin/sh
12066exit 0
12067_ASEOF
12068chmod +x conf$$.file
12069if test -x conf$$.file >/dev/null 2>&1; then
12070 ac_executable_p="test -x"
252b5132 12071else
d7040cdb
SE
12072 ac_executable_p="test -f"
12073fi
12074rm -f conf$$.file
252b5132 12075
d7040cdb
SE
12076# Extract the first word of "msgmerge", so it can be a program name with args.
12077set dummy msgmerge; ac_word=$2
81ecdfbb
RW
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079$as_echo_n "checking for $ac_word... " >&6; }
12080if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
252b5132 12082else
d7040cdb
SE
12083 case "$MSGMERGE" in
12084 [\\/]* | ?:[\\/]*)
12085 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12086 ;;
12087 *)
12088 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12089 for ac_dir in $PATH; do
12090 IFS="$ac_save_IFS"
12091 test -z "$ac_dir" && ac_dir=.
12092 for ac_exec_ext in '' $ac_executable_extensions; do
12093 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12094 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12095 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12096 break 2
12097 fi
12098 fi
12099 done
12100 done
12101 IFS="$ac_save_IFS"
12102 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12103 ;;
12104esac
20e95c23 12105fi
d7040cdb
SE
12106MSGMERGE="$ac_cv_path_MSGMERGE"
12107if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12109$as_echo "$MSGMERGE" >&6; }
d7040cdb 12110else
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112$as_echo "no" >&6; }
20e95c23 12113fi
252b5132 12114
979273e3 12115
d7040cdb
SE
12116 if test "$GMSGFMT" != ":"; then
12117 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12118 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12119 : ;
12120 else
12121 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12123$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12124 GMSGFMT=":"
12125 fi
12126 fi
979273e3 12127
d7040cdb
SE
12128 if test "$XGETTEXT" != ":"; then
12129 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12130 (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
12131 : ;
12132 else
81ecdfbb
RW
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12134$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12135 XGETTEXT=":"
12136 fi
12137 rm -f messages.po
12138 fi
979273e3 12139
81ecdfbb 12140 ac_config_commands="$ac_config_commands default-1"
979273e3 12141
979273e3 12142
979273e3 12143
81ecdfbb 12144. ${srcdir}/../bfd/configure.host
252b5132 12145
81ecdfbb
RW
12146# Put a plausible default for CC_FOR_BUILD in Makefile.
12147if test -z "$CC_FOR_BUILD"; then
12148 if test "x$cross_compiling" = "xno"; then
12149 CC_FOR_BUILD='$(CC)'
12150 else
12151 CC_FOR_BUILD=gcc
12152 fi
12153fi
252b5132 12154
81ecdfbb
RW
12155# Also set EXEEXT_FOR_BUILD.
12156if test "x$cross_compiling" = "xno"; then
12157 EXEEXT_FOR_BUILD='$(EXEEXT)'
4bd60896 12158else
81ecdfbb
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12160$as_echo_n "checking for build system executable suffix... " >&6; }
12161if test "${bfd_cv_build_exeext+set}" = set; then :
12162 $as_echo_n "(cached) " >&6
4bd60896 12163else
81ecdfbb
RW
12164 rm -f conftest*
12165 echo 'int main () { return 0; }' > conftest.c
12166 bfd_cv_build_exeext=
12167 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12168 for file in conftest.*; do
12169 case $file in
12170 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12171 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12172 esac
12173 done
12174 rm -f conftest*
12175 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4bd60896 12176fi
81ecdfbb
RW
12177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12178$as_echo "$bfd_cv_build_exeext" >&6; }
12179 EXEEXT_FOR_BUILD=""
12180 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4bd60896 12181fi
4bd60896 12182
4bd60896
JG
12183
12184
81ecdfbb
RW
12185
12186
12187for ac_header in string.h strings.h stdlib.h limits.h
12188do :
12189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12190ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12191eval as_val=\$$as_ac_Header
12192 if test "x$as_val" = x""yes; then :
4bd60896 12193 cat >>confdefs.h <<_ACEOF
81ecdfbb 12194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4bd60896
JG
12195_ACEOF
12196
dabbade6 12197fi
dabbade6 12198
81ecdfbb 12199done
dabbade6 12200
208a4923
NC
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12202$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12203if test "${gcc_cv_header_string+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
12205else
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207/* end confdefs.h. */
12208#include <string.h>
12209#include <strings.h>
12210int
12211main ()
12212{
12213
12214 ;
12215 return 0;
12216}
12217_ACEOF
12218if ac_fn_c_try_compile "$LINENO"; then :
12219 gcc_cv_header_string=yes
12220else
12221 gcc_cv_header_string=no
12222fi
12223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224fi
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12226$as_echo "$gcc_cv_header_string" >&6; }
12227if test $gcc_cv_header_string = yes; then
12228
12229$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12230
12231fi
12232
81ecdfbb
RW
12233
12234ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12235if test "x$ac_cv_have_decl_basename" = x""yes; then :
12236 ac_have_decl=1
12237else
12238 ac_have_decl=0
dabbade6 12239fi
dabbade6
L
12240
12241cat >>confdefs.h <<_ACEOF
81ecdfbb 12242#define HAVE_DECL_BASENAME $ac_have_decl
dabbade6 12243_ACEOF
81ecdfbb
RW
12244ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12245if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12246 ac_have_decl=1
dabbade6 12247else
81ecdfbb 12248 ac_have_decl=0
4bd60896
JG
12249fi
12250
81ecdfbb
RW
12251cat >>confdefs.h <<_ACEOF
12252#define HAVE_DECL_STPCPY $ac_have_decl
12253_ACEOF
4bd60896
JG
12254
12255
8df14d78
L
12256# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
12257# since sigsetjmp might only be defined as a macro.
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12259$as_echo_n "checking for sigsetjmp... " >&6; }
12260if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
12262else
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264/* end confdefs.h. */
12265
12266#include <setjmp.h>
12267
12268int
12269main ()
12270{
12271sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12272 ;
12273 return 0;
12274}
12275_ACEOF
12276if ac_fn_c_try_compile "$LINENO"; then :
12277 bfd_cv_func_sigsetjmp=yes
12278else
12279 bfd_cv_func_sigsetjmp=no
12280fi
12281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282fi
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12284$as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12285if test $bfd_cv_func_sigsetjmp = yes; then
12286
12287$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12288
12289fi
12290
6e31aea3
BE
12291cgen_maint=no
12292cgendir='$(srcdir)/../cgen'
12293
81ecdfbb
RW
12294# Check whether --enable-cgen-maint was given.
12295if test "${enable_cgen_maint+set}" = set; then :
12296 enableval=$enable_cgen_maint; case "${enableval}" in
6e31aea3
BE
12297 yes) cgen_maint=yes ;;
12298 no) cgen_maint=no ;;
12299 *)
12300 # argument is cgen install directory (not implemented yet).
12301 # Having a `share' directory might be more appropriate for the .scm,
12302 # .cpu, etc. files.
12303 cgen_maint=yes
12304 cgendir=${cgen_maint}/lib/cgen
12305 ;;
12306esac
81ecdfbb
RW
12307fi
12308 if test x${cgen_maint} = xyes; then
6e31aea3
BE
12309 CGEN_MAINT_TRUE=
12310 CGEN_MAINT_FALSE='#'
12311else
12312 CGEN_MAINT_TRUE='#'
12313 CGEN_MAINT_FALSE=
12314fi
12315
252b5132 12316
8ae85421 12317
252b5132
RH
12318using_cgen=no
12319
51dec227 12320# Check if linker supports --as-needed and --no-as-needed options
81ecdfbb
RW
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12322$as_echo_n "checking linker --as-needed support... " >&6; }
12323if test "${bfd_cv_ld_as_needed+set}" = set; then :
12324 $as_echo_n "(cached) " >&6
51dec227
AM
12325else
12326 bfd_cv_ld_as_needed=no
12327 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12328 bfd_cv_ld_as_needed=yes
12329 fi
12330
12331fi
81ecdfbb
RW
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12333$as_echo "$bfd_cv_ld_as_needed" >&6; }
51dec227
AM
12334
12335LIBM=
12336case $host in
3725885a 12337*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
51dec227
AM
12338 # These system don't have libm, or don't need it
12339 ;;
12340*-ncr-sysv4.3*)
81ecdfbb
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12342$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12343if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
51dec227
AM
12345else
12346 ac_check_lib_save_LIBS=$LIBS
12347LIBS="-lmw $LIBS"
81ecdfbb 12348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12349/* end confdefs.h. */
12350
81ecdfbb
RW
12351/* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
51dec227
AM
12354#ifdef __cplusplus
12355extern "C"
12356#endif
51dec227
AM
12357char _mwvalidcheckl ();
12358int
12359main ()
12360{
81ecdfbb 12361return _mwvalidcheckl ();
51dec227
AM
12362 ;
12363 return 0;
12364}
12365_ACEOF
81ecdfbb 12366if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12367 ac_cv_lib_mw__mwvalidcheckl=yes
12368else
81ecdfbb 12369 ac_cv_lib_mw__mwvalidcheckl=no
51dec227 12370fi
81ecdfbb
RW
12371rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12373LIBS=$ac_check_lib_save_LIBS
12374fi
81ecdfbb
RW
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12376$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12377if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
51dec227
AM
12378 LIBM="-lmw"
12379fi
12380
81ecdfbb
RW
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12382$as_echo_n "checking for cos in -lm... " >&6; }
12383if test "${ac_cv_lib_m_cos+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
51dec227
AM
12385else
12386 ac_check_lib_save_LIBS=$LIBS
12387LIBS="-lm $LIBS"
81ecdfbb 12388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12389/* end confdefs.h. */
12390
81ecdfbb
RW
12391/* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
51dec227
AM
12394#ifdef __cplusplus
12395extern "C"
12396#endif
51dec227
AM
12397char cos ();
12398int
12399main ()
12400{
81ecdfbb 12401return cos ();
51dec227
AM
12402 ;
12403 return 0;
12404}
12405_ACEOF
81ecdfbb 12406if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12407 ac_cv_lib_m_cos=yes
12408else
81ecdfbb 12409 ac_cv_lib_m_cos=no
51dec227 12410fi
81ecdfbb
RW
12411rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12413LIBS=$ac_check_lib_save_LIBS
12414fi
81ecdfbb
RW
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12416$as_echo "$ac_cv_lib_m_cos" >&6; }
12417if test "x$ac_cv_lib_m_cos" = x""yes; then :
51dec227
AM
12418 LIBM="$LIBM -lm"
12419fi
12420
12421 ;;
12422*)
81ecdfbb
RW
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12424$as_echo_n "checking for cos in -lm... " >&6; }
12425if test "${ac_cv_lib_m_cos+set}" = set; then :
12426 $as_echo_n "(cached) " >&6
51dec227
AM
12427else
12428 ac_check_lib_save_LIBS=$LIBS
12429LIBS="-lm $LIBS"
81ecdfbb 12430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12431/* end confdefs.h. */
12432
81ecdfbb
RW
12433/* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
51dec227
AM
12436#ifdef __cplusplus
12437extern "C"
12438#endif
51dec227
AM
12439char cos ();
12440int
12441main ()
12442{
81ecdfbb 12443return cos ();
51dec227
AM
12444 ;
12445 return 0;
12446}
12447_ACEOF
81ecdfbb 12448if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12449 ac_cv_lib_m_cos=yes
12450else
81ecdfbb 12451 ac_cv_lib_m_cos=no
51dec227 12452fi
81ecdfbb
RW
12453rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12455LIBS=$ac_check_lib_save_LIBS
12456fi
81ecdfbb
RW
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12458$as_echo "$ac_cv_lib_m_cos" >&6; }
12459if test "x$ac_cv_lib_m_cos" = x""yes; then :
51dec227
AM
12460 LIBM="-lm"
12461fi
12462
12463 ;;
12464esac
12465
12466
12467
2eee5593
AM
12468#Libs for generator progs
12469if test "x$cross_compiling" = "xno"; then
12470 BUILD_LIBS=../libiberty/libiberty.a
12471 BUILD_LIB_DEPS=$BUILD_LIBS
12472else
12473 # if cross-compiling, assume that the system provides -liberty
12474 # and that the version is compatible with new headers.
12475 BUILD_LIBS=-liberty
12476 BUILD_LIB_DEPS=
12477fi
12478BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12479BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12480
12481
12482
12483
45d42143
NC
12484# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12485SHARED_LDFLAGS=
12486SHARED_LIBADD=
12487SHARED_DEPENDENCIES=
12488if test "$enable_shared" = "yes"; then
29670fb9
AM
12489# When building a shared libopcodes, link against the pic version of libiberty
12490# so that apps that use libopcodes won't need libiberty just to satisfy any
12491# libopcodes references.
12492# We can't do that if a pic libiberty is unavailable since including non-pic
12493# code would insert text relocations into libopcodes.
12494# Note that linking against libbfd as we do here, which is itself linked
12495# against libiberty, may not satisfy all the libopcodes libiberty references
12496# since libbfd may not pull in the entirety of libiberty.
12497 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12498 if test -n "$x"; then
12499 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12500 fi
12501
45d42143
NC
12502 case "${host}" in
12503 *-*-cygwin*)
12504 SHARED_LDFLAGS="-no-undefined"
12505 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12506 ;;
0e336180 12507 *-*-darwin*)
29670fb9 12508 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
0e336180
NC
12509 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12510 ;;
45d42143 12511 *)
0e336180
NC
12512 case "$host_vendor" in
12513 hp)
29670fb9 12514 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
0e336180
NC
12515 ;;
12516 *)
29670fb9 12517 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
0e336180
NC
12518 ;;
12519 esac
4267b19f 12520 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12521 ;;
12522 esac
51dec227
AM
12523
12524 if test -n "$SHARED_LIBADD"; then
12525 if test -n "$LIBM"; then
12526 if test x"$bfd_cv_ld_as_needed" = xyes; then
12527 # Link against libm only when needed. Put -lc, -lm inside -Wl
12528 # to stop libtool reordering these options.
12529 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12530 else
12531 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12532 fi
12533 fi
12534 fi
45d42143
NC
12535fi
12536
252b5132
RH
12537
12538
12539
12540# target-specific stuff:
12541
12542# Canonicalize the secondary target names.
12543if test -n "$enable_targets" ; then
12544 for targ in `echo $enable_targets | sed 's/,/ /g'`
12545 do
6d83c84b 12546 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12547 if test -n "$result" ; then
12548 canon_targets="$canon_targets $result"
12549 else
12550 # Allow targets that config.sub doesn't recognize, like "all".
12551 canon_targets="$canon_targets $targ"
12552 fi
12553 done
12554fi
12555
12556all_targets=false
12557selarchs=
12558for targ in $target $canon_targets
12559do
12560 if test "x$targ" = "xall" ; then
12561 all_targets=true
12562 else
12563 . $srcdir/../bfd/config.bfd
12564 selarchs="$selarchs $targ_archs"
12565 fi
979273e3 12566done
252b5132
RH
12567
12568# Utility var, documents generic cgen support files.
12569
3609e0fe 12570cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12571
12572# We don't do any links based on the target system, just makefile config.
12573
12574if test x${all_targets} = xfalse ; then
12575
12576 # Target architecture .o files.
12577 ta=
12578
12579 for arch in $selarchs
12580 do
12581 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12582 archdefs="$archdefs -DARCH_$ad"
12583 case "$arch" in
a06ea964 12584 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;;
252b5132 12585 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12586 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12587 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12588 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12589 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3843081d 12590 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 12591 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
3843081d 12592 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
12593 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12594 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12595 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
3843081d
JBG
12596 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12597 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
3f8107ab 12598 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;;
20135e4c 12599 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
252b5132
RH
12600 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12601 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12602 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 12603 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
7b6d09fb 12604 bfd_i386_arch|bfd_iamcu_arch|bfd_l1om_arch|bfd_k1om_arch)
8a9036a4 12605 ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 12606 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 12607 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 12608 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12609 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
48891606 12610 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;;
3843081d
JBG
12611 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12612 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
c5f5f1f4 12613 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12614 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
12615 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12616 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
48891606 12617 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
6927f982 12618 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
12619 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12620 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
12621 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12622 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
a3c62988 12623 bfd_metag_arch) ta="$ta metag-dis.lo" ;;
7ba29e2a 12624 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
df58fc94 12625 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;;
3c3bdf30 12626 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12627 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12628 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12629 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
34c911a4 12630 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;;
35c08157 12631 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;;
36591ba1 12632 bfd_nios2_arch) ta="$ta nios2-dis.lo nios2-opc.lo" ;;
252b5132 12633 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
73589c9d 12634 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;;
e135f41b 12635 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
3843081d 12636 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12637 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12638 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 12639 bfd_pyramid_arch) ;;
252b5132
RH
12640 bfd_romp_arch) ;;
12641 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
99c513f6 12642 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";;
c7927a3c 12643 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
a85d7ed0 12644 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
3843081d 12645 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
09919455 12646 bfd_sh_arch)
d28847ce 12647 # We can't decide what we want just from the CPU family.
e8b872bb
AO
12648 # We want SH5 support unless a specific version of sh is
12649 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
12650 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12651 for t in $target $canon_targets; do
12652 case $t in
5b0e55b6 12653 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 12654 sh-*-linux* | shl-*-linux*)
d28847ce 12655 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
12656 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12657 break;;
12658 esac;
12659 done
d3f1a427 12660 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12661 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12662 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
12663 bfd_tahoe_arch) ;;
12664 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
3843081d 12665 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12666 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
40b36596 12667 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
252b5132 12668 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
aa137e4d
NC
12669 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;;
12670 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;;
252b5132
RH
12671 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12672 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12673 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
de863c74 12674 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
252b5132 12675 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
1945cfa5 12676 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;;
252b5132
RH
12677 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12678 bfd_we32k_arch) ;;
3843081d
JBG
12679 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12680 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;;
93fbbb04 12681 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12682 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12683 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
12684 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12685
12686 "") ;;
81ecdfbb 12687 *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;;
252b5132
RH
12688 esac
12689 done
12690
12691 if test $using_cgen = yes ; then
12692 ta="$ta $cgen_files"
12693 fi
12694
12695 # Weed out duplicate .o files.
12696 f=""
12697 for i in $ta ; do
12698 case " $f " in
12699 *" $i "*) ;;
12700 *) f="$f $i" ;;
12701 esac
12702 done
12703 ta="$f"
12704
12705 # And duplicate -D flags.
12706 f=""
12707 for i in $archdefs ; do
12708 case " $f " in
12709 *" $i "*) ;;
12710 *) f="$f $i" ;;
12711 esac
12712 done
12713 archdefs="$f"
12714
12715 BFD_MACHINES="$ta"
12716
12717else # all_targets is true
12718 archdefs=-DARCH_all
12719 BFD_MACHINES='$(ALL_MACHINES)'
12720fi
12721
12722
12723
12724
81ecdfbb 12725ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
979273e3 12726
979273e3 12727cat >confcache <<\_ACEOF
252b5132
RH
12728# This file is a shell script that caches the results of configure
12729# tests run on this system so they can be shared between configure
979273e3
NN
12730# scripts and configure runs, see configure's option --config-cache.
12731# It is not useful on other systems. If it contains results you don't
12732# want to keep, you may remove or edit it.
252b5132 12733#
979273e3
NN
12734# config.status only pays attention to the cache file if you give it
12735# the --recheck option to rerun configure.
252b5132 12736#
979273e3
NN
12737# `ac_cv_env_foo' variables (set or unset) will be overridden when
12738# loading this file, other *unset* `ac_cv_foo' will be assigned the
12739# following values.
12740
12741_ACEOF
12742
252b5132
RH
12743# The following way of writing the cache mishandles newlines in values,
12744# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12745# So, we kill variables containing newlines.
252b5132
RH
12746# Ultrix sh set writes to stderr and can't be redirected directly,
12747# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12748(
12749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12750 eval ac_val=\$$ac_var
12751 case $ac_val in #(
12752 *${as_nl}*)
12753 case $ac_var in #(
12754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12755$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12756 esac
12757 case $ac_var in #(
12758 _ | IFS | as_nl) ;; #(
12759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12760 *) { eval $ac_var=; unset $ac_var;} ;;
12761 esac ;;
12762 esac
12763 done
12764
979273e3 12765 (set) 2>&1 |
81ecdfbb
RW
12766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12767 *${as_nl}ac_space=\ *)
12768 # `set' does not quote correctly, so add quotes: double-quote
12769 # substitution turns \\\\ into \\, and sed turns \\ into \.
979273e3
NN
12770 sed -n \
12771 "s/'/'\\\\''/g;
12772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12773 ;; #(
979273e3
NN
12774 *)
12775 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 12777 ;;
81ecdfbb
RW
12778 esac |
12779 sort
12780) |
979273e3 12781 sed '
81ecdfbb 12782 /^ac_cv_env_/b end
979273e3 12783 t clear
81ecdfbb 12784 :clear
979273e3
NN
12785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12786 t end
81ecdfbb
RW
12787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12788 :end' >>confcache
12789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12790 if test -w "$cache_file"; then
12791 test "x$cache_file" != "x/dev/null" &&
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12793$as_echo "$as_me: updating cache $cache_file" >&6;}
979273e3 12794 cat confcache >$cache_file
252b5132 12795 else
81ecdfbb
RW
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12797$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
252b5132
RH
12798 fi
12799fi
12800rm -f confcache
12801
252b5132
RH
12802test "x$prefix" = xNONE && prefix=$ac_default_prefix
12803# Let make expand exec_prefix.
12804test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12805
252b5132
RH
12806DEFS=-DHAVE_CONFIG_H
12807
979273e3
NN
12808ac_libobjs=
12809ac_ltlibobjs=
12810for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12811 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12813 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12815 # will be set to the directory where LIBOBJS objects are built.
12816 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12817 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
979273e3
NN
12818done
12819LIBOBJS=$ac_libobjs
252b5132 12820
979273e3
NN
12821LTLIBOBJS=$ac_ltlibobjs
12822
12823
8ae85421 12824if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12825 as_fn_error "conditional \"AMDEP\" was never defined.
12826Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12827fi
12828if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12829 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12830Usually this means the macro was only invoked conditionally." "$LINENO" 5
12831fi
12832 if test -n "$EXEEXT"; then
12833 am__EXEEXT_TRUE=
12834 am__EXEEXT_FALSE='#'
12835else
12836 am__EXEEXT_TRUE='#'
12837 am__EXEEXT_FALSE=
8ae85421 12838fi
81ecdfbb 12839
8ae85421 12840if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12841 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12842Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12843fi
12844if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
12845 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
12846Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12847fi
12848if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
81ecdfbb
RW
12849 as_fn_error "conditional \"CGEN_MAINT\" was never defined.
12850Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421 12851fi
979273e3
NN
12852
12853: ${CONFIG_STATUS=./config.status}
81ecdfbb 12854ac_write_fail=0
979273e3
NN
12855ac_clean_files_save=$ac_clean_files
12856ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12857{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12858$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12859as_write_fail=0
12860cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
979273e3
NN
12861#! $SHELL
12862# Generated by $as_me.
252b5132 12863# Run this file to recreate the current configuration.
252b5132 12864# Compiler output produced by configure, useful for debugging
979273e3 12865# configure, is in config.log if it exists.
252b5132 12866
979273e3
NN
12867debug=false
12868ac_cs_recheck=false
12869ac_cs_silent=false
979273e3 12870
81ecdfbb
RW
12871SHELL=\${CONFIG_SHELL-$SHELL}
12872export SHELL
12873_ASEOF
12874cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12875## -------------------- ##
12876## M4sh Initialization. ##
12877## -------------------- ##
979273e3 12878
81ecdfbb
RW
12879# Be more Bourne compatible
12880DUALCASE=1; export DUALCASE # for MKS sh
12881if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
979273e3
NN
12882 emulate sh
12883 NULLCMD=:
81ecdfbb 12884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
12885 # is contrary to our usage. Disable this feature.
12886 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12887 setopt NO_GLOB_SUBST
12888else
12889 case `(set -o) 2>/dev/null` in #(
12890 *posix*) :
12891 set -o posix ;; #(
12892 *) :
12893 ;;
12894esac
979273e3 12895fi
979273e3 12896
81ecdfbb
RW
12897
12898as_nl='
12899'
12900export as_nl
12901# Printing a long string crashes Solaris 7 /usr/bin/printf.
12902as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12903as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12904as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12905# Prefer a ksh shell builtin over an external printf program on Solaris,
12906# but without wasting forks for bash or zsh.
12907if test -z "$BASH_VERSION$ZSH_VERSION" \
12908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12909 as_echo='print -r --'
12910 as_echo_n='print -rn --'
12911elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12912 as_echo='printf %s\n'
12913 as_echo_n='printf %s'
12914else
12915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12917 as_echo_n='/usr/ucb/echo -n'
12918 else
12919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12920 as_echo_n_body='eval
12921 arg=$1;
12922 case $arg in #(
12923 *"$as_nl"*)
12924 expr "X$arg" : "X\\(.*\\)$as_nl";
12925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12926 esac;
12927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12928 '
12929 export as_echo_n_body
12930 as_echo_n='sh -c $as_echo_n_body as_echo'
12931 fi
12932 export as_echo_body
12933 as_echo='sh -c $as_echo_body as_echo'
12934fi
12935
12936# The user is always right.
12937if test "${PATH_SEPARATOR+set}" != set; then
12938 PATH_SEPARATOR=:
12939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12941 PATH_SEPARATOR=';'
12942 }
979273e3
NN
12943fi
12944
12945
81ecdfbb
RW
12946# IFS
12947# We need space, tab and new line, in precisely that order. Quoting is
12948# there to prevent editors from complaining about space-tab.
12949# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12950# splitting by setting IFS to empty value.)
12951IFS=" "" $as_nl"
12952
12953# Find who we are. Look in the path if we contain no directory separator.
12954case $0 in #((
12955 *[\\/]* ) as_myself=$0 ;;
12956 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $PATH
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12962 done
12963IFS=$as_save_IFS
12964
12965 ;;
12966esac
12967# We did not find ourselves, most probably we were run as `sh COMMAND'
12968# in which case we are not to be found in the path.
12969if test "x$as_myself" = x; then
12970 as_myself=$0
12971fi
12972if test ! -f "$as_myself"; then
12973 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12974 exit 1
12975fi
12976
12977# Unset variables that we do not need and which cause bugs (e.g. in
12978# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12979# suppresses any "Segmentation fault" message there. '((' could
12980# trigger a bug in pdksh 5.2.14.
12981for as_var in BASH_ENV ENV MAIL MAILPATH
12982do eval test x\${$as_var+set} = xset \
12983 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12984done
979273e3
NN
12985PS1='$ '
12986PS2='> '
12987PS4='+ '
12988
12989# NLS nuisances.
81ecdfbb
RW
12990LC_ALL=C
12991export LC_ALL
12992LANGUAGE=C
12993export LANGUAGE
12994
12995# CDPATH.
12996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12997
12998
12999# as_fn_error ERROR [LINENO LOG_FD]
13000# ---------------------------------
13001# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13002# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13003# script with status $?, using 1 if that was 0.
13004as_fn_error ()
13005{
13006 as_status=$?; test $as_status -eq 0 && as_status=1
13007 if test "$3"; then
13008 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13009 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
979273e3 13010 fi
81ecdfbb
RW
13011 $as_echo "$as_me: error: $1" >&2
13012 as_fn_exit $as_status
13013} # as_fn_error
13014
13015
13016# as_fn_set_status STATUS
13017# -----------------------
13018# Set $? to STATUS, without forking.
13019as_fn_set_status ()
13020{
13021 return $1
13022} # as_fn_set_status
13023
13024# as_fn_exit STATUS
13025# -----------------
13026# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13027as_fn_exit ()
13028{
13029 set +e
13030 as_fn_set_status $1
13031 exit $1
13032} # as_fn_exit
13033
13034# as_fn_unset VAR
13035# ---------------
13036# Portably unset VAR.
13037as_fn_unset ()
13038{
13039 { eval $1=; unset $1;}
13040}
13041as_unset=as_fn_unset
13042# as_fn_append VAR VALUE
13043# ----------------------
13044# Append the text in VALUE to the end of the definition contained in VAR. Take
13045# advantage of any shell optimizations that allow amortized linear growth over
13046# repeated appends, instead of the typical quadratic growth present in naive
13047# implementations.
13048if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13049 eval 'as_fn_append ()
13050 {
13051 eval $1+=\$2
13052 }'
13053else
13054 as_fn_append ()
13055 {
13056 eval $1=\$$1\$2
13057 }
13058fi # as_fn_append
13059
13060# as_fn_arith ARG...
13061# ------------------
13062# Perform arithmetic evaluation on the ARGs, and store the result in the
13063# global $as_val. Take advantage of shells that can avoid forks. The arguments
13064# must be portable across $(()) and expr.
13065if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13066 eval 'as_fn_arith ()
13067 {
13068 as_val=$(( $* ))
13069 }'
13070else
13071 as_fn_arith ()
13072 {
13073 as_val=`expr "$@" || test $? -eq 1`
13074 }
13075fi # as_fn_arith
13076
252b5132 13077
81ecdfbb
RW
13078if expr a : '\(a\)' >/dev/null 2>&1 &&
13079 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
13080 as_expr=expr
13081else
13082 as_expr=false
13083fi
13084
81ecdfbb 13085if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
979273e3
NN
13086 as_basename=basename
13087else
13088 as_basename=false
13089fi
252b5132 13090
81ecdfbb
RW
13091if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13092 as_dirname=dirname
13093else
13094 as_dirname=false
13095fi
252b5132 13096
81ecdfbb 13097as_me=`$as_basename -- "$0" ||
979273e3
NN
13098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13099 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13100 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13101$as_echo X/"$0" |
13102 sed '/^.*\/\([^/][^/]*\)\/*$/{
13103 s//\1/
13104 q
13105 }
13106 /^X\/\(\/\/\)$/{
13107 s//\1/
13108 q
13109 }
13110 /^X\/\(\/\).*/{
13111 s//\1/
13112 q
13113 }
13114 s/.*/./; q'`
252b5132 13115
979273e3
NN
13116# Avoid depending upon Character Ranges.
13117as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13119as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13120as_cr_digits='0123456789'
13121as_cr_alnum=$as_cr_Letters$as_cr_digits
13122
81ecdfbb
RW
13123ECHO_C= ECHO_N= ECHO_T=
13124case `echo -n x` in #(((((
13125-n*)
13126 case `echo 'xy\c'` in
13127 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13128 xy) ECHO_C='\c';;
13129 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13130 ECHO_T=' ';;
13131 esac;;
13132*)
13133 ECHO_N='-n';;
979273e3
NN
13134esac
13135
81ecdfbb
RW
13136rm -f conf$$ conf$$.exe conf$$.file
13137if test -d conf$$.dir; then
13138 rm -f conf$$.dir/conf$$.file
979273e3 13139else
81ecdfbb
RW
13140 rm -f conf$$.dir
13141 mkdir conf$$.dir 2>/dev/null
979273e3 13142fi
81ecdfbb
RW
13143if (echo >conf$$.file) 2>/dev/null; then
13144 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 13145 as_ln_s='ln -s'
81ecdfbb
RW
13146 # ... but there are two gotchas:
13147 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13148 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13149 # In both cases, we have to default to `cp -p'.
13150 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13151 as_ln_s='cp -p'
13152 elif ln conf$$.file conf$$ 2>/dev/null; then
13153 as_ln_s=ln
13154 else
13155 as_ln_s='cp -p'
252b5132 13156 fi
979273e3
NN
13157else
13158 as_ln_s='cp -p'
13159fi
81ecdfbb
RW
13160rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13161rmdir conf$$.dir 2>/dev/null
13162
13163
13164# as_fn_mkdir_p
13165# -------------
13166# Create "$as_dir" as a directory, including parents if necessary.
13167as_fn_mkdir_p ()
13168{
13169
13170 case $as_dir in #(
13171 -*) as_dir=./$as_dir;;
13172 esac
13173 test -d "$as_dir" || eval $as_mkdir_p || {
13174 as_dirs=
13175 while :; do
13176 case $as_dir in #(
13177 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13178 *) as_qdir=$as_dir;;
13179 esac
13180 as_dirs="'$as_qdir' $as_dirs"
13181 as_dir=`$as_dirname -- "$as_dir" ||
13182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13183 X"$as_dir" : 'X\(//\)[^/]' \| \
13184 X"$as_dir" : 'X\(//\)$' \| \
13185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13186$as_echo X"$as_dir" |
13187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13188 s//\1/
13189 q
13190 }
13191 /^X\(\/\/\)[^/].*/{
13192 s//\1/
13193 q
13194 }
13195 /^X\(\/\/\)$/{
13196 s//\1/
13197 q
13198 }
13199 /^X\(\/\).*/{
13200 s//\1/
13201 q
13202 }
13203 s/.*/./; q'`
13204 test -d "$as_dir" && break
13205 done
13206 test -z "$as_dirs" || eval "mkdir $as_dirs"
13207 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
979273e3 13208
81ecdfbb
RW
13209
13210} # as_fn_mkdir_p
979273e3 13211if mkdir -p . 2>/dev/null; then
81ecdfbb 13212 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
13213else
13214 test -d ./-p && rmdir ./-p
13215 as_mkdir_p=false
13216fi
13217
81ecdfbb
RW
13218if test -x / >/dev/null 2>&1; then
13219 as_test_x='test -x'
13220else
13221 if ls -dL / >/dev/null 2>&1; then
13222 as_ls_L_option=L
13223 else
13224 as_ls_L_option=
13225 fi
13226 as_test_x='
13227 eval sh -c '\''
13228 if test -d "$1"; then
13229 test -d "$1/.";
13230 else
13231 case $1 in #(
13232 -*)set "./$1";;
13233 esac;
13234 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13235 ???[sx]*):;;*)false;;esac;fi
13236 '\'' sh
13237 '
13238fi
13239as_executable_p=$as_test_x
979273e3
NN
13240
13241# Sed expression to map a string onto a valid CPP name.
13242as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13243
13244# Sed expression to map a string onto a valid variable name.
13245as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13246
13247
979273e3 13248exec 6>&1
81ecdfbb
RW
13249## ----------------------------------- ##
13250## Main body of $CONFIG_STATUS script. ##
13251## ----------------------------------- ##
13252_ASEOF
13253test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
979273e3 13254
81ecdfbb
RW
13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256# Save the log message, to keep $0 and so on meaningful, and to
979273e3 13257# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13258# values after options handling.
13259ac_log="
d8bd95ef 13260This file was extended by opcodes $as_me 2.26.51, which was
81ecdfbb 13261generated by GNU Autoconf 2.64. Invocation command line was
979273e3
NN
13262
13263 CONFIG_FILES = $CONFIG_FILES
13264 CONFIG_HEADERS = $CONFIG_HEADERS
13265 CONFIG_LINKS = $CONFIG_LINKS
13266 CONFIG_COMMANDS = $CONFIG_COMMANDS
13267 $ $0 $@
13268
81ecdfbb
RW
13269on `(hostname || uname -n) 2>/dev/null | sed 1q`
13270"
13271
979273e3
NN
13272_ACEOF
13273
81ecdfbb
RW
13274case $ac_config_files in *"
13275"*) set x $ac_config_files; shift; ac_config_files=$*;;
13276esac
979273e3 13277
81ecdfbb
RW
13278case $ac_config_headers in *"
13279"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13280esac
979273e3 13281
979273e3 13282
81ecdfbb
RW
13283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13284# Files that config.status was made for.
13285config_files="$ac_config_files"
13286config_headers="$ac_config_headers"
13287config_commands="$ac_config_commands"
979273e3 13288
81ecdfbb 13289_ACEOF
979273e3 13290
81ecdfbb 13291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13292ac_cs_usage="\
81ecdfbb
RW
13293\`$as_me' instantiates files and other configuration actions
13294from templates according to the current configuration. Unless the files
13295and actions are specified as TAGs, all are instantiated by default.
979273e3 13296
81ecdfbb 13297Usage: $0 [OPTION]... [TAG]...
979273e3
NN
13298
13299 -h, --help print this help, then exit
81ecdfbb
RW
13300 -V, --version print version number and configuration settings, then exit
13301 -q, --quiet, --silent
13302 do not print progress messages
979273e3
NN
13303 -d, --debug don't remove temporary files
13304 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13305 --file=FILE[:TEMPLATE]
13306 instantiate the configuration file FILE
13307 --header=FILE[:TEMPLATE]
13308 instantiate the configuration header FILE
979273e3
NN
13309
13310Configuration files:
13311$config_files
13312
13313Configuration headers:
13314$config_headers
13315
13316Configuration commands:
13317$config_commands
13318
81ecdfbb 13319Report bugs to the package provider."
979273e3 13320
81ecdfbb
RW
13321_ACEOF
13322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13323ac_cs_version="\\
d8bd95ef 13324opcodes config.status 2.26.51
81ecdfbb
RW
13325configured by $0, generated by GNU Autoconf 2.64,
13326 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
979273e3 13327
81ecdfbb 13328Copyright (C) 2009 Free Software Foundation, Inc.
979273e3
NN
13329This config.status script is free software; the Free Software Foundation
13330gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13331
13332ac_pwd='$ac_pwd'
13333srcdir='$srcdir'
13334INSTALL='$INSTALL'
13335MKDIR_P='$MKDIR_P'
13336AWK='$AWK'
13337test -n "\$AWK" || AWK=awk
979273e3
NN
13338_ACEOF
13339
81ecdfbb
RW
13340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13341# The default lists apply if the user does not specify any file.
979273e3
NN
13342ac_need_defaults=:
13343while test $# != 0
13344do
13345 case $1 in
13346 --*=*)
81ecdfbb
RW
13347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
979273e3
NN
13349 ac_shift=:
13350 ;;
81ecdfbb 13351 *)
979273e3
NN
13352 ac_option=$1
13353 ac_optarg=$2
13354 ac_shift=shift
13355 ;;
979273e3
NN
13356 esac
13357
13358 case $ac_option in
13359 # Handling of the options.
979273e3
NN
13360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13361 ac_cs_recheck=: ;;
81ecdfbb
RW
13362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13363 $as_echo "$ac_cs_version"; exit ;;
13364 --debug | --debu | --deb | --de | --d | -d )
979273e3
NN
13365 debug=: ;;
13366 --file | --fil | --fi | --f )
13367 $ac_shift
81ecdfbb
RW
13368 case $ac_optarg in
13369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13370 esac
13371 as_fn_append CONFIG_FILES " '$ac_optarg'"
979273e3
NN
13372 ac_need_defaults=false;;
13373 --header | --heade | --head | --hea )
13374 $ac_shift
81ecdfbb
RW
13375 case $ac_optarg in
13376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13377 esac
13378 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
979273e3 13379 ac_need_defaults=false;;
81ecdfbb
RW
13380 --he | --h)
13381 # Conflict between --help and --header
13382 as_fn_error "ambiguous option: \`$1'
13383Try \`$0 --help' for more information.";;
13384 --help | --hel | -h )
13385 $as_echo "$ac_cs_usage"; exit ;;
979273e3
NN
13386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13387 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13388 ac_cs_silent=: ;;
13389
13390 # This is an error.
81ecdfbb
RW
13391 -*) as_fn_error "unrecognized option: \`$1'
13392Try \`$0 --help' for more information." ;;
979273e3 13393
81ecdfbb
RW
13394 *) as_fn_append ac_config_targets " $1"
13395 ac_need_defaults=false ;;
979273e3
NN
13396
13397 esac
13398 shift
252b5132 13399done
979273e3
NN
13400
13401ac_configure_extra_args=
13402
13403if $ac_cs_silent; then
13404 exec 6>/dev/null
13405 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13406fi
252b5132 13407
979273e3 13408_ACEOF
81ecdfbb 13409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13410if \$ac_cs_recheck; then
81ecdfbb
RW
13411 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13412 shift
13413 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13414 CONFIG_SHELL='$SHELL'
13415 export CONFIG_SHELL
13416 exec "\$@"
979273e3 13417fi
252b5132 13418
979273e3 13419_ACEOF
81ecdfbb
RW
13420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13421exec 5>>config.log
13422{
13423 echo
13424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13425## Running $as_me. ##
13426_ASBOX
13427 $as_echo "$ac_log"
13428} >&5
979273e3 13429
81ecdfbb
RW
13430_ACEOF
13431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13432#
81ecdfbb 13433# INIT-COMMANDS
979273e3 13434#
8ae85421 13435AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13436
13437
13438# The HP-UX ksh and POSIX shell print the target directory to stdout
13439# if CDPATH is set.
13440(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13441
13442sed_quote_subst='$sed_quote_subst'
13443double_quote_subst='$double_quote_subst'
13444delay_variable_subst='$delay_variable_subst'
3725885a
RW
13445enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13446macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13447macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13448enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13449pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13450enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13451SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13452ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13453host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13454host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13455host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13456build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13457build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13458build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13459SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13460Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13461GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13462EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13463FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13464LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13465NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13466LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13467max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13468ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13469exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13470lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13471lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13472lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13473reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13474reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13475OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13476deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13477file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13478AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13479AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13480STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13481RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13482old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13483old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13484old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13485lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13486CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13487CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13488compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13489GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13490lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13491lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13492lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13493lt_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"`'
13494objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13495MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13496lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13497lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13498lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13499lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13500lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13501need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13502DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13503NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13504LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13505OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13506OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13507libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13508shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13509extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13510archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13511enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13512export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13513whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13514compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13515old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13516old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13517archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13518archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13519module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13520module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13521with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13522allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13523no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13524hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13525hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13526hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13527hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13528hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13529hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13530hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13531hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13532inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13533link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13534fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13535always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13536export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13537exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13538include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13539prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13540file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13541variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13542need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13543need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13544version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13545runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13546shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13547shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13548libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13549library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13550soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13551install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13552postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13553postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13554finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13555finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13556hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13557sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13558sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13559hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13560enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13561enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13562enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13563old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13564striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13565
13566LTCC='$LTCC'
13567LTCFLAGS='$LTCFLAGS'
13568compiler='$compiler_DEFAULT'
13569
3725885a
RW
13570# A function that is used when there is no print builtin or printf.
13571func_fallback_echo ()
13572{
13573 eval 'cat <<_LTECHO_EOF
13574\$1
13575_LTECHO_EOF'
13576}
13577
d7040cdb 13578# Quote evaled strings.
3725885a
RW
13579for var in SHELL \
13580ECHO \
13581SED \
d7040cdb
SE
13582GREP \
13583EGREP \
13584FGREP \
13585LD \
13586NM \
13587LN_S \
13588lt_SP2NL \
13589lt_NL2SP \
13590reload_flag \
1927a18f 13591OBJDUMP \
d7040cdb
SE
13592deplibs_check_method \
13593file_magic_cmd \
13594AR \
13595AR_FLAGS \
13596STRIP \
13597RANLIB \
13598CC \
13599CFLAGS \
13600compiler \
13601lt_cv_sys_global_symbol_pipe \
13602lt_cv_sys_global_symbol_to_cdecl \
13603lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13604lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13605lt_prog_compiler_no_builtin_flag \
13606lt_prog_compiler_wl \
13607lt_prog_compiler_pic \
13608lt_prog_compiler_static \
13609lt_cv_prog_compiler_c_o \
13610need_locks \
1927a18f
L
13611DSYMUTIL \
13612NMEDIT \
13613LIPO \
13614OTOOL \
13615OTOOL64 \
d7040cdb
SE
13616shrext_cmds \
13617export_dynamic_flag_spec \
13618whole_archive_flag_spec \
13619compiler_needs_object \
13620with_gnu_ld \
13621allow_undefined_flag \
13622no_undefined_flag \
13623hardcode_libdir_flag_spec \
13624hardcode_libdir_flag_spec_ld \
13625hardcode_libdir_separator \
13626fix_srcfile_path \
13627exclude_expsyms \
13628include_expsyms \
13629file_list_spec \
13630variables_saved_for_relink \
13631libname_spec \
13632library_names_spec \
13633soname_spec \
3725885a 13634install_override_mode \
d7040cdb
SE
13635finish_eval \
13636old_striplib \
13637striplib; do
3725885a 13638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13639 *[\\\\\\\`\\"\\\$]*)
3725885a 13640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13641 ;;
13642 *)
13643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13644 ;;
13645 esac
13646done
13647
13648# Double-quote double-evaled strings.
13649for var in reload_cmds \
13650old_postinstall_cmds \
13651old_postuninstall_cmds \
13652old_archive_cmds \
13653extract_expsyms_cmds \
13654old_archive_from_new_cmds \
13655old_archive_from_expsyms_cmds \
13656archive_cmds \
13657archive_expsym_cmds \
13658module_cmds \
13659module_expsym_cmds \
13660export_symbols_cmds \
13661prelink_cmds \
13662postinstall_cmds \
13663postuninstall_cmds \
13664finish_cmds \
13665sys_lib_search_path_spec \
13666sys_lib_dlsearch_path_spec; do
3725885a 13667 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13668 *[\\\\\\\`\\"\\\$]*)
3725885a 13669 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13670 ;;
13671 *)
13672 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13673 ;;
13674 esac
13675done
13676
d7040cdb
SE
13677ac_aux_dir='$ac_aux_dir'
13678xsi_shell='$xsi_shell'
13679lt_shell_append='$lt_shell_append'
13680
13681# See if we are running on zsh, and set the options which allow our
13682# commands through without removal of \ escapes INIT.
13683if test -n "\${ZSH_VERSION+set}" ; then
13684 setopt NO_GLOB_SUBST
13685fi
13686
13687
13688 PACKAGE='$PACKAGE'
13689 VERSION='$VERSION'
13690 TIMESTAMP='$TIMESTAMP'
13691 RM='$RM'
13692 ofile='$ofile'
13693
13694
13695
20e95c23
DJ
13696# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13697 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13698 # from automake.
13699 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13700 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13701 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13702
13703
13704_ACEOF
13705
81ecdfbb 13706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13707
81ecdfbb 13708# Handling of arguments.
979273e3
NN
13709for ac_config_target in $ac_config_targets
13710do
81ecdfbb
RW
13711 case $ac_config_target in
13712 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13713 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13714 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13715 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13717 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13718
13719 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132 13720 esac
979273e3 13721done
252b5132 13722
81ecdfbb 13723
979273e3
NN
13724# If the user did not use the arguments to specify the items to instantiate,
13725# then the envvar interface is used. Set only those that are not.
13726# We use the long form for the default assignment because of an extremely
13727# bizarre bug on SunOS 4.1.3.
13728if $ac_need_defaults; then
13729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13732fi
13733
13734# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13735# simply because there is no reason against having it here, and in addition,
979273e3 13736# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13737# Hook for its removal unless debugging.
13738# Note that there is a small window in which the directory will not be cleaned:
13739# after its creation but before its name has been assigned to `$tmp'.
979273e3
NN
13740$debug ||
13741{
81ecdfbb
RW
13742 tmp=
13743 trap 'exit_status=$?
13744 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13745' 0
13746 trap 'as_fn_exit 1' 1 2 13 15
979273e3 13747}
979273e3
NN
13748# Create a (secure) tmp directory for tmp files.
13749
13750{
81ecdfbb 13751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
979273e3
NN
13752 test -n "$tmp" && test -d "$tmp"
13753} ||
13754{
81ecdfbb
RW
13755 tmp=./conf$$-$RANDOM
13756 (umask 077 && mkdir "$tmp")
13757} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13758
13759# Set up the scripts for CONFIG_FILES section.
13760# No need to generate them if there are no CONFIG_FILES.
13761# This happens for instance with `./config.status config.h'.
13762if test -n "$CONFIG_FILES"; then
13763
13764
13765ac_cr=`echo X | tr X '\015'`
13766# On cygwin, bash can eat \r inside `` if the user requested igncr.
13767# But we know of no other shell where ac_cr would be empty at this
13768# point, so we can use a bashism as a fallback.
13769if test "x$ac_cr" = x; then
13770 eval ac_cr=\$\'\\r\'
13771fi
13772ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13773if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13774 ac_cs_awk_cr='\r'
13775else
13776 ac_cs_awk_cr=$ac_cr
13777fi
13778
13779echo 'BEGIN {' >"$tmp/subs1.awk" &&
13780_ACEOF
13781
13782
13783{
13784 echo "cat >conf$$subs.awk <<_ACEOF" &&
13785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13786 echo "_ACEOF"
13787} >conf$$subs.sh ||
13788 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13789ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13790ac_delim='%!_!# '
13791for ac_last_try in false false false false false :; do
13792 . ./conf$$subs.sh ||
13793 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13794
13795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13796 if test $ac_delim_n = $ac_delim_num; then
13797 break
13798 elif $ac_last_try; then
13799 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13800 else
13801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13802 fi
13803done
13804rm -f conf$$subs.sh
13805
13806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13807cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13808_ACEOF
13809sed -n '
13810h
13811s/^/S["/; s/!.*/"]=/
13812p
13813g
13814s/^[^!]*!//
13815:repl
13816t repl
13817s/'"$ac_delim"'$//
13818t delim
13819:nl
13820h
13821s/\(.\{148\}\).*/\1/
13822t more1
13823s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13824p
13825n
13826b repl
13827:more1
13828s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13829p
13830g
13831s/.\{148\}//
13832t nl
13833:delim
13834h
13835s/\(.\{148\}\).*/\1/
13836t more2
13837s/["\\]/\\&/g; s/^/"/; s/$/"/
13838p
13839b
13840:more2
13841s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13842p
13843g
13844s/.\{148\}//
13845t delim
13846' <conf$$subs.awk | sed '
13847/^[^""]/{
13848 N
13849 s/\n//
13850}
13851' >>$CONFIG_STATUS || ac_write_fail=1
13852rm -f conf$$subs.awk
13853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854_ACAWK
13855cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13856 for (key in S) S_is_set[key] = 1
13857 FS = "\a"
13858
13859}
979273e3 13860{
81ecdfbb
RW
13861 line = $ 0
13862 nfields = split(line, field, "@")
13863 substed = 0
13864 len = length(field[1])
13865 for (i = 2; i < nfields; i++) {
13866 key = field[i]
13867 keylen = length(key)
13868 if (S_is_set[key]) {
13869 value = S[key]
13870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13871 len += length(value) + length(field[++i])
13872 substed = 1
13873 } else
13874 len += 1 + keylen
13875 }
13876
13877 print line
979273e3
NN
13878}
13879
81ecdfbb
RW
13880_ACAWK
13881_ACEOF
13882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13883if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13885else
13886 cat
13887fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13888 || as_fn_error "could not setup config files machinery" "$LINENO" 5
979273e3
NN
13889_ACEOF
13890
81ecdfbb
RW
13891# VPATH may cause trouble with some makes, so we remove $(srcdir),
13892# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13893# trailing colons and then remove the whole line if VPATH becomes empty
13894# (actually we leave an empty line to preserve line numbers).
13895if test "x$srcdir" = x.; then
13896 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13897s/:*\$(srcdir):*/:/
13898s/:*\${srcdir}:*/:/
13899s/:*@srcdir@:*/:/
13900s/^\([^=]*=[ ]*\):*/\1/
13901s/:*$//
13902s/^[^=]*=[ ]*$//
13903}'
13904fi
13905
13906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13907fi # test -n "$CONFIG_FILES"
979273e3 13908
81ecdfbb
RW
13909# Set up the scripts for CONFIG_HEADERS section.
13910# No need to generate them if there are no CONFIG_HEADERS.
13911# This happens for instance with `./config.status Makefile'.
13912if test -n "$CONFIG_HEADERS"; then
13913cat >"$tmp/defines.awk" <<\_ACAWK ||
13914BEGIN {
13915_ACEOF
979273e3 13916
81ecdfbb
RW
13917# Transform confdefs.h into an awk script `defines.awk', embedded as
13918# here-document in config.status, that substitutes the proper values into
13919# config.h.in to produce config.h.
979273e3 13920
81ecdfbb
RW
13921# Create a delimiter string that does not exist in confdefs.h, to ease
13922# handling of long lines.
13923ac_delim='%!_!# '
13924for ac_last_try in false false :; do
13925 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13926 if test -z "$ac_t"; then
13927 break
13928 elif $ac_last_try; then
13929 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13930 else
13931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13932 fi
13933done
13934
13935# For the awk script, D is an array of macro values keyed by name,
13936# likewise P contains macro parameters if any. Preserve backslash
13937# newline sequences.
13938
13939ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13940sed -n '
13941s/.\{148\}/&'"$ac_delim"'/g
13942t rset
13943:rset
13944s/^[ ]*#[ ]*define[ ][ ]*/ /
13945t def
13946d
13947:def
13948s/\\$//
13949t bsnl
13950s/["\\]/\\&/g
13951s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13952D["\1"]=" \3"/p
13953s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13954d
13955:bsnl
13956s/["\\]/\\&/g
13957s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13958D["\1"]=" \3\\\\\\n"\\/p
13959t cont
13960s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13961t cont
13962d
13963:cont
13964n
13965s/.\{148\}/&'"$ac_delim"'/g
13966t clear
13967:clear
13968s/\\$//
13969t bsnlc
13970s/["\\]/\\&/g; s/^/"/; s/$/"/p
13971d
13972:bsnlc
13973s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13974b cont
13975' <confdefs.h | sed '
13976s/'"$ac_delim"'/"\\\
13977"/g' >>$CONFIG_STATUS || ac_write_fail=1
13978
13979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13980 for (key in D) D_is_set[key] = 1
13981 FS = "\a"
13982}
13983/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13984 line = \$ 0
13985 split(line, arg, " ")
13986 if (arg[1] == "#") {
13987 defundef = arg[2]
13988 mac1 = arg[3]
13989 } else {
13990 defundef = substr(arg[1], 2)
13991 mac1 = arg[2]
13992 }
13993 split(mac1, mac2, "(") #)
13994 macro = mac2[1]
13995 prefix = substr(line, 1, index(line, defundef) - 1)
13996 if (D_is_set[macro]) {
13997 # Preserve the white space surrounding the "#".
13998 print prefix "define", macro P[macro] D[macro]
13999 next
14000 } else {
14001 # Replace #undef with comments. This is necessary, for example,
14002 # in the case of _POSIX_SOURCE, which is predefined and required
14003 # on some systems where configure will not decide to define it.
14004 if (defundef == "undef") {
14005 print "/*", prefix defundef, macro, "*/"
14006 next
14007 }
14008 }
14009}
14010{ print }
14011_ACAWK
979273e3 14012_ACEOF
81ecdfbb
RW
14013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14015fi # test -n "$CONFIG_HEADERS"
979273e3 14016
81ecdfbb
RW
14017
14018eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14019shift
14020for ac_tag
14021do
14022 case $ac_tag in
14023 :[FHLC]) ac_mode=$ac_tag; continue;;
14024 esac
14025 case $ac_mode$ac_tag in
14026 :[FHL]*:*);;
14027 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14028 :[FH]-) ac_tag=-:-;;
14029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14030 esac
14031 ac_save_IFS=$IFS
14032 IFS=:
14033 set x $ac_tag
14034 IFS=$ac_save_IFS
14035 shift
14036 ac_file=$1
14037 shift
14038
14039 case $ac_mode in
14040 :L) ac_source=$1;;
14041 :[FH])
14042 ac_file_inputs=
14043 for ac_f
14044 do
14045 case $ac_f in
14046 -) ac_f="$tmp/stdin";;
14047 *) # Look for the file first in the build tree, then in the source tree
14048 # (if the path is not absolute). The absolute path cannot be DOS-style,
14049 # because $ac_f cannot contain `:'.
14050 test -f "$ac_f" ||
14051 case $ac_f in
14052 [\\/$]*) false;;
14053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14054 esac ||
14055 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14056 esac
14057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14058 as_fn_append ac_file_inputs " '$ac_f'"
14059 done
14060
14061 # Let's still pretend it is `configure' which instantiates (i.e., don't
14062 # use $as_me), people would be surprised to read:
14063 # /* config.h. Generated by config.status. */
14064 configure_input='Generated from '`
14065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14066 `' by configure.'
14067 if test x"$ac_file" != x-; then
14068 configure_input="$ac_file. $configure_input"
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14070$as_echo "$as_me: creating $ac_file" >&6;}
979273e3 14071 fi
81ecdfbb
RW
14072 # Neutralize special characters interpreted by sed in replacement strings.
14073 case $configure_input in #(
14074 *\&* | *\|* | *\\* )
14075 ac_sed_conf_input=`$as_echo "$configure_input" |
14076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14077 *) ac_sed_conf_input=$configure_input;;
14078 esac
252b5132 14079
81ecdfbb
RW
14080 case $ac_tag in
14081 *:-:* | *:-) cat >"$tmp/stdin" \
14082 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14083 esac
14084 ;;
252b5132
RH
14085 esac
14086
81ecdfbb 14087 ac_dir=`$as_dirname -- "$ac_file" ||
979273e3
NN
14088$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14089 X"$ac_file" : 'X\(//\)[^/]' \| \
14090 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14092$as_echo X"$ac_file" |
14093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14094 s//\1/
14095 q
14096 }
14097 /^X\(\/\/\)[^/].*/{
14098 s//\1/
14099 q
14100 }
14101 /^X\(\/\/\)$/{
14102 s//\1/
14103 q
14104 }
14105 /^X\(\/\).*/{
14106 s//\1/
14107 q
14108 }
14109 s/.*/./; q'`
14110 as_dir="$ac_dir"; as_fn_mkdir_p
979273e3
NN
14111 ac_builddir=.
14112
81ecdfbb
RW
14113case "$ac_dir" in
14114.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14115*)
14116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14117 # A ".." for each directory in $ac_dir_suffix.
14118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14119 case $ac_top_builddir_sub in
14120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14122 esac ;;
14123esac
14124ac_abs_top_builddir=$ac_pwd
14125ac_abs_builddir=$ac_pwd$ac_dir_suffix
14126# for backward compatibility:
14127ac_top_builddir=$ac_top_build_prefix
979273e3
NN
14128
14129case $srcdir in
81ecdfbb 14130 .) # We are building in place.
979273e3 14131 ac_srcdir=.
81ecdfbb
RW
14132 ac_top_srcdir=$ac_top_builddir_sub
14133 ac_abs_top_srcdir=$ac_pwd ;;
14134 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 14135 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14136 ac_top_srcdir=$srcdir
14137 ac_abs_top_srcdir=$srcdir ;;
14138 *) # Relative name.
14139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14140 ac_top_srcdir=$ac_top_build_prefix$srcdir
14141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
979273e3 14142esac
81ecdfbb 14143ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
979273e3 14144
252b5132 14145
81ecdfbb
RW
14146 case $ac_mode in
14147 :F)
14148 #
14149 # CONFIG_FILE
14150 #
979273e3
NN
14151
14152 case $INSTALL in
14153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
14154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14155 esac
14156 ac_MKDIR_P=$MKDIR_P
14157 case $MKDIR_P in
14158 [\\/$]* | ?:[\\/]* ) ;;
14159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 14160 esac
81ecdfbb 14161_ACEOF
252b5132 14162
81ecdfbb
RW
14163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14164# If the template does not know about datarootdir, expand it.
14165# FIXME: This hack should be removed a few years after 2.60.
14166ac_datarootdir_hack=; ac_datarootdir_seen=
14167ac_sed_dataroot='
14168/datarootdir/ {
14169 p
14170 q
14171}
14172/@datadir@/p
14173/@docdir@/p
14174/@infodir@/p
14175/@localedir@/p
14176/@mandir@/p'
14177case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14178*datarootdir*) ac_datarootdir_seen=yes;;
14179*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14181$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14182_ACEOF
14183cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14184 ac_datarootdir_hack='
14185 s&@datadir@&$datadir&g
14186 s&@docdir@&$docdir&g
14187 s&@infodir@&$infodir&g
14188 s&@localedir@&$localedir&g
14189 s&@mandir@&$mandir&g
14190 s&\\\${datarootdir}&$datarootdir&g' ;;
14191esac
979273e3 14192_ACEOF
81ecdfbb
RW
14193
14194# Neutralize VPATH when `$srcdir' = `.'.
14195# Shell code in configure.ac might set extrasub.
14196# FIXME: do we really want to maintain this feature?
14197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14198ac_sed_extra="$ac_vpsub
979273e3
NN
14199$extrasub
14200_ACEOF
81ecdfbb 14201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3
NN
14202:t
14203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14204s|@configure_input@|$ac_sed_conf_input|;t t
14205s&@top_builddir@&$ac_top_builddir_sub&;t t
14206s&@top_build_prefix@&$ac_top_build_prefix&;t t
14207s&@srcdir@&$ac_srcdir&;t t
14208s&@abs_srcdir@&$ac_abs_srcdir&;t t
14209s&@top_srcdir@&$ac_top_srcdir&;t t
14210s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14211s&@builddir@&$ac_builddir&;t t
14212s&@abs_builddir@&$ac_abs_builddir&;t t
14213s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14214s&@INSTALL@&$ac_INSTALL&;t t
14215s&@MKDIR_P@&$ac_MKDIR_P&;t t
14216$ac_datarootdir_hack
14217"
14218eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14219 || as_fn_error "could not create $ac_file" "$LINENO" 5
14220
14221test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14222 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14225which seems to be undefined. Please make sure it is defined." >&5
14226$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14227which seems to be undefined. Please make sure it is defined." >&2;}
14228
14229 rm -f "$tmp/stdin"
979273e3 14230 case $ac_file in
81ecdfbb
RW
14231 -) cat "$tmp/out" && rm -f "$tmp/out";;
14232 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14233 esac \
14234 || as_fn_error "could not create $ac_file" "$LINENO" 5
14235 ;;
14236 :H)
14237 #
14238 # CONFIG_HEADER
14239 #
979273e3 14240 if test x"$ac_file" != x-; then
81ecdfbb
RW
14241 {
14242 $as_echo "/* $configure_input */" \
14243 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14244 } >"$tmp/config.h" \
14245 || as_fn_error "could not create $ac_file" "$LINENO" 5
14246 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14248$as_echo "$as_me: $ac_file is unchanged" >&6;}
979273e3 14249 else
81ecdfbb
RW
14250 rm -f "$ac_file"
14251 mv "$tmp/config.h" "$ac_file" \
14252 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 14253 fi
979273e3 14254 else
81ecdfbb
RW
14255 $as_echo "/* $configure_input */" \
14256 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14257 || as_fn_error "could not create -" "$LINENO" 5
252b5132 14258 fi
81ecdfbb
RW
14259# Compute "$ac_file"'s index in $config_headers.
14260_am_arg="$ac_file"
8ae85421
AM
14261_am_stamp_count=1
14262for _am_header in $config_headers :; do
14263 case $_am_header in
81ecdfbb 14264 $_am_arg | $_am_arg:* )
8ae85421
AM
14265 break ;;
14266 * )
14267 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14268 esac
14269done
81ecdfbb
RW
14270echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14271$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14272 X"$_am_arg" : 'X\(//\)[^/]' \| \
14273 X"$_am_arg" : 'X\(//\)$' \| \
14274 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14275$as_echo X"$_am_arg" |
14276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\(\/\/\)[^/].*/{
14281 s//\1/
14282 q
14283 }
14284 /^X\(\/\/\)$/{
14285 s//\1/
14286 q
14287 }
14288 /^X\(\/\).*/{
14289 s//\1/
14290 q
14291 }
14292 s/.*/./; q'`/stamp-h$_am_stamp_count
14293 ;;
979273e3 14294
81ecdfbb
RW
14295 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14296$as_echo "$as_me: executing $ac_file commands" >&6;}
14297 ;;
14298 esac
979273e3
NN
14299
14300
81ecdfbb
RW
14301 case $ac_file$ac_mode in
14302 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14303 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14304 # are listed without --file. Let's play safe and only enable the eval
14305 # if we detect the quoting.
14306 case $CONFIG_FILES in
14307 *\'*) eval set x "$CONFIG_FILES" ;;
14308 *) set x $CONFIG_FILES ;;
14309 esac
14310 shift
14311 for mf
14312 do
14313 # Strip MF so we end up with the name of the file.
14314 mf=`echo "$mf" | sed -e 's/:.*$//'`
14315 # Check whether this is an Automake generated Makefile or not.
14316 # We used to match only the files named `Makefile.in', but
14317 # some people rename them; so instead we look at the file content.
14318 # Grep'ing the first line is not enough: some people post-process
14319 # each Makefile.in and add a new line on top of each file to say so.
14320 # Grep'ing the whole file is not good either: AIX grep has a line
14321 # limit of 2048, but all sed's we know have understand at least 4000.
14322 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14323 dirpart=`$as_dirname -- "$mf" ||
8ae85421
AM
14324$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14325 X"$mf" : 'X\(//\)[^/]' \| \
14326 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14327 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14328$as_echo X"$mf" |
14329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14330 s//\1/
14331 q
14332 }
14333 /^X\(\/\/\)[^/].*/{
14334 s//\1/
14335 q
14336 }
14337 /^X\(\/\/\)$/{
14338 s//\1/
14339 q
14340 }
14341 /^X\(\/\).*/{
14342 s//\1/
14343 q
14344 }
14345 s/.*/./; q'`
14346 else
14347 continue
14348 fi
14349 # Extract the definition of DEPDIR, am__include, and am__quote
14350 # from the Makefile without running `make'.
14351 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14352 test -z "$DEPDIR" && continue
14353 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14354 test -z "am__include" && continue
14355 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14356 # When using ansi2knr, U may be empty or an underscore; expand it
14357 U=`sed -n 's/^U = //p' < "$mf"`
14358 # Find all dependency output files, they are included files with
14359 # $(DEPDIR) in their names. We invoke sed twice because it is the
14360 # simplest approach to changing $(DEPDIR) to its actual value in the
14361 # expansion.
14362 for file in `sed -n "
14363 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14364 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14365 # Make sure the directory exists.
14366 test -f "$dirpart/$file" && continue
14367 fdir=`$as_dirname -- "$file" ||
8ae85421
AM
14368$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14369 X"$file" : 'X\(//\)[^/]' \| \
14370 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14371 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14372$as_echo X"$file" |
14373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14374 s//\1/
14375 q
14376 }
14377 /^X\(\/\/\)[^/].*/{
14378 s//\1/
14379 q
14380 }
14381 /^X\(\/\/\)$/{
14382 s//\1/
14383 q
14384 }
14385 /^X\(\/\).*/{
14386 s//\1/
14387 q
14388 }
14389 s/.*/./; q'`
14390 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14391 # echo "creating $dirpart/$file"
14392 echo '# dummy' > "$dirpart/$file"
8ae85421 14393 done
8ae85421 14394 done
81ecdfbb 14395}
d7040cdb 14396 ;;
81ecdfbb 14397 "libtool":C)
d7040cdb
SE
14398
14399 # See if we are running on zsh, and set the options which allow our
14400 # commands through without removal of \ escapes.
14401 if test -n "${ZSH_VERSION+set}" ; then
14402 setopt NO_GLOB_SUBST
14403 fi
14404
14405 cfgfile="${ofile}T"
14406 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14407 $RM "$cfgfile"
14408
14409 cat <<_LT_EOF >> "$cfgfile"
14410#! $SHELL
14411
14412# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14413# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14414# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14415# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14416#
1927a18f 14417# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 14418# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1927a18f 14419# Written by Gordon Matzigkeit, 1996
d7040cdb 14420#
1927a18f 14421# This file is part of GNU Libtool.
d7040cdb 14422#
1927a18f
L
14423# GNU Libtool is free software; you can redistribute it and/or
14424# modify it under the terms of the GNU General Public License as
14425# published by the Free Software Foundation; either version 2 of
14426# the License, or (at your option) any later version.
d7040cdb 14427#
1927a18f
L
14428# As a special exception to the GNU General Public License,
14429# if you distribute this file as part of a program or library that
14430# is built using GNU Libtool, you may include this file under the
14431# same distribution terms that you use for the rest of that program.
d7040cdb 14432#
1927a18f
L
14433# GNU Libtool is distributed in the hope that it will be useful,
14434# but WITHOUT ANY WARRANTY; without even the implied warranty of
14435# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14436# GNU General Public License for more details.
d7040cdb 14437#
1927a18f
L
14438# You should have received a copy of the GNU General Public License
14439# along with GNU Libtool; see the file COPYING. If not, a copy
14440# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14441# obtained by writing to the Free Software Foundation, Inc.,
14442# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14443
14444
14445# The names of the tagged configurations supported by this script.
14446available_tags=""
14447
14448# ### BEGIN LIBTOOL CONFIG
14449
14450# Whether or not to build shared libraries.
14451build_libtool_libs=$enable_shared
14452
14453# Which release of libtool.m4 was used?
14454macro_version=$macro_version
14455macro_revision=$macro_revision
14456
14457# Whether or not to build static libraries.
14458build_old_libs=$enable_static
14459
14460# What type of objects to build.
14461pic_mode=$pic_mode
14462
14463# Whether or not to optimize for fast installation.
14464fast_install=$enable_fast_install
14465
3725885a
RW
14466# Shell to use when invoking shell scripts.
14467SHELL=$lt_SHELL
14468
14469# An echo program that protects backslashes.
14470ECHO=$lt_ECHO
14471
d7040cdb
SE
14472# The host system.
14473host_alias=$host_alias
14474host=$host
14475host_os=$host_os
14476
14477# The build system.
14478build_alias=$build_alias
14479build=$build
14480build_os=$build_os
14481
14482# A sed program that does not truncate output.
14483SED=$lt_SED
14484
14485# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14486Xsed="\$SED -e 1s/^X//"
14487
14488# A grep program that handles long lines.
14489GREP=$lt_GREP
14490
14491# An ERE matcher.
14492EGREP=$lt_EGREP
14493
14494# A literal string matcher.
14495FGREP=$lt_FGREP
14496
14497# A BSD- or MS-compatible name lister.
14498NM=$lt_NM
14499
14500# Whether we need soft or hard links.
14501LN_S=$lt_LN_S
14502
14503# What is the maximum length of a command?
14504max_cmd_len=$max_cmd_len
14505
14506# Object file suffix (normally "o").
14507objext=$ac_objext
14508
14509# Executable file suffix (normally "").
14510exeext=$exeext
14511
14512# whether the shell understands "unset".
14513lt_unset=$lt_unset
14514
14515# turn spaces into newlines.
14516SP2NL=$lt_lt_SP2NL
14517
14518# turn newlines into spaces.
14519NL2SP=$lt_lt_NL2SP
14520
1927a18f
L
14521# An object symbol dumper.
14522OBJDUMP=$lt_OBJDUMP
14523
d7040cdb
SE
14524# Method to check whether dependent libraries are shared objects.
14525deplibs_check_method=$lt_deplibs_check_method
14526
14527# Command to use when deplibs_check_method == "file_magic".
14528file_magic_cmd=$lt_file_magic_cmd
14529
14530# The archiver.
14531AR=$lt_AR
14532AR_FLAGS=$lt_AR_FLAGS
14533
14534# A symbol stripping program.
14535STRIP=$lt_STRIP
14536
14537# Commands used to install an old-style archive.
14538RANLIB=$lt_RANLIB
14539old_postinstall_cmds=$lt_old_postinstall_cmds
14540old_postuninstall_cmds=$lt_old_postuninstall_cmds
14541
3725885a
RW
14542# Whether to use a lock for old archive extraction.
14543lock_old_archive_extraction=$lock_old_archive_extraction
14544
d7040cdb
SE
14545# A C compiler.
14546LTCC=$lt_CC
14547
14548# LTCC compiler flags.
14549LTCFLAGS=$lt_CFLAGS
14550
14551# Take the output of nm and produce a listing of raw symbols and C names.
14552global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14553
14554# Transform the output of nm in a proper C declaration.
14555global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14556
14557# Transform the output of nm in a C name address pair.
14558global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14559
1927a18f
L
14560# Transform the output of nm in a C name address pair when lib prefix is needed.
14561global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14562
d7040cdb
SE
14563# The name of the directory that contains temporary libtool files.
14564objdir=$objdir
14565
d7040cdb
SE
14566# Used to examine libraries when file_magic_cmd begins with "file".
14567MAGIC_CMD=$MAGIC_CMD
14568
14569# Must we lock files when doing compilation?
14570need_locks=$lt_need_locks
14571
1927a18f
L
14572# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14573DSYMUTIL=$lt_DSYMUTIL
14574
14575# Tool to change global to local symbols on Mac OS X.
14576NMEDIT=$lt_NMEDIT
14577
14578# Tool to manipulate fat objects and archives on Mac OS X.
14579LIPO=$lt_LIPO
14580
14581# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14582OTOOL=$lt_OTOOL
14583
14584# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14585OTOOL64=$lt_OTOOL64
14586
d7040cdb
SE
14587# Old archive suffix (normally "a").
14588libext=$libext
14589
14590# Shared library suffix (normally ".so").
14591shrext_cmds=$lt_shrext_cmds
14592
14593# The commands to extract the exported symbol list from a shared archive.
14594extract_expsyms_cmds=$lt_extract_expsyms_cmds
14595
14596# Variables whose values should be saved in libtool wrapper scripts and
14597# restored at link time.
14598variables_saved_for_relink=$lt_variables_saved_for_relink
14599
14600# Do we need the "lib" prefix for modules?
14601need_lib_prefix=$need_lib_prefix
14602
14603# Do we need a version for libraries?
14604need_version=$need_version
14605
14606# Library versioning type.
14607version_type=$version_type
14608
14609# Shared library runtime path variable.
14610runpath_var=$runpath_var
14611
14612# Shared library path variable.
14613shlibpath_var=$shlibpath_var
14614
14615# Is shlibpath searched before the hard-coded library search path?
14616shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14617
14618# Format of library name prefix.
14619libname_spec=$lt_libname_spec
14620
14621# List of archive names. First name is the real one, the rest are links.
14622# The last name is the one that the linker finds with -lNAME
14623library_names_spec=$lt_library_names_spec
14624
14625# The coded name of the library, if different from the real name.
14626soname_spec=$lt_soname_spec
14627
3725885a
RW
14628# Permission mode override for installation of shared libraries.
14629install_override_mode=$lt_install_override_mode
14630
d7040cdb
SE
14631# Command to use after installation of a shared archive.
14632postinstall_cmds=$lt_postinstall_cmds
14633
14634# Command to use after uninstallation of a shared archive.
14635postuninstall_cmds=$lt_postuninstall_cmds
14636
14637# Commands used to finish a libtool library installation in a directory.
14638finish_cmds=$lt_finish_cmds
14639
14640# As "finish_cmds", except a single script fragment to be evaled but
14641# not shown.
14642finish_eval=$lt_finish_eval
14643
14644# Whether we should hardcode library paths into libraries.
14645hardcode_into_libs=$hardcode_into_libs
14646
14647# Compile-time system search path for libraries.
14648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14649
14650# Run-time system search path for libraries.
14651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14652
14653# Whether dlopen is supported.
14654dlopen_support=$enable_dlopen
14655
14656# Whether dlopen of programs is supported.
14657dlopen_self=$enable_dlopen_self
14658
14659# Whether dlopen of statically linked programs is supported.
14660dlopen_self_static=$enable_dlopen_self_static
14661
14662# Commands to strip libraries.
14663old_striplib=$lt_old_striplib
14664striplib=$lt_striplib
14665
14666
14667# The linker used to build libraries.
14668LD=$lt_LD
14669
3725885a
RW
14670# How to create reloadable object files.
14671reload_flag=$lt_reload_flag
14672reload_cmds=$lt_reload_cmds
14673
d7040cdb
SE
14674# Commands used to build an old-style archive.
14675old_archive_cmds=$lt_old_archive_cmds
14676
14677# A language specific compiler.
14678CC=$lt_compiler
14679
14680# Is the compiler the GNU compiler?
14681with_gcc=$GCC
14682
14683# Compiler flag to turn off builtin functions.
14684no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14685
14686# How to pass a linker flag through the compiler.
14687wl=$lt_lt_prog_compiler_wl
14688
14689# Additional compiler flags for building library objects.
14690pic_flag=$lt_lt_prog_compiler_pic
14691
14692# Compiler flag to prevent dynamic linking.
14693link_static_flag=$lt_lt_prog_compiler_static
14694
14695# Does compiler simultaneously support -c and -o options?
14696compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14697
14698# Whether or not to add -lc for building shared libraries.
14699build_libtool_need_lc=$archive_cmds_need_lc
14700
14701# Whether or not to disallow shared libs when runtime libs are static.
14702allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14703
14704# Compiler flag to allow reflexive dlopens.
14705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14706
14707# Compiler flag to generate shared objects directly from archives.
14708whole_archive_flag_spec=$lt_whole_archive_flag_spec
14709
14710# Whether the compiler copes with passing no objects directly.
14711compiler_needs_object=$lt_compiler_needs_object
14712
14713# Create an old-style archive from a shared archive.
14714old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14715
14716# Create a temporary old-style archive to link instead of a shared archive.
14717old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14718
14719# Commands used to build a shared archive.
14720archive_cmds=$lt_archive_cmds
14721archive_expsym_cmds=$lt_archive_expsym_cmds
14722
14723# Commands used to build a loadable module if different from building
14724# a shared archive.
14725module_cmds=$lt_module_cmds
14726module_expsym_cmds=$lt_module_expsym_cmds
14727
14728# Whether we are building with GNU ld or not.
14729with_gnu_ld=$lt_with_gnu_ld
14730
14731# Flag that allows shared libraries with undefined symbols to be built.
14732allow_undefined_flag=$lt_allow_undefined_flag
14733
14734# Flag that enforces no undefined symbols.
14735no_undefined_flag=$lt_no_undefined_flag
14736
14737# Flag to hardcode \$libdir into a binary during linking.
14738# This must work even if \$libdir does not exist
14739hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14740
14741# If ld is used when linking, flag to hardcode \$libdir into a binary
14742# during linking. This must work even if \$libdir does not exist.
14743hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14744
14745# Whether we need a single "-rpath" flag with a separated argument.
14746hardcode_libdir_separator=$lt_hardcode_libdir_separator
14747
14748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14749# DIR into the resulting binary.
14750hardcode_direct=$hardcode_direct
14751
14752# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14753# DIR into the resulting binary and the resulting library dependency is
14754# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14755# library is relocated.
14756hardcode_direct_absolute=$hardcode_direct_absolute
14757
14758# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14759# into the resulting binary.
14760hardcode_minus_L=$hardcode_minus_L
14761
14762# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14763# into the resulting binary.
14764hardcode_shlibpath_var=$hardcode_shlibpath_var
14765
14766# Set to "yes" if building a shared library automatically hardcodes DIR
14767# into the library and all subsequent libraries and executables linked
14768# against it.
14769hardcode_automatic=$hardcode_automatic
14770
14771# Set to yes if linker adds runtime paths of dependent libraries
14772# to runtime path list.
14773inherit_rpath=$inherit_rpath
14774
14775# Whether libtool must link a program against all its dependency libraries.
14776link_all_deplibs=$link_all_deplibs
14777
14778# Fix the shell variable \$srcfile for the compiler.
14779fix_srcfile_path=$lt_fix_srcfile_path
14780
14781# Set to "yes" if exported symbols are required.
14782always_export_symbols=$always_export_symbols
14783
14784# The commands to list exported symbols.
14785export_symbols_cmds=$lt_export_symbols_cmds
14786
14787# Symbols that should not be listed in the preloaded symbols.
14788exclude_expsyms=$lt_exclude_expsyms
14789
14790# Symbols that must always be exported.
14791include_expsyms=$lt_include_expsyms
14792
14793# Commands necessary for linking programs (against libraries) with templates.
14794prelink_cmds=$lt_prelink_cmds
14795
14796# Specify filename containing input files.
14797file_list_spec=$lt_file_list_spec
14798
14799# How to hardcode a shared library path into an executable.
14800hardcode_action=$hardcode_action
14801
14802# ### END LIBTOOL CONFIG
14803
14804_LT_EOF
14805
14806 case $host_os in
14807 aix3*)
14808 cat <<\_LT_EOF >> "$cfgfile"
14809# AIX sometimes has problems with the GCC collect2 program. For some
14810# reason, if we set the COLLECT_NAMES environment variable, the problems
14811# vanish in a puff of smoke.
14812if test "X${COLLECT_NAMES+set}" != Xset; then
14813 COLLECT_NAMES=
14814 export COLLECT_NAMES
14815fi
14816_LT_EOF
14817 ;;
14818 esac
14819
14820
14821ltmain="$ac_aux_dir/ltmain.sh"
14822
14823
14824 # We use sed instead of cat because bash on DJGPP gets confused if
14825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14826 # text mode, it properly converts lines to CR/LF. This bash problem
14827 # is reportedly fixed, but why not run on old versions too?
14828 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14829 || (rm -f "$cfgfile"; exit 1)
14830
14831 case $xsi_shell in
14832 yes)
14833 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14834
d7040cdb
SE
14835# func_dirname file append nondir_replacement
14836# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14837# otherwise set result to NONDIR_REPLACEMENT.
14838func_dirname ()
14839{
14840 case ${1} in
14841 */*) func_dirname_result="${1%/*}${2}" ;;
14842 * ) func_dirname_result="${3}" ;;
14843 esac
14844}
14845
14846# func_basename file
14847func_basename ()
14848{
14849 func_basename_result="${1##*/}"
14850}
14851
1927a18f
L
14852# func_dirname_and_basename file append nondir_replacement
14853# perform func_basename and func_dirname in a single function
14854# call:
14855# dirname: Compute the dirname of FILE. If nonempty,
14856# add APPEND to the result, otherwise set result
14857# to NONDIR_REPLACEMENT.
14858# value returned in "$func_dirname_result"
14859# basename: Compute filename of FILE.
14860# value retuned in "$func_basename_result"
14861# Implementation must be kept synchronized with func_dirname
14862# and func_basename. For efficiency, we do not delegate to
14863# those functions but instead duplicate the functionality here.
14864func_dirname_and_basename ()
14865{
14866 case ${1} in
14867 */*) func_dirname_result="${1%/*}${2}" ;;
14868 * ) func_dirname_result="${3}" ;;
14869 esac
14870 func_basename_result="${1##*/}"
14871}
14872
d7040cdb
SE
14873# func_stripname prefix suffix name
14874# strip PREFIX and SUFFIX off of NAME.
14875# PREFIX and SUFFIX must not contain globbing or regex special
14876# characters, hashes, percent signs, but SUFFIX may contain a leading
14877# dot (in which case that matches only a dot).
14878func_stripname ()
14879{
14880 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14881 # positional parameters, so assign one to ordinary parameter first.
14882 func_stripname_result=${3}
14883 func_stripname_result=${func_stripname_result#"${1}"}
14884 func_stripname_result=${func_stripname_result%"${2}"}
14885}
14886
14887# func_opt_split
14888func_opt_split ()
14889{
14890 func_opt_split_opt=${1%%=*}
14891 func_opt_split_arg=${1#*=}
14892}
14893
14894# func_lo2o object
14895func_lo2o ()
14896{
14897 case ${1} in
14898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14899 *) func_lo2o_result=${1} ;;
14900 esac
14901}
1927a18f
L
14902
14903# func_xform libobj-or-source
14904func_xform ()
14905{
14906 func_xform_result=${1%.*}.lo
14907}
14908
14909# func_arith arithmetic-term...
14910func_arith ()
14911{
14912 func_arith_result=$(( $* ))
14913}
14914
14915# func_len string
14916# STRING may not start with a hyphen.
14917func_len ()
14918{
14919 func_len_result=${#1}
14920}
14921
d7040cdb
SE
14922_LT_EOF
14923 ;;
14924 *) # Bourne compatible functions.
14925 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14926
d7040cdb
SE
14927# func_dirname file append nondir_replacement
14928# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14929# otherwise set result to NONDIR_REPLACEMENT.
14930func_dirname ()
14931{
14932 # Extract subdirectory from the argument.
3725885a 14933 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14934 if test "X$func_dirname_result" = "X${1}"; then
14935 func_dirname_result="${3}"
14936 else
14937 func_dirname_result="$func_dirname_result${2}"
14938 fi
14939}
14940
14941# func_basename file
14942func_basename ()
14943{
3725885a 14944 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14945}
14946
1927a18f 14947
d7040cdb
SE
14948# func_stripname prefix suffix name
14949# strip PREFIX and SUFFIX off of NAME.
14950# PREFIX and SUFFIX must not contain globbing or regex special
14951# characters, hashes, percent signs, but SUFFIX may contain a leading
14952# dot (in which case that matches only a dot).
14953# func_strip_suffix prefix name
14954func_stripname ()
14955{
14956 case ${2} in
3725885a
RW
14957 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14958 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14959 esac
14960}
14961
14962# sed scripts:
14963my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14964my_sed_long_arg='1s/^-[^=]*=//'
14965
14966# func_opt_split
14967func_opt_split ()
14968{
3725885a
RW
14969 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14970 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14971}
14972
14973# func_lo2o object
14974func_lo2o ()
14975{
3725885a 14976 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14977}
1927a18f
L
14978
14979# func_xform libobj-or-source
14980func_xform ()
14981{
3725885a 14982 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1927a18f
L
14983}
14984
14985# func_arith arithmetic-term...
14986func_arith ()
14987{
14988 func_arith_result=`expr "$@"`
14989}
14990
14991# func_len string
14992# STRING may not start with a hyphen.
14993func_len ()
14994{
14995 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14996}
14997
d7040cdb
SE
14998_LT_EOF
14999esac
15000
15001case $lt_shell_append in
15002 yes)
15003 cat << \_LT_EOF >> "$cfgfile"
15004
15005# func_append var value
15006# Append VALUE to the end of shell variable VAR.
15007func_append ()
15008{
15009 eval "$1+=\$2"
15010}
15011_LT_EOF
15012 ;;
15013 *)
15014 cat << \_LT_EOF >> "$cfgfile"
15015
15016# func_append var value
15017# Append VALUE to the end of shell variable VAR.
15018func_append ()
15019{
15020 eval "$1=\$$1\$2"
15021}
1927a18f 15022
d7040cdb
SE
15023_LT_EOF
15024 ;;
15025 esac
15026
15027
15028 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15029 || (rm -f "$cfgfile"; exit 1)
15030
15031 mv -f "$cfgfile" "$ofile" ||
15032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15033 chmod +x "$ofile"
15034
8ae85421 15035 ;;
81ecdfbb 15036 "default-1":C)
20e95c23
DJ
15037 for ac_file in $CONFIG_FILES; do
15038 # Support "outfile[:infile[:infile...]]"
15039 case "$ac_file" in
15040 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15041 esac
15042 # PO directories have a Makefile.in generated from Makefile.in.in.
15043 case "$ac_file" in */Makefile.in)
15044 # Adjust a relative srcdir.
15045 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 15046 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
15047 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15048 # In autoconf-2.13 it is called $ac_given_srcdir.
15049 # In autoconf-2.50 it is called $srcdir.
15050 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15051 case "$ac_given_srcdir" in
15052 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15053 /*) top_srcdir="$ac_given_srcdir" ;;
15054 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15055 esac
15056 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15057 rm -f "$ac_dir/POTFILES"
15058 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15059 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15060 POMAKEFILEDEPS="POTFILES.in"
15061 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15062 # on $ac_dir but don't depend on user-specified configuration
15063 # parameters.
15064 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15065 # The LINGUAS file contains the set of available languages.
15066 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 15067 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
15068 fi
15069 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15070 # Hide the ALL_LINGUAS assigment from automake.
15071 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15072 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15073 else
37a42ee9 15074 # The set of available languages was given in configure.ac.
20e95c23
DJ
15075 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15076 fi
15077 case "$ac_given_srcdir" in
15078 .) srcdirpre= ;;
15079 *) srcdirpre='$(srcdir)/' ;;
15080 esac
15081 POFILES=
15082 GMOFILES=
15083 UPDATEPOFILES=
15084 DUMMYPOFILES=
15085 for lang in $ALL_LINGUAS; do
15086 POFILES="$POFILES $srcdirpre$lang.po"
15087 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15088 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15089 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15090 done
15091 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15092 # environment variable.
15093 INST_LINGUAS=
15094 if test -n "$ALL_LINGUAS"; then
15095 for presentlang in $ALL_LINGUAS; do
15096 useit=no
15097 if test "%UNSET%" != "$LINGUAS"; then
15098 desiredlanguages="$LINGUAS"
15099 else
15100 desiredlanguages="$ALL_LINGUAS"
15101 fi
15102 for desiredlang in $desiredlanguages; do
15103 # Use the presentlang catalog if desiredlang is
15104 # a. equal to presentlang, or
15105 # b. a variant of presentlang (because in this case,
15106 # presentlang can be used as a fallback for messages
15107 # which are not translated in the desiredlang catalog).
15108 case "$desiredlang" in
15109 "$presentlang"*) useit=yes;;
15110 esac
15111 done
15112 if test $useit = yes; then
15113 INST_LINGUAS="$INST_LINGUAS $presentlang"
15114 fi
15115 done
15116 fi
15117 CATALOGS=
15118 if test -n "$INST_LINGUAS"; then
15119 for lang in $INST_LINGUAS; do
15120 CATALOGS="$CATALOGS $lang.gmo"
15121 done
15122 fi
15123 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15124 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"
15125 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15126 if test -f "$f"; then
15127 case "$f" in
15128 *.orig | *.bak | *~) ;;
15129 *) cat "$f" >> "$ac_dir/Makefile" ;;
15130 esac
15131 fi
15132 done
15133 fi
15134 ;;
15135 esac
15136 done ;;
81ecdfbb 15137
979273e3 15138 esac
81ecdfbb 15139done # for ac_tag
979273e3 15140
979273e3 15141
81ecdfbb 15142as_fn_exit 0
979273e3 15143_ACEOF
979273e3
NN
15144ac_clean_files=$ac_clean_files_save
15145
81ecdfbb
RW
15146test $ac_write_fail = 0 ||
15147 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15148
979273e3
NN
15149
15150# configure is writing to config.log, and then calls config.status.
15151# config.status does its own redirection, appending to config.log.
15152# Unfortunately, on DOS this fails, as config.log is still kept open
15153# by configure, so config.status won't be able to write to it; its
15154# output is simply discarded. So we exec the FD to /dev/null,
15155# effectively closing config.log, so it can be properly (re)opened and
15156# appended to by config.status. When coming back to configure, we
15157# need to make the FD available again.
15158if test "$no_create" != yes; then
15159 ac_cs_success=:
15160 ac_config_status_args=
15161 test "$silent" = yes &&
15162 ac_config_status_args="$ac_config_status_args --quiet"
15163 exec 5>/dev/null
15164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15165 exec 5>>config.log
15166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15167 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15168 $ac_cs_success || as_fn_exit $?
15169fi
15170if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15172$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
979273e3 15173fi
252b5132 15174
This page took 1.680987 seconds and 4 git commands to generate.