Add support to the ARC disassembler for selecting instruction classes.
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for ld 2.26.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
42ecbf5e 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
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
42ecbf5e 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
42ecbf5e 418
42ecbf5e
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
42ecbf5e 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
42ecbf5e
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
42ecbf5e
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
42ecbf5e 491 fi
42ecbf5e
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
42ecbf5e
DJ
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='ld'
558PACKAGE_TARNAME='ld'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='ld 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
42ecbf5e
DJ
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
c58212ea
L
611elf_plt_unwind_list_options
612elf_shlib_list_options
613elf_list_options
81ecdfbb 614STRINGIFY
02ecc8e9 615enable_initfini_array
5d3236ee
DK
616ENABLE_PLUGINS_FALSE
617ENABLE_PLUGINS_TRUE
81ecdfbb 618NATIVE_LIB_DIRS
b27caf75 619HOSTING_SLIBS
81ecdfbb 620HOSTING_LIBS
6738cadc 621HOSTING_SCRT0
81ecdfbb
RW
622HOSTING_CRT0
623HDEFINES
624do_compare
625GENINSRC_NEVER_FALSE
626GENINSRC_NEVER_TRUE
81ecdfbb
RW
627LEXLIB
628LEX_OUTPUT_ROOT
629LEX
630YFLAGS
631YACC
632MSGMERGE
633MSGFMT
634MKINSTALLDIRS
635CATOBJEXT
636GENCAT
637INSTOBJEXT
638DATADIRNAME
639CATALOGS
640POSUB
641GMSGFMT
642XGETTEXT
643INCINTL
644LIBINTL_DEP
645LIBINTL
646USE_NLS
6757cf57 647WARN_WRITE_STRINGS
b879806f
AM
648NO_WERROR
649WARN_CFLAGS
650installed_linker
651install_as_default
652TARGET_SYSTEM_ROOT_DEFINE
653TARGET_SYSTEM_ROOT
654use_sysroot
3cb62297 655CXXCPP
81ecdfbb
RW
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
81ecdfbb
RW
661RANLIB
662AR
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670SED
671LIBTOOL
b879806f 672EGREP
b879806f 673CPP
68880f31 674GREP
3cb62297
L
675am__fastdepCXX_FALSE
676am__fastdepCXX_TRUE
677CXXDEPMODE
678ac_ct_CXX
679CXXFLAGS
680CXX
64ac50ac
RW
681MAINT
682MAINTAINER_MODE_FALSE
683MAINTAINER_MODE_TRUE
81ecdfbb
RW
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
6eb7d830 687am__nodep
81ecdfbb
RW
688AMDEPBACKSLASH
689AMDEP_FALSE
690AMDEP_TRUE
691am__quote
692am__include
693DEPDIR
694am__untar
695am__tar
696AMTAR
697am__leading_dot
698SET_MAKE
699AWK
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732build_os
733build_vendor
734build_cpu
735build
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
42ecbf5e 774ac_subst_files='TDIRS'
81ecdfbb
RW
775ac_user_opts='
776enable_option_checking
777enable_dependency_tracking
64ac50ac 778enable_maintainer_mode
b879806f
AM
779enable_shared
780enable_static
781with_pic
782enable_fast_install
783with_gnu_ld
784enable_libtool_lock
785enable_plugins
786enable_largefile
81ecdfbb
RW
787with_lib_path
788enable_targets
789enable_64_bit_bfd
790with_sysroot
4fda8867 791enable_gold
81ecdfbb 792enable_got
6c3bc0f8 793enable_compressed_debug_sections
647e4d46 794enable_relro
81ecdfbb
RW
795enable_werror
796enable_build_warnings
81ecdfbb 797enable_nls
02ecc8e9 798enable_initfini_array
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
3cb62297
L
808CXX
809CXXFLAGS
810CCC
b879806f 811CPP
3cb62297 812CXXCPP
81ecdfbb
RW
813YACC
814YFLAGS'
815
252b5132
RH
816
817# Initialize some variables set by options.
42ecbf5e
DJ
818ac_init_help=
819ac_init_version=false
81ecdfbb
RW
820ac_unrecognized_opts=
821ac_unrecognized_sep=
252b5132
RH
822# The variables have the same names as the options, with
823# dashes changed to underlines.
42ecbf5e 824cache_file=/dev/null
252b5132 825exec_prefix=NONE
252b5132 826no_create=
252b5132
RH
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
252b5132
RH
835verbose=
836x_includes=NONE
837x_libraries=NONE
42ecbf5e
DJ
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 844# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
252b5132
RH
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
252b5132
RH
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
2e98a7bd 855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
252b5132 864
252b5132 865ac_prev=
81ecdfbb 866ac_dashdash=
252b5132
RH
867for ac_option
868do
252b5132
RH
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
81ecdfbb 871 eval $ac_prev=\$ac_option
252b5132
RH
872 ac_prev=
873 continue
874 fi
875
81ecdfbb
RW
876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
252b5132
RH
880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
81ecdfbb
RW
883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
252b5132
RH
886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 890 bindir=$ac_optarg ;;
252b5132
RH
891
892 -build | --build | --buil | --bui | --bu)
42ecbf5e 893 ac_prev=build_alias ;;
252b5132 894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 895 build_alias=$ac_optarg ;;
252b5132
RH
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
252b5132 906
81ecdfbb 907 -datadir | --datadir | --datadi | --datad)
252b5132 908 ac_prev=datadir ;;
81ecdfbb 909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 910 datadir=$ac_optarg ;;
252b5132 911
81ecdfbb
RW
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
252b5132 919 -disable-* | --disable-*)
81ecdfbb 920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 921 # Reject names that are not valid shell variable names.
81ecdfbb
RW
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
927 *"
928"enable_$ac_useropt"
929"*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
934
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
939
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
252b5132
RH
944
945 -enable-* | --enable-*)
81ecdfbb 946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 947 # Reject names that are not valid shell variable names.
81ecdfbb
RW
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
252b5132 958 esac
81ecdfbb 959 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
960
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
42ecbf5e 968 exec_prefix=$ac_optarg ;;
252b5132
RH
969
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
973
42ecbf5e
DJ
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
252b5132
RH
980
981 -host | --host | --hos | --ho)
42ecbf5e 982 ac_prev=host_alias ;;
252b5132 983 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 984 host_alias=$ac_optarg ;;
252b5132 985
81ecdfbb
RW
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
991
252b5132
RH
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 997 includedir=$ac_optarg ;;
252b5132
RH
998
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1002 infodir=$ac_optarg ;;
252b5132
RH
1003
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1007 libdir=$ac_optarg ;;
252b5132
RH
1008
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1014 libexecdir=$ac_optarg ;;
252b5132 1015
81ecdfbb
RW
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1020
252b5132 1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1022 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1026 localstatedir=$ac_optarg ;;
252b5132
RH
1027
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1031 mandir=$ac_optarg ;;
252b5132
RH
1032
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1036
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1038 | --no-cr | --no-c | -n)
252b5132
RH
1039 no_create=yes ;;
1040
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1044
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1052 oldincludedir=$ac_optarg ;;
252b5132
RH
1053
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1057 prefix=$ac_optarg ;;
252b5132
RH
1058
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1064 program_prefix=$ac_optarg ;;
252b5132
RH
1065
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1071 program_suffix=$ac_optarg ;;
252b5132
RH
1072
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1088 program_transform_name=$ac_optarg ;;
252b5132 1089
81ecdfbb
RW
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1094
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1099
252b5132
RH
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
42ecbf5e 1108 sbindir=$ac_optarg ;;
252b5132
RH
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
42ecbf5e 1119 sharedstatedir=$ac_optarg ;;
252b5132
RH
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
42ecbf5e 1124 site=$ac_optarg ;;
85fbca6a 1125
252b5132
RH
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1129 srcdir=$ac_optarg ;;
252b5132
RH
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1136 sysconfdir=$ac_optarg ;;
252b5132
RH
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1139 ac_prev=target_alias ;;
252b5132 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1141 target_alias=$ac_optarg ;;
252b5132
RH
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
42ecbf5e
DJ
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
252b5132
RH
1148
1149 -with-* | --with-*)
81ecdfbb 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1151 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158"with_$ac_useropt"
1159"*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
252b5132 1162 esac
81ecdfbb 1163 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1164
1165 -without-* | --without-*)
81ecdfbb 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1167 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
252b5132
RH
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1190 x_includes=$ac_optarg ;;
252b5132
RH
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1197 x_libraries=$ac_optarg ;;
252b5132 1198
81ecdfbb
RW
1199 -*) as_fn_error "unrecognized option: \`$ac_option'
1200Try \`$0 --help' for more information."
252b5132
RH
1201 ;;
1202
42ecbf5e
DJ
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1211 export $ac_envvar ;;
1212
252b5132 1213 *)
42ecbf5e 1214 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1218 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1219 ;;
1220
1221 esac
1222done
1223
1224if test -n "$ac_prev"; then
42ecbf5e 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1226 as_fn_error "missing argument to $ac_option"
252b5132 1227fi
252b5132 1228
81ecdfbb
RW
1229if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1234 esac
81ecdfbb 1235fi
252b5132 1236
81ecdfbb
RW
1237# Check all directory arguments for consistency.
1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
252b5132 1242do
81ecdfbb
RW
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
42ecbf5e 1251 case $ac_val in
81ecdfbb
RW
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1254 esac
81ecdfbb 1255 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1256done
1257
42ecbf5e
DJ
1258# There might be people who depend on the old broken behavior: `$host'
1259# used to hold the argument of --host etc.
1260# FIXME: To remove some day.
1261build=$build_alias
1262host=$host_alias
1263target=$target_alias
1264
1265# FIXME: To remove some day.
1266if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
81ecdfbb 1269 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1270 If a cross compiler is detected then cross compile mode will be used." >&2
1271 elif test "x$build_alias" != "x$host_alias"; then
1272 cross_compiling=yes
1273 fi
1274fi
e5a52504 1275
42ecbf5e
DJ
1276ac_tool_prefix=
1277test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279test "$silent" = yes && exec 6>/dev/null
252b5132 1280
252b5132 1281
81ecdfbb
RW
1282ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283ac_ls_di=`ls -di .` &&
1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285 as_fn_error "working directory cannot be determined"
1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287 as_fn_error "pwd does not report name of working directory"
1288
1289
252b5132
RH
1290# Find the source files, if location was not specified.
1291if test -z "$srcdir"; then
1292 ac_srcdir_defaulted=yes
81ecdfbb
RW
1293 # Try the directory containing this script, then the parent directory.
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
1297 X"$as_myself" : 'X\(//\)$' \| \
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299$as_echo X"$as_myself" |
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)[^/].*/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)$/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\).*/{
1313 s//\1/
1314 q
1315 }
1316 s/.*/./; q'`
252b5132 1317 srcdir=$ac_confdir
81ecdfbb 1318 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1319 srcdir=..
1320 fi
1321else
1322 ac_srcdir_defaulted=no
1323fi
81ecdfbb
RW
1324if test ! -r "$srcdir/$ac_unique_file"; then
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327fi
1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329ac_abs_confdir=`(
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331 pwd)`
1332# When building in place, set srcdir=.
1333if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 srcdir=.
1335fi
1336# Remove unnecessary trailing slashes from srcdir.
1337# Double slashes in file names in object file debugging info
1338# mess up M-x gdb in Emacs.
1339case $srcdir in
1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341esac
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
252b5132 1348
42ecbf5e
DJ
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
d8bd95ef 1356\`configure' configures ld 2.26.51 to adapt to many kinds of systems.
252b5132 1357
42ecbf5e 1358Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1359
42ecbf5e
DJ
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1362
42ecbf5e 1363Defaults for the options are specified in brackets.
ac48eca1 1364
42ecbf5e
DJ
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
42ecbf5e
DJ
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1378 [$ac_default_prefix]
42ecbf5e 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1380 [PREFIX]
ac48eca1 1381
42ecbf5e
DJ
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
ac48eca1 1386
42ecbf5e 1387For better control, use the options below.
ac48eca1 1388
42ecbf5e 1389Fine tuning of the installation directories:
81ecdfbb
RW
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1409_ACEOF
ac48eca1 1410
42ecbf5e 1411 cat <<\_ACEOF
252b5132 1412
42ecbf5e
DJ
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1417
42ecbf5e
DJ
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422_ACEOF
252b5132 1423fi
252b5132 1424
42ecbf5e 1425if test -n "$ac_init_help"; then
2e98a7bd 1426 case $ac_init_help in
d8bd95ef 1427 short | recursive ) echo "Configuration of ld 2.26.51:";;
2e98a7bd 1428 esac
42ecbf5e 1429 cat <<\_ACEOF
e5a52504 1430
42ecbf5e 1431Optional Features:
81ecdfbb 1432 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --disable-dependency-tracking speeds up one-time build
1436 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
b879806f
AM
1439 --enable-shared[=PKGS] build shared libraries [default=yes]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-plugins Enable support for plugins
1445 --disable-largefile omit support for large files
ce2cded5
L
1446 --enable-targets alternative target configurations
1447 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1448 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1449 --enable-got=<type> GOT handling scheme (target, single, negative,
1450 multigot)
4894d80b
L
1451 --enable-compressed-debug-sections={all,ld,none}
1452 compress debug sections by default]
647e4d46 1453 --enable-relro enable -z relro in ELF linker by default
ce2cded5
L
1454 --enable-werror treat compile warnings as errors
1455 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1456 --disable-nls do not use Native Language Support
26e3a0c9 1457 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1458
1459Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1465 --with-lib-path=dir1:dir2... set default LIB_PATH
1466 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1467
1468Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
81ecdfbb
RW
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
3cb62297
L
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
b879806f 1478 CPP C preprocessor
3cb62297 1479 CXXCPP C++ preprocessor
81ecdfbb
RW
1480 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1481 the first program found out of: `bison -y', `byacc', `yacc'.
1482 YFLAGS The list of arguments that will be passed by default to $YACC.
1483 This script will default YFLAGS to the empty string to avoid a
1484 default value of `-d' given by some make applications.
42ecbf5e
DJ
1485
1486Use these variables to override the choices made by `configure' or to help
1487it to find libraries and programs with nonstandard names/locations.
1488
81ecdfbb 1489Report bugs to the package provider.
42ecbf5e 1490_ACEOF
81ecdfbb 1491ac_status=$?
42ecbf5e
DJ
1492fi
1493
1494if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
42ecbf5e 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
42ecbf5e
DJ
1500 ac_builddir=.
1501
81ecdfbb
RW
1502case "$ac_dir" in
1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504*)
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512esac
1513ac_abs_top_builddir=$ac_pwd
1514ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515# for backward compatibility:
1516ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1517
1518case $srcdir in
81ecdfbb 1519 .) # We are building in place.
42ecbf5e 1520 ac_srcdir=.
81ecdfbb
RW
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1524 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1531esac
81ecdfbb
RW
1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1542 else
81ecdfbb
RW
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1546 done
a2d91340
AC
1547fi
1548
81ecdfbb 1549test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1550if $ac_init_version; then
1551 cat <<\_ACEOF
d8bd95ef 1552ld configure 2.26.51
81ecdfbb 1553generated by GNU Autoconf 2.64
a2d91340 1554
81ecdfbb 1555Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1556This configure script is free software; the Free Software Foundation
1557gives unlimited permission to copy, distribute and modify it.
1558_ACEOF
81ecdfbb 1559 exit
42ecbf5e 1560fi
a2d91340 1561
81ecdfbb
RW
1562## ------------------------ ##
1563## Autoconf initialization. ##
1564## ------------------------ ##
a2d91340 1565
81ecdfbb
RW
1566# ac_fn_c_try_compile LINENO
1567# --------------------------
1568# Try to compile conftest.$ac_ext, and return whether this succeeded.
1569ac_fn_c_try_compile ()
1570{
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577esac
1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579$as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593else
1594 $as_echo "$as_me: failed program was:" >&5
1595sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1596
81ecdfbb
RW
1597 ac_retval=1
1598fi
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
1601
1602} # ac_fn_c_try_compile
1603
1604# ac_fn_c_try_link LINENO
1605# -----------------------
1606# Try to link conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_link ()
42ecbf5e 1608{
81ecdfbb
RW
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 $as_test_x conftest$ac_exeext
1632 }; then :
1633 ac_retval=0
1634else
1635 $as_echo "$as_me: failed program was:" >&5
1636sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1637
81ecdfbb
RW
1638 ac_retval=1
1639fi
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
42ecbf5e 1647
81ecdfbb 1648} # ac_fn_c_try_link
42ecbf5e 1649
b879806f
AM
1650# ac_fn_cxx_try_compile LINENO
1651# ----------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_cxx_try_compile ()
81ecdfbb
RW
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1656 rm -f conftest.$ac_objext
1657 if { { ac_try="$ac_compile"
81ecdfbb
RW
1658case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
b879806f 1664 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1672 test $ac_status = 0; } && {
1673 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1674 test ! -s conftest.err
b879806f 1675 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1676 ac_retval=0
1677else
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
b879806f 1681 ac_retval=1
81ecdfbb
RW
1682fi
1683 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1684 return $ac_retval
1685
b879806f 1686} # ac_fn_cxx_try_compile
81ecdfbb 1687
b879806f
AM
1688# ac_fn_c_try_cpp LINENO
1689# ----------------------
1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_cpp ()
3cb62297
L
1692{
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1694 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
b879806f 1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1709 test $ac_status = 0; } >/dev/null && {
1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1711 test ! -s conftest.err
b879806f 1712 }; then :
3cb62297
L
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
b879806f 1718 ac_retval=1
3cb62297
L
1719fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
b879806f 1723} # ac_fn_c_try_cpp
3cb62297 1724
81ecdfbb
RW
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737 $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743 # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h. */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752 ac_header_compiler=yes
1753else
1754 ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768 ac_header_preproc=yes
1769else
1770 ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So? What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778 yes:no: )
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 ;;
1784 no:yes:* )
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796esac
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801else
1802 eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
1810} # ac_fn_c_check_header_mongrel
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_link") 2>&5
1827 ac_status=$?
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830 { { case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_try") 2>&5
1837 ac_status=$?
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; }; }; then :
1840 ac_retval=0
1841else
1842 $as_echo "$as_me: program exited with status $ac_status" >&5
1843 $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=$ac_status
1847fi
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 return $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855# -------------------------------------------------------
1856# Tests whether HEADER exists and can be compiled using the include files in
1857# INCLUDES, setting the cache variable VAR accordingly.
1858ac_fn_c_check_header_compile ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1865else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h. */
1868$4
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_compile "$LINENO"; then :
1872 eval "$3=yes"
1873else
1874 eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882
1883} # ac_fn_c_check_header_compile
1884
1885# ac_fn_c_check_func LINENO FUNC VAR
1886# ----------------------------------
1887# Tests whether FUNC exists, setting the cache variable VAR accordingly
1888ac_fn_c_check_func ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895else
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h. */
1898/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1900#define $2 innocuous_$2
1901
1902/* System header to define __stub macros and hopefully few prototypes,
1903 which can conflict with char $2 (); below.
1904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1905 <limits.h> exists even on freestanding compilers. */
1906
1907#ifdef __STDC__
1908# include <limits.h>
1909#else
1910# include <assert.h>
1911#endif
1912
1913#undef $2
1914
1915/* Override any GCC internal prototype to avoid an error.
1916 Use char because int might match the return type of a GCC
1917 builtin and then its argument prototype would still apply. */
1918#ifdef __cplusplus
1919extern "C"
1920#endif
1921char $2 ();
1922/* The GNU C library defines this for functions which it implements
1923 to always fail with ENOSYS. Some functions are actually named
1924 something starting with __ and the normal name is an alias. */
1925#if defined __stub_$2 || defined __stub___$2
1926choke me
1927#endif
1928
1929int
1930main ()
1931{
1932return $2 ();
1933 ;
1934 return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_link "$LINENO"; then :
1938 eval "$3=yes"
1939else
1940 eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext \
1943 conftest$ac_exeext conftest.$ac_ext
1944fi
1945eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947$as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950} # ac_fn_c_check_func
1951
3cb62297
L
1952# ac_fn_cxx_try_cpp LINENO
1953# ------------------------
1954# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955ac_fn_cxx_try_cpp ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_cpp conftest.$ac_ext"
1959case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962esac
1963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964$as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1966 ac_status=$?
1967 if test -s conftest.err; then
1968 grep -v '^ *+' conftest.err >conftest.er1
1969 cat conftest.er1 >&5
1970 mv -f conftest.er1 conftest.err
1971 fi
1972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973 test $ac_status = 0; } >/dev/null && {
1974 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1975 test ! -s conftest.err
1976 }; then :
1977 ac_retval=0
1978else
1979 $as_echo "$as_me: failed program was:" >&5
1980sed 's/^/| /' conftest.$ac_ext >&5
1981
1982 ac_retval=1
1983fi
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 return $ac_retval
1986
1987} # ac_fn_cxx_try_cpp
1988
1989# ac_fn_cxx_try_link LINENO
1990# -------------------------
1991# Try to link conftest.$ac_ext, and return whether this succeeded.
1992ac_fn_cxx_try_link ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 rm -f conftest.$ac_objext conftest$ac_exeext
1996 if { { ac_try="$ac_link"
1997case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000esac
2001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002$as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_link") 2>conftest.err
2004 ac_status=$?
2005 if test -s conftest.err; then
2006 grep -v '^ *+' conftest.err >conftest.er1
2007 cat conftest.er1 >&5
2008 mv -f conftest.er1 conftest.err
2009 fi
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; } && {
2012 test -z "$ac_cxx_werror_flag" ||
2013 test ! -s conftest.err
2014 } && test -s conftest$ac_exeext && {
2015 test "$cross_compiling" = yes ||
2016 $as_test_x conftest$ac_exeext
2017 }; then :
2018 ac_retval=0
2019else
2020 $as_echo "$as_me: failed program was:" >&5
2021sed 's/^/| /' conftest.$ac_ext >&5
2022
2023 ac_retval=1
2024fi
2025 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2026 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2027 # interfere with the next link command; also delete a directory that is
2028 # left behind by Apple's compiler. We do this before executing the actions.
2029 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2030 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 return $ac_retval
2032
2033} # ac_fn_cxx_try_link
2034
81ecdfbb
RW
2035# ac_fn_c_check_decl LINENO SYMBOL VAR
2036# ------------------------------------
2037# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2038ac_fn_c_check_decl ()
2039{
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2041 as_decl_name=`echo $2|sed 's/ *(.*//'`
2042 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2044$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2045if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2046 $as_echo_n "(cached) " >&6
2047else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050$4
2051int
2052main ()
2053{
360cfc9c
AM
2054#ifndef $as_decl_name
2055#ifdef __cplusplus
2056 (void) $as_decl_use;
2057#else
2058 (void) $as_decl_name;
2059#endif
81ecdfbb
RW
2060#endif
2061
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$3=yes"
2068else
2069 eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077
2078} # ac_fn_c_check_decl
2079
2080# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081# --------------------------------------------
2082# Tries to find the compile-time value of EXPR in a program that includes
2083# INCLUDES, setting VAR accordingly. Returns whether the value could be
2084# computed
2085ac_fn_c_compute_int ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096static int test_array [1 - 2 * !(($2) >= 0)];
2097test_array [0] = 0
2098
2099 ;
2100 return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107/* end confdefs.h. */
2108$4
2109int
2110main ()
2111{
2112static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113test_array [0] = 0
2114
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2121else
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2124 ac_lo= ac_hi=
2125 break
2126 fi
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128fi
2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 done
2131else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) < 0)];
2139test_array [0] = 0
2140
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=-1 ac_mid=-1
2147 while :; do
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149/* end confdefs.h. */
2150$4
2151int
2152main ()
2153{
2154static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155test_array [0] = 0
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2163else
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2166 ac_lo= ac_hi=
2167 break
2168 fi
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173else
2174 ac_lo= ac_hi=
2175fi
2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179# Binary search between lo and hi bounds.
2180while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h. */
2184$4
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189test_array [0] = 0
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid
2197else
2198 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201done
2202case $ac_lo in #((
2203?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204'') ac_retval=1 ;;
2205esac
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210static long int longval () { return $2; }
2211static unsigned long int ulongval () { return $2; }
2212#include <stdio.h>
2213#include <stdlib.h>
2214int
2215main ()
2216{
2217
2218 FILE *f = fopen ("conftest.val", "w");
2219 if (! f)
2220 return 1;
2221 if (($2) < 0)
2222 {
2223 long int i = longval ();
2224 if (i != ($2))
2225 return 1;
2226 fprintf (f, "%ld", i);
2227 }
2228 else
2229 {
2230 unsigned long int i = ulongval ();
2231 if (i != ($2))
2232 return 1;
2233 fprintf (f, "%lu", i);
2234 }
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2238
2239 ;
2240 return 0;
2241}
2242_ACEOF
2243if ac_fn_c_try_run "$LINENO"; then :
2244 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245else
2246 ac_retval=1
2247fi
2248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249 conftest.$ac_objext conftest.beam conftest.$ac_ext
2250rm -f conftest.val
2251
2252 fi
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 return $ac_retval
2255
2256} # ac_fn_c_compute_int
2257cat >config.log <<_ACEOF
2258This file contains any messages produced by compilers while
2259running configure, to aid debugging if configure makes a mistake.
2260
d8bd95ef 2261It was created by ld $as_me 2.26.51, which was
81ecdfbb
RW
2262generated by GNU Autoconf 2.64. Invocation command line was
2263
2264 $ $0 $@
2265
2266_ACEOF
2267exec 5>>config.log
2268{
2269cat <<_ASUNAME
2270## --------- ##
2271## Platform. ##
2272## --------- ##
2273
2274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2287/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291_ASUNAME
2292
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2298 $as_echo "PATH: $as_dir"
2299 done
2300IFS=$as_save_IFS
252b5132 2301
42ecbf5e 2302} >&5
5d64ca4e 2303
42ecbf5e 2304cat >&5 <<_ACEOF
5d64ca4e 2305
5d64ca4e 2306
42ecbf5e
DJ
2307## ----------- ##
2308## Core tests. ##
2309## ----------- ##
5d64ca4e 2310
42ecbf5e 2311_ACEOF
2469cfa2 2312
42ecbf5e
DJ
2313
2314# Keep a trace of the command line.
2315# Strip out --no-create and --no-recursion so they do not pile up.
2316# Strip out --silent because we don't want to record it for future runs.
2317# Also quote any args containing shell meta-characters.
2318# Make two passes to allow for proper duplicate-argument suppression.
2319ac_configure_args=
2320ac_configure_args0=
2321ac_configure_args1=
42ecbf5e
DJ
2322ac_must_keep_next=false
2323for ac_pass in 1 2
2324do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
81ecdfbb
RW
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2334 esac
2335 case $ac_pass in
81ecdfbb 2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2337 2)
81ecdfbb 2338 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
81ecdfbb 2354 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2355 ;;
2356 esac
2357 done
2358done
81ecdfbb
RW
2359{ ac_configure_args0=; unset ac_configure_args0;}
2360{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2361
2362# When interrupted or exit'd, cleanup temporary files, and complete
2363# config.log. We remove comments because anyway the quotes in there
2364# would cause problems or look ugly.
81ecdfbb
RW
2365# WARNING: Use '\'' to represent an apostrophe within the trap.
2366# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2367trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 cat <<\_ASBOX
2373## ---------------- ##
2374## Cache variables. ##
2375## ---------------- ##
2376_ASBOX
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2379(
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
2385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
2390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2391 *) { eval $ac_var=; unset $ac_var;} ;;
2392 esac ;;
2393 esac
2394 done
42ecbf5e 2395 (set) 2>&1 |
81ecdfbb
RW
2396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
42ecbf5e 2398 sed -n \
81ecdfbb
RW
2399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
42ecbf5e 2402 *)
81ecdfbb 2403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2404 ;;
81ecdfbb
RW
2405 esac |
2406 sort
2407)
42ecbf5e
DJ
2408 echo
2409
2410 cat <<\_ASBOX
2411## ----------------- ##
2412## Output variables. ##
2413## ----------------- ##
2414_ASBOX
2415 echo
2416 for ac_var in $ac_subst_vars
2417 do
81ecdfbb
RW
2418 eval ac_val=\$$ac_var
2419 case $ac_val in
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 esac
2422 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2423 done | sort
2424 echo
2425
2426 if test -n "$ac_subst_files"; then
2427 cat <<\_ASBOX
81ecdfbb
RW
2428## ------------------- ##
2429## File substitutions. ##
2430## ------------------- ##
42ecbf5e
DJ
2431_ASBOX
2432 echo
2433 for ac_var in $ac_subst_files
2434 do
81ecdfbb
RW
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2440 done | sort
2441 echo
2442 fi
2443
2444 if test -s confdefs.h; then
2445 cat <<\_ASBOX
2446## ----------- ##
2447## confdefs.h. ##
2448## ----------- ##
2449_ASBOX
2450 echo
81ecdfbb 2451 cat confdefs.h
42ecbf5e
DJ
2452 echo
2453 fi
2454 test "$ac_signal" != 0 &&
81ecdfbb
RW
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2457 } >&5
81ecdfbb
RW
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2460 exit $exit_status
81ecdfbb 2461' 0
42ecbf5e 2462for ac_signal in 1 2 13 15; do
81ecdfbb 2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2464done
2465ac_signal=0
2466
2467# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2468rm -f -r conftest* confdefs.h
2469
2470$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2471
2472# Predefined preprocessor variables.
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_NAME "$PACKAGE_NAME"
2476_ACEOF
2477
42ecbf5e
DJ
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480_ACEOF
2481
42ecbf5e
DJ
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_VERSION "$PACKAGE_VERSION"
2484_ACEOF
2485
42ecbf5e
DJ
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_STRING "$PACKAGE_STRING"
2488_ACEOF
2489
42ecbf5e
DJ
2490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492_ACEOF
2493
81ecdfbb
RW
2494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_URL "$PACKAGE_URL"
2496_ACEOF
2497
42ecbf5e
DJ
2498
2499# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2500# Prefer an explicitly selected file to automatically selected ones.
2501ac_site_file1=NONE
2502ac_site_file2=NONE
2503if test -n "$CONFIG_SITE"; then
2504 ac_site_file1=$CONFIG_SITE
2505elif test "x$prefix" != xNONE; then
2506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
2508else
2509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
2511fi
2512for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2513do
2514 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2515 if test -r "$ac_site_file"; then
81ecdfbb
RW
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2517$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2518 sed 's/^/| /' "$ac_site_file" >&5
2519 . "$ac_site_file"
2520 fi
2521done
2522
2523if test -r "$cache_file"; then
2524 # Some versions of bash will fail to source /dev/null (special
2525 # files actually), so we avoid doing that.
2526 if test -f "$cache_file"; then
81ecdfbb
RW
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2528$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2529 case $cache_file in
81ecdfbb
RW
2530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
42ecbf5e
DJ
2532 esac
2533 fi
2534else
81ecdfbb
RW
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2536$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2537 >$cache_file
2538fi
2539
2540# Check that the precious variables saved in the cache have kept the same
2541# value.
2542ac_cache_corrupted=false
81ecdfbb 2543for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2544 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2545 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2546 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2547 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2548 case $ac_old_set,$ac_new_set in
2549 set,)
81ecdfbb
RW
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2551$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2552 ac_cache_corrupted=: ;;
2553 ,set)
81ecdfbb
RW
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2555$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2556 ac_cache_corrupted=: ;;
2557 ,);;
2558 *)
2559 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2560 # differences in whitespace do not lead to failure.
2561 ac_old_val_w=`echo x $ac_old_val`
2562 ac_new_val_w=`echo x $ac_new_val`
2563 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2565$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2566 ac_cache_corrupted=:
2567 else
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2569$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2570 eval $ac_var=\$ac_old_val
2571 fi
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2573$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2575$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2576 fi;;
2577 esac
2578 # Pass precious variables to config.status.
2579 if test "$ac_new_set" = set; then
2580 case $ac_new_val in
81ecdfbb 2581 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2582 *) ac_arg=$ac_var=$ac_new_val ;;
2583 esac
2584 case " $ac_configure_args " in
2585 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2586 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2587 esac
2588 fi
2589done
2590if $ac_cache_corrupted; then
81ecdfbb
RW
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2594$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2595 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2596fi
81ecdfbb
RW
2597## -------------------- ##
2598## Main body of script. ##
2599## -------------------- ##
42ecbf5e
DJ
2600
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607
2608
42ecbf5e 2609
da594c4a 2610
42ecbf5e
DJ
2611
2612
2613ac_aux_dir=
81ecdfbb
RW
2614for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2615 for ac_t in install-sh install.sh shtool; do
2616 if test -f "$ac_dir/$ac_t"; then
2617 ac_aux_dir=$ac_dir
2618 ac_install_sh="$ac_aux_dir/$ac_t -c"
2619 break 2
2620 fi
2621 done
42ecbf5e
DJ
2622done
2623if test -z "$ac_aux_dir"; then
81ecdfbb 2624 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2625fi
81ecdfbb
RW
2626
2627# These three variables are undocumented and unsupported,
2628# and are intended to be withdrawn in a future Autoconf release.
2629# They can cause serious problems if a builder's source tree is in a directory
2630# whose full name contains unusual characters.
2631ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634
42ecbf5e
DJ
2635
2636# Make sure we can run config.sub.
81ecdfbb
RW
2637$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2638 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2641$as_echo_n "checking build system type... " >&6; }
2642if test "${ac_cv_build+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644else
2645 ac_build_alias=$build_alias
2646test "x$ac_build_alias" = x &&
2647 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2648test "x$ac_build_alias" = x &&
2649 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2650ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2651 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2652
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2655$as_echo "$ac_cv_build" >&6; }
2656case $ac_cv_build in
2657*-*-*) ;;
2658*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2659esac
42ecbf5e 2660build=$ac_cv_build
81ecdfbb
RW
2661ac_save_IFS=$IFS; IFS='-'
2662set x $ac_cv_build
2663shift
2664build_cpu=$1
2665build_vendor=$2
2666shift; shift
2667# Remember, the first character of IFS is used to create $*,
2668# except with old shells:
2669build_os=$*
2670IFS=$ac_save_IFS
2671case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2672
2673
81ecdfbb
RW
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2675$as_echo_n "checking host system type... " >&6; }
2676if test "${ac_cv_host+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678else
2679 if test "x$host_alias" = x; then
2680 ac_cv_host=$ac_cv_build
42ecbf5e 2681else
81ecdfbb
RW
2682 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2683 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2684fi
42ecbf5e
DJ
2685
2686fi
81ecdfbb
RW
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2688$as_echo "$ac_cv_host" >&6; }
2689case $ac_cv_host in
2690*-*-*) ;;
2691*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2692esac
42ecbf5e 2693host=$ac_cv_host
81ecdfbb
RW
2694ac_save_IFS=$IFS; IFS='-'
2695set x $ac_cv_host
2696shift
2697host_cpu=$1
2698host_vendor=$2
2699shift; shift
2700# Remember, the first character of IFS is used to create $*,
2701# except with old shells:
2702host_os=$*
2703IFS=$ac_save_IFS
2704case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2705
2706
81ecdfbb
RW
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2708$as_echo_n "checking target system type... " >&6; }
2709if test "${ac_cv_target+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
42ecbf5e 2711else
81ecdfbb
RW
2712 if test "x$target_alias" = x; then
2713 ac_cv_target=$ac_cv_host
2714else
2715 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2716 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2717fi
42ecbf5e
DJ
2718
2719fi
81ecdfbb
RW
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2721$as_echo "$ac_cv_target" >&6; }
2722case $ac_cv_target in
2723*-*-*) ;;
2724*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2725esac
42ecbf5e 2726target=$ac_cv_target
81ecdfbb
RW
2727ac_save_IFS=$IFS; IFS='-'
2728set x $ac_cv_target
2729shift
2730target_cpu=$1
2731target_vendor=$2
2732shift; shift
2733# Remember, the first character of IFS is used to create $*,
2734# except with old shells:
2735target_os=$*
2736IFS=$ac_save_IFS
2737case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2738
2739
2740# The aliases save the names the user supplied, while $host etc.
2741# will get canonicalized.
2742test -n "$target_alias" &&
2743 test "$program_prefix$program_suffix$program_transform_name" = \
2744 NONENONEs,x,x, &&
2745 program_prefix=${target_alias}-
02ecc8e9 2746
42ecbf5e
DJ
2747ac_ext=c
2748ac_cpp='$CPP $CPPFLAGS'
2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752if test -n "$ac_tool_prefix"; then
2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2754set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756$as_echo_n "checking for $ac_word... " >&6; }
2757if test "${ac_cv_prog_CC+set}" = set; then :
2758 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2772 break 2
2773 fi
2774done
81ecdfbb
RW
2775 done
2776IFS=$as_save_IFS
42ecbf5e
DJ
2777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
81ecdfbb
RW
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783$as_echo "$CC" >&6; }
42ecbf5e 2784else
81ecdfbb
RW
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786$as_echo "no" >&6; }
42ecbf5e
DJ
2787fi
2788
81ecdfbb 2789
42ecbf5e
DJ
2790fi
2791if test -z "$ac_cv_prog_CC"; then
2792 ac_ct_CC=$CC
2793 # Extract the first word of "gcc", so it can be a program name with args.
2794set dummy gcc; ac_word=$2
81ecdfbb
RW
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2798 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2799else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2810 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2812 break 2
2813 fi
2814done
81ecdfbb
RW
2815 done
2816IFS=$as_save_IFS
42ecbf5e
DJ
2817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2824else
81ecdfbb
RW
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
42ecbf5e
DJ
2827fi
2828
81ecdfbb
RW
2829 if test "x$ac_ct_CC" = x; then
2830 CC=""
2831 else
2832 case $cross_compiling:$ac_tool_warned in
2833yes:)
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2836ac_tool_warned=yes ;;
2837esac
2838 CC=$ac_ct_CC
2839 fi
42ecbf5e
DJ
2840else
2841 CC="$ac_cv_prog_CC"
2842fi
2843
2844if test -z "$CC"; then
81ecdfbb
RW
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2847set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849$as_echo_n "checking for $ac_word... " >&6; }
2850if test "${ac_cv_prog_CC+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2852else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855else
2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857for as_dir in $PATH
2858do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2865 break 2
2866 fi
2867done
81ecdfbb
RW
2868 done
2869IFS=$as_save_IFS
42ecbf5e
DJ
2870
2871fi
2872fi
2873CC=$ac_cv_prog_CC
2874if test -n "$CC"; then
81ecdfbb
RW
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876$as_echo "$CC" >&6; }
42ecbf5e 2877else
81ecdfbb
RW
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879$as_echo "no" >&6; }
42ecbf5e
DJ
2880fi
2881
42ecbf5e 2882
81ecdfbb 2883 fi
42ecbf5e
DJ
2884fi
2885if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887set dummy cc; ac_word=$2
81ecdfbb
RW
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889$as_echo_n "checking for $ac_word... " >&6; }
2890if test "${ac_cv_prog_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2892else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895else
2896 ac_prog_rejected=no
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2906 continue
2907 fi
2908 ac_cv_prog_CC="cc"
81ecdfbb 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2910 break 2
2911 fi
2912done
81ecdfbb
RW
2913 done
2914IFS=$as_save_IFS
42ecbf5e
DJ
2915
2916if test $ac_prog_rejected = yes; then
2917 # We found a bogon in the path, so make sure we never use it.
2918 set dummy $ac_cv_prog_CC
2919 shift
2920 if test $# != 0; then
2921 # We chose a different compiler from the bogus one.
2922 # However, it has the same basename, so the bogon will be chosen
2923 # first if we set CC to just the basename; use the full file name.
2924 shift
2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 fi
2927fi
2928fi
2929fi
2930CC=$ac_cv_prog_CC
2931if test -n "$CC"; then
81ecdfbb
RW
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933$as_echo "$CC" >&6; }
42ecbf5e 2934else
81ecdfbb
RW
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
42ecbf5e
DJ
2937fi
2938
81ecdfbb 2939
42ecbf5e
DJ
2940fi
2941if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
81ecdfbb 2943 for ac_prog in cl.exe
42ecbf5e
DJ
2944 do
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948$as_echo_n "checking for $ac_word... " >&6; }
2949if test "${ac_cv_prog_CC+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2951else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2964 break 2
2965 fi
2966done
81ecdfbb
RW
2967 done
2968IFS=$as_save_IFS
42ecbf5e
DJ
2969
2970fi
2971fi
2972CC=$ac_cv_prog_CC
2973if test -n "$CC"; then
81ecdfbb
RW
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975$as_echo "$CC" >&6; }
42ecbf5e 2976else
81ecdfbb
RW
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
42ecbf5e
DJ
2979fi
2980
81ecdfbb 2981
42ecbf5e
DJ
2982 test -n "$CC" && break
2983 done
2984fi
2985if test -z "$CC"; then
2986 ac_ct_CC=$CC
81ecdfbb 2987 for ac_prog in cl.exe
42ecbf5e
DJ
2988do
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992$as_echo_n "checking for $ac_word... " >&6; }
2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2995else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998else
2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3006 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3008 break 2
3009 fi
3010done
81ecdfbb
RW
3011 done
3012IFS=$as_save_IFS
42ecbf5e
DJ
3013
3014fi
3015fi
3016ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3020else
81ecdfbb
RW
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022$as_echo "no" >&6; }
42ecbf5e
DJ
3023fi
3024
81ecdfbb 3025
42ecbf5e
DJ
3026 test -n "$ac_ct_CC" && break
3027done
3028
81ecdfbb
RW
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033yes:)
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036ac_tool_warned=yes ;;
3037esac
3038 CC=$ac_ct_CC
3039 fi
42ecbf5e
DJ
3040fi
3041
3042fi
3043
3044
81ecdfbb
RW
3045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047as_fn_error "no acceptable C compiler found in \$PATH
3048See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3049
3050# Provide some information about the compiler.
81ecdfbb
RW
3051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3052set X $ac_compile
3053ac_compiler=$2
3054for ac_option in --version -v -V -qversion; do
3055 { { ac_try="$ac_compiler $ac_option >&5"
3056case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061$as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3063 ac_status=$?
81ecdfbb
RW
3064 if test -s conftest.err; then
3065 sed '10a\
3066... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3069 rm -f conftest.er1 conftest.err
3070 fi
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073done
42ecbf5e 3074
81ecdfbb 3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086ac_clean_files_save=$ac_clean_files
81ecdfbb 3087ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3088# Try to create an executable without -o first, disregard a.out.
3089# It will help us diagnose broken compilers, and finding out an intuition
3090# of exeext.
81ecdfbb
RW
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3092$as_echo_n "checking for C compiler default output file name... " >&6; }
3093ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094
3095# The possible output files:
3096ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097
3098ac_rmfiles=
3099for ac_file in $ac_files
3100do
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 esac
3105done
3106rm -f $ac_rmfiles
3107
3108if { { ac_try="$ac_link_default"
3109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_link_default") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3121# in a Makefile. We should not override ac_cv_exeext if it was cached,
3122# so that the user can short-circuit this test for compilers unknown to
3123# Autoconf.
3124for ac_file in $ac_files ''
42ecbf5e
DJ
3125do
3126 test -f "$ac_file" || continue
3127 case $ac_file in
81ecdfbb 3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3129 ;;
3130 [ab].out )
3131 # We found the default executable, but exeext='' is most
3132 # certainly right.
3133 break;;
3134 *.* )
81ecdfbb
RW
3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3136 then :; else
3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3138 fi
3139 # We set ac_cv_exeext here because the later test for it is not
3140 # safe: cross compilers may not add the suffix if given an `-o'
3141 # argument, so we may need to know it at that point already.
3142 # Even if this section looks crufty: it has the advantage of
3143 # actually working.
42ecbf5e
DJ
3144 break;;
3145 * )
3146 break;;
3147 esac
3148done
81ecdfbb
RW
3149test "$ac_cv_exeext" = no && ac_cv_exeext=
3150
42ecbf5e 3151else
81ecdfbb
RW
3152 ac_file=''
3153fi
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155$as_echo "$ac_file" >&6; }
3156if test -z "$ac_file"; then :
3157 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
81ecdfbb
RW
3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162{ as_fn_set_status 77
3163as_fn_error "C compiler cannot create executables
3164See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3165fi
42ecbf5e 3166ac_exeext=$ac_cv_exeext
42ecbf5e 3167
81ecdfbb 3168# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3169# the compiler is broken, or we cross compile.
81ecdfbb
RW
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3171$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3172# If not cross compiling, check that we can run a simple program.
3173if test "$cross_compiling" != yes; then
3174 if { ac_try='./$ac_file'
81ecdfbb
RW
3175 { { case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3180$as_echo "$ac_try_echo"; } >&5
3181 (eval "$ac_try") 2>&5
42ecbf5e 3182 ac_status=$?
81ecdfbb
RW
3183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3184 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3185 cross_compiling=no
3186 else
3187 if test "$cross_compiling" = maybe; then
3188 cross_compiling=yes
3189 else
81ecdfbb
RW
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192as_fn_error "cannot run C compiled programs.
42ecbf5e 3193If you meant to cross compile, use \`--host'.
81ecdfbb 3194See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3195 fi
3196 fi
3197fi
81ecdfbb
RW
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199$as_echo "yes" >&6; }
42ecbf5e 3200
81ecdfbb 3201rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3202ac_clean_files=$ac_clean_files_save
81ecdfbb 3203# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3204# the compiler is broken, or we cross compile.
81ecdfbb
RW
3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3206$as_echo_n "checking whether we are cross compiling... " >&6; }
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3208$as_echo "$cross_compiling" >&6; }
3209
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211$as_echo_n "checking for suffix of executables... " >&6; }
3212if { { ac_try="$ac_link"
3213case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
42ecbf5e 3220 ac_status=$?
81ecdfbb
RW
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
42ecbf5e
DJ
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225# work properly (i.e., refer to `conftest.exe'), while it won't with
3226# `rm'.
3227for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
81ecdfbb 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3232 break;;
3233 * ) break;;
3234 esac
3235done
3236else
81ecdfbb
RW
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239as_fn_error "cannot compute suffix of executables: cannot compile and link
3240See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3241fi
42ecbf5e 3242rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3245
3246rm -f conftest.$ac_ext
3247EXEEXT=$ac_cv_exeext
3248ac_exeext=$EXEEXT
81ecdfbb
RW
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250$as_echo_n "checking for suffix of object files... " >&6; }
3251if test "${ac_cv_objext+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
42ecbf5e 3253else
81ecdfbb 3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3255/* end confdefs.h. */
3256
3257int
3258main ()
3259{
3260
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.o conftest.obj
81ecdfbb
RW
3266if { { ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compile") 2>&5
3274 ac_status=$?
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 for ac_file in conftest.o conftest.obj conftest.*; do
3278 test -f "$ac_file" || continue;
42ecbf5e 3279 case $ac_file in
81ecdfbb 3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3282 break;;
3283 esac
3284done
3285else
81ecdfbb 3286 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3287sed 's/^/| /' conftest.$ac_ext >&5
3288
81ecdfbb
RW
3289{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error "cannot compute suffix of object files: cannot compile
3292See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3293fi
42ecbf5e
DJ
3294rm -f conftest.$ac_cv_objext conftest.$ac_ext
3295fi
81ecdfbb
RW
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3297$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3298OBJEXT=$ac_cv_objext
3299ac_objext=$OBJEXT
81ecdfbb
RW
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3301$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3302if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
42ecbf5e 3304else
81ecdfbb 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311#ifndef __GNUC__
3312 choke me
3313#endif
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
81ecdfbb 3319if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3320 ac_compiler_gnu=yes
3321else
81ecdfbb 3322 ac_compiler_gnu=no
42ecbf5e 3323fi
81ecdfbb 3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3325ac_cv_c_compiler_gnu=$ac_compiler_gnu
3326
3327fi
81ecdfbb
RW
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3329$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3330if test $ac_compiler_gnu = yes; then
3331 GCC=yes
3332else
3333 GCC=
3334fi
42ecbf5e
DJ
3335ac_test_CFLAGS=${CFLAGS+set}
3336ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3338$as_echo_n "checking whether $CC accepts -g... " >&6; }
3339if test "${ac_cv_prog_cc_g+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3341else
3342 ac_save_c_werror_flag=$ac_c_werror_flag
3343 ac_c_werror_flag=yes
3344 ac_cv_prog_cc_g=no
3345 CFLAGS="-g"
3346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3347/* end confdefs.h. */
3348
3349int
3350main ()
3351{
3352
3353 ;
3354 return 0;
3355}
3356_ACEOF
81ecdfbb 3357if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3358 ac_cv_prog_cc_g=yes
3359else
81ecdfbb
RW
3360 CFLAGS=""
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h. */
3363
3364int
3365main ()
3366{
3367
3368 ;
3369 return 0;
3370}
3371_ACEOF
3372if ac_fn_c_try_compile "$LINENO"; then :
3373
3374else
3375 ac_c_werror_flag=$ac_save_c_werror_flag
3376 CFLAGS="-g"
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378/* end confdefs.h. */
3379
3380int
3381main ()
3382{
42ecbf5e 3383
81ecdfbb
RW
3384 ;
3385 return 0;
3386}
3387_ACEOF
3388if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_g=yes
3390fi
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392fi
3393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3394fi
81ecdfbb
RW
3395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3397fi
81ecdfbb
RW
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3399$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3400if test "$ac_test_CFLAGS" = set; then
3401 CFLAGS=$ac_save_CFLAGS
3402elif test $ac_cv_prog_cc_g = yes; then
3403 if test "$GCC" = yes; then
3404 CFLAGS="-g -O2"
3405 else
3406 CFLAGS="-g"
3407 fi
3408else
3409 if test "$GCC" = yes; then
3410 CFLAGS="-O2"
3411 else
3412 CFLAGS=
3413 fi
3414fi
81ecdfbb
RW
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3416$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3417if test "${ac_cv_prog_cc_c89+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
42ecbf5e 3419else
81ecdfbb 3420 ac_cv_prog_cc_c89=no
42ecbf5e 3421ac_save_CC=$CC
81ecdfbb 3422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3423/* end confdefs.h. */
3424#include <stdarg.h>
3425#include <stdio.h>
3426#include <sys/types.h>
3427#include <sys/stat.h>
3428/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429struct buf { int x; };
3430FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431static char *e (p, i)
3432 char **p;
3433 int i;
3434{
3435 return p[i];
3436}
3437static char *f (char * (*g) (char **, int), char **p, ...)
3438{
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445}
3446
3447/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3450 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3453 that's true only with -std. */
42ecbf5e
DJ
3454int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
81ecdfbb
RW
3456/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3458#define FOO(x) 'x'
3459int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
42ecbf5e
DJ
3461int test (int i, double x);
3462struct s1 {int (*f) (int a);};
3463struct s2 {int (*f) (double a);};
3464int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465int argc;
3466char **argv;
3467int
3468main ()
3469{
3470return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 ;
3472 return 0;
3473}
3474_ACEOF
81ecdfbb
RW
3475for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3477do
3478 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3481fi
81ecdfbb
RW
3482rm -f core conftest.err conftest.$ac_objext
3483 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3484done
81ecdfbb 3485rm -f conftest.$ac_ext
42ecbf5e
DJ
3486CC=$ac_save_CC
3487
3488fi
81ecdfbb
RW
3489# AC_CACHE_VAL
3490case "x$ac_cv_prog_cc_c89" in
3491 x)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3493$as_echo "none needed" >&6; } ;;
3494 xno)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3496$as_echo "unsupported" >&6; } ;;
42ecbf5e 3497 *)
81ecdfbb
RW
3498 CC="$CC $ac_cv_prog_cc_c89"
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3500$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3501esac
81ecdfbb 3502if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3503
42ecbf5e
DJ
3504fi
3505
42ecbf5e
DJ
3506ac_ext=c
3507ac_cpp='$CPP $CPPFLAGS'
3508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511
3512
81ecdfbb
RW
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3514$as_echo_n "checking for library containing strerror... " >&6; }
3515if test "${ac_cv_search_strerror+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3517else
3518 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3520/* end confdefs.h. */
3521
81ecdfbb
RW
3522/* Override any GCC internal prototype to avoid an error.
3523 Use char because int might match the return type of a GCC
3524 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3525#ifdef __cplusplus
3526extern "C"
3527#endif
42ecbf5e
DJ
3528char strerror ();
3529int
3530main ()
3531{
81ecdfbb 3532return strerror ();
42ecbf5e
DJ
3533 ;
3534 return 0;
3535}
3536_ACEOF
81ecdfbb
RW
3537for ac_lib in '' cposix; do
3538 if test -z "$ac_lib"; then
3539 ac_res="none required"
3540 else
3541 ac_res=-l$ac_lib
42ecbf5e 3542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3543 fi
3544 if ac_fn_c_try_link "$LINENO"; then :
3545 ac_cv_search_strerror=$ac_res
3546fi
3547rm -f core conftest.err conftest.$ac_objext \
3548 conftest$ac_exeext
3549 if test "${ac_cv_search_strerror+set}" = set; then :
3550 break
3551fi
3552done
3553if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3554
42ecbf5e 3555else
81ecdfbb 3556 ac_cv_search_strerror=no
42ecbf5e 3557fi
81ecdfbb 3558rm conftest.$ac_ext
42ecbf5e
DJ
3559LIBS=$ac_func_search_save_LIBS
3560fi
81ecdfbb
RW
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3562$as_echo "$ac_cv_search_strerror" >&6; }
3563ac_res=$ac_cv_search_strerror
3564if test "$ac_res" != no; then :
3565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3566
3567fi
e5a52504
MM
3568
3569
81ecdfbb
RW
3570am__api_version='1.11'
3571
e5a52504
MM
3572# Find a good install program. We prefer a C program (faster),
3573# so one script is as good as another. But avoid the broken or
3574# incompatible versions:
3575# SysV /etc/install, /usr/sbin/install
3576# SunOS /usr/etc/install
3577# IRIX /sbin/install
3578# AIX /bin/install
42ecbf5e 3579# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3583# OS/2's system install, which has a completely different semantic
e5a52504 3584# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3585# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3587$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3588if test -z "$INSTALL"; then
81ecdfbb
RW
3589if test "${ac_cv_path_install+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
e5a52504 3591else
42ecbf5e
DJ
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593for as_dir in $PATH
3594do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3597 # Account for people who put trailing slashes in PATH elements.
3598case $as_dir/ in #((
3599 ./ | .// | /[cC]/* | \
42ecbf5e 3600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3602 /usr/ucb/* ) ;;
3603 *)
3604 # OSF1 and SCO ODT 3.0 have their own names for install.
3605 # Don't use installbsd from OSF since it installs stuff as root
3606 # by default.
3607 for ac_prog in ginstall scoinst install; do
3608 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3609 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3610 if test $ac_prog = install &&
42ecbf5e 3611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3612 # AIX install. It has an incompatible calling convention.
3613 :
42ecbf5e
DJ
3614 elif test $ac_prog = install &&
3615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3616 # program-specific install script used by HP pwplus--don't use.
3617 :
252b5132 3618 else
58c85be7
RW
3619 rm -rf conftest.one conftest.two conftest.dir
3620 echo one > conftest.one
3621 echo two > conftest.two
3622 mkdir conftest.dir
3623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3624 test -s conftest.one && test -s conftest.two &&
3625 test -s conftest.dir/conftest.one &&
3626 test -s conftest.dir/conftest.two
3627 then
3628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3629 break 3
3630 fi
252b5132
RH
3631 fi
3632 fi
3633 done
42ecbf5e
DJ
3634 done
3635 ;;
3636esac
81ecdfbb
RW
3637
3638 done
3639IFS=$as_save_IFS
42ecbf5e 3640
58c85be7 3641rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3642
3643fi
3644 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3645 INSTALL=$ac_cv_path_install
252b5132 3646 else
58c85be7
RW
3647 # As a last resort, use the slow shell script. Don't cache a
3648 # value for INSTALL within a source directory, because that will
252b5132 3649 # break other packages using the cache if that directory is
58c85be7 3650 # removed, or if the value is a relative name.
42ecbf5e 3651 INSTALL=$ac_install_sh
252b5132
RH
3652 fi
3653fi
81ecdfbb
RW
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3655$as_echo "$INSTALL" >&6; }
252b5132
RH
3656
3657# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3658# It thinks the first close brace ends the variable substitution.
3659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3660
42ecbf5e 3661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3662
3663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3664
81ecdfbb
RW
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3666$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3667# Just in case
3668sleep 1
42ecbf5e 3669echo timestamp > conftest.file
81ecdfbb
RW
3670# Reject unsafe characters in $srcdir or the absolute working directory
3671# name. Accept space and tab only in the latter.
3672am_lf='
3673'
3674case `pwd` in
3675 *[\\\"\#\$\&\'\`$am_lf]*)
3676 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3677esac
3678case $srcdir in
3679 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3680 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3681esac
3682
252b5132
RH
3683# Do `set' in a subshell so we don't clobber the current shell's
3684# arguments. Must try -L first in case configure is actually a
3685# symlink; some systems play weird games with the mod time of symlinks
3686# (eg FreeBSD returns the mod time of the symlink's containing
3687# directory).
3688if (
81ecdfbb 3689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3690 if test "$*" = "X"; then
3691 # -L didn't work.
81ecdfbb 3692 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3693 fi
42ecbf5e
DJ
3694 rm -f conftest.file
3695 if test "$*" != "X $srcdir/configure conftest.file" \
3696 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3697
3698 # If neither matched, then we have a broken ls. This can happen
3699 # if, for instance, CONFIG_SHELL is bash and it inherits a
3700 # broken ls alias from the environment. This has actually
3701 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3702 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3703alias in your environment" "$LINENO" 5
252b5132
RH
3704 fi
3705
42ecbf5e 3706 test "$2" = conftest.file
252b5132
RH
3707 )
3708then
3709 # Ok.
3710 :
3711else
81ecdfbb
RW
3712 as_fn_error "newly created file is older than distributed files!
3713Check your system clock" "$LINENO" 5
252b5132 3714fi
81ecdfbb
RW
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716$as_echo "yes" >&6; }
252b5132 3717test "$program_prefix" != NONE &&
81ecdfbb 3718 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3719# Use a double $ so make ignores it.
3720test "$program_suffix" != NONE &&
81ecdfbb
RW
3721 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3722# Double any \ or $.
42ecbf5e 3723# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3724ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3725program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3726
3727# expand $ac_aux_dir to an absolute path
3728am_aux_dir=`cd $ac_aux_dir && pwd`
3729
81ecdfbb
RW
3730if test x"${MISSING+set}" != xset; then
3731 case $am_aux_dir in
3732 *\ * | *\ *)
3733 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3734 *)
3735 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3736 esac
3737fi
42ecbf5e
DJ
3738# Use eval to expand $SHELL
3739if eval "$MISSING --run true"; then
3740 am_missing_run="$MISSING --run "
3741else
3742 am_missing_run=
81ecdfbb
RW
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3744$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3745fi
3746
3747if test x"${install_sh}" != xset; then
3748 case $am_aux_dir in
3749 *\ * | *\ *)
3750 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3751 *)
3752 install_sh="\${SHELL} $am_aux_dir/install-sh"
3753 esac
3754fi
3755
3756# Installed binaries are usually stripped using `strip' when the user
3757# run `make install-strip'. However `strip' might not be the right
3758# tool to use in cross-compilation environments, therefore Automake
3759# will honor the `STRIP' environment variable to overrule this program.
3760if test "$cross_compiling" != no; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3763set dummy ${ac_tool_prefix}strip; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if test "${ac_cv_prog_STRIP+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768else
3769 if test -n "$STRIP"; then
3770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784 done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789STRIP=$ac_cv_prog_STRIP
3790if test -n "$STRIP"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3792$as_echo "$STRIP" >&6; }
3793else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798
3799fi
3800if test -z "$ac_cv_prog_STRIP"; then
3801 ac_ct_STRIP=$STRIP
3802 # Extract the first word of "strip", so it can be a program name with args.
3803set dummy strip; ac_word=$2
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805$as_echo_n "checking for $ac_word... " >&6; }
3806if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808else
3809 if test -n "$ac_ct_STRIP"; then
3810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3811else
3812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815 IFS=$as_save_IFS
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819 ac_cv_prog_ac_ct_STRIP="strip"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824 done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3830if test -n "$ac_ct_STRIP"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3832$as_echo "$ac_ct_STRIP" >&6; }
3833else
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836fi
3837
3838 if test "x$ac_ct_STRIP" = x; then
3839 STRIP=":"
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842yes:)
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845ac_tool_warned=yes ;;
3846esac
3847 STRIP=$ac_ct_STRIP
3848 fi
3849else
3850 STRIP="$ac_cv_prog_STRIP"
3851fi
3852
3853fi
3854INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3855
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3857$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3858if test -z "$MKDIR_P"; then
3859 if test "${ac_cv_path_mkdir+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3861else
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in mkdir gmkdir; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3870 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3871 'mkdir (GNU coreutils) '* | \
3872 'mkdir (coreutils) '* | \
3873 'mkdir (fileutils) '4.1*)
3874 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3875 break 3;;
3876 esac
3877 done
3878 done
42ecbf5e 3879 done
81ecdfbb
RW
3880IFS=$as_save_IFS
3881
3882fi
3883
3884 if test "${ac_cv_path_mkdir+set}" = set; then
3885 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3886 else
81ecdfbb
RW
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for MKDIR_P within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 test -d ./--version && rmdir ./--version
3892 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3893 fi
3894fi
81ecdfbb
RW
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3896$as_echo "$MKDIR_P" >&6; }
3897
3898mkdir_p="$MKDIR_P"
3899case $mkdir_p in
3900 [\\/$]* | ?:[\\/]*) ;;
3901 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3902esac
42ecbf5e
DJ
3903
3904for ac_prog in gawk mawk nawk awk
3905do
3906 # Extract the first word of "$ac_prog", so it can be a program name with args.
3907set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_AWK+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3912else
3913 if test -n "$AWK"; then
3914 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3923 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3925 break 2
3926 fi
3927done
81ecdfbb
RW
3928 done
3929IFS=$as_save_IFS
42ecbf5e
DJ
3930
3931fi
3932fi
3933AWK=$ac_cv_prog_AWK
3934if test -n "$AWK"; then
81ecdfbb
RW
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3936$as_echo "$AWK" >&6; }
42ecbf5e 3937else
81ecdfbb
RW
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
42ecbf5e 3940fi
252b5132 3941
81ecdfbb 3942
42ecbf5e
DJ
3943 test -n "$AWK" && break
3944done
252b5132 3945
81ecdfbb
RW
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3948set x ${MAKE-make}
3949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3950if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3951 $as_echo_n "(cached) " >&6
252b5132 3952else
42ecbf5e 3953 cat >conftest.make <<\_ACEOF
81ecdfbb 3954SHELL = /bin/sh
252b5132 3955all:
81ecdfbb 3956 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3957_ACEOF
252b5132 3958# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3959case `${MAKE-make} -f conftest.make 2>/dev/null` in
3960 *@@@%%%=?*=@@@%%%*)
3961 eval ac_cv_prog_make_${ac_make}_set=yes;;
3962 *)
3963 eval ac_cv_prog_make_${ac_make}_set=no;;
3964esac
42ecbf5e 3965rm -f conftest.make
252b5132 3966fi
81ecdfbb
RW
3967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969$as_echo "yes" >&6; }
252b5132
RH
3970 SET_MAKE=
3971else
81ecdfbb
RW
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973$as_echo "no" >&6; }
252b5132
RH
3974 SET_MAKE="MAKE=${MAKE-make}"
3975fi
3976
42ecbf5e
DJ
3977rm -rf .tst 2>/dev/null
3978mkdir .tst 2>/dev/null
3979if test -d .tst; then
3980 am__leading_dot=.
3981else
3982 am__leading_dot=_
3983fi
3984rmdir .tst 2>/dev/null
3985
3986DEPDIR="${am__leading_dot}deps"
3987
81ecdfbb 3988ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3989
3990
3991am_make=${MAKE-make}
3992cat > confinc << 'END'
3993am__doit:
81ecdfbb 3994 @echo this is the am__doit target
42ecbf5e
DJ
3995.PHONY: am__doit
3996END
3997# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
4000am__include="#"
4001am__quote=
4002_am_result=none
4003# First try GNU make style include.
4004echo "include confinc" > confmf
81ecdfbb
RW
4005# Ignore all kinds of additional output from `make'.
4006case `$am_make -s -f confmf 2> /dev/null` in #(
4007*the\ am__doit\ target*)
4008 am__include=include
4009 am__quote=
4010 _am_result=GNU
4011 ;;
4012esac
42ecbf5e
DJ
4013# Now try BSD make style include.
4014if test "$am__include" = "#"; then
4015 echo '.include "confinc"' > confmf
81ecdfbb
RW
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4019 am__quote="\""
4020 _am_result=BSD
4021 ;;
4022 esac
42ecbf5e
DJ
4023fi
4024
4025
81ecdfbb
RW
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4028rm -f confinc confmf
4029
81ecdfbb
RW
4030# Check whether --enable-dependency-tracking was given.
4031if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4033fi
42ecbf5e 4034
42ecbf5e
DJ
4035if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4037 AMDEPBACKSLASH='\'
6eb7d830 4038 am__nodep='_no'
42ecbf5e 4039fi
81ecdfbb 4040 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4041 AMDEP_TRUE=
4042 AMDEP_FALSE='#'
4043else
4044 AMDEP_TRUE='#'
4045 AMDEP_FALSE=
4046fi
4047
e5a52504 4048
81ecdfbb
RW
4049if test "`cd $srcdir && pwd`" != "`pwd`"; then
4050 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4051 # is not polluted with repeated "-I."
4052 am__isrc=' -I$(srcdir)'
4053 # test to see if srcdir already configured
4054 if test -f $srcdir/config.status; then
4055 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4056 fi
42ecbf5e 4057fi
252b5132 4058
42ecbf5e
DJ
4059# test whether we have cygpath
4060if test -z "$CYGPATH_W"; then
4061 if (cygpath --version) >/dev/null 2>/dev/null; then
4062 CYGPATH_W='cygpath -w'
4063 else
4064 CYGPATH_W=echo
4065 fi
252b5132 4066fi
42ecbf5e
DJ
4067
4068
4069# Define the identity of the package.
2e98a7bd 4070 PACKAGE='ld'
d8bd95ef 4071 VERSION='2.26.51'
42ecbf5e
DJ
4072
4073
4074cat >>confdefs.h <<_ACEOF
e5a52504 4075#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4076_ACEOF
4077
252b5132 4078
42ecbf5e 4079cat >>confdefs.h <<_ACEOF
e5a52504 4080#define VERSION "$VERSION"
42ecbf5e
DJ
4081_ACEOF
4082
4083# Some tools Automake needs.
4084
4085ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4086
4087
4088AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4089
4090
4091AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4092
4093
4094AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4095
e5a52504 4096
42ecbf5e 4097MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4098
42ecbf5e
DJ
4099# We need awk for the "check" target. The system "awk" is bad on
4100# some platforms.
6eb7d830
AM
4101# Always define AMTAR for backward compatibility. Yes, it's still used
4102# in the wild :-( We should find a proper way to deprecate it ...
4103AMTAR='$${TAR-tar}'
42ecbf5e 4104
6eb7d830 4105am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e
DJ
4106
4107
4108
4109
4110depcc="$CC" am_compiler_list=
4111
81ecdfbb
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4113$as_echo_n "checking dependency style of $depcc... " >&6; }
4114if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4116else
4117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4118 # We make a subdir and do the tests there. Otherwise we can end up
4119 # making bogus files that we don't know about and never remove. For
4120 # instance it was reported that on HP-UX the gcc test will end up
4121 # making a dummy file named `D' -- because `-MD' means `put the output
4122 # in D'.
6eb7d830 4123 rm -rf conftest.dir
42ecbf5e
DJ
4124 mkdir conftest.dir
4125 # Copy depcomp to subdir because otherwise we won't find it if we're
4126 # using a relative directory.
4127 cp "$am_depcomp" conftest.dir
4128 cd conftest.dir
4129 # We will build objects and dependencies in a subdirectory because
4130 # it helps to detect inapplicable dependency modes. For instance
4131 # both Tru64's cc and ICC support -MD to output dependencies as a
4132 # side effect of compilation, but ICC will put the dependencies in
4133 # the current directory while Tru64 will put them in the object
4134 # directory.
4135 mkdir sub
4136
4137 am_cv_CC_dependencies_compiler_type=none
4138 if test "$am_compiler_list" = ""; then
4139 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4140 fi
81ecdfbb
RW
4141 am__universal=false
4142 case " $depcc " in #(
4143 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4144 esac
4145
42ecbf5e
DJ
4146 for depmode in $am_compiler_list; do
4147 # Setup a source with many dependencies, because some compilers
4148 # like to wrap large dependency lists on column 80 (with \), and
4149 # we should not choose a depcomp mode which is confused by this.
4150 #
4151 # We need to recreate these files for each test, as the compiler may
4152 # overwrite some of them when testing with obscure command lines.
4153 # This happens at least with the AIX C compiler.
4154 : > sub/conftest.c
4155 for i in 1 2 3 4 5 6; do
4156 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4157 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4158 # Solaris 8's {/usr,}/bin/sh.
4159 touch sub/conftst$i.h
4160 done
4161 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162
81ecdfbb
RW
4163 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4164 # mode. It turns out that the SunPro C++ compiler does not properly
4165 # handle `-M -o', and we need to detect this. Also, some Intel
4166 # versions had trouble with output in subdirs
4167 am__obj=sub/conftest.${OBJEXT-o}
4168 am__minus_obj="-o $am__obj"
42ecbf5e 4169 case $depmode in
81ecdfbb
RW
4170 gcc)
4171 # This depmode causes a compiler race in universal mode.
4172 test "$am__universal" = false || continue
4173 ;;
42ecbf5e
DJ
4174 nosideeffect)
4175 # after this tag, mechanisms are not by side-effect, so they'll
4176 # only be used when explicitly requested
4177 if test "x$enable_dependency_tracking" = xyes; then
4178 continue
4179 else
4180 break
4181 fi
4182 ;;
6eb7d830 4183 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
81ecdfbb
RW
4184 # This compiler won't grok `-c -o', but also, the minuso test has
4185 # not run yet. These depmodes are late enough in the game, and
4186 # so weak that their functioning should not be impacted.
4187 am__obj=conftest.${OBJEXT-o}
4188 am__minus_obj=
4189 ;;
42ecbf5e
DJ
4190 none) break ;;
4191 esac
42ecbf5e 4192 if depmode=$depmode \
81ecdfbb 4193 source=sub/conftest.c object=$am__obj \
42ecbf5e 4194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4195 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4196 >/dev/null 2>conftest.err &&
81ecdfbb 4197 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4198 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4199 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4200 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4201 # icc doesn't choke on unknown options, it will just issue warnings
4202 # or remarks (even with -Werror). So we grep stderr for any message
4203 # that says an option was ignored or not supported.
4204 # When given -MP, icc 7.0 and 7.1 complain thusly:
4205 # icc: Command line warning: ignoring option '-M'; no argument required
4206 # The diagnosis changed in icc 8.0:
4207 # icc: Command line remark: option '-MP' not supported
4208 if (grep 'ignoring option' conftest.err ||
4209 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4210 am_cv_CC_dependencies_compiler_type=$depmode
4211 break
4212 fi
4213 fi
4214 done
2469cfa2 4215
42ecbf5e
DJ
4216 cd ..
4217 rm -rf conftest.dir
2469cfa2 4218else
42ecbf5e
DJ
4219 am_cv_CC_dependencies_compiler_type=none
4220fi
4221
2469cfa2 4222fi
81ecdfbb
RW
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4224$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4225CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4226
81ecdfbb 4227 if
42ecbf5e
DJ
4228 test "x$enable_dependency_tracking" != xno \
4229 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4230 am__fastdepCC_TRUE=
4231 am__fastdepCC_FALSE='#'
2469cfa2 4232else
42ecbf5e
DJ
4233 am__fastdepCC_TRUE='#'
4234 am__fastdepCC_FALSE=
2469cfa2 4235fi
2469cfa2 4236
2469cfa2 4237
e5a52504 4238
42ecbf5e 4239
64ac50ac
RW
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4241$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4242 # Check whether --enable-maintainer-mode was given.
4243if test "${enable_maintainer_mode+set}" = set; then :
4244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4245else
4246 USE_MAINTAINER_MODE=no
4247fi
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4250$as_echo "$USE_MAINTAINER_MODE" >&6; }
4251 if test $USE_MAINTAINER_MODE = yes; then
4252 MAINTAINER_MODE_TRUE=
4253 MAINTAINER_MODE_FALSE='#'
4254else
4255 MAINTAINER_MODE_TRUE='#'
4256 MAINTAINER_MODE_FALSE=
4257fi
4258
4259 MAINT=$MAINTAINER_MODE_TRUE
4260
4261
4262
b879806f
AM
4263ac_ext=c
4264ac_cpp='$CPP $CPPFLAGS'
4265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4267ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4270set dummy ${ac_tool_prefix}gcc; ac_word=$2
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272$as_echo_n "checking for $ac_word... " >&6; }
4273if test "${ac_cv_prog_CC+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275else
4276 if test -n "$CC"; then
4277 ac_cv_prog_CC="$CC" # Let the user override the test.
4278else
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290done
4291 done
4292IFS=$as_save_IFS
d7040cdb 4293
81ecdfbb 4294fi
81ecdfbb 4295fi
b879806f
AM
4296CC=$ac_cv_prog_CC
4297if test -n "$CC"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4299$as_echo "$CC" >&6; }
2469cfa2 4300else
b879806f
AM
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302$as_echo "no" >&6; }
81ecdfbb 4303fi
d7040cdb
SE
4304
4305
b879806f
AM
4306fi
4307if test -z "$ac_cv_prog_CC"; then
4308 ac_ct_CC=$CC
4309 # Extract the first word of "gcc", so it can be a program name with args.
4310set dummy gcc; ac_word=$2
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312$as_echo_n "checking for $ac_word... " >&6; }
4313if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
e5a52504 4315else
b879806f
AM
4316 if test -n "$ac_ct_CC"; then
4317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4318else
4319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320for as_dir in $PATH
4321do
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_ac_ct_CC="gcc"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330done
4331 done
4332IFS=$as_save_IFS
d7040cdb 4333
81ecdfbb 4334fi
b879806f
AM
4335fi
4336ac_ct_CC=$ac_cv_prog_ac_ct_CC
4337if test -n "$ac_ct_CC"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4339$as_echo "$ac_ct_CC" >&6; }
4fda8867 4340else
b879806f
AM
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342$as_echo "no" >&6; }
4fda8867
NC
4343fi
4344
b879806f
AM
4345 if test "x$ac_ct_CC" = x; then
4346 CC=""
4347 else
4348 case $cross_compiling:$ac_tool_warned in
4349yes:)
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4352ac_tool_warned=yes ;;
7fb9f789 4353esac
b879806f
AM
4354 CC=$ac_ct_CC
4355 fi
7fb9f789 4356else
b879806f 4357 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4358fi
4359
b879806f
AM
4360if test -z "$CC"; then
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4363set dummy ${ac_tool_prefix}cc; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365$as_echo_n "checking for $ac_word... " >&6; }
4366if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4367 $as_echo_n "(cached) " >&6
4368else
b879806f
AM
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4371else
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
397841b5 4374do
b879806f
AM
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_CC="${ac_tool_prefix}cc"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383done
4384 done
4385IFS=$as_save_IFS
d7040cdb 4386
ce2cded5 4387fi
ce2cded5 4388fi
b879806f
AM
4389CC=$ac_cv_prog_CC
4390if test -n "$CC"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4392$as_echo "$CC" >&6; }
4393else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395$as_echo "no" >&6; }
81ecdfbb
RW
4396fi
4397
d7040cdb 4398
b879806f 4399 fi
ce2cded5 4400fi
b879806f
AM
4401if test -z "$CC"; then
4402 # Extract the first word of "cc", so it can be a program name with args.
4403set dummy cc; ac_word=$2
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405$as_echo_n "checking for $ac_word... " >&6; }
4406if test "${ac_cv_prog_CC+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
397841b5 4408else
b879806f
AM
4409 if test -n "$CC"; then
4410 ac_cv_prog_CC="$CC" # Let the user override the test.
4411else
4412 ac_prog_rejected=no
4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414for as_dir in $PATH
397841b5 4415do
b879806f
AM
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4421 ac_prog_rejected=yes
4422 continue
4423 fi
4424 ac_cv_prog_CC="cc"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428done
4429 done
4430IFS=$as_save_IFS
d7040cdb 4431
b879806f
AM
4432if test $ac_prog_rejected = yes; then
4433 # We found a bogon in the path, so make sure we never use it.
4434 set dummy $ac_cv_prog_CC
4435 shift
4436 if test $# != 0; then
4437 # We chose a different compiler from the bogus one.
4438 # However, it has the same basename, so the bogon will be chosen
4439 # first if we set CC to just the basename; use the full file name.
4440 shift
4441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4442 fi
397841b5 4443fi
397841b5 4444fi
b879806f
AM
4445fi
4446CC=$ac_cv_prog_CC
4447if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449$as_echo "$CC" >&6; }
397841b5 4450else
b879806f
AM
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452$as_echo "no" >&6; }
ce2cded5 4453fi
d7040cdb 4454
397841b5 4455
b879806f
AM
4456fi
4457if test -z "$CC"; then
4458 if test -n "$ac_tool_prefix"; then
4459 for ac_prog in cl.exe
4460 do
4461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464$as_echo_n "checking for $ac_word... " >&6; }
4465if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4466 $as_echo_n "(cached) " >&6
d7040cdb 4467else
b879806f
AM
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470else
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
d7040cdb
SE
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
81ecdfbb 4476 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
397841b5
AM
4483 done
4484IFS=$as_save_IFS
d7040cdb 4485
252b5132 4486fi
b879806f
AM
4487fi
4488CC=$ac_cv_prog_CC
4489if test -n "$CC"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4491$as_echo "$CC" >&6; }
4492else
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4494$as_echo "no" >&6; }
4495fi
397841b5
AM
4496
4497
b879806f
AM
4498 test -n "$CC" && break
4499 done
4500fi
4501if test -z "$CC"; then
4502 ac_ct_CC=$CC
4503 for ac_prog in cl.exe
4504do
4505 # Extract the first word of "$ac_prog", so it can be a program name with args.
4506set dummy $ac_prog; ac_word=$2
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508$as_echo_n "checking for $ac_word... " >&6; }
4509if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4510 $as_echo_n "(cached) " >&6
4511else
b879806f
AM
4512 if test -n "$ac_ct_CC"; then
4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
397841b5
AM
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
397841b5 4520 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_CC="$ac_prog"
4523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526done
397841b5
AM
4527 done
4528IFS=$as_save_IFS
397841b5 4529
397841b5 4530fi
397841b5 4531fi
b879806f
AM
4532ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533if test -n "$ac_ct_CC"; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4535$as_echo "$ac_ct_CC" >&6; }
4536else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538$as_echo "no" >&6; }
397841b5
AM
4539fi
4540
397841b5 4541
b879806f
AM
4542 test -n "$ac_ct_CC" && break
4543done
397841b5 4544
b879806f
AM
4545 if test "x$ac_ct_CC" = x; then
4546 CC=""
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549yes:)
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552ac_tool_warned=yes ;;
397841b5 4553esac
b879806f
AM
4554 CC=$ac_ct_CC
4555 fi
397841b5
AM
4556fi
4557
397841b5
AM
4558fi
4559
4560
b879806f
AM
4561test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4563as_fn_error "no acceptable C compiler found in \$PATH
4564See \`config.log' for more details." "$LINENO" 5; }
397841b5 4565
b879806f
AM
4566# Provide some information about the compiler.
4567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4568set X $ac_compile
4569ac_compiler=$2
4570for ac_option in --version -v -V -qversion; do
4571 { { ac_try="$ac_compiler $ac_option >&5"
4572case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575esac
4576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577$as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4579 ac_status=$?
4580 if test -s conftest.err; then
4581 sed '10a\
4582... rest of stderr output deleted ...
4583 10q' conftest.err >conftest.er1
4584 cat conftest.er1 >&5
4585 rm -f conftest.er1 conftest.err
4586 fi
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589done
397841b5 4590
b879806f
AM
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4592$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4593if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4594 $as_echo_n "(cached) " >&6
4595else
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
b879806f 4598
44350750
NC
4599int
4600main ()
4601{
b879806f
AM
4602#ifndef __GNUC__
4603 choke me
4604#endif
4605
4606 ;
44350750
NC
4607 return 0;
4608}
4609_ACEOF
b879806f
AM
4610if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_compiler_gnu=yes
44350750 4612else
b879806f 4613 ac_compiler_gnu=no
44350750 4614fi
b879806f
AM
4615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616ac_cv_c_compiler_gnu=$ac_compiler_gnu
4617
44350750 4618fi
b879806f
AM
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621if test $ac_compiler_gnu = yes; then
4622 GCC=yes
4623else
4624 GCC=
4625fi
4626ac_test_CFLAGS=${CFLAGS+set}
4627ac_save_CFLAGS=$CFLAGS
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629$as_echo_n "checking whether $CC accepts -g... " >&6; }
4630if test "${ac_cv_prog_cc_g+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4632else
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4635 ac_cv_prog_cc_g=no
4636 CFLAGS="-g"
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h. */
44350750 4639
b879806f
AM
4640int
4641main ()
4642{
44350750 4643
b879806f
AM
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_compile "$LINENO"; then :
4649 ac_cv_prog_cc_g=yes
4650else
4651 CFLAGS=""
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h. */
4654
4655int
4656main ()
4657{
44350750 4658
b879806f
AM
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663if ac_fn_c_try_compile "$LINENO"; then :
44350750 4664
b879806f
AM
4665else
4666 ac_c_werror_flag=$ac_save_c_werror_flag
4667 CFLAGS="-g"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
397841b5 4670
b879806f
AM
4671int
4672main ()
4673{
397841b5 4674
b879806f
AM
4675 ;
4676 return 0;
4677}
4678_ACEOF
4679if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_prog_cc_g=yes
4681fi
4682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683fi
4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685fi
4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_c_werror_flag=$ac_save_c_werror_flag
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4690$as_echo "$ac_cv_prog_cc_g" >&6; }
4691if test "$ac_test_CFLAGS" = set; then
4692 CFLAGS=$ac_save_CFLAGS
4693elif test $ac_cv_prog_cc_g = yes; then
4694 if test "$GCC" = yes; then
4695 CFLAGS="-g -O2"
4696 else
4697 CFLAGS="-g"
4698 fi
4699else
4700 if test "$GCC" = yes; then
4701 CFLAGS="-O2"
4702 else
4703 CFLAGS=
4704 fi
4705fi
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4707$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4708if test "${ac_cv_prog_cc_c89+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710else
4711 ac_cv_prog_cc_c89=no
4712ac_save_CC=$CC
4713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h. */
4715#include <stdarg.h>
4716#include <stdio.h>
4717#include <sys/types.h>
4718#include <sys/stat.h>
4719/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4720struct buf { int x; };
4721FILE * (*rcsopen) (struct buf *, struct stat *, int);
4722static char *e (p, i)
4723 char **p;
4724 int i;
4725{
4726 return p[i];
4727}
4728static char *f (char * (*g) (char **, int), char **p, ...)
4729{
4730 char *s;
4731 va_list v;
4732 va_start (v,p);
4733 s = g (p, va_arg (v,int));
4734 va_end (v);
4735 return s;
4736}
df7b86aa 4737
b879806f
AM
4738/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4739 function prototypes and stuff, but not '\xHH' hex character constants.
4740 These don't provoke an error unfortunately, instead are silently treated
4741 as 'x'. The following induces an error, until -std is added to get
4742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4743 array size at least. It's necessary to write '\x00'==0 to get something
4744 that's true only with -std. */
4745int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4746
b879806f
AM
4747/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4748 inside strings and character constants. */
4749#define FOO(x) 'x'
4750int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4751
4752int test (int i, double x);
4753struct s1 {int (*f) (int a);};
4754struct s2 {int (*f) (double a);};
4755int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756int argc;
4757char **argv;
4758int
4759main ()
4760{
4761return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4762 ;
4763 return 0;
4764}
4765_ACEOF
4766for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4768do
4769 CC="$ac_save_CC $ac_arg"
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c89=$ac_arg
397841b5 4772fi
b879806f
AM
4773rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c89" != "xno" && break
4775done
4776rm -f conftest.$ac_ext
4777CC=$ac_save_CC
4778
397841b5 4779fi
b879806f
AM
4780# AC_CACHE_VAL
4781case "x$ac_cv_prog_cc_c89" in
4782 x)
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4784$as_echo "none needed" >&6; } ;;
4785 xno)
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787$as_echo "unsupported" >&6; } ;;
4788 *)
4789 CC="$CC $ac_cv_prog_cc_c89"
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4791$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4792esac
4793if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4794
b879806f 4795fi
397841b5
AM
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4802
4803ac_ext=cpp
4804ac_cpp='$CXXCPP $CPPFLAGS'
4805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4808if test -z "$CXX"; then
4809 if test -n "$CCC"; then
4810 CXX=$CCC
4811 else
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4819if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4820 $as_echo_n "(cached) " >&6
4821else
b879806f
AM
4822 if test -n "$CXX"; then
4823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836done
4837 done
4838IFS=$as_save_IFS
4839
4840fi
4841fi
b879806f
AM
4842CXX=$ac_cv_prog_CXX
4843if test -n "$CXX"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4845$as_echo "$CXX" >&6; }
397841b5
AM
4846else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849fi
4850
4851
b879806f
AM
4852 test -n "$CXX" && break
4853 done
397841b5 4854fi
b879806f
AM
4855if test -z "$CXX"; then
4856 ac_ct_CXX=$CXX
4857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4858do
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860set dummy $ac_prog; ac_word=$2
397841b5
AM
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4864 $as_echo_n "(cached) " >&6
252b5132 4865else
b879806f
AM
4866 if test -n "$ac_ct_CXX"; then
4867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4868else
ce2cded5
L
4869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4876 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4878 break 2
4879 fi
4880done
81ecdfbb
RW
4881 done
4882IFS=$as_save_IFS
4883
252b5132
RH
4884fi
4885fi
b879806f
AM
4886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4887if test -n "$ac_ct_CXX"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4889$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4890else
81ecdfbb
RW
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892$as_echo "no" >&6; }
d7040cdb
SE
4893fi
4894
81ecdfbb 4895
b879806f 4896 test -n "$ac_ct_CXX" && break
d7040cdb 4897done
d7040cdb 4898
b879806f
AM
4899 if test "x$ac_ct_CXX" = x; then
4900 CXX="g++"
81ecdfbb
RW
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903yes:)
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906ac_tool_warned=yes ;;
4907esac
b879806f 4908 CXX=$ac_ct_CXX
81ecdfbb 4909 fi
d7040cdb
SE
4910fi
4911
b879806f 4912 fi
d7040cdb 4913fi
ce2cded5 4914# Provide some information about the compiler.
b879806f 4915$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4916set X $ac_compile
4917ac_compiler=$2
4918for ac_option in --version -v -V -qversion; do
4919 { { ac_try="$ac_compiler $ac_option >&5"
4920case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923esac
4924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4925$as_echo "$ac_try_echo"; } >&5
4926 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4927 ac_status=$?
81ecdfbb
RW
4928 if test -s conftest.err; then
4929 sed '10a\
4930... rest of stderr output deleted ...
4931 10q' conftest.err >conftest.er1
4932 cat conftest.er1 >&5
4933 rm -f conftest.er1 conftest.err
4934 fi
4935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4936 test $ac_status = 0; }
4937done
d7040cdb 4938
b879806f
AM
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4940$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4941if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4942 $as_echo_n "(cached) " >&6
d7040cdb 4943else
81ecdfbb 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4945/* end confdefs.h. */
d7040cdb 4946
ce2cded5
L
4947int
4948main ()
4949{
4950#ifndef __GNUC__
4951 choke me
4952#endif
4953
4954 ;
4955 return 0;
4956}
4957_ACEOF
b879806f 4958if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4959 ac_compiler_gnu=yes
d7040cdb 4960else
81ecdfbb 4961 ac_compiler_gnu=no
d7040cdb 4962fi
81ecdfbb 4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4964ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4965
ce2cded5 4966fi
b879806f
AM
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4968$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4969if test $ac_compiler_gnu = yes; then
b879806f 4970 GXX=yes
81ecdfbb 4971else
b879806f 4972 GXX=
81ecdfbb 4973fi
b879806f
AM
4974ac_test_CXXFLAGS=${CXXFLAGS+set}
4975ac_save_CXXFLAGS=$CXXFLAGS
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4977$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4978if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4979 $as_echo_n "(cached) " >&6
4980else
b879806f
AM
4981 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4982 ac_cxx_werror_flag=yes
4983 ac_cv_prog_cxx_g=no
4984 CXXFLAGS="-g"
81ecdfbb 4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4986/* end confdefs.h. */
d7040cdb 4987
ce2cded5
L
4988int
4989main ()
4990{
d7040cdb 4991
ce2cded5
L
4992 ;
4993 return 0;
4994}
4995_ACEOF
b879806f
AM
4996if ac_fn_cxx_try_compile "$LINENO"; then :
4997 ac_cv_prog_cxx_g=yes
ce2cded5 4998else
b879806f 4999 CXXFLAGS=""
81ecdfbb
RW
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001/* end confdefs.h. */
5002
5003int
5004main ()
5005{
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
b879806f 5011if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5012
5013else
b879806f
AM
5014 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5015 CXXFLAGS="-g"
81ecdfbb
RW
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h. */
5018
5019int
5020main ()
5021{
d7040cdb 5022
81ecdfbb
RW
5023 ;
5024 return 0;
5025}
5026_ACEOF
b879806f
AM
5027if ac_fn_cxx_try_compile "$LINENO"; then :
5028 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5029fi
5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031fi
5032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5033fi
81ecdfbb 5034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5036fi
b879806f
AM
5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5038$as_echo "$ac_cv_prog_cxx_g" >&6; }
5039if test "$ac_test_CXXFLAGS" = set; then
5040 CXXFLAGS=$ac_save_CXXFLAGS
5041elif test $ac_cv_prog_cxx_g = yes; then
5042 if test "$GXX" = yes; then
5043 CXXFLAGS="-g -O2"
ce2cded5 5044 else
b879806f 5045 CXXFLAGS="-g"
ce2cded5 5046 fi
d7040cdb 5047else
b879806f
AM
5048 if test "$GXX" = yes; then
5049 CXXFLAGS="-O2"
ce2cded5 5050 else
b879806f 5051 CXXFLAGS=
ce2cded5 5052 fi
d7040cdb 5053fi
b879806f
AM
5054ac_ext=c
5055ac_cpp='$CPP $CPPFLAGS'
5056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058ac_compiler_gnu=$ac_cv_c_compiler_gnu
5059
5060depcc="$CXX" am_compiler_list=
5061
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5063$as_echo_n "checking dependency style of $depcc... " >&6; }
5064if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5065 $as_echo_n "(cached) " >&6
d7040cdb 5066else
b879806f
AM
5067 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5068 # We make a subdir and do the tests there. Otherwise we can end up
5069 # making bogus files that we don't know about and never remove. For
5070 # instance it was reported that on HP-UX the gcc test will end up
5071 # making a dummy file named `D' -- because `-MD' means `put the output
5072 # in D'.
6eb7d830 5073 rm -rf conftest.dir
b879806f
AM
5074 mkdir conftest.dir
5075 # Copy depcomp to subdir because otherwise we won't find it if we're
5076 # using a relative directory.
5077 cp "$am_depcomp" conftest.dir
5078 cd conftest.dir
5079 # We will build objects and dependencies in a subdirectory because
5080 # it helps to detect inapplicable dependency modes. For instance
5081 # both Tru64's cc and ICC support -MD to output dependencies as a
5082 # side effect of compilation, but ICC will put the dependencies in
5083 # the current directory while Tru64 will put them in the object
5084 # directory.
5085 mkdir sub
d7040cdb 5086
b879806f
AM
5087 am_cv_CXX_dependencies_compiler_type=none
5088 if test "$am_compiler_list" = ""; then
5089 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5090 fi
5091 am__universal=false
5092 case " $depcc " in #(
5093 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5094 esac
d7040cdb 5095
b879806f
AM
5096 for depmode in $am_compiler_list; do
5097 # Setup a source with many dependencies, because some compilers
5098 # like to wrap large dependency lists on column 80 (with \), and
5099 # we should not choose a depcomp mode which is confused by this.
5100 #
5101 # We need to recreate these files for each test, as the compiler may
5102 # overwrite some of them when testing with obscure command lines.
5103 # This happens at least with the AIX C compiler.
5104 : > sub/conftest.c
5105 for i in 1 2 3 4 5 6; do
5106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5108 # Solaris 8's {/usr,}/bin/sh.
5109 touch sub/conftst$i.h
5110 done
5111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5112
b879806f
AM
5113 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5114 # mode. It turns out that the SunPro C++ compiler does not properly
5115 # handle `-M -o', and we need to detect this. Also, some Intel
5116 # versions had trouble with output in subdirs
5117 am__obj=sub/conftest.${OBJEXT-o}
5118 am__minus_obj="-o $am__obj"
5119 case $depmode in
5120 gcc)
5121 # This depmode causes a compiler race in universal mode.
5122 test "$am__universal" = false || continue
5123 ;;
5124 nosideeffect)
5125 # after this tag, mechanisms are not by side-effect, so they'll
5126 # only be used when explicitly requested
5127 if test "x$enable_dependency_tracking" = xyes; then
5128 continue
5129 else
5130 break
5131 fi
5132 ;;
6eb7d830 5133 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
b879806f
AM
5134 # This compiler won't grok `-c -o', but also, the minuso test has
5135 # not run yet. These depmodes are late enough in the game, and
5136 # so weak that their functioning should not be impacted.
5137 am__obj=conftest.${OBJEXT-o}
5138 am__minus_obj=
5139 ;;
5140 none) break ;;
5141 esac
5142 if depmode=$depmode \
5143 source=sub/conftest.c object=$am__obj \
5144 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5145 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5146 >/dev/null 2>conftest.err &&
5147 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5148 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5149 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5150 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5151 # icc doesn't choke on unknown options, it will just issue warnings
5152 # or remarks (even with -Werror). So we grep stderr for any message
5153 # that says an option was ignored or not supported.
5154 # When given -MP, icc 7.0 and 7.1 complain thusly:
5155 # icc: Command line warning: ignoring option '-M'; no argument required
5156 # The diagnosis changed in icc 8.0:
5157 # icc: Command line remark: option '-MP' not supported
5158 if (grep 'ignoring option' conftest.err ||
5159 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5160 am_cv_CXX_dependencies_compiler_type=$depmode
5161 break
5162 fi
5163 fi
5164 done
5165
5166 cd ..
5167 rm -rf conftest.dir
5168else
5169 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5170fi
d7040cdb 5171
ce2cded5 5172fi
b879806f
AM
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5174$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5175CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5176
b879806f
AM
5177 if
5178 test "x$enable_dependency_tracking" != xno \
5179 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5180 am__fastdepCXX_TRUE=
5181 am__fastdepCXX_FALSE='#'
5182else
5183 am__fastdepCXX_TRUE='#'
5184 am__fastdepCXX_FALSE=
ce2cded5 5185fi
d7040cdb 5186
b879806f 5187
68880f31
CLT
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5189$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5190if test "${ac_cv_path_GREP+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192else
5193 if test -z "$GREP"; then
5194 ac_path_GREP_found=false
5195 # Loop through the user's path and test for each of PROGNAME-LIST
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_prog in grep ggrep; do
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5204 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5205# Check for GNU ac_path_GREP and select it if it is found.
5206 # Check for GNU $ac_path_GREP
5207case `"$ac_path_GREP" --version 2>&1` in
5208*GNU*)
5209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5210*)
5211 ac_count=0
5212 $as_echo_n 0123456789 >"conftest.in"
5213 while :
5214 do
5215 cat "conftest.in" "conftest.in" >"conftest.tmp"
5216 mv "conftest.tmp" "conftest.in"
5217 cp "conftest.in" "conftest.nl"
5218 $as_echo 'GREP' >> "conftest.nl"
5219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5221 as_fn_arith $ac_count + 1 && ac_count=$as_val
5222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5223 # Best one so far, save it but keep looking for a better one
5224 ac_cv_path_GREP="$ac_path_GREP"
5225 ac_path_GREP_max=$ac_count
5226 fi
5227 # 10*(2^10) chars as input seems more than enough
5228 test $ac_count -gt 10 && break
5229 done
5230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5231esac
5232
5233 $ac_path_GREP_found && break 3
5234 done
5235 done
5236 done
5237IFS=$as_save_IFS
5238 if test -z "$ac_cv_path_GREP"; then
5239 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5240 fi
5241else
5242 ac_cv_path_GREP=$GREP
5243fi
5244
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5247$as_echo "$ac_cv_path_GREP" >&6; }
5248 GREP="$ac_cv_path_GREP"
5249
5250
ce2cded5
L
5251ac_ext=c
5252ac_cpp='$CPP $CPPFLAGS'
5253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5255ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5257$as_echo_n "checking how to run the C preprocessor... " >&6; }
5258# On Suns, sometimes $CPP names a directory.
5259if test -n "$CPP" && test -d "$CPP"; then
5260 CPP=
7357c5b6 5261fi
b879806f
AM
5262if test -z "$CPP"; then
5263 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5264 $as_echo_n "(cached) " >&6
5265else
b879806f
AM
5266 # Double quotes because CPP needs to be expanded
5267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5268 do
5269 ac_preproc_ok=false
5270for ac_c_preproc_warn_flag in '' yes
3cb62297 5271do
b879806f
AM
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279/* end confdefs.h. */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285 Syntax error
5286_ACEOF
5287if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5288
3cb62297 5289else
b879806f
AM
5290 # Broken: fails on valid input.
5291continue
7357c5b6 5292fi
b879806f 5293rm -f conftest.err conftest.$ac_ext
252b5132 5294
b879806f
AM
5295 # OK, works on sane cases. Now check whether nonexistent headers
5296 # can be detected and how.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h. */
5299#include <ac_nonexistent.h>
5300_ACEOF
5301if ac_fn_c_try_cpp "$LINENO"; then :
5302 # Broken: success on invalid input.
5303continue
5304else
5305 # Passes both tests.
5306ac_preproc_ok=:
5307break
5308fi
5309rm -f conftest.err conftest.$ac_ext
42ecbf5e 5310
3cb62297 5311done
b879806f
AM
5312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5313rm -f conftest.err conftest.$ac_ext
5314if $ac_preproc_ok; then :
5315 break
7357c5b6 5316fi
ac48eca1 5317
b879806f
AM
5318 done
5319 ac_cv_prog_CPP=$CPP
d7040cdb 5320
b879806f
AM
5321fi
5322 CPP=$ac_cv_prog_CPP
7357c5b6 5323else
b879806f
AM
5324 ac_cv_prog_CPP=$CPP
5325fi
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5327$as_echo "$CPP" >&6; }
5328ac_preproc_ok=false
5329for ac_c_preproc_warn_flag in '' yes
5330do
5331 # Use a header file that comes with gcc, so configuring glibc
5332 # with a fresh cross-compiler works.
5333 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5334 # <limits.h> exists even on freestanding compilers.
5335 # On the NeXT, cc -E runs the code through the compiler's parser,
5336 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5338/* end confdefs.h. */
b879806f
AM
5339#ifdef __STDC__
5340# include <limits.h>
5341#else
5342# include <assert.h>
3cb62297 5343#endif
b879806f 5344 Syntax error
7357c5b6 5345_ACEOF
b879806f
AM
5346if ac_fn_c_try_cpp "$LINENO"; then :
5347
81ecdfbb 5348else
b879806f
AM
5349 # Broken: fails on valid input.
5350continue
7357c5b6 5351fi
b879806f 5352rm -f conftest.err conftest.$ac_ext
81ecdfbb 5353
b879806f
AM
5354 # OK, works on sane cases. Now check whether nonexistent headers
5355 # can be detected and how.
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358#include <ac_nonexistent.h>
5359_ACEOF
5360if ac_fn_c_try_cpp "$LINENO"; then :
5361 # Broken: success on invalid input.
5362continue
3cb62297 5363else
b879806f
AM
5364 # Passes both tests.
5365ac_preproc_ok=:
5366break
7357c5b6 5367fi
b879806f 5368rm -f conftest.err conftest.$ac_ext
252b5132 5369
b879806f
AM
5370done
5371# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5372rm -f conftest.err conftest.$ac_ext
5373if $ac_preproc_ok; then :
252b5132 5374
3cb62297 5375else
b879806f
AM
5376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5378as_fn_error "C preprocessor \"$CPP\" fails sanity check
5379See \`config.log' for more details." "$LINENO" 5; }
5380fi
42ecbf5e 5381
b879806f
AM
5382ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5387
5388
b879806f
AM
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5390$as_echo_n "checking for egrep... " >&6; }
5391if test "${ac_cv_path_EGREP+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393else
5394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5395 then ac_cv_path_EGREP="$GREP -E"
5396 else
5397 if test -z "$EGREP"; then
5398 ac_path_EGREP_found=false
5399 # Loop through the user's path and test for each of PROGNAME-LIST
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_prog in egrep; do
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5409# Check for GNU ac_path_EGREP and select it if it is found.
5410 # Check for GNU $ac_path_EGREP
5411case `"$ac_path_EGREP" --version 2>&1` in
5412*GNU*)
5413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5414*)
5415 ac_count=0
5416 $as_echo_n 0123456789 >"conftest.in"
5417 while :
5418 do
5419 cat "conftest.in" "conftest.in" >"conftest.tmp"
5420 mv "conftest.tmp" "conftest.in"
5421 cp "conftest.in" "conftest.nl"
5422 $as_echo 'EGREP' >> "conftest.nl"
5423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5425 as_fn_arith $ac_count + 1 && ac_count=$as_val
5426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5427 # Best one so far, save it but keep looking for a better one
5428 ac_cv_path_EGREP="$ac_path_EGREP"
5429 ac_path_EGREP_max=$ac_count
5430 fi
5431 # 10*(2^10) chars as input seems more than enough
5432 test $ac_count -gt 10 && break
5433 done
5434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5435esac
5436
5437 $ac_path_EGREP_found && break 3
5438 done
5439 done
5440 done
5441IFS=$as_save_IFS
5442 if test -z "$ac_cv_path_EGREP"; then
5443 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444 fi
5445else
5446 ac_cv_path_EGREP=$EGREP
5447fi
5448
5449 fi
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5452$as_echo "$ac_cv_path_EGREP" >&6; }
5453 EGREP="$ac_cv_path_EGREP"
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5457$as_echo_n "checking for ANSI C header files... " >&6; }
5458if test "${ac_cv_header_stdc+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460else
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5462/* end confdefs.h. */
b879806f
AM
5463#include <stdlib.h>
5464#include <stdarg.h>
5465#include <string.h>
5466#include <float.h>
42ecbf5e 5467
3cb62297
L
5468int
5469main ()
5470{
42ecbf5e 5471
3cb62297
L
5472 ;
5473 return 0;
5474}
5475_ACEOF
b879806f
AM
5476if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_header_stdc=yes
5478else
5479 ac_cv_header_stdc=no
3cb62297
L
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5482
5483if test $ac_cv_header_stdc = yes; then
5484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487#include <string.h>
5488
5489_ACEOF
5490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5491 $EGREP "memchr" >/dev/null 2>&1; then :
5492
5493else
5494 ac_cv_header_stdc=no
3cb62297 5495fi
b879806f
AM
5496rm -f conftest*
5497
3cb62297 5498fi
b879806f
AM
5499
5500if test $ac_cv_header_stdc = yes; then
5501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h. */
5504#include <stdlib.h>
5505
5506_ACEOF
5507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5508 $EGREP "free" >/dev/null 2>&1; then :
5509
ce2cded5 5510else
b879806f 5511 ac_cv_header_stdc=no
ce2cded5 5512fi
b879806f 5513rm -f conftest*
42ecbf5e 5514
b879806f 5515fi
e5a52504 5516
b879806f
AM
5517if test $ac_cv_header_stdc = yes; then
5518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5519 if test "$cross_compiling" = yes; then :
5520 :
3cb62297 5521else
b879806f
AM
5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h. */
5524#include <ctype.h>
5525#include <stdlib.h>
5526#if ((' ' & 0x0FF) == 0x020)
5527# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5528# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5529#else
5530# define ISLOWER(c) \
5531 (('a' <= (c) && (c) <= 'i') \
5532 || ('j' <= (c) && (c) <= 'r') \
5533 || ('s' <= (c) && (c) <= 'z'))
5534# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5535#endif
3cb62297
L
5536
5537#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5538int
5539main ()
5540{
5541 int i;
5542 for (i = 0; i < 256; i++)
5543 if (XOR (islower (i), ISLOWER (i))
5544 || toupper (i) != TOUPPER (i))
5545 return 2;
5546 return 0;
5547}
5548_ACEOF
5549if ac_fn_c_try_run "$LINENO"; then :
5550
5551else
5552 ac_cv_header_stdc=no
5553fi
5554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5555 conftest.$ac_objext conftest.beam conftest.$ac_ext
5556fi
5557
5558fi
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5561$as_echo "$ac_cv_header_stdc" >&6; }
5562if test $ac_cv_header_stdc = yes; then
5563
5564$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5565
5566fi
5567
5568# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5569for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5570 inttypes.h stdint.h unistd.h
5571do :
5572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5573ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5574"
5575eval as_val=\$$as_ac_Header
5576 if test "x$as_val" = x""yes; then :
5577 cat >>confdefs.h <<_ACEOF
5578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579_ACEOF
5580
5581fi
5582
5583done
5584
5585
5586
5587 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5588if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5589 MINIX=yes
5590else
5591 MINIX=
5592fi
5593
5594
5595 if test "$MINIX" = yes; then
5596
5597$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5598
5599
5600$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5601
5602
5603$as_echo "#define _MINIX 1" >>confdefs.h
5604
5605 fi
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5609$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5610if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
5615
5616# define __EXTENSIONS__ 1
5617 $ac_includes_default
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627 ac_cv_safe_to_define___extensions__=yes
5628else
5629 ac_cv_safe_to_define___extensions__=no
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632fi
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5634$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5635 test $ac_cv_safe_to_define___extensions__ = yes &&
5636 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5637
5638 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5639
5640 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5641
5642 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5643
5644 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5645
5646
5647
5648
5649
3cb62297 5650
b879806f
AM
5651case `pwd` in
5652 *\ * | *\ *)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5654$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5655esac
3cb62297
L
5656
5657
da2f07f1 5658
b879806f
AM
5659macro_version='2.2.7a'
5660macro_revision='1.3134'
d7040cdb 5661
d7040cdb
SE
5662
5663
d7040cdb 5664
d7040cdb 5665
42ecbf5e 5666
d7040cdb 5667
252b5132 5668
252b5132 5669
252b5132 5670
252b5132
RH
5671
5672
ce2cded5 5673
b214d478 5674ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5675
3725885a
RW
5676# Backslashify metacharacters that are still active within
5677# double-quoted strings.
5678sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5679
5680# Same as above, but do not quote variable references.
5681double_quote_subst='s/\(["`\\]\)/\\\1/g'
5682
5683# Sed substitution to delay expansion of an escaped shell variable in a
5684# double_quote_subst'ed string.
5685delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5686
5687# Sed substitution to delay expansion of an escaped single quote.
5688delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5689
5690# Sed substitution to avoid accidental globbing in evaled expressions
5691no_glob_subst='s/\*/\\\*/g'
5692
5693ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5694ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5695ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5696
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5698$as_echo_n "checking how to print strings... " >&6; }
5699# Test print first, because it will be a builtin if present.
5700if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5701 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5702 ECHO='print -r --'
5703elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5704 ECHO='printf %s\n'
5705else
5706 # Use this function as a fallback that always works.
5707 func_fallback_echo ()
5708 {
5709 eval 'cat <<_LTECHO_EOF
5710$1
5711_LTECHO_EOF'
5712 }
5713 ECHO='func_fallback_echo'
5714fi
5715
5716# func_echo_all arg...
5717# Invoke $ECHO with all args, space-separated.
5718func_echo_all ()
5719{
5720 $ECHO ""
5721}
5722
5723case "$ECHO" in
5724 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5725$as_echo "printf" >&6; } ;;
5726 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5727$as_echo "print -r" >&6; } ;;
5728 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5729$as_echo "cat" >&6; } ;;
5730esac
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
81ecdfbb
RW
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5746$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5747if test "${ac_cv_path_SED+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749else
5750 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5751 for ac_i in 1 2 3 4 5 6 7; do
5752 ac_script="$ac_script$as_nl$ac_script"
5753 done
5754 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5755 { ac_script=; unset ac_script;}
5756 if test -z "$SED"; then
5757 ac_path_SED_found=false
5758 # Loop through the user's path and test for each of PROGNAME-LIST
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5760for as_dir in $PATH
5761do
5762 IFS=$as_save_IFS
5763 test -z "$as_dir" && as_dir=.
81ecdfbb 5764 for ac_prog in sed gsed; do
7357c5b6 5765 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5766 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5767 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5768# Check for GNU ac_path_SED and select it if it is found.
5769 # Check for GNU $ac_path_SED
5770case `"$ac_path_SED" --version 2>&1` in
5771*GNU*)
5772 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5773*)
5774 ac_count=0
5775 $as_echo_n 0123456789 >"conftest.in"
5776 while :
5777 do
5778 cat "conftest.in" "conftest.in" >"conftest.tmp"
5779 mv "conftest.tmp" "conftest.in"
5780 cp "conftest.in" "conftest.nl"
5781 $as_echo '' >> "conftest.nl"
5782 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5784 as_fn_arith $ac_count + 1 && ac_count=$as_val
5785 if test $ac_count -gt ${ac_path_SED_max-0}; then
5786 # Best one so far, save it but keep looking for a better one
5787 ac_cv_path_SED="$ac_path_SED"
5788 ac_path_SED_max=$ac_count
5789 fi
5790 # 10*(2^10) chars as input seems more than enough
5791 test $ac_count -gt 10 && break
5792 done
5793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794esac
5795
5796 $ac_path_SED_found && break 3
7357c5b6
AM
5797 done
5798 done
81ecdfbb 5799 done
7357c5b6 5800IFS=$as_save_IFS
81ecdfbb
RW
5801 if test -z "$ac_cv_path_SED"; then
5802 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5803 fi
81ecdfbb
RW
5804else
5805 ac_cv_path_SED=$SED
7357c5b6 5806fi
20e95c23 5807
81ecdfbb
RW
5808fi
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5810$as_echo "$ac_cv_path_SED" >&6; }
5811 SED="$ac_cv_path_SED"
5812 rm -f conftest.sed
20e95c23 5813
7357c5b6
AM
5814test -z "$SED" && SED=sed
5815Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5816
5817
5818
5819
5820
5821
20e95c23 5822
20e95c23 5823
d7040cdb 5824
d7040cdb 5825
7357c5b6 5826
81ecdfbb
RW
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5828$as_echo_n "checking for fgrep... " >&6; }
5829if test "${ac_cv_path_FGREP+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
7357c5b6 5831else
81ecdfbb
RW
5832 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5833 then ac_cv_path_FGREP="$GREP -F"
5834 else
5835 if test -z "$FGREP"; then
5836 ac_path_FGREP_found=false
5837 # Loop through the user's path and test for each of PROGNAME-LIST
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5840do
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_prog in fgrep; do
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5846 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5847# Check for GNU ac_path_FGREP and select it if it is found.
5848 # Check for GNU $ac_path_FGREP
5849case `"$ac_path_FGREP" --version 2>&1` in
5850*GNU*)
5851 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5852*)
5853 ac_count=0
5854 $as_echo_n 0123456789 >"conftest.in"
5855 while :
5856 do
5857 cat "conftest.in" "conftest.in" >"conftest.tmp"
5858 mv "conftest.tmp" "conftest.in"
5859 cp "conftest.in" "conftest.nl"
5860 $as_echo 'FGREP' >> "conftest.nl"
5861 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5863 as_fn_arith $ac_count + 1 && ac_count=$as_val
5864 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5865 # Best one so far, save it but keep looking for a better one
5866 ac_cv_path_FGREP="$ac_path_FGREP"
5867 ac_path_FGREP_max=$ac_count
7357c5b6 5868 fi
81ecdfbb
RW
5869 # 10*(2^10) chars as input seems more than enough
5870 test $ac_count -gt 10 && break
5871 done
5872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5873esac
5874
5875 $ac_path_FGREP_found && break 3
5876 done
5877 done
5878 done
5879IFS=$as_save_IFS
5880 if test -z "$ac_cv_path_FGREP"; then
5881 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5882 fi
5883else
5884 ac_cv_path_FGREP=$FGREP
5885fi
5886
5887 fi
20e95c23 5888fi
81ecdfbb
RW
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5890$as_echo "$ac_cv_path_FGREP" >&6; }
5891 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5892
5893
5894test -z "$GREP" && GREP=grep
5895
d7040cdb
SE
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
20e95c23 5907
ce2cded5 5908
d7040cdb 5909
7357c5b6
AM
5910
5911
5912
5913
81ecdfbb
RW
5914# Check whether --with-gnu-ld was given.
5915if test "${with_gnu_ld+set}" = set; then :
5916 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5917else
5918 with_gnu_ld=no
81ecdfbb
RW
5919fi
5920
7357c5b6
AM
5921ac_prog=ld
5922if test "$GCC" = yes; then
5923 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5925$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5926 case $host in
5927 *-*-mingw*)
5928 # gcc leaves a trailing carriage return which upsets mingw
5929 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5930 *)
5931 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5932 esac
5933 case $ac_prog in
5934 # Accept absolute paths.
5935 [\\/]* | ?:[\\/]*)
5936 re_direlt='/[^/][^/]*/\.\./'
5937 # Canonicalize the pathname of ld
5938 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5939 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5940 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5941 done
5942 test -z "$LD" && LD="$ac_prog"
5943 ;;
5944 "")
5945 # If it fails, then pretend we aren't using GCC.
5946 ac_prog=ld
5947 ;;
5948 *)
5949 # If it is relative, then search for the first ld in PATH.
5950 with_gnu_ld=unknown
5951 ;;
5952 esac
5953elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5955$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5956else
81ecdfbb
RW
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5958$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5959fi
81ecdfbb
RW
5960if test "${lt_cv_path_LD+set}" = set; then :
5961 $as_echo_n "(cached) " >&6
ce2cded5 5962else
7357c5b6
AM
5963 if test -z "$LD"; then
5964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965 for ac_dir in $PATH; do
5966 IFS="$lt_save_ifs"
5967 test -z "$ac_dir" && ac_dir=.
5968 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5969 lt_cv_path_LD="$ac_dir/$ac_prog"
5970 # Check to see if the program is GNU ld. I'd rather use --version,
5971 # but apparently some variants of GNU ld only accept -v.
5972 # Break only if it was the GNU/non-GNU ld that we prefer.
5973 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5974 *GNU* | *'with BFD'*)
5975 test "$with_gnu_ld" != no && break
5976 ;;
5977 *)
5978 test "$with_gnu_ld" != yes && break
5979 ;;
5980 esac
5981 fi
5982 done
5983 IFS="$lt_save_ifs"
ce2cded5 5984else
7357c5b6 5985 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5986fi
5987fi
7357c5b6
AM
5988
5989LD="$lt_cv_path_LD"
5990if test -n "$LD"; then
81ecdfbb
RW
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5992$as_echo "$LD" >&6; }
ce2cded5 5993else
81ecdfbb
RW
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
ce2cded5 5996fi
81ecdfbb
RW
5997test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5999$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6000if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
ce2cded5 6002else
7357c5b6
AM
6003 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6004case `$LD -v 2>&1 </dev/null` in
6005*GNU* | *'with BFD'*)
6006 lt_cv_prog_gnu_ld=yes
6007 ;;
6008*)
6009 lt_cv_prog_gnu_ld=no
6010 ;;
6011esac
ce2cded5 6012fi
81ecdfbb
RW
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6014$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6015with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6016
6017
6018
6019
6020
6021
6022
6023
6024
81ecdfbb
RW
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6026$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6027if test "${lt_cv_path_NM+set}" = set; then :
6028 $as_echo_n "(cached) " >&6
ce2cded5 6029else
7357c5b6
AM
6030 if test -n "$NM"; then
6031 # Let the user override the test.
6032 lt_cv_path_NM="$NM"
ce2cded5 6033else
7357c5b6
AM
6034 lt_nm_to_check="${ac_tool_prefix}nm"
6035 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6036 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6037 fi
7357c5b6
AM
6038 for lt_tmp_nm in $lt_nm_to_check; do
6039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6040 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6041 IFS="$lt_save_ifs"
6042 test -z "$ac_dir" && ac_dir=.
6043 tmp_nm="$ac_dir/$lt_tmp_nm"
6044 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6045 # Check to see if the nm accepts a BSD-compat flag.
6046 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6047 # nm: unknown option "B" ignored
6048 # Tru64's nm complains that /dev/null is an invalid object file
6049 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6050 */dev/null* | *'Invalid file or object type'*)
6051 lt_cv_path_NM="$tmp_nm -B"
6052 break
6053 ;;
6054 *)
6055 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6056 */dev/null*)
6057 lt_cv_path_NM="$tmp_nm -p"
6058 break
6059 ;;
6060 *)
6061 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6062 continue # so that we can try to find one that supports BSD flags
6063 ;;
6064 esac
6065 ;;
6066 esac
6067 fi
6068 done
6069 IFS="$lt_save_ifs"
6070 done
6071 : ${lt_cv_path_NM=no}
ce2cded5
L
6072fi
6073fi
81ecdfbb
RW
6074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6075$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6076if test "$lt_cv_path_NM" != "no"; then
6077 NM="$lt_cv_path_NM"
ce2cded5 6078else
7357c5b6 6079 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6080 if test -n "$DUMPBIN"; then :
6081 # Let the user override the test.
6082 else
6083 if test -n "$ac_tool_prefix"; then
6084 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6085 do
6086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
20e95c23 6092else
7357c5b6
AM
6093 if test -n "$DUMPBIN"; then
6094 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6103 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6105 break 2
6106 fi
6107done
81ecdfbb
RW
6108 done
6109IFS=$as_save_IFS
d7040cdb 6110
20e95c23 6111fi
ce2cded5 6112fi
7357c5b6
AM
6113DUMPBIN=$ac_cv_prog_DUMPBIN
6114if test -n "$DUMPBIN"; then
81ecdfbb
RW
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6116$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6117else
81ecdfbb
RW
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
42ecbf5e
DJ
6120fi
6121
81ecdfbb 6122
7357c5b6
AM
6123 test -n "$DUMPBIN" && break
6124 done
ce2cded5 6125fi
7357c5b6
AM
6126if test -z "$DUMPBIN"; then
6127 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6128 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6129do
6130 # Extract the first word of "$ac_prog", so it can be a program name with args.
6131set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6135 $as_echo_n "(cached) " >&6
42ecbf5e 6136else
7357c5b6
AM
6137 if test -n "$ac_ct_DUMPBIN"; then
6138 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6147 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6149 break 2
6150 fi
6151done
81ecdfbb
RW
6152 done
6153IFS=$as_save_IFS
d7040cdb 6154
ce2cded5
L
6155fi
6156fi
7357c5b6
AM
6157ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6158if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6160$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6161else
81ecdfbb
RW
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
ce2cded5 6164fi
d7040cdb 6165
81ecdfbb 6166
7357c5b6 6167 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6168done
d7040cdb 6169
81ecdfbb
RW
6170 if test "x$ac_ct_DUMPBIN" = x; then
6171 DUMPBIN=":"
6172 else
6173 case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177ac_tool_warned=yes ;;
6178esac
6179 DUMPBIN=$ac_ct_DUMPBIN
6180 fi
ce2cded5 6181fi
7357c5b6 6182
3725885a
RW
6183 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6184 *COFF*)
6185 DUMPBIN="$DUMPBIN -symbols"
6186 ;;
6187 *)
6188 DUMPBIN=:
6189 ;;
6190 esac
6191 fi
7357c5b6
AM
6192
6193 if test "$DUMPBIN" != ":"; then
6194 NM="$DUMPBIN"
6195 fi
ce2cded5 6196fi
7357c5b6
AM
6197test -z "$NM" && NM=nm
6198
6199
6200
6201
6202
6203
81ecdfbb
RW
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6205$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6206if test "${lt_cv_nm_interface+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
20e95c23 6208else
7357c5b6
AM
6209 lt_cv_nm_interface="BSD nm"
6210 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6211 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6212 (eval "$ac_compile" 2>conftest.err)
6213 cat conftest.err >&5
3725885a 6214 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6215 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6216 cat conftest.err >&5
3725885a 6217 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6218 cat conftest.out >&5
6219 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6220 lt_cv_nm_interface="MS dumpbin"
6221 fi
6222 rm -f conftest*
20e95c23 6223fi
81ecdfbb
RW
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6225$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6226
81ecdfbb
RW
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6228$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6229LN_S=$as_ln_s
6230if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6232$as_echo "yes" >&6; }
ce2cded5 6233else
81ecdfbb
RW
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6235$as_echo "no, using $LN_S" >&6; }
d7040cdb 6236fi
20e95c23 6237
7357c5b6 6238# find the maximum length of command line arguments
81ecdfbb
RW
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6240$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6241if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6242 $as_echo_n "(cached) " >&6
7357c5b6
AM
6243else
6244 i=0
6245 teststring="ABCD"
20e95c23 6246
7357c5b6
AM
6247 case $build_os in
6248 msdosdjgpp*)
6249 # On DJGPP, this test can blow up pretty badly due to problems in libc
6250 # (any single argument exceeding 2000 bytes causes a buffer overrun
6251 # during glob expansion). Even if it were fixed, the result of this
6252 # check would be larger than it should be.
6253 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6254 ;;
20e95c23 6255
7357c5b6
AM
6256 gnu*)
6257 # Under GNU Hurd, this test is not required because there is
6258 # no limit to the length of command line arguments.
6259 # Libtool will interpret -1 as no limit whatsoever
6260 lt_cv_sys_max_cmd_len=-1;
6261 ;;
20e95c23 6262
b214d478 6263 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6264 # On Win9x/ME, this test blows up -- it succeeds, but takes
6265 # about 5 minutes as the teststring grows exponentially.
6266 # Worse, since 9x/ME are not pre-emptively multitasking,
6267 # you end up with a "frozen" computer, even though with patience
6268 # the test eventually succeeds (with a max line length of 256k).
6269 # Instead, let's just punt: use the minimum linelength reported by
6270 # all of the supported platforms: 8192 (on NT/2K/XP).
6271 lt_cv_sys_max_cmd_len=8192;
6272 ;;
20e95c23 6273
3725885a
RW
6274 mint*)
6275 # On MiNT this can take a long time and run out of memory.
6276 lt_cv_sys_max_cmd_len=8192;
6277 ;;
6278
7357c5b6
AM
6279 amigaos*)
6280 # On AmigaOS with pdksh, this test takes hours, literally.
6281 # So we just punt and use a minimum line length of 8192.
6282 lt_cv_sys_max_cmd_len=8192;
6283 ;;
20e95c23 6284
7357c5b6
AM
6285 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286 # This has been around since 386BSD, at least. Likely further.
6287 if test -x /sbin/sysctl; then
6288 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289 elif test -x /usr/sbin/sysctl; then
6290 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6291 else
6292 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6293 fi
6294 # And add a safety zone
6295 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6297 ;;
d7040cdb 6298
7357c5b6
AM
6299 interix*)
6300 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6301 lt_cv_sys_max_cmd_len=196608
6302 ;;
d7040cdb 6303
7357c5b6
AM
6304 osf*)
6305 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307 # nice to cause kernel panics so lets avoid the loop below.
6308 # First set a reasonable default.
6309 lt_cv_sys_max_cmd_len=16384
6310 #
6311 if test -x /sbin/sysconfig; then
6312 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6314 esac
6315 fi
6316 ;;
6317 sco3.2v5*)
6318 lt_cv_sys_max_cmd_len=102400
6319 ;;
6320 sysv5* | sco5v6* | sysv4.2uw2*)
6321 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322 if test -n "$kargmax"; then
6323 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6324 else
6325 lt_cv_sys_max_cmd_len=32768
6326 fi
ce2cded5
L
6327 ;;
6328 *)
b214d478
SE
6329 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6333 else
6334 # Make teststring a little bigger before we do anything with it.
6335 # a 1K string should be a reasonable start.
6336 for i in 1 2 3 4 5 6 7 8 ; do
6337 teststring=$teststring$teststring
6338 done
6339 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6340 # If test is not a shell built-in, we'll probably end up computing a
6341 # maximum length that is only half of the actual maximum length, but
6342 # we can't tell.
3725885a
RW
6343 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6344 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6345 test $i != 17 # 1/2 MB should be enough
6346 do
6347 i=`expr $i + 1`
6348 teststring=$teststring$teststring
6349 done
6350 # Only check the string length outside the loop.
6351 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6352 teststring=
6353 # Add a significant safety factor because C++ compilers can tack on
6354 # massive amounts of additional arguments before passing them to the
6355 # linker. It appears as though 1/2 is a usable value.
6356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6357 fi
ce2cded5
L
6358 ;;
6359 esac
d7040cdb 6360
7357c5b6 6361fi
d7040cdb 6362
7357c5b6 6363if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6365$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6366else
81ecdfbb
RW
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6368$as_echo "none" >&6; }
7357c5b6
AM
6369fi
6370max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6371
6372
6373
6374
6375
d7040cdb 6376
7357c5b6
AM
6377: ${CP="cp -f"}
6378: ${MV="mv -f"}
6379: ${RM="rm -f"}
d7040cdb 6380
81ecdfbb
RW
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6382$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6383# Try some XSI features
6384xsi_shell=no
6385( _lt_dummy="a/b/c"
6386 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6387 = c,a/b,, \
6388 && eval 'test $(( 1 + 1 )) -eq 2 \
6389 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6390 && xsi_shell=yes
81ecdfbb
RW
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6392$as_echo "$xsi_shell" >&6; }
d7040cdb 6393
d7040cdb 6394
81ecdfbb
RW
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6396$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6397lt_shell_append=no
6398( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6399 >/dev/null 2>&1 \
6400 && lt_shell_append=yes
81ecdfbb
RW
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6402$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6403
6404
7357c5b6
AM
6405if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6406 lt_unset=unset
6407else
6408 lt_unset=false
6409fi
d7040cdb 6410
d7040cdb 6411
d7040cdb 6412
d7040cdb 6413
d7040cdb 6414
7357c5b6
AM
6415# test EBCDIC or ASCII
6416case `echo X|tr X '\101'` in
6417 A) # ASCII based system
6418 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6419 lt_SP2NL='tr \040 \012'
6420 lt_NL2SP='tr \015\012 \040\040'
6421 ;;
6422 *) # EBCDIC based system
6423 lt_SP2NL='tr \100 \n'
6424 lt_NL2SP='tr \r\n \100\100'
6425 ;;
6426esac
42ecbf5e 6427
d7040cdb
SE
6428
6429
6430
6431
6432
6433
d7040cdb 6434
d7040cdb 6435
81ecdfbb
RW
6436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6437$as_echo_n "checking for $LD option to reload object files... " >&6; }
6438if test "${lt_cv_ld_reload_flag+set}" = set; then :
6439 $as_echo_n "(cached) " >&6
7357c5b6
AM
6440else
6441 lt_cv_ld_reload_flag='-r'
6442fi
81ecdfbb
RW
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6444$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6445reload_flag=$lt_cv_ld_reload_flag
6446case $reload_flag in
6447"" | " "*) ;;
6448*) reload_flag=" $reload_flag" ;;
6449esac
6450reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451case $host_os in
6452 darwin*)
6453 if test "$GCC" = yes; then
6454 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6455 else
6456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6457 fi
6458 ;;
6459esac
d7040cdb 6460
d7040cdb 6461
d7040cdb 6462
d7040cdb 6463
d7040cdb 6464
d7040cdb 6465
d7040cdb 6466
d7040cdb 6467
d7040cdb 6468
b214d478
SE
6469if test -n "$ac_tool_prefix"; then
6470 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6471set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
b214d478
SE
6476else
6477 if test -n "$OBJDUMP"; then
6478 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6487 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6489 break 2
6490 fi
6491done
81ecdfbb
RW
6492 done
6493IFS=$as_save_IFS
b214d478
SE
6494
6495fi
6496fi
6497OBJDUMP=$ac_cv_prog_OBJDUMP
6498if test -n "$OBJDUMP"; then
81ecdfbb
RW
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6500$as_echo "$OBJDUMP" >&6; }
b214d478 6501else
81ecdfbb
RW
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
b214d478
SE
6504fi
6505
81ecdfbb 6506
b214d478
SE
6507fi
6508if test -z "$ac_cv_prog_OBJDUMP"; then
6509 ac_ct_OBJDUMP=$OBJDUMP
6510 # Extract the first word of "objdump", so it can be a program name with args.
6511set dummy objdump; ac_word=$2
81ecdfbb
RW
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513$as_echo_n "checking for $ac_word... " >&6; }
6514if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
b214d478
SE
6516else
6517 if test -n "$ac_ct_OBJDUMP"; then
6518 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6525 for ac_exec_ext in '' $ac_executable_extensions; do
6526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6527 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6529 break 2
6530 fi
6531done
81ecdfbb
RW
6532 done
6533IFS=$as_save_IFS
b214d478 6534
b214d478
SE
6535fi
6536fi
6537ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6538if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6540$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6541else
81ecdfbb
RW
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543$as_echo "no" >&6; }
b214d478
SE
6544fi
6545
81ecdfbb
RW
6546 if test "x$ac_ct_OBJDUMP" = x; then
6547 OBJDUMP="false"
6548 else
6549 case $cross_compiling:$ac_tool_warned in
6550yes:)
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555 OBJDUMP=$ac_ct_OBJDUMP
6556 fi
b214d478
SE
6557else
6558 OBJDUMP="$ac_cv_prog_OBJDUMP"
6559fi
6560
6561test -z "$OBJDUMP" && OBJDUMP=objdump
6562
6563
6564
6565
6566
6567
6568
6569
d7040cdb 6570
81ecdfbb
RW
6571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6572$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6573if test "${lt_cv_deplibs_check_method+set}" = set; then :
6574 $as_echo_n "(cached) " >&6
ce2cded5 6575else
7357c5b6
AM
6576 lt_cv_file_magic_cmd='$MAGIC_CMD'
6577lt_cv_file_magic_test_file=
6578lt_cv_deplibs_check_method='unknown'
6579# Need to set the preceding variable on all platforms that support
6580# interlibrary dependencies.
6581# 'none' -- dependencies not supported.
6582# `unknown' -- same as none, but documents that we really don't know.
6583# 'pass_all' -- all dependencies passed with no checks.
6584# 'test_compile' -- check by making test program.
6585# 'file_magic [[regex]]' -- check by looking for files in library path
6586# which responds to the $file_magic_cmd with a given extended regex.
6587# If you have `file' or equivalent on your system and you're not sure
6588# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6589
ce2cded5 6590case $host_os in
7357c5b6
AM
6591aix[4-9]*)
6592 lt_cv_deplibs_check_method=pass_all
ce2cded5 6593 ;;
7357c5b6
AM
6594
6595beos*)
6596 lt_cv_deplibs_check_method=pass_all
ce2cded5 6597 ;;
7357c5b6
AM
6598
6599bsdi[45]*)
6600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6601 lt_cv_file_magic_cmd='/usr/bin/file -L'
6602 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6603 ;;
7357c5b6
AM
6604
6605cygwin*)
6606 # func_win32_libid is a shell function defined in ltmain.sh
6607 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6608 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6609 ;;
7357c5b6
AM
6610
6611mingw* | pw32*)
6612 # Base MSYS/MinGW do not provide the 'file' command needed by
6613 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6614 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6615 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6616 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6618 lt_cv_file_magic_cmd='func_win32_libid'
6619 else
6620 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6621 lt_cv_file_magic_cmd='$OBJDUMP -f'
6622 fi
ce2cded5 6623 ;;
7357c5b6 6624
3725885a 6625cegcc*)
b214d478
SE
6626 # use the weaker test based on 'objdump'. See mingw*.
6627 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6628 lt_cv_file_magic_cmd='$OBJDUMP -f'
6629 ;;
6630
7357c5b6
AM
6631darwin* | rhapsody*)
6632 lt_cv_deplibs_check_method=pass_all
ce2cded5 6633 ;;
7357c5b6
AM
6634
6635freebsd* | dragonfly*)
6636 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6637 case $host_cpu in
6638 i*86 )
6639 # Not sure whether the presence of OpenBSD here was a mistake.
6640 # Let's accept both of them until this is cleared up.
6641 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6642 lt_cv_file_magic_cmd=/usr/bin/file
6643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6644 ;;
6645 esac
6646 else
6647 lt_cv_deplibs_check_method=pass_all
6648 fi
ce2cded5 6649 ;;
7357c5b6
AM
6650
6651gnu*)
6652 lt_cv_deplibs_check_method=pass_all
ce2cded5 6653 ;;
7357c5b6 6654
3725885a
RW
6655haiku*)
6656 lt_cv_deplibs_check_method=pass_all
6657 ;;
6658
7357c5b6
AM
6659hpux10.20* | hpux11*)
6660 lt_cv_file_magic_cmd=/usr/bin/file
6661 case $host_cpu in
6662 ia64*)
6663 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6664 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6665 ;;
6666 hppa*64*)
3725885a 6667 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]'
7357c5b6
AM
6668 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6669 ;;
6670 *)
3725885a 6671 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6672 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6673 ;;
6674 esac
ce2cded5 6675 ;;
d7040cdb 6676
7357c5b6
AM
6677interix[3-9]*)
6678 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6680 ;;
d7040cdb 6681
7357c5b6
AM
6682irix5* | irix6* | nonstopux*)
6683 case $LD in
6684 *-32|*"-32 ") libmagic=32-bit;;
6685 *-n32|*"-n32 ") libmagic=N32;;
6686 *-64|*"-64 ") libmagic=64-bit;;
6687 *) libmagic=never-match;;
6688 esac
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
d7040cdb 6691
7357c5b6 6692# This must be Linux ELF.
58e24671 6693linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6694 lt_cv_deplibs_check_method=pass_all
6695 ;;
d7040cdb 6696
7357c5b6
AM
6697netbsd*)
6698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6700 else
6701 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6702 fi
ce2cded5 6703 ;;
d7040cdb 6704
7357c5b6
AM
6705newos6*)
6706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6707 lt_cv_file_magic_cmd=/usr/bin/file
6708 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6709 ;;
d7040cdb 6710
7357c5b6
AM
6711*nto* | *qnx*)
6712 lt_cv_deplibs_check_method=pass_all
6713 ;;
d7040cdb 6714
7357c5b6
AM
6715openbsd*)
6716 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6718 else
7357c5b6 6719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6720 fi
7357c5b6 6721 ;;
d7040cdb 6722
7357c5b6
AM
6723osf3* | osf4* | osf5*)
6724 lt_cv_deplibs_check_method=pass_all
6725 ;;
d7040cdb 6726
7357c5b6
AM
6727rdos*)
6728 lt_cv_deplibs_check_method=pass_all
6729 ;;
d7040cdb 6730
7357c5b6
AM
6731solaris*)
6732 lt_cv_deplibs_check_method=pass_all
6733 ;;
d7040cdb 6734
7357c5b6
AM
6735sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
d7040cdb 6738
7357c5b6
AM
6739sysv4 | sysv4.3*)
6740 case $host_vendor in
6741 motorola)
6742 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]'
6743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6744 ;;
6745 ncr)
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748 sequent)
6749 lt_cv_file_magic_cmd='/bin/file'
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6751 ;;
6752 sni)
6753 lt_cv_file_magic_cmd='/bin/file'
6754 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6755 lt_cv_file_magic_test_file=/lib/libc.so
6756 ;;
6757 siemens)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760 pc)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763 esac
6764 ;;
d7040cdb 6765
7357c5b6
AM
6766tpf*)
6767 lt_cv_deplibs_check_method=pass_all
6768 ;;
6769esac
d7040cdb 6770
7357c5b6 6771fi
81ecdfbb
RW
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6773$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6774file_magic_cmd=$lt_cv_file_magic_cmd
6775deplibs_check_method=$lt_cv_deplibs_check_method
6776test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6777
6778
6779
7357c5b6
AM
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6791set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793$as_echo_n "checking for $ac_word... " >&6; }
6794if test "${ac_cv_prog_AR+set}" = set; then :
6795 $as_echo_n "(cached) " >&6
7357c5b6
AM
6796else
6797 if test -n "$AR"; then
6798 ac_cv_prog_AR="$AR" # Let the user override the test.
6799else
6800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801for as_dir in $PATH
6802do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6807 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6809 break 2
ce2cded5
L
6810 fi
6811done
81ecdfbb
RW
6812 done
6813IFS=$as_save_IFS
d7040cdb 6814
42ecbf5e 6815fi
ce2cded5 6816fi
7357c5b6
AM
6817AR=$ac_cv_prog_AR
6818if test -n "$AR"; then
81ecdfbb
RW
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6820$as_echo "$AR" >&6; }
42ecbf5e 6821else
81ecdfbb
RW
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823$as_echo "no" >&6; }
42ecbf5e
DJ
6824fi
6825
81ecdfbb 6826
7357c5b6
AM
6827fi
6828if test -z "$ac_cv_prog_AR"; then
6829 ac_ct_AR=$AR
6830 # Extract the first word of "ar", so it can be a program name with args.
6831set dummy ar; ac_word=$2
81ecdfbb
RW
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833$as_echo_n "checking for $ac_word... " >&6; }
6834if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6835 $as_echo_n "(cached) " >&6
7357c5b6
AM
6836else
6837 if test -n "$ac_ct_AR"; then
6838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6847 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6849 break 2
6850 fi
6851done
81ecdfbb
RW
6852 done
6853IFS=$as_save_IFS
42ecbf5e 6854
7357c5b6
AM
6855fi
6856fi
6857ac_ct_AR=$ac_cv_prog_ac_ct_AR
6858if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6860$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6861else
81ecdfbb
RW
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863$as_echo "no" >&6; }
7357c5b6 6864fi
d7040cdb 6865
81ecdfbb
RW
6866 if test "x$ac_ct_AR" = x; then
6867 AR="false"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870yes:)
6871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875 AR=$ac_ct_AR
6876 fi
7357c5b6
AM
6877else
6878 AR="$ac_cv_prog_AR"
6879fi
d7040cdb 6880
7357c5b6
AM
6881test -z "$AR" && AR=ar
6882test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6883
6884
6885
20e95c23 6886
d7040cdb 6887
d7040cdb
SE
6888
6889
6890
6891
6892
6893
7357c5b6
AM
6894if test -n "$ac_tool_prefix"; then
6895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6896set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if test "${ac_cv_prog_STRIP+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
7357c5b6
AM
6901else
6902 if test -n "$STRIP"; then
6903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908 IFS=$as_save_IFS
6909 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6910 for ac_exec_ext in '' $ac_executable_extensions; do
6911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6914 break 2
ce2cded5 6915 fi
7357c5b6 6916done
81ecdfbb
RW
6917 done
6918IFS=$as_save_IFS
d7040cdb 6919
7357c5b6
AM
6920fi
6921fi
6922STRIP=$ac_cv_prog_STRIP
6923if test -n "$STRIP"; then
81ecdfbb
RW
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6925$as_echo "$STRIP" >&6; }
7357c5b6 6926else
81ecdfbb
RW
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
7357c5b6
AM
6929fi
6930
81ecdfbb 6931
7357c5b6
AM
6932fi
6933if test -z "$ac_cv_prog_STRIP"; then
6934 ac_ct_STRIP=$STRIP
6935 # Extract the first word of "strip", so it can be a program name with args.
6936set dummy strip; ac_word=$2
81ecdfbb
RW
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
7357c5b6
AM
6941else
6942 if test -n "$ac_ct_STRIP"; then
6943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6944else
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6952 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6954 break 2
ce2cded5 6955 fi
7357c5b6 6956done
81ecdfbb
RW
6957 done
6958IFS=$as_save_IFS
d7040cdb 6959
7357c5b6
AM
6960fi
6961fi
6962ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6963if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6965$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6966else
81ecdfbb
RW
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
7357c5b6 6969fi
d7040cdb 6970
81ecdfbb
RW
6971 if test "x$ac_ct_STRIP" = x; then
6972 STRIP=":"
6973 else
6974 case $cross_compiling:$ac_tool_warned in
6975yes:)
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6978ac_tool_warned=yes ;;
6979esac
6980 STRIP=$ac_ct_STRIP
6981 fi
7357c5b6
AM
6982else
6983 STRIP="$ac_cv_prog_STRIP"
6984fi
d7040cdb 6985
7357c5b6 6986test -z "$STRIP" && STRIP=:
d7040cdb 6987
d7040cdb
SE
6988
6989
6990
d7040cdb 6991
7357c5b6
AM
6992
6993if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if test "${ac_cv_prog_RANLIB+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
ce2cded5 7000else
7357c5b6
AM
7001 if test -n "$RANLIB"; then
7002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
ce2cded5 7006do
7357c5b6
AM
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7013 break 2
ce2cded5 7014 fi
7357c5b6 7015done
81ecdfbb
RW
7016 done
7017IFS=$as_save_IFS
7357c5b6 7018
ce2cded5 7019fi
7357c5b6
AM
7020fi
7021RANLIB=$ac_cv_prog_RANLIB
7022if test -n "$RANLIB"; then
81ecdfbb
RW
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7024$as_echo "$RANLIB" >&6; }
ce2cded5 7025else
81ecdfbb
RW
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
ce2cded5 7028fi
d7040cdb 7029
81ecdfbb 7030
7357c5b6
AM
7031fi
7032if test -z "$ac_cv_prog_RANLIB"; then
7033 ac_ct_RANLIB=$RANLIB
7034 # Extract the first word of "ranlib", so it can be a program name with args.
7035set dummy ranlib; ac_word=$2
81ecdfbb
RW
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
7038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7039 $as_echo_n "(cached) " >&6
ce2cded5 7040else
7357c5b6
AM
7041 if test -n "$ac_ct_RANLIB"; then
7042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047 IFS=$as_save_IFS
7048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7051 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7053 break 2
7054 fi
7055done
81ecdfbb
RW
7056 done
7057IFS=$as_save_IFS
7357c5b6 7058
ce2cded5 7059fi
7357c5b6
AM
7060fi
7061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7062if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7064$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7065else
81ecdfbb
RW
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
ce2cded5 7068fi
d7040cdb 7069
81ecdfbb
RW
7070 if test "x$ac_ct_RANLIB" = x; then
7071 RANLIB=":"
7072 else
7073 case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079 RANLIB=$ac_ct_RANLIB
7080 fi
7357c5b6
AM
7081else
7082 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7083fi
d7040cdb 7084
7357c5b6 7085test -z "$RANLIB" && RANLIB=:
d7040cdb 7086
7357c5b6
AM
7087
7088
7089
7090
7091
7092# Determine commands to create old-style static archives.
b214d478 7093old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7094old_postinstall_cmds='chmod 644 $oldlib'
7095old_postuninstall_cmds=
7096
7097if test -n "$RANLIB"; then
7098 case $host_os in
7099 openbsd*)
7100 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7101 ;;
7102 *)
7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7104 ;;
7105 esac
7106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7107fi
7357c5b6 7108
3725885a
RW
7109case $host_os in
7110 darwin*)
7111 lock_old_archive_extraction=yes ;;
7112 *)
7113 lock_old_archive_extraction=no ;;
7114esac
7115
7116
7117
7118
7119
7120
7357c5b6
AM
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154# If no C compiler was specified, use CC.
7155LTCC=${LTCC-"$CC"}
7156
7157# If no C compiler flags were specified, use CFLAGS.
7158LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7159
7160# Allow CC to be a program name with arguments.
7161compiler=$CC
7162
7163
7164# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7166$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7167if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
ce2cded5 7169else
d7040cdb 7170
7357c5b6
AM
7171# These are sane defaults that work on at least a few old systems.
7172# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7173
7357c5b6
AM
7174# Character class describing NM global symbol codes.
7175symcode='[BCDEGRST]'
7176
7177# Regexp to match symbols that can be accessed directly from C.
7178sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7179
7180# Define system-specific variables.
7181case $host_os in
7182aix*)
7183 symcode='[BCDT]'
7184 ;;
b214d478 7185cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7186 symcode='[ABCDGISTW]'
7187 ;;
7188hpux*)
7189 if test "$host_cpu" = ia64; then
7190 symcode='[ABCDEGRST]'
ce2cded5 7191 fi
7357c5b6
AM
7192 ;;
7193irix* | nonstopux*)
7194 symcode='[BCDEGRST]'
7195 ;;
7196osf*)
7197 symcode='[BCDEGQRST]'
7198 ;;
7199solaris*)
7200 symcode='[BDRT]'
7201 ;;
7202sco3.2v5*)
7203 symcode='[DT]'
7204 ;;
7205sysv4.2uw2*)
7206 symcode='[DT]'
7207 ;;
7208sysv5* | sco5v6* | unixware* | OpenUNIX*)
7209 symcode='[ABDT]'
7210 ;;
7211sysv4)
7212 symcode='[DFNSTU]'
7213 ;;
7214esac
d7040cdb 7215
7357c5b6
AM
7216# If we're using GNU nm, then use its standard symbol codes.
7217case `$NM -V 2>&1` in
7218*GNU* | *'with BFD'*)
7219 symcode='[ABCDGIRSTW]' ;;
7220esac
d7040cdb 7221
7357c5b6
AM
7222# Transform an extracted symbol line into a proper C declaration.
7223# Some systems (esp. on ia64) link data and code symbols differently,
7224# so use this general approach.
7225lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7226
7227# Transform an extracted symbol line into symbol name and symbol address
7228lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7229lt_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'"
7357c5b6
AM
7230
7231# Handle CRLF in mingw tool chain
7232opt_cr=
7233case $build_os in
7234mingw*)
7235 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7236 ;;
7237esac
d7040cdb 7238
7357c5b6
AM
7239# Try without a prefix underscore, then with it.
7240for ac_symprfx in "" "_"; do
d7040cdb 7241
7357c5b6
AM
7242 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7243 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7244
7357c5b6
AM
7245 # Write the raw and C identifiers.
7246 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7247 # Fake it for dumpbin and say T for any non-static function
7248 # and D for any global variable.
7249 # Also find C++ and __fastcall symbols from MSVC++,
7250 # which start with @ or ?.
7251 lt_cv_sys_global_symbol_pipe="$AWK '"\
7252" {last_section=section; section=\$ 3};"\
7253" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7254" \$ 0!~/External *\|/{next};"\
7255" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7256" {if(hide[section]) next};"\
7257" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7258" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7259" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7260" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7261" ' prfx=^$ac_symprfx"
7262 else
7263 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7264 fi
d7040cdb 7265
7357c5b6
AM
7266 # Check to see that the pipe works correctly.
7267 pipe_works=no
d7040cdb 7268
7357c5b6
AM
7269 rm -f conftest*
7270 cat > conftest.$ac_ext <<_LT_EOF
7271#ifdef __cplusplus
7272extern "C" {
7273#endif
7274char nm_test_var;
7275void nm_test_func(void);
7276void nm_test_func(void){}
7277#ifdef __cplusplus
20e95c23 7278}
7357c5b6
AM
7279#endif
7280int main(){nm_test_var='a';nm_test_func();return(0);}
7281_LT_EOF
7282
81ecdfbb 7283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7284 (eval $ac_compile) 2>&5
20e95c23 7285 ac_status=$?
81ecdfbb
RW
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }; then
7357c5b6
AM
7288 # Now try to grab the symbols.
7289 nlist=conftest.nm
3725885a
RW
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7291 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7292 ac_status=$?
81ecdfbb
RW
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7295 # Try sorting and uniquifying the output.
7296 if sort "$nlist" | uniq > "$nlist"T; then
7297 mv -f "$nlist"T "$nlist"
7298 else
7299 rm -f "$nlist"T
7300 fi
d7040cdb 7301
7357c5b6
AM
7302 # Make sure that we snagged all the symbols we need.
7303 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7304 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7305 cat <<_LT_EOF > conftest.$ac_ext
7306#ifdef __cplusplus
7307extern "C" {
7308#endif
ce2cded5 7309
7357c5b6
AM
7310_LT_EOF
7311 # Now generate the symbol file.
7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7313
7357c5b6 7314 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7315
7357c5b6
AM
7316/* The mapping between symbol names and symbols. */
7317const struct {
7318 const char *name;
7319 void *address;
7320}
7321lt__PROGRAM__LTX_preloaded_symbols[] =
7322{
7323 { "@PROGRAM@", (void *) 0 },
7324_LT_EOF
7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326 cat <<\_LT_EOF >> conftest.$ac_ext
7327 {0, (void *) 0}
7328};
d7040cdb 7329
7357c5b6
AM
7330/* This works around a problem in FreeBSD linker */
7331#ifdef FREEBSD_WORKAROUND
7332static const void *lt_preloaded_setup() {
7333 return lt__PROGRAM__LTX_preloaded_symbols;
7334}
ce2cded5 7335#endif
42ecbf5e 7336
7357c5b6 7337#ifdef __cplusplus
ce2cded5 7338}
7357c5b6
AM
7339#endif
7340_LT_EOF
7341 # Now try linking the two files.
7342 mv conftest.$ac_objext conftstm.$ac_objext
7343 lt_save_LIBS="$LIBS"
7344 lt_save_CFLAGS="$CFLAGS"
7345 LIBS="conftstm.$ac_objext"
7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7348 (eval $ac_link) 2>&5
7349 ac_status=$?
81ecdfbb
RW
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7352 pipe_works=yes
7353 fi
7354 LIBS="$lt_save_LIBS"
7355 CFLAGS="$lt_save_CFLAGS"
7356 else
7357 echo "cannot find nm_test_func in $nlist" >&5
7358 fi
7359 else
7360 echo "cannot find nm_test_var in $nlist" >&5
7361 fi
7362 else
7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7364 fi
7365 else
7366 echo "$progname: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7368 fi
b214d478 7369 rm -rf conftest* conftst*
7357c5b6
AM
7370
7371 # Do not use the global_symbol_pipe unless it works.
7372 if test "$pipe_works" = yes; then
7373 break
7374 else
7375 lt_cv_sys_global_symbol_pipe=
7376 fi
7377done
42ecbf5e 7378
ce2cded5 7379fi
7357c5b6
AM
7380
7381if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7383fi
7357c5b6 7384if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386$as_echo "failed" >&6; }
7357c5b6 7387else
81ecdfbb
RW
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389$as_echo "ok" >&6; }
ce2cded5 7390fi
e5a52504 7391
d7040cdb 7392
e5a52504 7393
d7040cdb 7394
d7040cdb 7395
d7040cdb 7396
d7040cdb 7397
d7040cdb 7398
d7040cdb 7399
d7040cdb 7400
d7040cdb 7401
d7040cdb 7402
7357c5b6
AM
7403
7404
7405
b214d478
SE
7406
7407
7408
7409
7410
7357c5b6
AM
7411
7412
81ecdfbb
RW
7413# Check whether --enable-libtool-lock was given.
7414if test "${enable_libtool_lock+set}" = set; then :
7415 enableval=$enable_libtool_lock;
7416fi
7357c5b6 7417
7357c5b6
AM
7418test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7419
7420# Some flags need to be propagated to the compiler or linker for good
7421# libtool support.
7422case $host in
7423ia64-*-hpux*)
7424 # Find out which ABI we are using.
7425 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7427 (eval $ac_compile) 2>&5
7428 ac_status=$?
81ecdfbb
RW
7429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; }; then
7357c5b6
AM
7431 case `/usr/bin/file conftest.$ac_objext` in
7432 *ELF-32*)
7433 HPUX_IA64_MODE="32"
7434 ;;
7435 *ELF-64*)
7436 HPUX_IA64_MODE="64"
7437 ;;
7438 esac
7439 fi
7440 rm -rf conftest*
7441 ;;
7442*-*-irix6*)
7443 # Find out which ABI we are using.
3725885a 7444 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7446 (eval $ac_compile) 2>&5
7447 ac_status=$?
81ecdfbb
RW
7448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449 test $ac_status = 0; }; then
7357c5b6
AM
7450 if test "$lt_cv_prog_gnu_ld" = yes; then
7451 case `/usr/bin/file conftest.$ac_objext` in
7452 *32-bit*)
7453 LD="${LD-ld} -melf32bsmip"
7454 ;;
7455 *N32*)
7456 LD="${LD-ld} -melf32bmipn32"
7457 ;;
7458 *64-bit*)
7459 LD="${LD-ld} -melf64bmip"
7460 ;;
7461 esac
7462 else
7463 case `/usr/bin/file conftest.$ac_objext` in
7464 *32-bit*)
7465 LD="${LD-ld} -32"
7466 ;;
7467 *N32*)
7468 LD="${LD-ld} -n32"
7469 ;;
7470 *64-bit*)
7471 LD="${LD-ld} -64"
7472 ;;
7473 esac
7474 fi
7475 fi
7476 rm -rf conftest*
7477 ;;
7478
cc9afea3 7479x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7480s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7481 # Find out which ABI we are using.
7482 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7484 (eval $ac_compile) 2>&5
7485 ac_status=$?
81ecdfbb
RW
7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; }; then
7357c5b6
AM
7488 case `/usr/bin/file conftest.o` in
7489 *32-bit*)
7490 case $host in
7491 x86_64-*kfreebsd*-gnu)
7492 LD="${LD-ld} -m elf_i386_fbsd"
7493 ;;
7494 x86_64-*linux*)
6d2920c8
L
7495 case `/usr/bin/file conftest.o` in
7496 *x86-64*)
7497 LD="${LD-ld} -m elf32_x86_64"
7498 ;;
7499 *)
7500 LD="${LD-ld} -m elf_i386"
7501 ;;
7502 esac
7357c5b6 7503 ;;
cc9afea3
AM
7504 powerpc64le-*linux*)
7505 LD="${LD-ld} -m elf32lppclinux"
7506 ;;
7507 powerpc64-*linux*)
7357c5b6
AM
7508 LD="${LD-ld} -m elf32ppclinux"
7509 ;;
7510 s390x-*linux*)
7511 LD="${LD-ld} -m elf_s390"
7512 ;;
7513 sparc64-*linux*)
7514 LD="${LD-ld} -m elf32_sparc"
7515 ;;
7516 esac
7517 ;;
7518 *64-bit*)
7519 case $host in
7520 x86_64-*kfreebsd*-gnu)
7521 LD="${LD-ld} -m elf_x86_64_fbsd"
7522 ;;
7523 x86_64-*linux*)
7524 LD="${LD-ld} -m elf_x86_64"
7525 ;;
cc9afea3
AM
7526 powerpcle-*linux*)
7527 LD="${LD-ld} -m elf64lppc"
7528 ;;
7529 powerpc-*linux*)
7357c5b6
AM
7530 LD="${LD-ld} -m elf64ppc"
7531 ;;
7532 s390*-*linux*|s390*-*tpf*)
7533 LD="${LD-ld} -m elf64_s390"
7534 ;;
7535 sparc*-*linux*)
7536 LD="${LD-ld} -m elf64_sparc"
7537 ;;
7538 esac
7539 ;;
7540 esac
7541 fi
7542 rm -rf conftest*
7543 ;;
7544
7545*-*-sco3.2v5*)
7546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7547 SAVE_CFLAGS="$CFLAGS"
7548 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7550$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7551if test "${lt_cv_cc_needs_belf+set}" = set; then :
7552 $as_echo_n "(cached) " >&6
ce2cded5 7553else
7357c5b6
AM
7554 ac_ext=c
7555ac_cpp='$CPP $CPPFLAGS'
7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7558ac_compiler_gnu=$ac_cv_c_compiler_gnu
7559
81ecdfbb 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7561/* end confdefs.h. */
d7040cdb 7562
7357c5b6
AM
7563int
7564main ()
7565{
7566
7567 ;
7568 return 0;
7569}
ce2cded5 7570_ACEOF
81ecdfbb 7571if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7572 lt_cv_cc_needs_belf=yes
ce2cded5 7573else
81ecdfbb 7574 lt_cv_cc_needs_belf=no
ce2cded5 7575fi
81ecdfbb
RW
7576rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7578 ac_ext=c
7579ac_cpp='$CPP $CPPFLAGS'
7580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7582ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7583
b214d478 7584fi
81ecdfbb
RW
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7586$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7589 CFLAGS="$SAVE_CFLAGS"
7590 fi
7591 ;;
7592sparc*-*solaris*)
7593 # Find out which ABI we are using.
7594 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7596 (eval $ac_compile) 2>&5
7597 ac_status=$?
81ecdfbb
RW
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
b214d478
SE
7600 case `/usr/bin/file conftest.o` in
7601 *64-bit*)
7602 case $lt_cv_prog_gnu_ld in
7603 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7604 *)
7605 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7606 LD="${LD-ld} -64"
7607 fi
7608 ;;
7609 esac
7610 ;;
7611 esac
7612 fi
7613 rm -rf conftest*
7614 ;;
7615esac
7616
7617need_locks="$enable_libtool_lock"
7618
7619
7620 case $host_os in
7621 rhapsody* | darwin*)
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
b214d478
SE
7629else
7630 if test -n "$DSYMUTIL"; then
7631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7640 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7642 break 2
7643 fi
7644done
81ecdfbb
RW
7645 done
7646IFS=$as_save_IFS
b214d478
SE
7647
7648fi
7649fi
7650DSYMUTIL=$ac_cv_prog_DSYMUTIL
7651if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7653$as_echo "$DSYMUTIL" >&6; }
b214d478 7654else
81ecdfbb
RW
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
b214d478
SE
7657fi
7658
81ecdfbb 7659
b214d478
SE
7660fi
7661if test -z "$ac_cv_prog_DSYMUTIL"; then
7662 ac_ct_DSYMUTIL=$DSYMUTIL
7663 # Extract the first word of "dsymutil", so it can be a program name with args.
7664set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7668 $as_echo_n "(cached) " >&6
b214d478
SE
7669else
7670 if test -n "$ac_ct_DSYMUTIL"; then
7671 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7682 break 2
7683 fi
7684done
81ecdfbb
RW
7685 done
7686IFS=$as_save_IFS
b214d478 7687
b214d478
SE
7688fi
7689fi
7690ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7691if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7693$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7694else
81ecdfbb
RW
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
b214d478
SE
7697fi
7698
81ecdfbb
RW
7699 if test "x$ac_ct_DSYMUTIL" = x; then
7700 DSYMUTIL=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708 DSYMUTIL=$ac_ct_DSYMUTIL
7709 fi
b214d478
SE
7710else
7711 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7712fi
7713
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7716set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718$as_echo_n "checking for $ac_word... " >&6; }
7719if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
b214d478
SE
7721else
7722 if test -n "$NMEDIT"; then
7723 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7724else
7725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7732 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7734 break 2
7735 fi
7736done
81ecdfbb
RW
7737 done
7738IFS=$as_save_IFS
b214d478
SE
7739
7740fi
7741fi
7742NMEDIT=$ac_cv_prog_NMEDIT
7743if test -n "$NMEDIT"; then
81ecdfbb
RW
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7745$as_echo "$NMEDIT" >&6; }
b214d478 7746else
81ecdfbb
RW
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748$as_echo "no" >&6; }
b214d478
SE
7749fi
7750
81ecdfbb 7751
b214d478
SE
7752fi
7753if test -z "$ac_cv_prog_NMEDIT"; then
7754 ac_ct_NMEDIT=$NMEDIT
7755 # Extract the first word of "nmedit", so it can be a program name with args.
7756set dummy nmedit; ac_word=$2
81ecdfbb
RW
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
7759if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
b214d478
SE
7761else
7762 if test -n "$ac_ct_NMEDIT"; then
7763 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7764else
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7772 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7774 break 2
7775 fi
7776done
81ecdfbb
RW
7777 done
7778IFS=$as_save_IFS
b214d478 7779
b214d478
SE
7780fi
7781fi
7782ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7783if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7785$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7786else
81ecdfbb
RW
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
b214d478
SE
7789fi
7790
81ecdfbb
RW
7791 if test "x$ac_ct_NMEDIT" = x; then
7792 NMEDIT=":"
7793 else
7794 case $cross_compiling:$ac_tool_warned in
7795yes:)
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798ac_tool_warned=yes ;;
7799esac
7800 NMEDIT=$ac_ct_NMEDIT
7801 fi
b214d478
SE
7802else
7803 NMEDIT="$ac_cv_prog_NMEDIT"
7804fi
7805
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7808set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810$as_echo_n "checking for $ac_word... " >&6; }
7811if test "${ac_cv_prog_LIPO+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
b214d478
SE
7813else
7814 if test -n "$LIPO"; then
7815 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7816else
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7824 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7826 break 2
7827 fi
7828done
81ecdfbb
RW
7829 done
7830IFS=$as_save_IFS
b214d478
SE
7831
7832fi
7833fi
7834LIPO=$ac_cv_prog_LIPO
7835if test -n "$LIPO"; then
81ecdfbb
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7837$as_echo "$LIPO" >&6; }
b214d478 7838else
81ecdfbb
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
b214d478
SE
7841fi
7842
81ecdfbb 7843
b214d478
SE
7844fi
7845if test -z "$ac_cv_prog_LIPO"; then
7846 ac_ct_LIPO=$LIPO
7847 # Extract the first word of "lipo", so it can be a program name with args.
7848set dummy lipo; ac_word=$2
81ecdfbb
RW
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850$as_echo_n "checking for $ac_word... " >&6; }
7851if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
b214d478
SE
7853else
7854 if test -n "$ac_ct_LIPO"; then
7855 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7856else
7857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858for as_dir in $PATH
7859do
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7864 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7866 break 2
7867 fi
7868done
81ecdfbb
RW
7869 done
7870IFS=$as_save_IFS
b214d478 7871
b214d478
SE
7872fi
7873fi
7874ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7875if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7877$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7878else
81ecdfbb
RW
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880$as_echo "no" >&6; }
b214d478
SE
7881fi
7882
81ecdfbb
RW
7883 if test "x$ac_ct_LIPO" = x; then
7884 LIPO=":"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887yes:)
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890ac_tool_warned=yes ;;
7891esac
7892 LIPO=$ac_ct_LIPO
7893 fi
b214d478
SE
7894else
7895 LIPO="$ac_cv_prog_LIPO"
7896fi
7897
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7900set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if test "${ac_cv_prog_OTOOL+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
b214d478
SE
7905else
7906 if test -n "$OTOOL"; then
7907 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7916 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7918 break 2
7919 fi
7920done
81ecdfbb
RW
7921 done
7922IFS=$as_save_IFS
b214d478
SE
7923
7924fi
7925fi
7926OTOOL=$ac_cv_prog_OTOOL
7927if test -n "$OTOOL"; then
81ecdfbb
RW
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7929$as_echo "$OTOOL" >&6; }
b214d478 7930else
81ecdfbb
RW
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
b214d478
SE
7933fi
7934
81ecdfbb 7935
b214d478
SE
7936fi
7937if test -z "$ac_cv_prog_OTOOL"; then
7938 ac_ct_OTOOL=$OTOOL
7939 # Extract the first word of "otool", so it can be a program name with args.
7940set dummy otool; ac_word=$2
81ecdfbb
RW
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942$as_echo_n "checking for $ac_word... " >&6; }
7943if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7944 $as_echo_n "(cached) " >&6
b214d478
SE
7945else
7946 if test -n "$ac_ct_OTOOL"; then
7947 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7948else
7949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950for as_dir in $PATH
7951do
7952 IFS=$as_save_IFS
7953 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7956 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7958 break 2
7959 fi
7960done
81ecdfbb
RW
7961 done
7962IFS=$as_save_IFS
b214d478 7963
b214d478
SE
7964fi
7965fi
7966ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7967if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7969$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7970else
81ecdfbb
RW
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972$as_echo "no" >&6; }
b214d478
SE
7973fi
7974
81ecdfbb
RW
7975 if test "x$ac_ct_OTOOL" = x; then
7976 OTOOL=":"
7977 else
7978 case $cross_compiling:$ac_tool_warned in
7979yes:)
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982ac_tool_warned=yes ;;
7983esac
7984 OTOOL=$ac_ct_OTOOL
7985 fi
b214d478
SE
7986else
7987 OTOOL="$ac_cv_prog_OTOOL"
7988fi
7989
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7992set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994$as_echo_n "checking for $ac_word... " >&6; }
7995if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7996 $as_echo_n "(cached) " >&6
b214d478
SE
7997else
7998 if test -n "$OTOOL64"; then
7999 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8000else
8001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8008 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8010 break 2
8011 fi
8012done
81ecdfbb
RW
8013 done
8014IFS=$as_save_IFS
b214d478
SE
8015
8016fi
8017fi
8018OTOOL64=$ac_cv_prog_OTOOL64
8019if test -n "$OTOOL64"; then
81ecdfbb
RW
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8021$as_echo "$OTOOL64" >&6; }
b214d478 8022else
81ecdfbb
RW
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024$as_echo "no" >&6; }
b214d478
SE
8025fi
8026
81ecdfbb 8027
b214d478
SE
8028fi
8029if test -z "$ac_cv_prog_OTOOL64"; then
8030 ac_ct_OTOOL64=$OTOOL64
8031 # Extract the first word of "otool64", so it can be a program name with args.
8032set dummy otool64; ac_word=$2
81ecdfbb
RW
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
b214d478
SE
8037else
8038 if test -n "$ac_ct_OTOOL64"; then
8039 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8048 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8050 break 2
8051 fi
8052done
81ecdfbb
RW
8053 done
8054IFS=$as_save_IFS
b214d478 8055
b214d478
SE
8056fi
8057fi
8058ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8059if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8061$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8062else
81ecdfbb
RW
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
b214d478
SE
8065fi
8066
81ecdfbb
RW
8067 if test "x$ac_ct_OTOOL64" = x; then
8068 OTOOL64=":"
8069 else
8070 case $cross_compiling:$ac_tool_warned in
8071yes:)
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074ac_tool_warned=yes ;;
8075esac
8076 OTOOL64=$ac_ct_OTOOL64
8077 fi
b214d478
SE
8078else
8079 OTOOL64="$ac_cv_prog_OTOOL64"
8080fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
81ecdfbb
RW
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8109$as_echo_n "checking for -single_module linker flag... " >&6; }
8110if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
b214d478
SE
8112else
8113 lt_cv_apple_cc_single_mod=no
8114 if test -z "${LT_MULTI_MODULE}"; then
8115 # By default we will add the -single_module flag. You can override
8116 # by either setting the environment variable LT_MULTI_MODULE
8117 # non-empty at configure time, or by adding -multi_module to the
8118 # link flags.
8119 rm -rf libconftest.dylib*
8120 echo "int foo(void){return 1;}" > conftest.c
8121 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8122-dynamiclib -Wl,-single_module conftest.c" >&5
8123 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8124 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8125 _lt_result=$?
8126 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8127 lt_cv_apple_cc_single_mod=yes
8128 else
8129 cat conftest.err >&5
8130 fi
8131 rm -rf libconftest.dylib*
8132 rm -f conftest.*
8133 fi
8134fi
81ecdfbb
RW
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8136$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8138$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8139if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
b214d478
SE
8141else
8142 lt_cv_ld_exported_symbols_list=no
8143 save_LDFLAGS=$LDFLAGS
8144 echo "_main" > conftest.sym
8145 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8147/* end confdefs.h. */
8148
8149int
8150main ()
8151{
8152
8153 ;
8154 return 0;
8155}
8156_ACEOF
81ecdfbb 8157if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8158 lt_cv_ld_exported_symbols_list=yes
8159else
81ecdfbb 8160 lt_cv_ld_exported_symbols_list=no
b214d478 8161fi
81ecdfbb
RW
8162rm -f core conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8164 LDFLAGS="$save_LDFLAGS"
8165
8166fi
81ecdfbb
RW
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8168$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8170$as_echo_n "checking for -force_load linker flag... " >&6; }
8171if test "${lt_cv_ld_force_load+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173else
8174 lt_cv_ld_force_load=no
8175 cat > conftest.c << _LT_EOF
8176int forced_loaded() { return 2;}
8177_LT_EOF
8178 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8179 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8180 echo "$AR cru libconftest.a conftest.o" >&5
8181 $AR cru libconftest.a conftest.o 2>&5
8182 cat > conftest.c << _LT_EOF
8183int main() { return 0;}
8184_LT_EOF
8185 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8186 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8187 _lt_result=$?
8188 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8189 lt_cv_ld_force_load=yes
8190 else
8191 cat conftest.err >&5
8192 fi
8193 rm -f conftest.err libconftest.a conftest conftest.c
8194 rm -rf conftest.dSYM
8195
8196fi
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8198$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8199 case $host_os in
8200 rhapsody* | darwin1.[012])
8201 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8202 darwin1.*)
8203 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8204 darwin*) # darwin 5.x on
8205 # if running on 10.5 or later, the deployment target defaults
8206 # to the OS version, if on x86, and 10.4, the deployment
8207 # target defaults to 10.4. Don't you love it?
8208 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8209 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8210 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8211 10.[012][,.]*)
b214d478
SE
8212 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8213 10.*)
8214 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8215 esac
8216 ;;
8217 esac
8218 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8219 _lt_dar_single_mod='$single_module'
8220 fi
8221 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8222 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8223 else
8224 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8225 fi
3725885a 8226 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8227 _lt_dsymutil='~$DSYMUTIL $lib || :'
8228 else
8229 _lt_dsymutil=
8230 fi
8231 ;;
8232 esac
8233
b214d478 8234for ac_header in dlfcn.h
81ecdfbb
RW
8235do :
8236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8237"
8238if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8239 cat >>confdefs.h <<_ACEOF
81ecdfbb 8240#define HAVE_DLFCN_H 1
b214d478
SE
8241_ACEOF
8242
8243fi
8244
8245done
8246
8247
8248
3725885a
RW
8249
8250
3cb62297 8251
b214d478
SE
8252# Set options
8253
8254
8255
8256 enable_dlopen=no
8257
8258
8259 enable_win32_dll=no
8260
8261
81ecdfbb
RW
8262 # Check whether --enable-shared was given.
8263if test "${enable_shared+set}" = set; then :
8264 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8265 case $enableval in
8266 yes) enable_shared=yes ;;
8267 no) enable_shared=no ;;
8268 *)
8269 enable_shared=no
8270 # Look at the argument we got. We use all the common list separators.
8271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8272 for pkg in $enableval; do
8273 IFS="$lt_save_ifs"
8274 if test "X$pkg" = "X$p"; then
8275 enable_shared=yes
8276 fi
8277 done
8278 IFS="$lt_save_ifs"
8279 ;;
8280 esac
8281else
8282 enable_shared=yes
81ecdfbb 8283fi
b214d478
SE
8284
8285
8286
8287
8288
8289
8290
8291
81ecdfbb
RW
8292
8293 # Check whether --enable-static was given.
8294if test "${enable_static+set}" = set; then :
8295 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8296 case $enableval in
8297 yes) enable_static=yes ;;
8298 no) enable_static=no ;;
8299 *)
8300 enable_static=no
8301 # Look at the argument we got. We use all the common list separators.
8302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8303 for pkg in $enableval; do
8304 IFS="$lt_save_ifs"
8305 if test "X$pkg" = "X$p"; then
8306 enable_static=yes
8307 fi
8308 done
8309 IFS="$lt_save_ifs"
8310 ;;
8311 esac
8312else
8313 enable_static=yes
81ecdfbb 8314fi
b214d478
SE
8315
8316
8317
8318
8319
8320
8321
8322
8323
81ecdfbb
RW
8324
8325# Check whether --with-pic was given.
8326if test "${with_pic+set}" = set; then :
8327 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8328else
8329 pic_mode=default
81ecdfbb
RW
8330fi
8331
b214d478
SE
8332
8333test -z "$pic_mode" && pic_mode=default
8334
8335
8336
8337
8338
8339
8340
81ecdfbb
RW
8341 # Check whether --enable-fast-install was given.
8342if test "${enable_fast_install+set}" = set; then :
8343 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8344 case $enableval in
8345 yes) enable_fast_install=yes ;;
8346 no) enable_fast_install=no ;;
8347 *)
8348 enable_fast_install=no
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8352 IFS="$lt_save_ifs"
8353 if test "X$pkg" = "X$p"; then
8354 enable_fast_install=yes
8355 fi
8356 done
8357 IFS="$lt_save_ifs"
7357c5b6
AM
8358 ;;
8359 esac
b214d478
SE
8360else
8361 enable_fast_install=yes
81ecdfbb
RW
8362fi
8363
ce2cded5 8364
ce2cded5
L
8365
8366
ce2cded5 8367
42ecbf5e 8368
d7040cdb 8369
d7040cdb 8370
d7040cdb 8371
d7040cdb 8372
d7040cdb 8373
ce2cded5
L
8374# This can be used to rebuild libtool when needed
8375LIBTOOL_DEPS="$ltmain"
d7040cdb 8376
ce2cded5
L
8377# Always use our own libtool.
8378LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8379
d7040cdb 8380
d7040cdb 8381
d7040cdb 8382
d7040cdb 8383
d7040cdb 8384
d7040cdb 8385
d7040cdb 8386
d7040cdb 8387
d7040cdb 8388
d7040cdb 8389
d7040cdb 8390
d7040cdb 8391
d7040cdb 8392
d7040cdb 8393
d7040cdb 8394
d7040cdb
SE
8395
8396
8397
8398
8399
8400
8401
3725885a 8402
d7040cdb
SE
8403
8404
ce2cded5 8405test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8406
8407
8408
8409
8410
8411
d7040cdb
SE
8412
8413
8414
8415
8416
8417
8418
8419
ce2cded5
L
8420if test -n "${ZSH_VERSION+set}" ; then
8421 setopt NO_GLOB_SUBST
8422fi
d7040cdb 8423
81ecdfbb
RW
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8425$as_echo_n "checking for objdir... " >&6; }
8426if test "${lt_cv_objdir+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
ce2cded5
L
8428else
8429 rm -f .libs 2>/dev/null
8430mkdir .libs 2>/dev/null
8431if test -d .libs; then
8432 lt_cv_objdir=.libs
8433else
8434 # MS-DOS does not allow filenames that begin with a dot.
8435 lt_cv_objdir=_libs
8436fi
8437rmdir .libs 2>/dev/null
8438fi
81ecdfbb
RW
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8440$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8441objdir=$lt_cv_objdir
d7040cdb
SE
8442
8443
8444
8445
8446
ce2cded5
L
8447cat >>confdefs.h <<_ACEOF
8448#define LT_OBJDIR "$lt_cv_objdir/"
8449_ACEOF
d7040cdb
SE
8450
8451
8452
8453
ce2cded5
L
8454case $host_os in
8455aix3*)
8456 # AIX sometimes has problems with the GCC collect2 program. For some
8457 # reason, if we set the COLLECT_NAMES environment variable, the problems
8458 # vanish in a puff of smoke.
8459 if test "X${COLLECT_NAMES+set}" != Xset; then
8460 COLLECT_NAMES=
8461 export COLLECT_NAMES
8462 fi
8463 ;;
8464esac
d7040cdb 8465
ce2cded5
L
8466# Global variables:
8467ofile=libtool
8468can_build_shared=yes
d7040cdb 8469
ce2cded5
L
8470# All known linkers require a `.a' archive for static linking (except MSVC,
8471# which needs '.lib').
8472libext=a
d7040cdb 8473
ce2cded5 8474with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8475
ce2cded5
L
8476old_CC="$CC"
8477old_CFLAGS="$CFLAGS"
d7040cdb 8478
ce2cded5
L
8479# Set sane defaults for various variables
8480test -z "$CC" && CC=cc
8481test -z "$LTCC" && LTCC=$CC
8482test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8483test -z "$LD" && LD=ld
8484test -z "$ac_objext" && ac_objext=o
d7040cdb 8485
ce2cded5
L
8486for cc_temp in $compiler""; do
8487 case $cc_temp in
8488 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8489 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8490 \-*) ;;
8491 *) break;;
8492 esac
8493done
3725885a 8494cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8495
8496
ce2cded5
L
8497# Only perform the check for file, if the check method requires it
8498test -z "$MAGIC_CMD" && MAGIC_CMD=file
8499case $deplibs_check_method in
8500file_magic*)
8501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8503$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8504if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
ce2cded5
L
8506else
8507 case $MAGIC_CMD in
8508[\\/*] | ?:[\\/]*)
8509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8510 ;;
8511*)
8512 lt_save_MAGIC_CMD="$MAGIC_CMD"
8513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8515 for ac_dir in $ac_dummy; do
8516 IFS="$lt_save_ifs"
8517 test -z "$ac_dir" && ac_dir=.
8518 if test -f $ac_dir/${ac_tool_prefix}file; then
8519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8520 if test -n "$file_magic_test_file"; then
8521 case $deplibs_check_method in
8522 "file_magic "*)
8523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8526 $EGREP "$file_magic_regex" > /dev/null; then
8527 :
8528 else
8529 cat <<_LT_EOF 1>&2
d7040cdb 8530
ce2cded5
L
8531*** Warning: the command libtool uses to detect shared libraries,
8532*** $file_magic_cmd, produces output that libtool cannot recognize.
8533*** The result is that libtool may fail to recognize shared libraries
8534*** as such. This will affect the creation of libtool libraries that
8535*** depend on shared libraries, but programs linked with such libtool
8536*** libraries will work regardless of this problem. Nevertheless, you
8537*** may want to report the problem to your system manager and/or to
8538*** bug-libtool@gnu.org
d7040cdb 8539
ce2cded5
L
8540_LT_EOF
8541 fi ;;
8542 esac
8543 fi
8544 break
8545 fi
8546 done
8547 IFS="$lt_save_ifs"
8548 MAGIC_CMD="$lt_save_MAGIC_CMD"
8549 ;;
8550esac
8551fi
d7040cdb 8552
ce2cded5
L
8553MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8554if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8556$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8557else
81ecdfbb
RW
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559$as_echo "no" >&6; }
ce2cded5 8560fi
d7040cdb
SE
8561
8562
8563
8564
8565
ce2cded5
L
8566if test -z "$lt_cv_path_MAGIC_CMD"; then
8567 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8569$as_echo_n "checking for file... " >&6; }
8570if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8571 $as_echo_n "(cached) " >&6
ce2cded5
L
8572else
8573 case $MAGIC_CMD in
8574[\\/*] | ?:[\\/]*)
8575 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576 ;;
8577*)
8578 lt_save_MAGIC_CMD="$MAGIC_CMD"
8579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8580 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8581 for ac_dir in $ac_dummy; do
8582 IFS="$lt_save_ifs"
8583 test -z "$ac_dir" && ac_dir=.
8584 if test -f $ac_dir/file; then
8585 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8586 if test -n "$file_magic_test_file"; then
8587 case $deplibs_check_method in
8588 "file_magic "*)
8589 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8591 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8592 $EGREP "$file_magic_regex" > /dev/null; then
8593 :
8594 else
8595 cat <<_LT_EOF 1>&2
d7040cdb 8596
ce2cded5
L
8597*** Warning: the command libtool uses to detect shared libraries,
8598*** $file_magic_cmd, produces output that libtool cannot recognize.
8599*** The result is that libtool may fail to recognize shared libraries
8600*** as such. This will affect the creation of libtool libraries that
8601*** depend on shared libraries, but programs linked with such libtool
8602*** libraries will work regardless of this problem. Nevertheless, you
8603*** may want to report the problem to your system manager and/or to
8604*** bug-libtool@gnu.org
d7040cdb 8605
ce2cded5
L
8606_LT_EOF
8607 fi ;;
8608 esac
8609 fi
8610 break
8611 fi
8612 done
8613 IFS="$lt_save_ifs"
8614 MAGIC_CMD="$lt_save_MAGIC_CMD"
8615 ;;
8616esac
8617fi
d7040cdb 8618
ce2cded5
L
8619MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8620if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8622$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8623else
81ecdfbb
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625$as_echo "no" >&6; }
ce2cded5 8626fi
d7040cdb
SE
8627
8628
ce2cded5
L
8629 else
8630 MAGIC_CMD=:
8631 fi
8632fi
d7040cdb 8633
ce2cded5
L
8634 fi
8635 ;;
8636esac
d7040cdb 8637
ce2cded5 8638# Use C for the default configuration in the libtool script
d7040cdb 8639
ce2cded5
L
8640lt_save_CC="$CC"
8641ac_ext=c
8642ac_cpp='$CPP $CPPFLAGS'
8643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8646
8647
ce2cded5
L
8648# Source file extension for C test sources.
8649ac_ext=c
d7040cdb 8650
ce2cded5
L
8651# Object file extension for compiled C test sources.
8652objext=o
8653objext=$objext
d7040cdb 8654
ce2cded5
L
8655# Code to be used in simple compile tests
8656lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8657
ce2cded5
L
8658# Code to be used in simple link tests
8659lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8660
8661
8662
8663
8664
8665
8666
ce2cded5
L
8667# If no C compiler was specified, use CC.
8668LTCC=${LTCC-"$CC"}
d7040cdb 8669
ce2cded5
L
8670# If no C compiler flags were specified, use CFLAGS.
8671LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8672
ce2cded5
L
8673# Allow CC to be a program name with arguments.
8674compiler=$CC
d7040cdb 8675
ce2cded5
L
8676# Save the default compiler, since it gets overwritten when the other
8677# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8678compiler_DEFAULT=$CC
d7040cdb 8679
ce2cded5
L
8680# save warnings/boilerplate of simple test code
8681ac_outfile=conftest.$ac_objext
8682echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8683eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684_lt_compiler_boilerplate=`cat conftest.err`
8685$RM conftest*
d7040cdb 8686
ce2cded5
L
8687ac_outfile=conftest.$ac_objext
8688echo "$lt_simple_link_test_code" >conftest.$ac_ext
8689eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8690_lt_linker_boilerplate=`cat conftest.err`
b214d478 8691$RM -r conftest*
d7040cdb
SE
8692
8693
ce2cded5
L
8694## CAVEAT EMPTOR:
8695## There is no encapsulation within the following macros, do not change
8696## the running order or otherwise move them around unless you know exactly
8697## what you are doing...
8698if test -n "$compiler"; then
d7040cdb 8699
ce2cded5 8700lt_prog_compiler_no_builtin_flag=
d7040cdb 8701
ce2cded5 8702if test "$GCC" = yes; then
3725885a
RW
8703 case $cc_basename in
8704 nvcc*)
8705 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8706 *)
8707 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8708 esac
d7040cdb 8709
81ecdfbb
RW
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8711$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8712if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8713 $as_echo_n "(cached) " >&6
ce2cded5
L
8714else
8715 lt_cv_prog_compiler_rtti_exceptions=no
8716 ac_outfile=conftest.$ac_objext
8717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718 lt_compiler_flag="-fno-rtti -fno-exceptions"
8719 # Insert the option either (1) after the last *FLAGS variable, or
8720 # (2) before a word containing "conftest.", or (3) at the end.
8721 # Note that $ac_compile itself does not contain backslashes and begins
8722 # with a dollar sign (not a hyphen), so the echo should work correctly.
8723 # The option is referenced via a variable to avoid confusing sed.
8724 lt_compile=`echo "$ac_compile" | $SED \
8725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727 -e 's:$: $lt_compiler_flag:'`
3725885a 8728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8729 (eval "$lt_compile" 2>conftest.err)
8730 ac_status=$?
8731 cat conftest.err >&5
3725885a 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8733 if (exit $ac_status) && test -s "$ac_outfile"; then
8734 # The compiler can only warn and ignore the option if not recognized
8735 # So say no if there are warnings other than the usual output.
3725885a 8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8739 lt_cv_prog_compiler_rtti_exceptions=yes
8740 fi
8741 fi
8742 $RM conftest*
d7040cdb 8743
ce2cded5 8744fi
81ecdfbb
RW
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8746$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8747
ce2cded5
L
8748if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8749 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8750else
8751 :
8752fi
d7040cdb 8753
ce2cded5 8754fi
d7040cdb
SE
8755
8756
8757
8758
8759
8760
ce2cded5
L
8761 lt_prog_compiler_wl=
8762lt_prog_compiler_pic=
8763lt_prog_compiler_static=
d7040cdb 8764
81ecdfbb
RW
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8766$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8767
ce2cded5
L
8768 if test "$GCC" = yes; then
8769 lt_prog_compiler_wl='-Wl,'
8770 lt_prog_compiler_static='-static'
d7040cdb 8771
ce2cded5
L
8772 case $host_os in
8773 aix*)
8774 # All AIX code is PIC.
8775 if test "$host_cpu" = ia64; then
8776 # AIX 5 now supports IA64 processor
8777 lt_prog_compiler_static='-Bstatic'
8778 fi
52204357 8779 lt_prog_compiler_pic='-fPIC'
ce2cded5 8780 ;;
d7040cdb 8781
ce2cded5 8782 amigaos*)
b214d478
SE
8783 case $host_cpu in
8784 powerpc)
8785 # see comment about AmigaOS4 .so support
8786 lt_prog_compiler_pic='-fPIC'
8787 ;;
8788 m68k)
8789 # FIXME: we need at least 68020 code to build shared libraries, but
8790 # adding the `-m68020' flag to GCC prevents building anything better,
8791 # like `-m68040'.
8792 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8793 ;;
8794 esac
ce2cded5 8795 ;;
d7040cdb 8796
ce2cded5
L
8797 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8798 # PIC is the default for these OSes.
8799 ;;
d7040cdb 8800
b214d478 8801 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8802 # This hack is so that the source file can tell whether it is being
8803 # built for inclusion in a dll (and should export symbols for example).
8804 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8805 # (--disable-auto-import) libraries
8806 lt_prog_compiler_pic='-DDLL_EXPORT'
8807 ;;
d7040cdb 8808
ce2cded5
L
8809 darwin* | rhapsody*)
8810 # PIC is the default on this platform
8811 # Common symbols not allowed in MH_DYLIB files
8812 lt_prog_compiler_pic='-fno-common'
8813 ;;
d7040cdb 8814
3725885a
RW
8815 haiku*)
8816 # PIC is the default for Haiku.
8817 # The "-static" flag exists, but is broken.
8818 lt_prog_compiler_static=
8819 ;;
8820
ce2cded5 8821 hpux*)
b214d478
SE
8822 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8823 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8824 # sets the default TLS model and affects inlining.
ce2cded5 8825 case $host_cpu in
b214d478 8826 hppa*64*)
ce2cded5
L
8827 # +Z the default
8828 ;;
8829 *)
8830 lt_prog_compiler_pic='-fPIC'
8831 ;;
8832 esac
8833 ;;
d7040cdb 8834
ce2cded5
L
8835 interix[3-9]*)
8836 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8837 # Instead, we relocate shared libraries at runtime.
8838 ;;
d7040cdb 8839
ce2cded5
L
8840 msdosdjgpp*)
8841 # Just because we use GCC doesn't mean we suddenly get shared libraries
8842 # on systems that don't support them.
8843 lt_prog_compiler_can_build_shared=no
8844 enable_shared=no
8845 ;;
d7040cdb 8846
ce2cded5
L
8847 *nto* | *qnx*)
8848 # QNX uses GNU C++, but need to define -shared option too, otherwise
8849 # it will coredump.
8850 lt_prog_compiler_pic='-fPIC -shared'
8851 ;;
d7040cdb 8852
ce2cded5
L
8853 sysv4*MP*)
8854 if test -d /usr/nec; then
8855 lt_prog_compiler_pic=-Kconform_pic
8856 fi
8857 ;;
d7040cdb 8858
ce2cded5
L
8859 *)
8860 lt_prog_compiler_pic='-fPIC'
8861 ;;
8862 esac
3725885a
RW
8863
8864 case $cc_basename in
8865 nvcc*) # Cuda Compiler Driver 2.2
8866 lt_prog_compiler_wl='-Xlinker '
8867 lt_prog_compiler_pic='-Xcompiler -fPIC'
8868 ;;
8869 esac
ce2cded5
L
8870 else
8871 # PORTME Check for flag to pass linker flags through the system compiler.
8872 case $host_os in
8873 aix*)
8874 lt_prog_compiler_wl='-Wl,'
8875 if test "$host_cpu" = ia64; then
8876 # AIX 5 now supports IA64 processor
8877 lt_prog_compiler_static='-Bstatic'
8878 else
8879 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8880 fi
8881 ;;
d7040cdb 8882
b214d478 8883 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8884 # This hack is so that the source file can tell whether it is being
8885 # built for inclusion in a dll (and should export symbols for example).
8886 lt_prog_compiler_pic='-DDLL_EXPORT'
8887 ;;
d7040cdb 8888
ce2cded5
L
8889 hpux9* | hpux10* | hpux11*)
8890 lt_prog_compiler_wl='-Wl,'
8891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8892 # not for PA HP-UX.
8893 case $host_cpu in
8894 hppa*64*|ia64*)
8895 # +Z the default
8896 ;;
8897 *)
8898 lt_prog_compiler_pic='+Z'
8899 ;;
8900 esac
8901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8902 lt_prog_compiler_static='${wl}-a ${wl}archive'
8903 ;;
d7040cdb 8904
ce2cded5
L
8905 irix5* | irix6* | nonstopux*)
8906 lt_prog_compiler_wl='-Wl,'
8907 # PIC (with -KPIC) is the default.
8908 lt_prog_compiler_static='-non_shared'
8909 ;;
d7040cdb 8910
58e24671 8911 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8912 case $cc_basename in
b214d478
SE
8913 # old Intel for x86_64 which still supported -KPIC.
8914 ecc*)
ce2cded5
L
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-static'
8918 ;;
b214d478
SE
8919 # icc used to be incompatible with GCC.
8920 # ICC 10 doesn't accept -KPIC any more.
8921 icc* | ifort*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='-fPIC'
8924 lt_prog_compiler_static='-static'
8925 ;;
8926 # Lahey Fortran 8.1.
8927 lf95*)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='--shared'
8930 lt_prog_compiler_static='--static'
8931 ;;
3725885a 8932 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8933 # Portland Group compilers (*not* the Pentium gcc compiler,
8934 # which looks to be a dead project)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-fpic'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939 ccc*)
8940 lt_prog_compiler_wl='-Wl,'
8941 # All Alpha code is PIC.
8942 lt_prog_compiler_static='-non_shared'
8943 ;;
3725885a
RW
8944 xl* | bgxl* | bgf* | mpixl*)
8945 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-qpic'
8948 lt_prog_compiler_static='-qstaticlink'
8949 ;;
ce2cded5
L
8950 *)
8951 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8952 *Sun\ F* | *Sun*Fortran*)
8953 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
3725885a 8956 lt_prog_compiler_wl=''
ce2cded5 8957 ;;
3725885a
RW
8958 *Sun\ C*)
8959 # Sun C 5.9
ce2cded5
L
8960 lt_prog_compiler_pic='-KPIC'
8961 lt_prog_compiler_static='-Bstatic'
3725885a 8962 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8963 ;;
8964 esac
8965 ;;
8966 esac
8967 ;;
d7040cdb 8968
ce2cded5
L
8969 newsos6)
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-Bstatic'
8972 ;;
d7040cdb 8973
ce2cded5
L
8974 *nto* | *qnx*)
8975 # QNX uses GNU C++, but need to define -shared option too, otherwise
8976 # it will coredump.
8977 lt_prog_compiler_pic='-fPIC -shared'
8978 ;;
d7040cdb 8979
ce2cded5
L
8980 osf3* | osf4* | osf5*)
8981 lt_prog_compiler_wl='-Wl,'
8982 # All OSF/1 code is PIC.
8983 lt_prog_compiler_static='-non_shared'
8984 ;;
d7040cdb 8985
ce2cded5
L
8986 rdos*)
8987 lt_prog_compiler_static='-non_shared'
8988 ;;
d7040cdb 8989
ce2cded5
L
8990 solaris*)
8991 lt_prog_compiler_pic='-KPIC'
8992 lt_prog_compiler_static='-Bstatic'
8993 case $cc_basename in
8994 f77* | f90* | f95*)
8995 lt_prog_compiler_wl='-Qoption ld ';;
8996 *)
8997 lt_prog_compiler_wl='-Wl,';;
8998 esac
8999 ;;
d7040cdb 9000
ce2cded5
L
9001 sunos4*)
9002 lt_prog_compiler_wl='-Qoption ld '
9003 lt_prog_compiler_pic='-PIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 ;;
d7040cdb 9006
ce2cded5
L
9007 sysv4 | sysv4.2uw2* | sysv4.3*)
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-KPIC'
9010 lt_prog_compiler_static='-Bstatic'
9011 ;;
d7040cdb 9012
ce2cded5
L
9013 sysv4*MP*)
9014 if test -d /usr/nec ;then
9015 lt_prog_compiler_pic='-Kconform_pic'
9016 lt_prog_compiler_static='-Bstatic'
9017 fi
9018 ;;
d7040cdb 9019
ce2cded5
L
9020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 ;;
d7040cdb 9025
ce2cded5
L
9026 unicos*)
9027 lt_prog_compiler_wl='-Wl,'
9028 lt_prog_compiler_can_build_shared=no
9029 ;;
d7040cdb 9030
ce2cded5
L
9031 uts4*)
9032 lt_prog_compiler_pic='-pic'
9033 lt_prog_compiler_static='-Bstatic'
9034 ;;
d7040cdb 9035
ce2cded5
L
9036 *)
9037 lt_prog_compiler_can_build_shared=no
9038 ;;
9039 esac
9040 fi
d7040cdb 9041
ce2cded5
L
9042case $host_os in
9043 # For platforms which do not support PIC, -DPIC is meaningless:
9044 *djgpp*)
9045 lt_prog_compiler_pic=
9046 ;;
9047 *)
9048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9049 ;;
9050esac
81ecdfbb
RW
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9052$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9053
9054
9055
9056
9057
9058
ce2cded5
L
9059#
9060# Check to make sure the PIC flag actually works.
9061#
9062if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9064$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9065if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
ce2cded5 9067else
b214d478 9068 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9069 ac_outfile=conftest.$ac_objext
9070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9071 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9072 # Insert the option either (1) after the last *FLAGS variable, or
9073 # (2) before a word containing "conftest.", or (3) at the end.
9074 # Note that $ac_compile itself does not contain backslashes and begins
9075 # with a dollar sign (not a hyphen), so the echo should work correctly.
9076 # The option is referenced via a variable to avoid confusing sed.
9077 lt_compile=`echo "$ac_compile" | $SED \
9078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9080 -e 's:$: $lt_compiler_flag:'`
3725885a 9081 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9082 (eval "$lt_compile" 2>conftest.err)
9083 ac_status=$?
9084 cat conftest.err >&5
3725885a 9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9086 if (exit $ac_status) && test -s "$ac_outfile"; then
9087 # The compiler can only warn and ignore the option if not recognized
9088 # So say no if there are warnings other than the usual output.
3725885a 9089 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9092 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9093 fi
9094 fi
9095 $RM conftest*
d7040cdb 9096
ce2cded5 9097fi
81ecdfbb
RW
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9099$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9100
b214d478 9101if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9102 case $lt_prog_compiler_pic in
9103 "" | " "*) ;;
9104 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9105 esac
9106else
9107 lt_prog_compiler_pic=
9108 lt_prog_compiler_can_build_shared=no
9109fi
9110
9111fi
d7040cdb
SE
9112
9113
9114
9115
9116
9117
ce2cded5
L
9118#
9119# Check to make sure the static flag actually works.
9120#
9121wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9123$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9124if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
ce2cded5 9126else
b214d478 9127 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9128 save_LDFLAGS="$LDFLAGS"
9129 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9130 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9132 # The linker can only warn and ignore the option if not recognized
9133 # So say no if there are warnings
9134 if test -s conftest.err; then
9135 # Append any errors to the config.log.
9136 cat conftest.err 1>&5
3725885a 9137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9139 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9140 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9141 fi
9142 else
b214d478 9143 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9144 fi
9145 fi
b214d478 9146 $RM -r conftest*
ce2cded5 9147 LDFLAGS="$save_LDFLAGS"
d7040cdb 9148
ce2cded5 9149fi
81ecdfbb
RW
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9151$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9152
b214d478 9153if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9154 :
9155else
9156 lt_prog_compiler_static=
9157fi
d7040cdb
SE
9158
9159
9160
9161
9162
9163
9164
81ecdfbb
RW
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
ce2cded5
L
9169else
9170 lt_cv_prog_compiler_c_o=no
9171 $RM -r conftest 2>/dev/null
9172 mkdir conftest
9173 cd conftest
9174 mkdir out
9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9176
ce2cded5
L
9177 lt_compiler_flag="-o out/conftest2.$ac_objext"
9178 # Insert the option either (1) after the last *FLAGS variable, or
9179 # (2) before a word containing "conftest.", or (3) at the end.
9180 # Note that $ac_compile itself does not contain backslashes and begins
9181 # with a dollar sign (not a hyphen), so the echo should work correctly.
9182 lt_compile=`echo "$ac_compile" | $SED \
9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185 -e 's:$: $lt_compiler_flag:'`
3725885a 9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9187 (eval "$lt_compile" 2>out/conftest.err)
9188 ac_status=$?
9189 cat out/conftest.err >&5
3725885a 9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192 then
9193 # The compiler can only warn and ignore the option if not recognized
9194 # So say no if there are warnings
3725885a 9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198 lt_cv_prog_compiler_c_o=yes
9199 fi
9200 fi
9201 chmod u+w . 2>&5
9202 $RM conftest*
9203 # SGI C++ compiler will create directory out/ii_files/ for
9204 # template instantiation
9205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206 $RM out/* && rmdir out
9207 cd ..
9208 $RM -r conftest
9209 $RM conftest*
d7040cdb 9210
ce2cded5 9211fi
81ecdfbb
RW
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9214
9215
9216
9217
9218
9219
81ecdfbb
RW
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9222if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
ce2cded5
L
9224else
9225 lt_cv_prog_compiler_c_o=no
9226 $RM -r conftest 2>/dev/null
9227 mkdir conftest
9228 cd conftest
9229 mkdir out
9230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9231
ce2cded5
L
9232 lt_compiler_flag="-o out/conftest2.$ac_objext"
9233 # Insert the option either (1) after the last *FLAGS variable, or
9234 # (2) before a word containing "conftest.", or (3) at the end.
9235 # Note that $ac_compile itself does not contain backslashes and begins
9236 # with a dollar sign (not a hyphen), so the echo should work correctly.
9237 lt_compile=`echo "$ac_compile" | $SED \
9238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9240 -e 's:$: $lt_compiler_flag:'`
3725885a 9241 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9242 (eval "$lt_compile" 2>out/conftest.err)
9243 ac_status=$?
9244 cat out/conftest.err >&5
3725885a 9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9246 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9247 then
9248 # The compiler can only warn and ignore the option if not recognized
9249 # So say no if there are warnings
3725885a 9250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9253 lt_cv_prog_compiler_c_o=yes
9254 fi
9255 fi
9256 chmod u+w . 2>&5
9257 $RM conftest*
9258 # SGI C++ compiler will create directory out/ii_files/ for
9259 # template instantiation
9260 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9261 $RM out/* && rmdir out
9262 cd ..
9263 $RM -r conftest
9264 $RM conftest*
9265
9266fi
81ecdfbb
RW
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9268$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9269
9270
9271
9272
9273hard_links="nottested"
9274if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9275 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9277$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9278 hard_links=yes
9279 $RM conftest*
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281 touch conftest.a
9282 ln conftest.a conftest.b 2>&5 || hard_links=no
9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9285$as_echo "$hard_links" >&6; }
ce2cded5 9286 if test "$hard_links" = no; then
81ecdfbb
RW
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9288$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9289 need_locks=warn
d7040cdb 9290 fi
d7040cdb 9291else
ce2cded5 9292 need_locks=no
d7040cdb 9293fi
d7040cdb 9294
d7040cdb 9295
d7040cdb 9296
d7040cdb 9297
d7040cdb 9298
d7040cdb 9299
81ecdfbb
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9301$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9302
ce2cded5
L
9303 runpath_var=
9304 allow_undefined_flag=
9305 always_export_symbols=no
9306 archive_cmds=
9307 archive_expsym_cmds=
9308 compiler_needs_object=no
9309 enable_shared_with_static_runtimes=no
9310 export_dynamic_flag_spec=
9311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9312 hardcode_automatic=no
9313 hardcode_direct=no
9314 hardcode_direct_absolute=no
9315 hardcode_libdir_flag_spec=
9316 hardcode_libdir_flag_spec_ld=
9317 hardcode_libdir_separator=
9318 hardcode_minus_L=no
9319 hardcode_shlibpath_var=unsupported
9320 inherit_rpath=no
9321 link_all_deplibs=unknown
9322 module_cmds=
9323 module_expsym_cmds=
9324 old_archive_from_new_cmds=
9325 old_archive_from_expsyms_cmds=
9326 thread_safe_flag_spec=
9327 whole_archive_flag_spec=
9328 # include_expsyms should be a list of space-separated symbols to be *always*
9329 # included in the symbol list
9330 include_expsyms=
9331 # exclude_expsyms can be an extended regexp of symbols to exclude
9332 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9333 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9334 # as well as any symbol that contains `d'.
b214d478 9335 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9336 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9337 # platforms (ab)use it in PIC code, but their linkers get confused if
9338 # the symbol is explicitly referenced. Since portable code cannot
9339 # rely on this symbol name, it's probably fine to never include it in
9340 # preloaded symbol tables.
b214d478 9341 # Exclude shared library initialization/finalization symbols.
ce2cded5 9342 extract_expsyms_cmds=
d7040cdb 9343
ce2cded5 9344 case $host_os in
b214d478 9345 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9346 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9347 # When not using gcc, we currently assume that we are using
9348 # Microsoft Visual C++.
9349 if test "$GCC" != yes; then
9350 with_gnu_ld=no
9351 fi
d7040cdb 9352 ;;
ce2cded5
L
9353 interix*)
9354 # we just hope/assume this is gcc and not c89 (= MSVC++)
9355 with_gnu_ld=yes
9356 ;;
9357 openbsd*)
9358 with_gnu_ld=no
d7040cdb
SE
9359 ;;
9360 esac
d7040cdb 9361
ce2cded5 9362 ld_shlibs=yes
3725885a
RW
9363
9364 # On some targets, GNU ld is compatible enough with the native linker
9365 # that we're better off using the native interface for both.
9366 lt_use_gnu_ld_interface=no
ce2cded5 9367 if test "$with_gnu_ld" = yes; then
3725885a
RW
9368 case $host_os in
9369 aix*)
9370 # The AIX port of GNU ld has always aspired to compatibility
9371 # with the native linker. However, as the warning in the GNU ld
9372 # block says, versions before 2.19.5* couldn't really create working
9373 # shared libraries, regardless of the interface used.
9374 case `$LD -v 2>&1` in
9375 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9376 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9377 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9378 *)
9379 lt_use_gnu_ld_interface=yes
9380 ;;
9381 esac
9382 ;;
9383 *)
9384 lt_use_gnu_ld_interface=yes
9385 ;;
9386 esac
9387 fi
9388
9389 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9390 # If archive_cmds runs LD, not CC, wlarc should be empty
9391 wlarc='${wl}'
d7040cdb 9392
ce2cded5
L
9393 # Set some defaults for GNU ld with shared library support. These
9394 # are reset later if shared libraries are not supported. Putting them
9395 # here allows them to be overridden if necessary.
9396 runpath_var=LD_RUN_PATH
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 export_dynamic_flag_spec='${wl}--export-dynamic'
9399 # ancient GNU ld didn't support --whole-archive et. al.
9400 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9401 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9402 else
9403 whole_archive_flag_spec=
9404 fi
9405 supports_anon_versioning=no
9406 case `$LD -v 2>&1` in
3725885a 9407 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9408 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9409 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9410 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9411 *\ 2.11.*) ;; # other 2.11 versions
9412 *) supports_anon_versioning=yes ;;
9413 esac
d7040cdb 9414
ce2cded5
L
9415 # See if GNU ld supports shared libraries.
9416 case $host_os in
50e7d84b 9417 aix[3-9]*)
ce2cded5
L
9418 # On AIX/PPC, the GNU linker is very broken
9419 if test "$host_cpu" != ia64; then
9420 ld_shlibs=no
9421 cat <<_LT_EOF 1>&2
d7040cdb 9422
3725885a 9423*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9424*** to be unable to reliably create shared libraries on AIX.
9425*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9426*** really care for shared libraries, you may want to install binutils
9427*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9428*** You will then need to restart the configuration process.
d7040cdb 9429
ce2cded5
L
9430_LT_EOF
9431 fi
d7040cdb 9432 ;;
d7040cdb 9433
ce2cded5 9434 amigaos*)
b214d478
SE
9435 case $host_cpu in
9436 powerpc)
9437 # see comment about AmigaOS4 .so support
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds=''
9440 ;;
9441 m68k)
9442 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)'
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_minus_L=yes
9445 ;;
9446 esac
ce2cded5 9447 ;;
d7040cdb 9448
ce2cded5
L
9449 beos*)
9450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451 allow_undefined_flag=unsupported
9452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9453 # support --undefined. This deserves some investigation. FIXME
9454 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455 else
9456 ld_shlibs=no
9457 fi
9458 ;;
d7040cdb 9459
b214d478 9460 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9461 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9462 # as there is no search path for DLLs.
9463 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9464 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9465 allow_undefined_flag=unsupported
9466 always_export_symbols=no
9467 enable_shared_with_static_runtimes=yes
9468 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9469
9470 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9471 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9472 # If the export-symbols file already is a .def file (1st line
9473 # is EXPORTS), use it as is; otherwise, prepend...
9474 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9475 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9476 else
ce2cded5
L
9477 echo EXPORTS > $output_objdir/$soname.def;
9478 cat $export_symbols >> $output_objdir/$soname.def;
9479 fi~
9480 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9481 else
9482 ld_shlibs=no
9483 fi
9484 ;;
d7040cdb 9485
3725885a
RW
9486 haiku*)
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 link_all_deplibs=yes
9489 ;;
9490
ce2cded5
L
9491 interix[3-9]*)
9492 hardcode_direct=no
9493 hardcode_shlibpath_var=no
9494 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9495 export_dynamic_flag_spec='${wl}-E'
9496 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9497 # Instead, shared libraries are loaded at an image base (0x10000000 by
9498 # default) and relocated if they conflict, which is a slow very memory
9499 # consuming and fragmenting process. To avoid this, we pick a random,
9500 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9501 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9503 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'
9504 ;;
d7040cdb 9505
58e24671 9506 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9507 tmp_diet=no
9508 if test "$host_os" = linux-dietlibc; then
9509 case $cc_basename in
9510 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9511 esac
9512 fi
9513 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9514 && test "$tmp_diet" = no
9515 then
6e733cce 9516 tmp_addflag=' $pic_flag'
b214d478 9517 tmp_sharedflag='-shared'
ce2cded5
L
9518 case $cc_basename,$host_cpu in
9519 pgcc*) # Portland Group C compiler
3725885a 9520 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9521 tmp_addflag=' $pic_flag'
9522 ;;
3725885a
RW
9523 pgf77* | pgf90* | pgf95* | pgfortran*)
9524 # Portland Group f77 and f90 compilers
9525 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9526 tmp_addflag=' $pic_flag -Mnomain' ;;
9527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9528 tmp_addflag=' -i_dynamic' ;;
9529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9530 tmp_addflag=' -i_dynamic -nofor_main' ;;
9531 ifc* | ifort*) # Intel Fortran compiler
9532 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9533 lf95*) # Lahey Fortran 8.1
9534 whole_archive_flag_spec=
9535 tmp_sharedflag='--shared' ;;
3725885a 9536 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9537 tmp_sharedflag='-qmkshrobj'
9538 tmp_addflag= ;;
3725885a
RW
9539 nvcc*) # Cuda Compiler Driver 2.2
9540 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'
9541 compiler_needs_object=yes
9542 ;;
ce2cded5
L
9543 esac
9544 case `$CC -V 2>&1 | sed 5q` in
9545 *Sun\ C*) # Sun C 5.9
3725885a 9546 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9547 compiler_needs_object=yes
9548 tmp_sharedflag='-G' ;;
9549 *Sun\ F*) # Sun Fortran 8.3
9550 tmp_sharedflag='-G' ;;
ce2cded5
L
9551 esac
9552 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9553
ce2cded5
L
9554 if test "x$supports_anon_versioning" = xyes; then
9555 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9556 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9557 echo "local: *; };" >> $output_objdir/$libname.ver~
9558 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9559 fi
b214d478
SE
9560
9561 case $cc_basename in
3725885a 9562 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9563 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9564 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9565 hardcode_libdir_flag_spec=
9566 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9567 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9568 if test "x$supports_anon_versioning" = xyes; then
9569 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9571 echo "local: *; };" >> $output_objdir/$libname.ver~
9572 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9573 fi
9574 ;;
9575 esac
ce2cded5
L
9576 else
9577 ld_shlibs=no
9578 fi
9579 ;;
d7040cdb 9580
ce2cded5
L
9581 netbsd*)
9582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9583 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9584 wlarc=
9585 else
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588 fi
9589 ;;
9590
9591 solaris*)
9592 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9593 ld_shlibs=no
9594 cat <<_LT_EOF 1>&2
9595
9596*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9597*** create shared libraries on Solaris systems. Therefore, libtool
9598*** is disabling shared libraries support. We urge you to upgrade GNU
9599*** binutils to release 2.9.1 or newer. Another option is to modify
9600*** your PATH or compiler configuration so that the native linker is
9601*** used, and then restart.
9602
9603_LT_EOF
9604 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9607 else
9608 ld_shlibs=no
9609 fi
9610 ;;
9611
9612 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9613 case `$LD -v 2>&1` in
9614 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9615 ld_shlibs=no
9616 cat <<_LT_EOF 1>&2
9617
9618*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9619*** reliably create shared libraries on SCO systems. Therefore, libtool
9620*** is disabling shared libraries support. We urge you to upgrade GNU
9621*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9622*** your PATH or compiler configuration so that the native linker is
9623*** used, and then restart.
9624
9625_LT_EOF
9626 ;;
9627 *)
9628 # For security reasons, it is highly recommended that you always
9629 # use absolute paths for naming shared libraries, and exclude the
9630 # DT_RUNPATH tag from executables and libraries. But doing so
9631 # requires that you compile everything twice, which is a pain.
9632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9636 else
9637 ld_shlibs=no
9638 fi
9639 ;;
9640 esac
9641 ;;
9642
9643 sunos4*)
9644 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9645 wlarc=
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 *)
9651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9654 else
9655 ld_shlibs=no
9656 fi
9657 ;;
9658 esac
9659
9660 if test "$ld_shlibs" = no; then
9661 runpath_var=
9662 hardcode_libdir_flag_spec=
9663 export_dynamic_flag_spec=
9664 whole_archive_flag_spec=
9665 fi
9666 else
9667 # PORTME fill in a description of your system's linker (not GNU ld)
9668 case $host_os in
9669 aix3*)
9670 allow_undefined_flag=unsupported
9671 always_export_symbols=yes
9672 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'
9673 # Note: this linker hardcodes the directories in LIBPATH if there
9674 # are no directories specified by -L.
9675 hardcode_minus_L=yes
9676 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9677 # Neither direct hardcoding nor static linking is supported with a
9678 # broken collect2.
9679 hardcode_direct=unsupported
9680 fi
9681 ;;
9682
50e7d84b 9683 aix[4-9]*)
ce2cded5
L
9684 if test "$host_cpu" = ia64; then
9685 # On IA64, the linker does run time linking by default, so we don't
9686 # have to do anything special.
9687 aix_use_runtimelinking=no
9688 exp_sym_flag='-Bexport'
9689 no_entry_flag=""
9690 else
9691 # If we're using GNU nm, then we don't want the "-C" option.
9692 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9693 # Also, AIX nm treats weak defined symbols like other global
9694 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9695 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9696 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5 9697 else
5c14705f 9698 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9699 fi
9700 aix_use_runtimelinking=no
9701
9702 # Test if we are trying to use run time linking or normal
9703 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9704 # need to do runtime linking.
50e7d84b 9705 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9706 for ld_flag in $LDFLAGS; do
9707 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9708 aix_use_runtimelinking=yes
9709 break
9710 fi
9711 done
9712 ;;
9713 esac
9714
9715 exp_sym_flag='-bexport'
9716 no_entry_flag='-bnoentry'
9717 fi
9718
9719 # When large executables or shared objects are built, AIX ld can
9720 # have problems creating the table of contents. If linking a library
9721 # or program results in "error TOC overflow" add -mminimal-toc to
9722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9724
9725 archive_cmds=''
9726 hardcode_direct=yes
9727 hardcode_direct_absolute=yes
9728 hardcode_libdir_separator=':'
9729 link_all_deplibs=yes
9730 file_list_spec='${wl}-f,'
9731
9732 if test "$GCC" = yes; then
9733 case $host_os in aix4.[012]|aix4.[012].*)
9734 # We only want to do this on AIX 4.2 and lower, the check
9735 # below for broken collect2 doesn't work under 4.3+
9736 collect2name=`${CC} -print-prog-name=collect2`
9737 if test -f "$collect2name" &&
9738 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9739 then
9740 # We have reworked collect2
9741 :
9742 else
9743 # We have old collect2
9744 hardcode_direct=unsupported
9745 # It fails to find uninstalled libraries when the uninstalled
9746 # path is not listed in the libpath. Setting hardcode_minus_L
9747 # to unsupported forces relinking
9748 hardcode_minus_L=yes
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_libdir_separator=
9751 fi
9752 ;;
9753 esac
9754 shared_flag='-shared'
9755 if test "$aix_use_runtimelinking" = yes; then
9756 shared_flag="$shared_flag "'${wl}-G'
9757 fi
9758 else
9759 # not using gcc
9760 if test "$host_cpu" = ia64; then
9761 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9762 # chokes on -Wl,-G. The following line is correct:
9763 shared_flag='-G'
9764 else
9765 if test "$aix_use_runtimelinking" = yes; then
9766 shared_flag='${wl}-G'
9767 else
9768 shared_flag='${wl}-bM:SRE'
9769 fi
9770 fi
9771 fi
9772
b214d478 9773 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9774 # It seems that -bexpall does not export symbols beginning with
9775 # underscore (_), so it is better to generate a list of symbols to export.
9776 always_export_symbols=yes
9777 if test "$aix_use_runtimelinking" = yes; then
9778 # Warning - without using the other runtime loading flags (-brtl),
9779 # -berok will link without error, but may produce a broken library.
9780 allow_undefined_flag='-berok'
9781 # Determine the default libpath from the value encoded in an
9782 # empty executable.
81ecdfbb 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9784/* end confdefs.h. */
9785
9786int
9787main ()
9788{
9789
9790 ;
9791 return 0;
9792}
9793_ACEOF
81ecdfbb 9794if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9795
ce2cded5
L
9796lt_aix_libpath_sed='
9797 /Import File Strings/,/^$/ {
9798 /^0/ {
9799 s/^0 *\(.*\)$/\1/
9800 p
9801 }
9802 }'
9803aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9804# Check for a 64-bit object if we didn't find anything.
9805if test -z "$aix_libpath"; then
9806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807fi
d7040cdb 9808fi
81ecdfbb
RW
9809rm -f core conftest.err conftest.$ac_objext \
9810 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9811if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9812
ce2cded5 9813 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9814 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
ce2cded5
L
9815 else
9816 if test "$host_cpu" = ia64; then
9817 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag="-z nodefs"
9819 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"
9820 else
9821 # Determine the default libpath from the value encoded in an
9822 # empty executable.
81ecdfbb 9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9824/* end confdefs.h. */
d7040cdb 9825
ce2cded5
L
9826int
9827main ()
9828{
d7040cdb 9829
ce2cded5
L
9830 ;
9831 return 0;
9832}
9833_ACEOF
81ecdfbb 9834if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9835
ce2cded5
L
9836lt_aix_libpath_sed='
9837 /Import File Strings/,/^$/ {
9838 /^0/ {
9839 s/^0 *\(.*\)$/\1/
9840 p
9841 }
9842 }'
9843aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844# Check for a 64-bit object if we didn't find anything.
9845if test -z "$aix_libpath"; then
9846 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847fi
ce2cded5 9848fi
81ecdfbb
RW
9849rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9851if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9852
ce2cded5
L
9853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9854 # Warning - without using the other run time loading flags,
9855 # -berok will link without error, but may produce a broken library.
9856 no_undefined_flag=' ${wl}-bernotok'
9857 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9858 if test "$with_gnu_ld" = yes; then
9859 # We only use this code for GNU lds that support --whole-archive.
9860 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9861 else
9862 # Exported symbols can be pulled into shared objects from archives
9863 whole_archive_flag_spec='$convenience'
9864 fi
ce2cded5
L
9865 archive_cmds_need_lc=yes
9866 # This is similar to how AIX traditionally builds its shared libraries.
9867 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'
9868 fi
9869 fi
9870 ;;
d7040cdb 9871
ce2cded5 9872 amigaos*)
b214d478
SE
9873 case $host_cpu in
9874 powerpc)
9875 # see comment about AmigaOS4 .so support
9876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 archive_expsym_cmds=''
9878 ;;
9879 m68k)
9880 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)'
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_minus_L=yes
9883 ;;
9884 esac
ce2cded5
L
9885 ;;
9886
9887 bsdi[45]*)
9888 export_dynamic_flag_spec=-rdynamic
9889 ;;
9890
b214d478 9891 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9892 # When not using gcc, we currently assume that we are using
9893 # Microsoft Visual C++.
9894 # hardcode_libdir_flag_spec is actually meaningless, as there is
9895 # no search path for DLLs.
9896 hardcode_libdir_flag_spec=' '
9897 allow_undefined_flag=unsupported
9898 # Tell ltmain to make .lib files, not .a files.
9899 libext=lib
9900 # Tell ltmain to make .dll files, not .so files.
9901 shrext_cmds=".dll"
9902 # FIXME: Setting linknames here is a bad hack.
3725885a 9903 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9904 # The linker will automatically build a .lib file if we build a DLL.
9905 old_archive_from_new_cmds='true'
9906 # FIXME: Should let the user specify the lib program.
9907 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9908 fix_srcfile_path='`cygpath -w "$srcfile"`'
9909 enable_shared_with_static_runtimes=yes
9910 ;;
9911
9912 darwin* | rhapsody*)
d7040cdb 9913
b214d478
SE
9914
9915 archive_cmds_need_lc=no
9916 hardcode_direct=no
9917 hardcode_automatic=yes
9918 hardcode_shlibpath_var=unsupported
3725885a
RW
9919 if test "$lt_cv_ld_force_load" = "yes"; then
9920 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\"`'
9921 else
9922 whole_archive_flag_spec=''
9923 fi
b214d478
SE
9924 link_all_deplibs=yes
9925 allow_undefined_flag="$_lt_dar_allow_undefined"
9926 case $cc_basename in
9927 ifort*) _lt_dar_can_shared=yes ;;
9928 *) _lt_dar_can_shared=$GCC ;;
9929 esac
9930 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9931 output_verbose_link_cmd=func_echo_all
b214d478
SE
9932 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9933 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9934 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}"
9935 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}"
9936
9937 else
9938 ld_shlibs=no
9939 fi
9940
ce2cded5 9941 ;;
d7040cdb 9942
ce2cded5
L
9943 dgux*)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_libdir_flag_spec='-L$libdir'
9946 hardcode_shlibpath_var=no
9947 ;;
d7040cdb 9948
ce2cded5
L
9949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9950 # support. Future versions do this automatically, but an explicit c++rt0.o
9951 # does not break anything, and helps significantly (at the cost of a little
9952 # extra space).
9953 freebsd2.2*)
9954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 hardcode_direct=yes
9957 hardcode_shlibpath_var=no
d7040cdb 9958 ;;
d7040cdb 9959
ce2cded5 9960 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9961 freebsd2.*)
ce2cded5
L
9962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_direct=yes
9964 hardcode_minus_L=yes
9965 hardcode_shlibpath_var=no
9966 ;;
d7040cdb 9967
ce2cded5
L
9968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9969 freebsd* | dragonfly*)
9970 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9971 hardcode_libdir_flag_spec='-R$libdir'
9972 hardcode_direct=yes
9973 hardcode_shlibpath_var=no
9974 ;;
d7040cdb 9975
ce2cded5
L
9976 hpux9*)
9977 if test "$GCC" = yes; then
9978 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'
9979 else
9980 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'
9981 fi
9982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9983 hardcode_libdir_separator=:
9984 hardcode_direct=yes
d7040cdb 9985
ce2cded5
L
9986 # hardcode_minus_L: Not really in the search PATH,
9987 # but as the default location of the library.
9988 hardcode_minus_L=yes
9989 export_dynamic_flag_spec='${wl}-E'
9990 ;;
d7040cdb 9991
ce2cded5 9992 hpux10*)
3725885a 9993 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9994 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9995 else
9996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9997 fi
9998 if test "$with_gnu_ld" = no; then
9999 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_flag_spec_ld='+b $libdir'
10001 hardcode_libdir_separator=:
10002 hardcode_direct=yes
10003 hardcode_direct_absolute=yes
10004 export_dynamic_flag_spec='${wl}-E'
10005 # hardcode_minus_L: Not really in the search PATH,
10006 # but as the default location of the library.
10007 hardcode_minus_L=yes
10008 fi
10009 ;;
d7040cdb 10010
ce2cded5 10011 hpux11*)
3725885a 10012 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10013 case $host_cpu in
10014 hppa*64*)
10015 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 ia64*)
b214d478 10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10019 ;;
10020 *)
10021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022 ;;
10023 esac
10024 else
10025 case $host_cpu in
10026 hppa*64*)
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 ;;
10029 ia64*)
10030 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031 ;;
10032 *)
3725885a
RW
10033
10034 # Older versions of the 11.00 compiler do not understand -b yet
10035 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10037$as_echo_n "checking if $CC understands -b... " >&6; }
10038if test "${lt_cv_prog_compiler__b+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040else
10041 lt_cv_prog_compiler__b=no
10042 save_LDFLAGS="$LDFLAGS"
10043 LDFLAGS="$LDFLAGS -b"
10044 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10046 # The linker can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 if test -s conftest.err; then
10049 # Append any errors to the config.log.
10050 cat conftest.err 1>&5
10051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10053 if diff conftest.exp conftest.er2 >/dev/null; then
10054 lt_cv_prog_compiler__b=yes
10055 fi
10056 else
10057 lt_cv_prog_compiler__b=yes
10058 fi
10059 fi
10060 $RM -r conftest*
10061 LDFLAGS="$save_LDFLAGS"
10062
10063fi
10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10065$as_echo "$lt_cv_prog_compiler__b" >&6; }
10066
10067if test x"$lt_cv_prog_compiler__b" = xyes; then
10068 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071fi
10072
ce2cded5
L
10073 ;;
10074 esac
10075 fi
10076 if test "$with_gnu_ld" = no; then
10077 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10078 hardcode_libdir_separator=:
d7040cdb 10079
ce2cded5
L
10080 case $host_cpu in
10081 hppa*64*|ia64*)
10082 hardcode_direct=no
10083 hardcode_shlibpath_var=no
10084 ;;
10085 *)
10086 hardcode_direct=yes
10087 hardcode_direct_absolute=yes
10088 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10089
ce2cded5
L
10090 # hardcode_minus_L: Not really in the search PATH,
10091 # but as the default location of the library.
10092 hardcode_minus_L=yes
10093 ;;
10094 esac
10095 fi
10096 ;;
d7040cdb 10097
ce2cded5
L
10098 irix5* | irix6* | nonstopux*)
10099 if test "$GCC" = yes; then
3725885a 10100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
10101 # Try to use the -exported_symbol ld option, if it does not
10102 # work, assume that -exports_file does not work either and
10103 # implicitly export all symbols.
10104 save_LDFLAGS="$LDFLAGS"
10105 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107/* end confdefs.h. */
ce2cded5
L
10108int foo(void) {}
10109_ACEOF
81ecdfbb 10110if ac_fn_c_try_link "$LINENO"; then :
3725885a 10111 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 10112
ce2cded5 10113fi
81ecdfbb
RW
10114rm -f core conftest.err conftest.$ac_objext \
10115 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10116 LDFLAGS="$save_LDFLAGS"
10117 else
3725885a
RW
10118 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'
10119 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
ce2cded5
L
10120 fi
10121 archive_cmds_need_lc='no'
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 hardcode_libdir_separator=:
10124 inherit_rpath=yes
10125 link_all_deplibs=yes
10126 ;;
d7040cdb 10127
ce2cded5
L
10128 netbsd*)
10129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10131 else
10132 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10133 fi
10134 hardcode_libdir_flag_spec='-R$libdir'
10135 hardcode_direct=yes
10136 hardcode_shlibpath_var=no
10137 ;;
d7040cdb 10138
ce2cded5
L
10139 newsos6)
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_direct=yes
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 hardcode_libdir_separator=:
10144 hardcode_shlibpath_var=no
10145 ;;
d7040cdb 10146
ce2cded5
L
10147 *nto* | *qnx*)
10148 ;;
d7040cdb 10149
ce2cded5 10150 openbsd*)
b214d478
SE
10151 if test -f /usr/libexec/ld.so; then
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10154 hardcode_direct_absolute=yes
10155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10157 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10158 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10159 export_dynamic_flag_spec='${wl}-E'
10160 else
10161 case $host_os in
10162 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec='-R$libdir'
10165 ;;
10166 *)
10167 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10169 ;;
10170 esac
10171 fi
10172 else
10173 ld_shlibs=no
ce2cded5
L
10174 fi
10175 ;;
d7040cdb 10176
ce2cded5
L
10177 os2*)
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10180 allow_undefined_flag=unsupported
3725885a 10181 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
ce2cded5
L
10182 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10183 ;;
d7040cdb 10184
ce2cded5
L
10185 osf3*)
10186 if test "$GCC" = yes; then
10187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
10189 else
10190 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10191 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5
L
10192 fi
10193 archive_cmds_need_lc='no'
10194 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10195 hardcode_libdir_separator=:
10196 ;;
d7040cdb 10197
ce2cded5
L
10198 osf4* | osf5*) # as osf3* with the addition of -msym flag
10199 if test "$GCC" = yes; then
10200 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10201 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
10202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10203 else
10204 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10205 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5 10206 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 10207 $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 10208
ce2cded5
L
10209 # Both c and cxx compiler support -rpath directly
10210 hardcode_libdir_flag_spec='-rpath $libdir'
10211 fi
10212 archive_cmds_need_lc='no'
10213 hardcode_libdir_separator=:
10214 ;;
d7040cdb 10215
ce2cded5
L
10216 solaris*)
10217 no_undefined_flag=' -z defs'
10218 if test "$GCC" = yes; then
10219 wlarc='${wl}'
10220 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10222 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10223 else
10224 case `$CC -V 2>&1` in
10225 *"Compilers 5.0"*)
10226 wlarc=''
10227 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10230 ;;
10231 *)
10232 wlarc='${wl}'
10233 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10234 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10235 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10236 ;;
10237 esac
10238 fi
10239 hardcode_libdir_flag_spec='-R$libdir'
10240 hardcode_shlibpath_var=no
10241 case $host_os in
10242 solaris2.[0-5] | solaris2.[0-5].*) ;;
10243 *)
10244 # The compiler driver will combine and reorder linker options,
10245 # but understands `-z linker_flag'. GCC discards it without `$wl',
10246 # but is careful enough not to reorder.
10247 # Supported since Solaris 2.6 (maybe 2.5.1?)
10248 if test "$GCC" = yes; then
10249 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10250 else
10251 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10252 fi
10253 ;;
10254 esac
10255 link_all_deplibs=yes
10256 ;;
d7040cdb 10257
ce2cded5
L
10258 sunos4*)
10259 if test "x$host_vendor" = xsequent; then
10260 # Use $CC to link under sequent, because it throws in some extra .o
10261 # files that make .init and .fini sections work.
10262 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10263 else
10264 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10265 fi
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_direct=yes
10268 hardcode_minus_L=yes
10269 hardcode_shlibpath_var=no
10270 ;;
d7040cdb 10271
ce2cded5
L
10272 sysv4)
10273 case $host_vendor in
10274 sni)
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_direct=yes # is this really true???
10277 ;;
10278 siemens)
10279 ## LD is ld it makes a PLAMLIB
10280 ## CC just makes a GrossModule.
10281 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10282 reload_cmds='$CC -r -o $output$reload_objs'
10283 hardcode_direct=no
10284 ;;
10285 motorola)
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10288 ;;
10289 esac
10290 runpath_var='LD_RUN_PATH'
10291 hardcode_shlibpath_var=no
10292 ;;
d7040cdb 10293
ce2cded5
L
10294 sysv4.3*)
10295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_shlibpath_var=no
10297 export_dynamic_flag_spec='-Bexport'
10298 ;;
d7040cdb 10299
ce2cded5
L
10300 sysv4*MP*)
10301 if test -d /usr/nec; then
10302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303 hardcode_shlibpath_var=no
10304 runpath_var=LD_RUN_PATH
10305 hardcode_runpath_var=yes
10306 ld_shlibs=yes
10307 fi
10308 ;;
d7040cdb 10309
ce2cded5
L
10310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10311 no_undefined_flag='${wl}-z,text'
10312 archive_cmds_need_lc=no
10313 hardcode_shlibpath_var=no
10314 runpath_var='LD_RUN_PATH'
d7040cdb 10315
ce2cded5
L
10316 if test "$GCC" = yes; then
10317 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319 else
10320 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 fi
10323 ;;
d7040cdb 10324
ce2cded5
L
10325 sysv5* | sco3.2v5* | sco5v6*)
10326 # Note: We can NOT use -z defs as we might desire, because we do not
10327 # link with -lc, and that would cause any symbols used from libc to
10328 # always be unresolved, which means just about no library would
10329 # ever link correctly. If we're not using GNU ld we use -z text
10330 # though, which does catch some bad symbols but isn't as heavy-handed
10331 # as -z defs.
10332 no_undefined_flag='${wl}-z,text'
10333 allow_undefined_flag='${wl}-z,nodefs'
10334 archive_cmds_need_lc=no
10335 hardcode_shlibpath_var=no
10336 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10337 hardcode_libdir_separator=':'
10338 link_all_deplibs=yes
10339 export_dynamic_flag_spec='${wl}-Bexport'
10340 runpath_var='LD_RUN_PATH'
d7040cdb 10341
ce2cded5
L
10342 if test "$GCC" = yes; then
10343 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10345 else
10346 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10347 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 fi
10349 ;;
d7040cdb 10350
ce2cded5
L
10351 uts4*)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec='-L$libdir'
10354 hardcode_shlibpath_var=no
10355 ;;
d7040cdb 10356
ce2cded5
L
10357 *)
10358 ld_shlibs=no
10359 ;;
10360 esac
d7040cdb 10361
ce2cded5
L
10362 if test x$host_vendor = xsni; then
10363 case $host in
10364 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10365 export_dynamic_flag_spec='${wl}-Blargedynsym'
10366 ;;
10367 esac
10368 fi
10369 fi
d7040cdb 10370
81ecdfbb
RW
10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10372$as_echo "$ld_shlibs" >&6; }
ce2cded5 10373test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10374
ce2cded5 10375with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
ce2cded5
L
10391#
10392# Do we need to explicitly link libc?
10393#
10394case "x$archive_cmds_need_lc" in
10395x|xyes)
10396 # Assume -lc should be added
10397 archive_cmds_need_lc=yes
d7040cdb 10398
ce2cded5
L
10399 if test "$enable_shared" = yes && test "$GCC" = yes; then
10400 case $archive_cmds in
10401 *'~'*)
10402 # FIXME: we may have to deal with multi-command sequences.
10403 ;;
10404 '$CC '*)
10405 # Test whether the compiler implicitly links with -lc since on some
10406 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10407 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10409$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10410if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
39144654
RW
10412else
10413 $RM conftest*
10414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10415
81ecdfbb 10416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10417 (eval $ac_compile) 2>&5
10418 ac_status=$?
81ecdfbb
RW
10419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10420 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10421 soname=conftest
10422 lib=conftest
10423 libobjs=conftest.$ac_objext
10424 deplibs=
10425 wl=$lt_prog_compiler_wl
10426 pic_flag=$lt_prog_compiler_pic
10427 compiler_flags=-v
10428 linker_flags=-v
10429 verstring=
10430 output_objdir=.
10431 libname=conftest
10432 lt_save_allow_undefined_flag=$allow_undefined_flag
10433 allow_undefined_flag=
81ecdfbb 10434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10435 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10436 ac_status=$?
81ecdfbb
RW
10437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10438 test $ac_status = 0; }
39144654
RW
10439 then
10440 lt_cv_archive_cmds_need_lc=no
10441 else
10442 lt_cv_archive_cmds_need_lc=yes
10443 fi
10444 allow_undefined_flag=$lt_save_allow_undefined_flag
10445 else
10446 cat conftest.err 1>&5
10447 fi
10448 $RM conftest*
10449
10450fi
81ecdfbb
RW
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10452$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10453 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10454 ;;
10455 esac
10456 fi
10457 ;;
10458esac
d7040cdb
SE
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
d7040cdb 10486
d7040cdb 10487
d7040cdb
SE
10488
10489
10490
10491
10492
10493
d7040cdb 10494
d7040cdb 10495
d7040cdb 10496
d7040cdb 10497
d7040cdb 10498
d7040cdb 10499
d7040cdb 10500
d7040cdb 10501
d7040cdb 10502
d7040cdb 10503
d7040cdb 10504
d7040cdb 10505
d7040cdb 10506
d7040cdb 10507
d7040cdb 10508
d7040cdb 10509
d7040cdb 10510
d7040cdb 10511
d7040cdb 10512
d7040cdb 10513
d7040cdb 10514
d7040cdb 10515
d7040cdb 10516
d7040cdb 10517
d7040cdb 10518
d7040cdb 10519
d7040cdb 10520
d7040cdb 10521
ce2cded5
L
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
81ecdfbb
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10617$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10618
10619if test "$GCC" = yes; then
ce2cded5
L
10620 case $host_os in
10621 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10622 *) lt_awk_arg="/^libraries:/" ;;
10623 esac
3725885a
RW
10624 case $host_os in
10625 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10626 *) lt_sed_strip_eq="s,=/,/,g" ;;
10627 esac
10628 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10629 case $lt_search_path_spec in
10630 *\;*)
ce2cded5
L
10631 # if the path contains ";" then we assume it to be the separator
10632 # otherwise default to the standard path separator (i.e. ":") - it is
10633 # assumed that no part of a normal pathname contains ";" but that should
10634 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10636 ;;
10637 *)
10638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10639 ;;
10640 esac
ce2cded5
L
10641 # Ok, now we have the path, separated by spaces, we can step through it
10642 # and add multilib dir if necessary.
10643 lt_tmp_lt_search_path_spec=
10644 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10645 for lt_sys_path in $lt_search_path_spec; do
10646 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10648 else
10649 test -d "$lt_sys_path" && \
10650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10651 fi
10652 done
3725885a 10653 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10654BEGIN {RS=" "; FS="/|\n";} {
10655 lt_foo="";
10656 lt_count=0;
10657 for (lt_i = NF; lt_i > 0; lt_i--) {
10658 if ($lt_i != "" && $lt_i != ".") {
10659 if ($lt_i == "..") {
10660 lt_count++;
10661 } else {
10662 if (lt_count == 0) {
10663 lt_foo="/" $lt_i lt_foo;
10664 } else {
10665 lt_count--;
10666 }
10667 }
10668 }
10669 }
10670 if (lt_foo != "") { lt_freq[lt_foo]++; }
10671 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10672}'`
3725885a
RW
10673 # AWK program above erroneously prepends '/' to C:/dos/paths
10674 # for these hosts.
10675 case $host_os in
10676 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10677 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10678 esac
10679 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10680else
ce2cded5
L
10681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10682fi
10683library_names_spec=
10684libname_spec='lib$name'
10685soname_spec=
10686shrext_cmds=".so"
10687postinstall_cmds=
10688postuninstall_cmds=
10689finish_cmds=
10690finish_eval=
10691shlibpath_var=
10692shlibpath_overrides_runpath=unknown
10693version_type=none
10694dynamic_linker="$host_os ld.so"
10695sys_lib_dlsearch_path_spec="/lib /usr/lib"
10696need_lib_prefix=unknown
10697hardcode_into_libs=no
10698
10699# when you set need_version to no, make sure it does not cause -set_version
10700# flags to be left without arguments
10701need_version=unknown
10702
10703case $host_os in
10704aix3*)
10705 version_type=linux
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10707 shlibpath_var=LIBPATH
10708
10709 # AIX 3 has no versioning support, so we append a major version to the name.
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 ;;
10712
50e7d84b 10713aix[4-9]*)
ce2cded5
L
10714 version_type=linux
10715 need_lib_prefix=no
10716 need_version=no
10717 hardcode_into_libs=yes
10718 if test "$host_cpu" = ia64; then
10719 # AIX 5 supports IA64
10720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 else
10723 # With GCC up to 2.95.x, collect2 would create an import file
10724 # for dependence libraries. The import file would start with
10725 # the line `#! .'. This would cause the generated library to
10726 # depend on `.', always an invalid library. This was fixed in
10727 # development snapshots of GCC prior to 3.0.
10728 case $host_os in
10729 aix4 | aix4.[01] | aix4.[01].*)
10730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10731 echo ' yes '
10732 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10733 :
10734 else
10735 can_build_shared=no
10736 fi
10737 ;;
10738 esac
10739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10740 # soname into executable. Probably we can add versioning support to
10741 # collect2, so additional links can be useful in future.
10742 if test "$aix_use_runtimelinking" = yes; then
10743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10744 # instead of lib<name>.a to let people know that these are not
10745 # typical AIX shared libraries.
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747 else
10748 # We preserve .a as extension for shared libraries through AIX4.2
10749 # and later when we are not doing run time linking.
10750 library_names_spec='${libname}${release}.a $libname.a'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 fi
10753 shlibpath_var=LIBPATH
10754 fi
10755 ;;
10756
10757amigaos*)
b214d478
SE
10758 case $host_cpu in
10759 powerpc)
10760 # Since July 2007 AmigaOS4 officially supports .so libraries.
10761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 ;;
10764 m68k)
ce2cded5
L
10765 library_names_spec='$libname.ixlibrary $libname.a'
10766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10767 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'
b214d478
SE
10768 ;;
10769 esac
ce2cded5
L
10770 ;;
10771
10772beos*)
10773 library_names_spec='${libname}${shared_ext}'
10774 dynamic_linker="$host_os ld.so"
10775 shlibpath_var=LIBRARY_PATH
10776 ;;
10777
10778bsdi[45]*)
10779 version_type=linux
10780 need_version=no
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10784 shlibpath_var=LD_LIBRARY_PATH
10785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10787 # the default ld.so.conf also contains /usr/contrib/lib and
10788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10789 # libtool to hard-code these into programs
10790 ;;
10791
b214d478 10792cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10793 version_type=windows
10794 shrext_cmds=".dll"
10795 need_version=no
10796 need_lib_prefix=no
10797
b214d478
SE
10798 case $GCC,$host_os in
10799 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10800 library_names_spec='$libname.dll.a'
10801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10802 postinstall_cmds='base_file=`basename \${file}`~
10803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10804 dldir=$destdir/`dirname \$dlpath`~
10805 test -d \$dldir || mkdir -p \$dldir~
10806 $install_prog $dir/$dlname \$dldir/$dlname~
10807 chmod a+x \$dldir/$dlname~
10808 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10809 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10810 fi'
10811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812 dlpath=$dir/\$dldll~
10813 $RM \$dlpath'
10814 shlibpath_overrides_runpath=yes
10815
10816 case $host_os in
10817 cygwin*)
10818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10820
10821 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10822 ;;
b214d478 10823 mingw* | cegcc*)
ce2cded5
L
10824 # MinGW DLLs use traditional 'lib' prefix
10825 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10826 ;;
10827 pw32*)
10828 # pw32 DLLs use 'pw' prefix rather than 'lib'
10829 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830 ;;
10831 esac
10832 ;;
10833
10834 *)
10835 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10836 ;;
10837 esac
10838 dynamic_linker='Win32 ld.exe'
10839 # FIXME: first we should search . and the directory the executable is in
10840 shlibpath_var=PATH
10841 ;;
10842
10843darwin* | rhapsody*)
10844 dynamic_linker="$host_os dyld"
10845 version_type=darwin
10846 need_lib_prefix=no
10847 need_version=no
10848 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10849 soname_spec='${libname}${release}${major}$shared_ext'
10850 shlibpath_overrides_runpath=yes
10851 shlibpath_var=DYLD_LIBRARY_PATH
10852 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10853
10854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10855 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10856 ;;
10857
10858dgux*)
10859 version_type=linux
10860 need_lib_prefix=no
10861 need_version=no
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 shlibpath_var=LD_LIBRARY_PATH
10865 ;;
10866
ce2cded5
L
10867freebsd* | dragonfly*)
10868 # DragonFly does not have aout. When/if they implement a new
10869 # versioning mechanism, adjust this.
10870 if test -x /usr/bin/objformat; then
10871 objformat=`/usr/bin/objformat`
10872 else
10873 case $host_os in
6d2920c8 10874 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10875 *) objformat=elf ;;
10876 esac
10877 fi
10878 version_type=freebsd-$objformat
10879 case $version_type in
10880 freebsd-elf*)
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10882 need_version=no
10883 need_lib_prefix=no
10884 ;;
10885 freebsd-*)
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10887 need_version=yes
10888 ;;
10889 esac
10890 shlibpath_var=LD_LIBRARY_PATH
10891 case $host_os in
6d2920c8 10892 freebsd2.*)
ce2cded5
L
10893 shlibpath_overrides_runpath=yes
10894 ;;
10895 freebsd3.[01]* | freebsdelf3.[01]*)
10896 shlibpath_overrides_runpath=yes
10897 hardcode_into_libs=yes
10898 ;;
10899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10901 shlibpath_overrides_runpath=no
10902 hardcode_into_libs=yes
10903 ;;
10904 *) # from 4.6 on, and DragonFly
10905 shlibpath_overrides_runpath=yes
10906 hardcode_into_libs=yes
10907 ;;
10908 esac
10909 ;;
10910
10911gnu*)
10912 version_type=linux
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10916 soname_spec='${libname}${release}${shared_ext}$major'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 hardcode_into_libs=yes
10919 ;;
10920
3725885a
RW
10921haiku*)
10922 version_type=linux
10923 need_lib_prefix=no
10924 need_version=no
10925 dynamic_linker="$host_os runtime_loader"
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LIBRARY_PATH
10929 shlibpath_overrides_runpath=yes
10930 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10931 hardcode_into_libs=yes
10932 ;;
10933
ce2cded5
L
10934hpux9* | hpux10* | hpux11*)
10935 # Give a soname corresponding to the major version so that dld.sl refuses to
10936 # link against other versions.
10937 version_type=sunos
10938 need_lib_prefix=no
10939 need_version=no
10940 case $host_cpu in
10941 ia64*)
10942 shrext_cmds='.so'
10943 hardcode_into_libs=yes
10944 dynamic_linker="$host_os dld.so"
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 if test "X$HPUX_IA64_MODE" = X32; then
10950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10951 else
10952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10953 fi
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955 ;;
10956 hppa*64*)
10957 shrext_cmds='.sl'
10958 hardcode_into_libs=yes
10959 dynamic_linker="$host_os dld.sl"
10960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963 soname_spec='${libname}${release}${shared_ext}$major'
10964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966 ;;
10967 *)
10968 shrext_cmds='.sl'
10969 dynamic_linker="$host_os dld.sl"
10970 shlibpath_var=SHLIB_PATH
10971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 ;;
10975 esac
3725885a 10976 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10977 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10978 # or fails outright, so override atomically:
10979 install_override_mode=555
ce2cded5
L
10980 ;;
10981
10982interix[3-9]*)
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=no
10991 hardcode_into_libs=yes
10992 ;;
10993
10994irix5* | irix6* | nonstopux*)
10995 case $host_os in
10996 nonstopux*) version_type=nonstopux ;;
10997 *)
10998 if test "$lt_cv_prog_gnu_ld" = yes; then
10999 version_type=linux
11000 else
11001 version_type=irix
11002 fi ;;
11003 esac
11004 need_lib_prefix=no
11005 need_version=no
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11008 case $host_os in
11009 irix5* | nonstopux*)
11010 libsuff= shlibsuff=
11011 ;;
11012 *)
11013 case $LD in # libtool.m4 will add one of these switches to LD
11014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11015 libsuff= shlibsuff= libmagic=32-bit;;
11016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11017 libsuff=32 shlibsuff=N32 libmagic=N32;;
11018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11020 *) libsuff= shlibsuff= libmagic=never-match;;
11021 esac
11022 ;;
11023 esac
11024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11025 shlibpath_overrides_runpath=no
11026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11028 hardcode_into_libs=yes
11029 ;;
11030
11031# No shared lib support for Linux oldld, aout, or coff.
11032linux*oldld* | linux*aout* | linux*coff*)
11033 dynamic_linker=no
11034 ;;
11035
11036# This must be Linux ELF.
58e24671 11037linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11038 version_type=linux
11039 need_lib_prefix=no
11040 need_version=no
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
39144654 11046
ce2cded5 11047 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11048 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11049 $as_echo_n "(cached) " >&6
39144654
RW
11050else
11051 lt_cv_shlibpath_overrides_runpath=no
11052 save_LDFLAGS=$LDFLAGS
11053 save_libdir=$libdir
11054 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11055 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11057/* end confdefs.h. */
11058
d7040cdb
SE
11059int
11060main ()
11061{
ce2cded5 11062
d7040cdb
SE
11063 ;
11064 return 0;
11065}
11066_ACEOF
81ecdfbb
RW
11067if ac_fn_c_try_link "$LINENO"; then :
11068 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11069 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11070fi
d7040cdb 11071fi
81ecdfbb
RW
11072rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11074 LDFLAGS=$save_LDFLAGS
11075 libdir=$save_libdir
11076
11077fi
11078
11079 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11080
ce2cded5
L
11081 # This implies no fast_install, which is unacceptable.
11082 # Some rework will be needed to allow for fast_install
11083 # before this can be enabled.
11084 hardcode_into_libs=yes
d7040cdb 11085
ce2cded5
L
11086 # Append ld.so.conf contents to the search path
11087 if test -f /etc/ld.so.conf; then
3725885a 11088 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
ce2cded5
L
11089 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11090 fi
d7040cdb 11091
ce2cded5
L
11092 # We used to test for /lib/ld.so.1 and disable shared libraries on
11093 # powerpc, because MkLinux only supported shared libraries with the
11094 # GNU dynamic linker. Since this was broken with cross compilers,
11095 # most powerpc-linux boxes support dynamic linking these days and
11096 # people can always --disable-shared, the test was removed, and we
11097 # assume the GNU/Linux dynamic linker is in use.
11098 dynamic_linker='GNU/Linux ld.so'
11099 ;;
d7040cdb 11100
ce2cded5
L
11101netbsd*)
11102 version_type=sunos
11103 need_lib_prefix=no
11104 need_version=no
11105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11108 dynamic_linker='NetBSD (a.out) ld.so'
11109 else
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 dynamic_linker='NetBSD ld.elf_so'
11113 fi
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11117 ;;
d7040cdb 11118
ce2cded5
L
11119newsos6)
11120 version_type=linux
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes
11124 ;;
d7040cdb 11125
ce2cded5
L
11126*nto* | *qnx*)
11127 version_type=qnx
11128 need_lib_prefix=no
11129 need_version=no
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=no
11134 hardcode_into_libs=yes
11135 dynamic_linker='ldqnx.so'
11136 ;;
d7040cdb 11137
ce2cded5
L
11138openbsd*)
11139 version_type=sunos
11140 sys_lib_dlsearch_path_spec="/usr/lib"
11141 need_lib_prefix=no
11142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11143 case $host_os in
11144 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11145 *) need_version=no ;;
11146 esac
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11151 case $host_os in
11152 openbsd2.[89] | openbsd2.[89].*)
11153 shlibpath_overrides_runpath=no
11154 ;;
11155 *)
11156 shlibpath_overrides_runpath=yes
11157 ;;
11158 esac
11159 else
11160 shlibpath_overrides_runpath=yes
11161 fi
11162 ;;
d7040cdb 11163
ce2cded5
L
11164os2*)
11165 libname_spec='$name'
11166 shrext_cmds=".dll"
11167 need_lib_prefix=no
11168 library_names_spec='$libname${shared_ext} $libname.a'
11169 dynamic_linker='OS/2 ld.exe'
11170 shlibpath_var=LIBPATH
11171 ;;
d7040cdb 11172
ce2cded5
L
11173osf3* | osf4* | osf5*)
11174 version_type=osf
11175 need_lib_prefix=no
11176 need_version=no
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11181 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11182 ;;
d7040cdb 11183
ce2cded5
L
11184rdos*)
11185 dynamic_linker=no
11186 ;;
d7040cdb 11187
ce2cded5
L
11188solaris*)
11189 version_type=linux
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 hardcode_into_libs=yes
11197 # ldd complains unless libraries are executable
11198 postinstall_cmds='chmod +x $lib'
11199 ;;
d7040cdb 11200
ce2cded5
L
11201sunos4*)
11202 version_type=sunos
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11204 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=yes
11207 if test "$with_gnu_ld" = yes; then
11208 need_lib_prefix=no
11209 fi
11210 need_version=yes
11211 ;;
d7040cdb 11212
ce2cded5
L
11213sysv4 | sysv4.3*)
11214 version_type=linux
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 case $host_vendor in
11219 sni)
11220 shlibpath_overrides_runpath=no
11221 need_lib_prefix=no
11222 runpath_var=LD_RUN_PATH
11223 ;;
11224 siemens)
11225 need_lib_prefix=no
11226 ;;
11227 motorola)
11228 need_lib_prefix=no
11229 need_version=no
11230 shlibpath_overrides_runpath=no
11231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11232 ;;
11233 esac
11234 ;;
d7040cdb 11235
ce2cded5
L
11236sysv4*MP*)
11237 if test -d /usr/nec ;then
11238 version_type=linux
11239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240 soname_spec='$libname${shared_ext}.$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 fi
11243 ;;
d7040cdb 11244
ce2cded5
L
11245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11246 version_type=freebsd-elf
11247 need_lib_prefix=no
11248 need_version=no
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11250 soname_spec='${libname}${release}${shared_ext}$major'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11253 hardcode_into_libs=yes
11254 if test "$with_gnu_ld" = yes; then
11255 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11256 else
11257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11258 case $host_os in
11259 sco3.2v5*)
11260 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11261 ;;
11262 esac
11263 fi
11264 sys_lib_dlsearch_path_spec='/usr/lib'
11265 ;;
d7040cdb 11266
ce2cded5
L
11267tpf*)
11268 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11269 version_type=linux
11270 need_lib_prefix=no
11271 need_version=no
b214d478 11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 ;;
d7040cdb 11277
ce2cded5
L
11278uts4*)
11279 version_type=linux
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 ;;
d7040cdb 11284
ce2cded5
L
11285*)
11286 dynamic_linker=no
11287 ;;
11288esac
81ecdfbb
RW
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11290$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11291test "$dynamic_linker" = no && can_build_shared=no
11292
11293variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11294if test "$GCC" = yes; then
11295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11296fi
11297
b214d478
SE
11298if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11299 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11300fi
11301if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11302 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11303fi
11304
d7040cdb
SE
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
d7040cdb 11316
d7040cdb 11317
d7040cdb 11318
d7040cdb 11319
d7040cdb
SE
11320
11321
11322
11323
d7040cdb 11324
d7040cdb
SE
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
d7040cdb
SE
11338
11339
11340
11341
d7040cdb
SE
11342
11343
11344
11345
d7040cdb 11346
d7040cdb 11347
d7040cdb 11348
d7040cdb 11349
d7040cdb 11350
d7040cdb 11351
d7040cdb 11352
d7040cdb
SE
11353
11354
11355
11356
11357
d7040cdb 11358
d7040cdb 11359
d7040cdb 11360
d7040cdb 11361
d7040cdb 11362
d7040cdb 11363
d7040cdb
SE
11364
11365
11366
11367
11368
d7040cdb
SE
11369
11370
d7040cdb 11371
d7040cdb 11372
d7040cdb 11373
d7040cdb 11374
ce2cded5
L
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
3725885a
RW
11385
11386
11387
11388
11389
ce2cded5
L
11390
11391
11392
11393
11394
11395
81ecdfbb
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11397$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11398hardcode_action=
11399if test -n "$hardcode_libdir_flag_spec" ||
11400 test -n "$runpath_var" ||
11401 test "X$hardcode_automatic" = "Xyes" ; then
11402
11403 # We can hardcode non-existent directories.
11404 if test "$hardcode_direct" != no &&
11405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11406 # have to relink, otherwise we might link with an installed library
11407 # when we should be linking with a yet-to-be-installed one
11408 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11409 test "$hardcode_minus_L" != no; then
11410 # Linking always hardcodes the temporary library directory.
11411 hardcode_action=relink
11412 else
11413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11414 hardcode_action=immediate
d7040cdb 11415 fi
d7040cdb 11416else
ce2cded5
L
11417 # We cannot hardcode anything, or else we can only hardcode existing
11418 # directories.
11419 hardcode_action=unsupported
d7040cdb 11420fi
81ecdfbb
RW
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11422$as_echo "$hardcode_action" >&6; }
d7040cdb 11423
ce2cded5
L
11424if test "$hardcode_action" = relink ||
11425 test "$inherit_rpath" = yes; then
11426 # Fast installation is not supported
11427 enable_fast_install=no
11428elif test "$shlibpath_overrides_runpath" = yes ||
11429 test "$enable_shared" = no; then
11430 # Fast installation is not necessary
11431 enable_fast_install=needless
d7040cdb
SE
11432fi
11433
d7040cdb 11434
d7040cdb 11435
d7040cdb 11436
d7040cdb 11437
d7040cdb 11438
ce2cded5
L
11439 if test "x$enable_dlopen" != xyes; then
11440 enable_dlopen=unknown
11441 enable_dlopen_self=unknown
11442 enable_dlopen_self_static=unknown
d7040cdb 11443else
ce2cded5
L
11444 lt_cv_dlopen=no
11445 lt_cv_dlopen_libs=
d7040cdb 11446
ce2cded5
L
11447 case $host_os in
11448 beos*)
11449 lt_cv_dlopen="load_add_on"
11450 lt_cv_dlopen_libs=
11451 lt_cv_dlopen_self=yes
11452 ;;
d7040cdb 11453
b214d478 11454 mingw* | pw32* | cegcc*)
ce2cded5
L
11455 lt_cv_dlopen="LoadLibrary"
11456 lt_cv_dlopen_libs=
11457 ;;
11458
11459 cygwin*)
11460 lt_cv_dlopen="dlopen"
11461 lt_cv_dlopen_libs=
11462 ;;
11463
11464 darwin*)
11465 # if libdl is installed we need to link against it
81ecdfbb
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11467$as_echo_n "checking for dlopen in -ldl... " >&6; }
11468if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
d7040cdb 11470else
ce2cded5
L
11471 ac_check_lib_save_LIBS=$LIBS
11472LIBS="-ldl $LIBS"
81ecdfbb 11473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11474/* end confdefs.h. */
11475
81ecdfbb
RW
11476/* Override any GCC internal prototype to avoid an error.
11477 Use char because int might match the return type of a GCC
11478 builtin and then its argument prototype would still apply. */
ce2cded5
L
11479#ifdef __cplusplus
11480extern "C"
11481#endif
ce2cded5
L
11482char dlopen ();
11483int
11484main ()
11485{
81ecdfbb 11486return dlopen ();
ce2cded5
L
11487 ;
11488 return 0;
11489}
11490_ACEOF
81ecdfbb 11491if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11492 ac_cv_lib_dl_dlopen=yes
11493else
81ecdfbb 11494 ac_cv_lib_dl_dlopen=no
d7040cdb 11495fi
81ecdfbb
RW
11496rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11498LIBS=$ac_check_lib_save_LIBS
d7040cdb 11499fi
81ecdfbb
RW
11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11501$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11502if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11504else
d7040cdb 11505
ce2cded5
L
11506 lt_cv_dlopen="dyld"
11507 lt_cv_dlopen_libs=
11508 lt_cv_dlopen_self=yes
11509
d7040cdb 11510fi
ce2cded5
L
11511
11512 ;;
11513
11514 *)
81ecdfbb
RW
11515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11516if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11517 lt_cv_dlopen="shl_load"
11518else
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11520$as_echo_n "checking for shl_load in -ldld... " >&6; }
11521if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
ce2cded5
L
11523else
11524 ac_check_lib_save_LIBS=$LIBS
11525LIBS="-ldld $LIBS"
81ecdfbb 11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11527/* end confdefs.h. */
d7040cdb 11528
81ecdfbb
RW
11529/* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
ce2cded5
L
11532#ifdef __cplusplus
11533extern "C"
11534#endif
ce2cded5
L
11535char shl_load ();
11536int
11537main ()
11538{
81ecdfbb 11539return shl_load ();
ce2cded5
L
11540 ;
11541 return 0;
11542}
11543_ACEOF
81ecdfbb 11544if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11545 ac_cv_lib_dld_shl_load=yes
11546else
81ecdfbb 11547 ac_cv_lib_dld_shl_load=no
ce2cded5 11548fi
81ecdfbb
RW
11549rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11551LIBS=$ac_check_lib_save_LIBS
11552fi
81ecdfbb
RW
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11554$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11555if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11556 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11557else
81ecdfbb
RW
11558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11559if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11560 lt_cv_dlopen="dlopen"
11561else
81ecdfbb
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11563$as_echo_n "checking for dlopen in -ldl... " >&6; }
11564if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11565 $as_echo_n "(cached) " >&6
d7040cdb 11566else
ce2cded5
L
11567 ac_check_lib_save_LIBS=$LIBS
11568LIBS="-ldl $LIBS"
81ecdfbb 11569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11570/* end confdefs.h. */
11571
81ecdfbb
RW
11572/* Override any GCC internal prototype to avoid an error.
11573 Use char because int might match the return type of a GCC
11574 builtin and then its argument prototype would still apply. */
ce2cded5
L
11575#ifdef __cplusplus
11576extern "C"
11577#endif
ce2cded5 11578char dlopen ();
d7040cdb
SE
11579int
11580main ()
11581{
81ecdfbb 11582return dlopen ();
d7040cdb
SE
11583 ;
11584 return 0;
11585}
11586_ACEOF
81ecdfbb 11587if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11588 ac_cv_lib_dl_dlopen=yes
d7040cdb 11589else
81ecdfbb 11590 ac_cv_lib_dl_dlopen=no
d7040cdb 11591fi
81ecdfbb
RW
11592rm -f core conftest.err conftest.$ac_objext \
11593 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11594LIBS=$ac_check_lib_save_LIBS
d7040cdb 11595fi
81ecdfbb
RW
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11597$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11598if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11600else
81ecdfbb
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11602$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11603if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
d7040cdb 11605else
ce2cded5
L
11606 ac_check_lib_save_LIBS=$LIBS
11607LIBS="-lsvld $LIBS"
81ecdfbb 11608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11609/* end confdefs.h. */
d7040cdb 11610
81ecdfbb
RW
11611/* Override any GCC internal prototype to avoid an error.
11612 Use char because int might match the return type of a GCC
11613 builtin and then its argument prototype would still apply. */
ce2cded5
L
11614#ifdef __cplusplus
11615extern "C"
11616#endif
ce2cded5 11617char dlopen ();
d7040cdb
SE
11618int
11619main ()
11620{
81ecdfbb 11621return dlopen ();
d7040cdb
SE
11622 ;
11623 return 0;
11624}
11625_ACEOF
81ecdfbb 11626if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11627 ac_cv_lib_svld_dlopen=yes
d7040cdb 11628else
81ecdfbb 11629 ac_cv_lib_svld_dlopen=no
d7040cdb 11630fi
81ecdfbb
RW
11631rm -f core conftest.err conftest.$ac_objext \
11632 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11633LIBS=$ac_check_lib_save_LIBS
d7040cdb 11634fi
81ecdfbb
RW
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11636$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11637if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11639else
81ecdfbb
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11641$as_echo_n "checking for dld_link in -ldld... " >&6; }
11642if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
ce2cded5
L
11644else
11645 ac_check_lib_save_LIBS=$LIBS
11646LIBS="-ldld $LIBS"
81ecdfbb 11647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11648/* end confdefs.h. */
11649
81ecdfbb
RW
11650/* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
ce2cded5
L
11653#ifdef __cplusplus
11654extern "C"
11655#endif
ce2cded5 11656char dld_link ();
d7040cdb
SE
11657int
11658main ()
11659{
81ecdfbb 11660return dld_link ();
d7040cdb
SE
11661 ;
11662 return 0;
11663}
11664_ACEOF
81ecdfbb 11665if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11666 ac_cv_lib_dld_dld_link=yes
d7040cdb 11667else
81ecdfbb 11668 ac_cv_lib_dld_dld_link=no
d7040cdb 11669fi
81ecdfbb
RW
11670rm -f core conftest.err conftest.$ac_objext \
11671 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11672LIBS=$ac_check_lib_save_LIBS
11673fi
81ecdfbb
RW
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11675$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11676if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11677 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11678fi
11679
11680
11681fi
11682
11683
11684fi
11685
11686
11687fi
11688
11689
11690fi
11691
11692
11693fi
11694
11695 ;;
11696 esac
11697
11698 if test "x$lt_cv_dlopen" != xno; then
11699 enable_dlopen=yes
11700 else
11701 enable_dlopen=no
11702 fi
11703
11704 case $lt_cv_dlopen in
11705 dlopen)
11706 save_CPPFLAGS="$CPPFLAGS"
11707 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11708
11709 save_LDFLAGS="$LDFLAGS"
11710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11711
11712 save_LIBS="$LIBS"
11713 LIBS="$lt_cv_dlopen_libs $LIBS"
11714
81ecdfbb
RW
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11716$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11717if test "${lt_cv_dlopen_self+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
ce2cded5
L
11719else
11720 if test "$cross_compiling" = yes; then :
11721 lt_cv_dlopen_self=cross
11722else
11723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11724 lt_status=$lt_dlunknown
11725 cat > conftest.$ac_ext <<_LT_EOF
647e4d46 11726#line 11726 "configure"
ce2cded5
L
11727#include "confdefs.h"
11728
11729#if HAVE_DLFCN_H
11730#include <dlfcn.h>
11731#endif
11732
11733#include <stdio.h>
11734
11735#ifdef RTLD_GLOBAL
11736# define LT_DLGLOBAL RTLD_GLOBAL
11737#else
11738# ifdef DL_GLOBAL
11739# define LT_DLGLOBAL DL_GLOBAL
11740# else
11741# define LT_DLGLOBAL 0
11742# endif
11743#endif
11744
11745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11746 find out it does not work in some platform. */
11747#ifndef LT_DLLAZY_OR_NOW
11748# ifdef RTLD_LAZY
11749# define LT_DLLAZY_OR_NOW RTLD_LAZY
11750# else
11751# ifdef DL_LAZY
11752# define LT_DLLAZY_OR_NOW DL_LAZY
11753# else
11754# ifdef RTLD_NOW
11755# define LT_DLLAZY_OR_NOW RTLD_NOW
11756# else
11757# ifdef DL_NOW
11758# define LT_DLLAZY_OR_NOW DL_NOW
11759# else
11760# define LT_DLLAZY_OR_NOW 0
11761# endif
11762# endif
11763# endif
11764# endif
11765#endif
11766
3725885a
RW
11767/* When -fvisbility=hidden is used, assume the code has been annotated
11768 correspondingly for the symbols needed. */
11769#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11770void fnord () __attribute__((visibility("default")));
11771#endif
11772
11773void fnord () { int i=42; }
ce2cded5 11774int main ()
d7040cdb 11775{
ce2cded5
L
11776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11777 int status = $lt_dlunknown;
11778
11779 if (self)
11780 {
11781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11782 else
11783 {
11784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11785 else puts (dlerror ());
11786 }
ce2cded5
L
11787 /* dlclose (self); */
11788 }
11789 else
11790 puts (dlerror ());
11791
b214d478 11792 return status;
d7040cdb 11793}
ce2cded5 11794_LT_EOF
81ecdfbb 11795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11796 (eval $ac_link) 2>&5
d7040cdb 11797 ac_status=$?
81ecdfbb
RW
11798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11799 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11800 (./conftest; exit; ) >&5 2>/dev/null
11801 lt_status=$?
11802 case x$lt_status in
11803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11806 esac
11807 else :
11808 # compilation failed
11809 lt_cv_dlopen_self=no
11810 fi
11811fi
11812rm -fr conftest*
11813
11814
11815fi
81ecdfbb
RW
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11817$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11818
11819 if test "x$lt_cv_dlopen_self" = xyes; then
11820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11822$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11823if test "${lt_cv_dlopen_self_static+set}" = set; then :
11824 $as_echo_n "(cached) " >&6
ce2cded5
L
11825else
11826 if test "$cross_compiling" = yes; then :
11827 lt_cv_dlopen_self_static=cross
11828else
11829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11830 lt_status=$lt_dlunknown
11831 cat > conftest.$ac_ext <<_LT_EOF
647e4d46 11832#line 11832 "configure"
ce2cded5
L
11833#include "confdefs.h"
11834
11835#if HAVE_DLFCN_H
11836#include <dlfcn.h>
11837#endif
11838
11839#include <stdio.h>
11840
11841#ifdef RTLD_GLOBAL
11842# define LT_DLGLOBAL RTLD_GLOBAL
11843#else
11844# ifdef DL_GLOBAL
11845# define LT_DLGLOBAL DL_GLOBAL
11846# else
11847# define LT_DLGLOBAL 0
11848# endif
11849#endif
11850
11851/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11852 find out it does not work in some platform. */
11853#ifndef LT_DLLAZY_OR_NOW
11854# ifdef RTLD_LAZY
11855# define LT_DLLAZY_OR_NOW RTLD_LAZY
11856# else
11857# ifdef DL_LAZY
11858# define LT_DLLAZY_OR_NOW DL_LAZY
11859# else
11860# ifdef RTLD_NOW
11861# define LT_DLLAZY_OR_NOW RTLD_NOW
11862# else
11863# ifdef DL_NOW
11864# define LT_DLLAZY_OR_NOW DL_NOW
11865# else
11866# define LT_DLLAZY_OR_NOW 0
11867# endif
11868# endif
11869# endif
11870# endif
11871#endif
11872
3cb62297
L
11873/* When -fvisbility=hidden is used, assume the code has been annotated
11874 correspondingly for the symbols needed. */
11875#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11876void fnord () __attribute__((visibility("default")));
11877#endif
11878
11879void fnord () { int i=42; }
11880int main ()
11881{
11882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11883 int status = $lt_dlunknown;
11884
11885 if (self)
11886 {
11887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11888 else
11889 {
11890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11891 else puts (dlerror ());
11892 }
11893 /* dlclose (self); */
11894 }
11895 else
11896 puts (dlerror ());
11897
11898 return status;
11899}
11900_LT_EOF
11901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11902 (eval $ac_link) 2>&5
11903 ac_status=$?
11904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11905 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11906 (./conftest; exit; ) >&5 2>/dev/null
11907 lt_status=$?
11908 case x$lt_status in
11909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11912 esac
11913 else :
11914 # compilation failed
11915 lt_cv_dlopen_self_static=no
11916 fi
11917fi
11918rm -fr conftest*
11919
11920
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11923$as_echo "$lt_cv_dlopen_self_static" >&6; }
11924 fi
11925
11926 CPPFLAGS="$save_CPPFLAGS"
11927 LDFLAGS="$save_LDFLAGS"
11928 LIBS="$save_LIBS"
11929 ;;
11930 esac
11931
11932 case $lt_cv_dlopen_self in
11933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11934 *) enable_dlopen_self=unknown ;;
11935 esac
11936
11937 case $lt_cv_dlopen_self_static in
11938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11939 *) enable_dlopen_self_static=unknown ;;
11940 esac
11941fi
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959striplib=
11960old_striplib=
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11962$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11963if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967$as_echo "yes" >&6; }
11968else
11969# FIXME - insert some real tests, host_os isn't really good enough
11970 case $host_os in
11971 darwin*)
11972 if test -n "$STRIP" ; then
11973 striplib="$STRIP -x"
11974 old_striplib="$STRIP -S"
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976$as_echo "yes" >&6; }
11977 else
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980 fi
11981 ;;
11982 *)
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984$as_echo "no" >&6; }
11985 ;;
11986 esac
11987fi
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000 # Report which library types will actually be built
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12002$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12004$as_echo "$can_build_shared" >&6; }
12005
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12007$as_echo_n "checking whether to build shared libraries... " >&6; }
12008 test "$can_build_shared" = "no" && enable_shared=no
12009
12010 # On AIX, shared libraries and static libraries use the same namespace, and
12011 # are all built from PIC.
12012 case $host_os in
12013 aix3*)
12014 test "$enable_shared" = yes && enable_static=no
12015 if test -n "$RANLIB"; then
12016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12017 postinstall_cmds='$RANLIB $lib'
12018 fi
12019 ;;
12020
12021 aix[4-9]*)
12022 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12023 test "$enable_shared" = yes && enable_static=no
12024 fi
12025 ;;
12026 esac
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12028$as_echo "$enable_shared" >&6; }
12029
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12031$as_echo_n "checking whether to build static libraries... " >&6; }
12032 # Make sure either enable_shared or enable_static is yes.
12033 test "$enable_shared" = yes || enable_static=yes
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12035$as_echo "$enable_static" >&6; }
12036
12037
12038
12039
12040fi
12041ac_ext=c
12042ac_cpp='$CPP $CPPFLAGS'
12043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045ac_compiler_gnu=$ac_cv_c_compiler_gnu
12046
12047CC="$lt_save_CC"
12048
12049 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12050 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12051 (test "X$CXX" != "Xg++"))) ; then
12052 ac_ext=cpp
12053ac_cpp='$CXXCPP $CPPFLAGS'
12054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12058$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12059if test -z "$CXXCPP"; then
12060 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12062else
12063 # Double quotes because CXXCPP needs to be expanded
12064 for CXXCPP in "$CXX -E" "/lib/cpp"
12065 do
12066 ac_preproc_ok=false
12067for ac_cxx_preproc_warn_flag in '' yes
12068do
12069 # Use a header file that comes with gcc, so configuring glibc
12070 # with a fresh cross-compiler works.
12071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12072 # <limits.h> exists even on freestanding compilers.
12073 # On the NeXT, cc -E runs the code through the compiler's parser,
12074 # not just through cpp. "Syntax error" is here to catch this case.
12075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12076/* end confdefs.h. */
12077#ifdef __STDC__
12078# include <limits.h>
12079#else
12080# include <assert.h>
12081#endif
12082 Syntax error
12083_ACEOF
12084if ac_fn_cxx_try_cpp "$LINENO"; then :
12085
12086else
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether nonexistent headers
12093 # can be detected and how.
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095/* end confdefs.h. */
12096#include <ac_nonexistent.h>
12097_ACEOF
12098if ac_fn_cxx_try_cpp "$LINENO"; then :
12099 # Broken: success on invalid input.
12100continue
12101else
12102 # Passes both tests.
12103ac_preproc_ok=:
12104break
12105fi
12106rm -f conftest.err conftest.$ac_ext
12107
12108done
12109# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12110rm -f conftest.err conftest.$ac_ext
12111if $ac_preproc_ok; then :
12112 break
12113fi
12114
12115 done
12116 ac_cv_prog_CXXCPP=$CXXCPP
12117
12118fi
12119 CXXCPP=$ac_cv_prog_CXXCPP
12120else
12121 ac_cv_prog_CXXCPP=$CXXCPP
12122fi
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12124$as_echo "$CXXCPP" >&6; }
12125ac_preproc_ok=false
12126for ac_cxx_preproc_warn_flag in '' yes
12127do
12128 # Use a header file that comes with gcc, so configuring glibc
12129 # with a fresh cross-compiler works.
12130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12131 # <limits.h> exists even on freestanding compilers.
12132 # On the NeXT, cc -E runs the code through the compiler's parser,
12133 # not just through cpp. "Syntax error" is here to catch this case.
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135/* end confdefs.h. */
12136#ifdef __STDC__
12137# include <limits.h>
12138#else
12139# include <assert.h>
12140#endif
12141 Syntax error
12142_ACEOF
12143if ac_fn_cxx_try_cpp "$LINENO"; then :
12144
12145else
12146 # Broken: fails on valid input.
12147continue
12148fi
12149rm -f conftest.err conftest.$ac_ext
12150
12151 # OK, works on sane cases. Now check whether nonexistent headers
12152 # can be detected and how.
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154/* end confdefs.h. */
12155#include <ac_nonexistent.h>
12156_ACEOF
12157if ac_fn_cxx_try_cpp "$LINENO"; then :
12158 # Broken: success on invalid input.
12159continue
12160else
12161 # Passes both tests.
12162ac_preproc_ok=:
12163break
12164fi
12165rm -f conftest.err conftest.$ac_ext
12166
12167done
12168# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12169rm -f conftest.err conftest.$ac_ext
12170if $ac_preproc_ok; then :
12171
12172else
12173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12175as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12176See \`config.log' for more details." "$LINENO" 5; }
12177fi
12178
12179ac_ext=c
12180ac_cpp='$CPP $CPPFLAGS'
12181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
12185else
12186 _lt_caught_CXX_error=yes
12187fi
12188
12189ac_ext=cpp
12190ac_cpp='$CXXCPP $CPPFLAGS'
12191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12194
12195archive_cmds_need_lc_CXX=no
12196allow_undefined_flag_CXX=
12197always_export_symbols_CXX=no
12198archive_expsym_cmds_CXX=
12199compiler_needs_object_CXX=no
12200export_dynamic_flag_spec_CXX=
12201hardcode_direct_CXX=no
12202hardcode_direct_absolute_CXX=no
12203hardcode_libdir_flag_spec_CXX=
12204hardcode_libdir_flag_spec_ld_CXX=
12205hardcode_libdir_separator_CXX=
12206hardcode_minus_L_CXX=no
12207hardcode_shlibpath_var_CXX=unsupported
12208hardcode_automatic_CXX=no
12209inherit_rpath_CXX=no
12210module_cmds_CXX=
12211module_expsym_cmds_CXX=
12212link_all_deplibs_CXX=unknown
12213old_archive_cmds_CXX=$old_archive_cmds
12214reload_flag_CXX=$reload_flag
12215reload_cmds_CXX=$reload_cmds
12216no_undefined_flag_CXX=
12217whole_archive_flag_spec_CXX=
12218enable_shared_with_static_runtimes_CXX=no
12219
12220# Source file extension for C++ test sources.
12221ac_ext=cpp
12222
12223# Object file extension for compiled C++ test sources.
12224objext=o
12225objext_CXX=$objext
12226
12227# No sense in running all these tests if we already determined that
12228# the CXX compiler isn't working. Some variables (like enable_shared)
12229# are currently assumed to apply to all compilers on this platform,
12230# and will be corrupted by setting them based on a non-working compiler.
12231if test "$_lt_caught_CXX_error" != yes; then
12232 # Code to be used in simple compile tests
12233 lt_simple_compile_test_code="int some_variable = 0;"
12234
12235 # Code to be used in simple link tests
12236 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12237
12238 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12239
12240
12241
12242
12243
12244
12245# If no C compiler was specified, use CC.
12246LTCC=${LTCC-"$CC"}
12247
12248# If no C compiler flags were specified, use CFLAGS.
12249LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12250
12251# Allow CC to be a program name with arguments.
12252compiler=$CC
12253
12254
12255 # save warnings/boilerplate of simple test code
12256 ac_outfile=conftest.$ac_objext
12257echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259_lt_compiler_boilerplate=`cat conftest.err`
12260$RM conftest*
12261
12262 ac_outfile=conftest.$ac_objext
12263echo "$lt_simple_link_test_code" >conftest.$ac_ext
12264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12265_lt_linker_boilerplate=`cat conftest.err`
12266$RM -r conftest*
12267
12268
12269 # Allow CC to be a program name with arguments.
12270 lt_save_CC=$CC
12271 lt_save_LD=$LD
12272 lt_save_GCC=$GCC
12273 GCC=$GXX
12274 lt_save_with_gnu_ld=$with_gnu_ld
12275 lt_save_path_LD=$lt_cv_path_LD
12276 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12277 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12278 else
12279 $as_unset lt_cv_prog_gnu_ld
12280 fi
12281 if test -n "${lt_cv_path_LDCXX+set}"; then
12282 lt_cv_path_LD=$lt_cv_path_LDCXX
12283 else
12284 $as_unset lt_cv_path_LD
12285 fi
12286 test -z "${LDCXX+set}" || LD=$LDCXX
12287 CC=${CXX-"c++"}
12288 compiler=$CC
12289 compiler_CXX=$CC
12290 for cc_temp in $compiler""; do
12291 case $cc_temp in
12292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12294 \-*) ;;
12295 *) break;;
12296 esac
12297done
12298cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12299
12300
12301 if test -n "$compiler"; then
12302 # We don't want -fno-exception when compiling C++ code, so set the
12303 # no_builtin_flag separately
12304 if test "$GXX" = yes; then
12305 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12306 else
12307 lt_prog_compiler_no_builtin_flag_CXX=
12308 fi
12309
12310 if test "$GXX" = yes; then
12311 # Set up default GNU C++ configuration
12312
12313
12314
12315# Check whether --with-gnu-ld was given.
12316if test "${with_gnu_ld+set}" = set; then :
12317 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12318else
12319 with_gnu_ld=no
12320fi
12321
12322ac_prog=ld
12323if test "$GCC" = yes; then
12324 # Check if gcc -print-prog-name=ld gives a path.
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12326$as_echo_n "checking for ld used by $CC... " >&6; }
12327 case $host in
12328 *-*-mingw*)
12329 # gcc leaves a trailing carriage return which upsets mingw
12330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12331 *)
12332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12333 esac
12334 case $ac_prog in
12335 # Accept absolute paths.
12336 [\\/]* | ?:[\\/]*)
12337 re_direlt='/[^/][^/]*/\.\./'
12338 # Canonicalize the pathname of ld
12339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12342 done
12343 test -z "$LD" && LD="$ac_prog"
12344 ;;
12345 "")
12346 # If it fails, then pretend we aren't using GCC.
12347 ac_prog=ld
12348 ;;
12349 *)
12350 # If it is relative, then search for the first ld in PATH.
12351 with_gnu_ld=unknown
12352 ;;
12353 esac
12354elif test "$with_gnu_ld" = yes; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12356$as_echo_n "checking for GNU ld... " >&6; }
12357else
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12359$as_echo_n "checking for non-GNU ld... " >&6; }
12360fi
12361if test "${lt_cv_path_LD+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363else
12364 if test -z "$LD"; then
12365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12366 for ac_dir in $PATH; do
12367 IFS="$lt_save_ifs"
12368 test -z "$ac_dir" && ac_dir=.
12369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12370 lt_cv_path_LD="$ac_dir/$ac_prog"
12371 # Check to see if the program is GNU ld. I'd rather use --version,
12372 # but apparently some variants of GNU ld only accept -v.
12373 # Break only if it was the GNU/non-GNU ld that we prefer.
12374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12375 *GNU* | *'with BFD'*)
12376 test "$with_gnu_ld" != no && break
12377 ;;
12378 *)
12379 test "$with_gnu_ld" != yes && break
12380 ;;
12381 esac
12382 fi
12383 done
12384 IFS="$lt_save_ifs"
12385else
12386 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12387fi
12388fi
12389
12390LD="$lt_cv_path_LD"
12391if test -n "$LD"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12393$as_echo "$LD" >&6; }
12394else
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12401if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403else
12404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12405case `$LD -v 2>&1 </dev/null` in
12406*GNU* | *'with BFD'*)
12407 lt_cv_prog_gnu_ld=yes
12408 ;;
12409*)
12410 lt_cv_prog_gnu_ld=no
12411 ;;
12412esac
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12415$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12416with_gnu_ld=$lt_cv_prog_gnu_ld
12417
12418
12419
12420
12421
12422
12423
12424 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12425 # archiving commands below assume that GNU ld is being used.
12426 if test "$with_gnu_ld" = yes; then
6e733cce
L
12427 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12428 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3cb62297
L
12429
12430 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12432
12433 # If archive_cmds runs LD, not CC, wlarc should be empty
12434 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12435 # investigate it a little bit more. (MM)
12436 wlarc='${wl}'
12437
12438 # ancient GNU ld didn't support --whole-archive et. al.
12439 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12440 $GREP 'no-whole-archive' > /dev/null; then
12441 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12442 else
12443 whole_archive_flag_spec_CXX=
12444 fi
12445 else
12446 with_gnu_ld=no
12447 wlarc=
12448
12449 # A generic and very simple default shared library creation
12450 # command for GNU C++ for the case where it uses the native
12451 # linker, instead of GNU ld. If possible, this setting should
12452 # overridden to take advantage of the native linker features on
12453 # the platform it is being used on.
12454 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12455 fi
12456
12457 # Commands to make compiler produce verbose output that lists
12458 # what "hidden" libraries, object files and flags are used when
12459 # linking a shared library.
12460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12461
12462 else
12463 GXX=no
12464 with_gnu_ld=no
12465 wlarc=
12466 fi
12467
12468 # PORTME: fill in a description of your system's C++ link characteristics
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12470$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12471 ld_shlibs_CXX=yes
12472 case $host_os in
12473 aix3*)
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12476 ;;
12477 aix[4-9]*)
12478 if test "$host_cpu" = ia64; then
12479 # On IA64, the linker does run time linking by default, so we don't
12480 # have to do anything special.
12481 aix_use_runtimelinking=no
12482 exp_sym_flag='-Bexport'
12483 no_entry_flag=""
12484 else
12485 aix_use_runtimelinking=no
12486
12487 # Test if we are trying to use run time linking or normal
12488 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12489 # need to do runtime linking.
12490 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12491 for ld_flag in $LDFLAGS; do
12492 case $ld_flag in
12493 *-brtl*)
12494 aix_use_runtimelinking=yes
12495 break
12496 ;;
12497 esac
12498 done
12499 ;;
12500 esac
12501
12502 exp_sym_flag='-bexport'
12503 no_entry_flag='-bnoentry'
12504 fi
12505
12506 # When large executables or shared objects are built, AIX ld can
12507 # have problems creating the table of contents. If linking a library
12508 # or program results in "error TOC overflow" add -mminimal-toc to
12509 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12510 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12511
12512 archive_cmds_CXX=''
12513 hardcode_direct_CXX=yes
12514 hardcode_direct_absolute_CXX=yes
12515 hardcode_libdir_separator_CXX=':'
12516 link_all_deplibs_CXX=yes
12517 file_list_spec_CXX='${wl}-f,'
12518
12519 if test "$GXX" = yes; then
12520 case $host_os in aix4.[012]|aix4.[012].*)
12521 # We only want to do this on AIX 4.2 and lower, the check
12522 # below for broken collect2 doesn't work under 4.3+
12523 collect2name=`${CC} -print-prog-name=collect2`
12524 if test -f "$collect2name" &&
12525 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12526 then
12527 # We have reworked collect2
12528 :
12529 else
12530 # We have old collect2
12531 hardcode_direct_CXX=unsupported
12532 # It fails to find uninstalled libraries when the uninstalled
12533 # path is not listed in the libpath. Setting hardcode_minus_L
12534 # to unsupported forces relinking
12535 hardcode_minus_L_CXX=yes
12536 hardcode_libdir_flag_spec_CXX='-L$libdir'
12537 hardcode_libdir_separator_CXX=
12538 fi
12539 esac
12540 shared_flag='-shared'
12541 if test "$aix_use_runtimelinking" = yes; then
12542 shared_flag="$shared_flag "'${wl}-G'
12543 fi
12544 else
12545 # not using gcc
12546 if test "$host_cpu" = ia64; then
12547 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12548 # chokes on -Wl,-G. The following line is correct:
12549 shared_flag='-G'
12550 else
12551 if test "$aix_use_runtimelinking" = yes; then
12552 shared_flag='${wl}-G'
12553 else
12554 shared_flag='${wl}-bM:SRE'
12555 fi
12556 fi
12557 fi
12558
12559 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12560 # It seems that -bexpall does not export symbols beginning with
12561 # underscore (_), so it is better to generate a list of symbols to
12562 # export.
12563 always_export_symbols_CXX=yes
12564 if test "$aix_use_runtimelinking" = yes; then
12565 # Warning - without using the other runtime loading flags (-brtl),
12566 # -berok will link without error, but may produce a broken library.
12567 allow_undefined_flag_CXX='-berok'
12568 # Determine the default libpath from the value encoded in an empty
12569 # executable.
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h. */
12572
12573int
12574main ()
12575{
12576
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581if ac_fn_cxx_try_link "$LINENO"; then :
12582
12583lt_aix_libpath_sed='
12584 /Import File Strings/,/^$/ {
12585 /^0/ {
12586 s/^0 *\(.*\)$/\1/
12587 p
12588 }
12589 }'
12590aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12591# Check for a 64-bit object if we didn't find anything.
12592if test -z "$aix_libpath"; then
12593 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12594fi
12595fi
12596rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12599
12600 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12601
12602 archive_expsym_cmds_CXX='$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"
12603 else
12604 if test "$host_cpu" = ia64; then
12605 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12606 allow_undefined_flag_CXX="-z nodefs"
12607 archive_expsym_cmds_CXX="\$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"
12608 else
12609 # Determine the default libpath from the value encoded in an
12610 # empty executable.
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612/* end confdefs.h. */
12613
12614int
12615main ()
12616{
12617
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622if ac_fn_cxx_try_link "$LINENO"; then :
12623
12624lt_aix_libpath_sed='
12625 /Import File Strings/,/^$/ {
12626 /^0/ {
12627 s/^0 *\(.*\)$/\1/
12628 p
12629 }
12630 }'
12631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12632# Check for a 64-bit object if we didn't find anything.
12633if test -z "$aix_libpath"; then
12634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12635fi
12636fi
12637rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12640
12641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12642 # Warning - without using the other run time loading flags,
12643 # -berok will link without error, but may produce a broken library.
12644 no_undefined_flag_CXX=' ${wl}-bernotok'
12645 allow_undefined_flag_CXX=' ${wl}-berok'
12646 if test "$with_gnu_ld" = yes; then
12647 # We only use this code for GNU lds that support --whole-archive.
12648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12649 else
12650 # Exported symbols can be pulled into shared objects from archives
12651 whole_archive_flag_spec_CXX='$convenience'
12652 fi
12653 archive_cmds_need_lc_CXX=yes
12654 # This is similar to how AIX traditionally builds its shared
12655 # libraries.
12656 archive_expsym_cmds_CXX="\$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'
12657 fi
12658 fi
12659 ;;
12660
12661 beos*)
12662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12663 allow_undefined_flag_CXX=unsupported
12664 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12665 # support --undefined. This deserves some investigation. FIXME
12666 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 else
12668 ld_shlibs_CXX=no
12669 fi
12670 ;;
12671
12672 chorus*)
12673 case $cc_basename in
12674 *)
12675 # FIXME: insert proper C++ library support
12676 ld_shlibs_CXX=no
12677 ;;
12678 esac
12679 ;;
12680
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12683 # as there is no search path for DLLs.
12684 hardcode_libdir_flag_spec_CXX='-L$libdir'
12685 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12686 allow_undefined_flag_CXX=unsupported
12687 always_export_symbols_CXX=no
12688 enable_shared_with_static_runtimes_CXX=yes
12689
12690 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12691 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12692 # If the export-symbols file already is a .def file (1st line
12693 # is EXPORTS), use it as is; otherwise, prepend...
12694 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12695 cp $export_symbols $output_objdir/$soname.def;
12696 else
12697 echo EXPORTS > $output_objdir/$soname.def;
12698 cat $export_symbols >> $output_objdir/$soname.def;
12699 fi~
12700 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12701 else
12702 ld_shlibs_CXX=no
12703 fi
12704 ;;
12705 darwin* | rhapsody*)
12706
12707
12708 archive_cmds_need_lc_CXX=no
12709 hardcode_direct_CXX=no
12710 hardcode_automatic_CXX=yes
12711 hardcode_shlibpath_var_CXX=unsupported
12712 if test "$lt_cv_ld_force_load" = "yes"; then
12713 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12714 else
12715 whole_archive_flag_spec_CXX=''
12716 fi
12717 link_all_deplibs_CXX=yes
12718 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12719 case $cc_basename in
12720 ifort*) _lt_dar_can_shared=yes ;;
12721 *) _lt_dar_can_shared=$GCC ;;
12722 esac
12723 if test "$_lt_dar_can_shared" = "yes"; then
12724 output_verbose_link_cmd=func_echo_all
12725 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12726 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12727 archive_expsym_cmds_CXX="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}"
12728 module_expsym_cmds_CXX="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}"
12729 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12730 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12731 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12732 fi
12733
12734 else
12735 ld_shlibs_CXX=no
12736 fi
12737
12738 ;;
12739
12740 dgux*)
12741 case $cc_basename in
12742 ec++*)
12743 # FIXME: insert proper C++ library support
12744 ld_shlibs_CXX=no
12745 ;;
12746 ghcx*)
12747 # Green Hills C++ Compiler
12748 # FIXME: insert proper C++ library support
12749 ld_shlibs_CXX=no
12750 ;;
12751 *)
12752 # FIXME: insert proper C++ library support
12753 ld_shlibs_CXX=no
12754 ;;
12755 esac
12756 ;;
12757
6d2920c8 12758 freebsd2.*)
3cb62297
L
12759 # C++ shared libraries reported to be fairly broken before
12760 # switch to ELF
12761 ld_shlibs_CXX=no
12762 ;;
12763
12764 freebsd-elf*)
12765 archive_cmds_need_lc_CXX=no
12766 ;;
12767
12768 freebsd* | dragonfly*)
12769 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12770 # conventions
12771 ld_shlibs_CXX=yes
12772 ;;
12773
12774 gnu*)
12775 ;;
12776
12777 haiku*)
12778 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12779 link_all_deplibs_CXX=yes
12780 ;;
12781
12782 hpux9*)
12783 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12784 hardcode_libdir_separator_CXX=:
12785 export_dynamic_flag_spec_CXX='${wl}-E'
12786 hardcode_direct_CXX=yes
12787 hardcode_minus_L_CXX=yes # Not in the search PATH,
12788 # but as the default
12789 # location of the library.
12790
12791 case $cc_basename in
12792 CC*)
12793 # FIXME: insert proper C++ library support
12794 ld_shlibs_CXX=no
12795 ;;
12796 aCC*)
12797 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12798 # Commands to make compiler produce verbose output that lists
12799 # what "hidden" libraries, object files and flags are used when
12800 # linking a shared library.
12801 #
12802 # There doesn't appear to be a way to prevent this compiler from
12803 # explicitly linking system object files so we need to strip them
12804 # from the output so that they don't get included in the library
12805 # dependencies.
12806 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12807 ;;
12808 *)
12809 if test "$GXX" = yes; then
12810 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12811 else
12812 # FIXME: insert proper C++ library support
12813 ld_shlibs_CXX=no
12814 fi
12815 ;;
12816 esac
12817 ;;
12818
12819 hpux10*|hpux11*)
12820 if test $with_gnu_ld = no; then
12821 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12822 hardcode_libdir_separator_CXX=:
12823
12824 case $host_cpu in
12825 hppa*64*|ia64*)
12826 ;;
12827 *)
12828 export_dynamic_flag_spec_CXX='${wl}-E'
12829 ;;
12830 esac
12831 fi
12832 case $host_cpu in
12833 hppa*64*|ia64*)
12834 hardcode_direct_CXX=no
12835 hardcode_shlibpath_var_CXX=no
12836 ;;
12837 *)
12838 hardcode_direct_CXX=yes
12839 hardcode_direct_absolute_CXX=yes
12840 hardcode_minus_L_CXX=yes # Not in the search PATH,
12841 # but as the default
12842 # location of the library.
12843 ;;
12844 esac
12845
12846 case $cc_basename in
12847 CC*)
12848 # FIXME: insert proper C++ library support
12849 ld_shlibs_CXX=no
12850 ;;
12851 aCC*)
12852 case $host_cpu in
12853 hppa*64*)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855 ;;
12856 ia64*)
12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12858 ;;
12859 *)
12860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12861 ;;
12862 esac
12863 # Commands to make compiler produce verbose output that lists
12864 # what "hidden" libraries, object files and flags are used when
12865 # linking a shared library.
12866 #
12867 # There doesn't appear to be a way to prevent this compiler from
12868 # explicitly linking system object files so we need to strip them
12869 # from the output so that they don't get included in the library
12870 # dependencies.
12871 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12872 ;;
12873 *)
12874 if test "$GXX" = yes; then
12875 if test $with_gnu_ld = no; then
12876 case $host_cpu in
12877 hppa*64*)
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12879 ;;
12880 ia64*)
12881 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12882 ;;
12883 *)
12884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12885 ;;
12886 esac
12887 fi
12888 else
12889 # FIXME: insert proper C++ library support
12890 ld_shlibs_CXX=no
12891 fi
12892 ;;
12893 esac
12894 ;;
12895
12896 interix[3-9]*)
12897 hardcode_direct_CXX=no
12898 hardcode_shlibpath_var_CXX=no
12899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12900 export_dynamic_flag_spec_CXX='${wl}-E'
12901 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12902 # Instead, shared libraries are loaded at an image base (0x10000000 by
12903 # default) and relocated if they conflict, which is a slow very memory
12904 # consuming and fragmenting process. To avoid this, we pick a random,
12905 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12906 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12907 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12908 archive_expsym_cmds_CXX='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'
12909 ;;
12910 irix5* | irix6*)
12911 case $cc_basename in
12912 CC*)
12913 # SGI C++
12914 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12915
12916 # Archives containing C++ object files must be created using
12917 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12918 # necessary to make sure instantiated templates are included
12919 # in the archive.
12920 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12921 ;;
12922 *)
12923 if test "$GXX" = yes; then
12924 if test "$with_gnu_ld" = no; then
12925 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12926 else
12927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12928 fi
12929 fi
12930 link_all_deplibs_CXX=yes
12931 ;;
12932 esac
12933 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12934 hardcode_libdir_separator_CXX=:
12935 inherit_rpath_CXX=yes
12936 ;;
12937
12938 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12939 case $cc_basename in
12940 KCC*)
12941 # Kuck and Associates, Inc. (KAI) C++ Compiler
12942
12943 # KCC will only create a shared library if the output file
12944 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12945 # to its proper name (with version) after linking.
12946 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12947 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12951 #
12952 # There doesn't appear to be a way to prevent this compiler from
12953 # explicitly linking system object files so we need to strip them
12954 # from the output so that they don't get included in the library
12955 # dependencies.
12956 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12957
12958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12959 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12960
12961 # Archives containing C++ object files must be created using
12962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12964 ;;
12965 icpc* | ecpc* )
12966 # Intel C++
12967 with_gnu_ld=yes
12968 # version 8.0 and above of icpc choke on multiply defined symbols
12969 # if we add $predep_objects and $postdep_objects, however 7.1 and
12970 # earlier do not add the objects themselves.
12971 case `$CC -V 2>&1` in
12972 *"Version 7."*)
12973 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12974 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12975 ;;
12976 *) # Version 8.0 or newer
12977 tmp_idyn=
12978 case $host_cpu in
12979 ia64*) tmp_idyn=' -i_dynamic';;
12980 esac
12981 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12982 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12983 ;;
12984 esac
12985 archive_cmds_need_lc_CXX=no
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12989 ;;
12990 pgCC* | pgcpp*)
12991 # Portland Group C++ compiler
12992 case `$CC -V` in
12993 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12994 prelink_cmds_CXX='tpldir=Template.dir~
12995 rm -rf $tpldir~
12996 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12997 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12998 old_archive_cmds_CXX='tpldir=Template.dir~
12999 rm -rf $tpldir~
13000 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13001 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13002 $RANLIB $oldlib'
13003 archive_cmds_CXX='tpldir=Template.dir~
13004 rm -rf $tpldir~
13005 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13006 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13007 archive_expsym_cmds_CXX='tpldir=Template.dir~
13008 rm -rf $tpldir~
13009 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13010 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13011 ;;
13012 *) # Version 6 and above use weak symbols
13013 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13014 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13015 ;;
13016 esac
13017
13018 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13020 whole_archive_flag_spec_CXX='${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'
13021 ;;
13022 cxx*)
13023 # Compaq C++
13024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13026
13027 runpath_var=LD_RUN_PATH
13028 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13029 hardcode_libdir_separator_CXX=:
13030
13031 # Commands to make compiler produce verbose output that lists
13032 # what "hidden" libraries, object files and flags are used when
13033 # linking a shared library.
13034 #
13035 # There doesn't appear to be a way to prevent this compiler from
13036 # explicitly linking system object files so we need to strip them
13037 # from the output so that they don't get included in the library
13038 # dependencies.
13039 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13040 ;;
13041 xl* | mpixl* | bgxl*)
13042 # IBM XL 8.0 on PPC, with GNU ld
13043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13045 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13046 if test "x$supports_anon_versioning" = xyes; then
13047 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13049 echo "local: *; };" >> $output_objdir/$libname.ver~
13050 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13051 fi
13052 ;;
13053 *)
13054 case `$CC -V 2>&1 | sed 5q` in
13055 *Sun\ C*)
13056 # Sun C++ 5.9
13057 no_undefined_flag_CXX=' -zdefs'
13058 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13059 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13060 hardcode_libdir_flag_spec_CXX='-R$libdir'
13061 whole_archive_flag_spec_CXX='${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'
13062 compiler_needs_object_CXX=yes
13063
13064 # Not sure whether something based on
13065 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13066 # would be better.
13067 output_verbose_link_cmd='func_echo_all'
13068
13069 # Archives containing C++ object files must be created using
13070 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13071 # necessary to make sure instantiated templates are included
13072 # in the archive.
13073 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13074 ;;
13075 esac
13076 ;;
13077 esac
13078 ;;
13079
13080 lynxos*)
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13083 ;;
13084
13085 m88k*)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089
13090 mvs*)
13091 case $cc_basename in
13092 cxx*)
13093 # FIXME: insert proper C++ library support
13094 ld_shlibs_CXX=no
13095 ;;
13096 *)
13097 # FIXME: insert proper C++ library support
13098 ld_shlibs_CXX=no
13099 ;;
13100 esac
13101 ;;
13102
13103 netbsd*)
13104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13105 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13106 wlarc=
13107 hardcode_libdir_flag_spec_CXX='-R$libdir'
13108 hardcode_direct_CXX=yes
13109 hardcode_shlibpath_var_CXX=no
13110 fi
13111 # Workaround some broken pre-1.5 toolchains
13112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13113 ;;
13114
13115 *nto* | *qnx*)
13116 ld_shlibs_CXX=yes
13117 ;;
13118
13119 openbsd2*)
13120 # C++ shared libraries are fairly broken
13121 ld_shlibs_CXX=no
13122 ;;
13123
13124 openbsd*)
13125 if test -f /usr/libexec/ld.so; then
13126 hardcode_direct_CXX=yes
13127 hardcode_shlibpath_var_CXX=no
13128 hardcode_direct_absolute_CXX=yes
13129 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13132 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13133 export_dynamic_flag_spec_CXX='${wl}-E'
13134 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13135 fi
13136 output_verbose_link_cmd=func_echo_all
13137 else
13138 ld_shlibs_CXX=no
13139 fi
13140 ;;
13141
13142 osf3* | osf4* | osf5*)
13143 case $cc_basename in
13144 KCC*)
13145 # Kuck and Associates, Inc. (KAI) C++ Compiler
13146
13147 # KCC will only create a shared library if the output file
13148 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13149 # to its proper name (with version) after linking.
13150 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13151
13152 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13153 hardcode_libdir_separator_CXX=:
13154
13155 # Archives containing C++ object files must be created using
13156 # the KAI C++ compiler.
13157 case $host in
13158 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13159 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13160 esac
13161 ;;
13162 RCC*)
13163 # Rational C++ 2.4.1
13164 # FIXME: insert proper C++ library support
13165 ld_shlibs_CXX=no
13166 ;;
13167 cxx*)
13168 case $host in
13169 osf3*)
13170 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13171 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13173 ;;
13174 *)
13175 allow_undefined_flag_CXX=' -expect_unresolved \*'
13176 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13177 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13178 echo "-hidden">> $lib.exp~
13179 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13180 $RM $lib.exp'
13181 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13182 ;;
13183 esac
13184
13185 hardcode_libdir_separator_CXX=:
13186
13187 # Commands to make compiler produce verbose output that lists
13188 # what "hidden" libraries, object files and flags are used when
13189 # linking a shared library.
13190 #
13191 # There doesn't appear to be a way to prevent this compiler from
13192 # explicitly linking system object files so we need to strip them
13193 # from the output so that they don't get included in the library
13194 # dependencies.
13195 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13196 ;;
13197 *)
13198 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13199 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13200 case $host in
13201 osf3*)
13202 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13203 ;;
13204 *)
13205 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13206 ;;
13207 esac
13208
13209 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13210 hardcode_libdir_separator_CXX=:
13211
13212 # Commands to make compiler produce verbose output that lists
13213 # what "hidden" libraries, object files and flags are used when
13214 # linking a shared library.
13215 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13216
13217 else
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 fi
13221 ;;
13222 esac
13223 ;;
13224
13225 psos*)
13226 # FIXME: insert proper C++ library support
13227 ld_shlibs_CXX=no
13228 ;;
13229
13230 sunos4*)
13231 case $cc_basename in
13232 CC*)
13233 # Sun C++ 4.x
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 ;;
13237 lcc*)
13238 # Lucid
13239 # FIXME: insert proper C++ library support
13240 ld_shlibs_CXX=no
13241 ;;
13242 *)
13243 # FIXME: insert proper C++ library support
13244 ld_shlibs_CXX=no
13245 ;;
13246 esac
13247 ;;
13248
13249 solaris*)
13250 case $cc_basename in
13251 CC*)
13252 # Sun C++ 4.2, 5.x and Centerline C++
13253 archive_cmds_need_lc_CXX=yes
13254 no_undefined_flag_CXX=' -zdefs'
13255 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13256 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13257 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13258
13259 hardcode_libdir_flag_spec_CXX='-R$libdir'
13260 hardcode_shlibpath_var_CXX=no
13261 case $host_os in
13262 solaris2.[0-5] | solaris2.[0-5].*) ;;
13263 *)
13264 # The compiler driver will combine and reorder linker options,
13265 # but understands `-z linker_flag'.
13266 # Supported since Solaris 2.6 (maybe 2.5.1?)
13267 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13268 ;;
13269 esac
13270 link_all_deplibs_CXX=yes
13271
13272 output_verbose_link_cmd='func_echo_all'
13273
13274 # Archives containing C++ object files must be created using
13275 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13276 # necessary to make sure instantiated templates are included
13277 # in the archive.
13278 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13279 ;;
13280 gcx*)
13281 # Green Hills C++ Compiler
13282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13283
13284 # The C++ compiler must be used to create the archive.
13285 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13286 ;;
13287 *)
13288 # GNU C++ compiler with Solaris linker
13289 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13290 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13291 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13292 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13294 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13295
13296 # Commands to make compiler produce verbose output that lists
13297 # what "hidden" libraries, object files and flags are used when
13298 # linking a shared library.
13299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13300 else
13301 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13302 # platform.
13303 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13305 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13306
13307 # Commands to make compiler produce verbose output that lists
13308 # what "hidden" libraries, object files and flags are used when
13309 # linking a shared library.
13310 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13311 fi
13312
13313 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13314 case $host_os in
13315 solaris2.[0-5] | solaris2.[0-5].*) ;;
13316 *)
13317 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13318 ;;
13319 esac
13320 fi
13321 ;;
13322 esac
13323 ;;
13324
13325 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13326 no_undefined_flag_CXX='${wl}-z,text'
13327 archive_cmds_need_lc_CXX=no
13328 hardcode_shlibpath_var_CXX=no
13329 runpath_var='LD_RUN_PATH'
13330
13331 case $cc_basename in
13332 CC*)
13333 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 ;;
13336 *)
13337 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13339 ;;
13340 esac
13341 ;;
13342
13343 sysv5* | sco3.2v5* | sco5v6*)
13344 # Note: We can NOT use -z defs as we might desire, because we do not
13345 # link with -lc, and that would cause any symbols used from libc to
13346 # always be unresolved, which means just about no library would
13347 # ever link correctly. If we're not using GNU ld we use -z text
13348 # though, which does catch some bad symbols but isn't as heavy-handed
13349 # as -z defs.
13350 no_undefined_flag_CXX='${wl}-z,text'
13351 allow_undefined_flag_CXX='${wl}-z,nodefs'
13352 archive_cmds_need_lc_CXX=no
13353 hardcode_shlibpath_var_CXX=no
13354 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13355 hardcode_libdir_separator_CXX=':'
13356 link_all_deplibs_CXX=yes
13357 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13358 runpath_var='LD_RUN_PATH'
13359
13360 case $cc_basename in
13361 CC*)
13362 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13363 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13364 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13365 '"$old_archive_cmds_CXX"
13366 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13367 '"$reload_cmds_CXX"
13368 ;;
13369 *)
13370 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13371 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13372 ;;
13373 esac
13374 ;;
13375
13376 tandem*)
13377 case $cc_basename in
13378 NCC*)
13379 # NonStop-UX NCC 3.20
13380 # FIXME: insert proper C++ library support
13381 ld_shlibs_CXX=no
13382 ;;
13383 *)
13384 # FIXME: insert proper C++ library support
13385 ld_shlibs_CXX=no
13386 ;;
13387 esac
13388 ;;
13389
13390 vxworks*)
13391 # FIXME: insert proper C++ library support
13392 ld_shlibs_CXX=no
13393 ;;
13394
13395 *)
13396 # FIXME: insert proper C++ library support
13397 ld_shlibs_CXX=no
13398 ;;
13399 esac
13400
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13402$as_echo "$ld_shlibs_CXX" >&6; }
13403 test "$ld_shlibs_CXX" = no && can_build_shared=no
13404
13405 GCC_CXX="$GXX"
13406 LD_CXX="$LD"
13407
13408 ## CAVEAT EMPTOR:
13409 ## There is no encapsulation within the following macros, do not change
13410 ## the running order or otherwise move them around unless you know exactly
13411 ## what you are doing...
13412 # Dependencies to place before and after the object being linked:
13413predep_objects_CXX=
13414postdep_objects_CXX=
13415predeps_CXX=
13416postdeps_CXX=
13417compiler_lib_search_path_CXX=
13418
13419cat > conftest.$ac_ext <<_LT_EOF
13420class Foo
13421{
13422public:
13423 Foo (void) { a = 0; }
13424private:
13425 int a;
13426};
13427_LT_EOF
13428
13429if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13430 (eval $ac_compile) 2>&5
13431 ac_status=$?
13432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13433 test $ac_status = 0; }; then
13434 # Parse the compiler output and extract the necessary
13435 # objects, libraries and library flags.
13436
13437 # Sentinel used to keep track of whether or not we are before
13438 # the conftest object file.
13439 pre_test_object_deps_done=no
13440
13441 for p in `eval "$output_verbose_link_cmd"`; do
13442 case $p in
13443
13444 -L* | -R* | -l*)
13445 # Some compilers place space between "-{L,R}" and the path.
13446 # Remove the space.
13447 if test $p = "-L" ||
13448 test $p = "-R"; then
13449 prev=$p
13450 continue
13451 else
13452 prev=
13453 fi
13454
13455 if test "$pre_test_object_deps_done" = no; then
13456 case $p in
13457 -L* | -R*)
13458 # Internal compiler library paths should come after those
13459 # provided the user. The postdeps already come after the
13460 # user supplied libs so there is no need to process them.
13461 if test -z "$compiler_lib_search_path_CXX"; then
13462 compiler_lib_search_path_CXX="${prev}${p}"
13463 else
13464 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13465 fi
13466 ;;
13467 # The "-l" case would never come before the object being
13468 # linked, so don't bother handling this case.
13469 esac
13470 else
13471 if test -z "$postdeps_CXX"; then
13472 postdeps_CXX="${prev}${p}"
13473 else
13474 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13475 fi
13476 fi
13477 ;;
13478
13479 *.$objext)
13480 # This assumes that the test object file only shows up
13481 # once in the compiler output.
13482 if test "$p" = "conftest.$objext"; then
13483 pre_test_object_deps_done=yes
13484 continue
13485 fi
13486
13487 if test "$pre_test_object_deps_done" = no; then
13488 if test -z "$predep_objects_CXX"; then
13489 predep_objects_CXX="$p"
13490 else
13491 predep_objects_CXX="$predep_objects_CXX $p"
13492 fi
13493 else
13494 if test -z "$postdep_objects_CXX"; then
13495 postdep_objects_CXX="$p"
13496 else
13497 postdep_objects_CXX="$postdep_objects_CXX $p"
13498 fi
13499 fi
13500 ;;
13501
13502 *) ;; # Ignore the rest.
13503
13504 esac
13505 done
13506
13507 # Clean up.
13508 rm -f a.out a.exe
13509else
13510 echo "libtool.m4: error: problem compiling CXX test program"
13511fi
13512
13513$RM -f confest.$objext
13514
13515# PORTME: override above test on systems where it is broken
13516case $host_os in
13517interix[3-9]*)
13518 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13519 # hack all around it, let's just trust "g++" to DTRT.
13520 predep_objects_CXX=
13521 postdep_objects_CXX=
13522 postdeps_CXX=
13523 ;;
13524
13525linux*)
13526 case `$CC -V 2>&1 | sed 5q` in
13527 *Sun\ C*)
13528 # Sun C++ 5.9
13529
13530 # The more standards-conforming stlport4 library is
13531 # incompatible with the Cstd library. Avoid specifying
13532 # it if it's in CXXFLAGS. Ignore libCrun as
13533 # -library=stlport4 depends on it.
13534 case " $CXX $CXXFLAGS " in
13535 *" -library=stlport4 "*)
13536 solaris_use_stlport4=yes
13537 ;;
13538 esac
13539
13540 if test "$solaris_use_stlport4" != yes; then
13541 postdeps_CXX='-library=Cstd -library=Crun'
13542 fi
13543 ;;
13544 esac
13545 ;;
13546
13547solaris*)
13548 case $cc_basename in
13549 CC*)
13550 # The more standards-conforming stlport4 library is
13551 # incompatible with the Cstd library. Avoid specifying
13552 # it if it's in CXXFLAGS. Ignore libCrun as
13553 # -library=stlport4 depends on it.
13554 case " $CXX $CXXFLAGS " in
13555 *" -library=stlport4 "*)
13556 solaris_use_stlport4=yes
13557 ;;
13558 esac
13559
13560 # Adding this requires a known-good setup of shared libraries for
13561 # Sun compiler versions before 5.6, else PIC objects from an old
13562 # archive will be linked into the output, leading to subtle bugs.
13563 if test "$solaris_use_stlport4" != yes; then
13564 postdeps_CXX='-library=Cstd -library=Crun'
13565 fi
13566 ;;
13567 esac
13568 ;;
13569esac
13570
13571
13572case " $postdeps_CXX " in
13573*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13574esac
13575 compiler_lib_search_dirs_CXX=
13576if test -n "${compiler_lib_search_path_CXX}"; then
13577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13578fi
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610 lt_prog_compiler_wl_CXX=
13611lt_prog_compiler_pic_CXX=
13612lt_prog_compiler_static_CXX=
13613
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13615$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13616
13617 # C++ specific cases for pic, static, wl, etc.
13618 if test "$GXX" = yes; then
13619 lt_prog_compiler_wl_CXX='-Wl,'
13620 lt_prog_compiler_static_CXX='-static'
13621
13622 case $host_os in
13623 aix*)
13624 # All AIX code is PIC.
13625 if test "$host_cpu" = ia64; then
13626 # AIX 5 now supports IA64 processor
13627 lt_prog_compiler_static_CXX='-Bstatic'
13628 fi
52204357 13629 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13630 ;;
13631
13632 amigaos*)
13633 case $host_cpu in
13634 powerpc)
13635 # see comment about AmigaOS4 .so support
13636 lt_prog_compiler_pic_CXX='-fPIC'
13637 ;;
13638 m68k)
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13641 # like `-m68040'.
13642 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13643 ;;
13644 esac
13645 ;;
13646
13647 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13648 # PIC is the default for these OSes.
13649 ;;
13650 mingw* | cygwin* | os2* | pw32* | cegcc*)
13651 # This hack is so that the source file can tell whether it is being
13652 # built for inclusion in a dll (and should export symbols for example).
13653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13654 # (--disable-auto-import) libraries
13655 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13656 ;;
13657 darwin* | rhapsody*)
13658 # PIC is the default on this platform
13659 # Common symbols not allowed in MH_DYLIB files
13660 lt_prog_compiler_pic_CXX='-fno-common'
13661 ;;
13662 *djgpp*)
13663 # DJGPP does not support shared libraries at all
13664 lt_prog_compiler_pic_CXX=
13665 ;;
13666 haiku*)
13667 # PIC is the default for Haiku.
13668 # The "-static" flag exists, but is broken.
13669 lt_prog_compiler_static_CXX=
13670 ;;
13671 interix[3-9]*)
13672 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13673 # Instead, we relocate shared libraries at runtime.
13674 ;;
13675 sysv4*MP*)
13676 if test -d /usr/nec; then
13677 lt_prog_compiler_pic_CXX=-Kconform_pic
13678 fi
13679 ;;
13680 hpux*)
13681 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13682 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13683 # sets the default TLS model and affects inlining.
13684 case $host_cpu in
13685 hppa*64*)
13686 ;;
13687 *)
13688 lt_prog_compiler_pic_CXX='-fPIC'
13689 ;;
13690 esac
13691 ;;
13692 *qnx* | *nto*)
13693 # QNX uses GNU C++, but need to define -shared option too, otherwise
13694 # it will coredump.
13695 lt_prog_compiler_pic_CXX='-fPIC -shared'
13696 ;;
13697 *)
13698 lt_prog_compiler_pic_CXX='-fPIC'
13699 ;;
13700 esac
13701 else
13702 case $host_os in
13703 aix[4-9]*)
13704 # All AIX code is PIC.
13705 if test "$host_cpu" = ia64; then
13706 # AIX 5 now supports IA64 processor
13707 lt_prog_compiler_static_CXX='-Bstatic'
13708 else
13709 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13710 fi
13711 ;;
13712 chorus*)
13713 case $cc_basename in
13714 cxch68*)
13715 # Green Hills C++ Compiler
13716 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13717 ;;
13718 esac
13719 ;;
13720 dgux*)
13721 case $cc_basename in
13722 ec++*)
13723 lt_prog_compiler_pic_CXX='-KPIC'
13724 ;;
13725 ghcx*)
13726 # Green Hills C++ Compiler
13727 lt_prog_compiler_pic_CXX='-pic'
13728 ;;
13729 *)
13730 ;;
13731 esac
13732 ;;
13733 freebsd* | dragonfly*)
13734 # FreeBSD uses GNU C++
13735 ;;
13736 hpux9* | hpux10* | hpux11*)
13737 case $cc_basename in
13738 CC*)
13739 lt_prog_compiler_wl_CXX='-Wl,'
13740 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13741 if test "$host_cpu" != ia64; then
13742 lt_prog_compiler_pic_CXX='+Z'
13743 fi
13744 ;;
13745 aCC*)
13746 lt_prog_compiler_wl_CXX='-Wl,'
13747 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13748 case $host_cpu in
13749 hppa*64*|ia64*)
13750 # +Z the default
13751 ;;
13752 *)
13753 lt_prog_compiler_pic_CXX='+Z'
13754 ;;
13755 esac
13756 ;;
13757 *)
13758 ;;
13759 esac
13760 ;;
13761 interix*)
13762 # This is c89, which is MS Visual C++ (no shared libs)
13763 # Anyone wants to do a port?
13764 ;;
13765 irix5* | irix6* | nonstopux*)
13766 case $cc_basename in
13767 CC*)
13768 lt_prog_compiler_wl_CXX='-Wl,'
13769 lt_prog_compiler_static_CXX='-non_shared'
13770 # CC pic flag -KPIC is the default.
13771 ;;
13772 *)
13773 ;;
13774 esac
13775 ;;
13776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13777 case $cc_basename in
13778 KCC*)
13779 # KAI C++ Compiler
13780 lt_prog_compiler_wl_CXX='--backend -Wl,'
13781 lt_prog_compiler_pic_CXX='-fPIC'
13782 ;;
13783 ecpc* )
13784 # old Intel C++ for x86_64 which still supported -KPIC.
13785 lt_prog_compiler_wl_CXX='-Wl,'
13786 lt_prog_compiler_pic_CXX='-KPIC'
13787 lt_prog_compiler_static_CXX='-static'
13788 ;;
13789 icpc* )
13790 # Intel C++, used to be incompatible with GCC.
13791 # ICC 10 doesn't accept -KPIC any more.
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_pic_CXX='-fPIC'
13794 lt_prog_compiler_static_CXX='-static'
13795 ;;
13796 pgCC* | pgcpp*)
13797 # Portland Group C++ compiler
13798 lt_prog_compiler_wl_CXX='-Wl,'
13799 lt_prog_compiler_pic_CXX='-fpic'
13800 lt_prog_compiler_static_CXX='-Bstatic'
13801 ;;
13802 cxx*)
13803 # Compaq C++
13804 # Make sure the PIC flag is empty. It appears that all Alpha
13805 # Linux and Compaq Tru64 Unix objects are PIC.
13806 lt_prog_compiler_pic_CXX=
13807 lt_prog_compiler_static_CXX='-non_shared'
13808 ;;
13809 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13810 # IBM XL 8.0, 9.0 on PPC and BlueGene
13811 lt_prog_compiler_wl_CXX='-Wl,'
13812 lt_prog_compiler_pic_CXX='-qpic'
13813 lt_prog_compiler_static_CXX='-qstaticlink'
13814 ;;
13815 *)
13816 case `$CC -V 2>&1 | sed 5q` in
13817 *Sun\ C*)
13818 # Sun C++ 5.9
13819 lt_prog_compiler_pic_CXX='-KPIC'
13820 lt_prog_compiler_static_CXX='-Bstatic'
13821 lt_prog_compiler_wl_CXX='-Qoption ld '
13822 ;;
13823 esac
13824 ;;
13825 esac
13826 ;;
13827 lynxos*)
13828 ;;
13829 m88k*)
13830 ;;
13831 mvs*)
13832 case $cc_basename in
13833 cxx*)
13834 lt_prog_compiler_pic_CXX='-W c,exportall'
13835 ;;
13836 *)
13837 ;;
13838 esac
13839 ;;
13840 netbsd*)
13841 ;;
13842 *qnx* | *nto*)
13843 # QNX uses GNU C++, but need to define -shared option too, otherwise
13844 # it will coredump.
13845 lt_prog_compiler_pic_CXX='-fPIC -shared'
13846 ;;
13847 osf3* | osf4* | osf5*)
13848 case $cc_basename in
13849 KCC*)
13850 lt_prog_compiler_wl_CXX='--backend -Wl,'
13851 ;;
13852 RCC*)
13853 # Rational C++ 2.4.1
13854 lt_prog_compiler_pic_CXX='-pic'
13855 ;;
13856 cxx*)
13857 # Digital/Compaq C++
13858 lt_prog_compiler_wl_CXX='-Wl,'
13859 # Make sure the PIC flag is empty. It appears that all Alpha
13860 # Linux and Compaq Tru64 Unix objects are PIC.
13861 lt_prog_compiler_pic_CXX=
13862 lt_prog_compiler_static_CXX='-non_shared'
13863 ;;
13864 *)
13865 ;;
13866 esac
13867 ;;
13868 psos*)
13869 ;;
13870 solaris*)
13871 case $cc_basename in
13872 CC*)
13873 # Sun C++ 4.2, 5.x and Centerline C++
13874 lt_prog_compiler_pic_CXX='-KPIC'
13875 lt_prog_compiler_static_CXX='-Bstatic'
13876 lt_prog_compiler_wl_CXX='-Qoption ld '
13877 ;;
13878 gcx*)
13879 # Green Hills C++ Compiler
13880 lt_prog_compiler_pic_CXX='-PIC'
13881 ;;
13882 *)
13883 ;;
13884 esac
13885 ;;
13886 sunos4*)
13887 case $cc_basename in
13888 CC*)
13889 # Sun C++ 4.x
13890 lt_prog_compiler_pic_CXX='-pic'
13891 lt_prog_compiler_static_CXX='-Bstatic'
13892 ;;
13893 lcc*)
13894 # Lucid
13895 lt_prog_compiler_pic_CXX='-pic'
13896 ;;
13897 *)
13898 ;;
13899 esac
13900 ;;
13901 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13902 case $cc_basename in
13903 CC*)
13904 lt_prog_compiler_wl_CXX='-Wl,'
13905 lt_prog_compiler_pic_CXX='-KPIC'
13906 lt_prog_compiler_static_CXX='-Bstatic'
13907 ;;
13908 esac
13909 ;;
13910 tandem*)
13911 case $cc_basename in
13912 NCC*)
13913 # NonStop-UX NCC 3.20
13914 lt_prog_compiler_pic_CXX='-KPIC'
13915 ;;
13916 *)
13917 ;;
13918 esac
13919 ;;
13920 vxworks*)
13921 ;;
13922 *)
13923 lt_prog_compiler_can_build_shared_CXX=no
13924 ;;
13925 esac
13926 fi
13927
13928case $host_os in
13929 # For platforms which do not support PIC, -DPIC is meaningless:
13930 *djgpp*)
13931 lt_prog_compiler_pic_CXX=
13932 ;;
13933 *)
13934 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13935 ;;
13936esac
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13938$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13939
13940
13941
13942#
13943# Check to make sure the PIC flag actually works.
13944#
13945if test -n "$lt_prog_compiler_pic_CXX"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13947$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13948if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13949 $as_echo_n "(cached) " >&6
13950else
13951 lt_cv_prog_compiler_pic_works_CXX=no
13952 ac_outfile=conftest.$ac_objext
13953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13955 # Insert the option either (1) after the last *FLAGS variable, or
13956 # (2) before a word containing "conftest.", or (3) at the end.
13957 # Note that $ac_compile itself does not contain backslashes and begins
13958 # with a dollar sign (not a hyphen), so the echo should work correctly.
13959 # The option is referenced via a variable to avoid confusing sed.
13960 lt_compile=`echo "$ac_compile" | $SED \
13961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13963 -e 's:$: $lt_compiler_flag:'`
13964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13965 (eval "$lt_compile" 2>conftest.err)
13966 ac_status=$?
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 if (exit $ac_status) && test -s "$ac_outfile"; then
13970 # The compiler can only warn and ignore the option if not recognized
13971 # So say no if there are warnings other than the usual output.
13972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13975 lt_cv_prog_compiler_pic_works_CXX=yes
13976 fi
13977 fi
13978 $RM conftest*
13979
13980fi
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13982$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13983
13984if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13985 case $lt_prog_compiler_pic_CXX in
13986 "" | " "*) ;;
13987 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13988 esac
13989else
13990 lt_prog_compiler_pic_CXX=
13991 lt_prog_compiler_can_build_shared_CXX=no
13992fi
13993
13994fi
13995
13996
13997
13998#
13999# Check to make sure the static flag actually works.
14000#
14001wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14004if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14005 $as_echo_n "(cached) " >&6
14006else
14007 lt_cv_prog_compiler_static_works_CXX=no
14008 save_LDFLAGS="$LDFLAGS"
14009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012 # The linker can only warn and ignore the option if not recognized
14013 # So say no if there are warnings
14014 if test -s conftest.err; then
14015 # Append any errors to the config.log.
14016 cat conftest.err 1>&5
14017 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019 if diff conftest.exp conftest.er2 >/dev/null; then
14020 lt_cv_prog_compiler_static_works_CXX=yes
14021 fi
14022 else
14023 lt_cv_prog_compiler_static_works_CXX=yes
14024 fi
14025 fi
14026 $RM -r conftest*
14027 LDFLAGS="$save_LDFLAGS"
14028
14029fi
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14031$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14032
14033if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14034 :
14035else
14036 lt_prog_compiler_static_CXX=
14037fi
14038
14039
14040
14041
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14043$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14044if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14045 $as_echo_n "(cached) " >&6
14046else
14047 lt_cv_prog_compiler_c_o_CXX=no
14048 $RM -r conftest 2>/dev/null
14049 mkdir conftest
14050 cd conftest
14051 mkdir out
14052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14053
14054 lt_compiler_flag="-o out/conftest2.$ac_objext"
14055 # Insert the option either (1) after the last *FLAGS variable, or
14056 # (2) before a word containing "conftest.", or (3) at the end.
14057 # Note that $ac_compile itself does not contain backslashes and begins
14058 # with a dollar sign (not a hyphen), so the echo should work correctly.
14059 lt_compile=`echo "$ac_compile" | $SED \
14060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14062 -e 's:$: $lt_compiler_flag:'`
14063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14064 (eval "$lt_compile" 2>out/conftest.err)
14065 ac_status=$?
14066 cat out/conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14069 then
14070 # The compiler can only warn and ignore the option if not recognized
14071 # So say no if there are warnings
14072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14075 lt_cv_prog_compiler_c_o_CXX=yes
14076 fi
14077 fi
14078 chmod u+w . 2>&5
14079 $RM conftest*
14080 # SGI C++ compiler will create directory out/ii_files/ for
14081 # template instantiation
14082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14083 $RM out/* && rmdir out
14084 cd ..
14085 $RM -r conftest
14086 $RM conftest*
14087
14088fi
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14090$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14091
14092
14093
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14095$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14096if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14098else
14099 lt_cv_prog_compiler_c_o_CXX=no
14100 $RM -r conftest 2>/dev/null
14101 mkdir conftest
14102 cd conftest
14103 mkdir out
14104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14105
14106 lt_compiler_flag="-o out/conftest2.$ac_objext"
14107 # Insert the option either (1) after the last *FLAGS variable, or
14108 # (2) before a word containing "conftest.", or (3) at the end.
14109 # Note that $ac_compile itself does not contain backslashes and begins
14110 # with a dollar sign (not a hyphen), so the echo should work correctly.
14111 lt_compile=`echo "$ac_compile" | $SED \
14112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14114 -e 's:$: $lt_compiler_flag:'`
14115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14116 (eval "$lt_compile" 2>out/conftest.err)
14117 ac_status=$?
14118 cat out/conftest.err >&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14121 then
14122 # The compiler can only warn and ignore the option if not recognized
14123 # So say no if there are warnings
14124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14127 lt_cv_prog_compiler_c_o_CXX=yes
14128 fi
14129 fi
14130 chmod u+w . 2>&5
14131 $RM conftest*
14132 # SGI C++ compiler will create directory out/ii_files/ for
14133 # template instantiation
14134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14135 $RM out/* && rmdir out
14136 cd ..
14137 $RM -r conftest
14138 $RM conftest*
14139
14140fi
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14142$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14143
14144
14145
14146
14147hard_links="nottested"
14148if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14149 # do not overwrite the value of need_locks provided by the user
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14151$as_echo_n "checking if we can lock with hard links... " >&6; }
14152 hard_links=yes
14153 $RM conftest*
14154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14155 touch conftest.a
14156 ln conftest.a conftest.b 2>&5 || hard_links=no
14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14159$as_echo "$hard_links" >&6; }
14160 if test "$hard_links" = no; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14162$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14163 need_locks=warn
14164 fi
14165else
14166 need_locks=no
14167fi
14168
14169
14170
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14172$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14173
14174 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14175 case $host_os in
14176 aix[4-9]*)
14177 # If we're using GNU nm, then we don't want the "-C" option.
14178 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14179 # Also, AIX nm treats weak defined symbols like other global defined
14180 # symbols, whereas GNU nm marks them as "W".
14181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14182 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14183 else
5c14705f 14184 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
3cb62297
L
14185 fi
14186 ;;
14187 pw32*)
14188 export_symbols_cmds_CXX="$ltdll_cmds"
14189 ;;
14190 cygwin* | mingw* | cegcc*)
14191 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14192 ;;
14193 *)
14194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14195 ;;
14196 esac
14197 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14198
14199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14200$as_echo "$ld_shlibs_CXX" >&6; }
14201test "$ld_shlibs_CXX" = no && can_build_shared=no
14202
14203with_gnu_ld_CXX=$with_gnu_ld
14204
14205
14206
14207
14208
14209
14210#
14211# Do we need to explicitly link libc?
14212#
14213case "x$archive_cmds_need_lc_CXX" in
14214x|xyes)
14215 # Assume -lc should be added
14216 archive_cmds_need_lc_CXX=yes
14217
14218 if test "$enable_shared" = yes && test "$GCC" = yes; then
14219 case $archive_cmds_CXX in
14220 *'~'*)
14221 # FIXME: we may have to deal with multi-command sequences.
14222 ;;
14223 '$CC '*)
14224 # Test whether the compiler implicitly links with -lc since on some
14225 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14226 # to ld, don't add -lc before -lgcc.
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14228$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14229if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14230 $as_echo_n "(cached) " >&6
14231else
14232 $RM conftest*
14233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14234
14235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14236 (eval $ac_compile) 2>&5
14237 ac_status=$?
14238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14239 test $ac_status = 0; } 2>conftest.err; then
14240 soname=conftest
14241 lib=conftest
14242 libobjs=conftest.$ac_objext
14243 deplibs=
14244 wl=$lt_prog_compiler_wl_CXX
14245 pic_flag=$lt_prog_compiler_pic_CXX
14246 compiler_flags=-v
14247 linker_flags=-v
14248 verstring=
14249 output_objdir=.
14250 libname=conftest
14251 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14252 allow_undefined_flag_CXX=
14253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14254 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14255 ac_status=$?
14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14257 test $ac_status = 0; }
14258 then
14259 lt_cv_archive_cmds_need_lc_CXX=no
14260 else
14261 lt_cv_archive_cmds_need_lc_CXX=yes
14262 fi
14263 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14264 else
14265 cat conftest.err 1>&5
14266 fi
14267 $RM conftest*
14268
14269fi
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14271$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14272 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14273 ;;
14274 esac
14275 fi
14276 ;;
14277esac
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14343$as_echo_n "checking dynamic linker characteristics... " >&6; }
14344
14345library_names_spec=
14346libname_spec='lib$name'
14347soname_spec=
14348shrext_cmds=".so"
14349postinstall_cmds=
14350postuninstall_cmds=
14351finish_cmds=
14352finish_eval=
14353shlibpath_var=
14354shlibpath_overrides_runpath=unknown
14355version_type=none
14356dynamic_linker="$host_os ld.so"
14357sys_lib_dlsearch_path_spec="/lib /usr/lib"
14358need_lib_prefix=unknown
14359hardcode_into_libs=no
14360
14361# when you set need_version to no, make sure it does not cause -set_version
14362# flags to be left without arguments
14363need_version=unknown
14364
14365case $host_os in
14366aix3*)
14367 version_type=linux
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14369 shlibpath_var=LIBPATH
14370
14371 # AIX 3 has no versioning support, so we append a major version to the name.
14372 soname_spec='${libname}${release}${shared_ext}$major'
14373 ;;
14374
14375aix[4-9]*)
14376 version_type=linux
14377 need_lib_prefix=no
14378 need_version=no
14379 hardcode_into_libs=yes
14380 if test "$host_cpu" = ia64; then
14381 # AIX 5 supports IA64
14382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14383 shlibpath_var=LD_LIBRARY_PATH
14384 else
14385 # With GCC up to 2.95.x, collect2 would create an import file
14386 # for dependence libraries. The import file would start with
14387 # the line `#! .'. This would cause the generated library to
14388 # depend on `.', always an invalid library. This was fixed in
14389 # development snapshots of GCC prior to 3.0.
14390 case $host_os in
14391 aix4 | aix4.[01] | aix4.[01].*)
14392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14393 echo ' yes '
14394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14395 :
14396 else
14397 can_build_shared=no
14398 fi
14399 ;;
14400 esac
14401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14402 # soname into executable. Probably we can add versioning support to
14403 # collect2, so additional links can be useful in future.
14404 if test "$aix_use_runtimelinking" = yes; then
14405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14406 # instead of lib<name>.a to let people know that these are not
14407 # typical AIX shared libraries.
14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14409 else
14410 # We preserve .a as extension for shared libraries through AIX4.2
14411 # and later when we are not doing run time linking.
14412 library_names_spec='${libname}${release}.a $libname.a'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 fi
14415 shlibpath_var=LIBPATH
14416 fi
14417 ;;
14418
14419amigaos*)
14420 case $host_cpu in
14421 powerpc)
14422 # Since July 2007 AmigaOS4 officially supports .so libraries.
14423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14425 ;;
14426 m68k)
14427 library_names_spec='$libname.ixlibrary $libname.a'
14428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14429 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'
14430 ;;
14431 esac
14432 ;;
14433
14434beos*)
14435 library_names_spec='${libname}${shared_ext}'
14436 dynamic_linker="$host_os ld.so"
14437 shlibpath_var=LIBRARY_PATH
14438 ;;
14439
14440bsdi[45]*)
14441 version_type=linux
14442 need_version=no
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14444 soname_spec='${libname}${release}${shared_ext}$major'
14445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14449 # the default ld.so.conf also contains /usr/contrib/lib and
14450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14451 # libtool to hard-code these into programs
14452 ;;
14453
14454cygwin* | mingw* | pw32* | cegcc*)
14455 version_type=windows
14456 shrext_cmds=".dll"
14457 need_version=no
14458 need_lib_prefix=no
14459
14460 case $GCC,$host_os in
14461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14462 library_names_spec='$libname.dll.a'
14463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14464 postinstall_cmds='base_file=`basename \${file}`~
14465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14466 dldir=$destdir/`dirname \$dlpath`~
14467 test -d \$dldir || mkdir -p \$dldir~
14468 $install_prog $dir/$dlname \$dldir/$dlname~
14469 chmod a+x \$dldir/$dlname~
14470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14472 fi'
14473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14474 dlpath=$dir/\$dldll~
14475 $RM \$dlpath'
14476 shlibpath_overrides_runpath=yes
14477
14478 case $host_os in
14479 cygwin*)
14480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14482
14483 ;;
14484 mingw* | cegcc*)
14485 # MinGW DLLs use traditional 'lib' prefix
14486 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14487 ;;
14488 pw32*)
14489 # pw32 DLLs use 'pw' prefix rather than 'lib'
14490 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14491 ;;
14492 esac
14493 ;;
14494
14495 *)
14496 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14497 ;;
14498 esac
14499 dynamic_linker='Win32 ld.exe'
14500 # FIXME: first we should search . and the directory the executable is in
14501 shlibpath_var=PATH
14502 ;;
14503
14504darwin* | rhapsody*)
14505 dynamic_linker="$host_os dyld"
14506 version_type=darwin
14507 need_lib_prefix=no
14508 need_version=no
14509 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14510 soname_spec='${libname}${release}${major}$shared_ext'
14511 shlibpath_overrides_runpath=yes
14512 shlibpath_var=DYLD_LIBRARY_PATH
14513 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14514
14515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14516 ;;
14517
14518dgux*)
14519 version_type=linux
14520 need_lib_prefix=no
14521 need_version=no
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 ;;
14526
3cb62297
L
14527freebsd* | dragonfly*)
14528 # DragonFly does not have aout. When/if they implement a new
14529 # versioning mechanism, adjust this.
14530 if test -x /usr/bin/objformat; then
14531 objformat=`/usr/bin/objformat`
14532 else
14533 case $host_os in
6d2920c8 14534 freebsd[23].*) objformat=aout ;;
3cb62297
L
14535 *) objformat=elf ;;
14536 esac
14537 fi
14538 version_type=freebsd-$objformat
14539 case $version_type in
14540 freebsd-elf*)
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14542 need_version=no
14543 need_lib_prefix=no
14544 ;;
14545 freebsd-*)
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14547 need_version=yes
14548 ;;
14549 esac
14550 shlibpath_var=LD_LIBRARY_PATH
14551 case $host_os in
6d2920c8 14552 freebsd2.*)
3cb62297
L
14553 shlibpath_overrides_runpath=yes
14554 ;;
14555 freebsd3.[01]* | freebsdelf3.[01]*)
14556 shlibpath_overrides_runpath=yes
14557 hardcode_into_libs=yes
14558 ;;
14559 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14560 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14561 shlibpath_overrides_runpath=no
14562 hardcode_into_libs=yes
14563 ;;
14564 *) # from 4.6 on, and DragonFly
14565 shlibpath_overrides_runpath=yes
14566 hardcode_into_libs=yes
14567 ;;
14568 esac
14569 ;;
14570
14571gnu*)
14572 version_type=linux
14573 need_lib_prefix=no
14574 need_version=no
14575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14576 soname_spec='${libname}${release}${shared_ext}$major'
14577 shlibpath_var=LD_LIBRARY_PATH
14578 hardcode_into_libs=yes
14579 ;;
14580
14581haiku*)
14582 version_type=linux
14583 need_lib_prefix=no
14584 need_version=no
14585 dynamic_linker="$host_os runtime_loader"
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 shlibpath_var=LIBRARY_PATH
14589 shlibpath_overrides_runpath=yes
14590 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14591 hardcode_into_libs=yes
14592 ;;
14593
14594hpux9* | hpux10* | hpux11*)
14595 # Give a soname corresponding to the major version so that dld.sl refuses to
14596 # link against other versions.
14597 version_type=sunos
14598 need_lib_prefix=no
14599 need_version=no
14600 case $host_cpu in
14601 ia64*)
14602 shrext_cmds='.so'
14603 hardcode_into_libs=yes
14604 dynamic_linker="$host_os dld.so"
14605 shlibpath_var=LD_LIBRARY_PATH
14606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 if test "X$HPUX_IA64_MODE" = X32; then
14610 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14611 else
14612 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14613 fi
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14615 ;;
14616 hppa*64*)
14617 shrext_cmds='.sl'
14618 hardcode_into_libs=yes
14619 dynamic_linker="$host_os dld.sl"
14620 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14626 ;;
14627 *)
14628 shrext_cmds='.sl'
14629 dynamic_linker="$host_os dld.sl"
14630 shlibpath_var=SHLIB_PATH
14631 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14633 soname_spec='${libname}${release}${shared_ext}$major'
14634 ;;
14635 esac
14636 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14637 postinstall_cmds='chmod 555 $lib'
14638 # or fails outright, so override atomically:
14639 install_override_mode=555
14640 ;;
14641
14642interix[3-9]*)
14643 version_type=linux
14644 need_lib_prefix=no
14645 need_version=no
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14651 hardcode_into_libs=yes
14652 ;;
14653
14654irix5* | irix6* | nonstopux*)
14655 case $host_os in
14656 nonstopux*) version_type=nonstopux ;;
14657 *)
14658 if test "$lt_cv_prog_gnu_ld" = yes; then
14659 version_type=linux
14660 else
14661 version_type=irix
14662 fi ;;
14663 esac
14664 need_lib_prefix=no
14665 need_version=no
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14668 case $host_os in
14669 irix5* | nonstopux*)
14670 libsuff= shlibsuff=
14671 ;;
14672 *)
14673 case $LD in # libtool.m4 will add one of these switches to LD
14674 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14675 libsuff= shlibsuff= libmagic=32-bit;;
14676 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14677 libsuff=32 shlibsuff=N32 libmagic=N32;;
14678 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14679 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14680 *) libsuff= shlibsuff= libmagic=never-match;;
14681 esac
14682 ;;
14683 esac
14684 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14685 shlibpath_overrides_runpath=no
14686 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14687 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14688 hardcode_into_libs=yes
14689 ;;
14690
14691# No shared lib support for Linux oldld, aout, or coff.
14692linux*oldld* | linux*aout* | linux*coff*)
14693 dynamic_linker=no
14694 ;;
14695
14696# This must be Linux ELF.
14697linux* | k*bsd*-gnu | kopensolaris*-gnu)
14698 version_type=linux
14699 need_lib_prefix=no
14700 need_version=no
14701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14702 soname_spec='${libname}${release}${shared_ext}$major'
14703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=no
14706
14707 # Some binutils ld are patched to set DT_RUNPATH
14708 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14709 $as_echo_n "(cached) " >&6
14710else
14711 lt_cv_shlibpath_overrides_runpath=no
14712 save_LDFLAGS=$LDFLAGS
14713 save_libdir=$libdir
14714 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14715 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717/* end confdefs.h. */
14718
14719int
14720main ()
14721{
14722
14723 ;
14724 return 0;
14725}
14726_ACEOF
14727if ac_fn_cxx_try_link "$LINENO"; then :
14728 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14729 lt_cv_shlibpath_overrides_runpath=yes
14730fi
14731fi
14732rm -f core conftest.err conftest.$ac_objext \
14733 conftest$ac_exeext conftest.$ac_ext
14734 LDFLAGS=$save_LDFLAGS
14735 libdir=$save_libdir
14736
14737fi
14738
14739 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14740
14741 # This implies no fast_install, which is unacceptable.
14742 # Some rework will be needed to allow for fast_install
14743 # before this can be enabled.
14744 hardcode_into_libs=yes
14745
14746 # Append ld.so.conf contents to the search path
14747 if test -f /etc/ld.so.conf; then
14748 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' ' '`
14749 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14750 fi
14751
14752 # We used to test for /lib/ld.so.1 and disable shared libraries on
14753 # powerpc, because MkLinux only supported shared libraries with the
14754 # GNU dynamic linker. Since this was broken with cross compilers,
14755 # most powerpc-linux boxes support dynamic linking these days and
14756 # people can always --disable-shared, the test was removed, and we
14757 # assume the GNU/Linux dynamic linker is in use.
14758 dynamic_linker='GNU/Linux ld.so'
14759 ;;
14760
14761netbsd*)
14762 version_type=sunos
14763 need_lib_prefix=no
14764 need_version=no
14765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14768 dynamic_linker='NetBSD (a.out) ld.so'
14769 else
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 dynamic_linker='NetBSD ld.elf_so'
14773 fi
14774 shlibpath_var=LD_LIBRARY_PATH
14775 shlibpath_overrides_runpath=yes
14776 hardcode_into_libs=yes
14777 ;;
14778
14779newsos6)
14780 version_type=linux
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=yes
14784 ;;
14785
14786*nto* | *qnx*)
14787 version_type=qnx
14788 need_lib_prefix=no
14789 need_version=no
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 shlibpath_var=LD_LIBRARY_PATH
14793 shlibpath_overrides_runpath=no
14794 hardcode_into_libs=yes
14795 dynamic_linker='ldqnx.so'
14796 ;;
14797
14798openbsd*)
14799 version_type=sunos
14800 sys_lib_dlsearch_path_spec="/usr/lib"
14801 need_lib_prefix=no
14802 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14803 case $host_os in
14804 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14805 *) need_version=no ;;
14806 esac
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14811 case $host_os in
14812 openbsd2.[89] | openbsd2.[89].*)
14813 shlibpath_overrides_runpath=no
14814 ;;
14815 *)
14816 shlibpath_overrides_runpath=yes
14817 ;;
14818 esac
14819 else
14820 shlibpath_overrides_runpath=yes
14821 fi
14822 ;;
14823
14824os2*)
14825 libname_spec='$name'
14826 shrext_cmds=".dll"
14827 need_lib_prefix=no
14828 library_names_spec='$libname${shared_ext} $libname.a'
14829 dynamic_linker='OS/2 ld.exe'
14830 shlibpath_var=LIBPATH
14831 ;;
14832
14833osf3* | osf4* | osf5*)
14834 version_type=osf
14835 need_lib_prefix=no
14836 need_version=no
14837 soname_spec='${libname}${release}${shared_ext}$major'
14838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14841 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14842 ;;
14843
14844rdos*)
14845 dynamic_linker=no
14846 ;;
14847
14848solaris*)
14849 version_type=linux
14850 need_lib_prefix=no
14851 need_version=no
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 hardcode_into_libs=yes
14857 # ldd complains unless libraries are executable
14858 postinstall_cmds='chmod +x $lib'
14859 ;;
14860
14861sunos4*)
14862 version_type=sunos
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14864 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 if test "$with_gnu_ld" = yes; then
14868 need_lib_prefix=no
14869 fi
14870 need_version=yes
14871 ;;
14872
14873sysv4 | sysv4.3*)
14874 version_type=linux
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 soname_spec='${libname}${release}${shared_ext}$major'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 case $host_vendor in
14879 sni)
14880 shlibpath_overrides_runpath=no
14881 need_lib_prefix=no
14882 runpath_var=LD_RUN_PATH
14883 ;;
14884 siemens)
14885 need_lib_prefix=no
14886 ;;
14887 motorola)
14888 need_lib_prefix=no
14889 need_version=no
14890 shlibpath_overrides_runpath=no
14891 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14892 ;;
14893 esac
14894 ;;
14895
14896sysv4*MP*)
14897 if test -d /usr/nec ;then
14898 version_type=linux
14899 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14900 soname_spec='$libname${shared_ext}.$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 fi
14903 ;;
14904
14905sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14906 version_type=freebsd-elf
14907 need_lib_prefix=no
14908 need_version=no
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14910 soname_spec='${libname}${release}${shared_ext}$major'
14911 shlibpath_var=LD_LIBRARY_PATH
14912 shlibpath_overrides_runpath=yes
14913 hardcode_into_libs=yes
14914 if test "$with_gnu_ld" = yes; then
14915 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14916 else
14917 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14918 case $host_os in
14919 sco3.2v5*)
14920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14921 ;;
14922 esac
14923 fi
14924 sys_lib_dlsearch_path_spec='/usr/lib'
14925 ;;
14926
14927tpf*)
14928 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14929 version_type=linux
14930 need_lib_prefix=no
14931 need_version=no
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 shlibpath_var=LD_LIBRARY_PATH
14934 shlibpath_overrides_runpath=no
14935 hardcode_into_libs=yes
14936 ;;
14937
14938uts4*)
14939 version_type=linux
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 ;;
14944
14945*)
14946 dynamic_linker=no
14947 ;;
14948esac
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14950$as_echo "$dynamic_linker" >&6; }
14951test "$dynamic_linker" = no && can_build_shared=no
14952
14953variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14954if test "$GCC" = yes; then
14955 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14956fi
14957
14958if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14959 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14960fi
14961if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14962 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14963fi
14964
3725885a 14965
ce2cded5 14966
ce2cded5 14967
ce2cded5 14968
d7040cdb 14969
ce2cded5 14970
ce2cded5 14971
ce2cded5 14972
d7040cdb 14973
ce2cded5
L
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
ce2cded5
L
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
b879806f
AM
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15003$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15004hardcode_action_CXX=
15005if test -n "$hardcode_libdir_flag_spec_CXX" ||
15006 test -n "$runpath_var_CXX" ||
15007 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15008
15009 # We can hardcode non-existent directories.
15010 if test "$hardcode_direct_CXX" != no &&
15011 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15012 # have to relink, otherwise we might link with an installed library
15013 # when we should be linking with a yet-to-be-installed one
15014 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15015 test "$hardcode_minus_L_CXX" != no; then
15016 # Linking always hardcodes the temporary library directory.
15017 hardcode_action_CXX=relink
15018 else
15019 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15020 hardcode_action_CXX=immediate
15021 fi
15022else
15023 # We cannot hardcode anything, or else we can only hardcode existing
15024 # directories.
15025 hardcode_action_CXX=unsupported
15026fi
15027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15028$as_echo "$hardcode_action_CXX" >&6; }
15029
15030if test "$hardcode_action_CXX" = relink ||
15031 test "$inherit_rpath_CXX" = yes; then
15032 # Fast installation is not supported
15033 enable_fast_install=no
15034elif test "$shlibpath_overrides_runpath" = yes ||
15035 test "$enable_shared" = no; then
15036 # Fast installation is not necessary
15037 enable_fast_install=needless
15038fi
15039
15040
15041
15042
15043
15044
15045
15046 fi # test -n "$compiler"
15047
15048 CC=$lt_save_CC
15049 LDCXX=$LD
15050 LD=$lt_save_LD
15051 GCC=$lt_save_GCC
15052 with_gnu_ld=$lt_save_with_gnu_ld
15053 lt_cv_path_LDCXX=$lt_cv_path_LD
15054 lt_cv_path_LD=$lt_save_path_LD
15055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15057fi # test "$_lt_caught_CXX_error" != yes
15058
15059ac_ext=c
15060ac_cpp='$CPP $CPPFLAGS'
15061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063ac_compiler_gnu=$ac_cv_c_compiler_gnu
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077 ac_config_commands="$ac_config_commands libtool"
15078
15079
15080
15081
15082# Only expand once:
15083
15084
15085
15086# The tests for host and target for $enable_largefile require
15087# canonical names.
15088
15089
15090
15091# As the $enable_largefile decision depends on --enable-plugins we must set it
15092# even in directories otherwise not depending on the $plugins option.
15093
15094
15095 maybe_plugins=no
15096 for ac_header in dlfcn.h
15097do :
15098 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15099"
15100if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15101 cat >>confdefs.h <<_ACEOF
15102#define HAVE_DLFCN_H 1
15103_ACEOF
15104 maybe_plugins=yes
15105fi
15106
15107done
15108
15109 for ac_header in windows.h
15110do :
15111 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15112"
15113if test "x$ac_cv_header_windows_h" = x""yes; then :
15114 cat >>confdefs.h <<_ACEOF
15115#define HAVE_WINDOWS_H 1
15116_ACEOF
15117 maybe_plugins=yes
15118fi
15119
15120done
15121
15122
15123 # Check whether --enable-plugins was given.
15124if test "${enable_plugins+set}" = set; then :
15125 enableval=$enable_plugins; case "${enableval}" in
15126 no) plugins=no ;;
15127 *) plugins=yes
15128 if test "$maybe_plugins" != "yes" ; then
15129 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15130 fi ;;
15131 esac
15132else
15133 plugins=$maybe_plugins
15134
15135fi
15136
2974be62
AM
15137 if test "$plugins" = "yes"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15139$as_echo_n "checking for library containing dlopen... " >&6; }
15140if test "${ac_cv_search_dlopen+set}" = set; then :
15141 $as_echo_n "(cached) " >&6
15142else
15143 ac_func_search_save_LIBS=$LIBS
15144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h. */
15146
15147/* Override any GCC internal prototype to avoid an error.
15148 Use char because int might match the return type of a GCC
15149 builtin and then its argument prototype would still apply. */
15150#ifdef __cplusplus
15151extern "C"
15152#endif
15153char dlopen ();
15154int
15155main ()
15156{
15157return dlopen ();
15158 ;
15159 return 0;
15160}
15161_ACEOF
15162for ac_lib in '' dl; do
15163 if test -z "$ac_lib"; then
15164 ac_res="none required"
15165 else
15166 ac_res=-l$ac_lib
15167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15168 fi
15169 if ac_fn_c_try_link "$LINENO"; then :
15170 ac_cv_search_dlopen=$ac_res
15171fi
15172rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext
15174 if test "${ac_cv_search_dlopen+set}" = set; then :
15175 break
15176fi
15177done
15178if test "${ac_cv_search_dlopen+set}" = set; then :
15179
15180else
15181 ac_cv_search_dlopen=no
15182fi
15183rm conftest.$ac_ext
15184LIBS=$ac_func_search_save_LIBS
15185fi
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15187$as_echo "$ac_cv_search_dlopen" >&6; }
15188ac_res=$ac_cv_search_dlopen
15189if test "$ac_res" != no; then :
15190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15191
15192fi
15193
15194 fi
b879806f
AM
15195
15196
15197case "${host}" in
15198 sparc-*-solaris*|i[3-7]86-*-solaris*)
15199 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15200 # are mutually exclusive; and without procfs support, the bfd/ elf module
15201 # cannot provide certain routines such as elfcore_write_prpsinfo
15202 # or elfcore_write_prstatus. So unless the user explicitly requested
15203 # large-file support through the --enable-largefile switch, disable
15204 # large-file support in favor of procfs support.
15205 test "${target}" = "${host}" -a "x$plugins" = xno \
15206 && : ${enable_largefile="no"}
15207 ;;
15208esac
15209
15210# Check whether --enable-largefile was given.
15211if test "${enable_largefile+set}" = set; then :
15212 enableval=$enable_largefile;
15213fi
15214
15215if test "$enable_largefile" != no; then
15216
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15218$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15219if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15220 $as_echo_n "(cached) " >&6
15221else
15222 ac_cv_sys_largefile_CC=no
15223 if test "$GCC" != yes; then
15224 ac_save_CC=$CC
15225 while :; do
15226 # IRIX 6.2 and later do not support large files by default,
15227 # so use the C compiler's -n32 option if that helps.
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229/* end confdefs.h. */
15230#include <sys/types.h>
15231 /* Check that off_t can represent 2**63 - 1 correctly.
15232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15233 since some C++ compilers masquerading as C compilers
15234 incorrectly reject 9223372036854775807. */
15235#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15237 && LARGE_OFF_T % 2147483647 == 1)
15238 ? 1 : -1];
15239int
15240main ()
15241{
15242
15243 ;
15244 return 0;
15245}
15246_ACEOF
15247 if ac_fn_c_try_compile "$LINENO"; then :
15248 break
15249fi
15250rm -f core conftest.err conftest.$ac_objext
15251 CC="$CC -n32"
15252 if ac_fn_c_try_compile "$LINENO"; then :
15253 ac_cv_sys_largefile_CC=' -n32'; break
15254fi
15255rm -f core conftest.err conftest.$ac_objext
15256 break
15257 done
15258 CC=$ac_save_CC
15259 rm -f conftest.$ac_ext
15260 fi
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15263$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15264 if test "$ac_cv_sys_largefile_CC" != no; then
15265 CC=$CC$ac_cv_sys_largefile_CC
15266 fi
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15269$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15270if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15271 $as_echo_n "(cached) " >&6
15272else
15273 while :; do
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275/* end confdefs.h. */
15276#include <sys/types.h>
15277 /* Check that off_t can represent 2**63 - 1 correctly.
15278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15279 since some C++ compilers masquerading as C compilers
15280 incorrectly reject 9223372036854775807. */
15281#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15283 && LARGE_OFF_T % 2147483647 == 1)
15284 ? 1 : -1];
15285int
15286main ()
15287{
15288
15289 ;
15290 return 0;
15291}
15292_ACEOF
15293if ac_fn_c_try_compile "$LINENO"; then :
15294 ac_cv_sys_file_offset_bits=no; break
15295fi
15296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15298/* end confdefs.h. */
15299#define _FILE_OFFSET_BITS 64
15300#include <sys/types.h>
15301 /* Check that off_t can represent 2**63 - 1 correctly.
15302 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15303 since some C++ compilers masquerading as C compilers
15304 incorrectly reject 9223372036854775807. */
15305#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15306 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15307 && LARGE_OFF_T % 2147483647 == 1)
15308 ? 1 : -1];
15309int
15310main ()
15311{
15312
15313 ;
15314 return 0;
15315}
15316_ACEOF
15317if ac_fn_c_try_compile "$LINENO"; then :
15318 ac_cv_sys_file_offset_bits=64; break
15319fi
15320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15321 ac_cv_sys_file_offset_bits=unknown
15322 break
15323done
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15326$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15327case $ac_cv_sys_file_offset_bits in #(
15328 no | unknown) ;;
15329 *)
15330cat >>confdefs.h <<_ACEOF
15331#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15332_ACEOF
15333;;
15334esac
15335rm -rf conftest*
15336 if test $ac_cv_sys_file_offset_bits = unknown; then
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15338$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15339if test "${ac_cv_sys_large_files+set}" = set; then :
15340 $as_echo_n "(cached) " >&6
15341else
15342 while :; do
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344/* end confdefs.h. */
15345#include <sys/types.h>
15346 /* Check that off_t can represent 2**63 - 1 correctly.
15347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15348 since some C++ compilers masquerading as C compilers
15349 incorrectly reject 9223372036854775807. */
15350#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15352 && LARGE_OFF_T % 2147483647 == 1)
15353 ? 1 : -1];
15354int
15355main ()
15356{
15357
15358 ;
15359 return 0;
15360}
15361_ACEOF
15362if ac_fn_c_try_compile "$LINENO"; then :
15363 ac_cv_sys_large_files=no; break
15364fi
15365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367/* end confdefs.h. */
15368#define _LARGE_FILES 1
15369#include <sys/types.h>
15370 /* Check that off_t can represent 2**63 - 1 correctly.
15371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15372 since some C++ compilers masquerading as C compilers
15373 incorrectly reject 9223372036854775807. */
15374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15376 && LARGE_OFF_T % 2147483647 == 1)
15377 ? 1 : -1];
15378int
15379main ()
15380{
15381
15382 ;
15383 return 0;
15384}
15385_ACEOF
15386if ac_fn_c_try_compile "$LINENO"; then :
15387 ac_cv_sys_large_files=1; break
15388fi
15389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 ac_cv_sys_large_files=unknown
15391 break
15392done
15393fi
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15395$as_echo "$ac_cv_sys_large_files" >&6; }
15396case $ac_cv_sys_large_files in #(
15397 no | unknown) ;;
15398 *)
15399cat >>confdefs.h <<_ACEOF
15400#define _LARGE_FILES $ac_cv_sys_large_files
15401_ACEOF
15402;;
15403esac
15404rm -rf conftest*
15405 fi
15406fi
15407
15408
15409
15410
15411# Check whether --with-lib-path was given.
15412if test "${with_lib_path+set}" = set; then :
15413 withval=$with_lib_path; LIB_PATH=$withval
15414fi
15415
15416# Check whether --enable-targets was given.
15417if test "${enable_targets+set}" = set; then :
15418 enableval=$enable_targets; case "${enableval}" in
15419 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15420 ;;
15421 no) enable_targets= ;;
15422 *) enable_targets=$enableval ;;
15423esac
15424fi
15425# Check whether --enable-64-bit-bfd was given.
15426if test "${enable_64_bit_bfd+set}" = set; then :
15427 enableval=$enable_64_bit_bfd; case "${enableval}" in
15428 yes) want64=true ;;
15429 no) want64=false ;;
15430 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15431esac
15432else
15433 want64=false
15434fi
15435
15436
15437# Check whether --with-sysroot was given.
15438if test "${with_sysroot+set}" = set; then :
15439 withval=$with_sysroot;
15440 case ${with_sysroot} in
15441 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15442 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15443 esac
15444
15445 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15446 use_sysroot=yes
15447
15448 if test "x$prefix" = xNONE; then
15449 test_prefix=/usr/local
15450 else
15451 test_prefix=$prefix
15452 fi
15453 if test "x$exec_prefix" = xNONE; then
15454 test_exec_prefix=$test_prefix
15455 else
15456 test_exec_prefix=$exec_prefix
15457 fi
15458 case ${TARGET_SYSTEM_ROOT} in
15459 "${test_prefix}"|"${test_prefix}/"*|\
15460 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15461 '${prefix}'|'${prefix}/'*|\
15462 '${exec_prefix}'|'${exec_prefix}/'*)
15463 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15464 TARGET_SYSTEM_ROOT_DEFINE="$t"
15465 ;;
15466 esac
15467
15468else
15469
15470 use_sysroot=no
15471 TARGET_SYSTEM_ROOT=
15472 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15473
15474fi
15475
15476
15477
15478
15479
15480# Check whether --enable-gold was given.
15481if test "${enable_gold+set}" = set; then :
15482 enableval=$enable_gold; case "${enableval}" in
15483 default)
15484 install_as_default=no
15485 installed_linker=ld.bfd
15486 ;;
15487 yes|no)
15488 install_as_default=yes
15489 installed_linker=ld.bfd
15490 ;;
15491 *)
15492 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15493 ;;
15494 esac
15495else
15496 install_as_default=yes
15497 installed_linker=ld.bfd
15498fi
15499
15500
15501
15502
15503# Check whether --enable-got was given.
15504if test "${enable_got+set}" = set; then :
15505 enableval=$enable_got; case "${enableval}" in
15506 target | single | negative | multigot) got_handling=$enableval ;;
15507 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15508esac
15509else
15510 got_handling=target
15511fi
15512
15513
15514case "${got_handling}" in
15515 target)
15516
15517$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15518 ;;
15519 single)
15520
15521$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15522 ;;
15523 negative)
15524
15525$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15526 ;;
15527 multigot)
15528
15529$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15530 ;;
15531 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15532esac
15533
6c3bc0f8
NC
15534# PR gas/19109
15535# Decide the default method for compressing debug sections.
15536ac_default_compressed_debug_sections=unset
15537# Provide a configure time option to override our default.
15538# Check whether --enable-compressed_debug_sections was given.
15539if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15540 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15541 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15542 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15543esac
15544fi
15545
647e4d46
L
15546# Decide if -z relro should be enabled in ELF linker by default.
15547ac_default_ld_z_relro=unset
15548# Provide a configure time option to override our default.
15549# Check whether --enable-relro was given.
15550if test "${enable_relro+set}" = set; then :
15551 enableval=$enable_relro; case "${enableval}" in
15552 yes) ac_default_ld_z_relro=1 ;;
15553 no) ac_default_ld_z_relro=0 ;;
15554esac
15555fi
15556
b879806f
AM
15557
15558# Set the 'development' global.
15559. $srcdir/../bfd/development.sh
15560
9780e045 15561# Default set of GCC warnings to enable.
b879806f 15562GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15563
15564# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566/* end confdefs.h. */
15567__GNUC__
15568_ACEOF
15569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15570 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
ce2cded5 15571
3cb62297 15572else
b879806f 15573 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15574fi
b879806f 15575rm -f conftest*
ce2cded5 15576
ce2cded5 15577
9780e045
NC
15578# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15580/* end confdefs.h. */
15581__GNUC__
15582_ACEOF
15583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15584 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15585
15586else
15587 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15588fi
15589rm -f conftest*
15590
15591
6757cf57
TS
15592# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15593WARN_WRITE_STRINGS=""
15594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15595/* end confdefs.h. */
15596__GNUC__
15597_ACEOF
15598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15600
15601else
15602 WARN_WRITE_STRINGS="-Wwrite-strings"
15603fi
15604rm -f conftest*
15605
9780e045 15606
b879806f
AM
15607# Check whether --enable-werror was given.
15608if test "${enable_werror+set}" = set; then :
15609 enableval=$enable_werror; case "${enableval}" in
15610 yes | y) ERROR_ON_WARNING="yes" ;;
15611 no | n) ERROR_ON_WARNING="no" ;;
15612 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15613 esac
15614fi
ce2cded5
L
15615
15616
b879806f
AM
15617# Disable -Wformat by default when using gcc on mingw
15618case "${host}" in
15619 *-*-mingw32*)
15620 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15621 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15622 fi
15623 ;;
15624 *) ;;
15625esac
ce2cded5 15626
b879806f
AM
15627# Enable -Werror by default when using gcc. Turn it off for releases.
15628if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15629 ERROR_ON_WARNING=yes
15630fi
d7040cdb 15631
b879806f
AM
15632NO_WERROR=
15633if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 15634 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
b879806f
AM
15635 NO_WERROR="-Wno-error"
15636fi
3cb62297 15637
b879806f
AM
15638if test "${GCC}" = yes ; then
15639 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15640fi
67310ccd 15641
b879806f
AM
15642# Check whether --enable-build-warnings was given.
15643if test "${enable_build_warnings+set}" = set; then :
15644 enableval=$enable_build_warnings; case "${enableval}" in
15645 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15646 no) if test "${GCC}" = yes ; then
15647 WARN_CFLAGS="-w"
15648 fi;;
15649 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15650 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15651 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15652 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15653 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15654esac
15655fi
67310ccd 15656
d7040cdb 15657
b879806f
AM
15658if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15659 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15660fi
d7040cdb 15661
d7040cdb 15662
d7040cdb 15663
d7040cdb 15664
ce2cded5
L
15665
15666
6757cf57 15667
b879806f
AM
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15669$as_echo_n "checking for LC_MESSAGES... " >&6; }
15670if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15671 $as_echo_n "(cached) " >&6
15672else
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674/* end confdefs.h. */
15675#include <locale.h>
15676int
15677main ()
15678{
15679return LC_MESSAGES
15680 ;
15681 return 0;
15682}
15683_ACEOF
15684if ac_fn_c_try_link "$LINENO"; then :
15685 am_cv_val_LC_MESSAGES=yes
15686else
15687 am_cv_val_LC_MESSAGES=no
15688fi
15689rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15691fi
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15693$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15694 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 15695
b879806f 15696$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 15697
b879806f 15698 fi
ce2cded5 15699
ce2cded5 15700
b879806f 15701ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
15702
15703
b879806f 15704# PR 14072
ce2cded5 15705
ce2cded5 15706
b879806f
AM
15707if test -z "$target" ; then
15708 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15709fi
15710if test -z "$host" ; then
15711 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15712fi
d7040cdb 15713
b879806f 15714# host-specific stuff:
d7040cdb 15715
3e4fe8ac 15716ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15717# If we haven't got the data from the intl directory,
15718# assume NLS is disabled.
15719USE_NLS=no
15720LIBINTL=
15721LIBINTL_DEP=
15722INCINTL=
15723XGETTEXT=
15724GMSGFMT=
15725POSUB=
15726
15727if test -f ../intl/config.intl; then
15728 . ../intl/config.intl
15729fi
81ecdfbb
RW
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15731$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15732if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734$as_echo "no" >&6; }
d7040cdb 15735else
81ecdfbb
RW
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15737$as_echo "yes" >&6; }
d7040cdb 15738
81ecdfbb 15739$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15740
15741
81ecdfbb
RW
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15743$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15744 # Look for .po and .gmo files in the source directory.
15745 CATALOGS=
15746 XLINGUAS=
15747 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15748 # If there aren't any .gmo files the shell will give us the
15749 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15750 # weeded out.
15751 case "$cat" in *\**)
15752 continue;;
15753 esac
15754 # The quadruple backslash is collapsed to a double backslash
15755 # by the backticks, then collapsed again by the double quotes,
15756 # leaving us with one backslash in the sed expression (right
15757 # before the dot that mustn't act as a wildcard).
15758 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15759 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15760 # The user is allowed to set LINGUAS to a list of languages to
15761 # install catalogs for. If it's empty that means "all of them."
15762 if test "x$LINGUAS" = x; then
15763 CATALOGS="$CATALOGS $cat"
15764 XLINGUAS="$XLINGUAS $lang"
15765 else
15766 case "$LINGUAS" in *$lang*)
15767 CATALOGS="$CATALOGS $cat"
15768 XLINGUAS="$XLINGUAS $lang"
15769 ;;
15770 esac
15771 fi
15772 done
15773 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15775$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15776
15777
15778 DATADIRNAME=share
15779
15780 INSTOBJEXT=.mo
15781
15782 GENCAT=gencat
15783
15784 CATOBJEXT=.gmo
15785
15786fi
15787
15788 MKINSTALLDIRS=
15789 if test -n "$ac_aux_dir"; then
15790 case "$ac_aux_dir" in
15791 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15792 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15793 esac
15794 fi
15795 if test -z "$MKINSTALLDIRS"; then
15796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15797 fi
15798
15799
15800
81ecdfbb
RW
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15802$as_echo_n "checking whether NLS is requested... " >&6; }
15803 # Check whether --enable-nls was given.
15804if test "${enable_nls+set}" = set; then :
15805 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15806else
15807 USE_NLS=yes
81ecdfbb
RW
15808fi
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15811$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15812
15813
15814
15815
15816
15817
15818# Prepare PATH_SEPARATOR.
15819# The user is always right.
15820if test "${PATH_SEPARATOR+set}" != set; then
15821 echo "#! /bin/sh" >conf$$.sh
15822 echo "exit 0" >>conf$$.sh
15823 chmod +x conf$$.sh
15824 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15825 PATH_SEPARATOR=';'
15826 else
15827 PATH_SEPARATOR=:
15828 fi
15829 rm -f conf$$.sh
15830fi
15831
15832# Find out how to test for executable files. Don't use a zero-byte file,
15833# as systems may use methods other than mode bits to determine executability.
15834cat >conf$$.file <<_ASEOF
15835#! /bin/sh
15836exit 0
15837_ASEOF
15838chmod +x conf$$.file
15839if test -x conf$$.file >/dev/null 2>&1; then
15840 ac_executable_p="test -x"
15841else
15842 ac_executable_p="test -f"
15843fi
15844rm -f conf$$.file
15845
15846# Extract the first word of "msgfmt", so it can be a program name with args.
15847set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15849$as_echo_n "checking for $ac_word... " >&6; }
15850if test "${ac_cv_path_MSGFMT+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
d7040cdb
SE
15852else
15853 case "$MSGFMT" in
15854 [\\/]* | ?:[\\/]*)
15855 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15856 ;;
15857 *)
15858 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15859 for ac_dir in $PATH; do
15860 IFS="$ac_save_IFS"
15861 test -z "$ac_dir" && ac_dir=.
15862 for ac_exec_ext in '' $ac_executable_extensions; do
15863 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15864 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15865 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15866 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15867 break 2
15868 fi
15869 fi
15870 done
15871 done
15872 IFS="$ac_save_IFS"
15873 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15874 ;;
15875esac
15876fi
15877MSGFMT="$ac_cv_path_MSGFMT"
15878if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15880$as_echo "$MSGFMT" >&6; }
d7040cdb 15881else
81ecdfbb
RW
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15883$as_echo "no" >&6; }
d7040cdb
SE
15884fi
15885
15886 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15887set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15889$as_echo_n "checking for $ac_word... " >&6; }
15890if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15891 $as_echo_n "(cached) " >&6
d7040cdb
SE
15892else
15893 case $GMSGFMT in
15894 [\\/]* | ?:[\\/]*)
15895 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15896 ;;
15897 *)
15898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899for as_dir in $PATH
15900do
15901 IFS=$as_save_IFS
15902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15903 for ac_exec_ext in '' $ac_executable_extensions; do
15904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15905 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15907 break 2
15908 fi
15909done
81ecdfbb
RW
15910 done
15911IFS=$as_save_IFS
d7040cdb
SE
15912
15913 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15914 ;;
15915esac
15916fi
15917GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15918if test -n "$GMSGFMT"; then
81ecdfbb
RW
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15920$as_echo "$GMSGFMT" >&6; }
d7040cdb 15921else
81ecdfbb
RW
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15923$as_echo "no" >&6; }
20e95c23 15924fi
42ecbf5e 15925
20e95c23 15926
252b5132 15927
81ecdfbb 15928
d7040cdb
SE
15929# Prepare PATH_SEPARATOR.
15930# The user is always right.
15931if test "${PATH_SEPARATOR+set}" != set; then
15932 echo "#! /bin/sh" >conf$$.sh
15933 echo "exit 0" >>conf$$.sh
15934 chmod +x conf$$.sh
15935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15936 PATH_SEPARATOR=';'
15937 else
15938 PATH_SEPARATOR=:
15939 fi
15940 rm -f conf$$.sh
20e95c23 15941fi
252b5132 15942
d7040cdb
SE
15943# Find out how to test for executable files. Don't use a zero-byte file,
15944# as systems may use methods other than mode bits to determine executability.
15945cat >conf$$.file <<_ASEOF
15946#! /bin/sh
15947exit 0
15948_ASEOF
15949chmod +x conf$$.file
15950if test -x conf$$.file >/dev/null 2>&1; then
15951 ac_executable_p="test -x"
20e95c23 15952else
d7040cdb
SE
15953 ac_executable_p="test -f"
15954fi
15955rm -f conf$$.file
20e95c23 15956
d7040cdb
SE
15957# Extract the first word of "xgettext", so it can be a program name with args.
15958set dummy xgettext; ac_word=$2
81ecdfbb
RW
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960$as_echo_n "checking for $ac_word... " >&6; }
15961if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15962 $as_echo_n "(cached) " >&6
252b5132 15963else
d7040cdb
SE
15964 case "$XGETTEXT" in
15965 [\\/]* | ?:[\\/]*)
15966 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15967 ;;
15968 *)
15969 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15970 for ac_dir in $PATH; do
15971 IFS="$ac_save_IFS"
15972 test -z "$ac_dir" && ac_dir=.
15973 for ac_exec_ext in '' $ac_executable_extensions; do
15974 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15975 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15976 (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
15977 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15978 break 2
15979 fi
15980 fi
15981 done
15982 done
15983 IFS="$ac_save_IFS"
15984 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15985 ;;
15986esac
252b5132 15987fi
d7040cdb
SE
15988XGETTEXT="$ac_cv_path_XGETTEXT"
15989if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15991$as_echo "$XGETTEXT" >&6; }
d5fbea21 15992else
81ecdfbb
RW
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15994$as_echo "no" >&6; }
d5fbea21
DJ
15995fi
15996
d7040cdb 15997 rm -f messages.po
d5fbea21 15998
20e95c23 15999
d7040cdb
SE
16000# Prepare PATH_SEPARATOR.
16001# The user is always right.
16002if test "${PATH_SEPARATOR+set}" != set; then
16003 echo "#! /bin/sh" >conf$$.sh
16004 echo "exit 0" >>conf$$.sh
16005 chmod +x conf$$.sh
16006 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16007 PATH_SEPARATOR=';'
16008 else
16009 PATH_SEPARATOR=:
16010 fi
16011 rm -f conf$$.sh
16012fi
20e95c23 16013
d7040cdb
SE
16014# Find out how to test for executable files. Don't use a zero-byte file,
16015# as systems may use methods other than mode bits to determine executability.
16016cat >conf$$.file <<_ASEOF
16017#! /bin/sh
16018exit 0
16019_ASEOF
16020chmod +x conf$$.file
16021if test -x conf$$.file >/dev/null 2>&1; then
16022 ac_executable_p="test -x"
16023else
16024 ac_executable_p="test -f"
16025fi
16026rm -f conf$$.file
20e95c23 16027
d7040cdb
SE
16028# Extract the first word of "msgmerge", so it can be a program name with args.
16029set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16031$as_echo_n "checking for $ac_word... " >&6; }
16032if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16033 $as_echo_n "(cached) " >&6
d7040cdb
SE
16034else
16035 case "$MSGMERGE" in
16036 [\\/]* | ?:[\\/]*)
16037 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16038 ;;
16039 *)
16040 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16041 for ac_dir in $PATH; do
16042 IFS="$ac_save_IFS"
16043 test -z "$ac_dir" && ac_dir=.
16044 for ac_exec_ext in '' $ac_executable_extensions; do
16045 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16046 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16047 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16048 break 2
16049 fi
16050 fi
16051 done
16052 done
16053 IFS="$ac_save_IFS"
16054 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16055 ;;
16056esac
16057fi
16058MSGMERGE="$ac_cv_path_MSGMERGE"
16059if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16061$as_echo "$MSGMERGE" >&6; }
d7040cdb 16062else
81ecdfbb
RW
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064$as_echo "no" >&6; }
d7040cdb 16065fi
20e95c23
DJ
16066
16067
d7040cdb
SE
16068 if test "$GMSGFMT" != ":"; then
16069 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16070 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16071 : ;
16072 else
16073 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16075$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16076 GMSGFMT=":"
16077 fi
16078 fi
20e95c23 16079
d7040cdb
SE
16080 if test "$XGETTEXT" != ":"; then
16081 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16082 (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
16083 : ;
16084 else
81ecdfbb
RW
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16086$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16087 XGETTEXT=":"
16088 fi
16089 rm -f messages.po
20e95c23 16090 fi
42ecbf5e 16091
81ecdfbb 16092 ac_config_commands="$ac_config_commands default-1"
252b5132 16093
42ecbf5e 16094
252b5132 16095
42ecbf5e
DJ
16096
16097
d7040cdb 16098for ac_prog in 'bison -y' byacc
20e95c23 16099do
d7040cdb
SE
16100 # Extract the first word of "$ac_prog", so it can be a program name with args.
16101set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16103$as_echo_n "checking for $ac_word... " >&6; }
16104if test "${ac_cv_prog_YACC+set}" = set; then :
16105 $as_echo_n "(cached) " >&6
20e95c23 16106else
d7040cdb
SE
16107 if test -n "$YACC"; then
16108 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16109else
d7040cdb
SE
16110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16111for as_dir in $PATH
16112do
16113 IFS=$as_save_IFS
16114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16115 for ac_exec_ext in '' $ac_executable_extensions; do
16116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16117 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16119 break 2
16120 fi
16121done
81ecdfbb
RW
16122 done
16123IFS=$as_save_IFS
42ecbf5e 16124
42ecbf5e 16125fi
e5a52504 16126fi
d7040cdb
SE
16127YACC=$ac_cv_prog_YACC
16128if test -n "$YACC"; then
81ecdfbb
RW
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16130$as_echo "$YACC" >&6; }
42ecbf5e 16131else
81ecdfbb
RW
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16133$as_echo "no" >&6; }
42ecbf5e 16134fi
252b5132 16135
81ecdfbb 16136
d7040cdb 16137 test -n "$YACC" && break
42ecbf5e 16138done
d7040cdb 16139test -n "$YACC" || YACC="yacc"
d15b04bd 16140
d7040cdb
SE
16141for ac_prog in flex lex
16142do
16143 # Extract the first word of "$ac_prog", so it can be a program name with args.
16144set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16146$as_echo_n "checking for $ac_word... " >&6; }
16147if test "${ac_cv_prog_LEX+set}" = set; then :
16148 $as_echo_n "(cached) " >&6
d15b04bd 16149else
d7040cdb
SE
16150 if test -n "$LEX"; then
16151 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16152else
16153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154for as_dir in $PATH
16155do
16156 IFS=$as_save_IFS
16157 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16158 for ac_exec_ext in '' $ac_executable_extensions; do
16159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16160 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16162 break 2
16163 fi
16164done
81ecdfbb
RW
16165 done
16166IFS=$as_save_IFS
d7040cdb
SE
16167
16168fi
16169fi
16170LEX=$ac_cv_prog_LEX
16171if test -n "$LEX"; then
81ecdfbb
RW
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16173$as_echo "$LEX" >&6; }
d7040cdb 16174else
81ecdfbb
RW
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176$as_echo "no" >&6; }
d15b04bd 16177fi
e5a52504 16178
81ecdfbb 16179
d7040cdb
SE
16180 test -n "$LEX" && break
16181done
16182test -n "$LEX" || LEX=":"
42ecbf5e 16183
3d961d0d
AM
16184case "$LEX" in
16185 :|*"missing "*) ;;
16186 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16187%%
16188a { ECHO; }
16189b { REJECT; }
16190c { yymore (); }
16191d { yyless (1); }
16192e { yyless (input () != 0); }
16193f { unput (yytext[0]); }
16194. { BEGIN INITIAL; }
16195%%
16196#ifdef YYTEXT_POINTER
16197extern char *yytext;
d7040cdb 16198#endif
42ecbf5e 16199int
81ecdfbb 16200main (void)
42ecbf5e 16201{
81ecdfbb 16202 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16203}
16204_ACEOF
81ecdfbb
RW
16205{ { ac_try="$LEX conftest.l"
16206case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209esac
16210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16211$as_echo "$ac_try_echo"; } >&5
16212 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16213 ac_status=$?
81ecdfbb
RW
16214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16215 test $ac_status = 0; }
16216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16217$as_echo_n "checking lex output file root... " >&6; }
16218if test "${ac_cv_prog_lex_root+set}" = set; then :
16219 $as_echo_n "(cached) " >&6
42ecbf5e 16220else
42ecbf5e 16221
81ecdfbb
RW
16222if test -f lex.yy.c; then
16223 ac_cv_prog_lex_root=lex.yy
16224elif test -f lexyy.c; then
16225 ac_cv_prog_lex_root=lexyy
16226else
16227 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16228fi
42ecbf5e 16229fi
81ecdfbb
RW
16230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16231$as_echo "$ac_cv_prog_lex_root" >&6; }
16232LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16233
81ecdfbb
RW
16234if test -z "${LEXLIB+set}"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16236$as_echo_n "checking lex library... " >&6; }
16237if test "${ac_cv_lib_lex+set}" = set; then :
16238 $as_echo_n "(cached) " >&6
252b5132 16239else
20e95c23 16240
81ecdfbb
RW
16241 ac_save_LIBS=$LIBS
16242 ac_cv_lib_lex='none needed'
16243 for ac_lib in '' -lfl -ll; do
16244 LIBS="$ac_lib $ac_save_LIBS"
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246/* end confdefs.h. */
16247`cat $LEX_OUTPUT_ROOT.c`
16248_ACEOF
16249if ac_fn_c_try_link "$LINENO"; then :
16250 ac_cv_lib_lex=$ac_lib
20e95c23 16251fi
81ecdfbb
RW
16252rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 test "$ac_cv_lib_lex" != 'none needed' && break
16255 done
16256 LIBS=$ac_save_LIBS
20e95c23
DJ
16257
16258fi
81ecdfbb
RW
16259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16260$as_echo "$ac_cv_lib_lex" >&6; }
16261 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16262fi
20e95c23 16263
20e95c23 16264
81ecdfbb
RW
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16266$as_echo_n "checking whether yytext is a pointer... " >&6; }
16267if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
d7040cdb
SE
16269else
16270 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16271# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16272# not all implementations provide the %pointer and %array declarations.
16273ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16274ac_save_LIBS=$LIBS
81ecdfbb
RW
16275LIBS="$LEXLIB $ac_save_LIBS"
16276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16277/* end confdefs.h. */
16278#define YYTEXT_POINTER 1
d7040cdb 16279`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16280_ACEOF
81ecdfbb 16281if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16282 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16283fi
81ecdfbb
RW
16284rm -f core conftest.err conftest.$ac_objext \
16285 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16286LIBS=$ac_save_LIBS
d7040cdb
SE
16287
16288fi
81ecdfbb
RW
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16290$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16291if test $ac_cv_prog_lex_yytext_pointer = yes; then
16292
81ecdfbb 16293$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16294
16295fi
81ecdfbb 16296rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16297 ;;
16298esac
d7040cdb
SE
16299if test "$LEX" = :; then
16300 LEX=${am_missing_run}flex
16301fi
16302
81ecdfbb
RW
16303
16304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16305$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16306 # Check whether --enable-maintainer-mode was given.
16307if test "${enable_maintainer_mode+set}" = set; then :
16308 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16309else
d7040cdb 16310 USE_MAINTAINER_MODE=no
81ecdfbb 16311fi
d7040cdb 16312
81ecdfbb
RW
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16314$as_echo "$USE_MAINTAINER_MODE" >&6; }
16315 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16316 MAINTAINER_MODE_TRUE=
16317 MAINTAINER_MODE_FALSE='#'
16318else
16319 MAINTAINER_MODE_TRUE='#'
16320 MAINTAINER_MODE_FALSE=
252b5132 16321fi
252b5132 16322
d7040cdb
SE
16323 MAINT=$MAINTAINER_MODE_TRUE
16324
16325
81ecdfbb 16326 if false; then
d7040cdb
SE
16327 GENINSRC_NEVER_TRUE=
16328 GENINSRC_NEVER_FALSE='#'
16329else
16330 GENINSRC_NEVER_TRUE='#'
16331 GENINSRC_NEVER_FALSE=
252b5132
RH
16332fi
16333
81ecdfbb
RW
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16335$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16336if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
eccbf555
AM
16338else
16339 echo abfoo >t1
16340 echo cdfoo >t2
16341 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16342 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16343 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16344 :
16345 else
16346 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16347 fi
16348 fi
16349 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16350 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16351 :
16352 else
16353 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16354 fi
16355 fi
16356 rm t1 t2
16357
16358fi
81ecdfbb
RW
16359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16360$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16361do_compare="$gcc_cv_prog_cmp_skip"
16362
16363
d7040cdb
SE
16364
16365. ${srcdir}/configure.host
16366
16367
16368
16369
252b5132
RH
16370
16371
6738cadc 16372
b27caf75 16373
58797674 16374for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16375do :
16376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16377ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16378eval as_val=\$$as_ac_Header
16379 if test "x$as_val" = x""yes; then :
42ecbf5e 16380 cat >>confdefs.h <<_ACEOF
81ecdfbb 16381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16382_ACEOF
16383
16384fi
16385
252b5132
RH
16386done
16387
5d3236ee
DK
16388for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16389do :
16390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16391ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16392eval as_val=\$$as_ac_Header
16393 if test "x$as_val" = x""yes; then :
16394 cat >>confdefs.h <<_ACEOF
16395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16396_ACEOF
16397
16398fi
16399
16400done
16401
208a4923
NC
16402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16403$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16404if test "${gcc_cv_header_string+set}" = set; then :
16405 $as_echo_n "(cached) " >&6
16406else
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h. */
16409#include <string.h>
16410#include <strings.h>
16411int
16412main ()
16413{
16414
16415 ;
16416 return 0;
16417}
16418_ACEOF
16419if ac_fn_c_try_compile "$LINENO"; then :
16420 gcc_cv_header_string=yes
16421else
16422 gcc_cv_header_string=no
16423fi
16424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425fi
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16427$as_echo "$gcc_cv_header_string" >&6; }
16428if test $gcc_cv_header_string = yes; then
16429
16430$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16431
16432fi
16433
44350750 16434for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16435do :
16436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16437ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16438eval as_val=\$$as_ac_var
16439 if test "x$as_val" = x""yes; then :
42ecbf5e 16440 cat >>confdefs.h <<_ACEOF
81ecdfbb 16441#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16442_ACEOF
252b5132 16443
252b5132
RH
16444fi
16445done
16446
5d3236ee
DK
16447for ac_func in open lseek close
16448do :
16449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16451eval as_val=\$$as_ac_var
16452 if test "x$as_val" = x""yes; then :
16453 cat >>confdefs.h <<_ACEOF
16454#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455_ACEOF
16456
16457fi
16458done
16459
252b5132 16460ac_header_dirent=no
42ecbf5e 16461for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16462 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16464$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16466 $as_echo_n "(cached) " >&6
16467else
16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16469/* end confdefs.h. */
252b5132
RH
16470#include <sys/types.h>
16471#include <$ac_hdr>
42ecbf5e
DJ
16472
16473int
16474main ()
16475{
16476if ((DIR *) 0)
16477return 0;
16478 ;
16479 return 0;
16480}
16481_ACEOF
81ecdfbb 16482if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16483 eval "$as_ac_Header=yes"
16484else
81ecdfbb 16485 eval "$as_ac_Header=no"
42ecbf5e 16486fi
81ecdfbb 16487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16488fi
81ecdfbb
RW
16489eval ac_res=\$$as_ac_Header
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16491$as_echo "$ac_res" >&6; }
16492eval as_val=\$$as_ac_Header
16493 if test "x$as_val" = x""yes; then :
42ecbf5e 16494 cat >>confdefs.h <<_ACEOF
81ecdfbb 16495#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16496_ACEOF
16497
16498ac_header_dirent=$ac_hdr; break
d15b04bd 16499fi
42ecbf5e 16500
d15b04bd
L
16501done
16502# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16503if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16505$as_echo_n "checking for library containing opendir... " >&6; }
16506if test "${ac_cv_search_opendir+set}" = set; then :
16507 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16508else
16509 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16511/* end confdefs.h. */
16512
81ecdfbb
RW
16513/* Override any GCC internal prototype to avoid an error.
16514 Use char because int might match the return type of a GCC
16515 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16516#ifdef __cplusplus
16517extern "C"
16518#endif
42ecbf5e
DJ
16519char opendir ();
16520int
16521main ()
16522{
81ecdfbb 16523return opendir ();
42ecbf5e
DJ
16524 ;
16525 return 0;
16526}
16527_ACEOF
81ecdfbb
RW
16528for ac_lib in '' dir; do
16529 if test -z "$ac_lib"; then
16530 ac_res="none required"
16531 else
16532 ac_res=-l$ac_lib
42ecbf5e 16533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16534 fi
16535 if ac_fn_c_try_link "$LINENO"; then :
16536 ac_cv_search_opendir=$ac_res
16537fi
16538rm -f core conftest.err conftest.$ac_objext \
16539 conftest$ac_exeext
16540 if test "${ac_cv_search_opendir+set}" = set; then :
16541 break
16542fi
16543done
16544if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16545
42ecbf5e 16546else
81ecdfbb 16547 ac_cv_search_opendir=no
252b5132 16548fi
81ecdfbb 16549rm conftest.$ac_ext
42ecbf5e
DJ
16550LIBS=$ac_func_search_save_LIBS
16551fi
81ecdfbb
RW
16552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16553$as_echo "$ac_cv_search_opendir" >&6; }
16554ac_res=$ac_cv_search_opendir
16555if test "$ac_res" != no; then :
16556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16557
d15b04bd 16558fi
252b5132
RH
16559
16560else
81ecdfbb
RW
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16562$as_echo_n "checking for library containing opendir... " >&6; }
16563if test "${ac_cv_search_opendir+set}" = set; then :
16564 $as_echo_n "(cached) " >&6
252b5132 16565else
42ecbf5e 16566 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16568/* end confdefs.h. */
16569
81ecdfbb
RW
16570/* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16573#ifdef __cplusplus
16574extern "C"
16575#endif
42ecbf5e
DJ
16576char opendir ();
16577int
16578main ()
16579{
81ecdfbb 16580return opendir ();
42ecbf5e
DJ
16581 ;
16582 return 0;
16583}
16584_ACEOF
81ecdfbb
RW
16585for ac_lib in '' x; do
16586 if test -z "$ac_lib"; then
16587 ac_res="none required"
16588 else
16589 ac_res=-l$ac_lib
42ecbf5e 16590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16591 fi
16592 if ac_fn_c_try_link "$LINENO"; then :
16593 ac_cv_search_opendir=$ac_res
16594fi
16595rm -f core conftest.err conftest.$ac_objext \
16596 conftest$ac_exeext
16597 if test "${ac_cv_search_opendir+set}" = set; then :
16598 break
16599fi
16600done
16601if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16602
42ecbf5e 16603else
81ecdfbb 16604 ac_cv_search_opendir=no
252b5132 16605fi
81ecdfbb 16606rm conftest.$ac_ext
42ecbf5e 16607LIBS=$ac_func_search_save_LIBS
252b5132 16608fi
81ecdfbb
RW
16609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16610$as_echo "$ac_cv_search_opendir" >&6; }
16611ac_res=$ac_cv_search_opendir
16612if test "$ac_res" != no; then :
16613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16614
d15b04bd 16615fi
252b5132
RH
16616
16617fi
16618
16619
2aec968d
L
16620for ac_header in stdlib.h unistd.h
16621do :
16622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16623ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16624eval as_val=\$$as_ac_Header
16625 if test "x$as_val" = x""yes; then :
16626 cat >>confdefs.h <<_ACEOF
16627#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16628_ACEOF
16629
16630fi
16631
16632done
16633
16634for ac_func in getpagesize
16635do :
16636 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16637if test "x$ac_cv_func_getpagesize" = x""yes; then :
16638 cat >>confdefs.h <<_ACEOF
16639#define HAVE_GETPAGESIZE 1
16640_ACEOF
16641
16642fi
16643done
16644
16645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16646$as_echo_n "checking for working mmap... " >&6; }
16647if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16649else
16650 if test "$cross_compiling" = yes; then :
16651 ac_cv_func_mmap_fixed_mapped=no
16652else
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654/* end confdefs.h. */
16655$ac_includes_default
16656/* malloc might have been renamed as rpl_malloc. */
16657#undef malloc
16658
16659/* Thanks to Mike Haertel and Jim Avera for this test.
16660 Here is a matrix of mmap possibilities:
16661 mmap private not fixed
16662 mmap private fixed at somewhere currently unmapped
16663 mmap private fixed at somewhere already mapped
16664 mmap shared not fixed
16665 mmap shared fixed at somewhere currently unmapped
16666 mmap shared fixed at somewhere already mapped
16667 For private mappings, we should verify that changes cannot be read()
16668 back from the file, nor mmap's back from the file at a different
16669 address. (There have been systems where private was not correctly
16670 implemented like the infamous i386 svr4.0, and systems where the
16671 VM page cache was not coherent with the file system buffer cache
16672 like early versions of FreeBSD and possibly contemporary NetBSD.)
16673 For shared mappings, we should conversely verify that changes get
16674 propagated back to all the places they're supposed to be.
16675
16676 Grep wants private fixed already mapped.
16677 The main things grep needs to know about mmap are:
16678 * does it exist and is it safe to write into the mmap'd area
16679 * how to use it (BSD variants) */
16680
16681#include <fcntl.h>
16682#include <sys/mman.h>
16683
16684#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16685char *malloc ();
16686#endif
16687
16688/* This mess was copied from the GNU getpagesize.h. */
16689#ifndef HAVE_GETPAGESIZE
16690/* Assume that all systems that can run configure have sys/param.h. */
16691# ifndef HAVE_SYS_PARAM_H
16692# define HAVE_SYS_PARAM_H 1
16693# endif
16694
16695# ifdef _SC_PAGESIZE
16696# define getpagesize() sysconf(_SC_PAGESIZE)
16697# else /* no _SC_PAGESIZE */
16698# ifdef HAVE_SYS_PARAM_H
16699# include <sys/param.h>
16700# ifdef EXEC_PAGESIZE
16701# define getpagesize() EXEC_PAGESIZE
16702# else /* no EXEC_PAGESIZE */
16703# ifdef NBPG
16704# define getpagesize() NBPG * CLSIZE
16705# ifndef CLSIZE
16706# define CLSIZE 1
16707# endif /* no CLSIZE */
16708# else /* no NBPG */
16709# ifdef NBPC
16710# define getpagesize() NBPC
16711# else /* no NBPC */
16712# ifdef PAGESIZE
16713# define getpagesize() PAGESIZE
16714# endif /* PAGESIZE */
16715# endif /* no NBPC */
16716# endif /* no NBPG */
16717# endif /* no EXEC_PAGESIZE */
16718# else /* no HAVE_SYS_PARAM_H */
16719# define getpagesize() 8192 /* punt totally */
16720# endif /* no HAVE_SYS_PARAM_H */
16721# endif /* no _SC_PAGESIZE */
16722
16723#endif /* no HAVE_GETPAGESIZE */
16724
16725int
16726main ()
16727{
16728 char *data, *data2, *data3;
16729 int i, pagesize;
16730 int fd;
16731
16732 pagesize = getpagesize ();
16733
16734 /* First, make a file with some known garbage in it. */
16735 data = (char *) malloc (pagesize);
16736 if (!data)
16737 return 1;
16738 for (i = 0; i < pagesize; ++i)
16739 *(data + i) = rand ();
16740 umask (0);
16741 fd = creat ("conftest.mmap", 0600);
16742 if (fd < 0)
16743 return 1;
16744 if (write (fd, data, pagesize) != pagesize)
16745 return 1;
16746 close (fd);
16747
16748 /* Next, try to mmap the file at a fixed address which already has
16749 something else allocated at it. If we can, also make sure that
16750 we see the same garbage. */
16751 fd = open ("conftest.mmap", O_RDWR);
16752 if (fd < 0)
16753 return 1;
16754 data2 = (char *) malloc (2 * pagesize);
16755 if (!data2)
16756 return 1;
16757 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16758 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16759 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16760 return 1;
16761 for (i = 0; i < pagesize; ++i)
16762 if (*(data + i) != *(data2 + i))
16763 return 1;
16764
16765 /* Finally, make sure that changes to the mapped area do not
16766 percolate back to the file as seen by read(). (This is a bug on
16767 some variants of i386 svr4.0.) */
16768 for (i = 0; i < pagesize; ++i)
16769 *(data2 + i) = *(data2 + i) + 1;
16770 data3 = (char *) malloc (pagesize);
16771 if (!data3)
16772 return 1;
16773 if (read (fd, data3, pagesize) != pagesize)
16774 return 1;
16775 for (i = 0; i < pagesize; ++i)
16776 if (*(data + i) != *(data3 + i))
16777 return 1;
16778 close (fd);
16779 return 0;
16780}
16781_ACEOF
16782if ac_fn_c_try_run "$LINENO"; then :
16783 ac_cv_func_mmap_fixed_mapped=yes
16784else
16785 ac_cv_func_mmap_fixed_mapped=no
16786fi
16787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16788 conftest.$ac_objext conftest.beam conftest.$ac_ext
16789fi
16790
16791fi
16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16793$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16794if test $ac_cv_func_mmap_fixed_mapped = yes; then
16795
16796$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16797
16798fi
16799rm -f conftest.mmap
16800
16801
5d3236ee
DK
16802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16803$as_echo_n "checking for library containing dlopen... " >&6; }
16804if test "${ac_cv_search_dlopen+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
16806else
16807 ac_func_search_save_LIBS=$LIBS
16808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809/* end confdefs.h. */
16810
16811/* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16814#ifdef __cplusplus
16815extern "C"
16816#endif
16817char dlopen ();
16818int
16819main ()
16820{
16821return dlopen ();
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826for ac_lib in '' dl; do
16827 if test -z "$ac_lib"; then
16828 ac_res="none required"
16829 else
16830 ac_res=-l$ac_lib
16831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16832 fi
16833 if ac_fn_c_try_link "$LINENO"; then :
16834 ac_cv_search_dlopen=$ac_res
16835fi
16836rm -f core conftest.err conftest.$ac_objext \
16837 conftest$ac_exeext
16838 if test "${ac_cv_search_dlopen+set}" = set; then :
16839 break
16840fi
16841done
16842if test "${ac_cv_search_dlopen+set}" = set; then :
16843
16844else
16845 ac_cv_search_dlopen=no
16846fi
16847rm conftest.$ac_ext
16848LIBS=$ac_func_search_save_LIBS
16849fi
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16851$as_echo "$ac_cv_search_dlopen" >&6; }
16852ac_res=$ac_cv_search_dlopen
16853if test "$ac_res" != no; then :
16854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16855
3917d5d5
DK
16856fi
16857
b879806f 16858 if test x$plugins = xyes; then
5d3236ee
DK
16859 ENABLE_PLUGINS_TRUE=
16860 ENABLE_PLUGINS_FALSE='#'
16861else
16862 ENABLE_PLUGINS_TRUE='#'
16863 ENABLE_PLUGINS_FALSE=
16864fi
16865
16866
02ecc8e9
L
16867# Check whether --enable-initfini-array was given.
16868if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
16869 enableval=$enable_initfini_array; case "${enableval}" in
16870 yes|no) ;;
16871 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16872 esac
02ecc8e9 16873else
26e3a0c9 16874 enable_initfini_array=yes
02ecc8e9
L
16875fi
16876
16877
16878if test $enable_initfini_array = yes; then
16879
16880$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16881
16882fi
16883
81ecdfbb
RW
16884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16885$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16886if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16887 $as_echo_n "(cached) " >&6
34875e64 16888else
81ecdfbb 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16890/* end confdefs.h. */
34875e64 16891#include <unistd.h>
42ecbf5e
DJ
16892int
16893main ()
16894{
34875e64 16895extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16896 ;
16897 return 0;
16898}
16899_ACEOF
81ecdfbb 16900if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16901 ld_cv_decl_getopt_unistd_h=yes
16902else
81ecdfbb 16903 ld_cv_decl_getopt_unistd_h=no
34875e64 16904fi
81ecdfbb 16905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16906fi
16907
81ecdfbb
RW
16908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16909$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16910if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16911
81ecdfbb 16912$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16913
16914fi
42ecbf5e 16915
252b5132
RH
16916
16917case "${host}" in
a8100d5b 16918*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16919
81ecdfbb 16920$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16921 ;;
16922esac
16923
81ecdfbb
RW
16924ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16925if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16926 ac_have_decl=1
252b5132 16927else
81ecdfbb
RW
16928 ac_have_decl=0
16929fi
502bdb00 16930
81ecdfbb
RW
16931cat >>confdefs.h <<_ACEOF
16932#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16933_ACEOF
81ecdfbb
RW
16934ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16935if test "x$ac_cv_have_decl_free" = x""yes; then :
16936 ac_have_decl=1
252b5132 16937else
81ecdfbb 16938 ac_have_decl=0
252b5132
RH
16939fi
16940
502bdb00 16941cat >>confdefs.h <<_ACEOF
81ecdfbb 16942#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16943_ACEOF
81ecdfbb
RW
16944ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16945if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16946 ac_have_decl=1
16947else
16948 ac_have_decl=0
16949fi
42ecbf5e 16950
81ecdfbb
RW
16951cat >>confdefs.h <<_ACEOF
16952#define HAVE_DECL_SBRK $ac_have_decl
16953_ACEOF
16954ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16955if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16956 ac_have_decl=1
16957else
16958 ac_have_decl=0
16959fi
502bdb00 16960
81ecdfbb
RW
16961cat >>confdefs.h <<_ACEOF
16962#define HAVE_DECL_GETENV $ac_have_decl
16963_ACEOF
16964ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16965if test "x$ac_cv_have_decl_environ" = x""yes; then :
16966 ac_have_decl=1
502bdb00 16967else
81ecdfbb
RW
16968 ac_have_decl=0
16969fi
16970
16971cat >>confdefs.h <<_ACEOF
16972#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16973_ACEOF
252b5132 16974
252b5132 16975
597e2591
ILT
16976# When converting linker scripts into strings for use in emulation
16977# files, use astring.sed if the compiler supports ANSI string
16978# concatenation, or ostring.sed otherwise. This is to support the
16979# broken Microsoft MSVC compiler, which limits the length of string
16980# constants, while still supporting pre-ANSI compilers which do not
16981# support string concatenation.
81ecdfbb
RW
16982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16983$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16984if test "${ld_cv_string_concatenation+set}" = set; then :
16985 $as_echo_n "(cached) " >&6
42ecbf5e 16986else
81ecdfbb 16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16988/* end confdefs.h. */
81ecdfbb 16989
314e9a4e
L
16990int
16991main ()
16992{
81ecdfbb 16993char *a = "a" "a";
314e9a4e
L
16994 ;
16995 return 0;
16996}
16997_ACEOF
81ecdfbb
RW
16998if ac_fn_c_try_compile "$LINENO"; then :
16999 ld_cv_string_concatenation=yes
314e9a4e 17000else
81ecdfbb 17001 ld_cv_string_concatenation=no
314e9a4e 17002fi
81ecdfbb 17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17004fi
81ecdfbb
RW
17005
17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17007$as_echo "$ld_cv_string_concatenation" >&6; }
17008if test "$ld_cv_string_concatenation" = "yes"; then
17009 STRINGIFY=astring.sed
17010else
17011 STRINGIFY=ostring.sed
314e9a4e 17012fi
81ecdfbb
RW
17013
17014
17015# target-specific stuff:
17016
17017all_targets=
17018EMUL=
17019all_emuls=
17020all_emul_extras=
17021all_libpath=
17022
17023rm -f tdirs
17024
bf9ef603 17025# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17026# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17027if test x${want64} = xfalse; then
17028 # The cast to long int works around a bug in the HP C Compiler
17029# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17030# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17031# This bug is HP SR number 8606223364.
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17033$as_echo_n "checking size of void *... " >&6; }
17034if test "${ac_cv_sizeof_void_p+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17036else
17037 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17038
17039else
17040 if test "$ac_cv_type_void_p" = yes; then
17041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17043{ as_fn_set_status 77
17044as_fn_error "cannot compute sizeof (void *)
17045See \`config.log' for more details." "$LINENO" 5; }; }
17046 else
17047 ac_cv_sizeof_void_p=0
17048 fi
17049fi
17050
17051fi
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17053$as_echo "$ac_cv_sizeof_void_p" >&6; }
17054
17055
17056
17057cat >>confdefs.h <<_ACEOF
17058#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17059_ACEOF
17060
17061
17062 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17063 want64=true
17064 fi
17065fi
17066
c58212ea
L
17067elf_list_options=FALSE
17068elf_shlib_list_options=FALSE
17069elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17070for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17071do
17072 if test "$targ_alias" = "all"; then
17073 all_targets=true
82d8e420
L
17074 elf_list_options=TRUE
17075 elf_shlib_list_options=TRUE
17076 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17077 else
17078 # Canonicalize the secondary target names.
17079 result=`$ac_config_sub $targ_alias 2>/dev/null`
17080 if test -n "$result"; then
17081 targ=$result
17082 else
17083 targ=$targ_alias
17084 fi
17085
17086 . ${srcdir}/configure.tgt
17087
17088 if test "$targ" = "$target"; then
17089 EMUL=$targ_emul
17090 fi
17091
17092 if test x${want64} = xfalse; then
17093 . ${srcdir}/../bfd/config.bfd
17094 fi
17095
17096 if test x${want64} = xtrue; then
17097 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17098 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17099 fi
17100
17101 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17102 case " $all_emuls " in
8c3fff59
AM
17103 *" e${i}.o "*) ;;
17104 *)
17105 all_emuls="$all_emuls e${i}.o"
17106 eval result=\$tdir_$i
17107 test -z "$result" && result=$targ_alias
17108 echo tdir_$i=$result >> tdirs
c58212ea
L
17109 case "${i}" in
17110 *elf*)
17111 elf_list_options=TRUE
68880f31
CLT
17112 ;;
17113 *)
17114 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17115 elf_list_options=TRUE
17116 fi
17117 ;;
17118 esac
17119 if test "$elf_list_options" = "TRUE"; then
c58212ea
L
17120 . ${srcdir}/emulparams/${i}.sh
17121 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17122 elf_shlib_list_options=TRUE
17123 fi
17124 if test x${PLT_UNWIND} = xyes; then
17125 elf_plt_unwind_list_options=TRUE
17126 fi
68880f31 17127 fi
c58212ea 17128 ;;
81ecdfbb
RW
17129 esac
17130 done
17131
17132 for i in $targ_emul $targ_extra_libpath; do
17133 case " $all_libpath " in
17134 *" ${i} "*) ;;
17135 *)
17136 if test -z "$all_libpath"; then
17137 all_libpath=${i}
17138 else
17139 all_libpath="$all_libpath ${i}"
17140 fi
17141 ;;
17142 esac
17143 done
17144
17145 for i in $targ_extra_ofiles; do
17146 case " $all_emul_extras " in
17147 *" ${i} "*) ;;
17148 *)
17149 all_emul_extras="$all_emul_extras ${i}"
17150 ;;
17151 esac
17152 done
5063daf7 17153
81ecdfbb
RW
17154 fi
17155done
17156
621ff761 17157if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17158
17159$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17160
17161fi
17162
647e4d46
L
17163if test "${ac_default_ld_z_relro}" = unset; then
17164 ac_default_ld_z_relro=0
17165fi
17166
17167cat >>confdefs.h <<_ACEOF
17168#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17169_ACEOF
17170
17171
81ecdfbb
RW
17172
17173
c58212ea
L
17174
17175
17176
81ecdfbb
RW
17177TDIRS=tdirs
17178
17179
17180if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17181 if test x${want64} = xtrue; then
17182 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17183 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17184 else
17185 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17186 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17187 fi
42ecbf5e
DJ
17188else
17189 EMULATION_OFILES=$all_emuls
17190 EMUL_EXTRA_OFILES=$all_emul_extras
17191fi
17192
17193
17194
17195
17196EMULATION_LIBPATH=$all_libpath
17197
17198
17199if test x${enable_static} = xno; then
17200 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17201else
17202 TESTBFDLIB="../bfd/.libs/libbfd.a"
17203fi
17204
17205
17206target_vendor=${target_vendor=$host_vendor}
17207case "$target_vendor" in
17208 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17209 *) EXTRA_SHLIB_EXTENSION= ;;
17210esac
17211
17212case "$target_os" in
17213 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17214esac
17215
17216if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17217
17218cat >>confdefs.h <<_ACEOF
17219#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17220_ACEOF
17221
17222fi
17223
108a6f8e
CD
17224
17225
17226
17227
31dd3154 17228
81ecdfbb 17229ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17230
42ecbf5e
DJ
17231cat >confcache <<\_ACEOF
17232# This file is a shell script that caches the results of configure
17233# tests run on this system so they can be shared between configure
17234# scripts and configure runs, see configure's option --config-cache.
17235# It is not useful on other systems. If it contains results you don't
17236# want to keep, you may remove or edit it.
17237#
17238# config.status only pays attention to the cache file if you give it
17239# the --recheck option to rerun configure.
17240#
17241# `ac_cv_env_foo' variables (set or unset) will be overridden when
17242# loading this file, other *unset* `ac_cv_foo' will be assigned the
17243# following values.
17244
17245_ACEOF
17246
17247# The following way of writing the cache mishandles newlines in values,
17248# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17249# So, we kill variables containing newlines.
42ecbf5e
DJ
17250# Ultrix sh set writes to stderr and can't be redirected directly,
17251# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17252(
17253 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17254 eval ac_val=\$$ac_var
17255 case $ac_val in #(
17256 *${as_nl}*)
17257 case $ac_var in #(
17258 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17260 esac
17261 case $ac_var in #(
17262 _ | IFS | as_nl) ;; #(
17263 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17264 *) { eval $ac_var=; unset $ac_var;} ;;
17265 esac ;;
17266 esac
17267 done
17268
42ecbf5e 17269 (set) 2>&1 |
81ecdfbb
RW
17270 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17271 *${as_nl}ac_space=\ *)
17272 # `set' does not quote correctly, so add quotes: double-quote
17273 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17274 sed -n \
17275 "s/'/'\\\\''/g;
17276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17277 ;; #(
42ecbf5e
DJ
17278 *)
17279 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17281 ;;
81ecdfbb
RW
17282 esac |
17283 sort
17284) |
42ecbf5e 17285 sed '
81ecdfbb 17286 /^ac_cv_env_/b end
42ecbf5e 17287 t clear
81ecdfbb 17288 :clear
42ecbf5e
DJ
17289 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17290 t end
81ecdfbb
RW
17291 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17292 :end' >>confcache
17293if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17294 if test -w "$cache_file"; then
17295 test "x$cache_file" != "x/dev/null" &&
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17297$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17298 cat confcache >$cache_file
17299 else
81ecdfbb
RW
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17301$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17302 fi
17303fi
17304rm -f confcache
17305
17306test "x$prefix" = xNONE && prefix=$ac_default_prefix
17307# Let make expand exec_prefix.
17308test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17309
42ecbf5e
DJ
17310DEFS=-DHAVE_CONFIG_H
17311
17312ac_libobjs=
17313ac_ltlibobjs=
17314for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17315 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17316 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17317 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17318 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17319 # will be set to the directory where LIBOBJS objects are built.
17320 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17321 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17322done
17323LIBOBJS=$ac_libobjs
17324
17325LTLIBOBJS=$ac_ltlibobjs
17326
17327
17328if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17329 as_fn_error "conditional \"AMDEP\" was never defined.
17330Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17331fi
17332if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17333 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17334Usually this means the macro was only invoked conditionally." "$LINENO" 5
17335fi
17336 if test -n "$EXEEXT"; then
17337 am__EXEEXT_TRUE=
17338 am__EXEEXT_FALSE='#'
17339else
17340 am__EXEEXT_TRUE='#'
17341 am__EXEEXT_FALSE=
42ecbf5e 17342fi
81ecdfbb 17343
64ac50ac
RW
17344if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17345 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17346Usually this means the macro was only invoked conditionally." "$LINENO" 5
17347fi
3cb62297
L
17348if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17349 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17350Usually this means the macro was only invoked conditionally." "$LINENO" 5
17351fi
42ecbf5e 17352if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17353 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17354Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17355fi
d5fbea21 17356if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17357 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17358Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17359fi
5d3236ee
DK
17360if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17361 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17362Usually this means the macro was only invoked conditionally." "$LINENO" 5
17363fi
42ecbf5e
DJ
17364
17365: ${CONFIG_STATUS=./config.status}
81ecdfbb 17366ac_write_fail=0
42ecbf5e
DJ
17367ac_clean_files_save=$ac_clean_files
17368ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17369{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17370$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17371as_write_fail=0
17372cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17373#! $SHELL
17374# Generated by $as_me.
17375# Run this file to recreate the current configuration.
17376# Compiler output produced by configure, useful for debugging
17377# configure, is in config.log if it exists.
17378
17379debug=false
17380ac_cs_recheck=false
17381ac_cs_silent=false
42ecbf5e 17382
81ecdfbb
RW
17383SHELL=\${CONFIG_SHELL-$SHELL}
17384export SHELL
17385_ASEOF
17386cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17387## -------------------- ##
17388## M4sh Initialization. ##
17389## -------------------- ##
42ecbf5e 17390
81ecdfbb
RW
17391# Be more Bourne compatible
17392DUALCASE=1; export DUALCASE # for MKS sh
17393if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17394 emulate sh
17395 NULLCMD=:
81ecdfbb 17396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17397 # is contrary to our usage. Disable this feature.
17398 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17399 setopt NO_GLOB_SUBST
17400else
17401 case `(set -o) 2>/dev/null` in #(
17402 *posix*) :
17403 set -o posix ;; #(
17404 *) :
17405 ;;
17406esac
42ecbf5e 17407fi
42ecbf5e 17408
81ecdfbb
RW
17409
17410as_nl='
17411'
17412export as_nl
17413# Printing a long string crashes Solaris 7 /usr/bin/printf.
17414as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17415as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17416as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17417# Prefer a ksh shell builtin over an external printf program on Solaris,
17418# but without wasting forks for bash or zsh.
17419if test -z "$BASH_VERSION$ZSH_VERSION" \
17420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17421 as_echo='print -r --'
17422 as_echo_n='print -rn --'
17423elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17424 as_echo='printf %s\n'
17425 as_echo_n='printf %s'
17426else
17427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17429 as_echo_n='/usr/ucb/echo -n'
17430 else
17431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17432 as_echo_n_body='eval
17433 arg=$1;
17434 case $arg in #(
17435 *"$as_nl"*)
17436 expr "X$arg" : "X\\(.*\\)$as_nl";
17437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17438 esac;
17439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17440 '
17441 export as_echo_n_body
17442 as_echo_n='sh -c $as_echo_n_body as_echo'
17443 fi
17444 export as_echo_body
17445 as_echo='sh -c $as_echo_body as_echo'
17446fi
17447
17448# The user is always right.
17449if test "${PATH_SEPARATOR+set}" != set; then
17450 PATH_SEPARATOR=:
17451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17453 PATH_SEPARATOR=';'
17454 }
42ecbf5e
DJ
17455fi
17456
17457
81ecdfbb
RW
17458# IFS
17459# We need space, tab and new line, in precisely that order. Quoting is
17460# there to prevent editors from complaining about space-tab.
17461# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17462# splitting by setting IFS to empty value.)
17463IFS=" "" $as_nl"
17464
17465# Find who we are. Look in the path if we contain no directory separator.
17466case $0 in #((
17467 *[\\/]* ) as_myself=$0 ;;
17468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469for as_dir in $PATH
17470do
17471 IFS=$as_save_IFS
17472 test -z "$as_dir" && as_dir=.
17473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17474 done
17475IFS=$as_save_IFS
17476
17477 ;;
17478esac
17479# We did not find ourselves, most probably we were run as `sh COMMAND'
17480# in which case we are not to be found in the path.
17481if test "x$as_myself" = x; then
17482 as_myself=$0
17483fi
17484if test ! -f "$as_myself"; then
17485 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17486 exit 1
17487fi
17488
17489# Unset variables that we do not need and which cause bugs (e.g. in
17490# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17491# suppresses any "Segmentation fault" message there. '((' could
17492# trigger a bug in pdksh 5.2.14.
17493for as_var in BASH_ENV ENV MAIL MAILPATH
17494do eval test x\${$as_var+set} = xset \
17495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17496done
42ecbf5e
DJ
17497PS1='$ '
17498PS2='> '
17499PS4='+ '
17500
17501# NLS nuisances.
81ecdfbb
RW
17502LC_ALL=C
17503export LC_ALL
17504LANGUAGE=C
17505export LANGUAGE
17506
17507# CDPATH.
17508(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17509
17510
17511# as_fn_error ERROR [LINENO LOG_FD]
17512# ---------------------------------
17513# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17514# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17515# script with status $?, using 1 if that was 0.
17516as_fn_error ()
17517{
17518 as_status=$?; test $as_status -eq 0 && as_status=1
17519 if test "$3"; then
17520 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17521 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17522 fi
81ecdfbb
RW
17523 $as_echo "$as_me: error: $1" >&2
17524 as_fn_exit $as_status
17525} # as_fn_error
17526
17527
17528# as_fn_set_status STATUS
17529# -----------------------
17530# Set $? to STATUS, without forking.
17531as_fn_set_status ()
17532{
17533 return $1
17534} # as_fn_set_status
17535
17536# as_fn_exit STATUS
17537# -----------------
17538# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17539as_fn_exit ()
17540{
17541 set +e
17542 as_fn_set_status $1
17543 exit $1
17544} # as_fn_exit
17545
17546# as_fn_unset VAR
17547# ---------------
17548# Portably unset VAR.
17549as_fn_unset ()
17550{
17551 { eval $1=; unset $1;}
17552}
17553as_unset=as_fn_unset
17554# as_fn_append VAR VALUE
17555# ----------------------
17556# Append the text in VALUE to the end of the definition contained in VAR. Take
17557# advantage of any shell optimizations that allow amortized linear growth over
17558# repeated appends, instead of the typical quadratic growth present in naive
17559# implementations.
17560if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17561 eval 'as_fn_append ()
17562 {
17563 eval $1+=\$2
17564 }'
17565else
17566 as_fn_append ()
17567 {
17568 eval $1=\$$1\$2
17569 }
17570fi # as_fn_append
17571
17572# as_fn_arith ARG...
17573# ------------------
17574# Perform arithmetic evaluation on the ARGs, and store the result in the
17575# global $as_val. Take advantage of shells that can avoid forks. The arguments
17576# must be portable across $(()) and expr.
17577if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17578 eval 'as_fn_arith ()
17579 {
17580 as_val=$(( $* ))
17581 }'
17582else
17583 as_fn_arith ()
17584 {
17585 as_val=`expr "$@" || test $? -eq 1`
17586 }
17587fi # as_fn_arith
17588
42ecbf5e 17589
81ecdfbb
RW
17590if expr a : '\(a\)' >/dev/null 2>&1 &&
17591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17592 as_expr=expr
17593else
17594 as_expr=false
17595fi
17596
81ecdfbb 17597if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17598 as_basename=basename
17599else
17600 as_basename=false
17601fi
17602
81ecdfbb
RW
17603if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17604 as_dirname=dirname
17605else
17606 as_dirname=false
17607fi
42ecbf5e 17608
81ecdfbb 17609as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17611 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17613$as_echo X/"$0" |
17614 sed '/^.*\/\([^/][^/]*\)\/*$/{
17615 s//\1/
17616 q
17617 }
17618 /^X\/\(\/\/\)$/{
17619 s//\1/
17620 q
17621 }
17622 /^X\/\(\/\).*/{
17623 s//\1/
17624 q
17625 }
17626 s/.*/./; q'`
42ecbf5e 17627
42ecbf5e
DJ
17628# Avoid depending upon Character Ranges.
17629as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17630as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17631as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17632as_cr_digits='0123456789'
17633as_cr_alnum=$as_cr_Letters$as_cr_digits
17634
81ecdfbb
RW
17635ECHO_C= ECHO_N= ECHO_T=
17636case `echo -n x` in #(((((
17637-n*)
17638 case `echo 'xy\c'` in
17639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17640 xy) ECHO_C='\c';;
17641 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17642 ECHO_T=' ';;
17643 esac;;
17644*)
17645 ECHO_N='-n';;
42ecbf5e 17646esac
252b5132 17647
81ecdfbb
RW
17648rm -f conf$$ conf$$.exe conf$$.file
17649if test -d conf$$.dir; then
17650 rm -f conf$$.dir/conf$$.file
42ecbf5e 17651else
81ecdfbb
RW
17652 rm -f conf$$.dir
17653 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17654fi
81ecdfbb
RW
17655if (echo >conf$$.file) 2>/dev/null; then
17656 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17657 as_ln_s='ln -s'
81ecdfbb
RW
17658 # ... but there are two gotchas:
17659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17661 # In both cases, we have to default to `cp -p'.
17662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17663 as_ln_s='cp -p'
17664 elif ln conf$$.file conf$$ 2>/dev/null; then
17665 as_ln_s=ln
17666 else
17667 as_ln_s='cp -p'
252b5132 17668 fi
e5a52504 17669else
42ecbf5e 17670 as_ln_s='cp -p'
e5a52504 17671fi
81ecdfbb
RW
17672rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17673rmdir conf$$.dir 2>/dev/null
17674
17675
17676# as_fn_mkdir_p
17677# -------------
17678# Create "$as_dir" as a directory, including parents if necessary.
17679as_fn_mkdir_p ()
17680{
17681
17682 case $as_dir in #(
17683 -*) as_dir=./$as_dir;;
17684 esac
17685 test -d "$as_dir" || eval $as_mkdir_p || {
17686 as_dirs=
17687 while :; do
17688 case $as_dir in #(
17689 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17690 *) as_qdir=$as_dir;;
17691 esac
17692 as_dirs="'$as_qdir' $as_dirs"
17693 as_dir=`$as_dirname -- "$as_dir" ||
17694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$as_dir" : 'X\(//\)[^/]' \| \
17696 X"$as_dir" : 'X\(//\)$' \| \
17697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17698$as_echo X"$as_dir" |
17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17700 s//\1/
17701 q
17702 }
17703 /^X\(\/\/\)[^/].*/{
17704 s//\1/
17705 q
17706 }
17707 /^X\(\/\/\)$/{
17708 s//\1/
17709 q
17710 }
17711 /^X\(\/\).*/{
17712 s//\1/
17713 q
17714 }
17715 s/.*/./; q'`
17716 test -d "$as_dir" && break
17717 done
17718 test -z "$as_dirs" || eval "mkdir $as_dirs"
17719 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17720
252b5132 17721
81ecdfbb 17722} # as_fn_mkdir_p
42ecbf5e 17723if mkdir -p . 2>/dev/null; then
81ecdfbb 17724 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17725else
17726 test -d ./-p && rmdir ./-p
17727 as_mkdir_p=false
17728fi
252b5132 17729
81ecdfbb
RW
17730if test -x / >/dev/null 2>&1; then
17731 as_test_x='test -x'
17732else
17733 if ls -dL / >/dev/null 2>&1; then
17734 as_ls_L_option=L
17735 else
17736 as_ls_L_option=
17737 fi
17738 as_test_x='
17739 eval sh -c '\''
17740 if test -d "$1"; then
17741 test -d "$1/.";
17742 else
17743 case $1 in #(
17744 -*)set "./$1";;
17745 esac;
17746 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17747 ???[sx]*):;;*)false;;esac;fi
17748 '\'' sh
17749 '
17750fi
17751as_executable_p=$as_test_x
252b5132 17752
42ecbf5e
DJ
17753# Sed expression to map a string onto a valid CPP name.
17754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17755
42ecbf5e
DJ
17756# Sed expression to map a string onto a valid variable name.
17757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17758
e5a52504 17759
42ecbf5e 17760exec 6>&1
81ecdfbb
RW
17761## ----------------------------------- ##
17762## Main body of $CONFIG_STATUS script. ##
17763## ----------------------------------- ##
17764_ASEOF
17765test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17766
81ecdfbb
RW
17767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17769# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17770# values after options handling.
17771ac_log="
d8bd95ef 17772This file was extended by ld $as_me 2.26.51, which was
81ecdfbb 17773generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17774
17775 CONFIG_FILES = $CONFIG_FILES
17776 CONFIG_HEADERS = $CONFIG_HEADERS
17777 CONFIG_LINKS = $CONFIG_LINKS
17778 CONFIG_COMMANDS = $CONFIG_COMMANDS
17779 $ $0 $@
e5a52504 17780
81ecdfbb
RW
17781on `(hostname || uname -n) 2>/dev/null | sed 1q`
17782"
17783
42ecbf5e
DJ
17784_ACEOF
17785
81ecdfbb
RW
17786case $ac_config_files in *"
17787"*) set x $ac_config_files; shift; ac_config_files=$*;;
17788esac
e5a52504 17789
81ecdfbb
RW
17790case $ac_config_headers in *"
17791"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17792esac
42ecbf5e 17793
42ecbf5e 17794
81ecdfbb
RW
17795cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796# Files that config.status was made for.
17797config_files="$ac_config_files"
17798config_headers="$ac_config_headers"
17799config_commands="$ac_config_commands"
42ecbf5e 17800
81ecdfbb 17801_ACEOF
42ecbf5e 17802
81ecdfbb 17803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17804ac_cs_usage="\
81ecdfbb
RW
17805\`$as_me' instantiates files and other configuration actions
17806from templates according to the current configuration. Unless the files
17807and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17808
81ecdfbb 17809Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17810
17811 -h, --help print this help, then exit
81ecdfbb
RW
17812 -V, --version print version number and configuration settings, then exit
17813 -q, --quiet, --silent
17814 do not print progress messages
42ecbf5e
DJ
17815 -d, --debug don't remove temporary files
17816 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17817 --file=FILE[:TEMPLATE]
17818 instantiate the configuration file FILE
17819 --header=FILE[:TEMPLATE]
17820 instantiate the configuration header FILE
42ecbf5e
DJ
17821
17822Configuration files:
17823$config_files
17824
17825Configuration headers:
17826$config_headers
17827
17828Configuration commands:
17829$config_commands
17830
81ecdfbb 17831Report bugs to the package provider."
42ecbf5e 17832
81ecdfbb
RW
17833_ACEOF
17834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17835ac_cs_version="\\
d8bd95ef 17836ld config.status 2.26.51
81ecdfbb
RW
17837configured by $0, generated by GNU Autoconf 2.64,
17838 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17839
81ecdfbb 17840Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17841This config.status script is free software; the Free Software Foundation
17842gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17843
17844ac_pwd='$ac_pwd'
17845srcdir='$srcdir'
17846INSTALL='$INSTALL'
17847MKDIR_P='$MKDIR_P'
17848AWK='$AWK'
17849test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17850_ACEOF
17851
81ecdfbb
RW
17852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17853# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17854ac_need_defaults=:
17855while test $# != 0
17856do
17857 case $1 in
17858 --*=*)
81ecdfbb
RW
17859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17860 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17861 ac_shift=:
252b5132 17862 ;;
81ecdfbb 17863 *)
42ecbf5e
DJ
17864 ac_option=$1
17865 ac_optarg=$2
17866 ac_shift=shift
252b5132 17867 ;;
42ecbf5e 17868 esac
252b5132 17869
42ecbf5e
DJ
17870 case $ac_option in
17871 # Handling of the options.
42ecbf5e
DJ
17872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17873 ac_cs_recheck=: ;;
81ecdfbb
RW
17874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17875 $as_echo "$ac_cs_version"; exit ;;
17876 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17877 debug=: ;;
17878 --file | --fil | --fi | --f )
17879 $ac_shift
81ecdfbb
RW
17880 case $ac_optarg in
17881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17882 esac
17883 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17884 ac_need_defaults=false;;
17885 --header | --heade | --head | --hea )
17886 $ac_shift
81ecdfbb
RW
17887 case $ac_optarg in
17888 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17889 esac
17890 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17891 ac_need_defaults=false;;
81ecdfbb
RW
17892 --he | --h)
17893 # Conflict between --help and --header
17894 as_fn_error "ambiguous option: \`$1'
17895Try \`$0 --help' for more information.";;
17896 --help | --hel | -h )
17897 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17900 ac_cs_silent=: ;;
252b5132 17901
42ecbf5e 17902 # This is an error.
81ecdfbb
RW
17903 -*) as_fn_error "unrecognized option: \`$1'
17904Try \`$0 --help' for more information." ;;
252b5132 17905
81ecdfbb
RW
17906 *) as_fn_append ac_config_targets " $1"
17907 ac_need_defaults=false ;;
252b5132 17908
42ecbf5e
DJ
17909 esac
17910 shift
17911done
d15b04bd 17912
42ecbf5e 17913ac_configure_extra_args=
e5a52504 17914
42ecbf5e
DJ
17915if $ac_cs_silent; then
17916 exec 6>/dev/null
17917 ac_configure_extra_args="$ac_configure_extra_args --silent"
17918fi
e5a52504 17919
42ecbf5e 17920_ACEOF
81ecdfbb 17921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17922if \$ac_cs_recheck; then
81ecdfbb
RW
17923 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17924 shift
17925 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17926 CONFIG_SHELL='$SHELL'
17927 export CONFIG_SHELL
17928 exec "\$@"
42ecbf5e
DJ
17929fi
17930
17931_ACEOF
81ecdfbb
RW
17932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17933exec 5>>config.log
17934{
17935 echo
17936 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17937## Running $as_me. ##
17938_ASBOX
17939 $as_echo "$ac_log"
17940} >&5
42ecbf5e 17941
81ecdfbb
RW
17942_ACEOF
17943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17944#
81ecdfbb 17945# INIT-COMMANDS
252b5132 17946#
42ecbf5e 17947AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17948
17949
17950# The HP-UX ksh and POSIX shell print the target directory to stdout
17951# if CDPATH is set.
17952(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17953
17954sed_quote_subst='$sed_quote_subst'
17955double_quote_subst='$double_quote_subst'
17956delay_variable_subst='$delay_variable_subst'
3725885a
RW
17957macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17958macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17959enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17960enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17961pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17962enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17963SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17964ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17965host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17966host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17967host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17968build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17969build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17970build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17971SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17972Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17973GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17974EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17975FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17976LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17977NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17978LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17979max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17980ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17981exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17982lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17983lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17984lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17985reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17986reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17987OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17988deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17989file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17990AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17991AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17992STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17993RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17994old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17995old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17996old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17997lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17998CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17999CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18000compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18001GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18002lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18003lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18004lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18005lt_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"`'
18006objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18007MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18008lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18009lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18010lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18011lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18012lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18013need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18014DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18015NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18016LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18017OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18018OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18019libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18020shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18021extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18022archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18023enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18024export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18025whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18026compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18027old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18028old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18029archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18030archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18031module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18032module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18033with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18034allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18035no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18036hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18037hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18038hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18039hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18040hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18041hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18042hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18043hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18044inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18045link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18046fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18047always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18048export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18049exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18050include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18051prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18052file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18053variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18054need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18055need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18056version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18057runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18058shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18059shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18060libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18061library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18062soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18063install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18064postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18065postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18066finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18067finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18068hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18069sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18070sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18071hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18072enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18073enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18074enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18075old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18076striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18077compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18078predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18079postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18080predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18081postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18082compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18083LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18084reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18085reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18086old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18087compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18088GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18089lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18090lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18091lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18092lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18093lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18094archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18095enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18096export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18097whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18098compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18099old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18100old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18101archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18102archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18103module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18104module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18105with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18106allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18107no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18108hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18109hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18110hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18111hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18112hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18113hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18114hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18115hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18116inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18117link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18118fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18119always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18120export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18121exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18122include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18123prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18124file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18125hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18126compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18127predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18128postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18129predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18130postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18131compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18132
18133LTCC='$LTCC'
18134LTCFLAGS='$LTCFLAGS'
18135compiler='$compiler_DEFAULT'
18136
3725885a
RW
18137# A function that is used when there is no print builtin or printf.
18138func_fallback_echo ()
18139{
18140 eval 'cat <<_LTECHO_EOF
18141\$1
18142_LTECHO_EOF'
18143}
18144
d7040cdb 18145# Quote evaled strings.
3725885a
RW
18146for var in SHELL \
18147ECHO \
18148SED \
d7040cdb
SE
18149GREP \
18150EGREP \
18151FGREP \
18152LD \
18153NM \
18154LN_S \
18155lt_SP2NL \
18156lt_NL2SP \
18157reload_flag \
b214d478 18158OBJDUMP \
d7040cdb
SE
18159deplibs_check_method \
18160file_magic_cmd \
18161AR \
18162AR_FLAGS \
18163STRIP \
18164RANLIB \
18165CC \
18166CFLAGS \
18167compiler \
18168lt_cv_sys_global_symbol_pipe \
18169lt_cv_sys_global_symbol_to_cdecl \
18170lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18171lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18172lt_prog_compiler_no_builtin_flag \
18173lt_prog_compiler_wl \
18174lt_prog_compiler_pic \
18175lt_prog_compiler_static \
18176lt_cv_prog_compiler_c_o \
18177need_locks \
b214d478
SE
18178DSYMUTIL \
18179NMEDIT \
18180LIPO \
18181OTOOL \
18182OTOOL64 \
d7040cdb
SE
18183shrext_cmds \
18184export_dynamic_flag_spec \
18185whole_archive_flag_spec \
18186compiler_needs_object \
18187with_gnu_ld \
18188allow_undefined_flag \
18189no_undefined_flag \
18190hardcode_libdir_flag_spec \
18191hardcode_libdir_flag_spec_ld \
18192hardcode_libdir_separator \
18193fix_srcfile_path \
18194exclude_expsyms \
18195include_expsyms \
18196file_list_spec \
18197variables_saved_for_relink \
18198libname_spec \
18199library_names_spec \
18200soname_spec \
3725885a 18201install_override_mode \
d7040cdb
SE
18202finish_eval \
18203old_striplib \
3cb62297
L
18204striplib \
18205compiler_lib_search_dirs \
18206predep_objects \
18207postdep_objects \
18208predeps \
18209postdeps \
18210compiler_lib_search_path \
18211LD_CXX \
18212reload_flag_CXX \
18213compiler_CXX \
18214lt_prog_compiler_no_builtin_flag_CXX \
18215lt_prog_compiler_wl_CXX \
18216lt_prog_compiler_pic_CXX \
18217lt_prog_compiler_static_CXX \
18218lt_cv_prog_compiler_c_o_CXX \
18219export_dynamic_flag_spec_CXX \
18220whole_archive_flag_spec_CXX \
18221compiler_needs_object_CXX \
18222with_gnu_ld_CXX \
18223allow_undefined_flag_CXX \
18224no_undefined_flag_CXX \
18225hardcode_libdir_flag_spec_CXX \
18226hardcode_libdir_flag_spec_ld_CXX \
18227hardcode_libdir_separator_CXX \
18228fix_srcfile_path_CXX \
18229exclude_expsyms_CXX \
18230include_expsyms_CXX \
18231file_list_spec_CXX \
18232compiler_lib_search_dirs_CXX \
18233predep_objects_CXX \
18234postdep_objects_CXX \
18235predeps_CXX \
18236postdeps_CXX \
18237compiler_lib_search_path_CXX; do
3725885a 18238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18239 *[\\\\\\\`\\"\\\$]*)
3725885a 18240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18241 ;;
18242 *)
18243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18244 ;;
18245 esac
18246done
18247
18248# Double-quote double-evaled strings.
18249for var in reload_cmds \
18250old_postinstall_cmds \
18251old_postuninstall_cmds \
18252old_archive_cmds \
18253extract_expsyms_cmds \
18254old_archive_from_new_cmds \
18255old_archive_from_expsyms_cmds \
18256archive_cmds \
18257archive_expsym_cmds \
18258module_cmds \
18259module_expsym_cmds \
18260export_symbols_cmds \
18261prelink_cmds \
18262postinstall_cmds \
18263postuninstall_cmds \
18264finish_cmds \
18265sys_lib_search_path_spec \
3cb62297
L
18266sys_lib_dlsearch_path_spec \
18267reload_cmds_CXX \
18268old_archive_cmds_CXX \
18269old_archive_from_new_cmds_CXX \
18270old_archive_from_expsyms_cmds_CXX \
18271archive_cmds_CXX \
18272archive_expsym_cmds_CXX \
18273module_cmds_CXX \
18274module_expsym_cmds_CXX \
18275export_symbols_cmds_CXX \
18276prelink_cmds_CXX; do
3725885a 18277 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18278 *[\\\\\\\`\\"\\\$]*)
3725885a 18279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18280 ;;
18281 *)
18282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18283 ;;
18284 esac
18285done
18286
d7040cdb
SE
18287ac_aux_dir='$ac_aux_dir'
18288xsi_shell='$xsi_shell'
18289lt_shell_append='$lt_shell_append'
18290
18291# See if we are running on zsh, and set the options which allow our
18292# commands through without removal of \ escapes INIT.
18293if test -n "\${ZSH_VERSION+set}" ; then
18294 setopt NO_GLOB_SUBST
18295fi
18296
18297
18298 PACKAGE='$PACKAGE'
18299 VERSION='$VERSION'
18300 TIMESTAMP='$TIMESTAMP'
18301 RM='$RM'
18302 ofile='$ofile'
18303
18304
18305
3cb62297
L
18306
18307
20e95c23
DJ
18308# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18309 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18310 # from automake.
18311 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18312 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18313 LINGUAS="${LINGUAS-%UNSET%}"
18314
42ecbf5e
DJ
18315
18316_ACEOF
18317
81ecdfbb 18318cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18319
81ecdfbb 18320# Handling of arguments.
42ecbf5e 18321for ac_config_target in $ac_config_targets
252b5132 18322do
81ecdfbb
RW
18323 case $ac_config_target in
18324 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18325 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18326 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb
RW
18327 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18328 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18329 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18330
18331 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18332 esac
18333done
18334
81ecdfbb 18335
42ecbf5e
DJ
18336# If the user did not use the arguments to specify the items to instantiate,
18337# then the envvar interface is used. Set only those that are not.
18338# We use the long form for the default assignment because of an extremely
18339# bizarre bug on SunOS 4.1.3.
18340if $ac_need_defaults; then
18341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18342 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18343 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18344fi
18345
18346# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18347# simply because there is no reason against having it here, and in addition,
42ecbf5e 18348# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18349# Hook for its removal unless debugging.
18350# Note that there is a small window in which the directory will not be cleaned:
18351# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18352$debug ||
18353{
81ecdfbb
RW
18354 tmp=
18355 trap 'exit_status=$?
18356 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18357' 0
18358 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18359}
42ecbf5e 18360# Create a (secure) tmp directory for tmp files.
e5a52504 18361
42ecbf5e 18362{
81ecdfbb 18363 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18364 test -n "$tmp" && test -d "$tmp"
18365} ||
18366{
81ecdfbb
RW
18367 tmp=./conf$$-$RANDOM
18368 (umask 077 && mkdir "$tmp")
18369} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18370
18371# Set up the scripts for CONFIG_FILES section.
18372# No need to generate them if there are no CONFIG_FILES.
18373# This happens for instance with `./config.status config.h'.
18374if test -n "$CONFIG_FILES"; then
18375
18376if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18377 ac_cs_awk_getline=:
18378 ac_cs_awk_pipe_init=
18379 ac_cs_awk_read_file='
18380 while ((getline aline < (F[key])) > 0)
18381 print(aline)
18382 close(F[key])'
18383 ac_cs_awk_pipe_fini=
18384else
18385 ac_cs_awk_getline=false
18386 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18387 ac_cs_awk_read_file='
18388 print "|#_!!_#|"
18389 print "cat " F[key] " &&"
18390 '$ac_cs_awk_pipe_init
18391 # The final `:' finishes the AND list.
18392 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18393fi
18394ac_cr=`echo X | tr X '\015'`
18395# On cygwin, bash can eat \r inside `` if the user requested igncr.
18396# But we know of no other shell where ac_cr would be empty at this
18397# point, so we can use a bashism as a fallback.
18398if test "x$ac_cr" = x; then
18399 eval ac_cr=\$\'\\r\'
18400fi
18401ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18402if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18403 ac_cs_awk_cr='\r'
18404else
18405 ac_cs_awk_cr=$ac_cr
18406fi
18407
18408echo 'BEGIN {' >"$tmp/subs1.awk" &&
18409_ACEOF
18410
18411# Create commands to substitute file output variables.
42ecbf5e 18412{
81ecdfbb
RW
18413 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18414 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18415 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18416 echo "_ACAWK" &&
18417 echo "_ACEOF"
18418} >conf$$files.sh &&
18419. ./conf$$files.sh ||
18420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18421rm -f conf$$files.sh
e5a52504 18422
81ecdfbb
RW
18423{
18424 echo "cat >conf$$subs.awk <<_ACEOF" &&
18425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18426 echo "_ACEOF"
18427} >conf$$subs.sh ||
18428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18429ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18430ac_delim='%!_!# '
18431for ac_last_try in false false false false false :; do
18432 . ./conf$$subs.sh ||
18433 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18434
18435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18436 if test $ac_delim_n = $ac_delim_num; then
18437 break
18438 elif $ac_last_try; then
18439 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18440 else
18441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18442 fi
18443done
18444rm -f conf$$subs.sh
18445
18446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18447cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18448_ACEOF
18449sed -n '
18450h
18451s/^/S["/; s/!.*/"]=/
18452p
18453g
18454s/^[^!]*!//
18455:repl
18456t repl
18457s/'"$ac_delim"'$//
18458t delim
18459:nl
18460h
18461s/\(.\{148\}\).*/\1/
18462t more1
18463s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18464p
18465n
18466b repl
18467:more1
18468s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18469p
18470g
18471s/.\{148\}//
18472t nl
18473:delim
18474h
18475s/\(.\{148\}\).*/\1/
18476t more2
18477s/["\\]/\\&/g; s/^/"/; s/$/"/
18478p
18479b
18480:more2
18481s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18482p
18483g
18484s/.\{148\}//
18485t delim
18486' <conf$$subs.awk | sed '
18487/^[^""]/{
18488 N
18489 s/\n//
18490}
18491' >>$CONFIG_STATUS || ac_write_fail=1
18492rm -f conf$$subs.awk
18493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18494_ACAWK
18495cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18496 for (key in S) S_is_set[key] = 1
18497 FS = "\a"
18498 \$ac_cs_awk_pipe_init
18499}
18500{
18501 line = $ 0
18502 nfields = split(line, field, "@")
18503 substed = 0
18504 len = length(field[1])
18505 for (i = 2; i < nfields; i++) {
18506 key = field[i]
18507 keylen = length(key)
18508 if (S_is_set[key]) {
18509 value = S[key]
18510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18511 len += length(value) + length(field[++i])
18512 substed = 1
18513 } else
18514 len += 1 + keylen
18515 }
18516 if (nfields == 3 && !substed) {
18517 key = field[2]
18518 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18519 \$ac_cs_awk_read_file
18520 next
18521 }
18522 }
18523 print line
18524}
18525\$ac_cs_awk_pipe_fini
18526_ACAWK
18527_ACEOF
18528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18531else
18532 cat
18533fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18534 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18535_ACEOF
d15b04bd 18536
81ecdfbb
RW
18537# VPATH may cause trouble with some makes, so we remove $(srcdir),
18538# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18539# trailing colons and then remove the whole line if VPATH becomes empty
18540# (actually we leave an empty line to preserve line numbers).
18541if test "x$srcdir" = x.; then
18542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18543s/:*\$(srcdir):*/:/
18544s/:*\${srcdir}:*/:/
18545s/:*@srcdir@:*/:/
18546s/^\([^=]*=[ ]*\):*/\1/
18547s/:*$//
18548s/^[^=]*=[ ]*$//
18549}'
18550fi
18551
18552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18553fi # test -n "$CONFIG_FILES"
42ecbf5e 18554
81ecdfbb
RW
18555# Set up the scripts for CONFIG_HEADERS section.
18556# No need to generate them if there are no CONFIG_HEADERS.
18557# This happens for instance with `./config.status Makefile'.
18558if test -n "$CONFIG_HEADERS"; then
18559cat >"$tmp/defines.awk" <<\_ACAWK ||
18560BEGIN {
18561_ACEOF
42ecbf5e 18562
81ecdfbb
RW
18563# Transform confdefs.h into an awk script `defines.awk', embedded as
18564# here-document in config.status, that substitutes the proper values into
18565# config.h.in to produce config.h.
252b5132 18566
81ecdfbb
RW
18567# Create a delimiter string that does not exist in confdefs.h, to ease
18568# handling of long lines.
18569ac_delim='%!_!# '
18570for ac_last_try in false false :; do
18571 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18572 if test -z "$ac_t"; then
18573 break
18574 elif $ac_last_try; then
18575 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18576 else
18577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18578 fi
18579done
18580
18581# For the awk script, D is an array of macro values keyed by name,
18582# likewise P contains macro parameters if any. Preserve backslash
18583# newline sequences.
18584
18585ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18586sed -n '
18587s/.\{148\}/&'"$ac_delim"'/g
18588t rset
18589:rset
18590s/^[ ]*#[ ]*define[ ][ ]*/ /
18591t def
18592d
18593:def
18594s/\\$//
18595t bsnl
18596s/["\\]/\\&/g
18597s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18598D["\1"]=" \3"/p
18599s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18600d
18601:bsnl
18602s/["\\]/\\&/g
18603s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18604D["\1"]=" \3\\\\\\n"\\/p
18605t cont
18606s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18607t cont
18608d
18609:cont
18610n
18611s/.\{148\}/&'"$ac_delim"'/g
18612t clear
18613:clear
18614s/\\$//
18615t bsnlc
18616s/["\\]/\\&/g; s/^/"/; s/$/"/p
18617d
18618:bsnlc
18619s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18620b cont
18621' <confdefs.h | sed '
18622s/'"$ac_delim"'/"\\\
18623"/g' >>$CONFIG_STATUS || ac_write_fail=1
18624
18625cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18626 for (key in D) D_is_set[key] = 1
18627 FS = "\a"
18628}
18629/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18630 line = \$ 0
18631 split(line, arg, " ")
18632 if (arg[1] == "#") {
18633 defundef = arg[2]
18634 mac1 = arg[3]
18635 } else {
18636 defundef = substr(arg[1], 2)
18637 mac1 = arg[2]
18638 }
18639 split(mac1, mac2, "(") #)
18640 macro = mac2[1]
18641 prefix = substr(line, 1, index(line, defundef) - 1)
18642 if (D_is_set[macro]) {
18643 # Preserve the white space surrounding the "#".
18644 print prefix "define", macro P[macro] D[macro]
18645 next
18646 } else {
18647 # Replace #undef with comments. This is necessary, for example,
18648 # in the case of _POSIX_SOURCE, which is predefined and required
18649 # on some systems where configure will not decide to define it.
18650 if (defundef == "undef") {
18651 print "/*", prefix defundef, macro, "*/"
18652 next
18653 }
18654 }
18655}
18656{ print }
18657_ACAWK
42ecbf5e 18658_ACEOF
81ecdfbb
RW
18659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18660 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18661fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18662
81ecdfbb
RW
18663
18664eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18665shift
18666for ac_tag
18667do
18668 case $ac_tag in
18669 :[FHLC]) ac_mode=$ac_tag; continue;;
18670 esac
18671 case $ac_mode$ac_tag in
18672 :[FHL]*:*);;
18673 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18674 :[FH]-) ac_tag=-:-;;
18675 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18676 esac
18677 ac_save_IFS=$IFS
18678 IFS=:
18679 set x $ac_tag
18680 IFS=$ac_save_IFS
18681 shift
18682 ac_file=$1
18683 shift
18684
18685 case $ac_mode in
18686 :L) ac_source=$1;;
18687 :[FH])
18688 ac_file_inputs=
18689 for ac_f
18690 do
18691 case $ac_f in
18692 -) ac_f="$tmp/stdin";;
18693 *) # Look for the file first in the build tree, then in the source tree
18694 # (if the path is not absolute). The absolute path cannot be DOS-style,
18695 # because $ac_f cannot contain `:'.
18696 test -f "$ac_f" ||
18697 case $ac_f in
18698 [\\/$]*) false;;
18699 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18700 esac ||
18701 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18702 esac
18703 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18704 as_fn_append ac_file_inputs " '$ac_f'"
18705 done
18706
18707 # Let's still pretend it is `configure' which instantiates (i.e., don't
18708 # use $as_me), people would be surprised to read:
18709 # /* config.h. Generated by config.status. */
18710 configure_input='Generated from '`
18711 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18712 `' by configure.'
18713 if test x"$ac_file" != x-; then
18714 configure_input="$ac_file. $configure_input"
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18716$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18717 fi
81ecdfbb
RW
18718 # Neutralize special characters interpreted by sed in replacement strings.
18719 case $configure_input in #(
18720 *\&* | *\|* | *\\* )
18721 ac_sed_conf_input=`$as_echo "$configure_input" |
18722 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18723 *) ac_sed_conf_input=$configure_input;;
18724 esac
252b5132 18725
81ecdfbb
RW
18726 case $ac_tag in
18727 *:-:* | *:-) cat >"$tmp/stdin" \
18728 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18729 esac
18730 ;;
252b5132
RH
18731 esac
18732
81ecdfbb 18733 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18734$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18735 X"$ac_file" : 'X\(//\)[^/]' \| \
18736 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18737 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18738$as_echo X"$ac_file" |
18739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18740 s//\1/
18741 q
18742 }
18743 /^X\(\/\/\)[^/].*/{
18744 s//\1/
18745 q
18746 }
18747 /^X\(\/\/\)$/{
18748 s//\1/
18749 q
18750 }
18751 /^X\(\/\).*/{
18752 s//\1/
18753 q
18754 }
18755 s/.*/./; q'`
18756 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18757 ac_builddir=.
18758
81ecdfbb
RW
18759case "$ac_dir" in
18760.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18761*)
18762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18763 # A ".." for each directory in $ac_dir_suffix.
18764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18765 case $ac_top_builddir_sub in
18766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18768 esac ;;
18769esac
18770ac_abs_top_builddir=$ac_pwd
18771ac_abs_builddir=$ac_pwd$ac_dir_suffix
18772# for backward compatibility:
18773ac_top_builddir=$ac_top_build_prefix
252b5132 18774
42ecbf5e 18775case $srcdir in
81ecdfbb 18776 .) # We are building in place.
42ecbf5e 18777 ac_srcdir=.
81ecdfbb
RW
18778 ac_top_srcdir=$ac_top_builddir_sub
18779 ac_abs_top_srcdir=$ac_pwd ;;
18780 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18781 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18782 ac_top_srcdir=$srcdir
18783 ac_abs_top_srcdir=$srcdir ;;
18784 *) # Relative name.
18785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18786 ac_top_srcdir=$ac_top_build_prefix$srcdir
18787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18788esac
81ecdfbb 18789ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18790
252b5132 18791
81ecdfbb
RW
18792 case $ac_mode in
18793 :F)
18794 #
18795 # CONFIG_FILE
18796 #
e5a52504 18797
42ecbf5e
DJ
18798 case $INSTALL in
18799 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18800 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18801 esac
18802 ac_MKDIR_P=$MKDIR_P
18803 case $MKDIR_P in
18804 [\\/$]* | ?:[\\/]* ) ;;
18805 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18806 esac
81ecdfbb 18807_ACEOF
e5a52504 18808
81ecdfbb
RW
18809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18810# If the template does not know about datarootdir, expand it.
18811# FIXME: This hack should be removed a few years after 2.60.
18812ac_datarootdir_hack=; ac_datarootdir_seen=
18813ac_sed_dataroot='
18814/datarootdir/ {
18815 p
18816 q
18817}
18818/@datadir@/p
18819/@docdir@/p
18820/@infodir@/p
18821/@localedir@/p
18822/@mandir@/p'
18823case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18824*datarootdir*) ac_datarootdir_seen=yes;;
18825*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18827$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18828_ACEOF
18829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18830 ac_datarootdir_hack='
18831 s&@datadir@&$datadir&g
18832 s&@docdir@&$docdir&g
18833 s&@infodir@&$infodir&g
18834 s&@localedir@&$localedir&g
18835 s&@mandir@&$mandir&g
18836 s&\\\${datarootdir}&$datarootdir&g' ;;
18837esac
42ecbf5e 18838_ACEOF
81ecdfbb
RW
18839
18840# Neutralize VPATH when `$srcdir' = `.'.
18841# Shell code in configure.ac might set extrasub.
18842# FIXME: do we really want to maintain this feature?
18843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18844ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18845$extrasub
18846_ACEOF
81ecdfbb 18847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18848:t
18849/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18850s|@configure_input@|$ac_sed_conf_input|;t t
18851s&@top_builddir@&$ac_top_builddir_sub&;t t
18852s&@top_build_prefix@&$ac_top_build_prefix&;t t
18853s&@srcdir@&$ac_srcdir&;t t
18854s&@abs_srcdir@&$ac_abs_srcdir&;t t
18855s&@top_srcdir@&$ac_top_srcdir&;t t
18856s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18857s&@builddir@&$ac_builddir&;t t
18858s&@abs_builddir@&$ac_abs_builddir&;t t
18859s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18860s&@INSTALL@&$ac_INSTALL&;t t
18861s&@MKDIR_P@&$ac_MKDIR_P&;t t
18862$ac_datarootdir_hack
18863"
18864eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18865if $ac_cs_awk_getline; then
18866 $AWK -f "$tmp/subs.awk"
18867else
18868 $AWK -f "$tmp/subs.awk" | $SHELL
18869fi >$tmp/out \
18870 || as_fn_error "could not create $ac_file" "$LINENO" 5
18871
18872test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18873 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18876which seems to be undefined. Please make sure it is defined." >&5
18877$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18878which seems to be undefined. Please make sure it is defined." >&2;}
18879
18880 rm -f "$tmp/stdin"
42ecbf5e 18881 case $ac_file in
81ecdfbb
RW
18882 -) cat "$tmp/out" && rm -f "$tmp/out";;
18883 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18884 esac \
18885 || as_fn_error "could not create $ac_file" "$LINENO" 5
18886 ;;
18887 :H)
18888 #
18889 # CONFIG_HEADER
18890 #
42ecbf5e 18891 if test x"$ac_file" != x-; then
81ecdfbb
RW
18892 {
18893 $as_echo "/* $configure_input */" \
18894 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18895 } >"$tmp/config.h" \
18896 || as_fn_error "could not create $ac_file" "$LINENO" 5
18897 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18899$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18900 else
81ecdfbb
RW
18901 rm -f "$ac_file"
18902 mv "$tmp/config.h" "$ac_file" \
18903 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18904 fi
42ecbf5e 18905 else
81ecdfbb
RW
18906 $as_echo "/* $configure_input */" \
18907 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18908 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18909 fi
81ecdfbb
RW
18910# Compute "$ac_file"'s index in $config_headers.
18911_am_arg="$ac_file"
42ecbf5e
DJ
18912_am_stamp_count=1
18913for _am_header in $config_headers :; do
18914 case $_am_header in
81ecdfbb 18915 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18916 break ;;
18917 * )
18918 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18919 esac
18920done
81ecdfbb
RW
18921echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18922$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18923 X"$_am_arg" : 'X\(//\)[^/]' \| \
18924 X"$_am_arg" : 'X\(//\)$' \| \
18925 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18926$as_echo X"$_am_arg" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18928 s//\1/
18929 q
18930 }
18931 /^X\(\/\/\)[^/].*/{
18932 s//\1/
18933 q
18934 }
18935 /^X\(\/\/\)$/{
18936 s//\1/
18937 q
18938 }
18939 /^X\(\/\).*/{
18940 s//\1/
18941 q
18942 }
18943 s/.*/./; q'`/stamp-h$_am_stamp_count
18944 ;;
42ecbf5e 18945
81ecdfbb
RW
18946 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18947$as_echo "$as_me: executing $ac_file commands" >&6;}
18948 ;;
18949 esac
42ecbf5e
DJ
18950
18951
81ecdfbb
RW
18952 case $ac_file$ac_mode in
18953 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18954 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18955 # are listed without --file. Let's play safe and only enable the eval
18956 # if we detect the quoting.
18957 case $CONFIG_FILES in
18958 *\'*) eval set x "$CONFIG_FILES" ;;
18959 *) set x $CONFIG_FILES ;;
18960 esac
18961 shift
18962 for mf
18963 do
18964 # Strip MF so we end up with the name of the file.
18965 mf=`echo "$mf" | sed -e 's/:.*$//'`
18966 # Check whether this is an Automake generated Makefile or not.
18967 # We used to match only the files named `Makefile.in', but
18968 # some people rename them; so instead we look at the file content.
18969 # Grep'ing the first line is not enough: some people post-process
18970 # each Makefile.in and add a new line on top of each file to say so.
18971 # Grep'ing the whole file is not good either: AIX grep has a line
18972 # limit of 2048, but all sed's we know have understand at least 4000.
18973 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18974 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18975$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18976 X"$mf" : 'X\(//\)[^/]' \| \
18977 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18978 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18979$as_echo X"$mf" |
18980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18981 s//\1/
18982 q
18983 }
18984 /^X\(\/\/\)[^/].*/{
18985 s//\1/
18986 q
18987 }
18988 /^X\(\/\/\)$/{
18989 s//\1/
18990 q
18991 }
18992 /^X\(\/\).*/{
18993 s//\1/
18994 q
18995 }
18996 s/.*/./; q'`
18997 else
18998 continue
18999 fi
19000 # Extract the definition of DEPDIR, am__include, and am__quote
19001 # from the Makefile without running `make'.
19002 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19003 test -z "$DEPDIR" && continue
19004 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19005 test -z "am__include" && continue
19006 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19007 # When using ansi2knr, U may be empty or an underscore; expand it
19008 U=`sed -n 's/^U = //p' < "$mf"`
19009 # Find all dependency output files, they are included files with
19010 # $(DEPDIR) in their names. We invoke sed twice because it is the
19011 # simplest approach to changing $(DEPDIR) to its actual value in the
19012 # expansion.
19013 for file in `sed -n "
19014 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19015 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19016 # Make sure the directory exists.
19017 test -f "$dirpart/$file" && continue
19018 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19019$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19020 X"$file" : 'X\(//\)[^/]' \| \
19021 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19022 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19023$as_echo X"$file" |
19024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\/\)[^/].*/{
19029 s//\1/
19030 q
19031 }
19032 /^X\(\/\/\)$/{
19033 s//\1/
19034 q
19035 }
19036 /^X\(\/\).*/{
19037 s//\1/
19038 q
19039 }
19040 s/.*/./; q'`
19041 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19042 # echo "creating $dirpart/$file"
19043 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19044 done
42ecbf5e 19045 done
81ecdfbb 19046}
d7040cdb 19047 ;;
81ecdfbb 19048 "libtool":C)
d7040cdb
SE
19049
19050 # See if we are running on zsh, and set the options which allow our
19051 # commands through without removal of \ escapes.
19052 if test -n "${ZSH_VERSION+set}" ; then
19053 setopt NO_GLOB_SUBST
19054 fi
19055
19056 cfgfile="${ofile}T"
19057 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19058 $RM "$cfgfile"
19059
19060 cat <<_LT_EOF >> "$cfgfile"
19061#! $SHELL
19062
19063# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19064# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19065# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19066# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19067#
b214d478 19068# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19069# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19070# Written by Gordon Matzigkeit, 1996
d7040cdb 19071#
b214d478 19072# This file is part of GNU Libtool.
d7040cdb 19073#
b214d478
SE
19074# GNU Libtool is free software; you can redistribute it and/or
19075# modify it under the terms of the GNU General Public License as
19076# published by the Free Software Foundation; either version 2 of
19077# the License, or (at your option) any later version.
d7040cdb 19078#
b214d478
SE
19079# As a special exception to the GNU General Public License,
19080# if you distribute this file as part of a program or library that
19081# is built using GNU Libtool, you may include this file under the
19082# same distribution terms that you use for the rest of that program.
d7040cdb 19083#
b214d478
SE
19084# GNU Libtool is distributed in the hope that it will be useful,
19085# but WITHOUT ANY WARRANTY; without even the implied warranty of
19086# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19087# GNU General Public License for more details.
d7040cdb 19088#
b214d478
SE
19089# You should have received a copy of the GNU General Public License
19090# along with GNU Libtool; see the file COPYING. If not, a copy
19091# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19092# obtained by writing to the Free Software Foundation, Inc.,
19093# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19094
19095
19096# The names of the tagged configurations supported by this script.
3cb62297 19097available_tags="CXX "
d7040cdb
SE
19098
19099# ### BEGIN LIBTOOL CONFIG
19100
19101# Which release of libtool.m4 was used?
19102macro_version=$macro_version
19103macro_revision=$macro_revision
19104
19105# Whether or not to build shared libraries.
19106build_libtool_libs=$enable_shared
19107
19108# Whether or not to build static libraries.
19109build_old_libs=$enable_static
19110
19111# What type of objects to build.
19112pic_mode=$pic_mode
19113
19114# Whether or not to optimize for fast installation.
19115fast_install=$enable_fast_install
19116
3725885a
RW
19117# Shell to use when invoking shell scripts.
19118SHELL=$lt_SHELL
19119
19120# An echo program that protects backslashes.
19121ECHO=$lt_ECHO
19122
d7040cdb
SE
19123# The host system.
19124host_alias=$host_alias
19125host=$host
19126host_os=$host_os
19127
19128# The build system.
19129build_alias=$build_alias
19130build=$build
19131build_os=$build_os
19132
19133# A sed program that does not truncate output.
19134SED=$lt_SED
19135
19136# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19137Xsed="\$SED -e 1s/^X//"
19138
19139# A grep program that handles long lines.
19140GREP=$lt_GREP
19141
19142# An ERE matcher.
19143EGREP=$lt_EGREP
19144
19145# A literal string matcher.
19146FGREP=$lt_FGREP
19147
19148# A BSD- or MS-compatible name lister.
19149NM=$lt_NM
19150
19151# Whether we need soft or hard links.
19152LN_S=$lt_LN_S
19153
19154# What is the maximum length of a command?
19155max_cmd_len=$max_cmd_len
19156
19157# Object file suffix (normally "o").
19158objext=$ac_objext
19159
19160# Executable file suffix (normally "").
19161exeext=$exeext
19162
19163# whether the shell understands "unset".
19164lt_unset=$lt_unset
19165
19166# turn spaces into newlines.
19167SP2NL=$lt_lt_SP2NL
19168
19169# turn newlines into spaces.
19170NL2SP=$lt_lt_NL2SP
19171
b214d478
SE
19172# An object symbol dumper.
19173OBJDUMP=$lt_OBJDUMP
19174
d7040cdb
SE
19175# Method to check whether dependent libraries are shared objects.
19176deplibs_check_method=$lt_deplibs_check_method
19177
19178# Command to use when deplibs_check_method == "file_magic".
19179file_magic_cmd=$lt_file_magic_cmd
19180
19181# The archiver.
19182AR=$lt_AR
19183AR_FLAGS=$lt_AR_FLAGS
19184
19185# A symbol stripping program.
19186STRIP=$lt_STRIP
19187
19188# Commands used to install an old-style archive.
19189RANLIB=$lt_RANLIB
19190old_postinstall_cmds=$lt_old_postinstall_cmds
19191old_postuninstall_cmds=$lt_old_postuninstall_cmds
19192
3725885a
RW
19193# Whether to use a lock for old archive extraction.
19194lock_old_archive_extraction=$lock_old_archive_extraction
19195
d7040cdb
SE
19196# A C compiler.
19197LTCC=$lt_CC
19198
19199# LTCC compiler flags.
19200LTCFLAGS=$lt_CFLAGS
19201
19202# Take the output of nm and produce a listing of raw symbols and C names.
19203global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19204
19205# Transform the output of nm in a proper C declaration.
19206global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19207
19208# Transform the output of nm in a C name address pair.
19209global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19210
b214d478
SE
19211# Transform the output of nm in a C name address pair when lib prefix is needed.
19212global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19213
d7040cdb
SE
19214# The name of the directory that contains temporary libtool files.
19215objdir=$objdir
19216
d7040cdb
SE
19217# Used to examine libraries when file_magic_cmd begins with "file".
19218MAGIC_CMD=$MAGIC_CMD
19219
19220# Must we lock files when doing compilation?
19221need_locks=$lt_need_locks
19222
b214d478
SE
19223# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19224DSYMUTIL=$lt_DSYMUTIL
19225
19226# Tool to change global to local symbols on Mac OS X.
19227NMEDIT=$lt_NMEDIT
19228
19229# Tool to manipulate fat objects and archives on Mac OS X.
19230LIPO=$lt_LIPO
19231
19232# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19233OTOOL=$lt_OTOOL
19234
19235# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19236OTOOL64=$lt_OTOOL64
19237
d7040cdb
SE
19238# Old archive suffix (normally "a").
19239libext=$libext
19240
19241# Shared library suffix (normally ".so").
19242shrext_cmds=$lt_shrext_cmds
19243
19244# The commands to extract the exported symbol list from a shared archive.
19245extract_expsyms_cmds=$lt_extract_expsyms_cmds
19246
19247# Variables whose values should be saved in libtool wrapper scripts and
19248# restored at link time.
19249variables_saved_for_relink=$lt_variables_saved_for_relink
19250
19251# Do we need the "lib" prefix for modules?
19252need_lib_prefix=$need_lib_prefix
19253
19254# Do we need a version for libraries?
19255need_version=$need_version
19256
19257# Library versioning type.
19258version_type=$version_type
19259
19260# Shared library runtime path variable.
19261runpath_var=$runpath_var
19262
19263# Shared library path variable.
19264shlibpath_var=$shlibpath_var
19265
19266# Is shlibpath searched before the hard-coded library search path?
19267shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19268
19269# Format of library name prefix.
19270libname_spec=$lt_libname_spec
19271
19272# List of archive names. First name is the real one, the rest are links.
19273# The last name is the one that the linker finds with -lNAME
19274library_names_spec=$lt_library_names_spec
19275
19276# The coded name of the library, if different from the real name.
19277soname_spec=$lt_soname_spec
19278
3725885a
RW
19279# Permission mode override for installation of shared libraries.
19280install_override_mode=$lt_install_override_mode
19281
d7040cdb
SE
19282# Command to use after installation of a shared archive.
19283postinstall_cmds=$lt_postinstall_cmds
19284
19285# Command to use after uninstallation of a shared archive.
19286postuninstall_cmds=$lt_postuninstall_cmds
19287
19288# Commands used to finish a libtool library installation in a directory.
19289finish_cmds=$lt_finish_cmds
19290
19291# As "finish_cmds", except a single script fragment to be evaled but
19292# not shown.
19293finish_eval=$lt_finish_eval
19294
19295# Whether we should hardcode library paths into libraries.
19296hardcode_into_libs=$hardcode_into_libs
19297
19298# Compile-time system search path for libraries.
19299sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19300
19301# Run-time system search path for libraries.
19302sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19303
19304# Whether dlopen is supported.
19305dlopen_support=$enable_dlopen
19306
19307# Whether dlopen of programs is supported.
19308dlopen_self=$enable_dlopen_self
19309
19310# Whether dlopen of statically linked programs is supported.
19311dlopen_self_static=$enable_dlopen_self_static
19312
19313# Commands to strip libraries.
19314old_striplib=$lt_old_striplib
19315striplib=$lt_striplib
19316
19317
19318# The linker used to build libraries.
19319LD=$lt_LD
19320
3725885a
RW
19321# How to create reloadable object files.
19322reload_flag=$lt_reload_flag
19323reload_cmds=$lt_reload_cmds
19324
d7040cdb
SE
19325# Commands used to build an old-style archive.
19326old_archive_cmds=$lt_old_archive_cmds
19327
19328# A language specific compiler.
19329CC=$lt_compiler
19330
19331# Is the compiler the GNU compiler?
19332with_gcc=$GCC
19333
19334# Compiler flag to turn off builtin functions.
19335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19336
19337# How to pass a linker flag through the compiler.
19338wl=$lt_lt_prog_compiler_wl
19339
19340# Additional compiler flags for building library objects.
19341pic_flag=$lt_lt_prog_compiler_pic
19342
19343# Compiler flag to prevent dynamic linking.
19344link_static_flag=$lt_lt_prog_compiler_static
19345
19346# Does compiler simultaneously support -c and -o options?
19347compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19348
19349# Whether or not to add -lc for building shared libraries.
19350build_libtool_need_lc=$archive_cmds_need_lc
19351
19352# Whether or not to disallow shared libs when runtime libs are static.
19353allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19354
19355# Compiler flag to allow reflexive dlopens.
19356export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19357
19358# Compiler flag to generate shared objects directly from archives.
19359whole_archive_flag_spec=$lt_whole_archive_flag_spec
19360
19361# Whether the compiler copes with passing no objects directly.
19362compiler_needs_object=$lt_compiler_needs_object
19363
19364# Create an old-style archive from a shared archive.
19365old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19366
19367# Create a temporary old-style archive to link instead of a shared archive.
19368old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19369
19370# Commands used to build a shared archive.
19371archive_cmds=$lt_archive_cmds
19372archive_expsym_cmds=$lt_archive_expsym_cmds
19373
19374# Commands used to build a loadable module if different from building
19375# a shared archive.
19376module_cmds=$lt_module_cmds
19377module_expsym_cmds=$lt_module_expsym_cmds
19378
19379# Whether we are building with GNU ld or not.
19380with_gnu_ld=$lt_with_gnu_ld
19381
19382# Flag that allows shared libraries with undefined symbols to be built.
19383allow_undefined_flag=$lt_allow_undefined_flag
19384
19385# Flag that enforces no undefined symbols.
19386no_undefined_flag=$lt_no_undefined_flag
19387
19388# Flag to hardcode \$libdir into a binary during linking.
19389# This must work even if \$libdir does not exist
19390hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19391
19392# If ld is used when linking, flag to hardcode \$libdir into a binary
19393# during linking. This must work even if \$libdir does not exist.
19394hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19395
19396# Whether we need a single "-rpath" flag with a separated argument.
19397hardcode_libdir_separator=$lt_hardcode_libdir_separator
19398
19399# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19400# DIR into the resulting binary.
19401hardcode_direct=$hardcode_direct
19402
19403# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19404# DIR into the resulting binary and the resulting library dependency is
19405# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19406# library is relocated.
19407hardcode_direct_absolute=$hardcode_direct_absolute
19408
19409# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19410# into the resulting binary.
19411hardcode_minus_L=$hardcode_minus_L
19412
19413# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19414# into the resulting binary.
19415hardcode_shlibpath_var=$hardcode_shlibpath_var
19416
19417# Set to "yes" if building a shared library automatically hardcodes DIR
19418# into the library and all subsequent libraries and executables linked
19419# against it.
19420hardcode_automatic=$hardcode_automatic
19421
19422# Set to yes if linker adds runtime paths of dependent libraries
19423# to runtime path list.
19424inherit_rpath=$inherit_rpath
19425
19426# Whether libtool must link a program against all its dependency libraries.
19427link_all_deplibs=$link_all_deplibs
19428
19429# Fix the shell variable \$srcfile for the compiler.
19430fix_srcfile_path=$lt_fix_srcfile_path
19431
19432# Set to "yes" if exported symbols are required.
19433always_export_symbols=$always_export_symbols
19434
19435# The commands to list exported symbols.
19436export_symbols_cmds=$lt_export_symbols_cmds
19437
19438# Symbols that should not be listed in the preloaded symbols.
19439exclude_expsyms=$lt_exclude_expsyms
19440
19441# Symbols that must always be exported.
19442include_expsyms=$lt_include_expsyms
19443
19444# Commands necessary for linking programs (against libraries) with templates.
19445prelink_cmds=$lt_prelink_cmds
19446
19447# Specify filename containing input files.
19448file_list_spec=$lt_file_list_spec
19449
19450# How to hardcode a shared library path into an executable.
19451hardcode_action=$hardcode_action
19452
3cb62297
L
19453# The directories searched by this compiler when creating a shared library.
19454compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19455
19456# Dependencies to place before and after the objects being linked to
19457# create a shared library.
19458predep_objects=$lt_predep_objects
19459postdep_objects=$lt_postdep_objects
19460predeps=$lt_predeps
19461postdeps=$lt_postdeps
19462
19463# The library search path used internally by the compiler when linking
19464# a shared library.
19465compiler_lib_search_path=$lt_compiler_lib_search_path
19466
d7040cdb
SE
19467# ### END LIBTOOL CONFIG
19468
19469_LT_EOF
19470
19471 case $host_os in
19472 aix3*)
19473 cat <<\_LT_EOF >> "$cfgfile"
19474# AIX sometimes has problems with the GCC collect2 program. For some
19475# reason, if we set the COLLECT_NAMES environment variable, the problems
19476# vanish in a puff of smoke.
19477if test "X${COLLECT_NAMES+set}" != Xset; then
19478 COLLECT_NAMES=
19479 export COLLECT_NAMES
19480fi
19481_LT_EOF
19482 ;;
19483 esac
19484
19485
19486ltmain="$ac_aux_dir/ltmain.sh"
19487
19488
19489 # We use sed instead of cat because bash on DJGPP gets confused if
19490 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19491 # text mode, it properly converts lines to CR/LF. This bash problem
19492 # is reportedly fixed, but why not run on old versions too?
19493 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19494 || (rm -f "$cfgfile"; exit 1)
19495
19496 case $xsi_shell in
19497 yes)
19498 cat << \_LT_EOF >> "$cfgfile"
b214d478 19499
d7040cdb
SE
19500# func_dirname file append nondir_replacement
19501# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19502# otherwise set result to NONDIR_REPLACEMENT.
19503func_dirname ()
19504{
19505 case ${1} in
19506 */*) func_dirname_result="${1%/*}${2}" ;;
19507 * ) func_dirname_result="${3}" ;;
19508 esac
19509}
19510
19511# func_basename file
19512func_basename ()
19513{
19514 func_basename_result="${1##*/}"
19515}
19516
b214d478
SE
19517# func_dirname_and_basename file append nondir_replacement
19518# perform func_basename and func_dirname in a single function
19519# call:
19520# dirname: Compute the dirname of FILE. If nonempty,
19521# add APPEND to the result, otherwise set result
19522# to NONDIR_REPLACEMENT.
19523# value returned in "$func_dirname_result"
19524# basename: Compute filename of FILE.
19525# value retuned in "$func_basename_result"
19526# Implementation must be kept synchronized with func_dirname
19527# and func_basename. For efficiency, we do not delegate to
19528# those functions but instead duplicate the functionality here.
19529func_dirname_and_basename ()
19530{
19531 case ${1} in
19532 */*) func_dirname_result="${1%/*}${2}" ;;
19533 * ) func_dirname_result="${3}" ;;
19534 esac
19535 func_basename_result="${1##*/}"
19536}
19537
d7040cdb
SE
19538# func_stripname prefix suffix name
19539# strip PREFIX and SUFFIX off of NAME.
19540# PREFIX and SUFFIX must not contain globbing or regex special
19541# characters, hashes, percent signs, but SUFFIX may contain a leading
19542# dot (in which case that matches only a dot).
19543func_stripname ()
19544{
19545 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19546 # positional parameters, so assign one to ordinary parameter first.
19547 func_stripname_result=${3}
19548 func_stripname_result=${func_stripname_result#"${1}"}
19549 func_stripname_result=${func_stripname_result%"${2}"}
19550}
19551
19552# func_opt_split
19553func_opt_split ()
19554{
19555 func_opt_split_opt=${1%%=*}
19556 func_opt_split_arg=${1#*=}
19557}
19558
19559# func_lo2o object
19560func_lo2o ()
19561{
19562 case ${1} in
19563 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19564 *) func_lo2o_result=${1} ;;
19565 esac
19566}
b214d478
SE
19567
19568# func_xform libobj-or-source
19569func_xform ()
19570{
19571 func_xform_result=${1%.*}.lo
19572}
19573
19574# func_arith arithmetic-term...
19575func_arith ()
19576{
19577 func_arith_result=$(( $* ))
19578}
19579
19580# func_len string
19581# STRING may not start with a hyphen.
19582func_len ()
19583{
19584 func_len_result=${#1}
19585}
19586
d7040cdb
SE
19587_LT_EOF
19588 ;;
19589 *) # Bourne compatible functions.
19590 cat << \_LT_EOF >> "$cfgfile"
b214d478 19591
d7040cdb
SE
19592# func_dirname file append nondir_replacement
19593# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19594# otherwise set result to NONDIR_REPLACEMENT.
19595func_dirname ()
19596{
19597 # Extract subdirectory from the argument.
3725885a 19598 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19599 if test "X$func_dirname_result" = "X${1}"; then
19600 func_dirname_result="${3}"
19601 else
19602 func_dirname_result="$func_dirname_result${2}"
19603 fi
19604}
19605
19606# func_basename file
19607func_basename ()
19608{
3725885a 19609 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19610}
19611
b214d478 19612
d7040cdb
SE
19613# func_stripname prefix suffix name
19614# strip PREFIX and SUFFIX off of NAME.
19615# PREFIX and SUFFIX must not contain globbing or regex special
19616# characters, hashes, percent signs, but SUFFIX may contain a leading
19617# dot (in which case that matches only a dot).
19618# func_strip_suffix prefix name
19619func_stripname ()
19620{
19621 case ${2} in
3725885a
RW
19622 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19623 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19624 esac
19625}
19626
19627# sed scripts:
19628my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19629my_sed_long_arg='1s/^-[^=]*=//'
19630
19631# func_opt_split
19632func_opt_split ()
19633{
3725885a
RW
19634 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19635 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19636}
19637
19638# func_lo2o object
19639func_lo2o ()
19640{
3725885a 19641 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19642}
b214d478
SE
19643
19644# func_xform libobj-or-source
19645func_xform ()
19646{
3725885a 19647 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19648}
19649
19650# func_arith arithmetic-term...
19651func_arith ()
19652{
19653 func_arith_result=`expr "$@"`
19654}
19655
19656# func_len string
19657# STRING may not start with a hyphen.
19658func_len ()
19659{
19660 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19661}
19662
d7040cdb
SE
19663_LT_EOF
19664esac
19665
19666case $lt_shell_append in
19667 yes)
19668 cat << \_LT_EOF >> "$cfgfile"
19669
19670# func_append var value
19671# Append VALUE to the end of shell variable VAR.
19672func_append ()
19673{
19674 eval "$1+=\$2"
19675}
19676_LT_EOF
19677 ;;
19678 *)
19679 cat << \_LT_EOF >> "$cfgfile"
19680
19681# func_append var value
19682# Append VALUE to the end of shell variable VAR.
19683func_append ()
19684{
19685 eval "$1=\$$1\$2"
19686}
b214d478 19687
d7040cdb
SE
19688_LT_EOF
19689 ;;
19690 esac
19691
19692
19693 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19694 || (rm -f "$cfgfile"; exit 1)
19695
19696 mv -f "$cfgfile" "$ofile" ||
19697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19698 chmod +x "$ofile"
19699
3cb62297
L
19700
19701 cat <<_LT_EOF >> "$ofile"
19702
19703# ### BEGIN LIBTOOL TAG CONFIG: CXX
19704
19705# The linker used to build libraries.
19706LD=$lt_LD_CXX
19707
19708# How to create reloadable object files.
19709reload_flag=$lt_reload_flag_CXX
19710reload_cmds=$lt_reload_cmds_CXX
19711
19712# Commands used to build an old-style archive.
19713old_archive_cmds=$lt_old_archive_cmds_CXX
19714
19715# A language specific compiler.
19716CC=$lt_compiler_CXX
19717
19718# Is the compiler the GNU compiler?
19719with_gcc=$GCC_CXX
19720
19721# Compiler flag to turn off builtin functions.
19722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19723
19724# How to pass a linker flag through the compiler.
19725wl=$lt_lt_prog_compiler_wl_CXX
19726
19727# Additional compiler flags for building library objects.
19728pic_flag=$lt_lt_prog_compiler_pic_CXX
19729
19730# Compiler flag to prevent dynamic linking.
19731link_static_flag=$lt_lt_prog_compiler_static_CXX
19732
19733# Does compiler simultaneously support -c and -o options?
19734compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19735
19736# Whether or not to add -lc for building shared libraries.
19737build_libtool_need_lc=$archive_cmds_need_lc_CXX
19738
19739# Whether or not to disallow shared libs when runtime libs are static.
19740allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19741
19742# Compiler flag to allow reflexive dlopens.
19743export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19744
19745# Compiler flag to generate shared objects directly from archives.
19746whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19747
19748# Whether the compiler copes with passing no objects directly.
19749compiler_needs_object=$lt_compiler_needs_object_CXX
19750
19751# Create an old-style archive from a shared archive.
19752old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19753
19754# Create a temporary old-style archive to link instead of a shared archive.
19755old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19756
19757# Commands used to build a shared archive.
19758archive_cmds=$lt_archive_cmds_CXX
19759archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19760
19761# Commands used to build a loadable module if different from building
19762# a shared archive.
19763module_cmds=$lt_module_cmds_CXX
19764module_expsym_cmds=$lt_module_expsym_cmds_CXX
19765
19766# Whether we are building with GNU ld or not.
19767with_gnu_ld=$lt_with_gnu_ld_CXX
19768
19769# Flag that allows shared libraries with undefined symbols to be built.
19770allow_undefined_flag=$lt_allow_undefined_flag_CXX
19771
19772# Flag that enforces no undefined symbols.
19773no_undefined_flag=$lt_no_undefined_flag_CXX
19774
19775# Flag to hardcode \$libdir into a binary during linking.
19776# This must work even if \$libdir does not exist
19777hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19778
19779# If ld is used when linking, flag to hardcode \$libdir into a binary
19780# during linking. This must work even if \$libdir does not exist.
19781hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19782
19783# Whether we need a single "-rpath" flag with a separated argument.
19784hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19785
19786# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19787# DIR into the resulting binary.
19788hardcode_direct=$hardcode_direct_CXX
19789
19790# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19791# DIR into the resulting binary and the resulting library dependency is
19792# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19793# library is relocated.
19794hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19795
19796# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19797# into the resulting binary.
19798hardcode_minus_L=$hardcode_minus_L_CXX
19799
19800# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19801# into the resulting binary.
19802hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19803
19804# Set to "yes" if building a shared library automatically hardcodes DIR
19805# into the library and all subsequent libraries and executables linked
19806# against it.
19807hardcode_automatic=$hardcode_automatic_CXX
19808
19809# Set to yes if linker adds runtime paths of dependent libraries
19810# to runtime path list.
19811inherit_rpath=$inherit_rpath_CXX
19812
19813# Whether libtool must link a program against all its dependency libraries.
19814link_all_deplibs=$link_all_deplibs_CXX
19815
19816# Fix the shell variable \$srcfile for the compiler.
19817fix_srcfile_path=$lt_fix_srcfile_path_CXX
19818
19819# Set to "yes" if exported symbols are required.
19820always_export_symbols=$always_export_symbols_CXX
19821
19822# The commands to list exported symbols.
19823export_symbols_cmds=$lt_export_symbols_cmds_CXX
19824
19825# Symbols that should not be listed in the preloaded symbols.
19826exclude_expsyms=$lt_exclude_expsyms_CXX
19827
19828# Symbols that must always be exported.
19829include_expsyms=$lt_include_expsyms_CXX
19830
19831# Commands necessary for linking programs (against libraries) with templates.
19832prelink_cmds=$lt_prelink_cmds_CXX
19833
19834# Specify filename containing input files.
19835file_list_spec=$lt_file_list_spec_CXX
19836
19837# How to hardcode a shared library path into an executable.
19838hardcode_action=$hardcode_action_CXX
19839
19840# The directories searched by this compiler when creating a shared library.
19841compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19842
19843# Dependencies to place before and after the objects being linked to
19844# create a shared library.
19845predep_objects=$lt_predep_objects_CXX
19846postdep_objects=$lt_postdep_objects_CXX
19847predeps=$lt_predeps_CXX
19848postdeps=$lt_postdeps_CXX
19849
19850# The library search path used internally by the compiler when linking
19851# a shared library.
19852compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19853
19854# ### END LIBTOOL TAG CONFIG: CXX
19855_LT_EOF
19856
42ecbf5e 19857 ;;
81ecdfbb 19858 "default-1":C)
20e95c23
DJ
19859 for ac_file in $CONFIG_FILES; do
19860 # Support "outfile[:infile[:infile...]]"
19861 case "$ac_file" in
19862 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19863 esac
19864 # PO directories have a Makefile.in generated from Makefile.in.in.
19865 case "$ac_file" in */Makefile.in)
19866 # Adjust a relative srcdir.
19867 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19868 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19869 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19870 # In autoconf-2.13 it is called $ac_given_srcdir.
19871 # In autoconf-2.50 it is called $srcdir.
19872 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19873 case "$ac_given_srcdir" in
19874 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19875 /*) top_srcdir="$ac_given_srcdir" ;;
19876 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19877 esac
19878 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19879 rm -f "$ac_dir/POTFILES"
19880 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19881 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19882 POMAKEFILEDEPS="POTFILES.in"
19883 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19884 # on $ac_dir but don't depend on user-specified configuration
19885 # parameters.
19886 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19887 # The LINGUAS file contains the set of available languages.
19888 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 19889 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
19890 fi
19891 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19892 # Hide the ALL_LINGUAS assigment from automake.
19893 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19894 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19895 else
37a42ee9 19896 # The set of available languages was given in configure.ac.
20e95c23
DJ
19897 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19898 fi
19899 case "$ac_given_srcdir" in
19900 .) srcdirpre= ;;
19901 *) srcdirpre='$(srcdir)/' ;;
19902 esac
19903 POFILES=
19904 GMOFILES=
19905 UPDATEPOFILES=
19906 DUMMYPOFILES=
19907 for lang in $ALL_LINGUAS; do
19908 POFILES="$POFILES $srcdirpre$lang.po"
19909 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19910 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19911 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19912 done
19913 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19914 # environment variable.
19915 INST_LINGUAS=
19916 if test -n "$ALL_LINGUAS"; then
19917 for presentlang in $ALL_LINGUAS; do
19918 useit=no
19919 if test "%UNSET%" != "$LINGUAS"; then
19920 desiredlanguages="$LINGUAS"
19921 else
19922 desiredlanguages="$ALL_LINGUAS"
19923 fi
19924 for desiredlang in $desiredlanguages; do
19925 # Use the presentlang catalog if desiredlang is
19926 # a. equal to presentlang, or
19927 # b. a variant of presentlang (because in this case,
19928 # presentlang can be used as a fallback for messages
19929 # which are not translated in the desiredlang catalog).
19930 case "$desiredlang" in
19931 "$presentlang"*) useit=yes;;
19932 esac
19933 done
19934 if test $useit = yes; then
19935 INST_LINGUAS="$INST_LINGUAS $presentlang"
19936 fi
19937 done
19938 fi
19939 CATALOGS=
19940 if test -n "$INST_LINGUAS"; then
19941 for lang in $INST_LINGUAS; do
19942 CATALOGS="$CATALOGS $lang.gmo"
19943 done
19944 fi
19945 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19946 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"
19947 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19948 if test -f "$f"; then
19949 case "$f" in
19950 *.orig | *.bak | *~) ;;
19951 *) cat "$f" >> "$ac_dir/Makefile" ;;
19952 esac
19953 fi
19954 done
19955 fi
19956 ;;
19957 esac
19958 done ;;
81ecdfbb 19959
42ecbf5e 19960 esac
81ecdfbb 19961done # for ac_tag
42ecbf5e 19962
42ecbf5e 19963
81ecdfbb 19964as_fn_exit 0
42ecbf5e 19965_ACEOF
42ecbf5e
DJ
19966ac_clean_files=$ac_clean_files_save
19967
81ecdfbb
RW
19968test $ac_write_fail = 0 ||
19969 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19970
42ecbf5e
DJ
19971
19972# configure is writing to config.log, and then calls config.status.
19973# config.status does its own redirection, appending to config.log.
19974# Unfortunately, on DOS this fails, as config.log is still kept open
19975# by configure, so config.status won't be able to write to it; its
19976# output is simply discarded. So we exec the FD to /dev/null,
19977# effectively closing config.log, so it can be properly (re)opened and
19978# appended to by config.status. When coming back to configure, we
19979# need to make the FD available again.
19980if test "$no_create" != yes; then
19981 ac_cs_success=:
19982 ac_config_status_args=
19983 test "$silent" = yes &&
19984 ac_config_status_args="$ac_config_status_args --quiet"
19985 exec 5>/dev/null
19986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19987 exec 5>>config.log
19988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19989 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19990 $ac_cs_success || as_fn_exit $?
19991fi
19992if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19994$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19995fi
252b5132 19996
This page took 1.918013 seconds and 4 git commands to generate.