]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/configure
*** empty log message ***
[thirdparty/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
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.
557PACKAGE_NAME=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
81ecdfbb 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
643NO_WERROR
644WARN_CFLAGS
645OTOOL64
646OTOOL
647LIPO
648NMEDIT
649DSYMUTIL
81ecdfbb
RW
650OBJDUMP
651LN_S
652NM
653ac_ct_DUMPBIN
654DUMPBIN
655LD
656FGREP
657SED
658LIBTOOL
659RANLIB
660AR
661EGREP
662GREP
663CPP
664am__fastdepCC_FALSE
665am__fastdepCC_TRUE
666CCDEPMODE
667AMDEPBACKSLASH
668AMDEP_FALSE
669AMDEP_TRUE
670am__quote
671am__include
672DEPDIR
673am__untar
674am__tar
675AMTAR
676am__leading_dot
677SET_MAKE
678AWK
679mkdir_p
680MKDIR_P
681INSTALL_STRIP_PROGRAM
682STRIP
683install_sh
684MAKEINFO
685AUTOHEADER
686AUTOMAKE
687AUTOCONF
688ACLOCAL
689VERSION
690PACKAGE
691CYGPATH_W
692am__isrc
693INSTALL_DATA
694INSTALL_SCRIPT
695INSTALL_PROGRAM
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703target_os
704target_vendor
705target_cpu
706target
707host_os
708host_vendor
709host_cpu
710host
711build_os
712build_vendor
713build_cpu
714build
715target_alias
716host_alias
717build_alias
718LIBS
719ECHO_T
720ECHO_N
721ECHO_C
722DEFS
723mandir
724localedir
725libdir
726psdir
727pdfdir
728dvidir
729htmldir
730infodir
731docdir
732oldincludedir
733includedir
734localstatedir
735sharedstatedir
736sysconfdir
737datadir
738datarootdir
739libexecdir
740sbindir
741bindir
742program_transform_name
743prefix
744exec_prefix
745PACKAGE_URL
746PACKAGE_BUGREPORT
747PACKAGE_STRING
748PACKAGE_VERSION
749PACKAGE_TARNAME
750PACKAGE_NAME
751PATH_SEPARATOR
752SHELL'
979273e3 753ac_subst_files=''
81ecdfbb
RW
754ac_user_opts='
755enable_option_checking
756enable_dependency_tracking
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762enable_libtool_lock
763enable_targets
764enable_werror
765enable_build_warnings
766enable_maintainer_mode
767enable_install_libbfd
768enable_nls
769enable_cgen_maint
770'
771 ac_precious_vars='build_alias
772host_alias
773target_alias
774CC
775CFLAGS
776LDFLAGS
777LIBS
778CPPFLAGS
779CPP'
780
252b5132
RH
781
782# Initialize some variables set by options.
979273e3
NN
783ac_init_help=
784ac_init_version=false
81ecdfbb
RW
785ac_unrecognized_opts=
786ac_unrecognized_sep=
252b5132
RH
787# The variables have the same names as the options, with
788# dashes changed to underlines.
979273e3 789cache_file=/dev/null
252b5132 790exec_prefix=NONE
252b5132 791no_create=
252b5132
RH
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
252b5132
RH
800verbose=
801x_includes=NONE
802x_libraries=NONE
979273e3
NN
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 809# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
252b5132
RH
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
252b5132
RH
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
81ecdfbb
RW
820docdir='${datarootdir}/doc/${PACKAGE}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
252b5132 829
252b5132 830ac_prev=
81ecdfbb 831ac_dashdash=
252b5132
RH
832for ac_option
833do
252b5132
RH
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
81ecdfbb 836 eval $ac_prev=\$ac_option
252b5132
RH
837 ac_prev=
838 continue
839 fi
840
81ecdfbb
RW
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
252b5132
RH
845
846 # Accept the important Cygnus configure options, so we can diagnose typos.
847
81ecdfbb
RW
848 case $ac_dashdash$ac_option in
849 --)
850 ac_dashdash=yes ;;
252b5132
RH
851
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979273e3 855 bindir=$ac_optarg ;;
252b5132
RH
856
857 -build | --build | --buil | --bui | --bu)
979273e3 858 ac_prev=build_alias ;;
252b5132 859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 860 build_alias=$ac_optarg ;;
252b5132
RH
861
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979273e3
NN
867 cache_file=$ac_optarg ;;
868
869 --config-cache | -C)
870 cache_file=config.cache ;;
252b5132 871
81ecdfbb 872 -datadir | --datadir | --datadi | --datad)
252b5132 873 ac_prev=datadir ;;
81ecdfbb 874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
979273e3 875 datadir=$ac_optarg ;;
252b5132 876
81ecdfbb
RW
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
883
252b5132 884 -disable-* | --disable-*)
81ecdfbb 885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 886 # Reject names that are not valid shell variable names.
81ecdfbb
RW
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
892 *"
893"enable_$ac_useropt"
894"*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
252b5132
RH
909
910 -enable-* | --enable-*)
81ecdfbb 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 912 # Reject names that are not valid shell variable names.
81ecdfbb
RW
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919"enable_$ac_useropt"
920"*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
252b5132 923 esac
81ecdfbb 924 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
925
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
979273e3 933 exec_prefix=$ac_optarg ;;
252b5132
RH
934
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
938
979273e3
NN
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
252b5132
RH
945
946 -host | --host | --hos | --ho)
979273e3 947 ac_prev=host_alias ;;
252b5132 948 -host=* | --host=* | --hos=* | --ho=*)
979273e3 949 host_alias=$ac_optarg ;;
252b5132 950
81ecdfbb
RW
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
956
252b5132
RH
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
979273e3 962 includedir=$ac_optarg ;;
252b5132
RH
963
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979273e3 967 infodir=$ac_optarg ;;
252b5132
RH
968
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 972 libdir=$ac_optarg ;;
252b5132
RH
973
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979273e3 979 libexecdir=$ac_optarg ;;
252b5132 980
81ecdfbb
RW
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
985
252b5132 986 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 987 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979273e3 991 localstatedir=$ac_optarg ;;
252b5132
RH
992
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979273e3 996 mandir=$ac_optarg ;;
252b5132
RH
997
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1001
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979273e3 1003 | --no-cr | --no-c | -n)
252b5132
RH
1004 no_create=yes ;;
1005
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1009
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
979273e3 1017 oldincludedir=$ac_optarg ;;
252b5132
RH
1018
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979273e3 1022 prefix=$ac_optarg ;;
252b5132
RH
1023
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
979273e3 1029 program_prefix=$ac_optarg ;;
252b5132
RH
1030
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
979273e3 1036 program_suffix=$ac_optarg ;;
252b5132
RH
1037
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
979273e3 1053 program_transform_name=$ac_optarg ;;
252b5132 1054
81ecdfbb
RW
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1059
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1064
252b5132
RH
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1068
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
979273e3 1073 sbindir=$ac_optarg ;;
252b5132
RH
1074
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
979273e3 1084 sharedstatedir=$ac_optarg ;;
252b5132
RH
1085
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
979273e3 1089 site=$ac_optarg ;;
1fe1f39c 1090
252b5132
RH
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 1094 srcdir=$ac_optarg ;;
252b5132
RH
1095
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979273e3 1101 sysconfdir=$ac_optarg ;;
252b5132
RH
1102
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 1104 ac_prev=target_alias ;;
252b5132 1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 1106 target_alias=$ac_optarg ;;
252b5132
RH
1107
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1110
979273e3
NN
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
252b5132
RH
1113
1114 -with-* | --with-*)
81ecdfbb 1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1116 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1122 *"
1123"with_$ac_useropt"
1124"*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
252b5132 1127 esac
81ecdfbb 1128 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1129
1130 -without-* | --without-*)
81ecdfbb 1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1132 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139"with_$ac_useropt"
1140"*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
252b5132
RH
1145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
979273e3 1155 x_includes=$ac_optarg ;;
252b5132
RH
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
979273e3 1162 x_libraries=$ac_optarg ;;
252b5132 1163
81ecdfbb
RW
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165Try \`$0 --help' for more information."
252b5132
RH
1166 ;;
1167
979273e3
NN
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
979273e3
NN
1176 export $ac_envvar ;;
1177
252b5132 1178 *)
979273e3 1179 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
979273e3 1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
979273e3 1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1184 ;;
1185
1186 esac
1187done
1188
1189if test -n "$ac_prev"; then
979273e3 1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1191 as_fn_error "missing argument to $ac_option"
252b5132 1192fi
252b5132 1193
81ecdfbb
RW
1194if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
979273e3 1199 esac
81ecdfbb 1200fi
252b5132 1201
81ecdfbb
RW
1202# Check all directory arguments for consistency.
1203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
252b5132 1207do
81ecdfbb
RW
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
979273e3 1216 case $ac_val in
81ecdfbb
RW
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1219 esac
81ecdfbb 1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1221done
1222
979273e3
NN
1223# There might be people who depend on the old broken behavior: `$host'
1224# used to hold the argument of --host etc.
1225# FIXME: To remove some day.
1226build=$build_alias
1227host=$host_alias
1228target=$target_alias
1229
1230# FIXME: To remove some day.
1231if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
81ecdfbb 1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
979273e3
NN
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1238 fi
1239fi
252b5132 1240
979273e3
NN
1241ac_tool_prefix=
1242test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
1244test "$silent" = yes && exec 6>/dev/null
252b5132 1245
252b5132 1246
81ecdfbb
RW
1247ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248ac_ls_di=`ls -di .` &&
1249ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1253
1254
252b5132
RH
1255# Find the source files, if location was not specified.
1256if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
81ecdfbb
RW
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264$as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\/\)$/{
1274 s//\1/
1275 q
1276 }
1277 /^X\(\/\).*/{
1278 s//\1/
1279 q
1280 }
1281 s/.*/./; q'`
252b5132 1282 srcdir=$ac_confdir
81ecdfbb 1283 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1284 srcdir=..
1285 fi
1286else
1287 ac_srcdir_defaulted=no
1288fi
81ecdfbb
RW
1289if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1292fi
1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
252b5132 1313
979273e3
NN
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321\`configure' configures this package to adapt to many kinds of systems.
252b5132 1322
979273e3 1323Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1324
979273e3
NN
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1327
979273e3 1328Defaults for the options are specified in brackets.
ac48eca1 1329
979273e3
NN
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
979273e3
NN
1341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1343 [$ac_default_prefix]
979273e3 1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1345 [PREFIX]
ac48eca1 1346
979273e3
NN
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
ac48eca1 1351
979273e3 1352For better control, use the options below.
ac48eca1 1353
979273e3 1354Fine tuning of the installation directories:
81ecdfbb
RW
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
979273e3 1374_ACEOF
ac48eca1 1375
979273e3 1376 cat <<\_ACEOF
252b5132 1377
979273e3
NN
1378Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1382
979273e3
NN
1383System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387_ACEOF
252b5132 1388fi
252b5132 1389
979273e3 1390if test -n "$ac_init_help"; then
252b5132 1391
979273e3 1392 cat <<\_ACEOF
252b5132 1393
979273e3 1394Optional Features:
81ecdfbb 1395 --disable-option-checking ignore unrecognized --enable/--with options
979273e3
NN
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
81ecdfbb
RW
1400 --enable-shared[=PKGS] build shared libraries [default=no]
1401 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
979273e3
NN
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-targets alternative target configurations
241a6c40
AM
1406 --enable-werror treat compile warnings as errors
1407 --enable-build-warnings enable build-time compiler warnings
8ae85421
AM
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
979273e3
NN
1410 --enable-install-libbfd controls installation of libbfd and related headers
1411 --disable-nls do not use Native Language Support
1412 --enable-cgen-maint=dir build cgen generated files
1413
1414Optional Packages:
1415 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1416 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1417 --with-pic try to use only PIC/non-PIC objects [default=use
1418 both]
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
252b5132 1420
979273e3
NN
1421Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
81ecdfbb
RW
1426 LIBS libraries to pass to the linker, e.g. -l<library>
1427 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1428 you have headers in a nonstandard directory <include dir>
979273e3 1429 CPP C preprocessor
a2d91340 1430
979273e3
NN
1431Use these variables to override the choices made by `configure' or to help
1432it to find libraries and programs with nonstandard names/locations.
1433
81ecdfbb 1434Report bugs to the package provider.
979273e3 1435_ACEOF
81ecdfbb 1436ac_status=$?
a2d91340
AC
1437fi
1438
979273e3
NN
1439if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
979273e3 1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
979273e3
NN
1445 ac_builddir=.
1446
81ecdfbb
RW
1447case "$ac_dir" in
1448.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449*)
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457esac
1458ac_abs_top_builddir=$ac_pwd
1459ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460# for backward compatibility:
1461ac_top_builddir=$ac_top_build_prefix
a2d91340 1462
979273e3 1463case $srcdir in
81ecdfbb 1464 .) # We are building in place.
979273e3 1465 ac_srcdir=.
81ecdfbb
RW
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 1469 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a2d91340 1476esac
81ecdfbb
RW
1477ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
979273e3 1487 else
81ecdfbb
RW
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
979273e3
NN
1491 done
1492fi
a2d91340 1493
81ecdfbb 1494test -n "$ac_init_help" && exit $ac_status
979273e3
NN
1495if $ac_init_version; then
1496 cat <<\_ACEOF
81ecdfbb
RW
1497configure
1498generated by GNU Autoconf 2.64
252b5132 1499
81ecdfbb 1500Copyright (C) 2009 Free Software Foundation, Inc.
979273e3
NN
1501This configure script is free software; the Free Software Foundation
1502gives unlimited permission to copy, distribute and modify it.
1503_ACEOF
81ecdfbb 1504 exit
979273e3 1505fi
2c73f9d8 1506
81ecdfbb
RW
1507## ------------------------ ##
1508## Autoconf initialization. ##
1509## ------------------------ ##
252b5132 1510
81ecdfbb
RW
1511# ac_fn_c_try_compile LINENO
1512# --------------------------
1513# Try to compile conftest.$ac_ext, and return whether this succeeded.
1514ac_fn_c_try_compile ()
1515{
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522esac
1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524$as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1531 fi
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538else
1539 $as_echo "$as_me: failed program was:" >&5
1540sed 's/^/| /' conftest.$ac_ext >&5
252b5132 1541
81ecdfbb
RW
1542 ac_retval=1
1543fi
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1546
1547} # ac_fn_c_try_compile
1548
1549# ac_fn_c_try_link LINENO
1550# -----------------------
1551# Try to link conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_link ()
979273e3 1553{
81ecdfbb
RW
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest$ac_exeext
1556 if { { ac_try="$ac_link"
1557case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562$as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest$ac_exeext && {
1575 test "$cross_compiling" = yes ||
1576 $as_test_x conftest$ac_exeext
1577 }; then :
1578 ac_retval=0
1579else
1580 $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
979273e3 1582
81ecdfbb
RW
1583 ac_retval=1
1584fi
1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587 # interfere with the next link command; also delete a directory that is
1588 # left behind by Apple's compiler. We do this before executing the actions.
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
979273e3 1592
81ecdfbb
RW
1593} # ac_fn_c_try_link
1594
1595# ac_fn_c_try_cpp LINENO
1596# ----------------------
1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_cpp ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } >/dev/null && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621else
1622 $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626fi
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 return $ac_retval
1629
1630} # ac_fn_c_try_cpp
1631
1632# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633# -------------------------------------------------------
1634# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635# the include files in INCLUDES and setting the cache variable VAR
1636# accordingly.
1637ac_fn_c_check_header_mongrel ()
1638{
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1645fi
1646eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648$as_echo "$ac_res" >&6; }
1649else
1650 # Is the header compilable?
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652$as_echo_n "checking $2 usability... " >&6; }
1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655$4
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1660else
1661 ac_header_compiler=no
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665$as_echo "$ac_header_compiler" >&6; }
1666
1667# Is the header present?
1668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669$as_echo_n "checking $2 presence... " >&6; }
1670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671/* end confdefs.h. */
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1676else
1677 ac_header_preproc=no
1678fi
1679rm -f conftest.err conftest.$ac_ext
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681$as_echo "$ac_header_preproc" >&6; }
1682
1683# So? What about this header?
1684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685 yes:no: )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691 no:yes:* )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708else
1709 eval "$3=\$ac_header_compiler"
1710fi
1711eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714fi
1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
1717} # ac_fn_c_check_header_mongrel
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists and can be compiled using the include files in
1764# INCLUDES, setting the cache variable VAR accordingly.
1765ac_fn_c_check_header_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1771 $as_echo_n "(cached) " >&6
1772else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780else
1781 eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_check_func LINENO FUNC VAR
1793# ----------------------------------
1794# Tests whether FUNC exists, setting the cache variable VAR accordingly
1795ac_fn_c_check_func ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1801 $as_echo_n "(cached) " >&6
1802else
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h. */
1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1807#define $2 innocuous_$2
1808
1809/* System header to define __stub macros and hopefully few prototypes,
1810 which can conflict with char $2 (); below.
1811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812 <limits.h> exists even on freestanding compilers. */
1813
1814#ifdef __STDC__
1815# include <limits.h>
1816#else
1817# include <assert.h>
1818#endif
1819
1820#undef $2
1821
1822/* Override any GCC internal prototype to avoid an error.
1823 Use char because int might match the return type of a GCC
1824 builtin and then its argument prototype would still apply. */
1825#ifdef __cplusplus
1826extern "C"
1827#endif
1828char $2 ();
1829/* The GNU C library defines this for functions which it implements
1830 to always fail with ENOSYS. Some functions are actually named
1831 something starting with __ and the normal name is an alias. */
1832#if defined __stub_$2 || defined __stub___$2
1833choke me
1834#endif
1835
1836int
1837main ()
1838{
1839return $2 ();
1840 ;
1841 return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_link "$LINENO"; then :
1845 eval "$3=yes"
1846else
1847 eval "$3=no"
1848fi
1849rm -f core conftest.err conftest.$ac_objext \
1850 conftest$ac_exeext conftest.$ac_ext
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857} # ac_fn_c_check_func
1858
1859# ac_fn_c_check_decl LINENO SYMBOL VAR
1860# ------------------------------------
1861# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1862ac_fn_c_check_decl ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1866$as_echo_n "checking whether $2 is declared... " >&6; }
1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876#ifndef $2
1877 (void) $2;
1878#endif
1879
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886else
1887 eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896} # ac_fn_c_check_decl
1897cat >config.log <<_ACEOF
1898This file contains any messages produced by compilers while
1899running configure, to aid debugging if configure makes a mistake.
1900
1901It was created by $as_me, which was
1902generated by GNU Autoconf 2.64. Invocation command line was
1903
1904 $ $0 $@
1905
1906_ACEOF
1907exec 5>>config.log
1908{
1909cat <<_ASUNAME
1910## --------- ##
1911## Platform. ##
1912## --------- ##
1913
1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979273e3
NN
1922
1923/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1926/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
979273e3
NN
1927/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930
1931_ASUNAME
1932
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1938 $as_echo "PATH: $as_dir"
1939 done
1940IFS=$as_save_IFS
252b5132 1941
979273e3 1942} >&5
75798298 1943
979273e3 1944cat >&5 <<_ACEOF
252b5132 1945
252b5132 1946
979273e3
NN
1947## ----------- ##
1948## Core tests. ##
1949## ----------- ##
1950
1951_ACEOF
1952
1953
1954# Keep a trace of the command line.
1955# Strip out --no-create and --no-recursion so they do not pile up.
1956# Strip out --silent because we don't want to record it for future runs.
1957# Also quote any args containing shell meta-characters.
1958# Make two passes to allow for proper duplicate-argument suppression.
1959ac_configure_args=
1960ac_configure_args0=
1961ac_configure_args1=
979273e3
NN
1962ac_must_keep_next=false
1963for ac_pass in 1 2
1964do
1965 for ac_arg
1966 do
1967 case $ac_arg in
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1971 continue ;;
81ecdfbb
RW
1972 *\'*)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
1974 esac
1975 case $ac_pass in
81ecdfbb 1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
979273e3 1977 2)
81ecdfbb 1978 as_fn_append ac_configure_args1 " '$ac_arg'"
979273e3
NN
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1981 else
1982 case $ac_arg in
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989 esac
1990 ;;
1991 -* ) ac_must_keep_next=true ;;
1992 esac
1993 fi
81ecdfbb 1994 as_fn_append ac_configure_args " '$ac_arg'"
979273e3
NN
1995 ;;
1996 esac
1997 done
1998done
81ecdfbb
RW
1999{ ac_configure_args0=; unset ac_configure_args0;}
2000{ ac_configure_args1=; unset ac_configure_args1;}
979273e3
NN
2001
2002# When interrupted or exit'd, cleanup temporary files, and complete
2003# config.log. We remove comments because anyway the quotes in there
2004# would cause problems or look ugly.
81ecdfbb
RW
2005# WARNING: Use '\'' to represent an apostrophe within the trap.
2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
979273e3
NN
2007trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2009 {
2010 echo
2011
2012 cat <<\_ASBOX
2013## ---------------- ##
2014## Cache variables. ##
2015## ---------------- ##
2016_ASBOX
2017 echo
2018 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2019(
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in #(
2023 *${as_nl}*)
2024 case $ac_var in #(
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027 esac
2028 case $ac_var in #(
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2032 esac ;;
2033 esac
2034 done
979273e3 2035 (set) 2>&1 |
81ecdfbb
RW
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
979273e3 2038 sed -n \
81ecdfbb
RW
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041 ;; #(
979273e3 2042 *)
81ecdfbb 2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 2044 ;;
81ecdfbb
RW
2045 esac |
2046 sort
2047)
979273e3
NN
2048 echo
2049
2050 cat <<\_ASBOX
2051## ----------------- ##
2052## Output variables. ##
2053## ----------------- ##
2054_ASBOX
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
81ecdfbb
RW
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 cat <<\_ASBOX
81ecdfbb
RW
2068## ------------------- ##
2069## File substitutions. ##
2070## ------------------- ##
979273e3
NN
2071_ASBOX
2072 echo
2073 for ac_var in $ac_subst_files
2074 do
81ecdfbb
RW
2075 eval ac_val=\$$ac_var
2076 case $ac_val in
2077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078 esac
2079 $as_echo "$ac_var='\''$ac_val'\''"
979273e3
NN
2080 done | sort
2081 echo
2082 fi
2083
2084 if test -s confdefs.h; then
2085 cat <<\_ASBOX
2086## ----------- ##
2087## confdefs.h. ##
2088## ----------- ##
2089_ASBOX
2090 echo
81ecdfbb 2091 cat confdefs.h
979273e3
NN
2092 echo
2093 fi
2094 test "$ac_signal" != 0 &&
81ecdfbb
RW
2095 $as_echo "$as_me: caught signal $ac_signal"
2096 $as_echo "$as_me: exit $exit_status"
979273e3 2097 } >&5
81ecdfbb
RW
2098 rm -f core *.core core.conftest.* &&
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
979273e3 2100 exit $exit_status
81ecdfbb 2101' 0
979273e3 2102for ac_signal in 1 2 13 15; do
81ecdfbb 2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
979273e3
NN
2104done
2105ac_signal=0
2106
2107# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2108rm -f -r conftest* confdefs.h
2109
2110$as_echo "/* confdefs.h */" > confdefs.h
979273e3
NN
2111
2112# Predefined preprocessor variables.
2113
2114cat >>confdefs.h <<_ACEOF
2115#define PACKAGE_NAME "$PACKAGE_NAME"
2116_ACEOF
2117
979273e3
NN
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2120_ACEOF
2121
979273e3
NN
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_VERSION "$PACKAGE_VERSION"
2124_ACEOF
2125
979273e3
NN
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_STRING "$PACKAGE_STRING"
2128_ACEOF
2129
979273e3
NN
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2132_ACEOF
2133
81ecdfbb
RW
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_URL "$PACKAGE_URL"
2136_ACEOF
2137
979273e3
NN
2138
2139# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2140# Prefer an explicitly selected file to automatically selected ones.
2141ac_site_file1=NONE
2142ac_site_file2=NONE
2143if test -n "$CONFIG_SITE"; then
2144 ac_site_file1=$CONFIG_SITE
2145elif test "x$prefix" != xNONE; then
2146 ac_site_file1=$prefix/share/config.site
2147 ac_site_file2=$prefix/etc/config.site
2148else
2149 ac_site_file1=$ac_default_prefix/share/config.site
2150 ac_site_file2=$ac_default_prefix/etc/config.site
2151fi
2152for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153do
2154 test "x$ac_site_file" = xNONE && continue
979273e3 2155 if test -r "$ac_site_file"; then
81ecdfbb
RW
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157$as_echo "$as_me: loading site script $ac_site_file" >&6;}
979273e3
NN
2158 sed 's/^/| /' "$ac_site_file" >&5
2159 . "$ac_site_file"
2160 fi
2161done
2162
2163if test -r "$cache_file"; then
2164 # Some versions of bash will fail to source /dev/null (special
2165 # files actually), so we avoid doing that.
2166 if test -f "$cache_file"; then
81ecdfbb
RW
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2168$as_echo "$as_me: loading cache $cache_file" >&6;}
979273e3 2169 case $cache_file in
81ecdfbb
RW
2170 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2171 *) . "./$cache_file";;
979273e3
NN
2172 esac
2173 fi
2174else
81ecdfbb
RW
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2176$as_echo "$as_me: creating cache $cache_file" >&6;}
979273e3
NN
2177 >$cache_file
2178fi
2179
2180# Check that the precious variables saved in the cache have kept the same
2181# value.
2182ac_cache_corrupted=false
81ecdfbb 2183for ac_var in $ac_precious_vars; do
979273e3
NN
2184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2185 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2186 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2187 eval ac_new_val=\$ac_env_${ac_var}_value
979273e3
NN
2188 case $ac_old_set,$ac_new_set in
2189 set,)
81ecdfbb
RW
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2191$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
979273e3
NN
2192 ac_cache_corrupted=: ;;
2193 ,set)
81ecdfbb
RW
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2195$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
979273e3
NN
2196 ac_cache_corrupted=: ;;
2197 ,);;
2198 *)
2199 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2200 # differences in whitespace do not lead to failure.
2201 ac_old_val_w=`echo x $ac_old_val`
2202 ac_new_val_w=`echo x $ac_new_val`
2203 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2205$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2206 ac_cache_corrupted=:
2207 else
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2209$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2210 eval $ac_var=\$ac_old_val
2211 fi
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2213$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2215$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
979273e3
NN
2216 fi;;
2217 esac
2218 # Pass precious variables to config.status.
2219 if test "$ac_new_set" = set; then
2220 case $ac_new_val in
81ecdfbb 2221 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
979273e3
NN
2222 *) ac_arg=$ac_var=$ac_new_val ;;
2223 esac
2224 case " $ac_configure_args " in
2225 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2226 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
979273e3
NN
2227 esac
2228 fi
2229done
2230if $ac_cache_corrupted; then
81ecdfbb
RW
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2234$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2235 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
979273e3 2236fi
81ecdfbb
RW
2237## -------------------- ##
2238## Main body of script. ##
2239## -------------------- ##
979273e3
NN
2240
2241ac_ext=c
2242ac_cpp='$CPP $CPPFLAGS'
2243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246
2247
2248
979273e3
NN
2249
2250
2251
2252
2253ac_aux_dir=
81ecdfbb
RW
2254for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255 for ac_t in install-sh install.sh shtool; do
2256 if test -f "$ac_dir/$ac_t"; then
2257 ac_aux_dir=$ac_dir
2258 ac_install_sh="$ac_aux_dir/$ac_t -c"
2259 break 2
2260 fi
2261 done
979273e3
NN
2262done
2263if test -z "$ac_aux_dir"; then
81ecdfbb 2264 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
979273e3 2265fi
81ecdfbb
RW
2266
2267# These three variables are undocumented and unsupported,
2268# and are intended to be withdrawn in a future Autoconf release.
2269# They can cause serious problems if a builder's source tree is in a directory
2270# whose full name contains unusual characters.
2271ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2272ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2273ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2274
979273e3
NN
2275
2276# Make sure we can run config.sub.
81ecdfbb
RW
2277$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2278 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2279
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2281$as_echo_n "checking build system type... " >&6; }
2282if test "${ac_cv_build+set}" = set; then :
2283 $as_echo_n "(cached) " >&6
2284else
2285 ac_build_alias=$build_alias
2286test "x$ac_build_alias" = x &&
2287 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2288test "x$ac_build_alias" = x &&
2289 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2290ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2292
2293fi
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2295$as_echo "$ac_cv_build" >&6; }
2296case $ac_cv_build in
2297*-*-*) ;;
2298*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2299esac
979273e3 2300build=$ac_cv_build
81ecdfbb
RW
2301ac_save_IFS=$IFS; IFS='-'
2302set x $ac_cv_build
2303shift
2304build_cpu=$1
2305build_vendor=$2
2306shift; shift
2307# Remember, the first character of IFS is used to create $*,
2308# except with old shells:
2309build_os=$*
2310IFS=$ac_save_IFS
2311case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2312
2313
81ecdfbb
RW
2314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2315$as_echo_n "checking host system type... " >&6; }
2316if test "${ac_cv_host+set}" = set; then :
2317 $as_echo_n "(cached) " >&6
979273e3 2318else
81ecdfbb
RW
2319 if test "x$host_alias" = x; then
2320 ac_cv_host=$ac_cv_build
2321else
2322 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2323 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2324fi
979273e3
NN
2325
2326fi
81ecdfbb
RW
2327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2328$as_echo "$ac_cv_host" >&6; }
2329case $ac_cv_host in
2330*-*-*) ;;
2331*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2332esac
979273e3 2333host=$ac_cv_host
81ecdfbb
RW
2334ac_save_IFS=$IFS; IFS='-'
2335set x $ac_cv_host
2336shift
2337host_cpu=$1
2338host_vendor=$2
2339shift; shift
2340# Remember, the first character of IFS is used to create $*,
2341# except with old shells:
2342host_os=$*
2343IFS=$ac_save_IFS
2344case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2345
2346
81ecdfbb
RW
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2348$as_echo_n "checking target system type... " >&6; }
2349if test "${ac_cv_target+set}" = set; then :
2350 $as_echo_n "(cached) " >&6
2351else
2352 if test "x$target_alias" = x; then
2353 ac_cv_target=$ac_cv_host
979273e3 2354else
81ecdfbb
RW
2355 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2356 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2357fi
979273e3
NN
2358
2359fi
81ecdfbb
RW
2360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2361$as_echo "$ac_cv_target" >&6; }
2362case $ac_cv_target in
2363*-*-*) ;;
2364*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2365esac
979273e3 2366target=$ac_cv_target
81ecdfbb
RW
2367ac_save_IFS=$IFS; IFS='-'
2368set x $ac_cv_target
2369shift
2370target_cpu=$1
2371target_vendor=$2
2372shift; shift
2373# Remember, the first character of IFS is used to create $*,
2374# except with old shells:
2375target_os=$*
2376IFS=$ac_save_IFS
2377case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
979273e3
NN
2378
2379
2380# The aliases save the names the user supplied, while $host etc.
2381# will get canonicalized.
2382test -n "$target_alias" &&
2383 test "$program_prefix$program_suffix$program_transform_name" = \
2384 NONENONEs,x,x, &&
2385 program_prefix=${target_alias}-
2386ac_ext=c
2387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395$as_echo_n "checking for $ac_word... " >&6; }
2396if test "${ac_cv_prog_CC+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
979273e3
NN
2398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2411 break 2
2412 fi
2413done
81ecdfbb
RW
2414 done
2415IFS=$as_save_IFS
979273e3
NN
2416
2417fi
2418fi
2419CC=$ac_cv_prog_CC
2420if test -n "$CC"; then
81ecdfbb
RW
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2422$as_echo "$CC" >&6; }
979273e3 2423else
81ecdfbb
RW
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425$as_echo "no" >&6; }
979273e3
NN
2426fi
2427
81ecdfbb 2428
979273e3
NN
2429fi
2430if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433set dummy gcc; ac_word=$2
81ecdfbb
RW
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435$as_echo_n "checking for $ac_word... " >&6; }
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2437 $as_echo_n "(cached) " >&6
979273e3
NN
2438else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2449 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2451 break 2
2452 fi
2453done
81ecdfbb
RW
2454 done
2455IFS=$as_save_IFS
979273e3
NN
2456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2462$as_echo "$ac_ct_CC" >&6; }
979273e3 2463else
81ecdfbb
RW
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465$as_echo "no" >&6; }
979273e3
NN
2466fi
2467
81ecdfbb
RW
2468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472yes:)
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475ac_tool_warned=yes ;;
2476esac
2477 CC=$ac_ct_CC
2478 fi
979273e3
NN
2479else
2480 CC="$ac_cv_prog_CC"
2481fi
2482
2483if test -z "$CC"; then
81ecdfbb
RW
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
979273e3 2486set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488$as_echo_n "checking for $ac_word... " >&6; }
2489if test "${ac_cv_prog_CC+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
979273e3
NN
2491else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494else
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2502 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2504 break 2
2505 fi
2506done
81ecdfbb
RW
2507 done
2508IFS=$as_save_IFS
979273e3
NN
2509
2510fi
2511fi
2512CC=$ac_cv_prog_CC
2513if test -n "$CC"; then
81ecdfbb
RW
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2515$as_echo "$CC" >&6; }
979273e3 2516else
81ecdfbb
RW
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518$as_echo "no" >&6; }
979273e3
NN
2519fi
2520
979273e3 2521
81ecdfbb 2522 fi
979273e3
NN
2523fi
2524if test -z "$CC"; then
2525 # Extract the first word of "cc", so it can be a program name with args.
2526set dummy cc; ac_word=$2
81ecdfbb
RW
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528$as_echo_n "checking for $ac_word... " >&6; }
2529if test "${ac_cv_prog_CC+set}" = set; then :
2530 $as_echo_n "(cached) " >&6
979273e3
NN
2531else
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2534else
2535 ac_prog_rejected=no
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3
NN
2543 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2544 ac_prog_rejected=yes
2545 continue
2546 fi
2547 ac_cv_prog_CC="cc"
81ecdfbb 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2549 break 2
2550 fi
2551done
81ecdfbb
RW
2552 done
2553IFS=$as_save_IFS
979273e3
NN
2554
2555if test $ac_prog_rejected = yes; then
2556 # We found a bogon in the path, so make sure we never use it.
2557 set dummy $ac_cv_prog_CC
2558 shift
2559 if test $# != 0; then
2560 # We chose a different compiler from the bogus one.
2561 # However, it has the same basename, so the bogon will be chosen
2562 # first if we set CC to just the basename; use the full file name.
2563 shift
2564 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2565 fi
2566fi
2567fi
2568fi
2569CC=$ac_cv_prog_CC
2570if test -n "$CC"; then
81ecdfbb
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2572$as_echo "$CC" >&6; }
979273e3 2573else
81ecdfbb
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575$as_echo "no" >&6; }
979273e3
NN
2576fi
2577
81ecdfbb 2578
979273e3
NN
2579fi
2580if test -z "$CC"; then
2581 if test -n "$ac_tool_prefix"; then
81ecdfbb 2582 for ac_prog in cl.exe
979273e3
NN
2583 do
2584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2585set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587$as_echo_n "checking for $ac_word... " >&6; }
2588if test "${ac_cv_prog_CC+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
979273e3
NN
2590else
2591 if test -n "$CC"; then
2592 ac_cv_prog_CC="$CC" # Let the user override the test.
2593else
2594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595for as_dir in $PATH
2596do
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2601 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2603 break 2
2604 fi
2605done
81ecdfbb
RW
2606 done
2607IFS=$as_save_IFS
979273e3
NN
2608
2609fi
2610fi
2611CC=$ac_cv_prog_CC
2612if test -n "$CC"; then
81ecdfbb
RW
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2614$as_echo "$CC" >&6; }
979273e3 2615else
81ecdfbb
RW
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
979273e3
NN
2618fi
2619
81ecdfbb 2620
979273e3
NN
2621 test -n "$CC" && break
2622 done
2623fi
2624if test -z "$CC"; then
2625 ac_ct_CC=$CC
81ecdfbb 2626 for ac_prog in cl.exe
979273e3
NN
2627do
2628 # Extract the first word of "$ac_prog", so it can be a program name with args.
2629set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
979273e3
NN
2634else
2635 if test -n "$ac_ct_CC"; then
2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
979273e3 2645 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
2647 break 2
2648 fi
2649done
81ecdfbb
RW
2650 done
2651IFS=$as_save_IFS
2652
979273e3
NN
2653fi
2654fi
2655ac_ct_CC=$ac_cv_prog_ac_ct_CC
2656if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2658$as_echo "$ac_ct_CC" >&6; }
979273e3 2659else
81ecdfbb
RW
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
979273e3
NN
2662fi
2663
81ecdfbb 2664
979273e3
NN
2665 test -n "$ac_ct_CC" && break
2666done
2667
81ecdfbb
RW
2668 if test "x$ac_ct_CC" = x; then
2669 CC=""
2670 else
2671 case $cross_compiling:$ac_tool_warned in
2672yes:)
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2675ac_tool_warned=yes ;;
2676esac
2677 CC=$ac_ct_CC
2678 fi
979273e3
NN
2679fi
2680
2681fi
2682
2683
81ecdfbb
RW
2684test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686as_fn_error "no acceptable C compiler found in \$PATH
2687See \`config.log' for more details." "$LINENO" 5; }
979273e3
NN
2688
2689# Provide some information about the compiler.
81ecdfbb
RW
2690$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2691set X $ac_compile
2692ac_compiler=$2
2693for ac_option in --version -v -V -qversion; do
2694 { { ac_try="$ac_compiler $ac_option >&5"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2700$as_echo "$ac_try_echo"; } >&5
2701 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
979273e3 2702 ac_status=$?
81ecdfbb
RW
2703 if test -s conftest.err; then
2704 sed '10a\
2705... rest of stderr output deleted ...
2706 10q' conftest.err >conftest.er1
2707 cat conftest.er1 >&5
2708 rm -f conftest.er1 conftest.err
2709 fi
2710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711 test $ac_status = 0; }
2712done
979273e3 2713
81ecdfbb 2714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2715/* end confdefs.h. */
2716
2717int
2718main ()
2719{
2720
2721 ;
2722 return 0;
2723}
2724_ACEOF
2725ac_clean_files_save=$ac_clean_files
81ecdfbb 2726ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
979273e3
NN
2727# Try to create an executable without -o first, disregard a.out.
2728# It will help us diagnose broken compilers, and finding out an intuition
2729# of exeext.
81ecdfbb
RW
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2731$as_echo_n "checking for C compiler default output file name... " >&6; }
2732ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2733
2734# The possible output files:
2735ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2736
2737ac_rmfiles=
2738for ac_file in $ac_files
2739do
2740 case $ac_file in
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743 esac
2744done
2745rm -f $ac_rmfiles
2746
2747if { { ac_try="$ac_link_default"
2748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
2752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753$as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_link_default") 2>&5
2755 ac_status=$?
2756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757 test $ac_status = 0; }; then :
2758 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2759# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2760# in a Makefile. We should not override ac_cv_exeext if it was cached,
2761# so that the user can short-circuit this test for compilers unknown to
2762# Autoconf.
2763for ac_file in $ac_files ''
979273e3
NN
2764do
2765 test -f "$ac_file" || continue
2766 case $ac_file in
81ecdfbb 2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
979273e3
NN
2768 ;;
2769 [ab].out )
2770 # We found the default executable, but exeext='' is most
2771 # certainly right.
2772 break;;
2773 *.* )
81ecdfbb
RW
2774 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2775 then :; else
2776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2777 fi
2778 # We set ac_cv_exeext here because the later test for it is not
2779 # safe: cross compilers may not add the suffix if given an `-o'
2780 # argument, so we may need to know it at that point already.
2781 # Even if this section looks crufty: it has the advantage of
2782 # actually working.
979273e3
NN
2783 break;;
2784 * )
2785 break;;
2786 esac
2787done
81ecdfbb
RW
2788test "$ac_cv_exeext" = no && ac_cv_exeext=
2789
979273e3 2790else
81ecdfbb
RW
2791 ac_file=''
2792fi
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2794$as_echo "$ac_file" >&6; }
2795if test -z "$ac_file"; then :
2796 $as_echo "$as_me: failed program was:" >&5
979273e3
NN
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
81ecdfbb
RW
2799{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801{ as_fn_set_status 77
2802as_fn_error "C compiler cannot create executables
2803See \`config.log' for more details." "$LINENO" 5; }; }
979273e3 2804fi
979273e3 2805ac_exeext=$ac_cv_exeext
979273e3 2806
81ecdfbb 2807# Check that the compiler produces executables we can run. If not, either
979273e3 2808# the compiler is broken, or we cross compile.
81ecdfbb
RW
2809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2810$as_echo_n "checking whether the C compiler works... " >&6; }
979273e3
NN
2811# If not cross compiling, check that we can run a simple program.
2812if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
81ecdfbb
RW
2814 { { case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817esac
2818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2819$as_echo "$ac_try_echo"; } >&5
2820 (eval "$ac_try") 2>&5
979273e3 2821 ac_status=$?
81ecdfbb
RW
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }; }; then
979273e3
NN
2824 cross_compiling=no
2825 else
2826 if test "$cross_compiling" = maybe; then
2827 cross_compiling=yes
2828 else
81ecdfbb
RW
2829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831as_fn_error "cannot run C compiled programs.
979273e3 2832If you meant to cross compile, use \`--host'.
81ecdfbb 2833See \`config.log' for more details." "$LINENO" 5; }
979273e3
NN
2834 fi
2835 fi
2836fi
81ecdfbb
RW
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838$as_echo "yes" >&6; }
979273e3 2839
81ecdfbb 2840rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
979273e3 2841ac_clean_files=$ac_clean_files_save
81ecdfbb 2842# Check that the compiler produces executables we can run. If not, either
979273e3 2843# the compiler is broken, or we cross compile.
81ecdfbb
RW
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2845$as_echo_n "checking whether we are cross compiling... " >&6; }
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2847$as_echo "$cross_compiling" >&6; }
2848
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2850$as_echo_n "checking for suffix of executables... " >&6; }
2851if { { ac_try="$ac_link"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2857$as_echo "$ac_try_echo"; } >&5
2858 (eval "$ac_link") 2>&5
979273e3 2859 ac_status=$?
81ecdfbb
RW
2860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2861 test $ac_status = 0; }; then :
979273e3
NN
2862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2864# work properly (i.e., refer to `conftest.exe'), while it won't with
2865# `rm'.
2866for ac_file in conftest.exe conftest conftest.*; do
2867 test -f "$ac_file" || continue
2868 case $ac_file in
81ecdfbb 2869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
979273e3 2870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
979273e3
NN
2871 break;;
2872 * ) break;;
2873 esac
2874done
2875else
81ecdfbb
RW
2876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878as_fn_error "cannot compute suffix of executables: cannot compile and link
2879See \`config.log' for more details." "$LINENO" 5; }
979273e3 2880fi
979273e3 2881rm -f conftest$ac_cv_exeext
81ecdfbb
RW
2882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2883$as_echo "$ac_cv_exeext" >&6; }
979273e3
NN
2884
2885rm -f conftest.$ac_ext
2886EXEEXT=$ac_cv_exeext
2887ac_exeext=$EXEEXT
81ecdfbb
RW
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2889$as_echo_n "checking for suffix of object files... " >&6; }
2890if test "${ac_cv_objext+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
979273e3 2892else
81ecdfbb 2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2894/* end confdefs.h. */
2895
2896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.o conftest.obj
81ecdfbb
RW
2905if { { ac_try="$ac_compile"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911$as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_compile") 2>&5
2913 ac_status=$?
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }; then :
2916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
979273e3 2918 case $ac_file in
81ecdfbb 2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
979273e3
NN
2920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 break;;
2922 esac
2923done
2924else
81ecdfbb 2925 $as_echo "$as_me: failed program was:" >&5
979273e3
NN
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
81ecdfbb
RW
2928{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930as_fn_error "cannot compute suffix of object files: cannot compile
2931See \`config.log' for more details." "$LINENO" 5; }
979273e3 2932fi
979273e3
NN
2933rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934fi
81ecdfbb
RW
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2936$as_echo "$ac_cv_objext" >&6; }
979273e3
NN
2937OBJEXT=$ac_cv_objext
2938ac_objext=$OBJEXT
81ecdfbb
RW
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2940$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2941if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
979273e3 2943else
81ecdfbb 2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2945/* end confdefs.h. */
2946
2947int
2948main ()
2949{
2950#ifndef __GNUC__
2951 choke me
2952#endif
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
81ecdfbb 2958if ac_fn_c_try_compile "$LINENO"; then :
979273e3
NN
2959 ac_compiler_gnu=yes
2960else
81ecdfbb 2961 ac_compiler_gnu=no
979273e3 2962fi
81ecdfbb 2963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
979273e3
NN
2964ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965
2966fi
81ecdfbb
RW
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2968$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2969if test $ac_compiler_gnu = yes; then
2970 GCC=yes
2971else
2972 GCC=
2973fi
979273e3
NN
2974ac_test_CFLAGS=${CFLAGS+set}
2975ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2977$as_echo_n "checking whether $CC accepts -g... " >&6; }
2978if test "${ac_cv_prog_cc_g+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980else
2981 ac_save_c_werror_flag=$ac_c_werror_flag
2982 ac_c_werror_flag=yes
2983 ac_cv_prog_cc_g=no
2984 CFLAGS="-g"
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
2986/* end confdefs.h. */
2987
2988int
2989main ()
2990{
2991
2992 ;
2993 return 0;
2994}
2995_ACEOF
81ecdfbb 2996if ac_fn_c_try_compile "$LINENO"; then :
979273e3
NN
2997 ac_cv_prog_cc_g=yes
2998else
81ecdfbb
RW
2999 CFLAGS=""
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */
3002
3003int
3004main ()
3005{
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011if ac_fn_c_try_compile "$LINENO"; then :
3012
3013else
3014 ac_c_werror_flag=$ac_save_c_werror_flag
3015 CFLAGS="-g"
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017/* end confdefs.h. */
979273e3 3018
81ecdfbb
RW
3019int
3020main ()
3021{
3022
3023 ;
3024 return 0;
3025}
3026_ACEOF
3027if ac_fn_c_try_compile "$LINENO"; then :
3028 ac_cv_prog_cc_g=yes
979273e3 3029fi
81ecdfbb 3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
979273e3 3031fi
81ecdfbb
RW
3032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3033fi
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035 ac_c_werror_flag=$ac_save_c_werror_flag
3036fi
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3038$as_echo "$ac_cv_prog_cc_g" >&6; }
979273e3
NN
3039if test "$ac_test_CFLAGS" = set; then
3040 CFLAGS=$ac_save_CFLAGS
3041elif test $ac_cv_prog_cc_g = yes; then
3042 if test "$GCC" = yes; then
3043 CFLAGS="-g -O2"
3044 else
3045 CFLAGS="-g"
3046 fi
3047else
3048 if test "$GCC" = yes; then
3049 CFLAGS="-O2"
3050 else
3051 CFLAGS=
3052 fi
3053fi
81ecdfbb
RW
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3055$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3056if test "${ac_cv_prog_cc_c89+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
979273e3 3058else
81ecdfbb 3059 ac_cv_prog_cc_c89=no
979273e3 3060ac_save_CC=$CC
81ecdfbb 3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3062/* end confdefs.h. */
3063#include <stdarg.h>
3064#include <stdio.h>
3065#include <sys/types.h>
3066#include <sys/stat.h>
3067/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3068struct buf { int x; };
3069FILE * (*rcsopen) (struct buf *, struct stat *, int);
3070static char *e (p, i)
3071 char **p;
3072 int i;
3073{
3074 return p[i];
3075}
3076static char *f (char * (*g) (char **, int), char **p, ...)
3077{
3078 char *s;
3079 va_list v;
3080 va_start (v,p);
3081 s = g (p, va_arg (v,int));
3082 va_end (v);
3083 return s;
3084}
3085
3086/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3087 function prototypes and stuff, but not '\xHH' hex character constants.
3088 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3089 as 'x'. The following induces an error, until -std is added to get
979273e3
NN
3090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3091 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3092 that's true only with -std. */
979273e3
NN
3093int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3094
81ecdfbb
RW
3095/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3096 inside strings and character constants. */
3097#define FOO(x) 'x'
3098int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3099
979273e3
NN
3100int test (int i, double x);
3101struct s1 {int (*f) (int a);};
3102struct s2 {int (*f) (double a);};
3103int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3104int argc;
3105char **argv;
3106int
3107main ()
3108{
3109return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3110 ;
3111 return 0;
3112}
3113_ACEOF
81ecdfbb
RW
3114for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
979273e3
NN
3116do
3117 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3118 if ac_fn_c_try_compile "$LINENO"; then :
3119 ac_cv_prog_cc_c89=$ac_arg
979273e3 3120fi
81ecdfbb
RW
3121rm -f core conftest.err conftest.$ac_objext
3122 test "x$ac_cv_prog_cc_c89" != "xno" && break
979273e3 3123done
81ecdfbb 3124rm -f conftest.$ac_ext
979273e3
NN
3125CC=$ac_save_CC
3126
3127fi
81ecdfbb
RW
3128# AC_CACHE_VAL
3129case "x$ac_cv_prog_cc_c89" in
3130 x)
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3132$as_echo "none needed" >&6; } ;;
3133 xno)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3135$as_echo "unsupported" >&6; } ;;
979273e3 3136 *)
81ecdfbb
RW
3137 CC="$CC $ac_cv_prog_cc_c89"
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3139$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
979273e3 3140esac
81ecdfbb 3141if test "x$ac_cv_prog_cc_c89" != xno; then :
979273e3 3142
979273e3
NN
3143fi
3144
979273e3
NN
3145ac_ext=c
3146ac_cpp='$CPP $CPPFLAGS'
3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_c_compiler_gnu
3150
3151
81ecdfbb
RW
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3153$as_echo_n "checking for library containing strerror... " >&6; }
3154if test "${ac_cv_search_strerror+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
979273e3 3156else
8ae85421 3157 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
979273e3
NN
3159/* end confdefs.h. */
3160
81ecdfbb
RW
3161/* Override any GCC internal prototype to avoid an error.
3162 Use char because int might match the return type of a GCC
3163 builtin and then its argument prototype would still apply. */
979273e3
NN
3164#ifdef __cplusplus
3165extern "C"
3166#endif
979273e3
NN
3167char strerror ();
3168int
3169main ()
3170{
81ecdfbb 3171return strerror ();
979273e3
NN
3172 ;
3173 return 0;
3174}
3175_ACEOF
81ecdfbb
RW
3176for ac_lib in '' cposix; do
3177 if test -z "$ac_lib"; then
3178 ac_res="none required"
3179 else
3180 ac_res=-l$ac_lib
8ae85421 3181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3182 fi
3183 if ac_fn_c_try_link "$LINENO"; then :
3184 ac_cv_search_strerror=$ac_res
3185fi
3186rm -f core conftest.err conftest.$ac_objext \
3187 conftest$ac_exeext
3188 if test "${ac_cv_search_strerror+set}" = set; then :
3189 break
3190fi
3191done
3192if test "${ac_cv_search_strerror+set}" = set; then :
8ae85421 3193
8ae85421 3194else
81ecdfbb 3195 ac_cv_search_strerror=no
979273e3 3196fi
81ecdfbb 3197rm conftest.$ac_ext
8ae85421
AM
3198LIBS=$ac_func_search_save_LIBS
3199fi
81ecdfbb
RW
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3201$as_echo "$ac_cv_search_strerror" >&6; }
3202ac_res=$ac_cv_search_strerror
3203if test "$ac_res" != no; then :
3204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
979273e3 3205
8ae85421 3206fi
979273e3
NN
3207
3208
3209# We currently only use the version number for the name of any shared
3210# library. For user convenience, we always use the same version
3211# number that BFD is using.
3212BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3213
81ecdfbb
RW
3214am__api_version='1.11'
3215
979273e3
NN
3216# Find a good install program. We prefer a C program (faster),
3217# so one script is as good as another. But avoid the broken or
3218# incompatible versions:
3219# SysV /etc/install, /usr/sbin/install
3220# SunOS /usr/etc/install
3221# IRIX /sbin/install
3222# AIX /bin/install
3223# AmigaOS /C/install, which installs bootblocks on floppy discs
3224# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3225# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 3226# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 3227# OS/2's system install, which has a completely different semantic
252b5132 3228# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3229# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3231$as_echo_n "checking for a BSD-compatible install... " >&6; }
252b5132 3232if test -z "$INSTALL"; then
81ecdfbb
RW
3233if test "${ac_cv_path_install+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
252b5132 3235else
979273e3
NN
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3241 # Account for people who put trailing slashes in PATH elements.
3242case $as_dir/ in #((
3243 ./ | .// | /[cC]/* | \
979273e3 3244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3245 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
979273e3
NN
3246 /usr/ucb/* ) ;;
3247 *)
3248 # OSF1 and SCO ODT 3.0 have their own names for install.
3249 # Don't use installbsd from OSF since it installs stuff as root
3250 # by default.
3251 for ac_prog in ginstall scoinst install; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3253 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3254 if test $ac_prog = install &&
979273e3 3255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3256 # AIX install. It has an incompatible calling convention.
3257 :
979273e3
NN
3258 elif test $ac_prog = install &&
3259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3260 # program-specific install script used by HP pwplus--don't use.
3261 :
252b5132 3262 else
58c85be7
RW
3263 rm -rf conftest.one conftest.two conftest.dir
3264 echo one > conftest.one
3265 echo two > conftest.two
3266 mkdir conftest.dir
3267 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3268 test -s conftest.one && test -s conftest.two &&
3269 test -s conftest.dir/conftest.one &&
3270 test -s conftest.dir/conftest.two
3271 then
3272 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3273 break 3
3274 fi
252b5132
RH
3275 fi
3276 fi
3277 done
979273e3
NN
3278 done
3279 ;;
3280esac
81ecdfbb
RW
3281
3282 done
3283IFS=$as_save_IFS
979273e3 3284
58c85be7 3285rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3286
3287fi
3288 if test "${ac_cv_path_install+set}" = set; then
979273e3 3289 INSTALL=$ac_cv_path_install
252b5132 3290 else
58c85be7
RW
3291 # As a last resort, use the slow shell script. Don't cache a
3292 # value for INSTALL within a source directory, because that will
252b5132 3293 # break other packages using the cache if that directory is
58c85be7 3294 # removed, or if the value is a relative name.
979273e3 3295 INSTALL=$ac_install_sh
252b5132
RH
3296 fi
3297fi
81ecdfbb
RW
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3299$as_echo "$INSTALL" >&6; }
252b5132
RH
3300
3301# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3302# It thinks the first close brace ends the variable substitution.
3303test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3304
979273e3 3305test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3306
3307test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3308
81ecdfbb
RW
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3310$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3311# Just in case
3312sleep 1
8ae85421 3313echo timestamp > conftest.file
81ecdfbb
RW
3314# Reject unsafe characters in $srcdir or the absolute working directory
3315# name. Accept space and tab only in the latter.
3316am_lf='
3317'
3318case `pwd` in
3319 *[\\\"\#\$\&\'\`$am_lf]*)
3320 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3321esac
3322case $srcdir in
3323 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3324 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3325esac
3326
252b5132
RH
3327# Do `set' in a subshell so we don't clobber the current shell's
3328# arguments. Must try -L first in case configure is actually a
3329# symlink; some systems play weird games with the mod time of symlinks
3330# (eg FreeBSD returns the mod time of the symlink's containing
3331# directory).
3332if (
81ecdfbb 3333 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3334 if test "$*" = "X"; then
3335 # -L didn't work.
81ecdfbb 3336 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3337 fi
8ae85421
AM
3338 rm -f conftest.file
3339 if test "$*" != "X $srcdir/configure conftest.file" \
3340 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3341
3342 # If neither matched, then we have a broken ls. This can happen
3343 # if, for instance, CONFIG_SHELL is bash and it inherits a
3344 # broken ls alias from the environment. This has actually
3345 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3346 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3347alias in your environment" "$LINENO" 5
252b5132
RH
3348 fi
3349
8ae85421 3350 test "$2" = conftest.file
252b5132
RH
3351 )
3352then
3353 # Ok.
3354 :
3355else
81ecdfbb
RW
3356 as_fn_error "newly created file is older than distributed files!
3357Check your system clock" "$LINENO" 5
252b5132 3358fi
81ecdfbb
RW
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
252b5132 3361test "$program_prefix" != NONE &&
81ecdfbb 3362 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3363# Use a double $ so make ignores it.
3364test "$program_suffix" != NONE &&
81ecdfbb
RW
3365 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3366# Double any \ or $.
979273e3 3367# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3368ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3369program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
979273e3 3370
8ae85421
AM
3371# expand $ac_aux_dir to an absolute path
3372am_aux_dir=`cd $ac_aux_dir && pwd`
3373
81ecdfbb
RW
3374if test x"${MISSING+set}" != xset; then
3375 case $am_aux_dir in
3376 *\ * | *\ *)
3377 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3378 *)
3379 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3380 esac
3381fi
8ae85421
AM
3382# Use eval to expand $SHELL
3383if eval "$MISSING --run true"; then
3384 am_missing_run="$MISSING --run "
3385else
3386 am_missing_run=
81ecdfbb
RW
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3388$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3389fi
3390
3391if test x"${install_sh}" != xset; then
3392 case $am_aux_dir in
3393 *\ * | *\ *)
3394 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3395 *)
3396 install_sh="\${SHELL} $am_aux_dir/install-sh"
3397 esac
3398fi
3399
3400# Installed binaries are usually stripped using `strip' when the user
3401# run `make install-strip'. However `strip' might not be the right
3402# tool to use in cross-compilation environments, therefore Automake
3403# will honor the `STRIP' environment variable to overrule this program.
3404if test "$cross_compiling" != no; then
3405 if test -n "$ac_tool_prefix"; then
3406 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3407set dummy ${ac_tool_prefix}strip; ac_word=$2
3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409$as_echo_n "checking for $ac_word... " >&6; }
3410if test "${ac_cv_prog_STRIP+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412else
3413 if test -n "$STRIP"; then
3414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3415else
3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417for as_dir in $PATH
3418do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427done
3428 done
3429IFS=$as_save_IFS
3430
3431fi
3432fi
3433STRIP=$ac_cv_prog_STRIP
3434if test -n "$STRIP"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3436$as_echo "$STRIP" >&6; }
3437else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439$as_echo "no" >&6; }
3440fi
3441
3442
3443fi
3444if test -z "$ac_cv_prog_STRIP"; then
3445 ac_ct_STRIP=$STRIP
3446 # Extract the first word of "strip", so it can be a program name with args.
3447set dummy strip; ac_word=$2
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449$as_echo_n "checking for $ac_word... " >&6; }
3450if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452else
3453 if test -n "$ac_ct_STRIP"; then
3454 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3455else
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_ac_ct_STRIP="strip"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3466 fi
3467done
8ae85421 3468 done
81ecdfbb
RW
3469IFS=$as_save_IFS
3470
3471fi
3472fi
3473ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3474if test -n "$ac_ct_STRIP"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3476$as_echo "$ac_ct_STRIP" >&6; }
3477else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479$as_echo "no" >&6; }
3480fi
3481
3482 if test "x$ac_ct_STRIP" = x; then
3483 STRIP=":"
3484 else
3485 case $cross_compiling:$ac_tool_warned in
3486yes:)
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489ac_tool_warned=yes ;;
3490esac
3491 STRIP=$ac_ct_STRIP
3492 fi
3493else
3494 STRIP="$ac_cv_prog_STRIP"
3495fi
3496
3497fi
3498INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3499
3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3501$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3502if test -z "$MKDIR_P"; then
3503 if test "${ac_cv_path_mkdir+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_prog in mkdir gmkdir; do
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3514 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3515 'mkdir (GNU coreutils) '* | \
3516 'mkdir (coreutils) '* | \
3517 'mkdir (fileutils) '4.1*)
3518 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3519 break 3;;
3520 esac
3521 done
3522 done
3523 done
3524IFS=$as_save_IFS
3525
3526fi
3527
3528 if test "${ac_cv_path_mkdir+set}" = set; then
3529 MKDIR_P="$ac_cv_path_mkdir -p"
8ae85421 3530 else
81ecdfbb
RW
3531 # As a last resort, use the slow shell script. Don't cache a
3532 # value for MKDIR_P within a source directory, because that will
3533 # break other packages using the cache if that directory is
3534 # removed, or if the value is a relative name.
3535 test -d ./--version && rmdir ./--version
3536 MKDIR_P="$ac_install_sh -d"
8ae85421
AM
3537 fi
3538fi
81ecdfbb
RW
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3540$as_echo "$MKDIR_P" >&6; }
3541
3542mkdir_p="$MKDIR_P"
3543case $mkdir_p in
3544 [\\/$]* | ?:[\\/]*) ;;
3545 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3546esac
8ae85421
AM
3547
3548for ac_prog in gawk mawk nawk awk
3549do
3550 # Extract the first word of "$ac_prog", so it can be a program name with args.
3551set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553$as_echo_n "checking for $ac_word... " >&6; }
3554if test "${ac_cv_prog_AWK+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
8ae85421
AM
3556else
3557 if test -n "$AWK"; then
3558 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3559else
3560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561for as_dir in $PATH
3562do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8ae85421 3567 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8ae85421
AM
3569 break 2
3570 fi
3571done
81ecdfbb
RW
3572 done
3573IFS=$as_save_IFS
8ae85421
AM
3574
3575fi
3576fi
3577AWK=$ac_cv_prog_AWK
3578if test -n "$AWK"; then
81ecdfbb
RW
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3580$as_echo "$AWK" >&6; }
8ae85421 3581else
81ecdfbb
RW
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583$as_echo "no" >&6; }
8ae85421
AM
3584fi
3585
81ecdfbb 3586
8ae85421
AM
3587 test -n "$AWK" && break
3588done
3589
81ecdfbb
RW
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3591$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3592set x ${MAKE-make}
3593ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3594if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3595 $as_echo_n "(cached) " >&6
979273e3
NN
3596else
3597 cat >conftest.make <<\_ACEOF
81ecdfbb 3598SHELL = /bin/sh
252b5132 3599all:
81ecdfbb 3600 @echo '@@@%%%=$(MAKE)=@@@%%%'
979273e3 3601_ACEOF
252b5132 3602# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3603case `${MAKE-make} -f conftest.make 2>/dev/null` in
3604 *@@@%%%=?*=@@@%%%*)
3605 eval ac_cv_prog_make_${ac_make}_set=yes;;
3606 *)
3607 eval ac_cv_prog_make_${ac_make}_set=no;;
3608esac
979273e3 3609rm -f conftest.make
252b5132 3610fi
81ecdfbb
RW
3611if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3613$as_echo "yes" >&6; }
252b5132
RH
3614 SET_MAKE=
3615else
81ecdfbb
RW
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
252b5132
RH
3618 SET_MAKE="MAKE=${MAKE-make}"
3619fi
3620
8ae85421
AM
3621rm -rf .tst 2>/dev/null
3622mkdir .tst 2>/dev/null
3623if test -d .tst; then
3624 am__leading_dot=.
3625else
3626 am__leading_dot=_
3627fi
3628rmdir .tst 2>/dev/null
3629
3630DEPDIR="${am__leading_dot}deps"
3631
81ecdfbb 3632ac_config_commands="$ac_config_commands depfiles"
8ae85421
AM
3633
3634
3635am_make=${MAKE-make}
3636cat > confinc << 'END'
3637am__doit:
81ecdfbb 3638 @echo this is the am__doit target
8ae85421
AM
3639.PHONY: am__doit
3640END
3641# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3643$as_echo_n "checking for style of include used by $am_make... " >&6; }
8ae85421
AM
3644am__include="#"
3645am__quote=
3646_am_result=none
3647# First try GNU make style include.
3648echo "include confinc" > confmf
81ecdfbb
RW
3649# Ignore all kinds of additional output from `make'.
3650case `$am_make -s -f confmf 2> /dev/null` in #(
3651*the\ am__doit\ target*)
3652 am__include=include
3653 am__quote=
3654 _am_result=GNU
3655 ;;
3656esac
8ae85421
AM
3657# Now try BSD make style include.
3658if test "$am__include" = "#"; then
3659 echo '.include "confinc"' > confmf
81ecdfbb
RW
3660 case `$am_make -s -f confmf 2> /dev/null` in #(
3661 *the\ am__doit\ target*)
3662 am__include=.include
3663 am__quote="\""
3664 _am_result=BSD
3665 ;;
3666 esac
8ae85421
AM
3667fi
3668
3669
81ecdfbb
RW
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3671$as_echo "$_am_result" >&6; }
8ae85421
AM
3672rm -f confinc confmf
3673
81ecdfbb
RW
3674# Check whether --enable-dependency-tracking was given.
3675if test "${enable_dependency_tracking+set}" = set; then :
3676 enableval=$enable_dependency_tracking;
3677fi
8ae85421 3678
8ae85421
AM
3679if test "x$enable_dependency_tracking" != xno; then
3680 am_depcomp="$ac_aux_dir/depcomp"
3681 AMDEPBACKSLASH='\'
3682fi
81ecdfbb 3683 if test "x$enable_dependency_tracking" != xno; then
8ae85421
AM
3684 AMDEP_TRUE=
3685 AMDEP_FALSE='#'
3686else
3687 AMDEP_TRUE='#'
3688 AMDEP_FALSE=
3689fi
252b5132 3690
252b5132 3691
81ecdfbb
RW
3692if test "`cd $srcdir && pwd`" != "`pwd`"; then
3693 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3694 # is not polluted with repeated "-I."
3695 am__isrc=' -I$(srcdir)'
3696 # test to see if srcdir already configured
3697 if test -f $srcdir/config.status; then
3698 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3699 fi
252b5132 3700fi
979273e3 3701
8ae85421
AM
3702# test whether we have cygpath
3703if test -z "$CYGPATH_W"; then
3704 if (cygpath --version) >/dev/null 2>/dev/null; then
3705 CYGPATH_W='cygpath -w'
3706 else
3707 CYGPATH_W=echo
3708 fi
3709fi
3710
3711
3712# Define the identity of the package.
3713 PACKAGE=opcodes
3714 VERSION=${BFD_VERSION}
3715
3716
979273e3 3717cat >>confdefs.h <<_ACEOF
252b5132 3718#define PACKAGE "$PACKAGE"
979273e3 3719_ACEOF
252b5132 3720
979273e3
NN
3721
3722cat >>confdefs.h <<_ACEOF
252b5132 3723#define VERSION "$VERSION"
979273e3 3724_ACEOF
252b5132 3725
8ae85421 3726# Some tools Automake needs.
252b5132 3727
8ae85421 3728ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 3729
8ae85421
AM
3730
3731AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3732
3733
3734AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3735
3736
3737AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3738
3739
3740MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3741
8ae85421
AM
3742# We need awk for the "check" target. The system "awk" is bad on
3743# some platforms.
3744# Always define AMTAR for backward compatibility.
3745
3746AMTAR=${AMTAR-"${am_missing_run}tar"}
3747
3748am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3749
3750
3751
3752
3753depcc="$CC" am_compiler_list=
3754
81ecdfbb
RW
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3756$as_echo_n "checking dependency style of $depcc... " >&6; }
3757if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
252b5132 3759else
8ae85421
AM
3760 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3761 # We make a subdir and do the tests there. Otherwise we can end up
3762 # making bogus files that we don't know about and never remove. For
3763 # instance it was reported that on HP-UX the gcc test will end up
3764 # making a dummy file named `D' -- because `-MD' means `put the output
3765 # in D'.
3766 mkdir conftest.dir
3767 # Copy depcomp to subdir because otherwise we won't find it if we're
3768 # using a relative directory.
3769 cp "$am_depcomp" conftest.dir
3770 cd conftest.dir
3771 # We will build objects and dependencies in a subdirectory because
3772 # it helps to detect inapplicable dependency modes. For instance
3773 # both Tru64's cc and ICC support -MD to output dependencies as a
3774 # side effect of compilation, but ICC will put the dependencies in
3775 # the current directory while Tru64 will put them in the object
3776 # directory.
3777 mkdir sub
3778
3779 am_cv_CC_dependencies_compiler_type=none
3780 if test "$am_compiler_list" = ""; then
3781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3782 fi
81ecdfbb
RW
3783 am__universal=false
3784 case " $depcc " in #(
3785 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3786 esac
3787
8ae85421
AM
3788 for depmode in $am_compiler_list; do
3789 # Setup a source with many dependencies, because some compilers
3790 # like to wrap large dependency lists on column 80 (with \), and
3791 # we should not choose a depcomp mode which is confused by this.
3792 #
3793 # We need to recreate these files for each test, as the compiler may
3794 # overwrite some of them when testing with obscure command lines.
3795 # This happens at least with the AIX C compiler.
3796 : > sub/conftest.c
3797 for i in 1 2 3 4 5 6; do
3798 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3799 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3800 # Solaris 8's {/usr,}/bin/sh.
3801 touch sub/conftst$i.h
3802 done
3803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3804
81ecdfbb
RW
3805 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3806 # mode. It turns out that the SunPro C++ compiler does not properly
3807 # handle `-M -o', and we need to detect this. Also, some Intel
3808 # versions had trouble with output in subdirs
3809 am__obj=sub/conftest.${OBJEXT-o}
3810 am__minus_obj="-o $am__obj"
8ae85421 3811 case $depmode in
81ecdfbb
RW
3812 gcc)
3813 # This depmode causes a compiler race in universal mode.
3814 test "$am__universal" = false || continue
3815 ;;
8ae85421
AM
3816 nosideeffect)
3817 # after this tag, mechanisms are not by side-effect, so they'll
3818 # only be used when explicitly requested
3819 if test "x$enable_dependency_tracking" = xyes; then
3820 continue
3821 else
3822 break
3823 fi
3824 ;;
81ecdfbb
RW
3825 msvisualcpp | msvcmsys)
3826 # This compiler won't grok `-c -o', but also, the minuso test has
3827 # not run yet. These depmodes are late enough in the game, and
3828 # so weak that their functioning should not be impacted.
3829 am__obj=conftest.${OBJEXT-o}
3830 am__minus_obj=
3831 ;;
8ae85421
AM
3832 none) break ;;
3833 esac
8ae85421 3834 if depmode=$depmode \
81ecdfbb 3835 source=sub/conftest.c object=$am__obj \
8ae85421 3836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 3837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8ae85421 3838 >/dev/null 2>conftest.err &&
81ecdfbb 3839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8ae85421 3840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 3841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8ae85421
AM
3842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3843 # icc doesn't choke on unknown options, it will just issue warnings
3844 # or remarks (even with -Werror). So we grep stderr for any message
3845 # that says an option was ignored or not supported.
3846 # When given -MP, icc 7.0 and 7.1 complain thusly:
3847 # icc: Command line warning: ignoring option '-M'; no argument required
3848 # The diagnosis changed in icc 8.0:
3849 # icc: Command line remark: option '-MP' not supported
3850 if (grep 'ignoring option' conftest.err ||
3851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3852 am_cv_CC_dependencies_compiler_type=$depmode
3853 break
3854 fi
3855 fi
3856 done
3857
3858 cd ..
3859 rm -rf conftest.dir
3860else
3861 am_cv_CC_dependencies_compiler_type=none
3862fi
3863
252b5132 3864fi
81ecdfbb
RW
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3866$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8ae85421
AM
3867CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3868
81ecdfbb 3869 if
8ae85421
AM
3870 test "x$enable_dependency_tracking" != xno \
3871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3872 am__fastdepCC_TRUE=
3873 am__fastdepCC_FALSE='#'
252b5132 3874else
8ae85421
AM
3875 am__fastdepCC_TRUE='#'
3876 am__fastdepCC_FALSE=
252b5132
RH
3877fi
3878
3879
3880
8ae85421 3881
dabbade6
L
3882ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
979273e3 3887if test -n "$ac_tool_prefix"; then
dabbade6
L
3888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3889set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891$as_echo_n "checking for $ac_word... " >&6; }
3892if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
252b5132 3894else
dabbade6
L
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3897else
979273e3
NN
3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899for as_dir in $PATH
3900do
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 3905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3907 break 2
3908 fi
3909done
81ecdfbb
RW
3910 done
3911IFS=$as_save_IFS
979273e3 3912
252b5132
RH
3913fi
3914fi
dabbade6
L
3915CC=$ac_cv_prog_CC
3916if test -n "$CC"; then
81ecdfbb
RW
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3918$as_echo "$CC" >&6; }
252b5132 3919else
81ecdfbb
RW
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921$as_echo "no" >&6; }
979273e3
NN
3922fi
3923
81ecdfbb 3924
252b5132 3925fi
dabbade6
L
3926if test -z "$ac_cv_prog_CC"; then
3927 ac_ct_CC=$CC
3928 # Extract the first word of "gcc", so it can be a program name with args.
3929set dummy gcc; ac_word=$2
81ecdfbb
RW
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931$as_echo_n "checking for $ac_word... " >&6; }
3932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
979273e3 3934else
dabbade6
L
3935 if test -n "$ac_ct_CC"; then
3936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
979273e3
NN
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 3945 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
3947 break 2
3948 fi
3949done
81ecdfbb
RW
3950 done
3951IFS=$as_save_IFS
252b5132 3952
979273e3
NN
3953fi
3954fi
dabbade6
L
3955ac_ct_CC=$ac_cv_prog_ac_ct_CC
3956if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3958$as_echo "$ac_ct_CC" >&6; }
979273e3 3959else
81ecdfbb
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
979273e3 3962fi
252b5132 3963
81ecdfbb
RW
3964 if test "x$ac_ct_CC" = x; then
3965 CC=""
3966 else
3967 case $cross_compiling:$ac_tool_warned in
3968yes:)
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3971ac_tool_warned=yes ;;
3972esac
3973 CC=$ac_ct_CC
3974 fi
979273e3 3975else
dabbade6 3976 CC="$ac_cv_prog_CC"
979273e3 3977fi
252b5132 3978
dabbade6 3979if test -z "$CC"; then
81ecdfbb
RW
3980 if test -n "$ac_tool_prefix"; then
3981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
dabbade6 3982set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984$as_echo_n "checking for $ac_word... " >&6; }
3985if test "${ac_cv_prog_CC+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
252b5132 3987else
dabbade6
L
3988 if test -n "$CC"; then
3989 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 3990else
979273e3
NN
3991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992for as_dir in $PATH
3993do
3994 IFS=$as_save_IFS
3995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 3998 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
4000 break 2
4001 fi
4002done
81ecdfbb
RW
4003 done
4004IFS=$as_save_IFS
979273e3 4005
252b5132
RH
4006fi
4007fi
dabbade6
L
4008CC=$ac_cv_prog_CC
4009if test -n "$CC"; then
81ecdfbb
RW
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4011$as_echo "$CC" >&6; }
252b5132 4012else
81ecdfbb
RW
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014$as_echo "no" >&6; }
252b5132
RH
4015fi
4016
252b5132 4017
81ecdfbb 4018 fi
dabbade6
L
4019fi
4020if test -z "$CC"; then
4021 # Extract the first word of "cc", so it can be a program name with args.
4022set dummy cc; ac_word=$2
81ecdfbb
RW
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
4025if test "${ac_cv_prog_CC+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
dabbade6
L
4027else
4028 if test -n "$CC"; then
4029 ac_cv_prog_CC="$CC" # Let the user override the test.
4030else
4031 ac_prog_rejected=no
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6
L
4039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4040 ac_prog_rejected=yes
4041 continue
4042 fi
4043 ac_cv_prog_CC="cc"
81ecdfbb 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4045 break 2
4046 fi
4047done
81ecdfbb
RW
4048 done
4049IFS=$as_save_IFS
252b5132 4050
dabbade6
L
4051if test $ac_prog_rejected = yes; then
4052 # We found a bogon in the path, so make sure we never use it.
4053 set dummy $ac_cv_prog_CC
4054 shift
4055 if test $# != 0; then
4056 # We chose a different compiler from the bogus one.
4057 # However, it has the same basename, so the bogon will be chosen
4058 # first if we set CC to just the basename; use the full file name.
4059 shift
4060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4061 fi
4062fi
4063fi
4064fi
4065CC=$ac_cv_prog_CC
4066if test -n "$CC"; then
81ecdfbb
RW
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4068$as_echo "$CC" >&6; }
252b5132 4069else
81ecdfbb
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
dabbade6 4072fi
252b5132 4073
81ecdfbb 4074
dabbade6
L
4075fi
4076if test -z "$CC"; then
4077 if test -n "$ac_tool_prefix"; then
81ecdfbb 4078 for ac_prog in cl.exe
dabbade6
L
4079 do
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083$as_echo_n "checking for $ac_word... " >&6; }
4084if test "${ac_cv_prog_CC+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
dabbade6
L
4086else
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4099 break 2
4100 fi
4101done
81ecdfbb
RW
4102 done
4103IFS=$as_save_IFS
d7040cdb 4104
dabbade6
L
4105fi
4106fi
4107CC=$ac_cv_prog_CC
4108if test -n "$CC"; then
81ecdfbb
RW
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110$as_echo "$CC" >&6; }
dabbade6 4111else
81ecdfbb
RW
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113$as_echo "no" >&6; }
dabbade6 4114fi
d7040cdb 4115
81ecdfbb 4116
dabbade6
L
4117 test -n "$CC" && break
4118 done
4119fi
4120if test -z "$CC"; then
4121 ac_ct_CC=$CC
81ecdfbb 4122 for ac_prog in cl.exe
dabbade6
L
4123do
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
dabbade6
L
4130else
4131 if test -n "$ac_ct_CC"; then
4132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4133else
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 4141 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
4143 break 2
4144 fi
4145done
81ecdfbb
RW
4146 done
4147IFS=$as_save_IFS
d7040cdb 4148
dabbade6
L
4149fi
4150fi
4151ac_ct_CC=$ac_cv_prog_ac_ct_CC
4152if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4154$as_echo "$ac_ct_CC" >&6; }
dabbade6 4155else
81ecdfbb
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157$as_echo "no" >&6; }
dabbade6 4158fi
d7040cdb 4159
81ecdfbb 4160
dabbade6
L
4161 test -n "$ac_ct_CC" && break
4162done
d7040cdb 4163
81ecdfbb
RW
4164 if test "x$ac_ct_CC" = x; then
4165 CC=""
4166 else
4167 case $cross_compiling:$ac_tool_warned in
4168yes:)
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171ac_tool_warned=yes ;;
4172esac
4173 CC=$ac_ct_CC
4174 fi
dabbade6 4175fi
d7040cdb 4176
dabbade6 4177fi
d7040cdb
SE
4178
4179
81ecdfbb
RW
4180test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182as_fn_error "no acceptable C compiler found in \$PATH
4183See \`config.log' for more details." "$LINENO" 5; }
d7040cdb 4184
dabbade6 4185# Provide some information about the compiler.
81ecdfbb
RW
4186$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4187set X $ac_compile
4188ac_compiler=$2
4189for ac_option in --version -v -V -qversion; do
4190 { { ac_try="$ac_compiler $ac_option >&5"
4191case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4196$as_echo "$ac_try_echo"; } >&5
4197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
dabbade6 4198 ac_status=$?
81ecdfbb
RW
4199 if test -s conftest.err; then
4200 sed '10a\
4201... rest of stderr output deleted ...
4202 10q' conftest.err >conftest.er1
4203 cat conftest.er1 >&5
4204 rm -f conftest.er1 conftest.err
4205 fi
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }
4208done
d7040cdb 4209
81ecdfbb
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4211$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4212if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
252b5132 4214else
81ecdfbb 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 4216/* end confdefs.h. */
d7040cdb 4217
dabbade6
L
4218int
4219main ()
4220{
4221#ifndef __GNUC__
4222 choke me
4223#endif
d7040cdb 4224
dabbade6
L
4225 ;
4226 return 0;
4227}
4228_ACEOF
81ecdfbb 4229if ac_fn_c_try_compile "$LINENO"; then :
dabbade6 4230 ac_compiler_gnu=yes
d7040cdb 4231else
81ecdfbb 4232 ac_compiler_gnu=no
dabbade6 4233fi
81ecdfbb 4234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4235ac_cv_c_compiler_gnu=$ac_compiler_gnu
d7040cdb 4236
dabbade6 4237fi
81ecdfbb
RW
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4239$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4240if test $ac_compiler_gnu = yes; then
4241 GCC=yes
4242else
4243 GCC=
4244fi
dabbade6
L
4245ac_test_CFLAGS=${CFLAGS+set}
4246ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4248$as_echo_n "checking whether $CC accepts -g... " >&6; }
4249if test "${ac_cv_prog_cc_g+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251else
4252 ac_save_c_werror_flag=$ac_c_werror_flag
4253 ac_c_werror_flag=yes
4254 ac_cv_prog_cc_g=no
4255 CFLAGS="-g"
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 4257/* end confdefs.h. */
d7040cdb 4258
dabbade6
L
4259int
4260main ()
4261{
d7040cdb 4262
dabbade6
L
4263 ;
4264 return 0;
4265}
4266_ACEOF
81ecdfbb 4267if ac_fn_c_try_compile "$LINENO"; then :
dabbade6
L
4268 ac_cv_prog_cc_g=yes
4269else
81ecdfbb
RW
4270 CFLAGS=""
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272/* end confdefs.h. */
d7040cdb 4273
81ecdfbb
RW
4274int
4275main ()
4276{
4277
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282if ac_fn_c_try_compile "$LINENO"; then :
4283
4284else
4285 ac_c_werror_flag=$ac_save_c_werror_flag
4286 CFLAGS="-g"
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h. */
4289
4290int
4291main ()
4292{
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_g=yes
4300fi
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4302fi
81ecdfbb 4303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dabbade6 4304fi
81ecdfbb
RW
4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306 ac_c_werror_flag=$ac_save_c_werror_flag
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4309$as_echo "$ac_cv_prog_cc_g" >&6; }
dabbade6
L
4310if test "$ac_test_CFLAGS" = set; then
4311 CFLAGS=$ac_save_CFLAGS
4312elif test $ac_cv_prog_cc_g = yes; then
4313 if test "$GCC" = yes; then
4314 CFLAGS="-g -O2"
4315 else
4316 CFLAGS="-g"
4317 fi
4318else
4319 if test "$GCC" = yes; then
4320 CFLAGS="-O2"
4321 else
4322 CFLAGS=
4323 fi
4324fi
81ecdfbb
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4326$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4327if test "${ac_cv_prog_cc_c89+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
d7040cdb 4329else
81ecdfbb 4330 ac_cv_prog_cc_c89=no
dabbade6 4331ac_save_CC=$CC
81ecdfbb 4332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6
L
4333/* end confdefs.h. */
4334#include <stdarg.h>
4335#include <stdio.h>
4336#include <sys/types.h>
4337#include <sys/stat.h>
4338/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4339struct buf { int x; };
4340FILE * (*rcsopen) (struct buf *, struct stat *, int);
4341static char *e (p, i)
4342 char **p;
4343 int i;
4344{
4345 return p[i];
4346}
4347static char *f (char * (*g) (char **, int), char **p, ...)
4348{
4349 char *s;
4350 va_list v;
4351 va_start (v,p);
4352 s = g (p, va_arg (v,int));
4353 va_end (v);
4354 return s;
4355}
d7040cdb 4356
dabbade6
L
4357/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4358 function prototypes and stuff, but not '\xHH' hex character constants.
4359 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4360 as 'x'. The following induces an error, until -std is added to get
dabbade6
L
4361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4362 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4363 that's true only with -std. */
dabbade6 4364int osf4_cc_array ['\x00' == 0 ? 1 : -1];
d7040cdb 4365
81ecdfbb
RW
4366/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4367 inside strings and character constants. */
4368#define FOO(x) 'x'
4369int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4370
dabbade6
L
4371int test (int i, double x);
4372struct s1 {int (*f) (int a);};
4373struct s2 {int (*f) (double a);};
4374int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4375int argc;
4376char **argv;
4377int
4378main ()
4379{
4380return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4381 ;
4382 return 0;
4383}
4384_ACEOF
81ecdfbb
RW
4385for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
dabbade6
L
4387do
4388 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4389 if ac_fn_c_try_compile "$LINENO"; then :
4390 ac_cv_prog_cc_c89=$ac_arg
d7040cdb 4391fi
81ecdfbb
RW
4392rm -f core conftest.err conftest.$ac_objext
4393 test "x$ac_cv_prog_cc_c89" != "xno" && break
dabbade6 4394done
81ecdfbb 4395rm -f conftest.$ac_ext
dabbade6 4396CC=$ac_save_CC
d7040cdb 4397
dabbade6 4398fi
81ecdfbb
RW
4399# AC_CACHE_VAL
4400case "x$ac_cv_prog_cc_c89" in
4401 x)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4403$as_echo "none needed" >&6; } ;;
4404 xno)
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4406$as_echo "unsupported" >&6; } ;;
252b5132 4407 *)
81ecdfbb
RW
4408 CC="$CC $ac_cv_prog_cc_c89"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4410$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
dabbade6 4411esac
81ecdfbb 4412if test "x$ac_cv_prog_cc_c89" != xno; then :
ac48eca1 4413
dabbade6 4414fi
252b5132 4415
dabbade6
L
4416ac_ext=c
4417ac_cpp='$CPP $CPPFLAGS'
4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4421
7357c5b6
AM
4422ac_ext=c
4423ac_cpp='$CPP $CPPFLAGS'
4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4428$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4429# On Suns, sometimes $CPP names a directory.
4430if test -n "$CPP" && test -d "$CPP"; then
4431 CPP=
4432fi
4433if test -z "$CPP"; then
81ecdfbb
RW
4434 if test "${ac_cv_prog_CPP+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
dabbade6 4436else
7357c5b6
AM
4437 # Double quotes because CPP needs to be expanded
4438 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4439 do
4440 ac_preproc_ok=false
4441for ac_c_preproc_warn_flag in '' yes
dabbade6 4442do
7357c5b6
AM
4443 # Use a header file that comes with gcc, so configuring glibc
4444 # with a fresh cross-compiler works.
4445 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4446 # <limits.h> exists even on freestanding compilers.
4447 # On the NeXT, cc -E runs the code through the compiler's parser,
4448 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4450/* end confdefs.h. */
4451#ifdef __STDC__
4452# include <limits.h>
4453#else
4454# include <assert.h>
4455#endif
4456 Syntax error
4457_ACEOF
81ecdfbb 4458if ac_fn_c_try_cpp "$LINENO"; then :
dabbade6 4459
81ecdfbb 4460else
7357c5b6
AM
4461 # Broken: fails on valid input.
4462continue
252b5132 4463fi
7357c5b6
AM
4464rm -f conftest.err conftest.$ac_ext
4465
81ecdfbb 4466 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4467 # can be detected and how.
81ecdfbb 4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4469/* end confdefs.h. */
4470#include <ac_nonexistent.h>
4471_ACEOF
81ecdfbb 4472if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4473 # Broken: success on invalid input.
4474continue
dabbade6 4475else
7357c5b6
AM
4476 # Passes both tests.
4477ac_preproc_ok=:
4478break
dabbade6 4479fi
7357c5b6 4480rm -f conftest.err conftest.$ac_ext
dabbade6 4481
d7040cdb 4482done
7357c5b6
AM
4483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4484rm -f conftest.err conftest.$ac_ext
81ecdfbb 4485if $ac_preproc_ok; then :
7357c5b6
AM
4486 break
4487fi
4488
4489 done
4490 ac_cv_prog_CPP=$CPP
d7040cdb
SE
4491
4492fi
7357c5b6
AM
4493 CPP=$ac_cv_prog_CPP
4494else
4495 ac_cv_prog_CPP=$CPP
d7040cdb 4496fi
81ecdfbb
RW
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4498$as_echo "$CPP" >&6; }
7357c5b6
AM
4499ac_preproc_ok=false
4500for ac_c_preproc_warn_flag in '' yes
4501do
4502 # Use a header file that comes with gcc, so configuring glibc
4503 # with a fresh cross-compiler works.
4504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4505 # <limits.h> exists even on freestanding compilers.
4506 # On the NeXT, cc -E runs the code through the compiler's parser,
4507 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4509/* end confdefs.h. */
4510#ifdef __STDC__
4511# include <limits.h>
4512#else
4513# include <assert.h>
4514#endif
4515 Syntax error
4516_ACEOF
81ecdfbb 4517if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4518
81ecdfbb 4519else
7357c5b6
AM
4520 # Broken: fails on valid input.
4521continue
d7040cdb 4522fi
7357c5b6 4523rm -f conftest.err conftest.$ac_ext
d7040cdb 4524
81ecdfbb 4525 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4526 # can be detected and how.
81ecdfbb 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4528/* end confdefs.h. */
4529#include <ac_nonexistent.h>
4530_ACEOF
81ecdfbb 4531if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4532 # Broken: success on invalid input.
4533continue
dabbade6 4534else
7357c5b6
AM
4535 # Passes both tests.
4536ac_preproc_ok=:
4537break
4538fi
4539rm -f conftest.err conftest.$ac_ext
d7040cdb 4540
7357c5b6
AM
4541done
4542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4543rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
4544if $ac_preproc_ok; then :
4545
4546else
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549as_fn_error "C preprocessor \"$CPP\" fails sanity check
4550See \`config.log' for more details." "$LINENO" 5; }
4551fi
4552
4553ac_ext=c
4554ac_cpp='$CPP $CPPFLAGS'
4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557ac_compiler_gnu=$ac_cv_c_compiler_gnu
4558
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4561$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4562if test "${ac_cv_path_GREP+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 if test -z "$GREP"; then
4566 ac_path_GREP_found=false
4567 # Loop through the user's path and test for each of PROGNAME-LIST
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_prog in grep ggrep; do
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4576 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4577# Check for GNU ac_path_GREP and select it if it is found.
4578 # Check for GNU $ac_path_GREP
4579case `"$ac_path_GREP" --version 2>&1` in
4580*GNU*)
4581 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4582*)
4583 ac_count=0
4584 $as_echo_n 0123456789 >"conftest.in"
4585 while :
4586 do
4587 cat "conftest.in" "conftest.in" >"conftest.tmp"
4588 mv "conftest.tmp" "conftest.in"
4589 cp "conftest.in" "conftest.nl"
4590 $as_echo 'GREP' >> "conftest.nl"
4591 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4593 as_fn_arith $ac_count + 1 && ac_count=$as_val
4594 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4595 # Best one so far, save it but keep looking for a better one
4596 ac_cv_path_GREP="$ac_path_GREP"
4597 ac_path_GREP_max=$ac_count
4598 fi
4599 # 10*(2^10) chars as input seems more than enough
4600 test $ac_count -gt 10 && break
4601 done
4602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4603esac
4604
4605 $ac_path_GREP_found && break 3
4606 done
4607 done
4608 done
4609IFS=$as_save_IFS
4610 if test -z "$ac_cv_path_GREP"; then
4611 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4612 fi
dabbade6 4613else
81ecdfbb 4614 ac_cv_path_GREP=$GREP
7357c5b6 4615fi
d7040cdb 4616
81ecdfbb
RW
4617fi
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4619$as_echo "$ac_cv_path_GREP" >&6; }
4620 GREP="$ac_cv_path_GREP"
d7040cdb
SE
4621
4622
81ecdfbb
RW
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4624$as_echo_n "checking for egrep... " >&6; }
4625if test "${ac_cv_path_EGREP+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
7357c5b6 4627else
81ecdfbb
RW
4628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4629 then ac_cv_path_EGREP="$GREP -E"
4630 else
4631 if test -z "$EGREP"; then
4632 ac_path_EGREP_found=false
4633 # Loop through the user's path and test for each of PROGNAME-LIST
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_prog in egrep; do
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4643# Check for GNU ac_path_EGREP and select it if it is found.
4644 # Check for GNU $ac_path_EGREP
4645case `"$ac_path_EGREP" --version 2>&1` in
4646*GNU*)
4647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4648*)
4649 ac_count=0
4650 $as_echo_n 0123456789 >"conftest.in"
4651 while :
4652 do
4653 cat "conftest.in" "conftest.in" >"conftest.tmp"
4654 mv "conftest.tmp" "conftest.in"
4655 cp "conftest.in" "conftest.nl"
4656 $as_echo 'EGREP' >> "conftest.nl"
4657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4659 as_fn_arith $ac_count + 1 && ac_count=$as_val
4660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4661 # Best one so far, save it but keep looking for a better one
4662 ac_cv_path_EGREP="$ac_path_EGREP"
4663 ac_path_EGREP_max=$ac_count
7357c5b6 4664 fi
81ecdfbb
RW
4665 # 10*(2^10) chars as input seems more than enough
4666 test $ac_count -gt 10 && break
4667 done
4668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669esac
4670
4671 $ac_path_EGREP_found && break 3
4672 done
4673 done
4674 done
4675IFS=$as_save_IFS
4676 if test -z "$ac_cv_path_EGREP"; then
4677 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4678 fi
4679else
4680 ac_cv_path_EGREP=$EGREP
4681fi
4682
4683 fi
7357c5b6 4684fi
81ecdfbb
RW
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4686$as_echo "$ac_cv_path_EGREP" >&6; }
4687 EGREP="$ac_cv_path_EGREP"
d7040cdb
SE
4688
4689
81ecdfbb
RW
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4691$as_echo_n "checking for ANSI C header files... " >&6; }
4692if test "${ac_cv_header_stdc+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
7357c5b6 4694else
81ecdfbb 4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4696/* end confdefs.h. */
4697#include <stdlib.h>
4698#include <stdarg.h>
4699#include <string.h>
4700#include <float.h>
d7040cdb 4701
7357c5b6
AM
4702int
4703main ()
4704{
d7040cdb 4705
7357c5b6
AM
4706 ;
4707 return 0;
4708}
4709_ACEOF
81ecdfbb 4710if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4711 ac_cv_header_stdc=yes
4712else
81ecdfbb 4713 ac_cv_header_stdc=no
7357c5b6 4714fi
81ecdfbb 4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4716
7357c5b6
AM
4717if test $ac_cv_header_stdc = yes; then
4718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4720/* end confdefs.h. */
4721#include <string.h>
d7040cdb 4722
7357c5b6
AM
4723_ACEOF
4724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4725 $EGREP "memchr" >/dev/null 2>&1; then :
4726
7357c5b6
AM
4727else
4728 ac_cv_header_stdc=no
4729fi
4730rm -f conftest*
d7040cdb 4731
7357c5b6 4732fi
d7040cdb 4733
7357c5b6
AM
4734if test $ac_cv_header_stdc = yes; then
4735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4737/* end confdefs.h. */
4738#include <stdlib.h>
d7040cdb 4739
7357c5b6
AM
4740_ACEOF
4741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
4742 $EGREP "free" >/dev/null 2>&1; then :
4743
7357c5b6
AM
4744else
4745 ac_cv_header_stdc=no
4746fi
4747rm -f conftest*
d7040cdb 4748
7357c5b6 4749fi
d7040cdb 4750
7357c5b6
AM
4751if test $ac_cv_header_stdc = yes; then
4752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 4753 if test "$cross_compiling" = yes; then :
7357c5b6
AM
4754 :
4755else
81ecdfbb 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4757/* end confdefs.h. */
4758#include <ctype.h>
81ecdfbb 4759#include <stdlib.h>
7357c5b6
AM
4760#if ((' ' & 0x0FF) == 0x020)
4761# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4762# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4763#else
4764# define ISLOWER(c) \
4765 (('a' <= (c) && (c) <= 'i') \
4766 || ('j' <= (c) && (c) <= 'r') \
4767 || ('s' <= (c) && (c) <= 'z'))
4768# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4769#endif
d7040cdb 4770
7357c5b6
AM
4771#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4772int
4773main ()
4774{
4775 int i;
4776 for (i = 0; i < 256; i++)
4777 if (XOR (islower (i), ISLOWER (i))
4778 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4779 return 2;
4780 return 0;
7357c5b6
AM
4781}
4782_ACEOF
81ecdfbb 4783if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 4784
81ecdfbb
RW
4785else
4786 ac_cv_header_stdc=no
7357c5b6 4787fi
81ecdfbb
RW
4788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4789 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 4790fi
81ecdfbb 4791
7357c5b6
AM
4792fi
4793fi
81ecdfbb
RW
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4795$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 4796if test $ac_cv_header_stdc = yes; then
d7040cdb 4797
81ecdfbb 4798$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 4799
7357c5b6 4800fi
d7040cdb 4801
7357c5b6 4802# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
4803for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4804 inttypes.h stdint.h unistd.h
81ecdfbb
RW
4805do :
4806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4807ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4808"
4809eval as_val=\$$as_ac_Header
4810 if test "x$as_val" = x""yes; then :
7357c5b6 4811 cat >>confdefs.h <<_ACEOF
81ecdfbb 4812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 4813_ACEOF
d7040cdb 4814
7357c5b6 4815fi
d7040cdb 4816
7357c5b6 4817done
d7040cdb
SE
4818
4819
4820
81ecdfbb
RW
4821 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4822if test "x$ac_cv_header_minix_config_h" = x""yes; then :
7357c5b6
AM
4823 MINIX=yes
4824else
4825 MINIX=
4826fi
d7040cdb
SE
4827
4828
7357c5b6 4829 if test "$MINIX" = yes; then
d7040cdb 4830
81ecdfbb 4831$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
dabbade6 4832
252b5132 4833
81ecdfbb 4834$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
4835
4836
81ecdfbb 4837$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 4838
7357c5b6 4839 fi
d7040cdb
SE
4840
4841
81ecdfbb
RW
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4843$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4844if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
ac48eca1 4846else
81ecdfbb 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 4848/* end confdefs.h. */
ac48eca1 4849
7357c5b6
AM
4850# define __EXTENSIONS__ 1
4851 $ac_includes_default
4852int
4853main ()
4854{
87e6d782 4855
7357c5b6
AM
4856 ;
4857 return 0;
4858}
4859_ACEOF
81ecdfbb 4860if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
4861 ac_cv_safe_to_define___extensions__=yes
4862else
81ecdfbb 4863 ac_cv_safe_to_define___extensions__=no
7357c5b6 4864fi
81ecdfbb 4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 4866fi
81ecdfbb
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4868$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 4869 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 4870 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
ac48eca1 4871
81ecdfbb 4872 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d7040cdb 4873
81ecdfbb
RW
4874 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4875
4876 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4877
4878 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d7040cdb 4879
ac48eca1 4880
ac48eca1 4881
ac48eca1 4882
87e6d782 4883
7357c5b6
AM
4884if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4886set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888$as_echo_n "checking for $ac_word... " >&6; }
4889if test "${ac_cv_prog_AR+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
dabbade6 4891else
7357c5b6
AM
4892 if test -n "$AR"; then
4893 ac_cv_prog_AR="$AR" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 4902 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4904 break 2
4905 fi
4906done
81ecdfbb
RW
4907 done
4908IFS=$as_save_IFS
ac48eca1 4909
7357c5b6
AM
4910fi
4911fi
4912AR=$ac_cv_prog_AR
4913if test -n "$AR"; then
81ecdfbb
RW
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4915$as_echo "$AR" >&6; }
dabbade6 4916else
81ecdfbb
RW
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918$as_echo "no" >&6; }
dabbade6 4919fi
6be7c12c 4920
81ecdfbb 4921
7357c5b6
AM
4922fi
4923if test -z "$ac_cv_prog_AR"; then
4924 ac_ct_AR=$AR
4925 # Extract the first word of "ar", so it can be a program name with args.
4926set dummy ar; ac_word=$2
81ecdfbb
RW
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
4929if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
7357c5b6
AM
4931else
4932 if test -n "$ac_ct_AR"; then
4933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 4942 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4944 break 2
4945 fi
4946done
81ecdfbb
RW
4947 done
4948IFS=$as_save_IFS
7357c5b6
AM
4949
4950fi
4951fi
4952ac_ct_AR=$ac_cv_prog_ac_ct_AR
4953if test -n "$ac_ct_AR"; then
81ecdfbb
RW
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4955$as_echo "$ac_ct_AR" >&6; }
7357c5b6 4956else
81ecdfbb
RW
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
7357c5b6
AM
4959fi
4960
81ecdfbb
RW
4961 if test "x$ac_ct_AR" = x; then
4962 AR=""
4963 else
4964 case $cross_compiling:$ac_tool_warned in
4965yes:)
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4968ac_tool_warned=yes ;;
4969esac
4970 AR=$ac_ct_AR
4971 fi
7357c5b6
AM
4972else
4973 AR="$ac_cv_prog_AR"
4974fi
4975
4976if test -n "$ac_tool_prefix"; then
4977 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4978set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
4981if test "${ac_cv_prog_RANLIB+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
7357c5b6
AM
4983else
4984 if test -n "$RANLIB"; then
4985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4992 for ac_exec_ext in '' $ac_executable_extensions; do
4993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 4994 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
4996 break 2
4997 fi
4998done
81ecdfbb
RW
4999 done
5000IFS=$as_save_IFS
7357c5b6
AM
5001
5002fi
5003fi
5004RANLIB=$ac_cv_prog_RANLIB
5005if test -n "$RANLIB"; then
81ecdfbb
RW
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5007$as_echo "$RANLIB" >&6; }
7357c5b6 5008else
81ecdfbb
RW
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
7357c5b6
AM
5011fi
5012
81ecdfbb 5013
7357c5b6
AM
5014fi
5015if test -z "$ac_cv_prog_RANLIB"; then
5016 ac_ct_RANLIB=$RANLIB
5017 # Extract the first word of "ranlib", so it can be a program name with args.
5018set dummy ranlib; ac_word=$2
81ecdfbb
RW
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
5021if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
7357c5b6
AM
5023else
5024 if test -n "$ac_ct_RANLIB"; then
5025 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 5034 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
5036 break 2
5037 fi
5038done
81ecdfbb
RW
5039 done
5040IFS=$as_save_IFS
7357c5b6 5041
7357c5b6
AM
5042fi
5043fi
5044ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5045if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5047$as_echo "$ac_ct_RANLIB" >&6; }
7357c5b6 5048else
81ecdfbb
RW
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050$as_echo "no" >&6; }
7357c5b6
AM
5051fi
5052
81ecdfbb
RW
5053 if test "x$ac_ct_RANLIB" = x; then
5054 RANLIB=":"
5055 else
5056 case $cross_compiling:$ac_tool_warned in
5057yes:)
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5060ac_tool_warned=yes ;;
5061esac
5062 RANLIB=$ac_ct_RANLIB
5063 fi
7357c5b6
AM
5064else
5065 RANLIB="$ac_cv_prog_RANLIB"
5066fi
5067
5068
81ecdfbb
RW
5069# Check whether --enable-shared was given.
5070if test "${enable_shared+set}" = set; then :
5071 enableval=$enable_shared; p=${PACKAGE-default}
7357c5b6
AM
5072 case $enableval in
5073 yes) enable_shared=yes ;;
5074 no) enable_shared=no ;;
5075 *)
5076 enable_shared=no
5077 # Look at the argument we got. We use all the common list separators.
5078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5079 for pkg in $enableval; do
5080 IFS="$lt_save_ifs"
5081 if test "X$pkg" = "X$p"; then
5082 enable_shared=yes
5083 fi
5084 done
5085 IFS="$lt_save_ifs"
5086 ;;
5087 esac
5088else
5089 enable_shared=no
81ecdfbb
RW
5090fi
5091
7357c5b6
AM
5092
5093
5094
5095
5096
5097
5098
5099
5100
1927a18f
L
5101case `pwd` in
5102 *\ * | *\ *)
81ecdfbb
RW
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5104$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1927a18f 5105esac
7357c5b6
AM
5106
5107
7357c5b6 5108
3725885a
RW
5109macro_version='2.2.7a'
5110macro_revision='1.3134'
7357c5b6
AM
5111
5112
5113
5114
5115
5116
7357c5b6
AM
5117
5118
5119
5120
5121
5122
5123
1927a18f 5124ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5125
3725885a
RW
5126# Backslashify metacharacters that are still active within
5127# double-quoted strings.
5128sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5129
5130# Same as above, but do not quote variable references.
5131double_quote_subst='s/\(["`\\]\)/\\\1/g'
5132
5133# Sed substitution to delay expansion of an escaped shell variable in a
5134# double_quote_subst'ed string.
5135delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5136
5137# Sed substitution to delay expansion of an escaped single quote.
5138delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5139
5140# Sed substitution to avoid accidental globbing in evaled expressions
5141no_glob_subst='s/\*/\\\*/g'
5142
5143ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5144ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5146
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5148$as_echo_n "checking how to print strings... " >&6; }
5149# Test print first, because it will be a builtin if present.
5150if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5151 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5152 ECHO='print -r --'
5153elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5154 ECHO='printf %s\n'
5155else
5156 # Use this function as a fallback that always works.
5157 func_fallback_echo ()
5158 {
5159 eval 'cat <<_LTECHO_EOF
5160$1
5161_LTECHO_EOF'
5162 }
5163 ECHO='func_fallback_echo'
5164fi
5165
5166# func_echo_all arg...
5167# Invoke $ECHO with all args, space-separated.
5168func_echo_all ()
5169{
5170 $ECHO ""
5171}
5172
5173case "$ECHO" in
5174 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5175$as_echo "printf" >&6; } ;;
5176 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5177$as_echo "print -r" >&6; } ;;
5178 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5179$as_echo "cat" >&6; } ;;
5180esac
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
81ecdfbb
RW
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5196$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5197if test "${ac_cv_path_SED+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
7357c5b6 5199else
81ecdfbb
RW
5200 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5201 for ac_i in 1 2 3 4 5 6 7; do
5202 ac_script="$ac_script$as_nl$ac_script"
5203 done
5204 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5205 { ac_script=; unset ac_script;}
5206 if test -z "$SED"; then
5207 ac_path_SED_found=false
5208 # Loop through the user's path and test for each of PROGNAME-LIST
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
81ecdfbb 5214 for ac_prog in sed gsed; do
7357c5b6 5215 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5216 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5217 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5218# Check for GNU ac_path_SED and select it if it is found.
5219 # Check for GNU $ac_path_SED
5220case `"$ac_path_SED" --version 2>&1` in
5221*GNU*)
5222 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5223*)
5224 ac_count=0
5225 $as_echo_n 0123456789 >"conftest.in"
5226 while :
5227 do
5228 cat "conftest.in" "conftest.in" >"conftest.tmp"
5229 mv "conftest.tmp" "conftest.in"
5230 cp "conftest.in" "conftest.nl"
5231 $as_echo '' >> "conftest.nl"
5232 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5234 as_fn_arith $ac_count + 1 && ac_count=$as_val
5235 if test $ac_count -gt ${ac_path_SED_max-0}; then
5236 # Best one so far, save it but keep looking for a better one
5237 ac_cv_path_SED="$ac_path_SED"
5238 ac_path_SED_max=$ac_count
5239 fi
5240 # 10*(2^10) chars as input seems more than enough
5241 test $ac_count -gt 10 && break
5242 done
5243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5244esac
5245
5246 $ac_path_SED_found && break 3
7357c5b6
AM
5247 done
5248 done
81ecdfbb 5249 done
7357c5b6 5250IFS=$as_save_IFS
81ecdfbb
RW
5251 if test -z "$ac_cv_path_SED"; then
5252 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5253 fi
81ecdfbb
RW
5254else
5255 ac_cv_path_SED=$SED
7357c5b6
AM
5256fi
5257
81ecdfbb
RW
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5260$as_echo "$ac_cv_path_SED" >&6; }
5261 SED="$ac_cv_path_SED"
5262 rm -f conftest.sed
7357c5b6
AM
5263
5264test -z "$SED" && SED=sed
5265Xsed="$SED -e 1s/^X//"
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
81ecdfbb
RW
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5278$as_echo_n "checking for fgrep... " >&6; }
5279if test "${ac_cv_path_FGREP+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
7357c5b6 5281else
81ecdfbb
RW
5282 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5283 then ac_cv_path_FGREP="$GREP -F"
5284 else
5285 if test -z "$FGREP"; then
5286 ac_path_FGREP_found=false
5287 # Loop through the user's path and test for each of PROGNAME-LIST
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5290do
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_prog in fgrep; do
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5296 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5297# Check for GNU ac_path_FGREP and select it if it is found.
5298 # Check for GNU $ac_path_FGREP
5299case `"$ac_path_FGREP" --version 2>&1` in
5300*GNU*)
5301 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5302*)
5303 ac_count=0
5304 $as_echo_n 0123456789 >"conftest.in"
5305 while :
5306 do
5307 cat "conftest.in" "conftest.in" >"conftest.tmp"
5308 mv "conftest.tmp" "conftest.in"
5309 cp "conftest.in" "conftest.nl"
5310 $as_echo 'FGREP' >> "conftest.nl"
5311 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5313 as_fn_arith $ac_count + 1 && ac_count=$as_val
5314 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5315 # Best one so far, save it but keep looking for a better one
5316 ac_cv_path_FGREP="$ac_path_FGREP"
5317 ac_path_FGREP_max=$ac_count
7357c5b6 5318 fi
81ecdfbb
RW
5319 # 10*(2^10) chars as input seems more than enough
5320 test $ac_count -gt 10 && break
5321 done
5322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5323esac
5324
5325 $ac_path_FGREP_found && break 3
5326 done
5327 done
5328 done
5329IFS=$as_save_IFS
5330 if test -z "$ac_cv_path_FGREP"; then
5331 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5332 fi
5333else
5334 ac_cv_path_FGREP=$FGREP
5335fi
5336
5337 fi
7357c5b6 5338fi
81ecdfbb
RW
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5340$as_echo "$ac_cv_path_FGREP" >&6; }
5341 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5342
5343
5344test -z "$GREP" && GREP=grep
d7040cdb 5345
d7040cdb 5346
d7040cdb 5347
ac48eca1
AO
5348
5349
5350
ac48eca1 5351
ac48eca1 5352
ac48eca1 5353
ac48eca1 5354
ac48eca1 5355
ac48eca1 5356
ac48eca1 5357
ac48eca1 5358
ac48eca1 5359
ac48eca1 5360
dabbade6
L
5361
5362
5363
81ecdfbb
RW
5364# Check whether --with-gnu-ld was given.
5365if test "${with_gnu_ld+set}" = set; then :
5366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
dabbade6
L
5367else
5368 with_gnu_ld=no
81ecdfbb
RW
5369fi
5370
dabbade6
L
5371ac_prog=ld
5372if test "$GCC" = yes; then
5373 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5375$as_echo_n "checking for ld used by $CC... " >&6; }
dabbade6
L
5376 case $host in
5377 *-*-mingw*)
5378 # gcc leaves a trailing carriage return which upsets mingw
5379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5380 *)
5381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5382 esac
5383 case $ac_prog in
5384 # Accept absolute paths.
5385 [\\/]* | ?:[\\/]*)
5386 re_direlt='/[^/][^/]*/\.\./'
5387 # Canonicalize the pathname of ld
5388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5391 done
5392 test -z "$LD" && LD="$ac_prog"
5393 ;;
5394 "")
5395 # If it fails, then pretend we aren't using GCC.
5396 ac_prog=ld
5397 ;;
5398 *)
5399 # If it is relative, then search for the first ld in PATH.
5400 with_gnu_ld=unknown
5401 ;;
5402 esac
5403elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5405$as_echo_n "checking for GNU ld... " >&6; }
dabbade6 5406else
81ecdfbb
RW
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5408$as_echo_n "checking for non-GNU ld... " >&6; }
dabbade6 5409fi
81ecdfbb
RW
5410if test "${lt_cv_path_LD+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
ac48eca1 5412else
dabbade6
L
5413 if test -z "$LD"; then
5414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5415 for ac_dir in $PATH; do
5416 IFS="$lt_save_ifs"
5417 test -z "$ac_dir" && ac_dir=.
5418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5419 lt_cv_path_LD="$ac_dir/$ac_prog"
5420 # Check to see if the program is GNU ld. I'd rather use --version,
5421 # but apparently some variants of GNU ld only accept -v.
5422 # Break only if it was the GNU/non-GNU ld that we prefer.
5423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5424 *GNU* | *'with BFD'*)
5425 test "$with_gnu_ld" != no && break
5426 ;;
5427 *)
5428 test "$with_gnu_ld" != yes && break
5429 ;;
5430 esac
5431 fi
5432 done
5433 IFS="$lt_save_ifs"
ac48eca1 5434else
dabbade6 5435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ac48eca1
AO
5436fi
5437fi
dabbade6
L
5438
5439LD="$lt_cv_path_LD"
5440if test -n "$LD"; then
81ecdfbb
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5442$as_echo "$LD" >&6; }
ac48eca1 5443else
81ecdfbb
RW
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
ac48eca1 5446fi
81ecdfbb
RW
5447test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5449$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5450if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
ac48eca1 5452else
dabbade6
L
5453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5454case `$LD -v 2>&1 </dev/null` in
5455*GNU* | *'with BFD'*)
5456 lt_cv_prog_gnu_ld=yes
5457 ;;
5458*)
5459 lt_cv_prog_gnu_ld=no
5460 ;;
5461esac
ac48eca1 5462fi
81ecdfbb
RW
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5464$as_echo "$lt_cv_prog_gnu_ld" >&6; }
dabbade6 5465with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5466
5467
5468
5469
5470
5471
5472
5473
5474
81ecdfbb
RW
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5476$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5477if test "${lt_cv_path_NM+set}" = set; then :
5478 $as_echo_n "(cached) " >&6
ac48eca1 5479else
dabbade6
L
5480 if test -n "$NM"; then
5481 # Let the user override the test.
5482 lt_cv_path_NM="$NM"
ac48eca1 5483else
dabbade6
L
5484 lt_nm_to_check="${ac_tool_prefix}nm"
5485 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5486 lt_nm_to_check="$lt_nm_to_check nm"
979273e3 5487 fi
dabbade6
L
5488 for lt_tmp_nm in $lt_nm_to_check; do
5489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5490 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5491 IFS="$lt_save_ifs"
5492 test -z "$ac_dir" && ac_dir=.
5493 tmp_nm="$ac_dir/$lt_tmp_nm"
5494 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5495 # Check to see if the nm accepts a BSD-compat flag.
5496 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5497 # nm: unknown option "B" ignored
5498 # Tru64's nm complains that /dev/null is an invalid object file
5499 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5500 */dev/null* | *'Invalid file or object type'*)
5501 lt_cv_path_NM="$tmp_nm -B"
5502 break
5503 ;;
5504 *)
5505 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5506 */dev/null*)
5507 lt_cv_path_NM="$tmp_nm -p"
5508 break
5509 ;;
5510 *)
5511 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5512 continue # so that we can try to find one that supports BSD flags
5513 ;;
5514 esac
5515 ;;
5516 esac
5517 fi
5518 done
5519 IFS="$lt_save_ifs"
5520 done
5521 : ${lt_cv_path_NM=no}
ac48eca1
AO
5522fi
5523fi
81ecdfbb
RW
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5525$as_echo "$lt_cv_path_NM" >&6; }
dabbade6
L
5526if test "$lt_cv_path_NM" != "no"; then
5527 NM="$lt_cv_path_NM"
ac48eca1 5528else
dabbade6 5529 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5530 if test -n "$DUMPBIN"; then :
5531 # Let the user override the test.
5532 else
5533 if test -n "$ac_tool_prefix"; then
5534 for ac_prog in dumpbin "link -dump"
dabbade6
L
5535 do
5536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5537set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539$as_echo_n "checking for $ac_word... " >&6; }
5540if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
ac48eca1 5542else
dabbade6
L
5543 if test -n "$DUMPBIN"; then
5544 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ac48eca1 5545else
979273e3
NN
5546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547for as_dir in $PATH
5548do
5549 IFS=$as_save_IFS
5550 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5551 for ac_exec_ext in '' $ac_executable_extensions; do
5552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 5553 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
979273e3
NN
5555 break 2
5556 fi
5557done
81ecdfbb
RW
5558 done
5559IFS=$as_save_IFS
979273e3 5560
ac48eca1
AO
5561fi
5562fi
dabbade6
L
5563DUMPBIN=$ac_cv_prog_DUMPBIN
5564if test -n "$DUMPBIN"; then
81ecdfbb
RW
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5566$as_echo "$DUMPBIN" >&6; }
ac48eca1 5567else
81ecdfbb
RW
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5569$as_echo "no" >&6; }
ac48eca1
AO
5570fi
5571
81ecdfbb 5572
dabbade6
L
5573 test -n "$DUMPBIN" && break
5574 done
ac48eca1 5575fi
dabbade6
L
5576if test -z "$DUMPBIN"; then
5577 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5578 for ac_prog in dumpbin "link -dump"
dabbade6
L
5579do
5580 # Extract the first word of "$ac_prog", so it can be a program name with args.
5581set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583$as_echo_n "checking for $ac_word... " >&6; }
5584if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
ac48eca1 5586else
dabbade6
L
5587 if test -n "$ac_ct_DUMPBIN"; then
5588 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
d7040cdb
SE
5589else
5590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 5597 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5599 break 2
252b5132 5600 fi
d7040cdb 5601done
81ecdfbb
RW
5602 done
5603IFS=$as_save_IFS
252b5132 5604
d7040cdb
SE
5605fi
5606fi
dabbade6
L
5607ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5608if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5610$as_echo "$ac_ct_DUMPBIN" >&6; }
d7040cdb 5611else
81ecdfbb
RW
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613$as_echo "no" >&6; }
d7040cdb 5614fi
4867be41 5615
81ecdfbb 5616
dabbade6 5617 test -n "$ac_ct_DUMPBIN" && break
d7040cdb 5618done
32fba81d 5619
81ecdfbb
RW
5620 if test "x$ac_ct_DUMPBIN" = x; then
5621 DUMPBIN=":"
5622 else
5623 case $cross_compiling:$ac_tool_warned in
5624yes:)
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627ac_tool_warned=yes ;;
5628esac
5629 DUMPBIN=$ac_ct_DUMPBIN
5630 fi
d7040cdb 5631fi
979273e3 5632
3725885a
RW
5633 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5634 *COFF*)
5635 DUMPBIN="$DUMPBIN -symbols"
5636 ;;
5637 *)
5638 DUMPBIN=:
5639 ;;
5640 esac
5641 fi
979273e3 5642
dabbade6
L
5643 if test "$DUMPBIN" != ":"; then
5644 NM="$DUMPBIN"
5645 fi
5646fi
5647test -z "$NM" && NM=nm
ac48eca1 5648
252b5132 5649
252b5132 5650
979273e3 5651
ac48eca1 5652
d7040cdb 5653
81ecdfbb
RW
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5655$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5656if test "${lt_cv_nm_interface+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
dabbade6
L
5658else
5659 lt_cv_nm_interface="BSD nm"
5660 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5661 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
dabbade6
L
5662 (eval "$ac_compile" 2>conftest.err)
5663 cat conftest.err >&5
3725885a 5664 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
dabbade6
L
5665 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5666 cat conftest.err >&5
3725885a 5667 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
dabbade6
L
5668 cat conftest.out >&5
5669 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5670 lt_cv_nm_interface="MS dumpbin"
5671 fi
5672 rm -f conftest*
5673fi
81ecdfbb
RW
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5675$as_echo "$lt_cv_nm_interface" >&6; }
d7040cdb 5676
81ecdfbb
RW
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5678$as_echo_n "checking whether ln -s works... " >&6; }
dabbade6
L
5679LN_S=$as_ln_s
5680if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5682$as_echo "yes" >&6; }
dabbade6 5683else
81ecdfbb
RW
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5685$as_echo "no, using $LN_S" >&6; }
dabbade6
L
5686fi
5687
5688# find the maximum length of command line arguments
81ecdfbb
RW
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5690$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5691if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5692 $as_echo_n "(cached) " >&6
dabbade6
L
5693else
5694 i=0
5695 teststring="ABCD"
5696
5697 case $build_os in
5698 msdosdjgpp*)
5699 # On DJGPP, this test can blow up pretty badly due to problems in libc
5700 # (any single argument exceeding 2000 bytes causes a buffer overrun
5701 # during glob expansion). Even if it were fixed, the result of this
5702 # check would be larger than it should be.
5703 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5704 ;;
5705
5706 gnu*)
5707 # Under GNU Hurd, this test is not required because there is
5708 # no limit to the length of command line arguments.
5709 # Libtool will interpret -1 as no limit whatsoever
5710 lt_cv_sys_max_cmd_len=-1;
5711 ;;
5712
1927a18f 5713 cygwin* | mingw* | cegcc*)
dabbade6
L
5714 # On Win9x/ME, this test blows up -- it succeeds, but takes
5715 # about 5 minutes as the teststring grows exponentially.
5716 # Worse, since 9x/ME are not pre-emptively multitasking,
5717 # you end up with a "frozen" computer, even though with patience
5718 # the test eventually succeeds (with a max line length of 256k).
5719 # Instead, let's just punt: use the minimum linelength reported by
5720 # all of the supported platforms: 8192 (on NT/2K/XP).
5721 lt_cv_sys_max_cmd_len=8192;
5722 ;;
5723
3725885a
RW
5724 mint*)
5725 # On MiNT this can take a long time and run out of memory.
5726 lt_cv_sys_max_cmd_len=8192;
5727 ;;
5728
dabbade6
L
5729 amigaos*)
5730 # On AmigaOS with pdksh, this test takes hours, literally.
5731 # So we just punt and use a minimum line length of 8192.
5732 lt_cv_sys_max_cmd_len=8192;
5733 ;;
5734
5735 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5736 # This has been around since 386BSD, at least. Likely further.
5737 if test -x /sbin/sysctl; then
5738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5739 elif test -x /usr/sbin/sysctl; then
5740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5741 else
5742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5743 fi
5744 # And add a safety zone
5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747 ;;
5748
5749 interix*)
5750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5751 lt_cv_sys_max_cmd_len=196608
5752 ;;
5753
5754 osf*)
5755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5757 # nice to cause kernel panics so lets avoid the loop below.
5758 # First set a reasonable default.
5759 lt_cv_sys_max_cmd_len=16384
5760 #
5761 if test -x /sbin/sysconfig; then
5762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5764 esac
5765 fi
5766 ;;
5767 sco3.2v5*)
5768 lt_cv_sys_max_cmd_len=102400
5769 ;;
5770 sysv5* | sco5v6* | sysv4.2uw2*)
5771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5772 if test -n "$kargmax"; then
5773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5774 else
5775 lt_cv_sys_max_cmd_len=32768
5776 fi
d7040cdb
SE
5777 ;;
5778 *)
1927a18f
L
5779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5780 if test -n "$lt_cv_sys_max_cmd_len"; then
dabbade6
L
5781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5783 else
5784 # Make teststring a little bigger before we do anything with it.
5785 # a 1K string should be a reasonable start.
5786 for i in 1 2 3 4 5 6 7 8 ; do
5787 teststring=$teststring$teststring
5788 done
5789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5790 # If test is not a shell built-in, we'll probably end up computing a
5791 # maximum length that is only half of the actual maximum length, but
5792 # we can't tell.
3725885a
RW
5793 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
dabbade6
L
5795 test $i != 17 # 1/2 MB should be enough
5796 do
5797 i=`expr $i + 1`
5798 teststring=$teststring$teststring
5799 done
5800 # Only check the string length outside the loop.
5801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5802 teststring=
5803 # Add a significant safety factor because C++ compilers can tack on
5804 # massive amounts of additional arguments before passing them to the
5805 # linker. It appears as though 1/2 is a usable value.
5806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5807 fi
d7040cdb
SE
5808 ;;
5809 esac
252b5132 5810
dabbade6 5811fi
252b5132 5812
dabbade6 5813if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5815$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
dabbade6 5816else
81ecdfbb
RW
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5818$as_echo "none" >&6; }
dabbade6
L
5819fi
5820max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 5821
252b5132 5822
979273e3 5823
979273e3 5824
252b5132 5825
252b5132 5826
dabbade6
L
5827: ${CP="cp -f"}
5828: ${MV="mv -f"}
5829: ${RM="rm -f"}
252b5132 5830
81ecdfbb
RW
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5832$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
dabbade6
L
5833# Try some XSI features
5834xsi_shell=no
5835( _lt_dummy="a/b/c"
5836 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
1927a18f
L
5837 = c,a/b,, \
5838 && eval 'test $(( 1 + 1 )) -eq 2 \
5839 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
dabbade6 5840 && xsi_shell=yes
81ecdfbb
RW
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5842$as_echo "$xsi_shell" >&6; }
252b5132 5843
252b5132 5844
81ecdfbb
RW
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5846$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
dabbade6
L
5847lt_shell_append=no
5848( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5849 >/dev/null 2>&1 \
5850 && lt_shell_append=yes
81ecdfbb
RW
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5852$as_echo "$lt_shell_append" >&6; }
252b5132 5853
ac48eca1 5854
dabbade6
L
5855if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5856 lt_unset=unset
5857else
5858 lt_unset=false
5859fi
979273e3
NN
5860
5861
5862
5863
ac48eca1 5864
dabbade6
L
5865# test EBCDIC or ASCII
5866case `echo X|tr X '\101'` in
5867 A) # ASCII based system
5868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5869 lt_SP2NL='tr \040 \012'
5870 lt_NL2SP='tr \015\012 \040\040'
5871 ;;
5872 *) # EBCDIC based system
5873 lt_SP2NL='tr \100 \n'
5874 lt_NL2SP='tr \r\n \100\100'
5875 ;;
5876esac
9e9b66a9 5877
1ad12f97 5878
1ad12f97 5879
9e9b66a9 5880
1ad12f97 5881
a541e3ce 5882
9e9b66a9 5883
a2d91340
AC
5884
5885
81ecdfbb
RW
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5887$as_echo_n "checking for $LD option to reload object files... " >&6; }
5888if test "${lt_cv_ld_reload_flag+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
dabbade6
L
5890else
5891 lt_cv_ld_reload_flag='-r'
5892fi
81ecdfbb
RW
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5894$as_echo "$lt_cv_ld_reload_flag" >&6; }
dabbade6
L
5895reload_flag=$lt_cv_ld_reload_flag
5896case $reload_flag in
5897"" | " "*) ;;
5898*) reload_flag=" $reload_flag" ;;
5899esac
5900reload_cmds='$LD$reload_flag -o $output$reload_objs'
5901case $host_os in
5902 darwin*)
5903 if test "$GCC" = yes; then
5904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5905 else
5906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5907 fi
5908 ;;
5909esac
9e9b66a9
AM
5910
5911
5912
252b5132 5913
252b5132 5914
252b5132 5915
252b5132 5916
252b5132 5917
d7040cdb 5918
1927a18f
L
5919if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5921set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
5924if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
1927a18f
L
5926else
5927 if test -n "$OBJDUMP"; then
5928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 5937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5939 break 2
5940 fi
5941done
81ecdfbb
RW
5942 done
5943IFS=$as_save_IFS
1927a18f
L
5944
5945fi
5946fi
5947OBJDUMP=$ac_cv_prog_OBJDUMP
5948if test -n "$OBJDUMP"; then
81ecdfbb
RW
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5950$as_echo "$OBJDUMP" >&6; }
1927a18f 5951else
81ecdfbb
RW
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
1927a18f
L
5954fi
5955
81ecdfbb 5956
1927a18f
L
5957fi
5958if test -z "$ac_cv_prog_OBJDUMP"; then
5959 ac_ct_OBJDUMP=$OBJDUMP
5960 # Extract the first word of "objdump", so it can be a program name with args.
5961set dummy objdump; ac_word=$2
81ecdfbb
RW
5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963$as_echo_n "checking for $ac_word... " >&6; }
5964if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
1927a18f
L
5966else
5967 if test -n "$ac_ct_OBJDUMP"; then
5968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5969else
5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971for as_dir in $PATH
5972do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 5977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
5979 break 2
5980 fi
5981done
81ecdfbb
RW
5982 done
5983IFS=$as_save_IFS
1927a18f 5984
1927a18f
L
5985fi
5986fi
5987ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5988if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5990$as_echo "$ac_ct_OBJDUMP" >&6; }
1927a18f 5991else
81ecdfbb
RW
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993$as_echo "no" >&6; }
1927a18f
L
5994fi
5995
81ecdfbb
RW
5996 if test "x$ac_ct_OBJDUMP" = x; then
5997 OBJDUMP="false"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000yes:)
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003ac_tool_warned=yes ;;
6004esac
6005 OBJDUMP=$ac_ct_OBJDUMP
6006 fi
1927a18f
L
6007else
6008 OBJDUMP="$ac_cv_prog_OBJDUMP"
6009fi
6010
6011test -z "$OBJDUMP" && OBJDUMP=objdump
6012
6013
6014
6015
6016
6017
6018
6019
d7040cdb 6020
81ecdfbb
RW
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6022$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6023if test "${lt_cv_deplibs_check_method+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
252b5132 6025else
dabbade6
L
6026 lt_cv_file_magic_cmd='$MAGIC_CMD'
6027lt_cv_file_magic_test_file=
6028lt_cv_deplibs_check_method='unknown'
6029# Need to set the preceding variable on all platforms that support
6030# interlibrary dependencies.
6031# 'none' -- dependencies not supported.
6032# `unknown' -- same as none, but documents that we really don't know.
6033# 'pass_all' -- all dependencies passed with no checks.
6034# 'test_compile' -- check by making test program.
6035# 'file_magic [[regex]]' -- check by looking for files in library path
6036# which responds to the $file_magic_cmd with a given extended regex.
6037# If you have `file' or equivalent on your system and you're not sure
6038# whether `pass_all' will *always* work, you probably want this one.
8ae85421 6039
dabbade6 6040case $host_os in
50e7d84b 6041aix[4-9]*)
dabbade6
L
6042 lt_cv_deplibs_check_method=pass_all
6043 ;;
979273e3 6044
dabbade6
L
6045beos*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
24443139 6048
dabbade6
L
6049bsdi[45]*)
6050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6051 lt_cv_file_magic_cmd='/usr/bin/file -L'
6052 lt_cv_file_magic_test_file=/shlib/libc.so
d7040cdb 6053 ;;
dabbade6
L
6054
6055cygwin*)
6056 # func_win32_libid is a shell function defined in ltmain.sh
6057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6058 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6059 ;;
dabbade6
L
6060
6061mingw* | pw32*)
6062 # Base MSYS/MinGW do not provide the 'file' command needed by
6063 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6064 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6065 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6066 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
dabbade6
L
6067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6068 lt_cv_file_magic_cmd='func_win32_libid'
6069 else
6070 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6071 lt_cv_file_magic_cmd='$OBJDUMP -f'
d7040cdb
SE
6072 fi
6073 ;;
dabbade6 6074
3725885a 6075cegcc*)
1927a18f
L
6076 # use the weaker test based on 'objdump'. See mingw*.
6077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6078 lt_cv_file_magic_cmd='$OBJDUMP -f'
6079 ;;
6080
dabbade6
L
6081darwin* | rhapsody*)
6082 lt_cv_deplibs_check_method=pass_all
d7040cdb 6083 ;;
dabbade6
L
6084
6085freebsd* | dragonfly*)
6086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6087 case $host_cpu in
6088 i*86 )
6089 # Not sure whether the presence of OpenBSD here was a mistake.
6090 # Let's accept both of them until this is cleared up.
6091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6092 lt_cv_file_magic_cmd=/usr/bin/file
6093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6094 ;;
6095 esac
6096 else
6097 lt_cv_deplibs_check_method=pass_all
6098 fi
d7040cdb 6099 ;;
dabbade6
L
6100
6101gnu*)
6102 lt_cv_deplibs_check_method=pass_all
d7040cdb 6103 ;;
dabbade6 6104
3725885a
RW
6105haiku*)
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
dabbade6
L
6109hpux10.20* | hpux11*)
6110 lt_cv_file_magic_cmd=/usr/bin/file
6111 case $host_cpu in
6112 ia64*)
6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6115 ;;
6116 hppa*64*)
3725885a 6117 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
6118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6119 ;;
6120 *)
3725885a 6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
dabbade6
L
6122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6123 ;;
6124 esac
d7040cdb 6125 ;;
24443139 6126
dabbade6
L
6127interix[3-9]*)
6128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6130 ;;
24443139 6131
dabbade6
L
6132irix5* | irix6* | nonstopux*)
6133 case $LD in
6134 *-32|*"-32 ") libmagic=32-bit;;
6135 *-n32|*"-n32 ") libmagic=N32;;
6136 *-64|*"-64 ") libmagic=64-bit;;
6137 *) libmagic=never-match;;
6138 esac
6139 lt_cv_deplibs_check_method=pass_all
6140 ;;
8ae85421 6141
dabbade6 6142# This must be Linux ELF.
58e24671 6143linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
24443139 6146
dabbade6
L
6147netbsd*)
6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6150 else
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6152 fi
d7040cdb 6153 ;;
24443139 6154
dabbade6
L
6155newos6*)
6156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6159 ;;
d7040cdb 6160
dabbade6
L
6161*nto* | *qnx*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
d7040cdb 6164
dabbade6
L
6165openbsd*)
6166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
d7040cdb 6168 else
dabbade6 6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
d7040cdb 6170 fi
dabbade6 6171 ;;
24443139 6172
dabbade6
L
6173osf3* | osf4* | osf5*)
6174 lt_cv_deplibs_check_method=pass_all
6175 ;;
24443139 6176
dabbade6
L
6177rdos*)
6178 lt_cv_deplibs_check_method=pass_all
6179 ;;
81172ff2 6180
dabbade6
L
6181solaris*)
6182 lt_cv_deplibs_check_method=pass_all
6183 ;;
81172ff2 6184
dabbade6
L
6185sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6186 lt_cv_deplibs_check_method=pass_all
6187 ;;
252b5132 6188
dabbade6
L
6189sysv4 | sysv4.3*)
6190 case $host_vendor in
6191 motorola)
6192 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]'
6193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6194 ;;
6195 ncr)
6196 lt_cv_deplibs_check_method=pass_all
6197 ;;
6198 sequent)
6199 lt_cv_file_magic_cmd='/bin/file'
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6201 ;;
6202 sni)
6203 lt_cv_file_magic_cmd='/bin/file'
6204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6205 lt_cv_file_magic_test_file=/lib/libc.so
6206 ;;
6207 siemens)
6208 lt_cv_deplibs_check_method=pass_all
6209 ;;
6210 pc)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213 esac
6214 ;;
252b5132 6215
dabbade6
L
6216tpf*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219esac
979273e3 6220
dabbade6 6221fi
81ecdfbb
RW
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6223$as_echo "$lt_cv_deplibs_check_method" >&6; }
dabbade6
L
6224file_magic_cmd=$lt_cv_file_magic_cmd
6225deplibs_check_method=$lt_cv_deplibs_check_method
6226test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6227
979273e3 6228
979273e3 6229
dabbade6
L
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239if test -n "$ac_tool_prefix"; then
6240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243$as_echo_n "checking for $ac_word... " >&6; }
6244if test "${ac_cv_prog_AR+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
dabbade6
L
6246else
6247 if test -n "$AR"; then
6248 ac_cv_prog_AR="$AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6257 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6259 break 2
252b5132 6260 fi
979273e3 6261done
81ecdfbb
RW
6262 done
6263IFS=$as_save_IFS
979273e3 6264
dabbade6
L
6265fi
6266fi
6267AR=$ac_cv_prog_AR
6268if test -n "$AR"; then
81ecdfbb
RW
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6270$as_echo "$AR" >&6; }
dabbade6 6271else
81ecdfbb
RW
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273$as_echo "no" >&6; }
979273e3 6274fi
d7040cdb 6275
81ecdfbb 6276
252b5132 6277fi
dabbade6
L
6278if test -z "$ac_cv_prog_AR"; then
6279 ac_ct_AR=$AR
6280 # Extract the first word of "ar", so it can be a program name with args.
6281set dummy ar; ac_word=$2
81ecdfbb
RW
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
979273e3 6286else
dabbade6
L
6287 if test -n "$ac_ct_AR"; then
6288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6297 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6299 break 2
6300 fi
6301done
81ecdfbb
RW
6302 done
6303IFS=$as_save_IFS
dabbade6 6304
dabbade6
L
6305fi
6306fi
6307ac_ct_AR=$ac_cv_prog_ac_ct_AR
6308if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6310$as_echo "$ac_ct_AR" >&6; }
dabbade6 6311else
81ecdfbb
RW
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
252b5132
RH
6314fi
6315
81ecdfbb
RW
6316 if test "x$ac_ct_AR" = x; then
6317 AR="false"
6318 else
6319 case $cross_compiling:$ac_tool_warned in
6320yes:)
6321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325 AR=$ac_ct_AR
6326 fi
dabbade6
L
6327else
6328 AR="$ac_cv_prog_AR"
6329fi
252b5132 6330
dabbade6
L
6331test -z "$AR" && AR=ar
6332test -z "$AR_FLAGS" && AR_FLAGS=cru
252b5132 6333
979273e3 6334
979273e3 6335
979273e3 6336
252b5132 6337
979273e3 6338
979273e3 6339
252b5132 6340
979273e3 6341
979273e3 6342
979273e3 6343
dabbade6
L
6344if test -n "$ac_tool_prefix"; then
6345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6346set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if test "${ac_cv_prog_STRIP+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
dabbade6
L
6351else
6352 if test -n "$STRIP"; then
6353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6364 break 2
6365 fi
6366done
81ecdfbb
RW
6367 done
6368IFS=$as_save_IFS
979273e3 6369
dabbade6
L
6370fi
6371fi
6372STRIP=$ac_cv_prog_STRIP
6373if test -n "$STRIP"; then
81ecdfbb
RW
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6375$as_echo "$STRIP" >&6; }
dabbade6 6376else
81ecdfbb
RW
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
dabbade6 6379fi
979273e3 6380
81ecdfbb 6381
dabbade6
L
6382fi
6383if test -z "$ac_cv_prog_STRIP"; then
6384 ac_ct_STRIP=$STRIP
6385 # Extract the first word of "strip", so it can be a program name with args.
6386set dummy strip; ac_word=$2
81ecdfbb
RW
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388$as_echo_n "checking for $ac_word... " >&6; }
6389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
dabbade6
L
6391else
6392 if test -n "$ac_ct_STRIP"; then
6393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6394else
6395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396for as_dir in $PATH
6397do
6398 IFS=$as_save_IFS
6399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6402 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6404 break 2
6405 fi
6406done
81ecdfbb
RW
6407 done
6408IFS=$as_save_IFS
979273e3 6409
dabbade6
L
6410fi
6411fi
6412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6413if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6415$as_echo "$ac_ct_STRIP" >&6; }
dabbade6 6416else
81ecdfbb
RW
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418$as_echo "no" >&6; }
dabbade6 6419fi
979273e3 6420
81ecdfbb
RW
6421 if test "x$ac_ct_STRIP" = x; then
6422 STRIP=":"
6423 else
6424 case $cross_compiling:$ac_tool_warned in
6425yes:)
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6428ac_tool_warned=yes ;;
6429esac
6430 STRIP=$ac_ct_STRIP
6431 fi
dabbade6
L
6432else
6433 STRIP="$ac_cv_prog_STRIP"
6434fi
979273e3 6435
dabbade6 6436test -z "$STRIP" && STRIP=:
979273e3 6437
d7040cdb 6438
979273e3 6439
d7040cdb 6440
979273e3 6441
979273e3 6442
dabbade6
L
6443if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if test "${ac_cv_prog_RANLIB+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
979273e3 6450else
dabbade6
L
6451 if test -n "$RANLIB"; then
6452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6
L
6463 break 2
6464 fi
6465done
81ecdfbb
RW
6466 done
6467IFS=$as_save_IFS
979273e3 6468
979273e3 6469fi
979273e3 6470fi
dabbade6
L
6471RANLIB=$ac_cv_prog_RANLIB
6472if test -n "$RANLIB"; then
81ecdfbb
RW
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6474$as_echo "$RANLIB" >&6; }
dabbade6 6475else
81ecdfbb
RW
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
dabbade6 6478fi
d7040cdb 6479
81ecdfbb 6480
d7040cdb 6481fi
dabbade6
L
6482if test -z "$ac_cv_prog_RANLIB"; then
6483 ac_ct_RANLIB=$RANLIB
6484 # Extract the first word of "ranlib", so it can be a program name with args.
6485set dummy ranlib; ac_word=$2
81ecdfbb
RW
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6489 $as_echo_n "(cached) " >&6
979273e3 6490else
dabbade6
L
6491 if test -n "$ac_ct_RANLIB"; then
6492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
d7040cdb 6496do
dabbade6
L
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
dabbade6 6501 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
dabbade6 6503 break 2
979273e3 6504 fi
dabbade6 6505done
81ecdfbb
RW
6506 done
6507IFS=$as_save_IFS
dabbade6 6508
979273e3 6509fi
dabbade6
L
6510fi
6511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6512if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6514$as_echo "$ac_ct_RANLIB" >&6; }
979273e3 6515else
81ecdfbb
RW
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
d7040cdb 6518fi
d7040cdb 6519
81ecdfbb
RW
6520 if test "x$ac_ct_RANLIB" = x; then
6521 RANLIB=":"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529 RANLIB=$ac_ct_RANLIB
6530 fi
d7040cdb 6531else
dabbade6 6532 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6533fi
979273e3 6534
dabbade6 6535test -z "$RANLIB" && RANLIB=:
979273e3 6536
252b5132 6537
252b5132 6538
d7040cdb 6539
d7040cdb 6540
d7040cdb 6541
dabbade6 6542# Determine commands to create old-style static archives.
1927a18f 6543old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
dabbade6
L
6544old_postinstall_cmds='chmod 644 $oldlib'
6545old_postuninstall_cmds=
d7040cdb 6546
dabbade6
L
6547if test -n "$RANLIB"; then
6548 case $host_os in
6549 openbsd*)
6550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6551 ;;
6552 *)
6553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6554 ;;
6555 esac
6556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb
SE
6557fi
6558
3725885a
RW
6559case $host_os in
6560 darwin*)
6561 lock_old_archive_extraction=yes ;;
6562 *)
6563 lock_old_archive_extraction=no ;;
6564esac
6565
6566
6567
6568
6569
6570
d7040cdb
SE
6571
6572
d7040cdb 6573
d7040cdb 6574
252b5132 6575
d7040cdb 6576
d7040cdb 6577
d7040cdb
SE
6578
6579
6580
d7040cdb 6581
d7040cdb 6582
d7040cdb 6583
252b5132 6584
d7040cdb
SE
6585
6586
6587
d7040cdb 6588
d7040cdb
SE
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
dabbade6
L
6604# If no C compiler was specified, use CC.
6605LTCC=${LTCC-"$CC"}
d7040cdb 6606
dabbade6
L
6607# If no C compiler flags were specified, use CFLAGS.
6608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 6609
dabbade6
L
6610# Allow CC to be a program name with arguments.
6611compiler=$CC
d7040cdb
SE
6612
6613
dabbade6 6614# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6616$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6617if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6618 $as_echo_n "(cached) " >&6
dabbade6 6619else
d7040cdb 6620
dabbade6
L
6621# These are sane defaults that work on at least a few old systems.
6622# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 6623
dabbade6
L
6624# Character class describing NM global symbol codes.
6625symcode='[BCDEGRST]'
d7040cdb 6626
dabbade6
L
6627# Regexp to match symbols that can be accessed directly from C.
6628sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d7040cdb 6629
dabbade6
L
6630# Define system-specific variables.
6631case $host_os in
6632aix*)
6633 symcode='[BCDT]'
6634 ;;
1927a18f 6635cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
6636 symcode='[ABCDGISTW]'
6637 ;;
6638hpux*)
6639 if test "$host_cpu" = ia64; then
6640 symcode='[ABCDEGRST]'
6641 fi
6642 ;;
6643irix* | nonstopux*)
6644 symcode='[BCDEGRST]'
6645 ;;
6646osf*)
6647 symcode='[BCDEGQRST]'
6648 ;;
6649solaris*)
6650 symcode='[BDRT]'
6651 ;;
6652sco3.2v5*)
6653 symcode='[DT]'
6654 ;;
6655sysv4.2uw2*)
6656 symcode='[DT]'
6657 ;;
6658sysv5* | sco5v6* | unixware* | OpenUNIX*)
6659 symcode='[ABDT]'
6660 ;;
6661sysv4)
6662 symcode='[DFNSTU]'
6663 ;;
6664esac
6665
6666# If we're using GNU nm, then use its standard symbol codes.
6667case `$NM -V 2>&1` in
6668*GNU* | *'with BFD'*)
6669 symcode='[ABCDGIRSTW]' ;;
6670esac
d7040cdb 6671
dabbade6
L
6672# Transform an extracted symbol line into a proper C declaration.
6673# Some systems (esp. on ia64) link data and code symbols differently,
6674# so use this general approach.
6675lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
d7040cdb 6676
dabbade6 6677# Transform an extracted symbol line into symbol name and symbol address
7357c5b6 6678lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
1927a18f 6679lt_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 6680
7357c5b6
AM
6681# Handle CRLF in mingw tool chain
6682opt_cr=
6683case $build_os in
6684mingw*)
6685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6686 ;;
6687esac
d7040cdb 6688
7357c5b6
AM
6689# Try without a prefix underscore, then with it.
6690for ac_symprfx in "" "_"; do
d7040cdb 6691
7357c5b6
AM
6692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6693 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6694
7357c5b6
AM
6695 # Write the raw and C identifiers.
6696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6697 # Fake it for dumpbin and say T for any non-static function
6698 # and D for any global variable.
6699 # Also find C++ and __fastcall symbols from MSVC++,
6700 # which start with @ or ?.
6701 lt_cv_sys_global_symbol_pipe="$AWK '"\
6702" {last_section=section; section=\$ 3};"\
6703" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6704" \$ 0!~/External *\|/{next};"\
6705" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6706" {if(hide[section]) next};"\
6707" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6708" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6709" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6710" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6711" ' prfx=^$ac_symprfx"
6712 else
6713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6714 fi
d7040cdb 6715
7357c5b6
AM
6716 # Check to see that the pipe works correctly.
6717 pipe_works=no
d7040cdb 6718
7357c5b6
AM
6719 rm -f conftest*
6720 cat > conftest.$ac_ext <<_LT_EOF
6721#ifdef __cplusplus
6722extern "C" {
6723#endif
6724char nm_test_var;
6725void nm_test_func(void);
6726void nm_test_func(void){}
6727#ifdef __cplusplus
dabbade6 6728}
7357c5b6
AM
6729#endif
6730int main(){nm_test_var='a';nm_test_func();return(0);}
6731_LT_EOF
6732
81ecdfbb 6733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6734 (eval $ac_compile) 2>&5
dabbade6 6735 ac_status=$?
81ecdfbb
RW
6736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }; then
7357c5b6
AM
6738 # Now try to grab the symbols.
6739 nlist=conftest.nm
3725885a
RW
6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6741 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
dabbade6 6742 ac_status=$?
81ecdfbb
RW
6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6745 # Try sorting and uniquifying the output.
6746 if sort "$nlist" | uniq > "$nlist"T; then
6747 mv -f "$nlist"T "$nlist"
6748 else
6749 rm -f "$nlist"T
6750 fi
d7040cdb 6751
7357c5b6
AM
6752 # Make sure that we snagged all the symbols we need.
6753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6755 cat <<_LT_EOF > conftest.$ac_ext
6756#ifdef __cplusplus
6757extern "C" {
6758#endif
d7040cdb 6759
7357c5b6
AM
6760_LT_EOF
6761 # Now generate the symbol file.
6762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d7040cdb 6763
7357c5b6 6764 cat <<_LT_EOF >> conftest.$ac_ext
d7040cdb 6765
7357c5b6
AM
6766/* The mapping between symbol names and symbols. */
6767const struct {
6768 const char *name;
6769 void *address;
6770}
6771lt__PROGRAM__LTX_preloaded_symbols[] =
6772{
6773 { "@PROGRAM@", (void *) 0 },
6774_LT_EOF
6775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6776 cat <<\_LT_EOF >> conftest.$ac_ext
6777 {0, (void *) 0}
6778};
d7040cdb 6779
7357c5b6
AM
6780/* This works around a problem in FreeBSD linker */
6781#ifdef FREEBSD_WORKAROUND
6782static const void *lt_preloaded_setup() {
6783 return lt__PROGRAM__LTX_preloaded_symbols;
6784}
dabbade6 6785#endif
d7040cdb 6786
7357c5b6 6787#ifdef __cplusplus
dabbade6 6788}
7357c5b6
AM
6789#endif
6790_LT_EOF
6791 # Now try linking the two files.
6792 mv conftest.$ac_objext conftstm.$ac_objext
6793 lt_save_LIBS="$LIBS"
6794 lt_save_CFLAGS="$CFLAGS"
6795 LIBS="conftstm.$ac_objext"
6796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
6798 (eval $ac_link) 2>&5
6799 ac_status=$?
81ecdfbb
RW
6800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6802 pipe_works=yes
6803 fi
6804 LIBS="$lt_save_LIBS"
6805 CFLAGS="$lt_save_CFLAGS"
6806 else
6807 echo "cannot find nm_test_func in $nlist" >&5
6808 fi
6809 else
6810 echo "cannot find nm_test_var in $nlist" >&5
6811 fi
6812 else
6813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6814 fi
6815 else
6816 echo "$progname: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6818 fi
1927a18f 6819 rm -rf conftest* conftst*
7357c5b6
AM
6820
6821 # Do not use the global_symbol_pipe unless it works.
6822 if test "$pipe_works" = yes; then
6823 break
6824 else
6825 lt_cv_sys_global_symbol_pipe=
6826 fi
6827done
d7040cdb 6828
dabbade6 6829fi
7357c5b6
AM
6830
6831if test -z "$lt_cv_sys_global_symbol_pipe"; then
6832 lt_cv_sys_global_symbol_to_cdecl=
dabbade6 6833fi
7357c5b6 6834if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6836$as_echo "failed" >&6; }
7357c5b6 6837else
81ecdfbb
RW
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6839$as_echo "ok" >&6; }
dabbade6 6840fi
d7040cdb 6841
d7040cdb 6842
d7040cdb 6843
d7040cdb 6844
d7040cdb 6845
d7040cdb 6846
d7040cdb 6847
d7040cdb 6848
d7040cdb 6849
d7040cdb 6850
d7040cdb 6851
d7040cdb 6852
7357c5b6
AM
6853
6854
6855
1927a18f
L
6856
6857
6858
6859
6860
7357c5b6
AM
6861
6862
81ecdfbb
RW
6863# Check whether --enable-libtool-lock was given.
6864if test "${enable_libtool_lock+set}" = set; then :
6865 enableval=$enable_libtool_lock;
6866fi
7357c5b6 6867
7357c5b6
AM
6868test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6869
6870# Some flags need to be propagated to the compiler or linker for good
6871# libtool support.
6872case $host in
6873ia64-*-hpux*)
6874 # Find out which ABI we are using.
6875 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6877 (eval $ac_compile) 2>&5
6878 ac_status=$?
81ecdfbb
RW
6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880 test $ac_status = 0; }; then
7357c5b6
AM
6881 case `/usr/bin/file conftest.$ac_objext` in
6882 *ELF-32*)
6883 HPUX_IA64_MODE="32"
6884 ;;
6885 *ELF-64*)
6886 HPUX_IA64_MODE="64"
6887 ;;
6888 esac
6889 fi
6890 rm -rf conftest*
6891 ;;
6892*-*-irix6*)
6893 # Find out which ABI we are using.
3725885a 6894 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 6895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6896 (eval $ac_compile) 2>&5
6897 ac_status=$?
81ecdfbb
RW
6898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899 test $ac_status = 0; }; then
7357c5b6
AM
6900 if test "$lt_cv_prog_gnu_ld" = yes; then
6901 case `/usr/bin/file conftest.$ac_objext` in
6902 *32-bit*)
6903 LD="${LD-ld} -melf32bsmip"
6904 ;;
6905 *N32*)
6906 LD="${LD-ld} -melf32bmipn32"
6907 ;;
6908 *64-bit*)
6909 LD="${LD-ld} -melf64bmip"
6910 ;;
6911 esac
6912 else
6913 case `/usr/bin/file conftest.$ac_objext` in
6914 *32-bit*)
6915 LD="${LD-ld} -32"
6916 ;;
6917 *N32*)
6918 LD="${LD-ld} -n32"
6919 ;;
6920 *64-bit*)
6921 LD="${LD-ld} -64"
6922 ;;
6923 esac
6924 fi
6925 fi
6926 rm -rf conftest*
6927 ;;
6928
6929x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6930s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6931 # Find out which ABI we are using.
6932 echo 'int i;' > conftest.$ac_ext
81ecdfbb 6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
81ecdfbb
RW
6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; then
7357c5b6
AM
6938 case `/usr/bin/file conftest.o` in
6939 *32-bit*)
6940 case $host in
6941 x86_64-*kfreebsd*-gnu)
6942 LD="${LD-ld} -m elf_i386_fbsd"
6943 ;;
6944 x86_64-*linux*)
6945 LD="${LD-ld} -m elf_i386"
6946 ;;
6947 ppc64-*linux*|powerpc64-*linux*)
6948 LD="${LD-ld} -m elf32ppclinux"
6949 ;;
6950 s390x-*linux*)
6951 LD="${LD-ld} -m elf_s390"
6952 ;;
6953 sparc64-*linux*)
6954 LD="${LD-ld} -m elf32_sparc"
6955 ;;
6956 esac
6957 ;;
6958 *64-bit*)
6959 case $host in
6960 x86_64-*kfreebsd*-gnu)
6961 LD="${LD-ld} -m elf_x86_64_fbsd"
6962 ;;
6963 x86_64-*linux*)
6964 LD="${LD-ld} -m elf_x86_64"
6965 ;;
6966 ppc*-*linux*|powerpc*-*linux*)
6967 LD="${LD-ld} -m elf64ppc"
6968 ;;
6969 s390*-*linux*|s390*-*tpf*)
6970 LD="${LD-ld} -m elf64_s390"
6971 ;;
6972 sparc*-*linux*)
6973 LD="${LD-ld} -m elf64_sparc"
6974 ;;
6975 esac
6976 ;;
6977 esac
6978 fi
6979 rm -rf conftest*
6980 ;;
6981
6982*-*-sco3.2v5*)
6983 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6984 SAVE_CFLAGS="$CFLAGS"
6985 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6987$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6988if test "${lt_cv_cc_needs_belf+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
dabbade6 6990else
7357c5b6
AM
6991 ac_ext=c
6992ac_cpp='$CPP $CPPFLAGS'
6993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996
81ecdfbb 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 6998/* end confdefs.h. */
d7040cdb 6999
7357c5b6
AM
7000int
7001main ()
7002{
7003
7004 ;
7005 return 0;
7006}
dabbade6 7007_ACEOF
81ecdfbb 7008if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7009 lt_cv_cc_needs_belf=yes
dabbade6 7010else
81ecdfbb 7011 lt_cv_cc_needs_belf=no
dabbade6 7012fi
81ecdfbb
RW
7013rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7015 ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7020
dabbade6 7021fi
81ecdfbb
RW
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7023$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7024 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7025 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7026 CFLAGS="$SAVE_CFLAGS"
7027 fi
7028 ;;
7029sparc*-*solaris*)
7030 # Find out which ABI we are using.
7031 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7033 (eval $ac_compile) 2>&5
7034 ac_status=$?
81ecdfbb
RW
7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }; then
7357c5b6
AM
7037 case `/usr/bin/file conftest.o` in
7038 *64-bit*)
7039 case $lt_cv_prog_gnu_ld in
7040 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1927a18f
L
7041 *)
7042 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7043 LD="${LD-ld} -64"
7044 fi
7045 ;;
7357c5b6
AM
7046 esac
7047 ;;
7048 esac
7049 fi
7050 rm -rf conftest*
7051 ;;
7052esac
d7040cdb 7053
7357c5b6 7054need_locks="$enable_libtool_lock"
d7040cdb 7055
d7040cdb 7056
1927a18f
L
7057 case $host_os in
7058 rhapsody* | darwin*)
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7061set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063$as_echo_n "checking for $ac_word... " >&6; }
7064if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
1927a18f
L
7066else
7067 if test -n "$DSYMUTIL"; then
7068 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7077 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7079 break 2
7080 fi
7081done
81ecdfbb
RW
7082 done
7083IFS=$as_save_IFS
1927a18f
L
7084
7085fi
7086fi
7087DSYMUTIL=$ac_cv_prog_DSYMUTIL
7088if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7090$as_echo "$DSYMUTIL" >&6; }
1927a18f 7091else
81ecdfbb
RW
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
1927a18f
L
7094fi
7095
81ecdfbb 7096
1927a18f
L
7097fi
7098if test -z "$ac_cv_prog_DSYMUTIL"; then
7099 ac_ct_DSYMUTIL=$DSYMUTIL
7100 # Extract the first word of "dsymutil", so it can be a program name with args.
7101set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
7104if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
1927a18f
L
7106else
7107 if test -n "$ac_ct_DSYMUTIL"; then
7108 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7117 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7119 break 2
7120 fi
7121done
81ecdfbb
RW
7122 done
7123IFS=$as_save_IFS
1927a18f 7124
1927a18f
L
7125fi
7126fi
7127ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7128if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7130$as_echo "$ac_ct_DSYMUTIL" >&6; }
1927a18f 7131else
81ecdfbb
RW
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
1927a18f
L
7134fi
7135
81ecdfbb
RW
7136 if test "x$ac_ct_DSYMUTIL" = x; then
7137 DSYMUTIL=":"
7138 else
7139 case $cross_compiling:$ac_tool_warned in
7140yes:)
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143ac_tool_warned=yes ;;
7144esac
7145 DSYMUTIL=$ac_ct_DSYMUTIL
7146 fi
1927a18f
L
7147else
7148 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7149fi
7150
7151 if test -n "$ac_tool_prefix"; then
7152 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
1927a18f
L
7158else
7159 if test -n "$NMEDIT"; then
7160 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7169 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7171 break 2
7172 fi
7173done
81ecdfbb
RW
7174 done
7175IFS=$as_save_IFS
1927a18f
L
7176
7177fi
7178fi
7179NMEDIT=$ac_cv_prog_NMEDIT
7180if test -n "$NMEDIT"; then
81ecdfbb
RW
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7182$as_echo "$NMEDIT" >&6; }
1927a18f 7183else
81ecdfbb
RW
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
1927a18f
L
7186fi
7187
81ecdfbb 7188
1927a18f
L
7189fi
7190if test -z "$ac_cv_prog_NMEDIT"; then
7191 ac_ct_NMEDIT=$NMEDIT
7192 # Extract the first word of "nmedit", so it can be a program name with args.
7193set dummy nmedit; ac_word=$2
81ecdfbb
RW
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
1927a18f
L
7198else
7199 if test -n "$ac_ct_NMEDIT"; then
7200 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7209 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7211 break 2
7212 fi
7213done
81ecdfbb
RW
7214 done
7215IFS=$as_save_IFS
1927a18f 7216
1927a18f
L
7217fi
7218fi
7219ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7220if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7222$as_echo "$ac_ct_NMEDIT" >&6; }
1927a18f 7223else
81ecdfbb
RW
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
1927a18f
L
7226fi
7227
81ecdfbb
RW
7228 if test "x$ac_ct_NMEDIT" = x; then
7229 NMEDIT=":"
7230 else
7231 case $cross_compiling:$ac_tool_warned in
7232yes:)
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235ac_tool_warned=yes ;;
7236esac
7237 NMEDIT=$ac_ct_NMEDIT
7238 fi
1927a18f
L
7239else
7240 NMEDIT="$ac_cv_prog_NMEDIT"
7241fi
7242
7243 if test -n "$ac_tool_prefix"; then
7244 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7245set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if test "${ac_cv_prog_LIPO+set}" = set; then :
7249 $as_echo_n "(cached) " >&6
1927a18f
L
7250else
7251 if test -n "$LIPO"; then
7252 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7261 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7263 break 2
7264 fi
7265done
81ecdfbb
RW
7266 done
7267IFS=$as_save_IFS
1927a18f
L
7268
7269fi
7270fi
7271LIPO=$ac_cv_prog_LIPO
7272if test -n "$LIPO"; then
81ecdfbb
RW
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7274$as_echo "$LIPO" >&6; }
1927a18f 7275else
81ecdfbb
RW
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
1927a18f
L
7278fi
7279
81ecdfbb 7280
1927a18f
L
7281fi
7282if test -z "$ac_cv_prog_LIPO"; then
7283 ac_ct_LIPO=$LIPO
7284 # Extract the first word of "lipo", so it can be a program name with args.
7285set dummy lipo; ac_word=$2
81ecdfbb
RW
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
1927a18f
L
7290else
7291 if test -n "$ac_ct_LIPO"; then
7292 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7301 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7303 break 2
7304 fi
7305done
81ecdfbb
RW
7306 done
7307IFS=$as_save_IFS
1927a18f 7308
1927a18f
L
7309fi
7310fi
7311ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7312if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7314$as_echo "$ac_ct_LIPO" >&6; }
1927a18f 7315else
81ecdfbb
RW
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
1927a18f
L
7318fi
7319
81ecdfbb
RW
7320 if test "x$ac_ct_LIPO" = x; then
7321 LIPO=":"
7322 else
7323 case $cross_compiling:$ac_tool_warned in
7324yes:)
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329 LIPO=$ac_ct_LIPO
7330 fi
1927a18f
L
7331else
7332 LIPO="$ac_cv_prog_LIPO"
7333fi
7334
7335 if test -n "$ac_tool_prefix"; then
7336 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7337set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
7340if test "${ac_cv_prog_OTOOL+set}" = set; then :
7341 $as_echo_n "(cached) " >&6
1927a18f
L
7342else
7343 if test -n "$OTOOL"; then
7344 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349 IFS=$as_save_IFS
7350 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7353 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7355 break 2
7356 fi
7357done
81ecdfbb
RW
7358 done
7359IFS=$as_save_IFS
1927a18f
L
7360
7361fi
7362fi
7363OTOOL=$ac_cv_prog_OTOOL
7364if test -n "$OTOOL"; then
81ecdfbb
RW
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7366$as_echo "$OTOOL" >&6; }
1927a18f 7367else
81ecdfbb
RW
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
1927a18f
L
7370fi
7371
81ecdfbb 7372
1927a18f
L
7373fi
7374if test -z "$ac_cv_prog_OTOOL"; then
7375 ac_ct_OTOOL=$OTOOL
7376 # Extract the first word of "otool", so it can be a program name with args.
7377set dummy otool; ac_word=$2
81ecdfbb
RW
7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379$as_echo_n "checking for $ac_word... " >&6; }
7380if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
1927a18f
L
7382else
7383 if test -n "$ac_ct_OTOOL"; then
7384 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7385else
7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387for as_dir in $PATH
7388do
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7393 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7395 break 2
7396 fi
7397done
81ecdfbb
RW
7398 done
7399IFS=$as_save_IFS
1927a18f 7400
1927a18f
L
7401fi
7402fi
7403ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7404if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7406$as_echo "$ac_ct_OTOOL" >&6; }
1927a18f 7407else
81ecdfbb
RW
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409$as_echo "no" >&6; }
1927a18f
L
7410fi
7411
81ecdfbb
RW
7412 if test "x$ac_ct_OTOOL" = x; then
7413 OTOOL=":"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416yes:)
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419ac_tool_warned=yes ;;
7420esac
7421 OTOOL=$ac_ct_OTOOL
7422 fi
1927a18f
L
7423else
7424 OTOOL="$ac_cv_prog_OTOOL"
7425fi
7426
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7429set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431$as_echo_n "checking for $ac_word... " >&6; }
7432if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7433 $as_echo_n "(cached) " >&6
1927a18f
L
7434else
7435 if test -n "$OTOOL64"; then
7436 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441 IFS=$as_save_IFS
7442 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7445 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7447 break 2
7448 fi
7449done
81ecdfbb
RW
7450 done
7451IFS=$as_save_IFS
1927a18f
L
7452
7453fi
7454fi
7455OTOOL64=$ac_cv_prog_OTOOL64
7456if test -n "$OTOOL64"; then
81ecdfbb
RW
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7458$as_echo "$OTOOL64" >&6; }
1927a18f 7459else
81ecdfbb
RW
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461$as_echo "no" >&6; }
1927a18f
L
7462fi
7463
81ecdfbb 7464
1927a18f
L
7465fi
7466if test -z "$ac_cv_prog_OTOOL64"; then
7467 ac_ct_OTOOL64=$OTOOL64
7468 # Extract the first word of "otool64", so it can be a program name with args.
7469set dummy otool64; ac_word=$2
81ecdfbb
RW
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471$as_echo_n "checking for $ac_word... " >&6; }
7472if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7473 $as_echo_n "(cached) " >&6
1927a18f
L
7474else
7475 if test -n "$ac_ct_OTOOL64"; then
7476 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7477else
7478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479for as_dir in $PATH
7480do
7481 IFS=$as_save_IFS
7482 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927a18f 7485 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1927a18f
L
7487 break 2
7488 fi
7489done
81ecdfbb
RW
7490 done
7491IFS=$as_save_IFS
1927a18f 7492
1927a18f
L
7493fi
7494fi
7495ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7496if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7498$as_echo "$ac_ct_OTOOL64" >&6; }
1927a18f 7499else
81ecdfbb
RW
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501$as_echo "no" >&6; }
1927a18f
L
7502fi
7503
81ecdfbb
RW
7504 if test "x$ac_ct_OTOOL64" = x; then
7505 OTOOL64=":"
7506 else
7507 case $cross_compiling:$ac_tool_warned in
7508yes:)
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511ac_tool_warned=yes ;;
7512esac
7513 OTOOL64=$ac_ct_OTOOL64
7514 fi
1927a18f
L
7515else
7516 OTOOL64="$ac_cv_prog_OTOOL64"
7517fi
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
81ecdfbb
RW
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7546$as_echo_n "checking for -single_module linker flag... " >&6; }
7547if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
1927a18f
L
7549else
7550 lt_cv_apple_cc_single_mod=no
7551 if test -z "${LT_MULTI_MODULE}"; then
7552 # By default we will add the -single_module flag. You can override
7553 # by either setting the environment variable LT_MULTI_MODULE
7554 # non-empty at configure time, or by adding -multi_module to the
7555 # link flags.
7556 rm -rf libconftest.dylib*
7557 echo "int foo(void){return 1;}" > conftest.c
7558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7559-dynamiclib -Wl,-single_module conftest.c" >&5
7560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7562 _lt_result=$?
7563 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7564 lt_cv_apple_cc_single_mod=yes
7565 else
7566 cat conftest.err >&5
7567 fi
7568 rm -rf libconftest.dylib*
7569 rm -f conftest.*
7570 fi
7571fi
81ecdfbb
RW
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7573$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7575$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7576if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
1927a18f
L
7578else
7579 lt_cv_ld_exported_symbols_list=no
7580 save_LDFLAGS=$LDFLAGS
7581 echo "_main" > conftest.sym
7582 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927a18f
L
7584/* end confdefs.h. */
7585
7586int
7587main ()
7588{
7589
7590 ;
7591 return 0;
7592}
7593_ACEOF
81ecdfbb 7594if ac_fn_c_try_link "$LINENO"; then :
1927a18f
L
7595 lt_cv_ld_exported_symbols_list=yes
7596else
81ecdfbb 7597 lt_cv_ld_exported_symbols_list=no
1927a18f 7598fi
81ecdfbb
RW
7599rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
1927a18f
L
7601 LDFLAGS="$save_LDFLAGS"
7602
7603fi
81ecdfbb
RW
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7605$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7607$as_echo_n "checking for -force_load linker flag... " >&6; }
7608if test "${lt_cv_ld_force_load+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610else
7611 lt_cv_ld_force_load=no
7612 cat > conftest.c << _LT_EOF
7613int forced_loaded() { return 2;}
7614_LT_EOF
7615 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7616 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7617 echo "$AR cru libconftest.a conftest.o" >&5
7618 $AR cru libconftest.a conftest.o 2>&5
7619 cat > conftest.c << _LT_EOF
7620int main() { return 0;}
7621_LT_EOF
7622 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7623 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7624 _lt_result=$?
7625 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7626 lt_cv_ld_force_load=yes
7627 else
7628 cat conftest.err >&5
7629 fi
7630 rm -f conftest.err libconftest.a conftest conftest.c
7631 rm -rf conftest.dSYM
7632
7633fi
7634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7635$as_echo "$lt_cv_ld_force_load" >&6; }
1927a18f
L
7636 case $host_os in
7637 rhapsody* | darwin1.[012])
7638 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7639 darwin1.*)
7640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7641 darwin*) # darwin 5.x on
7642 # if running on 10.5 or later, the deployment target defaults
7643 # to the OS version, if on x86, and 10.4, the deployment
7644 # target defaults to 10.4. Don't you love it?
7645 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7646 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7648 10.[012]*)
7649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7650 10.*)
7651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7652 esac
7653 ;;
7654 esac
7655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7656 _lt_dar_single_mod='$single_module'
7657 fi
7658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7659 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7660 else
7661 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7662 fi
3725885a 7663 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1927a18f
L
7664 _lt_dsymutil='~$DSYMUTIL $lib || :'
7665 else
7666 _lt_dsymutil=
7667 fi
7668 ;;
7669 esac
7670
dabbade6 7671for ac_header in dlfcn.h
81ecdfbb
RW
7672do :
7673 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7674"
7675if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
dabbade6 7676 cat >>confdefs.h <<_ACEOF
81ecdfbb 7677#define HAVE_DLFCN_H 1
dabbade6 7678_ACEOF
d7040cdb 7679
dabbade6 7680fi
d7040cdb 7681
dabbade6 7682done
d7040cdb 7683
d7040cdb 7684
d7040cdb 7685
3725885a
RW
7686
7687
1927a18f
L
7688# Set options
7689
7690
7691
7692 enable_dlopen=no
7693
7694
7695 enable_win32_dll=no
7696
7697
7698
81ecdfbb
RW
7699 # Check whether --enable-static was given.
7700if test "${enable_static+set}" = set; then :
7701 enableval=$enable_static; p=${PACKAGE-default}
1927a18f
L
7702 case $enableval in
7703 yes) enable_static=yes ;;
7704 no) enable_static=no ;;
7705 *)
7706 enable_static=no
7707 # Look at the argument we got. We use all the common list separators.
7708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7709 for pkg in $enableval; do
7710 IFS="$lt_save_ifs"
7711 if test "X$pkg" = "X$p"; then
7712 enable_static=yes
7713 fi
7714 done
7715 IFS="$lt_save_ifs"
7716 ;;
7717 esac
7718else
7719 enable_static=yes
81ecdfbb 7720fi
1927a18f
L
7721
7722
7723
7724
7725
7726
7727
7728
7729
81ecdfbb
RW
7730
7731# Check whether --with-pic was given.
7732if test "${with_pic+set}" = set; then :
7733 withval=$with_pic; pic_mode="$withval"
1927a18f
L
7734else
7735 pic_mode=default
81ecdfbb
RW
7736fi
7737
1927a18f
L
7738
7739test -z "$pic_mode" && pic_mode=default
7740
7741
7742
7743
7744
7745
7746
81ecdfbb
RW
7747 # Check whether --enable-fast-install was given.
7748if test "${enable_fast_install+set}" = set; then :
7749 enableval=$enable_fast_install; p=${PACKAGE-default}
1927a18f
L
7750 case $enableval in
7751 yes) enable_fast_install=yes ;;
7752 no) enable_fast_install=no ;;
7753 *)
7754 enable_fast_install=no
7755 # Look at the argument we got. We use all the common list separators.
7756 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7757 for pkg in $enableval; do
7758 IFS="$lt_save_ifs"
7759 if test "X$pkg" = "X$p"; then
7760 enable_fast_install=yes
7761 fi
7762 done
7763 IFS="$lt_save_ifs"
7764 ;;
7765 esac
7766else
7767 enable_fast_install=yes
81ecdfbb
RW
7768fi
7769
1927a18f
L
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
dabbade6
L
7780# This can be used to rebuild libtool when needed
7781LIBTOOL_DEPS="$ltmain"
d7040cdb 7782
dabbade6
L
7783# Always use our own libtool.
7784LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 7785
d7040cdb 7786
d7040cdb 7787
d7040cdb
SE
7788
7789
7790
7791
7792
7793
d7040cdb 7794
d7040cdb 7795
d7040cdb 7796
d7040cdb
SE
7797
7798
7799
7800
7801
7802
d7040cdb 7803
d7040cdb 7804
d7040cdb
SE
7805
7806
7807
3725885a 7808
d7040cdb
SE
7809
7810
dabbade6 7811test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
7812
7813
d7040cdb 7814
d7040cdb 7815
d7040cdb
SE
7816
7817
7818
7819
7820
7821
dabbade6
L
7822
7823
7824
7825
7826if test -n "${ZSH_VERSION+set}" ; then
7827 setopt NO_GLOB_SUBST
7828fi
7829
81ecdfbb
RW
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7831$as_echo_n "checking for objdir... " >&6; }
7832if test "${lt_cv_objdir+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
d7040cdb 7834else
dabbade6
L
7835 rm -f .libs 2>/dev/null
7836mkdir .libs 2>/dev/null
7837if test -d .libs; then
7838 lt_cv_objdir=.libs
7839else
7840 # MS-DOS does not allow filenames that begin with a dot.
7841 lt_cv_objdir=_libs
d7040cdb 7842fi
dabbade6
L
7843rmdir .libs 2>/dev/null
7844fi
81ecdfbb
RW
7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7846$as_echo "$lt_cv_objdir" >&6; }
dabbade6 7847objdir=$lt_cv_objdir
d7040cdb
SE
7848
7849
7850
7851
d7040cdb 7852
dabbade6
L
7853cat >>confdefs.h <<_ACEOF
7854#define LT_OBJDIR "$lt_cv_objdir/"
7855_ACEOF
d7040cdb
SE
7856
7857
7858
7859
dabbade6
L
7860case $host_os in
7861aix3*)
7862 # AIX sometimes has problems with the GCC collect2 program. For some
7863 # reason, if we set the COLLECT_NAMES environment variable, the problems
7864 # vanish in a puff of smoke.
7865 if test "X${COLLECT_NAMES+set}" != Xset; then
7866 COLLECT_NAMES=
7867 export COLLECT_NAMES
7868 fi
7869 ;;
7870esac
d7040cdb 7871
dabbade6
L
7872# Global variables:
7873ofile=libtool
7874can_build_shared=yes
d7040cdb 7875
dabbade6
L
7876# All known linkers require a `.a' archive for static linking (except MSVC,
7877# which needs '.lib').
7878libext=a
d7040cdb 7879
dabbade6 7880with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 7881
dabbade6
L
7882old_CC="$CC"
7883old_CFLAGS="$CFLAGS"
d7040cdb 7884
dabbade6
L
7885# Set sane defaults for various variables
7886test -z "$CC" && CC=cc
7887test -z "$LTCC" && LTCC=$CC
7888test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7889test -z "$LD" && LD=ld
7890test -z "$ac_objext" && ac_objext=o
7891
7892for cc_temp in $compiler""; do
7893 case $cc_temp in
7894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7896 \-*) ;;
7897 *) break;;
7898 esac
7899done
3725885a 7900cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
dabbade6
L
7901
7902
7903# Only perform the check for file, if the check method requires it
7904test -z "$MAGIC_CMD" && MAGIC_CMD=file
7905case $deplibs_check_method in
7906file_magic*)
7907 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7909$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7910if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
dabbade6
L
7912else
7913 case $MAGIC_CMD in
7914[\\/*] | ?:[\\/]*)
7915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7916 ;;
7917*)
7918 lt_save_MAGIC_CMD="$MAGIC_CMD"
7919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7921 for ac_dir in $ac_dummy; do
7922 IFS="$lt_save_ifs"
7923 test -z "$ac_dir" && ac_dir=.
7924 if test -f $ac_dir/${ac_tool_prefix}file; then
7925 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7926 if test -n "$file_magic_test_file"; then
7927 case $deplibs_check_method in
7928 "file_magic "*)
7929 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7932 $EGREP "$file_magic_regex" > /dev/null; then
7933 :
d7040cdb 7934 else
dabbade6 7935 cat <<_LT_EOF 1>&2
d7040cdb 7936
dabbade6
L
7937*** Warning: the command libtool uses to detect shared libraries,
7938*** $file_magic_cmd, produces output that libtool cannot recognize.
7939*** The result is that libtool may fail to recognize shared libraries
7940*** as such. This will affect the creation of libtool libraries that
7941*** depend on shared libraries, but programs linked with such libtool
7942*** libraries will work regardless of this problem. Nevertheless, you
7943*** may want to report the problem to your system manager and/or to
7944*** bug-libtool@gnu.org
d7040cdb 7945
dabbade6
L
7946_LT_EOF
7947 fi ;;
7948 esac
d7040cdb 7949 fi
dabbade6 7950 break
d7040cdb 7951 fi
dabbade6
L
7952 done
7953 IFS="$lt_save_ifs"
7954 MAGIC_CMD="$lt_save_MAGIC_CMD"
7955 ;;
7956esac
7957fi
d7040cdb 7958
dabbade6
L
7959MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7960if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7962$as_echo "$MAGIC_CMD" >&6; }
dabbade6 7963else
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
dabbade6 7966fi
d7040cdb 7967
d7040cdb 7968
d7040cdb 7969
d7040cdb 7970
d7040cdb 7971
dabbade6
L
7972if test -z "$lt_cv_path_MAGIC_CMD"; then
7973 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7975$as_echo_n "checking for file... " >&6; }
7976if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
dabbade6
L
7978else
7979 case $MAGIC_CMD in
7980[\\/*] | ?:[\\/]*)
7981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7982 ;;
7983*)
7984 lt_save_MAGIC_CMD="$MAGIC_CMD"
7985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7987 for ac_dir in $ac_dummy; do
7988 IFS="$lt_save_ifs"
7989 test -z "$ac_dir" && ac_dir=.
7990 if test -f $ac_dir/file; then
7991 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7992 if test -n "$file_magic_test_file"; then
7993 case $deplibs_check_method in
7994 "file_magic "*)
7995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7998 $EGREP "$file_magic_regex" > /dev/null; then
7999 :
d7040cdb 8000 else
dabbade6 8001 cat <<_LT_EOF 1>&2
d7040cdb 8002
dabbade6
L
8003*** Warning: the command libtool uses to detect shared libraries,
8004*** $file_magic_cmd, produces output that libtool cannot recognize.
8005*** The result is that libtool may fail to recognize shared libraries
8006*** as such. This will affect the creation of libtool libraries that
8007*** depend on shared libraries, but programs linked with such libtool
8008*** libraries will work regardless of this problem. Nevertheless, you
8009*** may want to report the problem to your system manager and/or to
8010*** bug-libtool@gnu.org
d7040cdb 8011
dabbade6
L
8012_LT_EOF
8013 fi ;;
8014 esac
8015 fi
8016 break
8017 fi
8018 done
8019 IFS="$lt_save_ifs"
8020 MAGIC_CMD="$lt_save_MAGIC_CMD"
8021 ;;
8022esac
d7040cdb 8023fi
dabbade6
L
8024
8025MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8026if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8028$as_echo "$MAGIC_CMD" >&6; }
d7040cdb 8029else
81ecdfbb
RW
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
dabbade6
L
8032fi
8033
d7040cdb 8034
dabbade6
L
8035 else
8036 MAGIC_CMD=:
8037 fi
d7040cdb 8038fi
d7040cdb 8039
dabbade6
L
8040 fi
8041 ;;
8042esac
d7040cdb 8043
dabbade6 8044# Use C for the default configuration in the libtool script
d7040cdb 8045
dabbade6
L
8046lt_save_CC="$CC"
8047ac_ext=c
8048ac_cpp='$CPP $CPPFLAGS'
8049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8052
d7040cdb 8053
dabbade6
L
8054# Source file extension for C test sources.
8055ac_ext=c
d7040cdb 8056
dabbade6
L
8057# Object file extension for compiled C test sources.
8058objext=o
8059objext=$objext
8060
8061# Code to be used in simple compile tests
8062lt_simple_compile_test_code="int some_variable = 0;"
8063
8064# Code to be used in simple link tests
8065lt_simple_link_test_code='int main(){return(0);}'
8066
8067
8068
8069
8070
8071
8072
8073# If no C compiler was specified, use CC.
8074LTCC=${LTCC-"$CC"}
8075
8076# If no C compiler flags were specified, use CFLAGS.
8077LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8078
8079# Allow CC to be a program name with arguments.
8080compiler=$CC
8081
8082# Save the default compiler, since it gets overwritten when the other
8083# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8084compiler_DEFAULT=$CC
8085
8086# save warnings/boilerplate of simple test code
8087ac_outfile=conftest.$ac_objext
8088echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090_lt_compiler_boilerplate=`cat conftest.err`
8091$RM conftest*
8092
8093ac_outfile=conftest.$ac_objext
8094echo "$lt_simple_link_test_code" >conftest.$ac_ext
8095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096_lt_linker_boilerplate=`cat conftest.err`
1927a18f 8097$RM -r conftest*
dabbade6
L
8098
8099
8100## CAVEAT EMPTOR:
8101## There is no encapsulation within the following macros, do not change
8102## the running order or otherwise move them around unless you know exactly
8103## what you are doing...
8104if test -n "$compiler"; then
8105
8106lt_prog_compiler_no_builtin_flag=
8107
8108if test "$GCC" = yes; then
3725885a
RW
8109 case $cc_basename in
8110 nvcc*)
8111 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8112 *)
8113 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8114 esac
dabbade6 8115
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8117$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8118if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
dabbade6
L
8120else
8121 lt_cv_prog_compiler_rtti_exceptions=no
8122 ac_outfile=conftest.$ac_objext
8123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8124 lt_compiler_flag="-fno-rtti -fno-exceptions"
8125 # Insert the option either (1) after the last *FLAGS variable, or
8126 # (2) before a word containing "conftest.", or (3) at the end.
8127 # Note that $ac_compile itself does not contain backslashes and begins
8128 # with a dollar sign (not a hyphen), so the echo should work correctly.
8129 # The option is referenced via a variable to avoid confusing sed.
8130 lt_compile=`echo "$ac_compile" | $SED \
8131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8133 -e 's:$: $lt_compiler_flag:'`
3725885a 8134 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8135 (eval "$lt_compile" 2>conftest.err)
8136 ac_status=$?
8137 cat conftest.err >&5
3725885a 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8139 if (exit $ac_status) && test -s "$ac_outfile"; then
8140 # The compiler can only warn and ignore the option if not recognized
8141 # So say no if there are warnings other than the usual output.
3725885a 8142 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8144 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8145 lt_cv_prog_compiler_rtti_exceptions=yes
8146 fi
8147 fi
8148 $RM conftest*
8149
8150fi
81ecdfbb
RW
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8152$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
dabbade6
L
8153
8154if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8155 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8156else
8157 :
8158fi
8159
8160fi
8161
8162
8163
8164
8165
8166
8167 lt_prog_compiler_wl=
8168lt_prog_compiler_pic=
8169lt_prog_compiler_static=
8170
81ecdfbb
RW
8171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8172$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
dabbade6
L
8173
8174 if test "$GCC" = yes; then
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_static='-static'
8177
8178 case $host_os in
8179 aix*)
8180 # All AIX code is PIC.
8181 if test "$host_cpu" = ia64; then
8182 # AIX 5 now supports IA64 processor
8183 lt_prog_compiler_static='-Bstatic'
8184 fi
8185 ;;
d7040cdb
SE
8186
8187 amigaos*)
1927a18f
L
8188 case $host_cpu in
8189 powerpc)
8190 # see comment about AmigaOS4 .so support
8191 lt_prog_compiler_pic='-fPIC'
8192 ;;
8193 m68k)
8194 # FIXME: we need at least 68020 code to build shared libraries, but
8195 # adding the `-m68020' flag to GCC prevents building anything better,
8196 # like `-m68040'.
8197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8198 ;;
8199 esac
d7040cdb
SE
8200 ;;
8201
dabbade6
L
8202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8203 # PIC is the default for these OSes.
d7040cdb
SE
8204 ;;
8205
1927a18f 8206 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8207 # This hack is so that the source file can tell whether it is being
8208 # built for inclusion in a dll (and should export symbols for example).
8209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8210 # (--disable-auto-import) libraries
8211 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8212 ;;
8213
8214 darwin* | rhapsody*)
dabbade6
L
8215 # PIC is the default on this platform
8216 # Common symbols not allowed in MH_DYLIB files
8217 lt_prog_compiler_pic='-fno-common'
8218 ;;
8219
3725885a
RW
8220 haiku*)
8221 # PIC is the default for Haiku.
8222 # The "-static" flag exists, but is broken.
8223 lt_prog_compiler_static=
8224 ;;
8225
dabbade6 8226 hpux*)
1927a18f
L
8227 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8228 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8229 # sets the default TLS model and affects inlining.
dabbade6 8230 case $host_cpu in
1927a18f 8231 hppa*64*)
dabbade6 8232 # +Z the default
d7040cdb 8233 ;;
dabbade6
L
8234 *)
8235 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8236 ;;
8237 esac
dabbade6 8238 ;;
d7040cdb 8239
dabbade6
L
8240 interix[3-9]*)
8241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8242 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8243 ;;
8244
dabbade6
L
8245 msdosdjgpp*)
8246 # Just because we use GCC doesn't mean we suddenly get shared libraries
8247 # on systems that don't support them.
8248 lt_prog_compiler_can_build_shared=no
8249 enable_shared=no
d7040cdb
SE
8250 ;;
8251
dabbade6
L
8252 *nto* | *qnx*)
8253 # QNX uses GNU C++, but need to define -shared option too, otherwise
8254 # it will coredump.
8255 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8256 ;;
8257
dabbade6
L
8258 sysv4*MP*)
8259 if test -d /usr/nec; then
8260 lt_prog_compiler_pic=-Kconform_pic
8261 fi
d7040cdb
SE
8262 ;;
8263
dabbade6
L
8264 *)
8265 lt_prog_compiler_pic='-fPIC'
d7040cdb 8266 ;;
dabbade6 8267 esac
3725885a
RW
8268
8269 case $cc_basename in
8270 nvcc*) # Cuda Compiler Driver 2.2
8271 lt_prog_compiler_wl='-Xlinker '
8272 lt_prog_compiler_pic='-Xcompiler -fPIC'
8273 ;;
8274 esac
dabbade6
L
8275 else
8276 # PORTME Check for flag to pass linker flags through the system compiler.
8277 case $host_os in
8278 aix*)
8279 lt_prog_compiler_wl='-Wl,'
8280 if test "$host_cpu" = ia64; then
8281 # AIX 5 now supports IA64 processor
8282 lt_prog_compiler_static='-Bstatic'
d7040cdb 8283 else
dabbade6 8284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8285 fi
dabbade6 8286 ;;
d7040cdb 8287
1927a18f 8288 mingw* | cygwin* | pw32* | os2* | cegcc*)
dabbade6
L
8289 # This hack is so that the source file can tell whether it is being
8290 # built for inclusion in a dll (and should export symbols for example).
8291 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8292 ;;
8293
dabbade6
L
8294 hpux9* | hpux10* | hpux11*)
8295 lt_prog_compiler_wl='-Wl,'
8296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8297 # not for PA HP-UX.
8298 case $host_cpu in
8299 hppa*64*|ia64*)
8300 # +Z the default
8301 ;;
8302 *)
8303 lt_prog_compiler_pic='+Z'
8304 ;;
8305 esac
8306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8307 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8308 ;;
8309
dabbade6
L
8310 irix5* | irix6* | nonstopux*)
8311 lt_prog_compiler_wl='-Wl,'
8312 # PIC (with -KPIC) is the default.
8313 lt_prog_compiler_static='-non_shared'
8314 ;;
d7040cdb 8315
58e24671 8316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6 8317 case $cc_basename in
1927a18f
L
8318 # old Intel for x86_64 which still supported -KPIC.
8319 ecc*)
dabbade6
L
8320 lt_prog_compiler_wl='-Wl,'
8321 lt_prog_compiler_pic='-KPIC'
8322 lt_prog_compiler_static='-static'
8323 ;;
1927a18f
L
8324 # icc used to be incompatible with GCC.
8325 # ICC 10 doesn't accept -KPIC any more.
8326 icc* | ifort*)
8327 lt_prog_compiler_wl='-Wl,'
8328 lt_prog_compiler_pic='-fPIC'
8329 lt_prog_compiler_static='-static'
8330 ;;
8331 # Lahey Fortran 8.1.
8332 lf95*)
8333 lt_prog_compiler_wl='-Wl,'
8334 lt_prog_compiler_pic='--shared'
8335 lt_prog_compiler_static='--static'
8336 ;;
3725885a 8337 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
dabbade6
L
8338 # Portland Group compilers (*not* the Pentium gcc compiler,
8339 # which looks to be a dead project)
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-fpic'
8342 lt_prog_compiler_static='-Bstatic'
8343 ;;
8344 ccc*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All Alpha code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
3725885a
RW
8349 xl* | bgxl* | bgf* | mpixl*)
8350 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
1927a18f
L
8351 lt_prog_compiler_wl='-Wl,'
8352 lt_prog_compiler_pic='-qpic'
8353 lt_prog_compiler_static='-qstaticlink'
8354 ;;
dabbade6
L
8355 *)
8356 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8357 *Sun\ F* | *Sun*Fortran*)
8358 # Sun Fortran 8.3 passes all unrecognized flags to the linker
dabbade6
L
8359 lt_prog_compiler_pic='-KPIC'
8360 lt_prog_compiler_static='-Bstatic'
3725885a 8361 lt_prog_compiler_wl=''
d7040cdb 8362 ;;
3725885a
RW
8363 *Sun\ C*)
8364 # Sun C 5.9
dabbade6
L
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
3725885a 8367 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8368 ;;
8369 esac
dabbade6
L
8370 ;;
8371 esac
d7040cdb
SE
8372 ;;
8373
dabbade6
L
8374 newsos6)
8375 lt_prog_compiler_pic='-KPIC'
8376 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8377 ;;
8378
dabbade6
L
8379 *nto* | *qnx*)
8380 # QNX uses GNU C++, but need to define -shared option too, otherwise
8381 # it will coredump.
8382 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8383 ;;
8384
dabbade6
L
8385 osf3* | osf4* | osf5*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # All OSF/1 code is PIC.
8388 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8389 ;;
8390
dabbade6
L
8391 rdos*)
8392 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8393 ;;
8394
8395 solaris*)
dabbade6
L
8396 lt_prog_compiler_pic='-KPIC'
8397 lt_prog_compiler_static='-Bstatic'
8398 case $cc_basename in
8399 f77* | f90* | f95*)
8400 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8401 *)
dabbade6 8402 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8403 esac
d7040cdb
SE
8404 ;;
8405
8406 sunos4*)
dabbade6
L
8407 lt_prog_compiler_wl='-Qoption ld '
8408 lt_prog_compiler_pic='-PIC'
8409 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8410 ;;
8411
dabbade6
L
8412 sysv4 | sysv4.2uw2* | sysv4.3*)
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-KPIC'
8415 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8416 ;;
8417
8418 sysv4*MP*)
dabbade6
L
8419 if test -d /usr/nec ;then
8420 lt_prog_compiler_pic='-Kconform_pic'
8421 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8422 fi
8423 ;;
8424
dabbade6
L
8425 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8426 lt_prog_compiler_wl='-Wl,'
8427 lt_prog_compiler_pic='-KPIC'
8428 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8429 ;;
8430
dabbade6
L
8431 unicos*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8434 ;;
8435
8436 uts4*)
dabbade6
L
8437 lt_prog_compiler_pic='-pic'
8438 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8439 ;;
8440
8441 *)
dabbade6 8442 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8443 ;;
8444 esac
d7040cdb
SE
8445 fi
8446
dabbade6
L
8447case $host_os in
8448 # For platforms which do not support PIC, -DPIC is meaningless:
8449 *djgpp*)
8450 lt_prog_compiler_pic=
8451 ;;
8452 *)
8453 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8454 ;;
8455esac
81ecdfbb
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8457$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8458
8459
8460
8461
8462
8463
8464#
dabbade6 8465# Check to make sure the PIC flag actually works.
d7040cdb 8466#
dabbade6 8467if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8469$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8470if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
dabbade6 8472else
1927a18f 8473 lt_cv_prog_compiler_pic_works=no
dabbade6
L
8474 ac_outfile=conftest.$ac_objext
8475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8476 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8477 # Insert the option either (1) after the last *FLAGS variable, or
8478 # (2) before a word containing "conftest.", or (3) at the end.
8479 # Note that $ac_compile itself does not contain backslashes and begins
8480 # with a dollar sign (not a hyphen), so the echo should work correctly.
8481 # The option is referenced via a variable to avoid confusing sed.
8482 lt_compile=`echo "$ac_compile" | $SED \
8483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8485 -e 's:$: $lt_compiler_flag:'`
3725885a 8486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8487 (eval "$lt_compile" 2>conftest.err)
8488 ac_status=$?
8489 cat conftest.err >&5
3725885a 8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8491 if (exit $ac_status) && test -s "$ac_outfile"; then
8492 # The compiler can only warn and ignore the option if not recognized
8493 # So say no if there are warnings other than the usual output.
3725885a 8494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
dabbade6
L
8495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8497 lt_cv_prog_compiler_pic_works=yes
dabbade6
L
8498 fi
8499 fi
8500 $RM conftest*
d7040cdb 8501
dabbade6 8502fi
81ecdfbb
RW
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8504$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8505
1927a18f 8506if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
dabbade6
L
8507 case $lt_prog_compiler_pic in
8508 "" | " "*) ;;
8509 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8510 esac
8511else
8512 lt_prog_compiler_pic=
8513 lt_prog_compiler_can_build_shared=no
8514fi
d7040cdb 8515
dabbade6 8516fi
d7040cdb
SE
8517
8518
8519
8520
8521
8522
dabbade6
L
8523#
8524# Check to make sure the static flag actually works.
8525#
8526wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8528$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8529if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8530 $as_echo_n "(cached) " >&6
dabbade6 8531else
1927a18f 8532 lt_cv_prog_compiler_static_works=no
dabbade6
L
8533 save_LDFLAGS="$LDFLAGS"
8534 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8535 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8536 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8537 # The linker can only warn and ignore the option if not recognized
8538 # So say no if there are warnings
8539 if test -s conftest.err; then
8540 # Append any errors to the config.log.
8541 cat conftest.err 1>&5
3725885a 8542 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
dabbade6
L
8543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8544 if diff conftest.exp conftest.er2 >/dev/null; then
1927a18f 8545 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8546 fi
8547 else
1927a18f 8548 lt_cv_prog_compiler_static_works=yes
dabbade6
L
8549 fi
8550 fi
1927a18f 8551 $RM -r conftest*
dabbade6 8552 LDFLAGS="$save_LDFLAGS"
d7040cdb 8553
dabbade6 8554fi
81ecdfbb
RW
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8556$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8557
1927a18f 8558if test x"$lt_cv_prog_compiler_static_works" = xyes; then
dabbade6
L
8559 :
8560else
8561 lt_prog_compiler_static=
8562fi
d7040cdb
SE
8563
8564
8565
8566
8567
8568
8569
81ecdfbb
RW
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8572if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
dabbade6
L
8574else
8575 lt_cv_prog_compiler_c_o=no
8576 $RM -r conftest 2>/dev/null
8577 mkdir conftest
8578 cd conftest
8579 mkdir out
8580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8581
dabbade6
L
8582 lt_compiler_flag="-o out/conftest2.$ac_objext"
8583 # Insert the option either (1) after the last *FLAGS variable, or
8584 # (2) before a word containing "conftest.", or (3) at the end.
8585 # Note that $ac_compile itself does not contain backslashes and begins
8586 # with a dollar sign (not a hyphen), so the echo should work correctly.
8587 lt_compile=`echo "$ac_compile" | $SED \
8588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590 -e 's:$: $lt_compiler_flag:'`
3725885a 8591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8592 (eval "$lt_compile" 2>out/conftest.err)
8593 ac_status=$?
8594 cat out/conftest.err >&5
3725885a 8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8596 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8597 then
8598 # The compiler can only warn and ignore the option if not recognized
8599 # So say no if there are warnings
3725885a 8600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8601 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8602 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8603 lt_cv_prog_compiler_c_o=yes
8604 fi
8605 fi
8606 chmod u+w . 2>&5
8607 $RM conftest*
8608 # SGI C++ compiler will create directory out/ii_files/ for
8609 # template instantiation
8610 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8611 $RM out/* && rmdir out
8612 cd ..
8613 $RM -r conftest
8614 $RM conftest*
d7040cdb 8615
dabbade6 8616fi
81ecdfbb
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8618$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8619
8620
8621
8622
8623
8624
81ecdfbb
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8626$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8627if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
dabbade6
L
8629else
8630 lt_cv_prog_compiler_c_o=no
8631 $RM -r conftest 2>/dev/null
8632 mkdir conftest
8633 cd conftest
8634 mkdir out
8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8636
dabbade6
L
8637 lt_compiler_flag="-o out/conftest2.$ac_objext"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 lt_compile=`echo "$ac_compile" | $SED \
8643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8645 -e 's:$: $lt_compiler_flag:'`
3725885a 8646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
dabbade6
L
8647 (eval "$lt_compile" 2>out/conftest.err)
8648 ac_status=$?
8649 cat out/conftest.err >&5
3725885a 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dabbade6
L
8651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8652 then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings
3725885a 8655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
dabbade6
L
8656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_c_o=yes
8659 fi
8660 fi
8661 chmod u+w . 2>&5
8662 $RM conftest*
8663 # SGI C++ compiler will create directory out/ii_files/ for
8664 # template instantiation
8665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8666 $RM out/* && rmdir out
8667 cd ..
8668 $RM -r conftest
8669 $RM conftest*
d7040cdb 8670
dabbade6 8671fi
81ecdfbb
RW
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8673$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8674
8675
8676
8677
dabbade6
L
8678hard_links="nottested"
8679if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8680 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8682$as_echo_n "checking if we can lock with hard links... " >&6; }
dabbade6
L
8683 hard_links=yes
8684 $RM conftest*
8685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8686 touch conftest.a
8687 ln conftest.a conftest.b 2>&5 || hard_links=no
8688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8690$as_echo "$hard_links" >&6; }
dabbade6 8691 if test "$hard_links" = no; then
81ecdfbb
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8693$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
dabbade6
L
8694 need_locks=warn
8695 fi
8696else
8697 need_locks=no
8698fi
d7040cdb
SE
8699
8700
8701
8702
8703
8704
81ecdfbb
RW
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8706$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8707
dabbade6
L
8708 runpath_var=
8709 allow_undefined_flag=
8710 always_export_symbols=no
8711 archive_cmds=
8712 archive_expsym_cmds=
8713 compiler_needs_object=no
8714 enable_shared_with_static_runtimes=no
8715 export_dynamic_flag_spec=
8716 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8717 hardcode_automatic=no
8718 hardcode_direct=no
8719 hardcode_direct_absolute=no
8720 hardcode_libdir_flag_spec=
8721 hardcode_libdir_flag_spec_ld=
8722 hardcode_libdir_separator=
8723 hardcode_minus_L=no
8724 hardcode_shlibpath_var=unsupported
8725 inherit_rpath=no
8726 link_all_deplibs=unknown
8727 module_cmds=
8728 module_expsym_cmds=
8729 old_archive_from_new_cmds=
8730 old_archive_from_expsyms_cmds=
8731 thread_safe_flag_spec=
8732 whole_archive_flag_spec=
8733 # include_expsyms should be a list of space-separated symbols to be *always*
8734 # included in the symbol list
8735 include_expsyms=
8736 # exclude_expsyms can be an extended regexp of symbols to exclude
8737 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8738 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8739 # as well as any symbol that contains `d'.
1927a18f 8740 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
dabbade6
L
8741 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8742 # platforms (ab)use it in PIC code, but their linkers get confused if
8743 # the symbol is explicitly referenced. Since portable code cannot
8744 # rely on this symbol name, it's probably fine to never include it in
8745 # preloaded symbol tables.
1927a18f 8746 # Exclude shared library initialization/finalization symbols.
dabbade6 8747 extract_expsyms_cmds=
d7040cdb 8748
dabbade6 8749 case $host_os in
1927a18f 8750 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8751 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8752 # When not using gcc, we currently assume that we are using
8753 # Microsoft Visual C++.
8754 if test "$GCC" != yes; then
8755 with_gnu_ld=no
8756 fi
8757 ;;
8758 interix*)
8759 # we just hope/assume this is gcc and not c89 (= MSVC++)
8760 with_gnu_ld=yes
8761 ;;
8762 openbsd*)
8763 with_gnu_ld=no
8764 ;;
8765 esac
d7040cdb 8766
dabbade6 8767 ld_shlibs=yes
3725885a
RW
8768
8769 # On some targets, GNU ld is compatible enough with the native linker
8770 # that we're better off using the native interface for both.
8771 lt_use_gnu_ld_interface=no
dabbade6 8772 if test "$with_gnu_ld" = yes; then
3725885a
RW
8773 case $host_os in
8774 aix*)
8775 # The AIX port of GNU ld has always aspired to compatibility
8776 # with the native linker. However, as the warning in the GNU ld
8777 # block says, versions before 2.19.5* couldn't really create working
8778 # shared libraries, regardless of the interface used.
8779 case `$LD -v 2>&1` in
8780 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8781 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8782 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8783 *)
8784 lt_use_gnu_ld_interface=yes
8785 ;;
8786 esac
8787 ;;
8788 *)
8789 lt_use_gnu_ld_interface=yes
8790 ;;
8791 esac
8792 fi
8793
8794 if test "$lt_use_gnu_ld_interface" = yes; then
dabbade6
L
8795 # If archive_cmds runs LD, not CC, wlarc should be empty
8796 wlarc='${wl}'
d7040cdb 8797
dabbade6
L
8798 # Set some defaults for GNU ld with shared library support. These
8799 # are reset later if shared libraries are not supported. Putting them
8800 # here allows them to be overridden if necessary.
8801 runpath_var=LD_RUN_PATH
8802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8803 export_dynamic_flag_spec='${wl}--export-dynamic'
8804 # ancient GNU ld didn't support --whole-archive et. al.
8805 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8806 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8807 else
8808 whole_archive_flag_spec=
8809 fi
8810 supports_anon_versioning=no
8811 case `$LD -v 2>&1` in
3725885a 8812 *GNU\ gold*) supports_anon_versioning=yes ;;
dabbade6
L
8813 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8814 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8815 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8816 *\ 2.11.*) ;; # other 2.11 versions
8817 *) supports_anon_versioning=yes ;;
8818 esac
d7040cdb 8819
dabbade6
L
8820 # See if GNU ld supports shared libraries.
8821 case $host_os in
50e7d84b 8822 aix[3-9]*)
dabbade6
L
8823 # On AIX/PPC, the GNU linker is very broken
8824 if test "$host_cpu" != ia64; then
8825 ld_shlibs=no
8826 cat <<_LT_EOF 1>&2
d7040cdb 8827
3725885a 8828*** Warning: the GNU linker, at least up to release 2.19, is reported
dabbade6
L
8829*** to be unable to reliably create shared libraries on AIX.
8830*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
8831*** really care for shared libraries, you may want to install binutils
8832*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8833*** You will then need to restart the configuration process.
d7040cdb 8834
dabbade6
L
8835_LT_EOF
8836 fi
8837 ;;
d7040cdb 8838
dabbade6 8839 amigaos*)
1927a18f
L
8840 case $host_cpu in
8841 powerpc)
8842 # see comment about AmigaOS4 .so support
8843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8844 archive_expsym_cmds=''
8845 ;;
8846 m68k)
8847 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)'
8848 hardcode_libdir_flag_spec='-L$libdir'
8849 hardcode_minus_L=yes
8850 ;;
8851 esac
dabbade6 8852 ;;
d7040cdb 8853
dabbade6
L
8854 beos*)
8855 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8856 allow_undefined_flag=unsupported
8857 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8858 # support --undefined. This deserves some investigation. FIXME
8859 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 else
8861 ld_shlibs=no
8862 fi
8863 ;;
d7040cdb 8864
1927a18f 8865 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
8866 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8867 # as there is no search path for DLLs.
8868 hardcode_libdir_flag_spec='-L$libdir'
3725885a 8869 export_dynamic_flag_spec='${wl}--export-all-symbols'
dabbade6
L
8870 allow_undefined_flag=unsupported
8871 always_export_symbols=no
8872 enable_shared_with_static_runtimes=yes
8873 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 8874
dabbade6
L
8875 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8877 # If the export-symbols file already is a .def file (1st line
8878 # is EXPORTS), use it as is; otherwise, prepend...
8879 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8880 cp $export_symbols $output_objdir/$soname.def;
8881 else
8882 echo EXPORTS > $output_objdir/$soname.def;
8883 cat $export_symbols >> $output_objdir/$soname.def;
8884 fi~
8885 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8886 else
8887 ld_shlibs=no
8888 fi
8889 ;;
d7040cdb 8890
3725885a
RW
8891 haiku*)
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 link_all_deplibs=yes
8894 ;;
8895
dabbade6
L
8896 interix[3-9]*)
8897 hardcode_direct=no
8898 hardcode_shlibpath_var=no
8899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8900 export_dynamic_flag_spec='${wl}-E'
8901 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8902 # Instead, shared libraries are loaded at an image base (0x10000000 by
8903 # default) and relocated if they conflict, which is a slow very memory
8904 # consuming and fragmenting process. To avoid this, we pick a random,
8905 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8906 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8908 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'
8909 ;;
d7040cdb 8910
58e24671 8911 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
8912 tmp_diet=no
8913 if test "$host_os" = linux-dietlibc; then
8914 case $cc_basename in
8915 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8916 esac
8917 fi
8918 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8919 && test "$tmp_diet" = no
8920 then
8921 tmp_addflag=
1927a18f 8922 tmp_sharedflag='-shared'
dabbade6
L
8923 case $cc_basename,$host_cpu in
8924 pgcc*) # Portland Group C compiler
3725885a 8925 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
8926 tmp_addflag=' $pic_flag'
8927 ;;
3725885a
RW
8928 pgf77* | pgf90* | pgf95* | pgfortran*)
8929 # Portland Group f77 and f90 compilers
8930 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
8931 tmp_addflag=' $pic_flag -Mnomain' ;;
8932 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8933 tmp_addflag=' -i_dynamic' ;;
8934 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8935 tmp_addflag=' -i_dynamic -nofor_main' ;;
8936 ifc* | ifort*) # Intel Fortran compiler
8937 tmp_addflag=' -nofor_main' ;;
1927a18f
L
8938 lf95*) # Lahey Fortran 8.1
8939 whole_archive_flag_spec=
8940 tmp_sharedflag='--shared' ;;
3725885a 8941 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
1927a18f
L
8942 tmp_sharedflag='-qmkshrobj'
8943 tmp_addflag= ;;
3725885a
RW
8944 nvcc*) # Cuda Compiler Driver 2.2
8945 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'
8946 compiler_needs_object=yes
8947 ;;
dabbade6
L
8948 esac
8949 case `$CC -V 2>&1 | sed 5q` in
8950 *Sun\ C*) # Sun C 5.9
3725885a 8951 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
8952 compiler_needs_object=yes
8953 tmp_sharedflag='-G' ;;
8954 *Sun\ F*) # Sun Fortran 8.3
8955 tmp_sharedflag='-G' ;;
dabbade6
L
8956 esac
8957 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 8958
dabbade6
L
8959 if test "x$supports_anon_versioning" = xyes; then
8960 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8961 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8962 echo "local: *; };" >> $output_objdir/$libname.ver~
8963 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8964 fi
1927a18f
L
8965
8966 case $cc_basename in
3725885a 8967 xlf* | bgf* | bgxlf* | mpixlf*)
1927a18f
L
8968 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8969 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8970 hardcode_libdir_flag_spec=
8971 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8972 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8973 if test "x$supports_anon_versioning" = xyes; then
8974 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8976 echo "local: *; };" >> $output_objdir/$libname.ver~
8977 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8978 fi
8979 ;;
8980 esac
dabbade6
L
8981 else
8982 ld_shlibs=no
8983 fi
8984 ;;
d7040cdb 8985
dabbade6
L
8986 netbsd*)
8987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8988 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8989 wlarc=
8990 else
8991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8993 fi
8994 ;;
d7040cdb 8995
dabbade6
L
8996 solaris*)
8997 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8998 ld_shlibs=no
8999 cat <<_LT_EOF 1>&2
d7040cdb 9000
dabbade6
L
9001*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9002*** create shared libraries on Solaris systems. Therefore, libtool
9003*** is disabling shared libraries support. We urge you to upgrade GNU
9004*** binutils to release 2.9.1 or newer. Another option is to modify
9005*** your PATH or compiler configuration so that the native linker is
9006*** used, and then restart.
d7040cdb 9007
dabbade6
L
9008_LT_EOF
9009 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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 else
9013 ld_shlibs=no
9014 fi
9015 ;;
d7040cdb 9016
dabbade6
L
9017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9018 case `$LD -v 2>&1` in
9019 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9020 ld_shlibs=no
9021 cat <<_LT_EOF 1>&2
d7040cdb 9022
dabbade6
L
9023*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9024*** reliably create shared libraries on SCO systems. Therefore, libtool
9025*** is disabling shared libraries support. We urge you to upgrade GNU
9026*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9027*** your PATH or compiler configuration so that the native linker is
9028*** used, and then restart.
d7040cdb 9029
dabbade6
L
9030_LT_EOF
9031 ;;
9032 *)
9033 # For security reasons, it is highly recommended that you always
9034 # use absolute paths for naming shared libraries, and exclude the
9035 # DT_RUNPATH tag from executables and libraries. But doing so
9036 # requires that you compile everything twice, which is a pain.
9037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041 else
9042 ld_shlibs=no
9043 fi
9044 ;;
9045 esac
9046 ;;
d7040cdb 9047
dabbade6
L
9048 sunos4*)
9049 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9050 wlarc=
9051 hardcode_direct=yes
9052 hardcode_shlibpath_var=no
9053 ;;
d7040cdb 9054
dabbade6
L
9055 *)
9056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9059 else
9060 ld_shlibs=no
9061 fi
9062 ;;
9063 esac
d7040cdb 9064
dabbade6
L
9065 if test "$ld_shlibs" = no; then
9066 runpath_var=
9067 hardcode_libdir_flag_spec=
9068 export_dynamic_flag_spec=
9069 whole_archive_flag_spec=
9070 fi
9071 else
9072 # PORTME fill in a description of your system's linker (not GNU ld)
9073 case $host_os in
9074 aix3*)
9075 allow_undefined_flag=unsupported
9076 always_export_symbols=yes
9077 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'
9078 # Note: this linker hardcodes the directories in LIBPATH if there
9079 # are no directories specified by -L.
9080 hardcode_minus_L=yes
9081 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9082 # Neither direct hardcoding nor static linking is supported with a
9083 # broken collect2.
9084 hardcode_direct=unsupported
9085 fi
9086 ;;
d7040cdb 9087
50e7d84b 9088 aix[4-9]*)
dabbade6
L
9089 if test "$host_cpu" = ia64; then
9090 # On IA64, the linker does run time linking by default, so we don't
9091 # have to do anything special.
9092 aix_use_runtimelinking=no
9093 exp_sym_flag='-Bexport'
9094 no_entry_flag=""
9095 else
9096 # If we're using GNU nm, then we don't want the "-C" option.
9097 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9098 # Also, AIX nm treats weak defined symbols like other global
9099 # defined symbols, whereas GNU nm marks them as "W".
dabbade6 9100 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9101 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
L
9102 else
9103 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9104 fi
9105 aix_use_runtimelinking=no
d7040cdb 9106
dabbade6
L
9107 # Test if we are trying to use run time linking or normal
9108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9109 # need to do runtime linking.
50e7d84b 9110 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
dabbade6
L
9111 for ld_flag in $LDFLAGS; do
9112 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9113 aix_use_runtimelinking=yes
9114 break
9115 fi
9116 done
9117 ;;
9118 esac
d7040cdb 9119
dabbade6
L
9120 exp_sym_flag='-bexport'
9121 no_entry_flag='-bnoentry'
9122 fi
d7040cdb 9123
dabbade6
L
9124 # When large executables or shared objects are built, AIX ld can
9125 # have problems creating the table of contents. If linking a library
9126 # or program results in "error TOC overflow" add -mminimal-toc to
9127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9129
dabbade6
L
9130 archive_cmds=''
9131 hardcode_direct=yes
9132 hardcode_direct_absolute=yes
9133 hardcode_libdir_separator=':'
9134 link_all_deplibs=yes
9135 file_list_spec='${wl}-f,'
d7040cdb 9136
dabbade6
L
9137 if test "$GCC" = yes; then
9138 case $host_os in aix4.[012]|aix4.[012].*)
9139 # We only want to do this on AIX 4.2 and lower, the check
9140 # below for broken collect2 doesn't work under 4.3+
9141 collect2name=`${CC} -print-prog-name=collect2`
9142 if test -f "$collect2name" &&
9143 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9144 then
9145 # We have reworked collect2
9146 :
9147 else
9148 # We have old collect2
9149 hardcode_direct=unsupported
9150 # It fails to find uninstalled libraries when the uninstalled
9151 # path is not listed in the libpath. Setting hardcode_minus_L
9152 # to unsupported forces relinking
9153 hardcode_minus_L=yes
9154 hardcode_libdir_flag_spec='-L$libdir'
9155 hardcode_libdir_separator=
9156 fi
9157 ;;
9158 esac
9159 shared_flag='-shared'
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag="$shared_flag "'${wl}-G'
9162 fi
9163 else
9164 # not using gcc
9165 if test "$host_cpu" = ia64; then
9166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9167 # chokes on -Wl,-G. The following line is correct:
9168 shared_flag='-G'
9169 else
9170 if test "$aix_use_runtimelinking" = yes; then
9171 shared_flag='${wl}-G'
9172 else
9173 shared_flag='${wl}-bM:SRE'
9174 fi
9175 fi
9176 fi
d7040cdb 9177
1927a18f 9178 export_dynamic_flag_spec='${wl}-bexpall'
dabbade6
L
9179 # It seems that -bexpall does not export symbols beginning with
9180 # underscore (_), so it is better to generate a list of symbols to export.
9181 always_export_symbols=yes
9182 if test "$aix_use_runtimelinking" = yes; then
9183 # Warning - without using the other runtime loading flags (-brtl),
9184 # -berok will link without error, but may produce a broken library.
9185 allow_undefined_flag='-berok'
9186 # Determine the default libpath from the value encoded in an
9187 # empty executable.
81ecdfbb 9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9189/* end confdefs.h. */
d7040cdb 9190
dabbade6
L
9191int
9192main ()
9193{
d7040cdb 9194
dabbade6
L
9195 ;
9196 return 0;
9197}
9198_ACEOF
81ecdfbb 9199if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9200
dabbade6
L
9201lt_aix_libpath_sed='
9202 /Import File Strings/,/^$/ {
9203 /^0/ {
9204 s/^0 *\(.*\)$/\1/
9205 p
9206 }
9207 }'
9208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9209# Check for a 64-bit object if we didn't find anything.
9210if test -z "$aix_libpath"; then
9211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9212fi
dabbade6 9213fi
81ecdfbb
RW
9214rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
dabbade6 9216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9217
dabbade6 9218 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9219 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
9220 else
9221 if test "$host_cpu" = ia64; then
9222 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9223 allow_undefined_flag="-z nodefs"
9224 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"
9225 else
9226 # Determine the default libpath from the value encoded in an
9227 # empty executable.
81ecdfbb 9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 9229/* end confdefs.h. */
d7040cdb 9230
dabbade6
L
9231int
9232main ()
9233{
d7040cdb 9234
dabbade6
L
9235 ;
9236 return 0;
9237}
9238_ACEOF
81ecdfbb 9239if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9240
dabbade6
L
9241lt_aix_libpath_sed='
9242 /Import File Strings/,/^$/ {
9243 /^0/ {
9244 s/^0 *\(.*\)$/\1/
9245 p
9246 }
9247 }'
9248aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9249# Check for a 64-bit object if we didn't find anything.
9250if test -z "$aix_libpath"; then
9251 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9252fi
dabbade6 9253fi
81ecdfbb
RW
9254rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext conftest.$ac_ext
dabbade6 9256if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9257
dabbade6
L
9258 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9259 # Warning - without using the other run time loading flags,
9260 # -berok will link without error, but may produce a broken library.
9261 no_undefined_flag=' ${wl}-bernotok'
9262 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9263 if test "$with_gnu_ld" = yes; then
9264 # We only use this code for GNU lds that support --whole-archive.
9265 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9266 else
9267 # Exported symbols can be pulled into shared objects from archives
9268 whole_archive_flag_spec='$convenience'
9269 fi
dabbade6
L
9270 archive_cmds_need_lc=yes
9271 # This is similar to how AIX traditionally builds its shared libraries.
9272 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'
9273 fi
9274 fi
9275 ;;
d7040cdb 9276
dabbade6 9277 amigaos*)
1927a18f
L
9278 case $host_cpu in
9279 powerpc)
9280 # see comment about AmigaOS4 .so support
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 archive_expsym_cmds=''
9283 ;;
9284 m68k)
9285 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)'
9286 hardcode_libdir_flag_spec='-L$libdir'
9287 hardcode_minus_L=yes
9288 ;;
9289 esac
dabbade6 9290 ;;
d7040cdb 9291
dabbade6
L
9292 bsdi[45]*)
9293 export_dynamic_flag_spec=-rdynamic
9294 ;;
d7040cdb 9295
1927a18f 9296 cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
9297 # When not using gcc, we currently assume that we are using
9298 # Microsoft Visual C++.
9299 # hardcode_libdir_flag_spec is actually meaningless, as there is
9300 # no search path for DLLs.
9301 hardcode_libdir_flag_spec=' '
9302 allow_undefined_flag=unsupported
9303 # Tell ltmain to make .lib files, not .a files.
9304 libext=lib
9305 # Tell ltmain to make .dll files, not .so files.
9306 shrext_cmds=".dll"
9307 # FIXME: Setting linknames here is a bad hack.
3725885a 9308 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
dabbade6
L
9309 # The linker will automatically build a .lib file if we build a DLL.
9310 old_archive_from_new_cmds='true'
9311 # FIXME: Should let the user specify the lib program.
9312 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9313 fix_srcfile_path='`cygpath -w "$srcfile"`'
9314 enable_shared_with_static_runtimes=yes
9315 ;;
d7040cdb 9316
dabbade6 9317 darwin* | rhapsody*)
d7040cdb 9318
1927a18f
L
9319
9320 archive_cmds_need_lc=no
9321 hardcode_direct=no
9322 hardcode_automatic=yes
9323 hardcode_shlibpath_var=unsupported
3725885a
RW
9324 if test "$lt_cv_ld_force_load" = "yes"; then
9325 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\"`'
9326 else
9327 whole_archive_flag_spec=''
9328 fi
1927a18f
L
9329 link_all_deplibs=yes
9330 allow_undefined_flag="$_lt_dar_allow_undefined"
9331 case $cc_basename in
9332 ifort*) _lt_dar_can_shared=yes ;;
9333 *) _lt_dar_can_shared=$GCC ;;
9334 esac
9335 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9336 output_verbose_link_cmd=func_echo_all
1927a18f
L
9337 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9338 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9339 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}"
9340 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}"
9341
9342 else
9343 ld_shlibs=no
9344 fi
9345
dabbade6 9346 ;;
d7040cdb 9347
dabbade6
L
9348 dgux*)
9349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_shlibpath_var=no
9352 ;;
d7040cdb 9353
dabbade6
L
9354 freebsd1*)
9355 ld_shlibs=no
9356 ;;
d7040cdb 9357
dabbade6
L
9358 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9359 # support. Future versions do this automatically, but an explicit c++rt0.o
9360 # does not break anything, and helps significantly (at the cost of a little
9361 # extra space).
9362 freebsd2.2*)
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9364 hardcode_libdir_flag_spec='-R$libdir'
9365 hardcode_direct=yes
9366 hardcode_shlibpath_var=no
9367 ;;
d7040cdb 9368
dabbade6
L
9369 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9370 freebsd2*)
9371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_direct=yes
9373 hardcode_minus_L=yes
9374 hardcode_shlibpath_var=no
9375 ;;
d7040cdb 9376
dabbade6
L
9377 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9378 freebsd* | dragonfly*)
9379 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9380 hardcode_libdir_flag_spec='-R$libdir'
9381 hardcode_direct=yes
9382 hardcode_shlibpath_var=no
9383 ;;
d7040cdb 9384
dabbade6
L
9385 hpux9*)
9386 if test "$GCC" = yes; then
9387 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'
9388 else
9389 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'
9390 fi
9391 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9392 hardcode_libdir_separator=:
9393 hardcode_direct=yes
d7040cdb 9394
dabbade6
L
9395 # hardcode_minus_L: Not really in the search PATH,
9396 # but as the default location of the library.
9397 hardcode_minus_L=yes
9398 export_dynamic_flag_spec='${wl}-E'
9399 ;;
d7040cdb 9400
dabbade6 9401 hpux10*)
3725885a 9402 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9403 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 else
9405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9406 fi
9407 if test "$with_gnu_ld" = no; then
9408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409 hardcode_libdir_flag_spec_ld='+b $libdir'
9410 hardcode_libdir_separator=:
9411 hardcode_direct=yes
9412 hardcode_direct_absolute=yes
9413 export_dynamic_flag_spec='${wl}-E'
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L=yes
9417 fi
9418 ;;
d7040cdb 9419
dabbade6 9420 hpux11*)
3725885a 9421 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
dabbade6
L
9422 case $host_cpu in
9423 hppa*64*)
9424 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425 ;;
9426 ia64*)
1927a18f 9427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
dabbade6
L
9428 ;;
9429 *)
9430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 esac
9433 else
9434 case $host_cpu in
9435 hppa*64*)
9436 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 ;;
9438 ia64*)
9439 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9440 ;;
9441 *)
3725885a
RW
9442
9443 # Older versions of the 11.00 compiler do not understand -b yet
9444 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9446$as_echo_n "checking if $CC understands -b... " >&6; }
9447if test "${lt_cv_prog_compiler__b+set}" = set; then :
9448 $as_echo_n "(cached) " >&6
9449else
9450 lt_cv_prog_compiler__b=no
9451 save_LDFLAGS="$LDFLAGS"
9452 LDFLAGS="$LDFLAGS -b"
9453 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9454 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9455 # The linker can only warn and ignore the option if not recognized
9456 # So say no if there are warnings
9457 if test -s conftest.err; then
9458 # Append any errors to the config.log.
9459 cat conftest.err 1>&5
9460 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9462 if diff conftest.exp conftest.er2 >/dev/null; then
9463 lt_cv_prog_compiler__b=yes
9464 fi
9465 else
9466 lt_cv_prog_compiler__b=yes
9467 fi
9468 fi
9469 $RM -r conftest*
9470 LDFLAGS="$save_LDFLAGS"
9471
9472fi
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9474$as_echo "$lt_cv_prog_compiler__b" >&6; }
9475
9476if test x"$lt_cv_prog_compiler__b" = xyes; then
9477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478else
9479 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480fi
9481
dabbade6
L
9482 ;;
9483 esac
9484 fi
9485 if test "$with_gnu_ld" = no; then
9486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9487 hardcode_libdir_separator=:
d7040cdb 9488
dabbade6
L
9489 case $host_cpu in
9490 hppa*64*|ia64*)
9491 hardcode_direct=no
9492 hardcode_shlibpath_var=no
9493 ;;
9494 *)
9495 hardcode_direct=yes
9496 hardcode_direct_absolute=yes
9497 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9498
dabbade6
L
9499 # hardcode_minus_L: Not really in the search PATH,
9500 # but as the default location of the library.
9501 hardcode_minus_L=yes
9502 ;;
9503 esac
9504 fi
9505 ;;
d7040cdb 9506
dabbade6
L
9507 irix5* | irix6* | nonstopux*)
9508 if test "$GCC" = yes; then
3725885a 9509 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
9510 # Try to use the -exported_symbol ld option, if it does not
9511 # work, assume that -exports_file does not work either and
9512 # implicitly export all symbols.
9513 save_LDFLAGS="$LDFLAGS"
9514 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
9515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9516/* end confdefs.h. */
dabbade6
L
9517int foo(void) {}
9518_ACEOF
81ecdfbb 9519if ac_fn_c_try_link "$LINENO"; then :
3725885a 9520 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 9521
d7040cdb 9522fi
81ecdfbb
RW
9523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
9525 LDFLAGS="$save_LDFLAGS"
9526 else
3725885a
RW
9527 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'
9528 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
9529 fi
9530 archive_cmds_need_lc='no'
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 hardcode_libdir_separator=:
9533 inherit_rpath=yes
9534 link_all_deplibs=yes
9535 ;;
d7040cdb 9536
dabbade6
L
9537 netbsd*)
9538 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9540 else
9541 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9542 fi
9543 hardcode_libdir_flag_spec='-R$libdir'
9544 hardcode_direct=yes
9545 hardcode_shlibpath_var=no
9546 ;;
d7040cdb 9547
dabbade6
L
9548 newsos6)
9549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550 hardcode_direct=yes
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 hardcode_libdir_separator=:
9553 hardcode_shlibpath_var=no
9554 ;;
d7040cdb 9555
dabbade6
L
9556 *nto* | *qnx*)
9557 ;;
d7040cdb 9558
dabbade6 9559 openbsd*)
1927a18f
L
9560 if test -f /usr/libexec/ld.so; then
9561 hardcode_direct=yes
9562 hardcode_shlibpath_var=no
9563 hardcode_direct_absolute=yes
9564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
dabbade6 9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1927a18f 9566 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
dabbade6 9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1927a18f
L
9568 export_dynamic_flag_spec='${wl}-E'
9569 else
9570 case $host_os in
9571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_libdir_flag_spec='-R$libdir'
9574 ;;
9575 *)
9576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9578 ;;
9579 esac
9580 fi
9581 else
9582 ld_shlibs=no
d7040cdb
SE
9583 fi
9584 ;;
d7040cdb 9585
dabbade6
L
9586 os2*)
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_minus_L=yes
9589 allow_undefined_flag=unsupported
3725885a 9590 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
9591 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 ;;
d7040cdb 9593
dabbade6
L
9594 osf3*)
9595 if test "$GCC" = yes; then
9596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9597 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
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9600 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
9601 fi
9602 archive_cmds_need_lc='no'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 ;;
d7040cdb 9606
dabbade6
L
9607 osf4* | osf5*) # as osf3* with the addition of -msym flag
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9610 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
9611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612 else
9613 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9614 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 9615 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 9616 $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 9617
dabbade6
L
9618 # Both c and cxx compiler support -rpath directly
9619 hardcode_libdir_flag_spec='-rpath $libdir'
9620 fi
9621 archive_cmds_need_lc='no'
9622 hardcode_libdir_separator=:
9623 ;;
d7040cdb 9624
dabbade6
L
9625 solaris*)
9626 no_undefined_flag=' -z defs'
9627 if test "$GCC" = yes; then
9628 wlarc='${wl}'
9629 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9631 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9632 else
9633 case `$CC -V 2>&1` in
9634 *"Compilers 5.0"*)
9635 wlarc=''
9636 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9638 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9639 ;;
9640 *)
9641 wlarc='${wl}'
9642 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 ;;
9646 esac
9647 fi
9648 hardcode_libdir_flag_spec='-R$libdir'
9649 hardcode_shlibpath_var=no
9650 case $host_os in
9651 solaris2.[0-5] | solaris2.[0-5].*) ;;
9652 *)
9653 # The compiler driver will combine and reorder linker options,
9654 # but understands `-z linker_flag'. GCC discards it without `$wl',
9655 # but is careful enough not to reorder.
9656 # Supported since Solaris 2.6 (maybe 2.5.1?)
9657 if test "$GCC" = yes; then
9658 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9659 else
9660 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9661 fi
9662 ;;
9663 esac
9664 link_all_deplibs=yes
d7040cdb 9665 ;;
dabbade6
L
9666
9667 sunos4*)
9668 if test "x$host_vendor" = xsequent; then
9669 # Use $CC to link under sequent, because it throws in some extra .o
9670 # files that make .init and .fini sections work.
9671 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9672 else
dabbade6 9673 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9674 fi
dabbade6
L
9675 hardcode_libdir_flag_spec='-L$libdir'
9676 hardcode_direct=yes
9677 hardcode_minus_L=yes
9678 hardcode_shlibpath_var=no
d7040cdb 9679 ;;
dabbade6
L
9680
9681 sysv4)
9682 case $host_vendor in
9683 sni)
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_direct=yes # is this really true???
9686 ;;
9687 siemens)
9688 ## LD is ld it makes a PLAMLIB
9689 ## CC just makes a GrossModule.
9690 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9691 reload_cmds='$CC -r -o $output$reload_objs'
9692 hardcode_direct=no
9693 ;;
9694 motorola)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9697 ;;
9698 esac
9699 runpath_var='LD_RUN_PATH'
9700 hardcode_shlibpath_var=no
d7040cdb 9701 ;;
d7040cdb 9702
dabbade6
L
9703 sysv4.3*)
9704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9705 hardcode_shlibpath_var=no
9706 export_dynamic_flag_spec='-Bexport'
9707 ;;
d7040cdb 9708
dabbade6
L
9709 sysv4*MP*)
9710 if test -d /usr/nec; then
9711 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9712 hardcode_shlibpath_var=no
9713 runpath_var=LD_RUN_PATH
9714 hardcode_runpath_var=yes
9715 ld_shlibs=yes
9716 fi
9717 ;;
d7040cdb 9718
dabbade6
L
9719 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9720 no_undefined_flag='${wl}-z,text'
9721 archive_cmds_need_lc=no
9722 hardcode_shlibpath_var=no
9723 runpath_var='LD_RUN_PATH'
d7040cdb 9724
dabbade6
L
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 fi
9732 ;;
d7040cdb 9733
dabbade6
L
9734 sysv5* | sco3.2v5* | sco5v6*)
9735 # Note: We can NOT use -z defs as we might desire, because we do not
9736 # link with -lc, and that would cause any symbols used from libc to
9737 # always be unresolved, which means just about no library would
9738 # ever link correctly. If we're not using GNU ld we use -z text
9739 # though, which does catch some bad symbols but isn't as heavy-handed
9740 # as -z defs.
9741 no_undefined_flag='${wl}-z,text'
9742 allow_undefined_flag='${wl}-z,nodefs'
9743 archive_cmds_need_lc=no
9744 hardcode_shlibpath_var=no
9745 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9746 hardcode_libdir_separator=':'
9747 link_all_deplibs=yes
9748 export_dynamic_flag_spec='${wl}-Bexport'
9749 runpath_var='LD_RUN_PATH'
d7040cdb 9750
dabbade6
L
9751 if test "$GCC" = yes; then
9752 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9753 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 else
9755 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 fi
d7040cdb 9758 ;;
d7040cdb 9759
dabbade6
L
9760 uts4*)
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 hardcode_shlibpath_var=no
9764 ;;
d7040cdb 9765
dabbade6
L
9766 *)
9767 ld_shlibs=no
9768 ;;
9769 esac
9770
9771 if test x$host_vendor = xsni; then
9772 case $host in
9773 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9774 export_dynamic_flag_spec='${wl}-Blargedynsym'
9775 ;;
9776 esac
d7040cdb 9777 fi
dabbade6 9778 fi
d7040cdb 9779
81ecdfbb
RW
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9781$as_echo "$ld_shlibs" >&6; }
dabbade6 9782test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 9783
dabbade6 9784with_gnu_ld=$with_gnu_ld
d7040cdb 9785
d7040cdb 9786
d7040cdb 9787
d7040cdb 9788
d7040cdb 9789
d7040cdb 9790
d7040cdb 9791
d7040cdb 9792
d7040cdb 9793
d7040cdb 9794
d7040cdb 9795
d7040cdb 9796
d7040cdb 9797
d7040cdb 9798
d7040cdb 9799
dabbade6
L
9800#
9801# Do we need to explicitly link libc?
9802#
9803case "x$archive_cmds_need_lc" in
9804x|xyes)
9805 # Assume -lc should be added
9806 archive_cmds_need_lc=yes
d7040cdb 9807
dabbade6
L
9808 if test "$enable_shared" = yes && test "$GCC" = yes; then
9809 case $archive_cmds in
9810 *'~'*)
9811 # FIXME: we may have to deal with multi-command sequences.
9812 ;;
9813 '$CC '*)
9814 # Test whether the compiler implicitly links with -lc since on some
9815 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9816 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9818$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9819if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
39144654
RW
9821else
9822 $RM conftest*
9823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9824
81ecdfbb 9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
dabbade6
L
9826 (eval $ac_compile) 2>&5
9827 ac_status=$?
81ecdfbb
RW
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
9830 soname=conftest
9831 lib=conftest
9832 libobjs=conftest.$ac_objext
9833 deplibs=
9834 wl=$lt_prog_compiler_wl
9835 pic_flag=$lt_prog_compiler_pic
9836 compiler_flags=-v
9837 linker_flags=-v
9838 verstring=
9839 output_objdir=.
9840 libname=conftest
9841 lt_save_allow_undefined_flag=$allow_undefined_flag
9842 allow_undefined_flag=
81ecdfbb 9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
dabbade6
L
9844 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9845 ac_status=$?
81ecdfbb
RW
9846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; }
39144654
RW
9848 then
9849 lt_cv_archive_cmds_need_lc=no
9850 else
9851 lt_cv_archive_cmds_need_lc=yes
9852 fi
9853 allow_undefined_flag=$lt_save_allow_undefined_flag
9854 else
9855 cat conftest.err 1>&5
9856 fi
9857 $RM conftest*
9858
9859fi
81ecdfbb
RW
9860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9861$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 9862 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
dabbade6
L
9863 ;;
9864 esac
d7040cdb 9865 fi
d7040cdb 9866 ;;
dabbade6 9867esac
d7040cdb 9868
d7040cdb 9869
d7040cdb 9870
d7040cdb 9871
d7040cdb 9872
d7040cdb 9873
d7040cdb 9874
d7040cdb
SE
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
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
d7040cdb 9962
d7040cdb 9963
d7040cdb
SE
9964
9965
9966
9967
9968
9969
d7040cdb 9970
d7040cdb 9971
d7040cdb 9972
d7040cdb 9973
d7040cdb 9974
d7040cdb 9975
d7040cdb 9976
d7040cdb 9977
d7040cdb 9978
d7040cdb 9979
d7040cdb 9980
d7040cdb 9981
d7040cdb 9982
d7040cdb 9983
d7040cdb 9984
d7040cdb 9985
d7040cdb 9986
d7040cdb 9987
d7040cdb 9988
d7040cdb 9989
d7040cdb 9990
d7040cdb 9991
d7040cdb 9992
d7040cdb 9993
dabbade6
L
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
81ecdfbb
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10026$as_echo_n "checking dynamic linker characteristics... " >&6; }
1927a18f
L
10027
10028if test "$GCC" = yes; then
dabbade6
L
10029 case $host_os in
10030 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10031 *) lt_awk_arg="/^libraries:/" ;;
10032 esac
3725885a
RW
10033 case $host_os in
10034 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10035 *) lt_sed_strip_eq="s,=/,/,g" ;;
10036 esac
10037 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10038 case $lt_search_path_spec in
10039 *\;*)
dabbade6
L
10040 # if the path contains ";" then we assume it to be the separator
10041 # otherwise default to the standard path separator (i.e. ":") - it is
10042 # assumed that no part of a normal pathname contains ";" but that should
10043 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10044 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10045 ;;
10046 *)
10047 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10048 ;;
10049 esac
dabbade6
L
10050 # Ok, now we have the path, separated by spaces, we can step through it
10051 # and add multilib dir if necessary.
10052 lt_tmp_lt_search_path_spec=
10053 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10054 for lt_sys_path in $lt_search_path_spec; do
10055 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10056 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10057 else
10058 test -d "$lt_sys_path" && \
10059 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10060 fi
10061 done
3725885a 10062 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
dabbade6
L
10063BEGIN {RS=" "; FS="/|\n";} {
10064 lt_foo="";
10065 lt_count=0;
10066 for (lt_i = NF; lt_i > 0; lt_i--) {
10067 if ($lt_i != "" && $lt_i != ".") {
10068 if ($lt_i == "..") {
10069 lt_count++;
10070 } else {
10071 if (lt_count == 0) {
10072 lt_foo="/" $lt_i lt_foo;
10073 } else {
10074 lt_count--;
10075 }
10076 }
10077 }
10078 }
10079 if (lt_foo != "") { lt_freq[lt_foo]++; }
10080 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10081}'`
3725885a
RW
10082 # AWK program above erroneously prepends '/' to C:/dos/paths
10083 # for these hosts.
10084 case $host_os in
10085 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10086 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10087 esac
10088 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10089else
dabbade6
L
10090 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10091fi
10092library_names_spec=
10093libname_spec='lib$name'
10094soname_spec=
10095shrext_cmds=".so"
10096postinstall_cmds=
10097postuninstall_cmds=
10098finish_cmds=
10099finish_eval=
10100shlibpath_var=
10101shlibpath_overrides_runpath=unknown
10102version_type=none
10103dynamic_linker="$host_os ld.so"
10104sys_lib_dlsearch_path_spec="/lib /usr/lib"
10105need_lib_prefix=unknown
10106hardcode_into_libs=no
10107
10108# when you set need_version to no, make sure it does not cause -set_version
10109# flags to be left without arguments
10110need_version=unknown
10111
10112case $host_os in
10113aix3*)
10114 version_type=linux
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10116 shlibpath_var=LIBPATH
10117
10118 # AIX 3 has no versioning support, so we append a major version to the name.
10119 soname_spec='${libname}${release}${shared_ext}$major'
10120 ;;
10121
50e7d84b 10122aix[4-9]*)
dabbade6
L
10123 version_type=linux
10124 need_lib_prefix=no
10125 need_version=no
10126 hardcode_into_libs=yes
10127 if test "$host_cpu" = ia64; then
10128 # AIX 5 supports IA64
10129 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 else
10132 # With GCC up to 2.95.x, collect2 would create an import file
10133 # for dependence libraries. The import file would start with
10134 # the line `#! .'. This would cause the generated library to
10135 # depend on `.', always an invalid library. This was fixed in
10136 # development snapshots of GCC prior to 3.0.
10137 case $host_os in
10138 aix4 | aix4.[01] | aix4.[01].*)
10139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10140 echo ' yes '
10141 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10142 :
10143 else
10144 can_build_shared=no
10145 fi
10146 ;;
10147 esac
10148 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10149 # soname into executable. Probably we can add versioning support to
10150 # collect2, so additional links can be useful in future.
10151 if test "$aix_use_runtimelinking" = yes; then
10152 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10153 # instead of lib<name>.a to let people know that these are not
10154 # typical AIX shared libraries.
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 else
10157 # We preserve .a as extension for shared libraries through AIX4.2
10158 # and later when we are not doing run time linking.
10159 library_names_spec='${libname}${release}.a $libname.a'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 fi
10162 shlibpath_var=LIBPATH
10163 fi
10164 ;;
10165
10166amigaos*)
1927a18f
L
10167 case $host_cpu in
10168 powerpc)
10169 # Since July 2007 AmigaOS4 officially supports .so libraries.
10170 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 ;;
10173 m68k)
dabbade6
L
10174 library_names_spec='$libname.ixlibrary $libname.a'
10175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10176 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
10177 ;;
10178 esac
dabbade6
L
10179 ;;
10180
10181beos*)
10182 library_names_spec='${libname}${shared_ext}'
10183 dynamic_linker="$host_os ld.so"
10184 shlibpath_var=LIBRARY_PATH
10185 ;;
10186
10187bsdi[45]*)
10188 version_type=linux
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10193 shlibpath_var=LD_LIBRARY_PATH
10194 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10195 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10196 # the default ld.so.conf also contains /usr/contrib/lib and
10197 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10198 # libtool to hard-code these into programs
10199 ;;
10200
1927a18f 10201cygwin* | mingw* | pw32* | cegcc*)
dabbade6
L
10202 version_type=windows
10203 shrext_cmds=".dll"
10204 need_version=no
10205 need_lib_prefix=no
10206
1927a18f
L
10207 case $GCC,$host_os in
10208 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
dabbade6
L
10209 library_names_spec='$libname.dll.a'
10210 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10211 postinstall_cmds='base_file=`basename \${file}`~
10212 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10213 dldir=$destdir/`dirname \$dlpath`~
10214 test -d \$dldir || mkdir -p \$dldir~
10215 $install_prog $dir/$dlname \$dldir/$dlname~
10216 chmod a+x \$dldir/$dlname~
10217 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10218 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10219 fi'
10220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10221 dlpath=$dir/\$dldll~
10222 $RM \$dlpath'
10223 shlibpath_overrides_runpath=yes
10224
10225 case $host_os in
10226 cygwin*)
10227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10229
10230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
dabbade6 10231 ;;
1927a18f 10232 mingw* | cegcc*)
dabbade6
L
10233 # MinGW DLLs use traditional 'lib' prefix
10234 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
dabbade6
L
10235 ;;
10236 pw32*)
10237 # pw32 DLLs use 'pw' prefix rather than 'lib'
10238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10239 ;;
10240 esac
10241 ;;
10242
10243 *)
10244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10245 ;;
10246 esac
10247 dynamic_linker='Win32 ld.exe'
10248 # FIXME: first we should search . and the directory the executable is in
10249 shlibpath_var=PATH
10250 ;;
10251
10252darwin* | rhapsody*)
10253 dynamic_linker="$host_os dyld"
10254 version_type=darwin
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10258 soname_spec='${libname}${release}${major}$shared_ext'
10259 shlibpath_overrides_runpath=yes
10260 shlibpath_var=DYLD_LIBRARY_PATH
10261 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10262
10263 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10264 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10265 ;;
10266
10267dgux*)
10268 version_type=linux
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 ;;
10275
10276freebsd1*)
10277 dynamic_linker=no
10278 ;;
10279
10280freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[123]*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10290 fi
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10297 ;;
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10301 ;;
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2*)
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10311 ;;
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10316 ;;
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 esac
10322 ;;
10323
10324gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 hardcode_into_libs=yes
10332 ;;
10333
3725885a
RW
10334haiku*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10344 hardcode_into_libs=yes
10345 ;;
10346
dabbade6
L
10347hpux9* | hpux10* | hpux11*)
10348 # Give a soname corresponding to the major version so that dld.sl refuses to
10349 # link against other versions.
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 case $host_cpu in
10354 ia64*)
10355 shrext_cmds='.so'
10356 hardcode_into_libs=yes
10357 dynamic_linker="$host_os dld.so"
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 if test "X$HPUX_IA64_MODE" = X32; then
10363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10364 else
10365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10366 fi
10367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10368 ;;
10369 hppa*64*)
10370 shrext_cmds='.sl'
10371 hardcode_into_libs=yes
10372 dynamic_linker="$host_os dld.sl"
10373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10379 ;;
10380 *)
10381 shrext_cmds='.sl'
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=SHLIB_PATH
10384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 ;;
10388 esac
3725885a 10389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
dabbade6 10390 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10391 # or fails outright, so override atomically:
10392 install_override_mode=555
dabbade6
L
10393 ;;
10394
10395interix[3-9]*)
10396 version_type=linux
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10405 ;;
10406
10407irix5* | irix6* | nonstopux*)
10408 case $host_os in
10409 nonstopux*) version_type=nonstopux ;;
10410 *)
10411 if test "$lt_cv_prog_gnu_ld" = yes; then
10412 version_type=linux
10413 else
10414 version_type=irix
10415 fi ;;
10416 esac
10417 need_lib_prefix=no
10418 need_version=no
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 case $host_os in
10422 irix5* | nonstopux*)
10423 libsuff= shlibsuff=
10424 ;;
10425 *)
10426 case $LD in # libtool.m4 will add one of these switches to LD
10427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10428 libsuff= shlibsuff= libmagic=32-bit;;
10429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10430 libsuff=32 shlibsuff=N32 libmagic=N32;;
10431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10433 *) libsuff= shlibsuff= libmagic=never-match;;
10434 esac
10435 ;;
10436 esac
10437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10438 shlibpath_overrides_runpath=no
10439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10441 hardcode_into_libs=yes
10442 ;;
10443
10444# No shared lib support for Linux oldld, aout, or coff.
10445linux*oldld* | linux*aout* | linux*coff*)
10446 dynamic_linker=no
10447 ;;
10448
10449# This must be Linux ELF.
58e24671 10450linux* | k*bsd*-gnu | kopensolaris*-gnu)
dabbade6
L
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
39144654 10459
dabbade6 10460 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
10461 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
39144654
RW
10463else
10464 lt_cv_shlibpath_overrides_runpath=no
10465 save_LDFLAGS=$LDFLAGS
10466 save_libdir=$libdir
10467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10470/* end confdefs.h. */
10471
d7040cdb
SE
10472int
10473main ()
10474{
dabbade6 10475
d7040cdb
SE
10476 ;
10477 return 0;
10478}
10479_ACEOF
81ecdfbb
RW
10480if ac_fn_c_try_link "$LINENO"; then :
10481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10482 lt_cv_shlibpath_overrides_runpath=yes
dabbade6 10483fi
d7040cdb 10484fi
81ecdfbb
RW
10485rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10487 LDFLAGS=$save_LDFLAGS
10488 libdir=$save_libdir
10489
10490fi
10491
10492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
dabbade6
L
10493
10494 # This implies no fast_install, which is unacceptable.
10495 # Some rework will be needed to allow for fast_install
10496 # before this can be enabled.
10497 hardcode_into_libs=yes
10498
10499 # Append ld.so.conf contents to the search path
10500 if test -f /etc/ld.so.conf; then
3725885a 10501 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
10502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10503 fi
10504
10505 # We used to test for /lib/ld.so.1 and disable shared libraries on
10506 # powerpc, because MkLinux only supported shared libraries with the
10507 # GNU dynamic linker. Since this was broken with cross compilers,
10508 # most powerpc-linux boxes support dynamic linking these days and
10509 # people can always --disable-shared, the test was removed, and we
10510 # assume the GNU/Linux dynamic linker is in use.
10511 dynamic_linker='GNU/Linux ld.so'
10512 ;;
10513
10514netbsd*)
10515 version_type=sunos
10516 need_lib_prefix=no
10517 need_version=no
10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521 dynamic_linker='NetBSD (a.out) ld.so'
10522 else
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 dynamic_linker='NetBSD ld.elf_so'
10526 fi
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=yes
10529 hardcode_into_libs=yes
10530 ;;
10531
10532newsos6)
10533 version_type=linux
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10537 ;;
10538
10539*nto* | *qnx*)
10540 version_type=qnx
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10548 dynamic_linker='ldqnx.so'
10549 ;;
10550
10551openbsd*)
10552 version_type=sunos
10553 sys_lib_dlsearch_path_spec="/usr/lib"
10554 need_lib_prefix=no
10555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10556 case $host_os in
10557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10558 *) need_version=no ;;
10559 esac
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10564 case $host_os in
10565 openbsd2.[89] | openbsd2.[89].*)
10566 shlibpath_overrides_runpath=no
10567 ;;
10568 *)
10569 shlibpath_overrides_runpath=yes
10570 ;;
10571 esac
10572 else
10573 shlibpath_overrides_runpath=yes
10574 fi
10575 ;;
10576
10577os2*)
10578 libname_spec='$name'
10579 shrext_cmds=".dll"
10580 need_lib_prefix=no
10581 library_names_spec='$libname${shared_ext} $libname.a'
10582 dynamic_linker='OS/2 ld.exe'
10583 shlibpath_var=LIBPATH
10584 ;;
10585
10586osf3* | osf4* | osf5*)
10587 version_type=osf
10588 need_lib_prefix=no
10589 need_version=no
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10595 ;;
10596
10597rdos*)
10598 dynamic_linker=no
10599 ;;
10600
10601solaris*)
10602 version_type=linux
10603 need_lib_prefix=no
10604 need_version=no
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10610 # ldd complains unless libraries are executable
10611 postinstall_cmds='chmod +x $lib'
10612 ;;
10613
10614sunos4*)
10615 version_type=sunos
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 if test "$with_gnu_ld" = yes; then
10621 need_lib_prefix=no
10622 fi
10623 need_version=yes
10624 ;;
10625
10626sysv4 | sysv4.3*)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 case $host_vendor in
10632 sni)
10633 shlibpath_overrides_runpath=no
10634 need_lib_prefix=no
10635 runpath_var=LD_RUN_PATH
10636 ;;
10637 siemens)
10638 need_lib_prefix=no
10639 ;;
10640 motorola)
10641 need_lib_prefix=no
10642 need_version=no
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10645 ;;
10646 esac
10647 ;;
10648
10649sysv4*MP*)
10650 if test -d /usr/nec ;then
10651 version_type=linux
10652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10653 soname_spec='$libname${shared_ext}.$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 fi
10656 ;;
10657
10658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10659 version_type=freebsd-elf
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 if test "$with_gnu_ld" = yes; then
10668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10669 else
10670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10671 case $host_os in
10672 sco3.2v5*)
10673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10674 ;;
10675 esac
10676 fi
10677 sys_lib_dlsearch_path_spec='/usr/lib'
10678 ;;
10679
10680tpf*)
10681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
1927a18f 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
dabbade6
L
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=no
10688 hardcode_into_libs=yes
10689 ;;
10690
10691uts4*)
10692 version_type=linux
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 ;;
d7040cdb 10697
dabbade6
L
10698*)
10699 dynamic_linker=no
10700 ;;
10701esac
81ecdfbb
RW
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10703$as_echo "$dynamic_linker" >&6; }
dabbade6 10704test "$dynamic_linker" = no && can_build_shared=no
d7040cdb 10705
dabbade6
L
10706variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10707if test "$GCC" = yes; then
10708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10709fi
d7040cdb 10710
1927a18f
L
10711if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10713fi
10714if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10716fi
10717
d7040cdb 10718
d7040cdb
SE
10719
10720
d7040cdb
SE
10721
10722
d7040cdb
SE
10723
10724
d7040cdb
SE
10725
10726
d7040cdb
SE
10727
10728
d7040cdb 10729
d7040cdb 10730
d7040cdb 10731
d7040cdb 10732
d7040cdb 10733
d7040cdb 10734
d7040cdb 10735
d7040cdb 10736
d7040cdb 10737
d7040cdb 10738
d7040cdb 10739
d7040cdb 10740
d7040cdb 10741
d7040cdb 10742
d7040cdb
SE
10743
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
SE
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
d7040cdb
SE
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
d7040cdb 10788
d7040cdb 10789
dabbade6
L
10790
10791
10792
10793
10794
10795
10796
10797
3725885a
RW
10798
10799
10800
10801
10802
dabbade6
L
10803
10804
10805
10806
10807
10808
81ecdfbb
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10810$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
dabbade6
L
10811hardcode_action=
10812if test -n "$hardcode_libdir_flag_spec" ||
10813 test -n "$runpath_var" ||
10814 test "X$hardcode_automatic" = "Xyes" ; then
10815
10816 # We can hardcode non-existent directories.
10817 if test "$hardcode_direct" != no &&
10818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10819 # have to relink, otherwise we might link with an installed library
10820 # when we should be linking with a yet-to-be-installed one
10821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10822 test "$hardcode_minus_L" != no; then
10823 # Linking always hardcodes the temporary library directory.
10824 hardcode_action=relink
10825 else
10826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10827 hardcode_action=immediate
10828 fi
10829else
10830 # We cannot hardcode anything, or else we can only hardcode existing
10831 # directories.
10832 hardcode_action=unsupported
10833fi
81ecdfbb
RW
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10835$as_echo "$hardcode_action" >&6; }
dabbade6
L
10836
10837if test "$hardcode_action" = relink ||
10838 test "$inherit_rpath" = yes; then
10839 # Fast installation is not supported
10840 enable_fast_install=no
10841elif test "$shlibpath_overrides_runpath" = yes ||
10842 test "$enable_shared" = no; then
10843 # Fast installation is not necessary
10844 enable_fast_install=needless
10845fi
10846
10847
10848
10849
10850
10851
10852 if test "x$enable_dlopen" != xyes; then
10853 enable_dlopen=unknown
10854 enable_dlopen_self=unknown
10855 enable_dlopen_self_static=unknown
10856else
10857 lt_cv_dlopen=no
10858 lt_cv_dlopen_libs=
10859
d7040cdb 10860 case $host_os in
dabbade6
L
10861 beos*)
10862 lt_cv_dlopen="load_add_on"
10863 lt_cv_dlopen_libs=
10864 lt_cv_dlopen_self=yes
d7040cdb
SE
10865 ;;
10866
1927a18f 10867 mingw* | pw32* | cegcc*)
dabbade6
L
10868 lt_cv_dlopen="LoadLibrary"
10869 lt_cv_dlopen_libs=
d7040cdb 10870 ;;
d7040cdb 10871
dabbade6
L
10872 cygwin*)
10873 lt_cv_dlopen="dlopen"
10874 lt_cv_dlopen_libs=
10875 ;;
d7040cdb 10876
dabbade6
L
10877 darwin*)
10878 # if libdl is installed we need to link against it
81ecdfbb
RW
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10880$as_echo_n "checking for dlopen in -ldl... " >&6; }
10881if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
dabbade6
L
10883else
10884 ac_check_lib_save_LIBS=$LIBS
10885LIBS="-ldl $LIBS"
81ecdfbb 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10887/* end confdefs.h. */
d7040cdb 10888
81ecdfbb
RW
10889/* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
dabbade6
L
10892#ifdef __cplusplus
10893extern "C"
10894#endif
dabbade6
L
10895char dlopen ();
10896int
10897main ()
10898{
81ecdfbb 10899return dlopen ();
dabbade6
L
10900 ;
10901 return 0;
10902}
10903_ACEOF
81ecdfbb 10904if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
10905 ac_cv_lib_dl_dlopen=yes
10906else
81ecdfbb 10907 ac_cv_lib_dl_dlopen=no
d7040cdb 10908fi
81ecdfbb
RW
10909rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
10911LIBS=$ac_check_lib_save_LIBS
10912fi
81ecdfbb
RW
10913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10914$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10915if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
dabbade6
L
10916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10917else
d7040cdb 10918
dabbade6
L
10919 lt_cv_dlopen="dyld"
10920 lt_cv_dlopen_libs=
10921 lt_cv_dlopen_self=yes
d7040cdb 10922
81ecdfbb 10923fi
d7040cdb 10924
81ecdfbb
RW
10925 ;;
10926
10927 *)
10928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10929if test "x$ac_cv_func_shl_load" = x""yes; then :
10930 lt_cv_dlopen="shl_load"
10931else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10933$as_echo_n "checking for shl_load in -ldld... " >&6; }
10934if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936else
10937 ac_check_lib_save_LIBS=$LIBS
10938LIBS="-ldld $LIBS"
10939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h. */
10941
10942/* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
dabbade6 10944 builtin and then its argument prototype would still apply. */
dabbade6 10945#ifdef __cplusplus
81ecdfbb 10946extern "C"
dabbade6 10947#endif
81ecdfbb 10948char shl_load ();
dabbade6
L
10949int
10950main ()
10951{
81ecdfbb 10952return shl_load ();
dabbade6
L
10953 ;
10954 return 0;
10955}
10956_ACEOF
81ecdfbb
RW
10957if ac_fn_c_try_link "$LINENO"; then :
10958 ac_cv_lib_dld_shl_load=yes
dabbade6 10959else
81ecdfbb 10960 ac_cv_lib_dld_shl_load=no
dabbade6 10961fi
81ecdfbb
RW
10962rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964LIBS=$ac_check_lib_save_LIBS
dabbade6 10965fi
81ecdfbb
RW
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10967$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10968if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10970else
10971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10972if test "x$ac_cv_func_dlopen" = x""yes; then :
dabbade6
L
10973 lt_cv_dlopen="dlopen"
10974else
81ecdfbb
RW
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10976$as_echo_n "checking for dlopen in -ldl... " >&6; }
10977if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
dabbade6
L
10979else
10980 ac_check_lib_save_LIBS=$LIBS
10981LIBS="-ldl $LIBS"
81ecdfbb 10982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 10983/* end confdefs.h. */
d7040cdb 10984
81ecdfbb
RW
10985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
dabbade6
L
10988#ifdef __cplusplus
10989extern "C"
10990#endif
dabbade6
L
10991char dlopen ();
10992int
10993main ()
10994{
81ecdfbb 10995return dlopen ();
dabbade6
L
10996 ;
10997 return 0;
10998}
10999_ACEOF
81ecdfbb 11000if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
11001 ac_cv_lib_dl_dlopen=yes
11002else
81ecdfbb 11003 ac_cv_lib_dl_dlopen=no
dabbade6 11004fi
81ecdfbb
RW
11005rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
11007LIBS=$ac_check_lib_save_LIBS
11008fi
81ecdfbb
RW
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11010$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11011if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
dabbade6
L
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11013else
81ecdfbb
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11015$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11016if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
dabbade6
L
11018else
11019 ac_check_lib_save_LIBS=$LIBS
11020LIBS="-lsvld $LIBS"
81ecdfbb 11021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 11022/* end confdefs.h. */
d7040cdb 11023
81ecdfbb
RW
11024/* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
dabbade6
L
11027#ifdef __cplusplus
11028extern "C"
11029#endif
dabbade6
L
11030char dlopen ();
11031int
11032main ()
11033{
81ecdfbb 11034return dlopen ();
dabbade6
L
11035 ;
11036 return 0;
11037}
11038_ACEOF
81ecdfbb 11039if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
11040 ac_cv_lib_svld_dlopen=yes
11041else
81ecdfbb 11042 ac_cv_lib_svld_dlopen=no
dabbade6 11043fi
81ecdfbb
RW
11044rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
dabbade6
L
11046LIBS=$ac_check_lib_save_LIBS
11047fi
81ecdfbb
RW
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11049$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11050if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
dabbade6
L
11051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11052else
81ecdfbb
RW
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11054$as_echo_n "checking for dld_link in -ldld... " >&6; }
11055if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
dabbade6
L
11057else
11058 ac_check_lib_save_LIBS=$LIBS
11059LIBS="-ldld $LIBS"
81ecdfbb 11060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dabbade6 11061/* end confdefs.h. */
d7040cdb 11062
81ecdfbb
RW
11063/* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
dabbade6
L
11066#ifdef __cplusplus
11067extern "C"
11068#endif
dabbade6
L
11069char dld_link ();
11070int
11071main ()
11072{
81ecdfbb 11073return dld_link ();
dabbade6
L
11074 ;
11075 return 0;
11076}
11077_ACEOF
81ecdfbb 11078if ac_fn_c_try_link "$LINENO"; then :
dabbade6
L
11079 ac_cv_lib_dld_dld_link=yes
11080else
81ecdfbb 11081 ac_cv_lib_dld_dld_link=no
d7040cdb 11082fi
81ecdfbb
RW
11083rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
dabbade6 11085LIBS=$ac_check_lib_save_LIBS
d7040cdb 11086fi
81ecdfbb
RW
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11088$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11089if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
1927a18f 11090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
d7040cdb
SE
11091fi
11092
d7040cdb 11093
d7040cdb
SE
11094fi
11095
11096
dabbade6 11097fi
d7040cdb
SE
11098
11099
dabbade6 11100fi
d7040cdb
SE
11101
11102
d7040cdb
SE
11103fi
11104
979273e3 11105
252b5132 11106fi
252b5132 11107
dabbade6
L
11108 ;;
11109 esac
252b5132 11110
dabbade6
L
11111 if test "x$lt_cv_dlopen" != xno; then
11112 enable_dlopen=yes
11113 else
11114 enable_dlopen=no
11115 fi
1c0d3aa6 11116
dabbade6
L
11117 case $lt_cv_dlopen in
11118 dlopen)
11119 save_CPPFLAGS="$CPPFLAGS"
11120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20e95c23 11121
dabbade6
L
11122 save_LDFLAGS="$LDFLAGS"
11123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20e95c23 11124
dabbade6
L
11125 save_LIBS="$LIBS"
11126 LIBS="$lt_cv_dlopen_libs $LIBS"
20e95c23 11127
81ecdfbb
RW
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11129$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11130if test "${lt_cv_dlopen_self+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
d7040cdb 11132else
dabbade6
L
11133 if test "$cross_compiling" = yes; then :
11134 lt_cv_dlopen_self=cross
d7040cdb 11135else
dabbade6
L
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11139#line 11139 "configure"
dabbade6 11140#include "confdefs.h"
20e95c23 11141
dabbade6
L
11142#if HAVE_DLFCN_H
11143#include <dlfcn.h>
11144#endif
20e95c23 11145
dabbade6 11146#include <stdio.h>
20e95c23 11147
dabbade6
L
11148#ifdef RTLD_GLOBAL
11149# define LT_DLGLOBAL RTLD_GLOBAL
11150#else
11151# ifdef DL_GLOBAL
11152# define LT_DLGLOBAL DL_GLOBAL
11153# else
11154# define LT_DLGLOBAL 0
11155# endif
11156#endif
20e95c23 11157
dabbade6
L
11158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160#ifndef LT_DLLAZY_OR_NOW
11161# ifdef RTLD_LAZY
11162# define LT_DLLAZY_OR_NOW RTLD_LAZY
11163# else
11164# ifdef DL_LAZY
11165# define LT_DLLAZY_OR_NOW DL_LAZY
11166# else
11167# ifdef RTLD_NOW
11168# define LT_DLLAZY_OR_NOW RTLD_NOW
11169# else
11170# ifdef DL_NOW
11171# define LT_DLLAZY_OR_NOW DL_NOW
11172# else
11173# define LT_DLLAZY_OR_NOW 0
11174# endif
11175# endif
11176# endif
11177# endif
11178#endif
20e95c23 11179
3725885a
RW
11180/* When -fvisbility=hidden is used, assume the code has been annotated
11181 correspondingly for the symbols needed. */
11182#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11183void fnord () __attribute__((visibility("default")));
11184#endif
11185
11186void fnord () { int i=42; }
dabbade6
L
11187int main ()
11188{
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
20e95c23 11191
dabbade6
L
11192 if (self)
11193 {
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11195 else
11196 {
11197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11198 else puts (dlerror ());
11199 }
dabbade6
L
11200 /* dlclose (self); */
11201 }
11202 else
11203 puts (dlerror ());
d7040cdb 11204
1927a18f 11205 return status;
dabbade6
L
11206}
11207_LT_EOF
81ecdfbb 11208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11209 (eval $ac_link) 2>&5
11210 ac_status=$?
81ecdfbb
RW
11211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11213 (./conftest; exit; ) >&5 2>/dev/null
11214 lt_status=$?
11215 case x$lt_status in
11216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11219 esac
11220 else :
11221 # compilation failed
11222 lt_cv_dlopen_self=no
11223 fi
d7040cdb 11224fi
dabbade6
L
11225rm -fr conftest*
11226
252b5132 11227
d7040cdb 11228fi
81ecdfbb
RW
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11230$as_echo "$lt_cv_dlopen_self" >&6; }
d7040cdb 11231
dabbade6
L
11232 if test "x$lt_cv_dlopen_self" = xyes; then
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11235$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11236if test "${lt_cv_dlopen_self_static+set}" = set; then :
11237 $as_echo_n "(cached) " >&6
252b5132 11238else
dabbade6
L
11239 if test "$cross_compiling" = yes; then :
11240 lt_cv_dlopen_self_static=cross
d7040cdb 11241else
dabbade6
L
11242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11243 lt_status=$lt_dlunknown
11244 cat > conftest.$ac_ext <<_LT_EOF
3725885a 11245#line 11245 "configure"
dabbade6 11246#include "confdefs.h"
252b5132 11247
dabbade6
L
11248#if HAVE_DLFCN_H
11249#include <dlfcn.h>
11250#endif
252b5132 11251
dabbade6 11252#include <stdio.h>
d7040cdb 11253
dabbade6
L
11254#ifdef RTLD_GLOBAL
11255# define LT_DLGLOBAL RTLD_GLOBAL
11256#else
11257# ifdef DL_GLOBAL
11258# define LT_DLGLOBAL DL_GLOBAL
11259# else
11260# define LT_DLGLOBAL 0
11261# endif
11262#endif
20e95c23 11263
dabbade6
L
11264/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11265 find out it does not work in some platform. */
11266#ifndef LT_DLLAZY_OR_NOW
11267# ifdef RTLD_LAZY
11268# define LT_DLLAZY_OR_NOW RTLD_LAZY
11269# else
11270# ifdef DL_LAZY
11271# define LT_DLLAZY_OR_NOW DL_LAZY
11272# else
11273# ifdef RTLD_NOW
11274# define LT_DLLAZY_OR_NOW RTLD_NOW
11275# else
11276# ifdef DL_NOW
11277# define LT_DLLAZY_OR_NOW DL_NOW
11278# else
11279# define LT_DLLAZY_OR_NOW 0
11280# endif
11281# endif
11282# endif
11283# endif
11284#endif
979273e3 11285
3725885a
RW
11286/* When -fvisbility=hidden is used, assume the code has been annotated
11287 correspondingly for the symbols needed. */
11288#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11289void fnord () __attribute__((visibility("default")));
11290#endif
11291
11292void fnord () { int i=42; }
dabbade6
L
11293int main ()
11294{
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
d7040cdb 11297
dabbade6
L
11298 if (self)
11299 {
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11301 else
11302 {
11303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11304 else puts (dlerror ());
11305 }
dabbade6
L
11306 /* dlclose (self); */
11307 }
11308 else
11309 puts (dlerror ());
d7040cdb 11310
1927a18f 11311 return status;
dabbade6
L
11312}
11313_LT_EOF
81ecdfbb 11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
dabbade6
L
11315 (eval $ac_link) 2>&5
11316 ac_status=$?
81ecdfbb
RW
11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
dabbade6
L
11319 (./conftest; exit; ) >&5 2>/dev/null
11320 lt_status=$?
11321 case x$lt_status in
11322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11325 esac
11326 else :
11327 # compilation failed
11328 lt_cv_dlopen_self_static=no
11329 fi
20e95c23 11330fi
dabbade6 11331rm -fr conftest*
979273e3 11332
d7040cdb
SE
11333
11334fi
81ecdfbb
RW
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11336$as_echo "$lt_cv_dlopen_self_static" >&6; }
dabbade6
L
11337 fi
11338
11339 CPPFLAGS="$save_CPPFLAGS"
11340 LDFLAGS="$save_LDFLAGS"
11341 LIBS="$save_LIBS"
11342 ;;
11343 esac
11344
11345 case $lt_cv_dlopen_self in
11346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11347 *) enable_dlopen_self=unknown ;;
11348 esac
11349
11350 case $lt_cv_dlopen_self_static in
11351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11352 *) enable_dlopen_self_static=unknown ;;
11353 esac
d7040cdb 11354fi
dabbade6
L
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372striplib=
11373old_striplib=
81ecdfbb
RW
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11375$as_echo_n "checking whether stripping libraries is possible... " >&6; }
dabbade6
L
11376if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380$as_echo "yes" >&6; }
d7040cdb 11381else
dabbade6
L
11382# FIXME - insert some real tests, host_os isn't really good enough
11383 case $host_os in
11384 darwin*)
11385 if test -n "$STRIP" ; then
11386 striplib="$STRIP -x"
11387 old_striplib="$STRIP -S"
81ecdfbb
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389$as_echo "yes" >&6; }
dabbade6 11390 else
81ecdfbb
RW
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392$as_echo "no" >&6; }
dabbade6
L
11393 fi
11394 ;;
11395 *)
81ecdfbb
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397$as_echo "no" >&6; }
dabbade6
L
11398 ;;
11399 esac
d7040cdb 11400fi
20e95c23 11401
979273e3 11402
dabbade6
L
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413 # Report which library types will actually be built
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11415$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11417$as_echo "$can_build_shared" >&6; }
dabbade6 11418
81ecdfbb
RW
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11420$as_echo_n "checking whether to build shared libraries... " >&6; }
dabbade6
L
11421 test "$can_build_shared" = "no" && enable_shared=no
11422
11423 # On AIX, shared libraries and static libraries use the same namespace, and
11424 # are all built from PIC.
11425 case $host_os in
11426 aix3*)
11427 test "$enable_shared" = yes && enable_static=no
11428 if test -n "$RANLIB"; then
11429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11430 postinstall_cmds='$RANLIB $lib'
11431 fi
11432 ;;
11433
50e7d84b 11434 aix[4-9]*)
dabbade6
L
11435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11436 test "$enable_shared" = yes && enable_static=no
11437 fi
11438 ;;
11439 esac
81ecdfbb
RW
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11441$as_echo "$enable_shared" >&6; }
dabbade6 11442
81ecdfbb
RW
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11444$as_echo_n "checking whether to build static libraries... " >&6; }
dabbade6
L
11445 # Make sure either enable_shared or enable_static is yes.
11446 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11448$as_echo "$enable_static" >&6; }
dabbade6
L
11449
11450
11451
d7040cdb 11452
252b5132 11453fi
dabbade6
L
11454ac_ext=c
11455ac_cpp='$CPP $CPPFLAGS'
11456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458ac_compiler_gnu=$ac_cv_c_compiler_gnu
20e95c23 11459
dabbade6 11460CC="$lt_save_CC"
20e95c23 11461
20e95c23 11462
d7040cdb 11463
d7040cdb 11464
d7040cdb 11465
20e95c23 11466
dabbade6
L
11467
11468
11469
11470
11471
11472
11473
81ecdfbb 11474 ac_config_commands="$ac_config_commands libtool"
dabbade6
L
11475
11476
11477
11478
11479# Only expand once:
11480
11481
11482
81ecdfbb
RW
11483# Check whether --enable-targets was given.
11484if test "${enable_targets+set}" = set; then :
11485 enableval=$enable_targets; case "${enableval}" in
11486 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
dabbade6
L
11487 ;;
11488 no) enable_targets= ;;
11489 *) enable_targets=$enableval ;;
11490esac
81ecdfbb
RW
11491fi
11492
dabbade6 11493
397841b5
AM
11494GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496/* end confdefs.h. */
11497__GNUC__
11498_ACEOF
11499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11500 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11501
11502else
11503 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11504fi
11505rm -f conftest*
11506
dabbade6 11507
81ecdfbb
RW
11508# Check whether --enable-werror was given.
11509if test "${enable_werror+set}" = set; then :
11510 enableval=$enable_werror; case "${enableval}" in
dabbade6
L
11511 yes | y) ERROR_ON_WARNING="yes" ;;
11512 no | n) ERROR_ON_WARNING="no" ;;
81ecdfbb 11513 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
dabbade6 11514 esac
81ecdfbb
RW
11515fi
11516
dabbade6 11517
397841b5 11518# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
11519case "${host}" in
11520 *-*-mingw32*)
11521 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11522 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11523 fi
11524 ;;
11525 *) ;;
11526esac
11527
dabbade6
L
11528# Enable -Werror by default when using gcc
11529if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11530 ERROR_ON_WARNING=yes
d7040cdb 11531fi
20e95c23 11532
dabbade6
L
11533NO_WERROR=
11534if test "${ERROR_ON_WARNING}" = yes ; then
11535 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11536 NO_WERROR="-Wno-error"
20e95c23 11537fi
d7040cdb 11538
dabbade6
L
11539if test "${GCC}" = yes ; then
11540 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11541fi
d7040cdb 11542
81ecdfbb
RW
11543# Check whether --enable-build-warnings was given.
11544if test "${enable_build_warnings+set}" = set; then :
11545 enableval=$enable_build_warnings; case "${enableval}" in
dabbade6
L
11546 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11547 no) if test "${GCC}" = yes ; then
11548 WARN_CFLAGS="-w"
11549 fi;;
11550 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11551 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11552 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11553 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11554 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11555esac
81ecdfbb
RW
11556fi
11557
979273e3 11558
dabbade6
L
11559if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11560 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d7040cdb 11561fi
dabbade6
L
11562
11563
11564
11565
11566
81ecdfbb 11567ac_config_headers="$ac_config_headers config.h:config.in"
dabbade6
L
11568
11569
11570if test -z "$target" ; then
81ecdfbb 11571 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
d7040cdb 11572fi
dabbade6 11573
81ecdfbb
RW
11574
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11576$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11577 # Check whether --enable-maintainer-mode was given.
11578if test "${enable_maintainer_mode+set}" = set; then :
11579 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
d7040cdb 11580else
dabbade6 11581 USE_MAINTAINER_MODE=no
81ecdfbb 11582fi
d7040cdb 11583
81ecdfbb
RW
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11585$as_echo "$USE_MAINTAINER_MODE" >&6; }
11586 if test $USE_MAINTAINER_MODE = yes; then
dabbade6
L
11587 MAINTAINER_MODE_TRUE=
11588 MAINTAINER_MODE_FALSE='#'
252b5132 11589else
dabbade6
L
11590 MAINTAINER_MODE_TRUE='#'
11591 MAINTAINER_MODE_FALSE=
252b5132 11592fi
d7040cdb 11593
dabbade6
L
11594 MAINT=$MAINTAINER_MODE_TRUE
11595
11596
11597 case ${build_alias} in
11598 "") build_noncanonical=${build} ;;
11599 *) build_noncanonical=${build_alias} ;;
11600esac
11601
11602 case ${host_alias} in
11603 "") host_noncanonical=${build_noncanonical} ;;
11604 *) host_noncanonical=${host_alias} ;;
11605esac
979273e3 11606
dabbade6
L
11607 case ${target_alias} in
11608 "") target_noncanonical=${host_noncanonical} ;;
11609 *) target_noncanonical=${target_alias} ;;
d7040cdb 11610esac
252b5132 11611
81ecdfbb
RW
11612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
11613$as_echo_n "checking whether to install libbfd... " >&6; }
11614 # Check whether --enable-install-libbfd was given.
11615if test "${enable_install_libbfd+set}" = set; then :
11616 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
979273e3 11617else
dabbade6
L
11618 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11619 install_libbfd_p=yes
11620 else
11621 install_libbfd_p=no
11622 fi
81ecdfbb 11623fi
d7040cdb 11624
81ecdfbb
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
11626$as_echo "$install_libbfd_p" >&6; }
11627 if test $install_libbfd_p = yes; then
dabbade6
L
11628 INSTALL_LIBBFD_TRUE=
11629 INSTALL_LIBBFD_FALSE='#'
11630else
11631 INSTALL_LIBBFD_TRUE='#'
11632 INSTALL_LIBBFD_FALSE=
d7040cdb
SE
11633fi
11634
dabbade6 11635 # Need _noncanonical variables for this.
979273e3 11636
d7040cdb
SE
11637
11638
dabbade6
L
11639
11640 # libbfd.a is a host library containing target dependent code
11641 bfdlibdir='$(libdir)'
11642 bfdincludedir='$(includedir)'
11643 if test "${host}" != "${target}"; then
11644 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11645 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11646 fi
11647
11648
11649
11650
11651
11652
573e8a1c
RW
11653
11654
dabbade6
L
11655# host-specific stuff:
11656
d7040cdb
SE
11657ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11658# If we haven't got the data from the intl directory,
11659# assume NLS is disabled.
11660USE_NLS=no
11661LIBINTL=
11662LIBINTL_DEP=
11663INCINTL=
11664XGETTEXT=
11665GMSGFMT=
11666POSUB=
11667
11668if test -f ../intl/config.intl; then
11669 . ../intl/config.intl
11670fi
81ecdfbb
RW
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11672$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 11673if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675$as_echo "no" >&6; }
d7040cdb 11676else
81ecdfbb
RW
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11678$as_echo "yes" >&6; }
d7040cdb 11679
81ecdfbb 11680$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
11681
11682
81ecdfbb
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11684$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
11685 # Look for .po and .gmo files in the source directory.
11686 CATALOGS=
11687 XLINGUAS=
11688 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11689 # If there aren't any .gmo files the shell will give us the
11690 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11691 # weeded out.
11692 case "$cat" in *\**)
11693 continue;;
11694 esac
11695 # The quadruple backslash is collapsed to a double backslash
11696 # by the backticks, then collapsed again by the double quotes,
11697 # leaving us with one backslash in the sed expression (right
11698 # before the dot that mustn't act as a wildcard).
11699 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11700 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11701 # The user is allowed to set LINGUAS to a list of languages to
11702 # install catalogs for. If it's empty that means "all of them."
11703 if test "x$LINGUAS" = x; then
11704 CATALOGS="$CATALOGS $cat"
11705 XLINGUAS="$XLINGUAS $lang"
11706 else
11707 case "$LINGUAS" in *$lang*)
11708 CATALOGS="$CATALOGS $cat"
11709 XLINGUAS="$XLINGUAS $lang"
11710 ;;
11711 esac
11712 fi
11713 done
11714 LINGUAS="$XLINGUAS"
81ecdfbb
RW
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11716$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
11717
11718
11719 DATADIRNAME=share
11720
11721 INSTOBJEXT=.mo
11722
11723 GENCAT=gencat
11724
11725 CATOBJEXT=.gmo
11726
11727fi
11728
11729 MKINSTALLDIRS=
11730 if test -n "$ac_aux_dir"; then
11731 case "$ac_aux_dir" in
11732 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11733 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11734 esac
11735 fi
11736 if test -z "$MKINSTALLDIRS"; then
11737 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11738 fi
11739
11740
11741
81ecdfbb
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11743$as_echo_n "checking whether NLS is requested... " >&6; }
11744 # Check whether --enable-nls was given.
11745if test "${enable_nls+set}" = set; then :
11746 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
11747else
11748 USE_NLS=yes
81ecdfbb
RW
11749fi
11750
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11752$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
11753
11754
11755
11756
11757
11758
11759# Prepare PATH_SEPARATOR.
11760# The user is always right.
11761if test "${PATH_SEPARATOR+set}" != set; then
11762 echo "#! /bin/sh" >conf$$.sh
11763 echo "exit 0" >>conf$$.sh
11764 chmod +x conf$$.sh
11765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11766 PATH_SEPARATOR=';'
11767 else
11768 PATH_SEPARATOR=:
11769 fi
11770 rm -f conf$$.sh
11771fi
979273e3 11772
d7040cdb
SE
11773# Find out how to test for executable files. Don't use a zero-byte file,
11774# as systems may use methods other than mode bits to determine executability.
11775cat >conf$$.file <<_ASEOF
11776#! /bin/sh
11777exit 0
11778_ASEOF
11779chmod +x conf$$.file
11780if test -x conf$$.file >/dev/null 2>&1; then
11781 ac_executable_p="test -x"
252b5132 11782else
d7040cdb 11783 ac_executable_p="test -f"
252b5132 11784fi
d7040cdb 11785rm -f conf$$.file
252b5132 11786
d7040cdb
SE
11787# Extract the first word of "msgfmt", so it can be a program name with args.
11788set dummy msgfmt; ac_word=$2
81ecdfbb
RW
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11790$as_echo_n "checking for $ac_word... " >&6; }
11791if test "${ac_cv_path_MSGFMT+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
252b5132 11793else
d7040cdb
SE
11794 case "$MSGFMT" in
11795 [\\/]* | ?:[\\/]*)
11796 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11797 ;;
11798 *)
11799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11800 for ac_dir in $PATH; do
11801 IFS="$ac_save_IFS"
11802 test -z "$ac_dir" && ac_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11805 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11806 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11807 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11808 break 2
11809 fi
11810 fi
11811 done
11812 done
11813 IFS="$ac_save_IFS"
11814 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11815 ;;
11816esac
11817fi
11818MSGFMT="$ac_cv_path_MSGFMT"
11819if test "$MSGFMT" != ":"; then
81ecdfbb
RW
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11821$as_echo "$MSGFMT" >&6; }
d7040cdb 11822else
81ecdfbb
RW
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824$as_echo "no" >&6; }
252b5132
RH
11825fi
11826
d7040cdb
SE
11827 # Extract the first word of "gmsgfmt", so it can be a program name with args.
11828set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830$as_echo_n "checking for $ac_word... " >&6; }
11831if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11832 $as_echo_n "(cached) " >&6
20e95c23 11833else
d7040cdb
SE
11834 case $GMSGFMT in
11835 [\\/]* | ?:[\\/]*)
11836 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11837 ;;
11838 *)
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 11846 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
11848 break 2
11849 fi
11850done
81ecdfbb
RW
11851 done
11852IFS=$as_save_IFS
252b5132 11853
d7040cdb
SE
11854 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11855 ;;
11856esac
11857fi
11858GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 11859if test -n "$GMSGFMT"; then
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11861$as_echo "$GMSGFMT" >&6; }
252b5132 11862else
81ecdfbb
RW
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864$as_echo "no" >&6; }
252b5132
RH
11865fi
11866
11867
20e95c23 11868
81ecdfbb 11869
d7040cdb
SE
11870# Prepare PATH_SEPARATOR.
11871# The user is always right.
11872if test "${PATH_SEPARATOR+set}" != set; then
11873 echo "#! /bin/sh" >conf$$.sh
11874 echo "exit 0" >>conf$$.sh
11875 chmod +x conf$$.sh
11876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11877 PATH_SEPARATOR=';'
11878 else
11879 PATH_SEPARATOR=:
11880 fi
11881 rm -f conf$$.sh
252b5132
RH
11882fi
11883
d7040cdb
SE
11884# Find out how to test for executable files. Don't use a zero-byte file,
11885# as systems may use methods other than mode bits to determine executability.
11886cat >conf$$.file <<_ASEOF
11887#! /bin/sh
11888exit 0
11889_ASEOF
11890chmod +x conf$$.file
11891if test -x conf$$.file >/dev/null 2>&1; then
11892 ac_executable_p="test -x"
11893else
11894 ac_executable_p="test -f"
11895fi
11896rm -f conf$$.file
20e95c23 11897
d7040cdb
SE
11898# Extract the first word of "xgettext", so it can be a program name with args.
11899set dummy xgettext; ac_word=$2
81ecdfbb
RW
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901$as_echo_n "checking for $ac_word... " >&6; }
11902if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11903 $as_echo_n "(cached) " >&6
252b5132 11904else
d7040cdb
SE
11905 case "$XGETTEXT" in
11906 [\\/]* | ?:[\\/]*)
11907 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11908 ;;
11909 *)
11910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11911 for ac_dir in $PATH; do
11912 IFS="$ac_save_IFS"
11913 test -z "$ac_dir" && ac_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11916 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11917 (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
11918 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11919 break 2
11920 fi
11921 fi
11922 done
11923 done
11924 IFS="$ac_save_IFS"
11925 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11926 ;;
11927esac
20e95c23 11928fi
d7040cdb
SE
11929XGETTEXT="$ac_cv_path_XGETTEXT"
11930if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11932$as_echo "$XGETTEXT" >&6; }
d7040cdb 11933else
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
d7040cdb
SE
11936fi
11937
11938 rm -f messages.po
11939
979273e3 11940
d7040cdb
SE
11941# Prepare PATH_SEPARATOR.
11942# The user is always right.
11943if test "${PATH_SEPARATOR+set}" != set; then
11944 echo "#! /bin/sh" >conf$$.sh
11945 echo "exit 0" >>conf$$.sh
11946 chmod +x conf$$.sh
11947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11948 PATH_SEPARATOR=';'
11949 else
11950 PATH_SEPARATOR=:
11951 fi
11952 rm -f conf$$.sh
252b5132 11953fi
979273e3 11954
d7040cdb
SE
11955# Find out how to test for executable files. Don't use a zero-byte file,
11956# as systems may use methods other than mode bits to determine executability.
11957cat >conf$$.file <<_ASEOF
11958#! /bin/sh
11959exit 0
11960_ASEOF
11961chmod +x conf$$.file
11962if test -x conf$$.file >/dev/null 2>&1; then
11963 ac_executable_p="test -x"
252b5132 11964else
d7040cdb
SE
11965 ac_executable_p="test -f"
11966fi
11967rm -f conf$$.file
252b5132 11968
d7040cdb
SE
11969# Extract the first word of "msgmerge", so it can be a program name with args.
11970set dummy msgmerge; ac_word=$2
81ecdfbb
RW
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972$as_echo_n "checking for $ac_word... " >&6; }
11973if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
252b5132 11975else
d7040cdb
SE
11976 case "$MSGMERGE" in
11977 [\\/]* | ?:[\\/]*)
11978 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11979 ;;
11980 *)
11981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11982 for ac_dir in $PATH; do
11983 IFS="$ac_save_IFS"
11984 test -z "$ac_dir" && ac_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11987 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11988 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11989 break 2
11990 fi
11991 fi
11992 done
11993 done
11994 IFS="$ac_save_IFS"
11995 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11996 ;;
11997esac
20e95c23 11998fi
d7040cdb
SE
11999MSGMERGE="$ac_cv_path_MSGMERGE"
12000if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12002$as_echo "$MSGMERGE" >&6; }
d7040cdb 12003else
81ecdfbb
RW
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005$as_echo "no" >&6; }
20e95c23 12006fi
252b5132 12007
979273e3 12008
d7040cdb
SE
12009 if test "$GMSGFMT" != ":"; then
12010 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12011 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12012 : ;
12013 else
12014 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12016$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
12017 GMSGFMT=":"
12018 fi
12019 fi
979273e3 12020
d7040cdb
SE
12021 if test "$XGETTEXT" != ":"; then
12022 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12023 (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
12024 : ;
12025 else
81ecdfbb
RW
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12027$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
12028 XGETTEXT=":"
12029 fi
12030 rm -f messages.po
12031 fi
979273e3 12032
81ecdfbb 12033 ac_config_commands="$ac_config_commands default-1"
979273e3 12034
979273e3 12035
979273e3 12036
81ecdfbb 12037. ${srcdir}/../bfd/configure.host
252b5132 12038
81ecdfbb
RW
12039# Put a plausible default for CC_FOR_BUILD in Makefile.
12040if test -z "$CC_FOR_BUILD"; then
12041 if test "x$cross_compiling" = "xno"; then
12042 CC_FOR_BUILD='$(CC)'
12043 else
12044 CC_FOR_BUILD=gcc
12045 fi
12046fi
252b5132 12047
81ecdfbb
RW
12048# Also set EXEEXT_FOR_BUILD.
12049if test "x$cross_compiling" = "xno"; then
12050 EXEEXT_FOR_BUILD='$(EXEEXT)'
4bd60896 12051else
81ecdfbb
RW
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12053$as_echo_n "checking for build system executable suffix... " >&6; }
12054if test "${bfd_cv_build_exeext+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
4bd60896 12056else
81ecdfbb
RW
12057 rm -f conftest*
12058 echo 'int main () { return 0; }' > conftest.c
12059 bfd_cv_build_exeext=
12060 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12061 for file in conftest.*; do
12062 case $file in
12063 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12064 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12065 esac
12066 done
12067 rm -f conftest*
12068 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4bd60896 12069fi
81ecdfbb
RW
12070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12071$as_echo "$bfd_cv_build_exeext" >&6; }
12072 EXEEXT_FOR_BUILD=""
12073 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4bd60896 12074fi
4bd60896 12075
4bd60896
JG
12076
12077
81ecdfbb
RW
12078
12079
12080for ac_header in string.h strings.h stdlib.h limits.h
12081do :
12082 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12083ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12084eval as_val=\$$as_ac_Header
12085 if test "x$as_val" = x""yes; then :
4bd60896 12086 cat >>confdefs.h <<_ACEOF
81ecdfbb 12087#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4bd60896
JG
12088_ACEOF
12089
dabbade6 12090fi
dabbade6 12091
81ecdfbb 12092done
dabbade6 12093
81ecdfbb
RW
12094
12095ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12096if test "x$ac_cv_have_decl_basename" = x""yes; then :
12097 ac_have_decl=1
12098else
12099 ac_have_decl=0
dabbade6 12100fi
dabbade6
L
12101
12102cat >>confdefs.h <<_ACEOF
81ecdfbb 12103#define HAVE_DECL_BASENAME $ac_have_decl
dabbade6 12104_ACEOF
81ecdfbb
RW
12105ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12106if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
12107 ac_have_decl=1
dabbade6 12108else
81ecdfbb 12109 ac_have_decl=0
4bd60896
JG
12110fi
12111
81ecdfbb
RW
12112cat >>confdefs.h <<_ACEOF
12113#define HAVE_DECL_STPCPY $ac_have_decl
12114_ACEOF
4bd60896
JG
12115
12116
6e31aea3
BE
12117cgen_maint=no
12118cgendir='$(srcdir)/../cgen'
12119
81ecdfbb
RW
12120# Check whether --enable-cgen-maint was given.
12121if test "${enable_cgen_maint+set}" = set; then :
12122 enableval=$enable_cgen_maint; case "${enableval}" in
6e31aea3
BE
12123 yes) cgen_maint=yes ;;
12124 no) cgen_maint=no ;;
12125 *)
12126 # argument is cgen install directory (not implemented yet).
12127 # Having a `share' directory might be more appropriate for the .scm,
12128 # .cpu, etc. files.
12129 cgen_maint=yes
12130 cgendir=${cgen_maint}/lib/cgen
12131 ;;
12132esac
81ecdfbb
RW
12133fi
12134 if test x${cgen_maint} = xyes; then
6e31aea3
BE
12135 CGEN_MAINT_TRUE=
12136 CGEN_MAINT_FALSE='#'
12137else
12138 CGEN_MAINT_TRUE='#'
12139 CGEN_MAINT_FALSE=
12140fi
12141
252b5132 12142
8ae85421 12143
252b5132
RH
12144using_cgen=no
12145
51dec227 12146# Check if linker supports --as-needed and --no-as-needed options
81ecdfbb
RW
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
12148$as_echo_n "checking linker --as-needed support... " >&6; }
12149if test "${bfd_cv_ld_as_needed+set}" = set; then :
12150 $as_echo_n "(cached) " >&6
51dec227
AM
12151else
12152 bfd_cv_ld_as_needed=no
12153 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12154 bfd_cv_ld_as_needed=yes
12155 fi
12156
12157fi
81ecdfbb
RW
12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
12159$as_echo "$bfd_cv_ld_as_needed" >&6; }
51dec227
AM
12160
12161LIBM=
12162case $host in
3725885a 12163*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
51dec227
AM
12164 # These system don't have libm, or don't need it
12165 ;;
12166*-ncr-sysv4.3*)
81ecdfbb
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
12168$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
12169if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
51dec227
AM
12171else
12172 ac_check_lib_save_LIBS=$LIBS
12173LIBS="-lmw $LIBS"
81ecdfbb 12174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12175/* end confdefs.h. */
12176
81ecdfbb
RW
12177/* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
51dec227
AM
12180#ifdef __cplusplus
12181extern "C"
12182#endif
51dec227
AM
12183char _mwvalidcheckl ();
12184int
12185main ()
12186{
81ecdfbb 12187return _mwvalidcheckl ();
51dec227
AM
12188 ;
12189 return 0;
12190}
12191_ACEOF
81ecdfbb 12192if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12193 ac_cv_lib_mw__mwvalidcheckl=yes
12194else
81ecdfbb 12195 ac_cv_lib_mw__mwvalidcheckl=no
51dec227 12196fi
81ecdfbb
RW
12197rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12199LIBS=$ac_check_lib_save_LIBS
12200fi
81ecdfbb
RW
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12202$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
12203if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
51dec227
AM
12204 LIBM="-lmw"
12205fi
12206
81ecdfbb
RW
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12208$as_echo_n "checking for cos in -lm... " >&6; }
12209if test "${ac_cv_lib_m_cos+set}" = set; then :
12210 $as_echo_n "(cached) " >&6
51dec227
AM
12211else
12212 ac_check_lib_save_LIBS=$LIBS
12213LIBS="-lm $LIBS"
81ecdfbb 12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12215/* end confdefs.h. */
12216
81ecdfbb
RW
12217/* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
51dec227
AM
12220#ifdef __cplusplus
12221extern "C"
12222#endif
51dec227
AM
12223char cos ();
12224int
12225main ()
12226{
81ecdfbb 12227return cos ();
51dec227
AM
12228 ;
12229 return 0;
12230}
12231_ACEOF
81ecdfbb 12232if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12233 ac_cv_lib_m_cos=yes
12234else
81ecdfbb 12235 ac_cv_lib_m_cos=no
51dec227 12236fi
81ecdfbb
RW
12237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12239LIBS=$ac_check_lib_save_LIBS
12240fi
81ecdfbb
RW
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12242$as_echo "$ac_cv_lib_m_cos" >&6; }
12243if test "x$ac_cv_lib_m_cos" = x""yes; then :
51dec227
AM
12244 LIBM="$LIBM -lm"
12245fi
12246
12247 ;;
12248*)
81ecdfbb
RW
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
12250$as_echo_n "checking for cos in -lm... " >&6; }
12251if test "${ac_cv_lib_m_cos+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
51dec227
AM
12253else
12254 ac_check_lib_save_LIBS=$LIBS
12255LIBS="-lm $LIBS"
81ecdfbb 12256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51dec227
AM
12257/* end confdefs.h. */
12258
81ecdfbb
RW
12259/* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
51dec227
AM
12262#ifdef __cplusplus
12263extern "C"
12264#endif
51dec227
AM
12265char cos ();
12266int
12267main ()
12268{
81ecdfbb 12269return cos ();
51dec227
AM
12270 ;
12271 return 0;
12272}
12273_ACEOF
81ecdfbb 12274if ac_fn_c_try_link "$LINENO"; then :
51dec227
AM
12275 ac_cv_lib_m_cos=yes
12276else
81ecdfbb 12277 ac_cv_lib_m_cos=no
51dec227 12278fi
81ecdfbb
RW
12279rm -f core conftest.err conftest.$ac_objext \
12280 conftest$ac_exeext conftest.$ac_ext
51dec227
AM
12281LIBS=$ac_check_lib_save_LIBS
12282fi
81ecdfbb
RW
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
12284$as_echo "$ac_cv_lib_m_cos" >&6; }
12285if test "x$ac_cv_lib_m_cos" = x""yes; then :
51dec227
AM
12286 LIBM="-lm"
12287fi
12288
12289 ;;
12290esac
12291
12292
12293
2eee5593
AM
12294#Libs for generator progs
12295if test "x$cross_compiling" = "xno"; then
12296 BUILD_LIBS=../libiberty/libiberty.a
12297 BUILD_LIB_DEPS=$BUILD_LIBS
12298else
12299 # if cross-compiling, assume that the system provides -liberty
12300 # and that the version is compatible with new headers.
12301 BUILD_LIBS=-liberty
12302 BUILD_LIB_DEPS=
12303fi
12304BUILD_LIBS="$BUILD_LIBS $LIBINTL"
12305BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP"
12306
12307
12308
12309
45d42143
NC
12310# Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12311SHARED_LDFLAGS=
12312SHARED_LIBADD=
12313SHARED_DEPENDENCIES=
12314if test "$enable_shared" = "yes"; then
29670fb9
AM
12315# When building a shared libopcodes, link against the pic version of libiberty
12316# so that apps that use libopcodes won't need libiberty just to satisfy any
12317# libopcodes references.
12318# We can't do that if a pic libiberty is unavailable since including non-pic
12319# code would insert text relocations into libopcodes.
12320# Note that linking against libbfd as we do here, which is itself linked
12321# against libiberty, may not satisfy all the libopcodes libiberty references
12322# since libbfd may not pull in the entirety of libiberty.
12323 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12324 if test -n "$x"; then
12325 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12326 fi
12327
45d42143
NC
12328 case "${host}" in
12329 *-*-cygwin*)
12330 SHARED_LDFLAGS="-no-undefined"
12331 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12332 ;;
0e336180 12333 *-*-darwin*)
29670fb9 12334 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
0e336180
NC
12335 SHARED_DEPENDENCIES="../bfd/libbfd.la"
12336 ;;
45d42143 12337 *)
0e336180
NC
12338 case "$host_vendor" in
12339 hp)
29670fb9 12340 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
0e336180
NC
12341 ;;
12342 *)
29670fb9 12343 SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
0e336180
NC
12344 ;;
12345 esac
4267b19f 12346 SHARED_DEPENDENCIES="../bfd/libbfd.la"
45d42143
NC
12347 ;;
12348 esac
51dec227
AM
12349
12350 if test -n "$SHARED_LIBADD"; then
12351 if test -n "$LIBM"; then
12352 if test x"$bfd_cv_ld_as_needed" = xyes; then
12353 # Link against libm only when needed. Put -lc, -lm inside -Wl
12354 # to stop libtool reordering these options.
12355 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12356 else
12357 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12358 fi
12359 fi
12360 fi
45d42143
NC
12361fi
12362
252b5132
RH
12363
12364
12365
12366# target-specific stuff:
12367
12368# Canonicalize the secondary target names.
12369if test -n "$enable_targets" ; then
12370 for targ in `echo $enable_targets | sed 's/,/ /g'`
12371 do
6d83c84b 12372 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12373 if test -n "$result" ; then
12374 canon_targets="$canon_targets $result"
12375 else
12376 # Allow targets that config.sub doesn't recognize, like "all".
12377 canon_targets="$canon_targets $targ"
12378 fi
12379 done
12380fi
12381
12382all_targets=false
12383selarchs=
12384for targ in $target $canon_targets
12385do
12386 if test "x$targ" = "xall" ; then
12387 all_targets=true
12388 else
12389 . $srcdir/../bfd/config.bfd
12390 selarchs="$selarchs $targ_archs"
12391 fi
979273e3 12392done
252b5132
RH
12393
12394# Utility var, documents generic cgen support files.
12395
3609e0fe 12396cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
252b5132
RH
12397
12398# We don't do any links based on the target system, just makefile config.
12399
12400if test x${all_targets} = xfalse ; then
12401
12402 # Target architecture .o files.
12403 ta=
12404
12405 for arch in $selarchs
12406 do
12407 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12408 archdefs="$archdefs -DARCH_$ad"
12409 case "$arch" in
252b5132 12410 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 12411 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 12412 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 12413 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
4b7f6baa 12414 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;;
3d3d428f 12415 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;;
3609e0fe 12416 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
1fe1f39c 12417 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
12418 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12419 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 12420 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132 12421 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
c5f5f1f4 12422 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
20135e4c 12423 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;;
252b5132
RH
12424 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
12425 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
12426 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 12427 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
8a9036a4
L
12428 bfd_i386_arch|bfd_l1om_arch)
12429 ta="$ta i386-dis.lo i386-opc.lo" ;;
9d751335 12430 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 12431 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 12432 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 12433 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 12434 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
84e94c90 12435 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 12436 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
252b5132 12437 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
12438 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12439 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
12440 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12441 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 12442 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132 12443 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
bd2f2e55 12444 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
7ba29e2a 12445 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;;
252b5132 12446 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 12447 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
12448 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12449 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
d031aafb 12450 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
2469cfa2 12451 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 12452 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 12453 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 12454 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 12455 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 12456 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 12457 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 12458 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 12459 bfd_pyramid_arch) ;;
252b5132
RH
12460 bfd_romp_arch) ;;
12461 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
c7927a3c 12462 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";;
a85d7ed0 12463 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
c3b7224a 12464 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;;
09919455 12465 bfd_sh_arch)
d28847ce 12466 # We can't decide what we want just from the CPU family.
e8b872bb
AO
12467 # We want SH5 support unless a specific version of sh is
12468 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
12469 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12470 for t in $target $canon_targets; do
12471 case $t in
5b0e55b6 12472 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 12473 sh-*-linux* | shl-*-linux*)
d28847ce 12474 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
12475 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12476 break;;
12477 esac;
12478 done
d3f1a427 12479 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
252b5132 12480 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
e9f53129 12481 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;;
252b5132
RH
12482 bfd_tahoe_arch) ;;
12483 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 12484 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 12485 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
40b36596 12486 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;;
252b5132
RH
12487 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12488 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12489 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12490 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
12491 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
12492 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
12493 bfd_we32k_arch) ;;
d70c5fc7 12494 bfd_xc16x_arch) ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
93fbbb04 12495 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 12496 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
3c9b82ba 12497 bfd_z80_arch) ta="$ta z80-dis.lo" ;;
252b5132
RH
12498 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
12499
12500 "") ;;
81ecdfbb 12501 *) as_fn_error "*** unknown target architecture $arch" "$LINENO" 5 ;;
252b5132
RH
12502 esac
12503 done
12504
12505 if test $using_cgen = yes ; then
12506 ta="$ta $cgen_files"
12507 fi
12508
12509 # Weed out duplicate .o files.
12510 f=""
12511 for i in $ta ; do
12512 case " $f " in
12513 *" $i "*) ;;
12514 *) f="$f $i" ;;
12515 esac
12516 done
12517 ta="$f"
12518
12519 # And duplicate -D flags.
12520 f=""
12521 for i in $archdefs ; do
12522 case " $f " in
12523 *" $i "*) ;;
12524 *) f="$f $i" ;;
12525 esac
12526 done
12527 archdefs="$f"
12528
12529 BFD_MACHINES="$ta"
12530
12531else # all_targets is true
12532 archdefs=-DARCH_all
12533 BFD_MACHINES='$(ALL_MACHINES)'
12534fi
12535
12536
12537
12538
81ecdfbb 12539ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
979273e3 12540
979273e3 12541cat >confcache <<\_ACEOF
252b5132
RH
12542# This file is a shell script that caches the results of configure
12543# tests run on this system so they can be shared between configure
979273e3
NN
12544# scripts and configure runs, see configure's option --config-cache.
12545# It is not useful on other systems. If it contains results you don't
12546# want to keep, you may remove or edit it.
252b5132 12547#
979273e3
NN
12548# config.status only pays attention to the cache file if you give it
12549# the --recheck option to rerun configure.
252b5132 12550#
979273e3
NN
12551# `ac_cv_env_foo' variables (set or unset) will be overridden when
12552# loading this file, other *unset* `ac_cv_foo' will be assigned the
12553# following values.
12554
12555_ACEOF
12556
252b5132
RH
12557# The following way of writing the cache mishandles newlines in values,
12558# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12559# So, we kill variables containing newlines.
252b5132
RH
12560# Ultrix sh set writes to stderr and can't be redirected directly,
12561# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12562(
12563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12564 eval ac_val=\$$ac_var
12565 case $ac_val in #(
12566 *${as_nl}*)
12567 case $ac_var in #(
12568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12569$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12570 esac
12571 case $ac_var in #(
12572 _ | IFS | as_nl) ;; #(
12573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12574 *) { eval $ac_var=; unset $ac_var;} ;;
12575 esac ;;
12576 esac
12577 done
12578
979273e3 12579 (set) 2>&1 |
81ecdfbb
RW
12580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12581 *${as_nl}ac_space=\ *)
12582 # `set' does not quote correctly, so add quotes: double-quote
12583 # substitution turns \\\\ into \\, and sed turns \\ into \.
979273e3
NN
12584 sed -n \
12585 "s/'/'\\\\''/g;
12586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12587 ;; #(
979273e3
NN
12588 *)
12589 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
979273e3 12591 ;;
81ecdfbb
RW
12592 esac |
12593 sort
12594) |
979273e3 12595 sed '
81ecdfbb 12596 /^ac_cv_env_/b end
979273e3 12597 t clear
81ecdfbb 12598 :clear
979273e3
NN
12599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12600 t end
81ecdfbb
RW
12601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12602 :end' >>confcache
12603if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12604 if test -w "$cache_file"; then
12605 test "x$cache_file" != "x/dev/null" &&
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12607$as_echo "$as_me: updating cache $cache_file" >&6;}
979273e3 12608 cat confcache >$cache_file
252b5132 12609 else
81ecdfbb
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12611$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
252b5132
RH
12612 fi
12613fi
12614rm -f confcache
12615
252b5132
RH
12616test "x$prefix" = xNONE && prefix=$ac_default_prefix
12617# Let make expand exec_prefix.
12618test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12619
252b5132
RH
12620DEFS=-DHAVE_CONFIG_H
12621
979273e3
NN
12622ac_libobjs=
12623ac_ltlibobjs=
12624for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12625 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12626 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12627 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12628 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12629 # will be set to the directory where LIBOBJS objects are built.
12630 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12631 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
979273e3
NN
12632done
12633LIBOBJS=$ac_libobjs
252b5132 12634
979273e3
NN
12635LTLIBOBJS=$ac_ltlibobjs
12636
12637
8ae85421 12638if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
12639 as_fn_error "conditional \"AMDEP\" was never defined.
12640Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12641fi
12642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
12643 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12644Usually this means the macro was only invoked conditionally." "$LINENO" 5
12645fi
12646 if test -n "$EXEEXT"; then
12647 am__EXEEXT_TRUE=
12648 am__EXEEXT_FALSE='#'
12649else
12650 am__EXEEXT_TRUE='#'
12651 am__EXEEXT_FALSE=
8ae85421 12652fi
81ecdfbb 12653
8ae85421 12654if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
12655 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12656Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12657fi
12658if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
81ecdfbb
RW
12659 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
12660Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421
AM
12661fi
12662if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
81ecdfbb
RW
12663 as_fn_error "conditional \"CGEN_MAINT\" was never defined.
12664Usually this means the macro was only invoked conditionally." "$LINENO" 5
8ae85421 12665fi
979273e3
NN
12666
12667: ${CONFIG_STATUS=./config.status}
81ecdfbb 12668ac_write_fail=0
979273e3
NN
12669ac_clean_files_save=$ac_clean_files
12670ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12671{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12672$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12673as_write_fail=0
12674cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
979273e3
NN
12675#! $SHELL
12676# Generated by $as_me.
252b5132 12677# Run this file to recreate the current configuration.
252b5132 12678# Compiler output produced by configure, useful for debugging
979273e3 12679# configure, is in config.log if it exists.
252b5132 12680
979273e3
NN
12681debug=false
12682ac_cs_recheck=false
12683ac_cs_silent=false
979273e3 12684
81ecdfbb
RW
12685SHELL=\${CONFIG_SHELL-$SHELL}
12686export SHELL
12687_ASEOF
12688cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12689## -------------------- ##
12690## M4sh Initialization. ##
12691## -------------------- ##
979273e3 12692
81ecdfbb
RW
12693# Be more Bourne compatible
12694DUALCASE=1; export DUALCASE # for MKS sh
12695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
979273e3
NN
12696 emulate sh
12697 NULLCMD=:
81ecdfbb 12698 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
979273e3
NN
12699 # is contrary to our usage. Disable this feature.
12700 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12701 setopt NO_GLOB_SUBST
12702else
12703 case `(set -o) 2>/dev/null` in #(
12704 *posix*) :
12705 set -o posix ;; #(
12706 *) :
12707 ;;
12708esac
979273e3 12709fi
979273e3 12710
81ecdfbb
RW
12711
12712as_nl='
12713'
12714export as_nl
12715# Printing a long string crashes Solaris 7 /usr/bin/printf.
12716as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12717as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12718as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12719# Prefer a ksh shell builtin over an external printf program on Solaris,
12720# but without wasting forks for bash or zsh.
12721if test -z "$BASH_VERSION$ZSH_VERSION" \
12722 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12723 as_echo='print -r --'
12724 as_echo_n='print -rn --'
12725elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12726 as_echo='printf %s\n'
12727 as_echo_n='printf %s'
12728else
12729 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12730 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12731 as_echo_n='/usr/ucb/echo -n'
12732 else
12733 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12734 as_echo_n_body='eval
12735 arg=$1;
12736 case $arg in #(
12737 *"$as_nl"*)
12738 expr "X$arg" : "X\\(.*\\)$as_nl";
12739 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12740 esac;
12741 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12742 '
12743 export as_echo_n_body
12744 as_echo_n='sh -c $as_echo_n_body as_echo'
12745 fi
12746 export as_echo_body
12747 as_echo='sh -c $as_echo_body as_echo'
12748fi
12749
12750# The user is always right.
12751if test "${PATH_SEPARATOR+set}" != set; then
12752 PATH_SEPARATOR=:
12753 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12754 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12755 PATH_SEPARATOR=';'
12756 }
979273e3
NN
12757fi
12758
12759
81ecdfbb
RW
12760# IFS
12761# We need space, tab and new line, in precisely that order. Quoting is
12762# there to prevent editors from complaining about space-tab.
12763# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12764# splitting by setting IFS to empty value.)
12765IFS=" "" $as_nl"
12766
12767# Find who we are. Look in the path if we contain no directory separator.
12768case $0 in #((
12769 *[\\/]* ) as_myself=$0 ;;
12770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771for as_dir in $PATH
12772do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12776 done
12777IFS=$as_save_IFS
12778
12779 ;;
12780esac
12781# We did not find ourselves, most probably we were run as `sh COMMAND'
12782# in which case we are not to be found in the path.
12783if test "x$as_myself" = x; then
12784 as_myself=$0
12785fi
12786if test ! -f "$as_myself"; then
12787 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12788 exit 1
12789fi
12790
12791# Unset variables that we do not need and which cause bugs (e.g. in
12792# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12793# suppresses any "Segmentation fault" message there. '((' could
12794# trigger a bug in pdksh 5.2.14.
12795for as_var in BASH_ENV ENV MAIL MAILPATH
12796do eval test x\${$as_var+set} = xset \
12797 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12798done
979273e3
NN
12799PS1='$ '
12800PS2='> '
12801PS4='+ '
12802
12803# NLS nuisances.
81ecdfbb
RW
12804LC_ALL=C
12805export LC_ALL
12806LANGUAGE=C
12807export LANGUAGE
12808
12809# CDPATH.
12810(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12811
12812
12813# as_fn_error ERROR [LINENO LOG_FD]
12814# ---------------------------------
12815# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12816# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12817# script with status $?, using 1 if that was 0.
12818as_fn_error ()
12819{
12820 as_status=$?; test $as_status -eq 0 && as_status=1
12821 if test "$3"; then
12822 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12823 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
979273e3 12824 fi
81ecdfbb
RW
12825 $as_echo "$as_me: error: $1" >&2
12826 as_fn_exit $as_status
12827} # as_fn_error
12828
12829
12830# as_fn_set_status STATUS
12831# -----------------------
12832# Set $? to STATUS, without forking.
12833as_fn_set_status ()
12834{
12835 return $1
12836} # as_fn_set_status
12837
12838# as_fn_exit STATUS
12839# -----------------
12840# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12841as_fn_exit ()
12842{
12843 set +e
12844 as_fn_set_status $1
12845 exit $1
12846} # as_fn_exit
12847
12848# as_fn_unset VAR
12849# ---------------
12850# Portably unset VAR.
12851as_fn_unset ()
12852{
12853 { eval $1=; unset $1;}
12854}
12855as_unset=as_fn_unset
12856# as_fn_append VAR VALUE
12857# ----------------------
12858# Append the text in VALUE to the end of the definition contained in VAR. Take
12859# advantage of any shell optimizations that allow amortized linear growth over
12860# repeated appends, instead of the typical quadratic growth present in naive
12861# implementations.
12862if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12863 eval 'as_fn_append ()
12864 {
12865 eval $1+=\$2
12866 }'
12867else
12868 as_fn_append ()
12869 {
12870 eval $1=\$$1\$2
12871 }
12872fi # as_fn_append
12873
12874# as_fn_arith ARG...
12875# ------------------
12876# Perform arithmetic evaluation on the ARGs, and store the result in the
12877# global $as_val. Take advantage of shells that can avoid forks. The arguments
12878# must be portable across $(()) and expr.
12879if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12880 eval 'as_fn_arith ()
12881 {
12882 as_val=$(( $* ))
12883 }'
12884else
12885 as_fn_arith ()
12886 {
12887 as_val=`expr "$@" || test $? -eq 1`
12888 }
12889fi # as_fn_arith
12890
252b5132 12891
81ecdfbb
RW
12892if expr a : '\(a\)' >/dev/null 2>&1 &&
12893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
979273e3
NN
12894 as_expr=expr
12895else
12896 as_expr=false
12897fi
12898
81ecdfbb 12899if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
979273e3
NN
12900 as_basename=basename
12901else
12902 as_basename=false
12903fi
252b5132 12904
81ecdfbb
RW
12905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12906 as_dirname=dirname
12907else
12908 as_dirname=false
12909fi
252b5132 12910
81ecdfbb 12911as_me=`$as_basename -- "$0" ||
979273e3
NN
12912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12913 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12915$as_echo X/"$0" |
12916 sed '/^.*\/\([^/][^/]*\)\/*$/{
12917 s//\1/
12918 q
12919 }
12920 /^X\/\(\/\/\)$/{
12921 s//\1/
12922 q
12923 }
12924 /^X\/\(\/\).*/{
12925 s//\1/
12926 q
12927 }
12928 s/.*/./; q'`
252b5132 12929
979273e3
NN
12930# Avoid depending upon Character Ranges.
12931as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12932as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12933as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12934as_cr_digits='0123456789'
12935as_cr_alnum=$as_cr_Letters$as_cr_digits
12936
81ecdfbb
RW
12937ECHO_C= ECHO_N= ECHO_T=
12938case `echo -n x` in #(((((
12939-n*)
12940 case `echo 'xy\c'` in
12941 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12942 xy) ECHO_C='\c';;
12943 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12944 ECHO_T=' ';;
12945 esac;;
12946*)
12947 ECHO_N='-n';;
979273e3
NN
12948esac
12949
81ecdfbb
RW
12950rm -f conf$$ conf$$.exe conf$$.file
12951if test -d conf$$.dir; then
12952 rm -f conf$$.dir/conf$$.file
979273e3 12953else
81ecdfbb
RW
12954 rm -f conf$$.dir
12955 mkdir conf$$.dir 2>/dev/null
979273e3 12956fi
81ecdfbb
RW
12957if (echo >conf$$.file) 2>/dev/null; then
12958 if ln -s conf$$.file conf$$ 2>/dev/null; then
979273e3 12959 as_ln_s='ln -s'
81ecdfbb
RW
12960 # ... but there are two gotchas:
12961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12963 # In both cases, we have to default to `cp -p'.
12964 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12965 as_ln_s='cp -p'
12966 elif ln conf$$.file conf$$ 2>/dev/null; then
12967 as_ln_s=ln
12968 else
12969 as_ln_s='cp -p'
252b5132 12970 fi
979273e3
NN
12971else
12972 as_ln_s='cp -p'
12973fi
81ecdfbb
RW
12974rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12975rmdir conf$$.dir 2>/dev/null
12976
12977
12978# as_fn_mkdir_p
12979# -------------
12980# Create "$as_dir" as a directory, including parents if necessary.
12981as_fn_mkdir_p ()
12982{
12983
12984 case $as_dir in #(
12985 -*) as_dir=./$as_dir;;
12986 esac
12987 test -d "$as_dir" || eval $as_mkdir_p || {
12988 as_dirs=
12989 while :; do
12990 case $as_dir in #(
12991 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12992 *) as_qdir=$as_dir;;
12993 esac
12994 as_dirs="'$as_qdir' $as_dirs"
12995 as_dir=`$as_dirname -- "$as_dir" ||
12996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12997 X"$as_dir" : 'X\(//\)[^/]' \| \
12998 X"$as_dir" : 'X\(//\)$' \| \
12999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13000$as_echo X"$as_dir" |
13001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13002 s//\1/
13003 q
13004 }
13005 /^X\(\/\/\)[^/].*/{
13006 s//\1/
13007 q
13008 }
13009 /^X\(\/\/\)$/{
13010 s//\1/
13011 q
13012 }
13013 /^X\(\/\).*/{
13014 s//\1/
13015 q
13016 }
13017 s/.*/./; q'`
13018 test -d "$as_dir" && break
13019 done
13020 test -z "$as_dirs" || eval "mkdir $as_dirs"
13021 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
979273e3 13022
81ecdfbb
RW
13023
13024} # as_fn_mkdir_p
979273e3 13025if mkdir -p . 2>/dev/null; then
81ecdfbb 13026 as_mkdir_p='mkdir -p "$as_dir"'
979273e3
NN
13027else
13028 test -d ./-p && rmdir ./-p
13029 as_mkdir_p=false
13030fi
13031
81ecdfbb
RW
13032if test -x / >/dev/null 2>&1; then
13033 as_test_x='test -x'
13034else
13035 if ls -dL / >/dev/null 2>&1; then
13036 as_ls_L_option=L
13037 else
13038 as_ls_L_option=
13039 fi
13040 as_test_x='
13041 eval sh -c '\''
13042 if test -d "$1"; then
13043 test -d "$1/.";
13044 else
13045 case $1 in #(
13046 -*)set "./$1";;
13047 esac;
13048 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13049 ???[sx]*):;;*)false;;esac;fi
13050 '\'' sh
13051 '
13052fi
13053as_executable_p=$as_test_x
979273e3
NN
13054
13055# Sed expression to map a string onto a valid CPP name.
13056as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13057
13058# Sed expression to map a string onto a valid variable name.
13059as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13060
13061
979273e3 13062exec 6>&1
81ecdfbb
RW
13063## ----------------------------------- ##
13064## Main body of $CONFIG_STATUS script. ##
13065## ----------------------------------- ##
13066_ASEOF
13067test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
979273e3 13068
81ecdfbb
RW
13069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13070# Save the log message, to keep $0 and so on meaningful, and to
979273e3 13071# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13072# values after options handling.
13073ac_log="
979273e3 13074This file was extended by $as_me, which was
81ecdfbb 13075generated by GNU Autoconf 2.64. Invocation command line was
979273e3
NN
13076
13077 CONFIG_FILES = $CONFIG_FILES
13078 CONFIG_HEADERS = $CONFIG_HEADERS
13079 CONFIG_LINKS = $CONFIG_LINKS
13080 CONFIG_COMMANDS = $CONFIG_COMMANDS
13081 $ $0 $@
13082
81ecdfbb
RW
13083on `(hostname || uname -n) 2>/dev/null | sed 1q`
13084"
13085
979273e3
NN
13086_ACEOF
13087
81ecdfbb
RW
13088case $ac_config_files in *"
13089"*) set x $ac_config_files; shift; ac_config_files=$*;;
13090esac
979273e3 13091
81ecdfbb
RW
13092case $ac_config_headers in *"
13093"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13094esac
979273e3 13095
979273e3 13096
81ecdfbb
RW
13097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13098# Files that config.status was made for.
13099config_files="$ac_config_files"
13100config_headers="$ac_config_headers"
13101config_commands="$ac_config_commands"
979273e3 13102
81ecdfbb 13103_ACEOF
979273e3 13104
81ecdfbb 13105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13106ac_cs_usage="\
81ecdfbb
RW
13107\`$as_me' instantiates files and other configuration actions
13108from templates according to the current configuration. Unless the files
13109and actions are specified as TAGs, all are instantiated by default.
979273e3 13110
81ecdfbb 13111Usage: $0 [OPTION]... [TAG]...
979273e3
NN
13112
13113 -h, --help print this help, then exit
81ecdfbb
RW
13114 -V, --version print version number and configuration settings, then exit
13115 -q, --quiet, --silent
13116 do not print progress messages
979273e3
NN
13117 -d, --debug don't remove temporary files
13118 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13119 --file=FILE[:TEMPLATE]
13120 instantiate the configuration file FILE
13121 --header=FILE[:TEMPLATE]
13122 instantiate the configuration header FILE
979273e3
NN
13123
13124Configuration files:
13125$config_files
13126
13127Configuration headers:
13128$config_headers
13129
13130Configuration commands:
13131$config_commands
13132
81ecdfbb 13133Report bugs to the package provider."
979273e3 13134
81ecdfbb
RW
13135_ACEOF
13136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3
NN
13137ac_cs_version="\\
13138config.status
81ecdfbb
RW
13139configured by $0, generated by GNU Autoconf 2.64,
13140 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
979273e3 13141
81ecdfbb 13142Copyright (C) 2009 Free Software Foundation, Inc.
979273e3
NN
13143This config.status script is free software; the Free Software Foundation
13144gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13145
13146ac_pwd='$ac_pwd'
13147srcdir='$srcdir'
13148INSTALL='$INSTALL'
13149MKDIR_P='$MKDIR_P'
13150AWK='$AWK'
13151test -n "\$AWK" || AWK=awk
979273e3
NN
13152_ACEOF
13153
81ecdfbb
RW
13154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13155# The default lists apply if the user does not specify any file.
979273e3
NN
13156ac_need_defaults=:
13157while test $# != 0
13158do
13159 case $1 in
13160 --*=*)
81ecdfbb
RW
13161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
979273e3
NN
13163 ac_shift=:
13164 ;;
81ecdfbb 13165 *)
979273e3
NN
13166 ac_option=$1
13167 ac_optarg=$2
13168 ac_shift=shift
13169 ;;
979273e3
NN
13170 esac
13171
13172 case $ac_option in
13173 # Handling of the options.
979273e3
NN
13174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13175 ac_cs_recheck=: ;;
81ecdfbb
RW
13176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13177 $as_echo "$ac_cs_version"; exit ;;
13178 --debug | --debu | --deb | --de | --d | -d )
979273e3
NN
13179 debug=: ;;
13180 --file | --fil | --fi | --f )
13181 $ac_shift
81ecdfbb
RW
13182 case $ac_optarg in
13183 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13184 esac
13185 as_fn_append CONFIG_FILES " '$ac_optarg'"
979273e3
NN
13186 ac_need_defaults=false;;
13187 --header | --heade | --head | --hea )
13188 $ac_shift
81ecdfbb
RW
13189 case $ac_optarg in
13190 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13191 esac
13192 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
979273e3 13193 ac_need_defaults=false;;
81ecdfbb
RW
13194 --he | --h)
13195 # Conflict between --help and --header
13196 as_fn_error "ambiguous option: \`$1'
13197Try \`$0 --help' for more information.";;
13198 --help | --hel | -h )
13199 $as_echo "$ac_cs_usage"; exit ;;
979273e3
NN
13200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13201 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13202 ac_cs_silent=: ;;
13203
13204 # This is an error.
81ecdfbb
RW
13205 -*) as_fn_error "unrecognized option: \`$1'
13206Try \`$0 --help' for more information." ;;
979273e3 13207
81ecdfbb
RW
13208 *) as_fn_append ac_config_targets " $1"
13209 ac_need_defaults=false ;;
979273e3
NN
13210
13211 esac
13212 shift
252b5132 13213done
979273e3
NN
13214
13215ac_configure_extra_args=
13216
13217if $ac_cs_silent; then
13218 exec 6>/dev/null
13219 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 13220fi
252b5132 13221
979273e3 13222_ACEOF
81ecdfbb 13223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13224if \$ac_cs_recheck; then
81ecdfbb
RW
13225 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13226 shift
13227 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13228 CONFIG_SHELL='$SHELL'
13229 export CONFIG_SHELL
13230 exec "\$@"
979273e3 13231fi
252b5132 13232
979273e3 13233_ACEOF
81ecdfbb
RW
13234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13235exec 5>>config.log
13236{
13237 echo
13238 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13239## Running $as_me. ##
13240_ASBOX
13241 $as_echo "$ac_log"
13242} >&5
979273e3 13243
81ecdfbb
RW
13244_ACEOF
13245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
979273e3 13246#
81ecdfbb 13247# INIT-COMMANDS
979273e3 13248#
8ae85421 13249AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
13250
13251
13252# The HP-UX ksh and POSIX shell print the target directory to stdout
13253# if CDPATH is set.
13254(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13255
13256sed_quote_subst='$sed_quote_subst'
13257double_quote_subst='$double_quote_subst'
13258delay_variable_subst='$delay_variable_subst'
3725885a
RW
13259enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13260macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13261macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13262enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13263pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13264enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13265SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13266ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13267host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13268host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13269host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13270build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13271build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13272build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13273SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13274Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13275GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13276EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13277FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13278LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13279NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13280LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13281max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13282ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13283exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13284lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13285lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13286lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13287reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13288reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13289OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13290deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13291file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13292AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13293AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13294STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13295RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13296old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13297old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13298old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13299lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13300CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13301CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13302compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13303GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13304lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13305lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13306lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13307lt_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"`'
13308objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13309MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13310lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13311lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13312lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13313lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13314lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13315need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13316DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13317NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13318LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13319OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13320OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13321libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13322shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13323extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13324archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13325enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13326export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13327whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13328compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13329old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13330old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13331archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13332archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13333module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13334module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13335with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13336allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13337no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13338hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13339hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13340hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13341hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13342hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13343hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13344hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13345hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13346inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13347link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13348fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13349always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13350export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13351exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13352include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13353prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13354file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13355variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13356need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13357need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13358version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13359runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13360shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13361shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13362libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13363library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13364soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13365install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13366postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13367postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13368finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13369finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13370hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13371sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13372sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13373hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13374enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13375enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13376enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13377old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13378striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
13379
13380LTCC='$LTCC'
13381LTCFLAGS='$LTCFLAGS'
13382compiler='$compiler_DEFAULT'
13383
3725885a
RW
13384# A function that is used when there is no print builtin or printf.
13385func_fallback_echo ()
13386{
13387 eval 'cat <<_LTECHO_EOF
13388\$1
13389_LTECHO_EOF'
13390}
13391
d7040cdb 13392# Quote evaled strings.
3725885a
RW
13393for var in SHELL \
13394ECHO \
13395SED \
d7040cdb
SE
13396GREP \
13397EGREP \
13398FGREP \
13399LD \
13400NM \
13401LN_S \
13402lt_SP2NL \
13403lt_NL2SP \
13404reload_flag \
1927a18f 13405OBJDUMP \
d7040cdb
SE
13406deplibs_check_method \
13407file_magic_cmd \
13408AR \
13409AR_FLAGS \
13410STRIP \
13411RANLIB \
13412CC \
13413CFLAGS \
13414compiler \
13415lt_cv_sys_global_symbol_pipe \
13416lt_cv_sys_global_symbol_to_cdecl \
13417lt_cv_sys_global_symbol_to_c_name_address \
1927a18f 13418lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
13419lt_prog_compiler_no_builtin_flag \
13420lt_prog_compiler_wl \
13421lt_prog_compiler_pic \
13422lt_prog_compiler_static \
13423lt_cv_prog_compiler_c_o \
13424need_locks \
1927a18f
L
13425DSYMUTIL \
13426NMEDIT \
13427LIPO \
13428OTOOL \
13429OTOOL64 \
d7040cdb
SE
13430shrext_cmds \
13431export_dynamic_flag_spec \
13432whole_archive_flag_spec \
13433compiler_needs_object \
13434with_gnu_ld \
13435allow_undefined_flag \
13436no_undefined_flag \
13437hardcode_libdir_flag_spec \
13438hardcode_libdir_flag_spec_ld \
13439hardcode_libdir_separator \
13440fix_srcfile_path \
13441exclude_expsyms \
13442include_expsyms \
13443file_list_spec \
13444variables_saved_for_relink \
13445libname_spec \
13446library_names_spec \
13447soname_spec \
3725885a 13448install_override_mode \
d7040cdb
SE
13449finish_eval \
13450old_striplib \
13451striplib; do
3725885a 13452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13453 *[\\\\\\\`\\"\\\$]*)
3725885a 13454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
13455 ;;
13456 *)
13457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13458 ;;
13459 esac
13460done
13461
13462# Double-quote double-evaled strings.
13463for var in reload_cmds \
13464old_postinstall_cmds \
13465old_postuninstall_cmds \
13466old_archive_cmds \
13467extract_expsyms_cmds \
13468old_archive_from_new_cmds \
13469old_archive_from_expsyms_cmds \
13470archive_cmds \
13471archive_expsym_cmds \
13472module_cmds \
13473module_expsym_cmds \
13474export_symbols_cmds \
13475prelink_cmds \
13476postinstall_cmds \
13477postuninstall_cmds \
13478finish_cmds \
13479sys_lib_search_path_spec \
13480sys_lib_dlsearch_path_spec; do
3725885a 13481 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 13482 *[\\\\\\\`\\"\\\$]*)
3725885a 13483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
13484 ;;
13485 *)
13486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13487 ;;
13488 esac
13489done
13490
d7040cdb
SE
13491ac_aux_dir='$ac_aux_dir'
13492xsi_shell='$xsi_shell'
13493lt_shell_append='$lt_shell_append'
13494
13495# See if we are running on zsh, and set the options which allow our
13496# commands through without removal of \ escapes INIT.
13497if test -n "\${ZSH_VERSION+set}" ; then
13498 setopt NO_GLOB_SUBST
13499fi
13500
13501
13502 PACKAGE='$PACKAGE'
13503 VERSION='$VERSION'
13504 TIMESTAMP='$TIMESTAMP'
13505 RM='$RM'
13506 ofile='$ofile'
13507
13508
13509
20e95c23
DJ
13510# Capture the value of obsolete ALL_LINGUAS because we need it to compute
13511 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13512 # from automake.
13513 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13514 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13515 LINGUAS="${LINGUAS-%UNSET%}"
979273e3
NN
13516
13517
13518_ACEOF
13519
81ecdfbb 13520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3 13521
81ecdfbb 13522# Handling of arguments.
979273e3
NN
13523for ac_config_target in $ac_config_targets
13524do
81ecdfbb
RW
13525 case $ac_config_target in
13526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13527 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13528 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13529 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13530 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13531 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13532
13533 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132 13534 esac
979273e3 13535done
252b5132 13536
81ecdfbb 13537
979273e3
NN
13538# If the user did not use the arguments to specify the items to instantiate,
13539# then the envvar interface is used. Set only those that are not.
13540# We use the long form for the default assignment because of an extremely
13541# bizarre bug on SunOS 4.1.3.
13542if $ac_need_defaults; then
13543 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13544 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13545 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13546fi
13547
13548# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13549# simply because there is no reason against having it here, and in addition,
979273e3 13550# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13551# Hook for its removal unless debugging.
13552# Note that there is a small window in which the directory will not be cleaned:
13553# after its creation but before its name has been assigned to `$tmp'.
979273e3
NN
13554$debug ||
13555{
81ecdfbb
RW
13556 tmp=
13557 trap 'exit_status=$?
13558 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13559' 0
13560 trap 'as_fn_exit 1' 1 2 13 15
979273e3 13561}
979273e3
NN
13562# Create a (secure) tmp directory for tmp files.
13563
13564{
81ecdfbb 13565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
979273e3
NN
13566 test -n "$tmp" && test -d "$tmp"
13567} ||
13568{
81ecdfbb
RW
13569 tmp=./conf$$-$RANDOM
13570 (umask 077 && mkdir "$tmp")
13571} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13572
13573# Set up the scripts for CONFIG_FILES section.
13574# No need to generate them if there are no CONFIG_FILES.
13575# This happens for instance with `./config.status config.h'.
13576if test -n "$CONFIG_FILES"; then
13577
13578
13579ac_cr=`echo X | tr X '\015'`
13580# On cygwin, bash can eat \r inside `` if the user requested igncr.
13581# But we know of no other shell where ac_cr would be empty at this
13582# point, so we can use a bashism as a fallback.
13583if test "x$ac_cr" = x; then
13584 eval ac_cr=\$\'\\r\'
13585fi
13586ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13587if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13588 ac_cs_awk_cr='\r'
13589else
13590 ac_cs_awk_cr=$ac_cr
13591fi
13592
13593echo 'BEGIN {' >"$tmp/subs1.awk" &&
13594_ACEOF
13595
13596
13597{
13598 echo "cat >conf$$subs.awk <<_ACEOF" &&
13599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13600 echo "_ACEOF"
13601} >conf$$subs.sh ||
13602 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13603ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13604ac_delim='%!_!# '
13605for ac_last_try in false false false false false :; do
13606 . ./conf$$subs.sh ||
13607 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13608
13609 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13610 if test $ac_delim_n = $ac_delim_num; then
13611 break
13612 elif $ac_last_try; then
13613 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13614 else
13615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13616 fi
13617done
13618rm -f conf$$subs.sh
13619
13620cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13621cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13622_ACEOF
13623sed -n '
13624h
13625s/^/S["/; s/!.*/"]=/
13626p
13627g
13628s/^[^!]*!//
13629:repl
13630t repl
13631s/'"$ac_delim"'$//
13632t delim
13633:nl
13634h
13635s/\(.\{148\}\).*/\1/
13636t more1
13637s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13638p
13639n
13640b repl
13641:more1
13642s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13643p
13644g
13645s/.\{148\}//
13646t nl
13647:delim
13648h
13649s/\(.\{148\}\).*/\1/
13650t more2
13651s/["\\]/\\&/g; s/^/"/; s/$/"/
13652p
13653b
13654:more2
13655s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13656p
13657g
13658s/.\{148\}//
13659t delim
13660' <conf$$subs.awk | sed '
13661/^[^""]/{
13662 N
13663 s/\n//
13664}
13665' >>$CONFIG_STATUS || ac_write_fail=1
13666rm -f conf$$subs.awk
13667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13668_ACAWK
13669cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13670 for (key in S) S_is_set[key] = 1
13671 FS = "\a"
13672
13673}
979273e3 13674{
81ecdfbb
RW
13675 line = $ 0
13676 nfields = split(line, field, "@")
13677 substed = 0
13678 len = length(field[1])
13679 for (i = 2; i < nfields; i++) {
13680 key = field[i]
13681 keylen = length(key)
13682 if (S_is_set[key]) {
13683 value = S[key]
13684 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13685 len += length(value) + length(field[++i])
13686 substed = 1
13687 } else
13688 len += 1 + keylen
13689 }
13690
13691 print line
979273e3
NN
13692}
13693
81ecdfbb
RW
13694_ACAWK
13695_ACEOF
13696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13697if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13698 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13699else
13700 cat
13701fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13702 || as_fn_error "could not setup config files machinery" "$LINENO" 5
979273e3
NN
13703_ACEOF
13704
81ecdfbb
RW
13705# VPATH may cause trouble with some makes, so we remove $(srcdir),
13706# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13707# trailing colons and then remove the whole line if VPATH becomes empty
13708# (actually we leave an empty line to preserve line numbers).
13709if test "x$srcdir" = x.; then
13710 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13711s/:*\$(srcdir):*/:/
13712s/:*\${srcdir}:*/:/
13713s/:*@srcdir@:*/:/
13714s/^\([^=]*=[ ]*\):*/\1/
13715s/:*$//
13716s/^[^=]*=[ ]*$//
13717}'
13718fi
13719
13720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721fi # test -n "$CONFIG_FILES"
979273e3 13722
81ecdfbb
RW
13723# Set up the scripts for CONFIG_HEADERS section.
13724# No need to generate them if there are no CONFIG_HEADERS.
13725# This happens for instance with `./config.status Makefile'.
13726if test -n "$CONFIG_HEADERS"; then
13727cat >"$tmp/defines.awk" <<\_ACAWK ||
13728BEGIN {
13729_ACEOF
979273e3 13730
81ecdfbb
RW
13731# Transform confdefs.h into an awk script `defines.awk', embedded as
13732# here-document in config.status, that substitutes the proper values into
13733# config.h.in to produce config.h.
979273e3 13734
81ecdfbb
RW
13735# Create a delimiter string that does not exist in confdefs.h, to ease
13736# handling of long lines.
13737ac_delim='%!_!# '
13738for ac_last_try in false false :; do
13739 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13740 if test -z "$ac_t"; then
13741 break
13742 elif $ac_last_try; then
13743 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13744 else
13745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13746 fi
13747done
13748
13749# For the awk script, D is an array of macro values keyed by name,
13750# likewise P contains macro parameters if any. Preserve backslash
13751# newline sequences.
13752
13753ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13754sed -n '
13755s/.\{148\}/&'"$ac_delim"'/g
13756t rset
13757:rset
13758s/^[ ]*#[ ]*define[ ][ ]*/ /
13759t def
13760d
13761:def
13762s/\\$//
13763t bsnl
13764s/["\\]/\\&/g
13765s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13766D["\1"]=" \3"/p
13767s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13768d
13769:bsnl
13770s/["\\]/\\&/g
13771s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13772D["\1"]=" \3\\\\\\n"\\/p
13773t cont
13774s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13775t cont
13776d
13777:cont
13778n
13779s/.\{148\}/&'"$ac_delim"'/g
13780t clear
13781:clear
13782s/\\$//
13783t bsnlc
13784s/["\\]/\\&/g; s/^/"/; s/$/"/p
13785d
13786:bsnlc
13787s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13788b cont
13789' <confdefs.h | sed '
13790s/'"$ac_delim"'/"\\\
13791"/g' >>$CONFIG_STATUS || ac_write_fail=1
13792
13793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13794 for (key in D) D_is_set[key] = 1
13795 FS = "\a"
13796}
13797/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13798 line = \$ 0
13799 split(line, arg, " ")
13800 if (arg[1] == "#") {
13801 defundef = arg[2]
13802 mac1 = arg[3]
13803 } else {
13804 defundef = substr(arg[1], 2)
13805 mac1 = arg[2]
13806 }
13807 split(mac1, mac2, "(") #)
13808 macro = mac2[1]
13809 prefix = substr(line, 1, index(line, defundef) - 1)
13810 if (D_is_set[macro]) {
13811 # Preserve the white space surrounding the "#".
13812 print prefix "define", macro P[macro] D[macro]
13813 next
13814 } else {
13815 # Replace #undef with comments. This is necessary, for example,
13816 # in the case of _POSIX_SOURCE, which is predefined and required
13817 # on some systems where configure will not decide to define it.
13818 if (defundef == "undef") {
13819 print "/*", prefix defundef, macro, "*/"
13820 next
13821 }
13822 }
13823}
13824{ print }
13825_ACAWK
979273e3 13826_ACEOF
81ecdfbb
RW
13827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13828 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13829fi # test -n "$CONFIG_HEADERS"
979273e3 13830
81ecdfbb
RW
13831
13832eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13833shift
13834for ac_tag
13835do
13836 case $ac_tag in
13837 :[FHLC]) ac_mode=$ac_tag; continue;;
13838 esac
13839 case $ac_mode$ac_tag in
13840 :[FHL]*:*);;
13841 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13842 :[FH]-) ac_tag=-:-;;
13843 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13844 esac
13845 ac_save_IFS=$IFS
13846 IFS=:
13847 set x $ac_tag
13848 IFS=$ac_save_IFS
13849 shift
13850 ac_file=$1
13851 shift
13852
13853 case $ac_mode in
13854 :L) ac_source=$1;;
13855 :[FH])
13856 ac_file_inputs=
13857 for ac_f
13858 do
13859 case $ac_f in
13860 -) ac_f="$tmp/stdin";;
13861 *) # Look for the file first in the build tree, then in the source tree
13862 # (if the path is not absolute). The absolute path cannot be DOS-style,
13863 # because $ac_f cannot contain `:'.
13864 test -f "$ac_f" ||
13865 case $ac_f in
13866 [\\/$]*) false;;
13867 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13868 esac ||
13869 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13870 esac
13871 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13872 as_fn_append ac_file_inputs " '$ac_f'"
13873 done
13874
13875 # Let's still pretend it is `configure' which instantiates (i.e., don't
13876 # use $as_me), people would be surprised to read:
13877 # /* config.h. Generated by config.status. */
13878 configure_input='Generated from '`
13879 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13880 `' by configure.'
13881 if test x"$ac_file" != x-; then
13882 configure_input="$ac_file. $configure_input"
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13884$as_echo "$as_me: creating $ac_file" >&6;}
979273e3 13885 fi
81ecdfbb
RW
13886 # Neutralize special characters interpreted by sed in replacement strings.
13887 case $configure_input in #(
13888 *\&* | *\|* | *\\* )
13889 ac_sed_conf_input=`$as_echo "$configure_input" |
13890 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13891 *) ac_sed_conf_input=$configure_input;;
13892 esac
252b5132 13893
81ecdfbb
RW
13894 case $ac_tag in
13895 *:-:* | *:-) cat >"$tmp/stdin" \
13896 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13897 esac
13898 ;;
252b5132
RH
13899 esac
13900
81ecdfbb 13901 ac_dir=`$as_dirname -- "$ac_file" ||
979273e3
NN
13902$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13903 X"$ac_file" : 'X\(//\)[^/]' \| \
13904 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13905 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13906$as_echo X"$ac_file" |
13907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13908 s//\1/
13909 q
13910 }
13911 /^X\(\/\/\)[^/].*/{
13912 s//\1/
13913 q
13914 }
13915 /^X\(\/\/\)$/{
13916 s//\1/
13917 q
13918 }
13919 /^X\(\/\).*/{
13920 s//\1/
13921 q
13922 }
13923 s/.*/./; q'`
13924 as_dir="$ac_dir"; as_fn_mkdir_p
979273e3
NN
13925 ac_builddir=.
13926
81ecdfbb
RW
13927case "$ac_dir" in
13928.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13929*)
13930 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13931 # A ".." for each directory in $ac_dir_suffix.
13932 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13933 case $ac_top_builddir_sub in
13934 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13935 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13936 esac ;;
13937esac
13938ac_abs_top_builddir=$ac_pwd
13939ac_abs_builddir=$ac_pwd$ac_dir_suffix
13940# for backward compatibility:
13941ac_top_builddir=$ac_top_build_prefix
979273e3
NN
13942
13943case $srcdir in
81ecdfbb 13944 .) # We are building in place.
979273e3 13945 ac_srcdir=.
81ecdfbb
RW
13946 ac_top_srcdir=$ac_top_builddir_sub
13947 ac_abs_top_srcdir=$ac_pwd ;;
13948 [\\/]* | ?:[\\/]* ) # Absolute name.
979273e3 13949 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13950 ac_top_srcdir=$srcdir
13951 ac_abs_top_srcdir=$srcdir ;;
13952 *) # Relative name.
13953 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13954 ac_top_srcdir=$ac_top_build_prefix$srcdir
13955 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
979273e3 13956esac
81ecdfbb 13957ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
979273e3 13958
252b5132 13959
81ecdfbb
RW
13960 case $ac_mode in
13961 :F)
13962 #
13963 # CONFIG_FILE
13964 #
979273e3
NN
13965
13966 case $INSTALL in
13967 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
13968 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13969 esac
13970 ac_MKDIR_P=$MKDIR_P
13971 case $MKDIR_P in
13972 [\\/$]* | ?:[\\/]* ) ;;
13973 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
252b5132 13974 esac
81ecdfbb 13975_ACEOF
252b5132 13976
81ecdfbb
RW
13977cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13978# If the template does not know about datarootdir, expand it.
13979# FIXME: This hack should be removed a few years after 2.60.
13980ac_datarootdir_hack=; ac_datarootdir_seen=
13981ac_sed_dataroot='
13982/datarootdir/ {
13983 p
13984 q
13985}
13986/@datadir@/p
13987/@docdir@/p
13988/@infodir@/p
13989/@localedir@/p
13990/@mandir@/p'
13991case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13992*datarootdir*) ac_datarootdir_seen=yes;;
13993*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13995$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13996_ACEOF
13997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13998 ac_datarootdir_hack='
13999 s&@datadir@&$datadir&g
14000 s&@docdir@&$docdir&g
14001 s&@infodir@&$infodir&g
14002 s&@localedir@&$localedir&g
14003 s&@mandir@&$mandir&g
14004 s&\\\${datarootdir}&$datarootdir&g' ;;
14005esac
979273e3 14006_ACEOF
81ecdfbb
RW
14007
14008# Neutralize VPATH when `$srcdir' = `.'.
14009# Shell code in configure.ac might set extrasub.
14010# FIXME: do we really want to maintain this feature?
14011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14012ac_sed_extra="$ac_vpsub
979273e3
NN
14013$extrasub
14014_ACEOF
81ecdfbb 14015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
979273e3
NN
14016:t
14017/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14018s|@configure_input@|$ac_sed_conf_input|;t t
14019s&@top_builddir@&$ac_top_builddir_sub&;t t
14020s&@top_build_prefix@&$ac_top_build_prefix&;t t
14021s&@srcdir@&$ac_srcdir&;t t
14022s&@abs_srcdir@&$ac_abs_srcdir&;t t
14023s&@top_srcdir@&$ac_top_srcdir&;t t
14024s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14025s&@builddir@&$ac_builddir&;t t
14026s&@abs_builddir@&$ac_abs_builddir&;t t
14027s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14028s&@INSTALL@&$ac_INSTALL&;t t
14029s&@MKDIR_P@&$ac_MKDIR_P&;t t
14030$ac_datarootdir_hack
14031"
14032eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14033 || as_fn_error "could not create $ac_file" "$LINENO" 5
14034
14035test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14036 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14037 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14039which seems to be undefined. Please make sure it is defined." >&5
14040$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14041which seems to be undefined. Please make sure it is defined." >&2;}
14042
14043 rm -f "$tmp/stdin"
979273e3 14044 case $ac_file in
81ecdfbb
RW
14045 -) cat "$tmp/out" && rm -f "$tmp/out";;
14046 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14047 esac \
14048 || as_fn_error "could not create $ac_file" "$LINENO" 5
14049 ;;
14050 :H)
14051 #
14052 # CONFIG_HEADER
14053 #
979273e3 14054 if test x"$ac_file" != x-; then
81ecdfbb
RW
14055 {
14056 $as_echo "/* $configure_input */" \
14057 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14058 } >"$tmp/config.h" \
14059 || as_fn_error "could not create $ac_file" "$LINENO" 5
14060 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14062$as_echo "$as_me: $ac_file is unchanged" >&6;}
979273e3 14063 else
81ecdfbb
RW
14064 rm -f "$ac_file"
14065 mv "$tmp/config.h" "$ac_file" \
14066 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 14067 fi
979273e3 14068 else
81ecdfbb
RW
14069 $as_echo "/* $configure_input */" \
14070 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14071 || as_fn_error "could not create -" "$LINENO" 5
252b5132 14072 fi
81ecdfbb
RW
14073# Compute "$ac_file"'s index in $config_headers.
14074_am_arg="$ac_file"
8ae85421
AM
14075_am_stamp_count=1
14076for _am_header in $config_headers :; do
14077 case $_am_header in
81ecdfbb 14078 $_am_arg | $_am_arg:* )
8ae85421
AM
14079 break ;;
14080 * )
14081 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14082 esac
14083done
81ecdfbb
RW
14084echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14085$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14086 X"$_am_arg" : 'X\(//\)[^/]' \| \
14087 X"$_am_arg" : 'X\(//\)$' \| \
14088 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14089$as_echo X"$_am_arg" |
14090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14091 s//\1/
14092 q
14093 }
14094 /^X\(\/\/\)[^/].*/{
14095 s//\1/
14096 q
14097 }
14098 /^X\(\/\/\)$/{
14099 s//\1/
14100 q
14101 }
14102 /^X\(\/\).*/{
14103 s//\1/
14104 q
14105 }
14106 s/.*/./; q'`/stamp-h$_am_stamp_count
14107 ;;
979273e3 14108
81ecdfbb
RW
14109 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14110$as_echo "$as_me: executing $ac_file commands" >&6;}
14111 ;;
14112 esac
979273e3
NN
14113
14114
81ecdfbb
RW
14115 case $ac_file$ac_mode in
14116 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14117 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14118 # are listed without --file. Let's play safe and only enable the eval
14119 # if we detect the quoting.
14120 case $CONFIG_FILES in
14121 *\'*) eval set x "$CONFIG_FILES" ;;
14122 *) set x $CONFIG_FILES ;;
14123 esac
14124 shift
14125 for mf
14126 do
14127 # Strip MF so we end up with the name of the file.
14128 mf=`echo "$mf" | sed -e 's/:.*$//'`
14129 # Check whether this is an Automake generated Makefile or not.
14130 # We used to match only the files named `Makefile.in', but
14131 # some people rename them; so instead we look at the file content.
14132 # Grep'ing the first line is not enough: some people post-process
14133 # each Makefile.in and add a new line on top of each file to say so.
14134 # Grep'ing the whole file is not good either: AIX grep has a line
14135 # limit of 2048, but all sed's we know have understand at least 4000.
14136 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14137 dirpart=`$as_dirname -- "$mf" ||
8ae85421
AM
14138$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14139 X"$mf" : 'X\(//\)[^/]' \| \
14140 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
14141 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14142$as_echo X"$mf" |
14143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14144 s//\1/
14145 q
14146 }
14147 /^X\(\/\/\)[^/].*/{
14148 s//\1/
14149 q
14150 }
14151 /^X\(\/\/\)$/{
14152 s//\1/
14153 q
14154 }
14155 /^X\(\/\).*/{
14156 s//\1/
14157 q
14158 }
14159 s/.*/./; q'`
14160 else
14161 continue
14162 fi
14163 # Extract the definition of DEPDIR, am__include, and am__quote
14164 # from the Makefile without running `make'.
14165 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14166 test -z "$DEPDIR" && continue
14167 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14168 test -z "am__include" && continue
14169 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14170 # When using ansi2knr, U may be empty or an underscore; expand it
14171 U=`sed -n 's/^U = //p' < "$mf"`
14172 # Find all dependency output files, they are included files with
14173 # $(DEPDIR) in their names. We invoke sed twice because it is the
14174 # simplest approach to changing $(DEPDIR) to its actual value in the
14175 # expansion.
14176 for file in `sed -n "
14177 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14178 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14179 # Make sure the directory exists.
14180 test -f "$dirpart/$file" && continue
14181 fdir=`$as_dirname -- "$file" ||
8ae85421
AM
14182$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14183 X"$file" : 'X\(//\)[^/]' \| \
14184 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
14185 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14186$as_echo X"$file" |
14187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14188 s//\1/
14189 q
14190 }
14191 /^X\(\/\/\)[^/].*/{
14192 s//\1/
14193 q
14194 }
14195 /^X\(\/\/\)$/{
14196 s//\1/
14197 q
14198 }
14199 /^X\(\/\).*/{
14200 s//\1/
14201 q
14202 }
14203 s/.*/./; q'`
14204 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14205 # echo "creating $dirpart/$file"
14206 echo '# dummy' > "$dirpart/$file"
8ae85421 14207 done
8ae85421 14208 done
81ecdfbb 14209}
d7040cdb 14210 ;;
81ecdfbb 14211 "libtool":C)
d7040cdb
SE
14212
14213 # See if we are running on zsh, and set the options which allow our
14214 # commands through without removal of \ escapes.
14215 if test -n "${ZSH_VERSION+set}" ; then
14216 setopt NO_GLOB_SUBST
14217 fi
14218
14219 cfgfile="${ofile}T"
14220 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14221 $RM "$cfgfile"
14222
14223 cat <<_LT_EOF >> "$cfgfile"
14224#! $SHELL
14225
14226# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1927a18f 14227# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
14228# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14229# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14230#
1927a18f 14231# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 14232# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1927a18f 14233# Written by Gordon Matzigkeit, 1996
d7040cdb 14234#
1927a18f 14235# This file is part of GNU Libtool.
d7040cdb 14236#
1927a18f
L
14237# GNU Libtool is free software; you can redistribute it and/or
14238# modify it under the terms of the GNU General Public License as
14239# published by the Free Software Foundation; either version 2 of
14240# the License, or (at your option) any later version.
d7040cdb 14241#
1927a18f
L
14242# As a special exception to the GNU General Public License,
14243# if you distribute this file as part of a program or library that
14244# is built using GNU Libtool, you may include this file under the
14245# same distribution terms that you use for the rest of that program.
d7040cdb 14246#
1927a18f
L
14247# GNU Libtool is distributed in the hope that it will be useful,
14248# but WITHOUT ANY WARRANTY; without even the implied warranty of
14249# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14250# GNU General Public License for more details.
d7040cdb 14251#
1927a18f
L
14252# You should have received a copy of the GNU General Public License
14253# along with GNU Libtool; see the file COPYING. If not, a copy
14254# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14255# obtained by writing to the Free Software Foundation, Inc.,
14256# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
14257
14258
14259# The names of the tagged configurations supported by this script.
14260available_tags=""
14261
14262# ### BEGIN LIBTOOL CONFIG
14263
14264# Whether or not to build shared libraries.
14265build_libtool_libs=$enable_shared
14266
14267# Which release of libtool.m4 was used?
14268macro_version=$macro_version
14269macro_revision=$macro_revision
14270
14271# Whether or not to build static libraries.
14272build_old_libs=$enable_static
14273
14274# What type of objects to build.
14275pic_mode=$pic_mode
14276
14277# Whether or not to optimize for fast installation.
14278fast_install=$enable_fast_install
14279
3725885a
RW
14280# Shell to use when invoking shell scripts.
14281SHELL=$lt_SHELL
14282
14283# An echo program that protects backslashes.
14284ECHO=$lt_ECHO
14285
d7040cdb
SE
14286# The host system.
14287host_alias=$host_alias
14288host=$host
14289host_os=$host_os
14290
14291# The build system.
14292build_alias=$build_alias
14293build=$build
14294build_os=$build_os
14295
14296# A sed program that does not truncate output.
14297SED=$lt_SED
14298
14299# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14300Xsed="\$SED -e 1s/^X//"
14301
14302# A grep program that handles long lines.
14303GREP=$lt_GREP
14304
14305# An ERE matcher.
14306EGREP=$lt_EGREP
14307
14308# A literal string matcher.
14309FGREP=$lt_FGREP
14310
14311# A BSD- or MS-compatible name lister.
14312NM=$lt_NM
14313
14314# Whether we need soft or hard links.
14315LN_S=$lt_LN_S
14316
14317# What is the maximum length of a command?
14318max_cmd_len=$max_cmd_len
14319
14320# Object file suffix (normally "o").
14321objext=$ac_objext
14322
14323# Executable file suffix (normally "").
14324exeext=$exeext
14325
14326# whether the shell understands "unset".
14327lt_unset=$lt_unset
14328
14329# turn spaces into newlines.
14330SP2NL=$lt_lt_SP2NL
14331
14332# turn newlines into spaces.
14333NL2SP=$lt_lt_NL2SP
14334
1927a18f
L
14335# An object symbol dumper.
14336OBJDUMP=$lt_OBJDUMP
14337
d7040cdb
SE
14338# Method to check whether dependent libraries are shared objects.
14339deplibs_check_method=$lt_deplibs_check_method
14340
14341# Command to use when deplibs_check_method == "file_magic".
14342file_magic_cmd=$lt_file_magic_cmd
14343
14344# The archiver.
14345AR=$lt_AR
14346AR_FLAGS=$lt_AR_FLAGS
14347
14348# A symbol stripping program.
14349STRIP=$lt_STRIP
14350
14351# Commands used to install an old-style archive.
14352RANLIB=$lt_RANLIB
14353old_postinstall_cmds=$lt_old_postinstall_cmds
14354old_postuninstall_cmds=$lt_old_postuninstall_cmds
14355
3725885a
RW
14356# Whether to use a lock for old archive extraction.
14357lock_old_archive_extraction=$lock_old_archive_extraction
14358
d7040cdb
SE
14359# A C compiler.
14360LTCC=$lt_CC
14361
14362# LTCC compiler flags.
14363LTCFLAGS=$lt_CFLAGS
14364
14365# Take the output of nm and produce a listing of raw symbols and C names.
14366global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14367
14368# Transform the output of nm in a proper C declaration.
14369global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14370
14371# Transform the output of nm in a C name address pair.
14372global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14373
1927a18f
L
14374# Transform the output of nm in a C name address pair when lib prefix is needed.
14375global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14376
d7040cdb
SE
14377# The name of the directory that contains temporary libtool files.
14378objdir=$objdir
14379
d7040cdb
SE
14380# Used to examine libraries when file_magic_cmd begins with "file".
14381MAGIC_CMD=$MAGIC_CMD
14382
14383# Must we lock files when doing compilation?
14384need_locks=$lt_need_locks
14385
1927a18f
L
14386# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14387DSYMUTIL=$lt_DSYMUTIL
14388
14389# Tool to change global to local symbols on Mac OS X.
14390NMEDIT=$lt_NMEDIT
14391
14392# Tool to manipulate fat objects and archives on Mac OS X.
14393LIPO=$lt_LIPO
14394
14395# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14396OTOOL=$lt_OTOOL
14397
14398# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14399OTOOL64=$lt_OTOOL64
14400
d7040cdb
SE
14401# Old archive suffix (normally "a").
14402libext=$libext
14403
14404# Shared library suffix (normally ".so").
14405shrext_cmds=$lt_shrext_cmds
14406
14407# The commands to extract the exported symbol list from a shared archive.
14408extract_expsyms_cmds=$lt_extract_expsyms_cmds
14409
14410# Variables whose values should be saved in libtool wrapper scripts and
14411# restored at link time.
14412variables_saved_for_relink=$lt_variables_saved_for_relink
14413
14414# Do we need the "lib" prefix for modules?
14415need_lib_prefix=$need_lib_prefix
14416
14417# Do we need a version for libraries?
14418need_version=$need_version
14419
14420# Library versioning type.
14421version_type=$version_type
14422
14423# Shared library runtime path variable.
14424runpath_var=$runpath_var
14425
14426# Shared library path variable.
14427shlibpath_var=$shlibpath_var
14428
14429# Is shlibpath searched before the hard-coded library search path?
14430shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14431
14432# Format of library name prefix.
14433libname_spec=$lt_libname_spec
14434
14435# List of archive names. First name is the real one, the rest are links.
14436# The last name is the one that the linker finds with -lNAME
14437library_names_spec=$lt_library_names_spec
14438
14439# The coded name of the library, if different from the real name.
14440soname_spec=$lt_soname_spec
14441
3725885a
RW
14442# Permission mode override for installation of shared libraries.
14443install_override_mode=$lt_install_override_mode
14444
d7040cdb
SE
14445# Command to use after installation of a shared archive.
14446postinstall_cmds=$lt_postinstall_cmds
14447
14448# Command to use after uninstallation of a shared archive.
14449postuninstall_cmds=$lt_postuninstall_cmds
14450
14451# Commands used to finish a libtool library installation in a directory.
14452finish_cmds=$lt_finish_cmds
14453
14454# As "finish_cmds", except a single script fragment to be evaled but
14455# not shown.
14456finish_eval=$lt_finish_eval
14457
14458# Whether we should hardcode library paths into libraries.
14459hardcode_into_libs=$hardcode_into_libs
14460
14461# Compile-time system search path for libraries.
14462sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14463
14464# Run-time system search path for libraries.
14465sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14466
14467# Whether dlopen is supported.
14468dlopen_support=$enable_dlopen
14469
14470# Whether dlopen of programs is supported.
14471dlopen_self=$enable_dlopen_self
14472
14473# Whether dlopen of statically linked programs is supported.
14474dlopen_self_static=$enable_dlopen_self_static
14475
14476# Commands to strip libraries.
14477old_striplib=$lt_old_striplib
14478striplib=$lt_striplib
14479
14480
14481# The linker used to build libraries.
14482LD=$lt_LD
14483
3725885a
RW
14484# How to create reloadable object files.
14485reload_flag=$lt_reload_flag
14486reload_cmds=$lt_reload_cmds
14487
d7040cdb
SE
14488# Commands used to build an old-style archive.
14489old_archive_cmds=$lt_old_archive_cmds
14490
14491# A language specific compiler.
14492CC=$lt_compiler
14493
14494# Is the compiler the GNU compiler?
14495with_gcc=$GCC
14496
14497# Compiler flag to turn off builtin functions.
14498no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14499
14500# How to pass a linker flag through the compiler.
14501wl=$lt_lt_prog_compiler_wl
14502
14503# Additional compiler flags for building library objects.
14504pic_flag=$lt_lt_prog_compiler_pic
14505
14506# Compiler flag to prevent dynamic linking.
14507link_static_flag=$lt_lt_prog_compiler_static
14508
14509# Does compiler simultaneously support -c and -o options?
14510compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14511
14512# Whether or not to add -lc for building shared libraries.
14513build_libtool_need_lc=$archive_cmds_need_lc
14514
14515# Whether or not to disallow shared libs when runtime libs are static.
14516allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14517
14518# Compiler flag to allow reflexive dlopens.
14519export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14520
14521# Compiler flag to generate shared objects directly from archives.
14522whole_archive_flag_spec=$lt_whole_archive_flag_spec
14523
14524# Whether the compiler copes with passing no objects directly.
14525compiler_needs_object=$lt_compiler_needs_object
14526
14527# Create an old-style archive from a shared archive.
14528old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14529
14530# Create a temporary old-style archive to link instead of a shared archive.
14531old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14532
14533# Commands used to build a shared archive.
14534archive_cmds=$lt_archive_cmds
14535archive_expsym_cmds=$lt_archive_expsym_cmds
14536
14537# Commands used to build a loadable module if different from building
14538# a shared archive.
14539module_cmds=$lt_module_cmds
14540module_expsym_cmds=$lt_module_expsym_cmds
14541
14542# Whether we are building with GNU ld or not.
14543with_gnu_ld=$lt_with_gnu_ld
14544
14545# Flag that allows shared libraries with undefined symbols to be built.
14546allow_undefined_flag=$lt_allow_undefined_flag
14547
14548# Flag that enforces no undefined symbols.
14549no_undefined_flag=$lt_no_undefined_flag
14550
14551# Flag to hardcode \$libdir into a binary during linking.
14552# This must work even if \$libdir does not exist
14553hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14554
14555# If ld is used when linking, flag to hardcode \$libdir into a binary
14556# during linking. This must work even if \$libdir does not exist.
14557hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14558
14559# Whether we need a single "-rpath" flag with a separated argument.
14560hardcode_libdir_separator=$lt_hardcode_libdir_separator
14561
14562# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14563# DIR into the resulting binary.
14564hardcode_direct=$hardcode_direct
14565
14566# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14567# DIR into the resulting binary and the resulting library dependency is
14568# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14569# library is relocated.
14570hardcode_direct_absolute=$hardcode_direct_absolute
14571
14572# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14573# into the resulting binary.
14574hardcode_minus_L=$hardcode_minus_L
14575
14576# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14577# into the resulting binary.
14578hardcode_shlibpath_var=$hardcode_shlibpath_var
14579
14580# Set to "yes" if building a shared library automatically hardcodes DIR
14581# into the library and all subsequent libraries and executables linked
14582# against it.
14583hardcode_automatic=$hardcode_automatic
14584
14585# Set to yes if linker adds runtime paths of dependent libraries
14586# to runtime path list.
14587inherit_rpath=$inherit_rpath
14588
14589# Whether libtool must link a program against all its dependency libraries.
14590link_all_deplibs=$link_all_deplibs
14591
14592# Fix the shell variable \$srcfile for the compiler.
14593fix_srcfile_path=$lt_fix_srcfile_path
14594
14595# Set to "yes" if exported symbols are required.
14596always_export_symbols=$always_export_symbols
14597
14598# The commands to list exported symbols.
14599export_symbols_cmds=$lt_export_symbols_cmds
14600
14601# Symbols that should not be listed in the preloaded symbols.
14602exclude_expsyms=$lt_exclude_expsyms
14603
14604# Symbols that must always be exported.
14605include_expsyms=$lt_include_expsyms
14606
14607# Commands necessary for linking programs (against libraries) with templates.
14608prelink_cmds=$lt_prelink_cmds
14609
14610# Specify filename containing input files.
14611file_list_spec=$lt_file_list_spec
14612
14613# How to hardcode a shared library path into an executable.
14614hardcode_action=$hardcode_action
14615
14616# ### END LIBTOOL CONFIG
14617
14618_LT_EOF
14619
14620 case $host_os in
14621 aix3*)
14622 cat <<\_LT_EOF >> "$cfgfile"
14623# AIX sometimes has problems with the GCC collect2 program. For some
14624# reason, if we set the COLLECT_NAMES environment variable, the problems
14625# vanish in a puff of smoke.
14626if test "X${COLLECT_NAMES+set}" != Xset; then
14627 COLLECT_NAMES=
14628 export COLLECT_NAMES
14629fi
14630_LT_EOF
14631 ;;
14632 esac
14633
14634
14635ltmain="$ac_aux_dir/ltmain.sh"
14636
14637
14638 # We use sed instead of cat because bash on DJGPP gets confused if
14639 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14640 # text mode, it properly converts lines to CR/LF. This bash problem
14641 # is reportedly fixed, but why not run on old versions too?
14642 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14643 || (rm -f "$cfgfile"; exit 1)
14644
14645 case $xsi_shell in
14646 yes)
14647 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14648
d7040cdb
SE
14649# func_dirname file append nondir_replacement
14650# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14651# otherwise set result to NONDIR_REPLACEMENT.
14652func_dirname ()
14653{
14654 case ${1} in
14655 */*) func_dirname_result="${1%/*}${2}" ;;
14656 * ) func_dirname_result="${3}" ;;
14657 esac
14658}
14659
14660# func_basename file
14661func_basename ()
14662{
14663 func_basename_result="${1##*/}"
14664}
14665
1927a18f
L
14666# func_dirname_and_basename file append nondir_replacement
14667# perform func_basename and func_dirname in a single function
14668# call:
14669# dirname: Compute the dirname of FILE. If nonempty,
14670# add APPEND to the result, otherwise set result
14671# to NONDIR_REPLACEMENT.
14672# value returned in "$func_dirname_result"
14673# basename: Compute filename of FILE.
14674# value retuned in "$func_basename_result"
14675# Implementation must be kept synchronized with func_dirname
14676# and func_basename. For efficiency, we do not delegate to
14677# those functions but instead duplicate the functionality here.
14678func_dirname_and_basename ()
14679{
14680 case ${1} in
14681 */*) func_dirname_result="${1%/*}${2}" ;;
14682 * ) func_dirname_result="${3}" ;;
14683 esac
14684 func_basename_result="${1##*/}"
14685}
14686
d7040cdb
SE
14687# func_stripname prefix suffix name
14688# strip PREFIX and SUFFIX off of NAME.
14689# PREFIX and SUFFIX must not contain globbing or regex special
14690# characters, hashes, percent signs, but SUFFIX may contain a leading
14691# dot (in which case that matches only a dot).
14692func_stripname ()
14693{
14694 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14695 # positional parameters, so assign one to ordinary parameter first.
14696 func_stripname_result=${3}
14697 func_stripname_result=${func_stripname_result#"${1}"}
14698 func_stripname_result=${func_stripname_result%"${2}"}
14699}
14700
14701# func_opt_split
14702func_opt_split ()
14703{
14704 func_opt_split_opt=${1%%=*}
14705 func_opt_split_arg=${1#*=}
14706}
14707
14708# func_lo2o object
14709func_lo2o ()
14710{
14711 case ${1} in
14712 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14713 *) func_lo2o_result=${1} ;;
14714 esac
14715}
1927a18f
L
14716
14717# func_xform libobj-or-source
14718func_xform ()
14719{
14720 func_xform_result=${1%.*}.lo
14721}
14722
14723# func_arith arithmetic-term...
14724func_arith ()
14725{
14726 func_arith_result=$(( $* ))
14727}
14728
14729# func_len string
14730# STRING may not start with a hyphen.
14731func_len ()
14732{
14733 func_len_result=${#1}
14734}
14735
d7040cdb
SE
14736_LT_EOF
14737 ;;
14738 *) # Bourne compatible functions.
14739 cat << \_LT_EOF >> "$cfgfile"
1927a18f 14740
d7040cdb
SE
14741# func_dirname file append nondir_replacement
14742# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14743# otherwise set result to NONDIR_REPLACEMENT.
14744func_dirname ()
14745{
14746 # Extract subdirectory from the argument.
3725885a 14747 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
14748 if test "X$func_dirname_result" = "X${1}"; then
14749 func_dirname_result="${3}"
14750 else
14751 func_dirname_result="$func_dirname_result${2}"
14752 fi
14753}
14754
14755# func_basename file
14756func_basename ()
14757{
3725885a 14758 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
14759}
14760
1927a18f 14761
d7040cdb
SE
14762# func_stripname prefix suffix name
14763# strip PREFIX and SUFFIX off of NAME.
14764# PREFIX and SUFFIX must not contain globbing or regex special
14765# characters, hashes, percent signs, but SUFFIX may contain a leading
14766# dot (in which case that matches only a dot).
14767# func_strip_suffix prefix name
14768func_stripname ()
14769{
14770 case ${2} in
3725885a
RW
14771 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14772 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
14773 esac
14774}
14775
14776# sed scripts:
14777my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14778my_sed_long_arg='1s/^-[^=]*=//'
14779
14780# func_opt_split
14781func_opt_split ()
14782{
3725885a
RW
14783 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14784 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
14785}
14786
14787# func_lo2o object
14788func_lo2o ()
14789{
3725885a 14790 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 14791}
1927a18f
L
14792
14793# func_xform libobj-or-source
14794func_xform ()
14795{
3725885a 14796 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
1927a18f
L
14797}
14798
14799# func_arith arithmetic-term...
14800func_arith ()
14801{
14802 func_arith_result=`expr "$@"`
14803}
14804
14805# func_len string
14806# STRING may not start with a hyphen.
14807func_len ()
14808{
14809 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14810}
14811
d7040cdb
SE
14812_LT_EOF
14813esac
14814
14815case $lt_shell_append in
14816 yes)
14817 cat << \_LT_EOF >> "$cfgfile"
14818
14819# func_append var value
14820# Append VALUE to the end of shell variable VAR.
14821func_append ()
14822{
14823 eval "$1+=\$2"
14824}
14825_LT_EOF
14826 ;;
14827 *)
14828 cat << \_LT_EOF >> "$cfgfile"
14829
14830# func_append var value
14831# Append VALUE to the end of shell variable VAR.
14832func_append ()
14833{
14834 eval "$1=\$$1\$2"
14835}
1927a18f 14836
d7040cdb
SE
14837_LT_EOF
14838 ;;
14839 esac
14840
14841
14842 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14843 || (rm -f "$cfgfile"; exit 1)
14844
14845 mv -f "$cfgfile" "$ofile" ||
14846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14847 chmod +x "$ofile"
14848
8ae85421 14849 ;;
81ecdfbb 14850 "default-1":C)
20e95c23
DJ
14851 for ac_file in $CONFIG_FILES; do
14852 # Support "outfile[:infile[:infile...]]"
14853 case "$ac_file" in
14854 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14855 esac
14856 # PO directories have a Makefile.in generated from Makefile.in.in.
14857 case "$ac_file" in */Makefile.in)
14858 # Adjust a relative srcdir.
14859 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14860 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14861 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14862 # In autoconf-2.13 it is called $ac_given_srcdir.
14863 # In autoconf-2.50 it is called $srcdir.
14864 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14865 case "$ac_given_srcdir" in
14866 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14867 /*) top_srcdir="$ac_given_srcdir" ;;
14868 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14869 esac
14870 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14871 rm -f "$ac_dir/POTFILES"
14872 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14873 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14874 POMAKEFILEDEPS="POTFILES.in"
14875 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14876 # on $ac_dir but don't depend on user-specified configuration
14877 # parameters.
14878 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14879 # The LINGUAS file contains the set of available languages.
14880 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14881 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14882 fi
14883 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14884 # Hide the ALL_LINGUAS assigment from automake.
14885 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14886 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14887 else
14888 # The set of available languages was given in configure.in.
14889 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14890 fi
14891 case "$ac_given_srcdir" in
14892 .) srcdirpre= ;;
14893 *) srcdirpre='$(srcdir)/' ;;
14894 esac
14895 POFILES=
14896 GMOFILES=
14897 UPDATEPOFILES=
14898 DUMMYPOFILES=
14899 for lang in $ALL_LINGUAS; do
14900 POFILES="$POFILES $srcdirpre$lang.po"
14901 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14902 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14903 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14904 done
14905 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14906 # environment variable.
14907 INST_LINGUAS=
14908 if test -n "$ALL_LINGUAS"; then
14909 for presentlang in $ALL_LINGUAS; do
14910 useit=no
14911 if test "%UNSET%" != "$LINGUAS"; then
14912 desiredlanguages="$LINGUAS"
14913 else
14914 desiredlanguages="$ALL_LINGUAS"
14915 fi
14916 for desiredlang in $desiredlanguages; do
14917 # Use the presentlang catalog if desiredlang is
14918 # a. equal to presentlang, or
14919 # b. a variant of presentlang (because in this case,
14920 # presentlang can be used as a fallback for messages
14921 # which are not translated in the desiredlang catalog).
14922 case "$desiredlang" in
14923 "$presentlang"*) useit=yes;;
14924 esac
14925 done
14926 if test $useit = yes; then
14927 INST_LINGUAS="$INST_LINGUAS $presentlang"
14928 fi
14929 done
14930 fi
14931 CATALOGS=
14932 if test -n "$INST_LINGUAS"; then
14933 for lang in $INST_LINGUAS; do
14934 CATALOGS="$CATALOGS $lang.gmo"
14935 done
14936 fi
14937 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14938 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"
14939 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14940 if test -f "$f"; then
14941 case "$f" in
14942 *.orig | *.bak | *~) ;;
14943 *) cat "$f" >> "$ac_dir/Makefile" ;;
14944 esac
14945 fi
14946 done
14947 fi
14948 ;;
14949 esac
14950 done ;;
81ecdfbb 14951
979273e3 14952 esac
81ecdfbb 14953done # for ac_tag
979273e3 14954
979273e3 14955
81ecdfbb 14956as_fn_exit 0
979273e3 14957_ACEOF
979273e3
NN
14958ac_clean_files=$ac_clean_files_save
14959
81ecdfbb
RW
14960test $ac_write_fail = 0 ||
14961 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14962
979273e3
NN
14963
14964# configure is writing to config.log, and then calls config.status.
14965# config.status does its own redirection, appending to config.log.
14966# Unfortunately, on DOS this fails, as config.log is still kept open
14967# by configure, so config.status won't be able to write to it; its
14968# output is simply discarded. So we exec the FD to /dev/null,
14969# effectively closing config.log, so it can be properly (re)opened and
14970# appended to by config.status. When coming back to configure, we
14971# need to make the FD available again.
14972if test "$no_create" != yes; then
14973 ac_cs_success=:
14974 ac_config_status_args=
14975 test "$silent" = yes &&
14976 ac_config_status_args="$ac_config_status_args --quiet"
14977 exec 5>/dev/null
14978 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14979 exec 5>>config.log
14980 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14981 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14982 $ac_cs_success || as_fn_exit $?
14983fi
14984if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14986$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
979273e3 14987fi
252b5132 14988