Factorize target program transformations in the GDB_AC_TRANSFORM macro.
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
91dc4e0a 3# Generated by GNU Autoconf 2.64 for ld 2.25.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
42ecbf5e 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
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'
91dc4e0a
TG
559PACKAGE_VERSION='2.25.51'
560PACKAGE_STRING='ld 2.25.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
611STRINGIFY
02ecc8e9 612enable_initfini_array
5d3236ee
DK
613ENABLE_PLUGINS_FALSE
614ENABLE_PLUGINS_TRUE
81ecdfbb 615NATIVE_LIB_DIRS
b27caf75 616HOSTING_SLIBS
81ecdfbb 617HOSTING_LIBS
6738cadc 618HOSTING_SCRT0
81ecdfbb
RW
619HOSTING_CRT0
620HDEFINES
621do_compare
622GENINSRC_NEVER_FALSE
623GENINSRC_NEVER_TRUE
81ecdfbb
RW
624LEXLIB
625LEX_OUTPUT_ROOT
626LEX
627YFLAGS
628YACC
629MSGMERGE
630MSGFMT
631MKINSTALLDIRS
632CATOBJEXT
633GENCAT
634INSTOBJEXT
635DATADIRNAME
636CATALOGS
637POSUB
638GMSGFMT
639XGETTEXT
640INCINTL
641LIBINTL_DEP
642LIBINTL
643USE_NLS
b879806f
AM
644NO_WERROR
645WARN_CFLAGS
646installed_linker
647install_as_default
648TARGET_SYSTEM_ROOT_DEFINE
649TARGET_SYSTEM_ROOT
650use_sysroot
3cb62297 651CXXCPP
81ecdfbb
RW
652OTOOL64
653OTOOL
654LIPO
655NMEDIT
656DSYMUTIL
81ecdfbb
RW
657RANLIB
658AR
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667LIBTOOL
b879806f
AM
668EGREP
669GREP
670CPP
3cb62297
L
671am__fastdepCXX_FALSE
672am__fastdepCXX_TRUE
673CXXDEPMODE
674ac_ct_CXX
675CXXFLAGS
676CXX
64ac50ac
RW
677MAINT
678MAINTAINER_MODE_FALSE
679MAINTAINER_MODE_TRUE
81ecdfbb
RW
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683AMDEPBACKSLASH
684AMDEP_FALSE
685AMDEP_TRUE
686am__quote
687am__include
688DEPDIR
689am__untar
690am__tar
691AMTAR
692am__leading_dot
693SET_MAKE
694AWK
695mkdir_p
696MKDIR_P
697INSTALL_STRIP_PROGRAM
698STRIP
699install_sh
700MAKEINFO
701AUTOHEADER
702AUTOMAKE
703AUTOCONF
704ACLOCAL
705VERSION
706PACKAGE
707CYGPATH_W
708am__isrc
709INSTALL_DATA
710INSTALL_SCRIPT
711INSTALL_PROGRAM
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
42ecbf5e 769ac_subst_files='TDIRS'
81ecdfbb
RW
770ac_user_opts='
771enable_option_checking
772enable_dependency_tracking
64ac50ac 773enable_maintainer_mode
b879806f
AM
774enable_shared
775enable_static
776with_pic
777enable_fast_install
778with_gnu_ld
779enable_libtool_lock
780enable_plugins
781enable_largefile
81ecdfbb
RW
782with_lib_path
783enable_targets
784enable_64_bit_bfd
785with_sysroot
4fda8867 786enable_gold
81ecdfbb
RW
787enable_got
788enable_werror
789enable_build_warnings
81ecdfbb 790enable_nls
02ecc8e9 791enable_initfini_array
52546677 792with_zlib
81ecdfbb
RW
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
3cb62297
L
802CXX
803CXXFLAGS
804CCC
b879806f 805CPP
3cb62297 806CXXCPP
81ecdfbb
RW
807YACC
808YFLAGS'
809
252b5132
RH
810
811# Initialize some variables set by options.
42ecbf5e
DJ
812ac_init_help=
813ac_init_version=false
81ecdfbb
RW
814ac_unrecognized_opts=
815ac_unrecognized_sep=
252b5132
RH
816# The variables have the same names as the options, with
817# dashes changed to underlines.
42ecbf5e 818cache_file=/dev/null
252b5132 819exec_prefix=NONE
252b5132 820no_create=
252b5132
RH
821no_recursion=
822prefix=NONE
823program_prefix=NONE
824program_suffix=NONE
825program_transform_name=s,x,x,
826silent=
827site=
828srcdir=
252b5132
RH
829verbose=
830x_includes=NONE
831x_libraries=NONE
42ecbf5e
DJ
832
833# Installation directory options.
834# These are left unexpanded so users can "make install exec_prefix=/foo"
835# and all the variables that are supposed to be based on exec_prefix
836# by default will actually change.
837# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 838# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
839bindir='${exec_prefix}/bin'
840sbindir='${exec_prefix}/sbin'
841libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
842datarootdir='${prefix}/share'
843datadir='${datarootdir}'
252b5132
RH
844sysconfdir='${prefix}/etc'
845sharedstatedir='${prefix}/com'
846localstatedir='${prefix}/var'
252b5132
RH
847includedir='${prefix}/include'
848oldincludedir='/usr/include'
2e98a7bd 849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
850infodir='${datarootdir}/info'
851htmldir='${docdir}'
852dvidir='${docdir}'
853pdfdir='${docdir}'
854psdir='${docdir}'
855libdir='${exec_prefix}/lib'
856localedir='${datarootdir}/locale'
857mandir='${datarootdir}/man'
252b5132 858
252b5132 859ac_prev=
81ecdfbb 860ac_dashdash=
252b5132
RH
861for ac_option
862do
252b5132
RH
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
81ecdfbb 865 eval $ac_prev=\$ac_option
252b5132
RH
866 ac_prev=
867 continue
868 fi
869
81ecdfbb
RW
870 case $ac_option in
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *) ac_optarg=yes ;;
873 esac
252b5132
RH
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
81ecdfbb
RW
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
252b5132
RH
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 884 bindir=$ac_optarg ;;
252b5132
RH
885
886 -build | --build | --buil | --bui | --bu)
42ecbf5e 887 ac_prev=build_alias ;;
252b5132 888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 889 build_alias=$ac_optarg ;;
252b5132
RH
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
252b5132 900
81ecdfbb 901 -datadir | --datadir | --datadi | --datad)
252b5132 902 ac_prev=datadir ;;
81ecdfbb 903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 904 datadir=$ac_optarg ;;
252b5132 905
81ecdfbb
RW
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
252b5132 913 -disable-* | --disable-*)
81ecdfbb 914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 915 # Reject names that are not valid shell variable names.
81ecdfbb
RW
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
252b5132
RH
938
939 -enable-* | --enable-*)
81ecdfbb 940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 941 # Reject names that are not valid shell variable names.
81ecdfbb
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
252b5132 952 esac
81ecdfbb 953 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
42ecbf5e 962 exec_prefix=$ac_optarg ;;
252b5132
RH
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
42ecbf5e
DJ
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
252b5132
RH
974
975 -host | --host | --hos | --ho)
42ecbf5e 976 ac_prev=host_alias ;;
252b5132 977 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 978 host_alias=$ac_optarg ;;
252b5132 979
81ecdfbb
RW
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
252b5132
RH
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 991 includedir=$ac_optarg ;;
252b5132
RH
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 996 infodir=$ac_optarg ;;
252b5132
RH
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1001 libdir=$ac_optarg ;;
252b5132
RH
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1008 libexecdir=$ac_optarg ;;
252b5132 1009
81ecdfbb
RW
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
252b5132 1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1016 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1020 localstatedir=$ac_optarg ;;
252b5132
RH
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1025 mandir=$ac_optarg ;;
252b5132
RH
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1032 | --no-cr | --no-c | -n)
252b5132
RH
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1046 oldincludedir=$ac_optarg ;;
252b5132
RH
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1051 prefix=$ac_optarg ;;
252b5132
RH
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1058 program_prefix=$ac_optarg ;;
252b5132
RH
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1065 program_suffix=$ac_optarg ;;
252b5132
RH
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1082 program_transform_name=$ac_optarg ;;
252b5132 1083
81ecdfbb
RW
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
252b5132
RH
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
42ecbf5e 1102 sbindir=$ac_optarg ;;
252b5132
RH
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
42ecbf5e 1113 sharedstatedir=$ac_optarg ;;
252b5132
RH
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
42ecbf5e 1118 site=$ac_optarg ;;
85fbca6a 1119
252b5132
RH
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1123 srcdir=$ac_optarg ;;
252b5132
RH
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1130 sysconfdir=$ac_optarg ;;
252b5132
RH
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1133 ac_prev=target_alias ;;
252b5132 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1135 target_alias=$ac_optarg ;;
252b5132
RH
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
42ecbf5e
DJ
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
252b5132
RH
1142
1143 -with-* | --with-*)
81ecdfbb 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1145 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
252b5132 1156 esac
81ecdfbb 1157 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1158
1159 -without-* | --without-*)
81ecdfbb 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1161 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
252b5132
RH
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1184 x_includes=$ac_optarg ;;
252b5132
RH
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1191 x_libraries=$ac_optarg ;;
252b5132 1192
81ecdfbb
RW
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information."
252b5132
RH
1195 ;;
1196
42ecbf5e
DJ
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1205 export $ac_envvar ;;
1206
252b5132 1207 *)
42ecbf5e 1208 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1213 ;;
1214
1215 esac
1216done
1217
1218if test -n "$ac_prev"; then
42ecbf5e 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1220 as_fn_error "missing argument to $ac_option"
252b5132 1221fi
252b5132 1222
81ecdfbb
RW
1223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1228 esac
81ecdfbb 1229fi
252b5132 1230
81ecdfbb
RW
1231# Check all directory arguments for consistency.
1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
252b5132 1236do
81ecdfbb
RW
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
42ecbf5e 1245 case $ac_val in
81ecdfbb
RW
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1248 esac
81ecdfbb 1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1250done
1251
42ecbf5e
DJ
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
81ecdfbb 1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268fi
e5a52504 1269
42ecbf5e
DJ
1270ac_tool_prefix=
1271test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273test "$silent" = yes && exec 6>/dev/null
252b5132 1274
252b5132 1275
81ecdfbb
RW
1276ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277ac_ls_di=`ls -di .` &&
1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1282
1283
252b5132
RH
1284# Find the source files, if location was not specified.
1285if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
81ecdfbb
RW
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293$as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
252b5132 1311 srcdir=$ac_confdir
81ecdfbb 1312 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1313 srcdir=..
1314 fi
1315else
1316 ac_srcdir_defaulted=no
1317fi
81ecdfbb
RW
1318if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321fi
1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325 pwd)`
1326# When building in place, set srcdir=.
1327if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329fi
1330# Remove unnecessary trailing slashes from srcdir.
1331# Double slashes in file names in object file debugging info
1332# mess up M-x gdb in Emacs.
1333case $srcdir in
1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335esac
1336for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341done
252b5132 1342
42ecbf5e
DJ
1343#
1344# Report the --help message.
1345#
1346if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
91dc4e0a 1350\`configure' configures ld 2.25.51 to adapt to many kinds of systems.
252b5132 1351
42ecbf5e 1352Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1353
42ecbf5e
DJ
1354To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1356
42ecbf5e 1357Defaults for the options are specified in brackets.
ac48eca1 1358
42ecbf5e
DJ
1359Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369
42ecbf5e
DJ
1370Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1372 [$ac_default_prefix]
42ecbf5e 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1374 [PREFIX]
ac48eca1 1375
42ecbf5e
DJ
1376By default, \`make install' will install all the files in
1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379for instance \`--prefix=\$HOME'.
ac48eca1 1380
42ecbf5e 1381For better control, use the options below.
ac48eca1 1382
42ecbf5e 1383Fine tuning of the installation directories:
81ecdfbb
RW
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1398 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1403_ACEOF
ac48eca1 1404
42ecbf5e 1405 cat <<\_ACEOF
252b5132 1406
42ecbf5e
DJ
1407Program names:
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1411
42ecbf5e
DJ
1412System types:
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1416_ACEOF
252b5132 1417fi
252b5132 1418
42ecbf5e 1419if test -n "$ac_init_help"; then
2e98a7bd 1420 case $ac_init_help in
91dc4e0a 1421 short | recursive ) echo "Configuration of ld 2.25.51:";;
2e98a7bd 1422 esac
42ecbf5e 1423 cat <<\_ACEOF
e5a52504 1424
42ecbf5e 1425Optional Features:
81ecdfbb 1426 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --disable-dependency-tracking speeds up one-time build
1430 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1431 --enable-maintainer-mode enable make rules and dependencies not useful
1432 (and sometimes confusing) to the casual installer
b879806f
AM
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-plugins Enable support for plugins
1439 --disable-largefile omit support for large files
ce2cded5
L
1440 --enable-targets alternative target configurations
1441 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1442 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1443 --enable-got=<type> GOT handling scheme (target, single, negative,
1444 multigot)
ce2cded5
L
1445 --enable-werror treat compile warnings as errors
1446 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1447 --disable-nls do not use Native Language Support
02ecc8e9 1448 --enable-initfini-array use .init_array/.fini_array sections
42ecbf5e
DJ
1449
1450Optional Packages:
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1453 --with-pic try to use only PIC/non-PIC objects [default=use
1454 both]
1455 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1456 --with-lib-path=dir1:dir2... set default LIB_PATH
1457 --with-sysroot=DIR Search for usr/lib et al within DIR.
52546677 1458 --with-zlib include zlib support (auto/yes/no) default=auto
42ecbf5e
DJ
1459
1460Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
81ecdfbb
RW
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
3cb62297
L
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
b879806f 1470 CPP C preprocessor
3cb62297 1471 CXXCPP C++ preprocessor
81ecdfbb
RW
1472 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1473 the first program found out of: `bison -y', `byacc', `yacc'.
1474 YFLAGS The list of arguments that will be passed by default to $YACC.
1475 This script will default YFLAGS to the empty string to avoid a
1476 default value of `-d' given by some make applications.
42ecbf5e
DJ
1477
1478Use these variables to override the choices made by `configure' or to help
1479it to find libraries and programs with nonstandard names/locations.
1480
81ecdfbb 1481Report bugs to the package provider.
42ecbf5e 1482_ACEOF
81ecdfbb 1483ac_status=$?
42ecbf5e
DJ
1484fi
1485
1486if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
42ecbf5e 1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
42ecbf5e
DJ
1492 ac_builddir=.
1493
81ecdfbb
RW
1494case "$ac_dir" in
1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496*)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504esac
1505ac_abs_top_builddir=$ac_pwd
1506ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507# for backward compatibility:
1508ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1509
1510case $srcdir in
81ecdfbb 1511 .) # We are building in place.
42ecbf5e 1512 ac_srcdir=.
81ecdfbb
RW
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1516 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1523esac
81ecdfbb
RW
1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1534 else
81ecdfbb
RW
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1538 done
a2d91340
AC
1539fi
1540
81ecdfbb 1541test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1542if $ac_init_version; then
1543 cat <<\_ACEOF
91dc4e0a 1544ld configure 2.25.51
81ecdfbb 1545generated by GNU Autoconf 2.64
a2d91340 1546
81ecdfbb 1547Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1548This configure script is free software; the Free Software Foundation
1549gives unlimited permission to copy, distribute and modify it.
1550_ACEOF
81ecdfbb 1551 exit
42ecbf5e 1552fi
a2d91340 1553
81ecdfbb
RW
1554## ------------------------ ##
1555## Autoconf initialization. ##
1556## ------------------------ ##
a2d91340 1557
81ecdfbb
RW
1558# ac_fn_c_try_compile LINENO
1559# --------------------------
1560# Try to compile conftest.$ac_ext, and return whether this succeeded.
1561ac_fn_c_try_compile ()
1562{
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569esac
1570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571$as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585else
1586 $as_echo "$as_me: failed program was:" >&5
1587sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1588
81ecdfbb
RW
1589 ac_retval=1
1590fi
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 return $ac_retval
1593
1594} # ac_fn_c_try_compile
1595
1596# ac_fn_c_try_link LINENO
1597# -----------------------
1598# Try to link conftest.$ac_ext, and return whether this succeeded.
1599ac_fn_c_try_link ()
42ecbf5e 1600{
81ecdfbb
RW
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1604case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 $as_test_x conftest$ac_exeext
1624 }; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1629
81ecdfbb
RW
1630 ac_retval=1
1631fi
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 return $ac_retval
42ecbf5e 1639
81ecdfbb 1640} # ac_fn_c_try_link
42ecbf5e 1641
b879806f
AM
1642# ac_fn_cxx_try_compile LINENO
1643# ----------------------------
1644# Try to compile conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_cxx_try_compile ()
81ecdfbb
RW
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
81ecdfbb
RW
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
b879806f 1656 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1666 test ! -s conftest.err
b879806f 1667 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
b879806f 1673 ac_retval=1
81ecdfbb
RW
1674fi
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 return $ac_retval
1677
b879806f 1678} # ac_fn_cxx_try_compile
81ecdfbb 1679
b879806f
AM
1680# ac_fn_c_try_cpp LINENO
1681# ----------------------
1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_cpp ()
3cb62297
L
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
b879806f 1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1701 test $ac_status = 0; } >/dev/null && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1703 test ! -s conftest.err
b879806f 1704 }; then :
3cb62297
L
1705 ac_retval=0
1706else
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
b879806f 1710 ac_retval=1
3cb62297
L
1711fi
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 return $ac_retval
1714
b879806f 1715} # ac_fn_c_try_cpp
3cb62297 1716
81ecdfbb
RW
1717# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718# -------------------------------------------------------
1719# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720# the include files in INCLUDES and setting the cache variable VAR
1721# accordingly.
1722ac_fn_c_check_header_mongrel ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727$as_echo_n "checking for $2... " >&6; }
1728if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1730fi
1731eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733$as_echo "$ac_res" >&6; }
1734else
1735 # Is the header compilable?
1736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737$as_echo_n "checking $2 usability... " >&6; }
1738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h. */
1740$4
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1745else
1746 ac_header_compiler=no
1747fi
1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750$as_echo "$ac_header_compiler" >&6; }
1751
1752# Is the header present?
1753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754$as_echo_n "checking $2 presence... " >&6; }
1755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h. */
1757#include <$2>
1758_ACEOF
1759if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1761else
1762 ac_header_preproc=no
1763fi
1764rm -f conftest.err conftest.$ac_ext
1765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766$as_echo "$ac_header_preproc" >&6; }
1767
1768# So? What about this header?
1769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1770 yes:no: )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775 ;;
1776 no:yes:* )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ;;
1788esac
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
1791if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1793else
1794 eval "$3=\$ac_header_compiler"
1795fi
1796eval ac_res=\$$3
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798$as_echo "$ac_res" >&6; }
1799fi
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802} # ac_fn_c_check_header_mongrel
1803
1804# ac_fn_c_try_run LINENO
1805# ----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1807# that executables *can* be run.
1808ac_fn_c_try_run ()
1809{
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_link") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1822 { { case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_try") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; }; }; then :
1832 ac_retval=0
1833else
1834 $as_echo "$as_me: program exited with status $ac_status" >&5
1835 $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838 ac_retval=$ac_status
1839fi
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1843
1844} # ac_fn_c_try_run
1845
1846# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847# -------------------------------------------------------
1848# Tests whether HEADER exists and can be compiled using the include files in
1849# INCLUDES, setting the cache variable VAR accordingly.
1850ac_fn_c_check_header_compile ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860$4
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 eval "$3=yes"
1865else
1866 eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875} # ac_fn_c_check_header_compile
1876
1877# ac_fn_c_check_func LINENO FUNC VAR
1878# ----------------------------------
1879# Tests whether FUNC exists, setting the cache variable VAR accordingly
1880ac_fn_c_check_func ()
1881{
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884$as_echo_n "checking for $2... " >&6; }
1885if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887else
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892#define $2 innocuous_$2
1893
1894/* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1898
1899#ifdef __STDC__
1900# include <limits.h>
1901#else
1902# include <assert.h>
1903#endif
1904
1905#undef $2
1906
1907/* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1910#ifdef __cplusplus
1911extern "C"
1912#endif
1913char $2 ();
1914/* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917#if defined __stub_$2 || defined __stub___$2
1918choke me
1919#endif
1920
1921int
1922main ()
1923{
1924return $2 ();
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929if ac_fn_c_try_link "$LINENO"; then :
1930 eval "$3=yes"
1931else
1932 eval "$3=no"
1933fi
1934rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1936fi
1937eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939$as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942} # ac_fn_c_check_func
1943
3cb62297
L
1944# ac_fn_cxx_try_cpp LINENO
1945# ------------------------
1946# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947ac_fn_cxx_try_cpp ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1963 fi
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } >/dev/null && {
1966 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1967 test ! -s conftest.err
1968 }; then :
1969 ac_retval=0
1970else
1971 $as_echo "$as_me: failed program was:" >&5
1972sed 's/^/| /' conftest.$ac_ext >&5
1973
1974 ac_retval=1
1975fi
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 return $ac_retval
1978
1979} # ac_fn_cxx_try_cpp
1980
1981# ac_fn_cxx_try_link LINENO
1982# -------------------------
1983# Try to link conftest.$ac_ext, and return whether this succeeded.
1984ac_fn_cxx_try_link ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 rm -f conftest.$ac_objext conftest$ac_exeext
1988 if { { ac_try="$ac_link"
1989case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992esac
1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994$as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_link") 2>conftest.err
1996 ac_status=$?
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2001 fi
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest$ac_exeext && {
2007 test "$cross_compiling" = yes ||
2008 $as_test_x conftest$ac_exeext
2009 }; then :
2010 ac_retval=0
2011else
2012 $as_echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_retval=1
2016fi
2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2019 # interfere with the next link command; also delete a directory that is
2020 # left behind by Apple's compiler. We do this before executing the actions.
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 return $ac_retval
2024
2025} # ac_fn_cxx_try_link
2026
81ecdfbb
RW
2027# ac_fn_c_check_decl LINENO SYMBOL VAR
2028# ------------------------------------
2029# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2030ac_fn_c_check_decl ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2033 as_decl_name=`echo $2|sed 's/ *(.*//'`
2034 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2036$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2037if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2038 $as_echo_n "(cached) " >&6
2039else
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h. */
2042$4
2043int
2044main ()
2045{
360cfc9c
AM
2046#ifndef $as_decl_name
2047#ifdef __cplusplus
2048 (void) $as_decl_use;
2049#else
2050 (void) $as_decl_name;
2051#endif
81ecdfbb
RW
2052#endif
2053
2054 ;
2055 return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059 eval "$3=yes"
2060else
2061 eval "$3=no"
2062fi
2063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064fi
2065eval ac_res=\$$3
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067$as_echo "$ac_res" >&6; }
2068 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070} # ac_fn_c_check_decl
2071
2072# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2073# --------------------------------------------
2074# Tries to find the compile-time value of EXPR in a program that includes
2075# INCLUDES, setting VAR accordingly. Returns whether the value could be
2076# computed
2077ac_fn_c_compute_int ()
2078{
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if test "$cross_compiling" = yes; then
2081 # Depending upon the size, compute the lo and hi bounds.
2082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088static int test_array [1 - 2 * !(($2) >= 0)];
2089test_array [0] = 0
2090
2091 ;
2092 return 0;
2093}
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_lo=0 ac_mid=0
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100$4
2101int
2102main ()
2103{
2104static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105test_array [0] = 0
2106
2107 ;
2108 return 0;
2109}
2110_ACEOF
2111if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2118 fi
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125/* end confdefs.h. */
2126$4
2127int
2128main ()
2129{
2130static int test_array [1 - 2 * !(($2) < 0)];
2131test_array [0] = 0
2132
2133 ;
2134 return 0;
2135}
2136_ACEOF
2137if ac_fn_c_try_compile "$LINENO"; then :
2138 ac_hi=-1 ac_mid=-1
2139 while :; do
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$4
2143int
2144main ()
2145{
2146static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2147test_array [0] = 0
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=$ac_mid; break
2155else
2156 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2157 if test $ac_mid -le $ac_hi; then
2158 ac_lo= ac_hi=
2159 break
2160 fi
2161 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 done
2165else
2166 ac_lo= ac_hi=
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169fi
2170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171# Binary search between lo and hi bounds.
2172while test "x$ac_lo" != "x$ac_hi"; do
2173 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181test_array [0] = 0
2182
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_hi=$ac_mid
2189else
2190 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193done
2194case $ac_lo in #((
2195?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2196'') ac_retval=1 ;;
2197esac
2198 else
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202static long int longval () { return $2; }
2203static unsigned long int ulongval () { return $2; }
2204#include <stdio.h>
2205#include <stdlib.h>
2206int
2207main ()
2208{
2209
2210 FILE *f = fopen ("conftest.val", "w");
2211 if (! f)
2212 return 1;
2213 if (($2) < 0)
2214 {
2215 long int i = longval ();
2216 if (i != ($2))
2217 return 1;
2218 fprintf (f, "%ld", i);
2219 }
2220 else
2221 {
2222 unsigned long int i = ulongval ();
2223 if (i != ($2))
2224 return 1;
2225 fprintf (f, "%lu", i);
2226 }
2227 /* Do not output a trailing newline, as this causes \r\n confusion
2228 on some platforms. */
2229 return ferror (f) || fclose (f) != 0;
2230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_run "$LINENO"; then :
2236 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2237else
2238 ac_retval=1
2239fi
2240rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2241 conftest.$ac_objext conftest.beam conftest.$ac_ext
2242rm -f conftest.val
2243
2244 fi
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2247
2248} # ac_fn_c_compute_int
2249cat >config.log <<_ACEOF
2250This file contains any messages produced by compilers while
2251running configure, to aid debugging if configure makes a mistake.
2252
91dc4e0a 2253It was created by ld $as_me 2.25.51, which was
81ecdfbb
RW
2254generated by GNU Autoconf 2.64. Invocation command line was
2255
2256 $ $0 $@
2257
2258_ACEOF
2259exec 5>>config.log
2260{
2261cat <<_ASUNAME
2262## --------- ##
2263## Platform. ##
2264## --------- ##
2265
2266hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274
2275/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2279/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282
2283_ASUNAME
2284
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2290 $as_echo "PATH: $as_dir"
2291 done
2292IFS=$as_save_IFS
252b5132 2293
42ecbf5e 2294} >&5
5d64ca4e 2295
42ecbf5e 2296cat >&5 <<_ACEOF
5d64ca4e 2297
5d64ca4e 2298
42ecbf5e
DJ
2299## ----------- ##
2300## Core tests. ##
2301## ----------- ##
5d64ca4e 2302
42ecbf5e 2303_ACEOF
2469cfa2 2304
42ecbf5e
DJ
2305
2306# Keep a trace of the command line.
2307# Strip out --no-create and --no-recursion so they do not pile up.
2308# Strip out --silent because we don't want to record it for future runs.
2309# Also quote any args containing shell meta-characters.
2310# Make two passes to allow for proper duplicate-argument suppression.
2311ac_configure_args=
2312ac_configure_args0=
2313ac_configure_args1=
42ecbf5e
DJ
2314ac_must_keep_next=false
2315for ac_pass in 1 2
2316do
2317 for ac_arg
2318 do
2319 case $ac_arg in
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2323 continue ;;
81ecdfbb
RW
2324 *\'*)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2326 esac
2327 case $ac_pass in
81ecdfbb 2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2329 2)
81ecdfbb 2330 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2333 else
2334 case $ac_arg in
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341 esac
2342 ;;
2343 -* ) ac_must_keep_next=true ;;
2344 esac
2345 fi
81ecdfbb 2346 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2347 ;;
2348 esac
2349 done
2350done
81ecdfbb
RW
2351{ ac_configure_args0=; unset ac_configure_args0;}
2352{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2353
2354# When interrupted or exit'd, cleanup temporary files, and complete
2355# config.log. We remove comments because anyway the quotes in there
2356# would cause problems or look ugly.
81ecdfbb
RW
2357# WARNING: Use '\'' to represent an apostrophe within the trap.
2358# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2359trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2361 {
2362 echo
2363
2364 cat <<\_ASBOX
2365## ---------------- ##
2366## Cache variables. ##
2367## ---------------- ##
2368_ASBOX
2369 echo
2370 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2371(
2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373 eval ac_val=\$$ac_var
2374 case $ac_val in #(
2375 *${as_nl}*)
2376 case $ac_var in #(
2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379 esac
2380 case $ac_var in #(
2381 _ | IFS | as_nl) ;; #(
2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383 *) { eval $ac_var=; unset $ac_var;} ;;
2384 esac ;;
2385 esac
2386 done
42ecbf5e 2387 (set) 2>&1 |
81ecdfbb
RW
2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
42ecbf5e 2390 sed -n \
81ecdfbb
RW
2391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393 ;; #(
42ecbf5e 2394 *)
81ecdfbb 2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2396 ;;
81ecdfbb
RW
2397 esac |
2398 sort
2399)
42ecbf5e
DJ
2400 echo
2401
2402 cat <<\_ASBOX
2403## ----------------- ##
2404## Output variables. ##
2405## ----------------- ##
2406_ASBOX
2407 echo
2408 for ac_var in $ac_subst_vars
2409 do
81ecdfbb
RW
2410 eval ac_val=\$$ac_var
2411 case $ac_val in
2412 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 esac
2414 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2415 done | sort
2416 echo
2417
2418 if test -n "$ac_subst_files"; then
2419 cat <<\_ASBOX
81ecdfbb
RW
2420## ------------------- ##
2421## File substitutions. ##
2422## ------------------- ##
42ecbf5e
DJ
2423_ASBOX
2424 echo
2425 for ac_var in $ac_subst_files
2426 do
81ecdfbb
RW
2427 eval ac_val=\$$ac_var
2428 case $ac_val in
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 esac
2431 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2432 done | sort
2433 echo
2434 fi
2435
2436 if test -s confdefs.h; then
2437 cat <<\_ASBOX
2438## ----------- ##
2439## confdefs.h. ##
2440## ----------- ##
2441_ASBOX
2442 echo
81ecdfbb 2443 cat confdefs.h
42ecbf5e
DJ
2444 echo
2445 fi
2446 test "$ac_signal" != 0 &&
81ecdfbb
RW
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2449 } >&5
81ecdfbb
RW
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2452 exit $exit_status
81ecdfbb 2453' 0
42ecbf5e 2454for ac_signal in 1 2 13 15; do
81ecdfbb 2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2456done
2457ac_signal=0
2458
2459# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2460rm -f -r conftest* confdefs.h
2461
2462$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2463
2464# Predefined preprocessor variables.
2465
2466cat >>confdefs.h <<_ACEOF
2467#define PACKAGE_NAME "$PACKAGE_NAME"
2468_ACEOF
2469
42ecbf5e
DJ
2470cat >>confdefs.h <<_ACEOF
2471#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472_ACEOF
2473
42ecbf5e
DJ
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_VERSION "$PACKAGE_VERSION"
2476_ACEOF
2477
42ecbf5e
DJ
2478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_STRING "$PACKAGE_STRING"
2480_ACEOF
2481
42ecbf5e
DJ
2482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484_ACEOF
2485
81ecdfbb
RW
2486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_URL "$PACKAGE_URL"
2488_ACEOF
2489
42ecbf5e
DJ
2490
2491# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2492# Prefer an explicitly selected file to automatically selected ones.
2493ac_site_file1=NONE
2494ac_site_file2=NONE
2495if test -n "$CONFIG_SITE"; then
2496 ac_site_file1=$CONFIG_SITE
2497elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2500else
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2503fi
2504for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505do
2506 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2507 if test -r "$ac_site_file"; then
81ecdfbb
RW
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2510 sed 's/^/| /' "$ac_site_file" >&5
2511 . "$ac_site_file"
2512 fi
2513done
2514
2515if test -r "$cache_file"; then
2516 # Some versions of bash will fail to source /dev/null (special
2517 # files actually), so we avoid doing that.
2518 if test -f "$cache_file"; then
81ecdfbb
RW
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2521 case $cache_file in
81ecdfbb
RW
2522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523 *) . "./$cache_file";;
42ecbf5e
DJ
2524 esac
2525 fi
2526else
81ecdfbb
RW
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2529 >$cache_file
2530fi
2531
2532# Check that the precious variables saved in the cache have kept the same
2533# value.
2534ac_cache_corrupted=false
81ecdfbb 2535for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2540 case $ac_old_set,$ac_new_set in
2541 set,)
81ecdfbb
RW
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2544 ac_cache_corrupted=: ;;
2545 ,set)
81ecdfbb
RW
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2548 ac_cache_corrupted=: ;;
2549 ,);;
2550 *)
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w=`echo x $ac_old_val`
2554 ac_new_val_w=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted=:
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\$ac_old_val
2563 fi
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2565$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2567$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2568 fi;;
2569 esac
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2572 case $ac_new_val in
81ecdfbb 2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2574 *) ac_arg=$ac_var=$ac_new_val ;;
2575 esac
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2579 esac
2580 fi
2581done
2582if $ac_cache_corrupted; then
81ecdfbb
RW
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2588fi
81ecdfbb
RW
2589## -------------------- ##
2590## Main body of script. ##
2591## -------------------- ##
42ecbf5e
DJ
2592
2593ac_ext=c
2594ac_cpp='$CPP $CPPFLAGS'
2595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598
2599
2600
42ecbf5e 2601
da594c4a 2602
42ecbf5e
DJ
2603
2604
2605ac_aux_dir=
81ecdfbb
RW
2606for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 for ac_t in install-sh install.sh shtool; do
2608 if test -f "$ac_dir/$ac_t"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/$ac_t -c"
2611 break 2
2612 fi
2613 done
42ecbf5e
DJ
2614done
2615if test -z "$ac_aux_dir"; then
81ecdfbb 2616 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2617fi
81ecdfbb
RW
2618
2619# These three variables are undocumented and unsupported,
2620# and are intended to be withdrawn in a future Autoconf release.
2621# They can cause serious problems if a builder's source tree is in a directory
2622# whose full name contains unusual characters.
2623ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2624ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2625ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2626
42ecbf5e
DJ
2627
2628# Make sure we can run config.sub.
81ecdfbb
RW
2629$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2631
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633$as_echo_n "checking build system type... " >&6; }
2634if test "${ac_cv_build+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636else
2637 ac_build_alias=$build_alias
2638test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640test "x$ac_build_alias" = x &&
2641 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2642ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2644
2645fi
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647$as_echo "$ac_cv_build" >&6; }
2648case $ac_cv_build in
2649*-*-*) ;;
2650*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2651esac
42ecbf5e 2652build=$ac_cv_build
81ecdfbb
RW
2653ac_save_IFS=$IFS; IFS='-'
2654set x $ac_cv_build
2655shift
2656build_cpu=$1
2657build_vendor=$2
2658shift; shift
2659# Remember, the first character of IFS is used to create $*,
2660# except with old shells:
2661build_os=$*
2662IFS=$ac_save_IFS
2663case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2664
2665
81ecdfbb
RW
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667$as_echo_n "checking host system type... " >&6; }
2668if test "${ac_cv_host+set}" = set; then :
2669 $as_echo_n "(cached) " >&6
2670else
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
42ecbf5e 2673else
81ecdfbb
RW
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676fi
42ecbf5e
DJ
2677
2678fi
81ecdfbb
RW
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680$as_echo "$ac_cv_host" >&6; }
2681case $ac_cv_host in
2682*-*-*) ;;
2683*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2684esac
42ecbf5e 2685host=$ac_cv_host
81ecdfbb
RW
2686ac_save_IFS=$IFS; IFS='-'
2687set x $ac_cv_host
2688shift
2689host_cpu=$1
2690host_vendor=$2
2691shift; shift
2692# Remember, the first character of IFS is used to create $*,
2693# except with old shells:
2694host_os=$*
2695IFS=$ac_save_IFS
2696case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2697
2698
81ecdfbb
RW
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700$as_echo_n "checking target system type... " >&6; }
2701if test "${ac_cv_target+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
42ecbf5e 2703else
81ecdfbb
RW
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2706else
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2709fi
42ecbf5e
DJ
2710
2711fi
81ecdfbb
RW
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713$as_echo "$ac_cv_target" >&6; }
2714case $ac_cv_target in
2715*-*-*) ;;
2716*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2717esac
42ecbf5e 2718target=$ac_cv_target
81ecdfbb
RW
2719ac_save_IFS=$IFS; IFS='-'
2720set x $ac_cv_target
2721shift
2722target_cpu=$1
2723target_vendor=$2
2724shift; shift
2725# Remember, the first character of IFS is used to create $*,
2726# except with old shells:
2727target_os=$*
2728IFS=$ac_save_IFS
2729case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2730
2731
2732# The aliases save the names the user supplied, while $host etc.
2733# will get canonicalized.
2734test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2736 NONENONEs,x,x, &&
2737 program_prefix=${target_alias}-
02ecc8e9 2738
42ecbf5e
DJ
2739ac_ext=c
2740ac_cpp='$CPP $CPPFLAGS'
2741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744if test -n "$ac_tool_prefix"; then
2745 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2746set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748$as_echo_n "checking for $ac_word... " >&6; }
2749if test "${ac_cv_prog_CC+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2751else
2752 if test -n "$CC"; then
2753 ac_cv_prog_CC="$CC" # Let the user override the test.
2754else
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758 IFS=$as_save_IFS
2759 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2762 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2764 break 2
2765 fi
2766done
81ecdfbb
RW
2767 done
2768IFS=$as_save_IFS
42ecbf5e
DJ
2769
2770fi
2771fi
2772CC=$ac_cv_prog_CC
2773if test -n "$CC"; then
81ecdfbb
RW
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775$as_echo "$CC" >&6; }
42ecbf5e 2776else
81ecdfbb
RW
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778$as_echo "no" >&6; }
42ecbf5e
DJ
2779fi
2780
81ecdfbb 2781
42ecbf5e
DJ
2782fi
2783if test -z "$ac_cv_prog_CC"; then
2784 ac_ct_CC=$CC
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786set dummy gcc; ac_word=$2
81ecdfbb
RW
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2790 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2791else
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2802 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2804 break 2
2805 fi
2806done
81ecdfbb
RW
2807 done
2808IFS=$as_save_IFS
42ecbf5e
DJ
2809
2810fi
2811fi
2812ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2816else
81ecdfbb
RW
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
42ecbf5e
DJ
2819fi
2820
81ecdfbb
RW
2821 if test "x$ac_ct_CC" = x; then
2822 CC=""
2823 else
2824 case $cross_compiling:$ac_tool_warned in
2825yes:)
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828ac_tool_warned=yes ;;
2829esac
2830 CC=$ac_ct_CC
2831 fi
42ecbf5e
DJ
2832else
2833 CC="$ac_cv_prog_CC"
2834fi
2835
2836if test -z "$CC"; then
81ecdfbb
RW
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2839set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2844else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2855 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2857 break 2
2858 fi
2859done
81ecdfbb
RW
2860 done
2861IFS=$as_save_IFS
42ecbf5e
DJ
2862
2863fi
2864fi
2865CC=$ac_cv_prog_CC
2866if test -n "$CC"; then
81ecdfbb
RW
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868$as_echo "$CC" >&6; }
42ecbf5e 2869else
81ecdfbb
RW
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
42ecbf5e
DJ
2872fi
2873
42ecbf5e 2874
81ecdfbb 2875 fi
42ecbf5e
DJ
2876fi
2877if test -z "$CC"; then
2878 # Extract the first word of "cc", so it can be a program name with args.
2879set dummy cc; ac_word=$2
81ecdfbb
RW
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if test "${ac_cv_prog_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2884else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887else
2888 ac_prog_rejected=no
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897 ac_prog_rejected=yes
2898 continue
2899 fi
2900 ac_cv_prog_CC="cc"
81ecdfbb 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2902 break 2
2903 fi
2904done
81ecdfbb
RW
2905 done
2906IFS=$as_save_IFS
42ecbf5e
DJ
2907
2908if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2911 shift
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2916 shift
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2918 fi
2919fi
2920fi
2921fi
2922CC=$ac_cv_prog_CC
2923if test -n "$CC"; then
81ecdfbb
RW
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925$as_echo "$CC" >&6; }
42ecbf5e 2926else
81ecdfbb
RW
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
42ecbf5e
DJ
2929fi
2930
81ecdfbb 2931
42ecbf5e
DJ
2932fi
2933if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
81ecdfbb 2935 for ac_prog in cl.exe
42ecbf5e
DJ
2936 do
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940$as_echo_n "checking for $ac_word... " >&6; }
2941if test "${ac_cv_prog_CC+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2943else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946else
2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948for as_dir in $PATH
2949do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2956 break 2
2957 fi
2958done
81ecdfbb
RW
2959 done
2960IFS=$as_save_IFS
42ecbf5e
DJ
2961
2962fi
2963fi
2964CC=$ac_cv_prog_CC
2965if test -n "$CC"; then
81ecdfbb
RW
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967$as_echo "$CC" >&6; }
42ecbf5e 2968else
81ecdfbb
RW
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970$as_echo "no" >&6; }
42ecbf5e
DJ
2971fi
2972
81ecdfbb 2973
42ecbf5e
DJ
2974 test -n "$CC" && break
2975 done
2976fi
2977if test -z "$CC"; then
2978 ac_ct_CC=$CC
81ecdfbb 2979 for ac_prog in cl.exe
42ecbf5e
DJ
2980do
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984$as_echo_n "checking for $ac_word... " >&6; }
2985if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2987else
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990else
2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992for as_dir in $PATH
2993do
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2998 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3000 break 2
3001 fi
3002done
81ecdfbb
RW
3003 done
3004IFS=$as_save_IFS
42ecbf5e
DJ
3005
3006fi
3007fi
3008ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3012else
81ecdfbb
RW
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014$as_echo "no" >&6; }
42ecbf5e
DJ
3015fi
3016
81ecdfbb 3017
42ecbf5e
DJ
3018 test -n "$ac_ct_CC" && break
3019done
3020
81ecdfbb
RW
3021 if test "x$ac_ct_CC" = x; then
3022 CC=""
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025yes:)
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028ac_tool_warned=yes ;;
3029esac
3030 CC=$ac_ct_CC
3031 fi
42ecbf5e
DJ
3032fi
3033
3034fi
3035
3036
81ecdfbb
RW
3037test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039as_fn_error "no acceptable C compiler found in \$PATH
3040See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3041
3042# Provide some information about the compiler.
81ecdfbb
RW
3043$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3044set X $ac_compile
3045ac_compiler=$2
3046for ac_option in --version -v -V -qversion; do
3047 { { ac_try="$ac_compiler $ac_option >&5"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3055 ac_status=$?
81ecdfbb
RW
3056 if test -s conftest.err; then
3057 sed '10a\
3058... rest of stderr output deleted ...
3059 10q' conftest.err >conftest.er1
3060 cat conftest.er1 >&5
3061 rm -f conftest.er1 conftest.err
3062 fi
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }
3065done
42ecbf5e 3066
81ecdfbb 3067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3068/* end confdefs.h. */
3069
3070int
3071main ()
3072{
3073
3074 ;
3075 return 0;
3076}
3077_ACEOF
3078ac_clean_files_save=$ac_clean_files
81ecdfbb 3079ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3080# Try to create an executable without -o first, disregard a.out.
3081# It will help us diagnose broken compilers, and finding out an intuition
3082# of exeext.
81ecdfbb
RW
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3084$as_echo_n "checking for C compiler default output file name... " >&6; }
3085ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3086
3087# The possible output files:
3088ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3089
3090ac_rmfiles=
3091for ac_file in $ac_files
3092do
3093 case $ac_file in
3094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3096 esac
3097done
3098rm -f $ac_rmfiles
3099
3100if { { ac_try="$ac_link_default"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106$as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link_default") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }; then :
3111 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113# in a Makefile. We should not override ac_cv_exeext if it was cached,
3114# so that the user can short-circuit this test for compilers unknown to
3115# Autoconf.
3116for ac_file in $ac_files ''
42ecbf5e
DJ
3117do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
81ecdfbb 3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3121 ;;
3122 [ab].out )
3123 # We found the default executable, but exeext='' is most
3124 # certainly right.
3125 break;;
3126 *.* )
81ecdfbb
RW
3127 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3128 then :; else
3129 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 fi
3131 # We set ac_cv_exeext here because the later test for it is not
3132 # safe: cross compilers may not add the suffix if given an `-o'
3133 # argument, so we may need to know it at that point already.
3134 # Even if this section looks crufty: it has the advantage of
3135 # actually working.
42ecbf5e
DJ
3136 break;;
3137 * )
3138 break;;
3139 esac
3140done
81ecdfbb
RW
3141test "$ac_cv_exeext" = no && ac_cv_exeext=
3142
42ecbf5e 3143else
81ecdfbb
RW
3144 ac_file=''
3145fi
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147$as_echo "$ac_file" >&6; }
3148if test -z "$ac_file"; then :
3149 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
81ecdfbb
RW
3152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154{ as_fn_set_status 77
3155as_fn_error "C compiler cannot create executables
3156See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3157fi
42ecbf5e 3158ac_exeext=$ac_cv_exeext
42ecbf5e 3159
81ecdfbb 3160# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3161# the compiler is broken, or we cross compile.
81ecdfbb
RW
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3163$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3164# If not cross compiling, check that we can run a simple program.
3165if test "$cross_compiling" != yes; then
3166 if { ac_try='./$ac_file'
81ecdfbb
RW
3167 { { case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172$as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_try") 2>&5
42ecbf5e 3174 ac_status=$?
81ecdfbb
RW
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3177 cross_compiling=no
3178 else
3179 if test "$cross_compiling" = maybe; then
3180 cross_compiling=yes
3181 else
81ecdfbb
RW
3182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184as_fn_error "cannot run C compiled programs.
42ecbf5e 3185If you meant to cross compile, use \`--host'.
81ecdfbb 3186See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3187 fi
3188 fi
3189fi
81ecdfbb
RW
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191$as_echo "yes" >&6; }
42ecbf5e 3192
81ecdfbb 3193rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3194ac_clean_files=$ac_clean_files_save
81ecdfbb 3195# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3196# the compiler is broken, or we cross compile.
81ecdfbb
RW
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3198$as_echo_n "checking whether we are cross compiling... " >&6; }
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3200$as_echo "$cross_compiling" >&6; }
3201
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3203$as_echo_n "checking for suffix of executables... " >&6; }
3204if { { ac_try="$ac_link"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_link") 2>&5
42ecbf5e 3212 ac_status=$?
81ecdfbb
RW
3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
42ecbf5e
DJ
3215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217# work properly (i.e., refer to `conftest.exe'), while it won't with
3218# `rm'.
3219for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3221 case $ac_file in
81ecdfbb 3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3224 break;;
3225 * ) break;;
3226 esac
3227done
3228else
81ecdfbb
RW
3229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231as_fn_error "cannot compute suffix of executables: cannot compile and link
3232See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3233fi
42ecbf5e 3234rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3236$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3237
3238rm -f conftest.$ac_ext
3239EXEEXT=$ac_cv_exeext
3240ac_exeext=$EXEEXT
81ecdfbb
RW
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3242$as_echo_n "checking for suffix of object files... " >&6; }
3243if test "${ac_cv_objext+set}" = set; then :
3244 $as_echo_n "(cached) " >&6
42ecbf5e 3245else
81ecdfbb 3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3247/* end confdefs.h. */
3248
3249int
3250main ()
3251{
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257rm -f conftest.o conftest.obj
81ecdfbb
RW
3258if { { ac_try="$ac_compile"
3259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compile") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; then :
3269 for ac_file in conftest.o conftest.obj conftest.*; do
3270 test -f "$ac_file" || continue;
42ecbf5e 3271 case $ac_file in
81ecdfbb 3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3274 break;;
3275 esac
3276done
3277else
81ecdfbb 3278 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
81ecdfbb
RW
3281{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283as_fn_error "cannot compute suffix of object files: cannot compile
3284See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3285fi
42ecbf5e
DJ
3286rm -f conftest.$ac_cv_objext conftest.$ac_ext
3287fi
81ecdfbb
RW
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3289$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3290OBJEXT=$ac_cv_objext
3291ac_objext=$OBJEXT
81ecdfbb
RW
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3293$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3294if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3295 $as_echo_n "(cached) " >&6
42ecbf5e 3296else
81ecdfbb 3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3298/* end confdefs.h. */
3299
3300int
3301main ()
3302{
3303#ifndef __GNUC__
3304 choke me
3305#endif
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
81ecdfbb 3311if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3312 ac_compiler_gnu=yes
3313else
81ecdfbb 3314 ac_compiler_gnu=no
42ecbf5e 3315fi
81ecdfbb 3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3317ac_cv_c_compiler_gnu=$ac_compiler_gnu
3318
3319fi
81ecdfbb
RW
3320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3321$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3322if test $ac_compiler_gnu = yes; then
3323 GCC=yes
3324else
3325 GCC=
3326fi
42ecbf5e
DJ
3327ac_test_CFLAGS=${CFLAGS+set}
3328ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3330$as_echo_n "checking whether $CC accepts -g... " >&6; }
3331if test "${ac_cv_prog_cc_g+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3333else
3334 ac_save_c_werror_flag=$ac_c_werror_flag
3335 ac_c_werror_flag=yes
3336 ac_cv_prog_cc_g=no
3337 CFLAGS="-g"
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3339/* end confdefs.h. */
3340
3341int
3342main ()
3343{
3344
3345 ;
3346 return 0;
3347}
3348_ACEOF
81ecdfbb 3349if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3350 ac_cv_prog_cc_g=yes
3351else
81ecdfbb
RW
3352 CFLAGS=""
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355
3356int
3357main ()
3358{
3359
3360 ;
3361 return 0;
3362}
3363_ACEOF
3364if ac_fn_c_try_compile "$LINENO"; then :
3365
3366else
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3368 CFLAGS="-g"
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370/* end confdefs.h. */
3371
3372int
3373main ()
3374{
42ecbf5e 3375
81ecdfbb
RW
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380if ac_fn_c_try_compile "$LINENO"; then :
3381 ac_cv_prog_cc_g=yes
3382fi
3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384fi
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3386fi
81ecdfbb
RW
3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3389fi
81ecdfbb
RW
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3391$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3392if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS=$ac_save_CFLAGS
3394elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3396 CFLAGS="-g -O2"
3397 else
3398 CFLAGS="-g"
3399 fi
3400else
3401 if test "$GCC" = yes; then
3402 CFLAGS="-O2"
3403 else
3404 CFLAGS=
3405 fi
3406fi
81ecdfbb
RW
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3408$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3409if test "${ac_cv_prog_cc_c89+set}" = set; then :
3410 $as_echo_n "(cached) " >&6
42ecbf5e 3411else
81ecdfbb 3412 ac_cv_prog_cc_c89=no
42ecbf5e 3413ac_save_CC=$CC
81ecdfbb 3414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3415/* end confdefs.h. */
3416#include <stdarg.h>
3417#include <stdio.h>
3418#include <sys/types.h>
3419#include <sys/stat.h>
3420/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3421struct buf { int x; };
3422FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423static char *e (p, i)
3424 char **p;
3425 int i;
3426{
3427 return p[i];
3428}
3429static char *f (char * (*g) (char **, int), char **p, ...)
3430{
3431 char *s;
3432 va_list v;
3433 va_start (v,p);
3434 s = g (p, va_arg (v,int));
3435 va_end (v);
3436 return s;
3437}
3438
3439/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3440 function prototypes and stuff, but not '\xHH' hex character constants.
3441 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3442 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3443 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3444 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3445 that's true only with -std. */
42ecbf5e
DJ
3446int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447
81ecdfbb
RW
3448/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449 inside strings and character constants. */
3450#define FOO(x) 'x'
3451int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452
42ecbf5e
DJ
3453int test (int i, double x);
3454struct s1 {int (*f) (int a);};
3455struct s2 {int (*f) (double a);};
3456int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457int argc;
3458char **argv;
3459int
3460main ()
3461{
3462return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3463 ;
3464 return 0;
3465}
3466_ACEOF
81ecdfbb
RW
3467for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3469do
3470 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3473fi
81ecdfbb
RW
3474rm -f core conftest.err conftest.$ac_objext
3475 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3476done
81ecdfbb 3477rm -f conftest.$ac_ext
42ecbf5e
DJ
3478CC=$ac_save_CC
3479
3480fi
81ecdfbb
RW
3481# AC_CACHE_VAL
3482case "x$ac_cv_prog_cc_c89" in
3483 x)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3485$as_echo "none needed" >&6; } ;;
3486 xno)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3488$as_echo "unsupported" >&6; } ;;
42ecbf5e 3489 *)
81ecdfbb
RW
3490 CC="$CC $ac_cv_prog_cc_c89"
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3492$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3493esac
81ecdfbb 3494if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3495
42ecbf5e
DJ
3496fi
3497
42ecbf5e
DJ
3498ac_ext=c
3499ac_cpp='$CPP $CPPFLAGS'
3500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502ac_compiler_gnu=$ac_cv_c_compiler_gnu
3503
3504
81ecdfbb
RW
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3506$as_echo_n "checking for library containing strerror... " >&6; }
3507if test "${ac_cv_search_strerror+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3509else
3510 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3512/* end confdefs.h. */
3513
81ecdfbb
RW
3514/* Override any GCC internal prototype to avoid an error.
3515 Use char because int might match the return type of a GCC
3516 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3517#ifdef __cplusplus
3518extern "C"
3519#endif
42ecbf5e
DJ
3520char strerror ();
3521int
3522main ()
3523{
81ecdfbb 3524return strerror ();
42ecbf5e
DJ
3525 ;
3526 return 0;
3527}
3528_ACEOF
81ecdfbb
RW
3529for ac_lib in '' cposix; do
3530 if test -z "$ac_lib"; then
3531 ac_res="none required"
3532 else
3533 ac_res=-l$ac_lib
42ecbf5e 3534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3535 fi
3536 if ac_fn_c_try_link "$LINENO"; then :
3537 ac_cv_search_strerror=$ac_res
3538fi
3539rm -f core conftest.err conftest.$ac_objext \
3540 conftest$ac_exeext
3541 if test "${ac_cv_search_strerror+set}" = set; then :
3542 break
3543fi
3544done
3545if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3546
42ecbf5e 3547else
81ecdfbb 3548 ac_cv_search_strerror=no
42ecbf5e 3549fi
81ecdfbb 3550rm conftest.$ac_ext
42ecbf5e
DJ
3551LIBS=$ac_func_search_save_LIBS
3552fi
81ecdfbb
RW
3553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3554$as_echo "$ac_cv_search_strerror" >&6; }
3555ac_res=$ac_cv_search_strerror
3556if test "$ac_res" != no; then :
3557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3558
3559fi
e5a52504
MM
3560
3561
81ecdfbb
RW
3562am__api_version='1.11'
3563
e5a52504
MM
3564# Find a good install program. We prefer a C program (faster),
3565# so one script is as good as another. But avoid the broken or
3566# incompatible versions:
3567# SysV /etc/install, /usr/sbin/install
3568# SunOS /usr/etc/install
3569# IRIX /sbin/install
3570# AIX /bin/install
42ecbf5e 3571# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3572# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3573# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3574# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3575# OS/2's system install, which has a completely different semantic
e5a52504 3576# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3577# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3579$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3580if test -z "$INSTALL"; then
81ecdfbb
RW
3581if test "${ac_cv_path_install+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
e5a52504 3583else
42ecbf5e
DJ
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3589 # Account for people who put trailing slashes in PATH elements.
3590case $as_dir/ in #((
3591 ./ | .// | /[cC]/* | \
42ecbf5e 3592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3593 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3594 /usr/ucb/* ) ;;
3595 *)
3596 # OSF1 and SCO ODT 3.0 have their own names for install.
3597 # Don't use installbsd from OSF since it installs stuff as root
3598 # by default.
3599 for ac_prog in ginstall scoinst install; do
3600 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3601 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3602 if test $ac_prog = install &&
42ecbf5e 3603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3604 # AIX install. It has an incompatible calling convention.
3605 :
42ecbf5e
DJ
3606 elif test $ac_prog = install &&
3607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3608 # program-specific install script used by HP pwplus--don't use.
3609 :
252b5132 3610 else
58c85be7
RW
3611 rm -rf conftest.one conftest.two conftest.dir
3612 echo one > conftest.one
3613 echo two > conftest.two
3614 mkdir conftest.dir
3615 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3616 test -s conftest.one && test -s conftest.two &&
3617 test -s conftest.dir/conftest.one &&
3618 test -s conftest.dir/conftest.two
3619 then
3620 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3621 break 3
3622 fi
252b5132
RH
3623 fi
3624 fi
3625 done
42ecbf5e
DJ
3626 done
3627 ;;
3628esac
81ecdfbb
RW
3629
3630 done
3631IFS=$as_save_IFS
42ecbf5e 3632
58c85be7 3633rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3634
3635fi
3636 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3637 INSTALL=$ac_cv_path_install
252b5132 3638 else
58c85be7
RW
3639 # As a last resort, use the slow shell script. Don't cache a
3640 # value for INSTALL within a source directory, because that will
252b5132 3641 # break other packages using the cache if that directory is
58c85be7 3642 # removed, or if the value is a relative name.
42ecbf5e 3643 INSTALL=$ac_install_sh
252b5132
RH
3644 fi
3645fi
81ecdfbb
RW
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3647$as_echo "$INSTALL" >&6; }
252b5132
RH
3648
3649# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3650# It thinks the first close brace ends the variable substitution.
3651test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3652
42ecbf5e 3653test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3654
3655test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3656
81ecdfbb
RW
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3658$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3659# Just in case
3660sleep 1
42ecbf5e 3661echo timestamp > conftest.file
81ecdfbb
RW
3662# Reject unsafe characters in $srcdir or the absolute working directory
3663# name. Accept space and tab only in the latter.
3664am_lf='
3665'
3666case `pwd` in
3667 *[\\\"\#\$\&\'\`$am_lf]*)
3668 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3669esac
3670case $srcdir in
3671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3672 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3673esac
3674
252b5132
RH
3675# Do `set' in a subshell so we don't clobber the current shell's
3676# arguments. Must try -L first in case configure is actually a
3677# symlink; some systems play weird games with the mod time of symlinks
3678# (eg FreeBSD returns the mod time of the symlink's containing
3679# directory).
3680if (
81ecdfbb 3681 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3682 if test "$*" = "X"; then
3683 # -L didn't work.
81ecdfbb 3684 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3685 fi
42ecbf5e
DJ
3686 rm -f conftest.file
3687 if test "$*" != "X $srcdir/configure conftest.file" \
3688 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3689
3690 # If neither matched, then we have a broken ls. This can happen
3691 # if, for instance, CONFIG_SHELL is bash and it inherits a
3692 # broken ls alias from the environment. This has actually
3693 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3694 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3695alias in your environment" "$LINENO" 5
252b5132
RH
3696 fi
3697
42ecbf5e 3698 test "$2" = conftest.file
252b5132
RH
3699 )
3700then
3701 # Ok.
3702 :
3703else
81ecdfbb
RW
3704 as_fn_error "newly created file is older than distributed files!
3705Check your system clock" "$LINENO" 5
252b5132 3706fi
81ecdfbb
RW
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708$as_echo "yes" >&6; }
252b5132 3709test "$program_prefix" != NONE &&
81ecdfbb 3710 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3711# Use a double $ so make ignores it.
3712test "$program_suffix" != NONE &&
81ecdfbb
RW
3713 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3714# Double any \ or $.
42ecbf5e 3715# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3716ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3717program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3718
3719# expand $ac_aux_dir to an absolute path
3720am_aux_dir=`cd $ac_aux_dir && pwd`
3721
81ecdfbb
RW
3722if test x"${MISSING+set}" != xset; then
3723 case $am_aux_dir in
3724 *\ * | *\ *)
3725 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3726 *)
3727 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3728 esac
3729fi
42ecbf5e
DJ
3730# Use eval to expand $SHELL
3731if eval "$MISSING --run true"; then
3732 am_missing_run="$MISSING --run "
3733else
3734 am_missing_run=
81ecdfbb
RW
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3736$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3737fi
3738
3739if test x"${install_sh}" != xset; then
3740 case $am_aux_dir in
3741 *\ * | *\ *)
3742 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3743 *)
3744 install_sh="\${SHELL} $am_aux_dir/install-sh"
3745 esac
3746fi
3747
3748# Installed binaries are usually stripped using `strip' when the user
3749# run `make install-strip'. However `strip' might not be the right
3750# tool to use in cross-compilation environments, therefore Automake
3751# will honor the `STRIP' environment variable to overrule this program.
3752if test "$cross_compiling" != no; then
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3755set dummy ${ac_tool_prefix}strip; ac_word=$2
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757$as_echo_n "checking for $ac_word... " >&6; }
3758if test "${ac_cv_prog_STRIP+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760else
3761 if test -n "$STRIP"; then
3762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3763else
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 break 2
3774 fi
3775done
3776 done
3777IFS=$as_save_IFS
3778
3779fi
3780fi
3781STRIP=$ac_cv_prog_STRIP
3782if test -n "$STRIP"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3784$as_echo "$STRIP" >&6; }
3785else
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787$as_echo "no" >&6; }
3788fi
3789
3790
3791fi
3792if test -z "$ac_cv_prog_STRIP"; then
3793 ac_ct_STRIP=$STRIP
3794 # Extract the first word of "strip", so it can be a program name with args.
3795set dummy strip; ac_word=$2
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797$as_echo_n "checking for $ac_word... " >&6; }
3798if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3800else
3801 if test -n "$ac_ct_STRIP"; then
3802 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_STRIP="strip"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816 done
3817IFS=$as_save_IFS
3818
3819fi
3820fi
3821ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822if test -n "$ac_ct_STRIP"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3824$as_echo "$ac_ct_STRIP" >&6; }
3825else
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828fi
3829
3830 if test "x$ac_ct_STRIP" = x; then
3831 STRIP=":"
3832 else
3833 case $cross_compiling:$ac_tool_warned in
3834yes:)
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837ac_tool_warned=yes ;;
3838esac
3839 STRIP=$ac_ct_STRIP
3840 fi
3841else
3842 STRIP="$ac_cv_prog_STRIP"
3843fi
3844
3845fi
3846INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3847
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3849$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3850if test -z "$MKDIR_P"; then
3851 if test "${ac_cv_path_mkdir+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853else
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for ac_prog in mkdir gmkdir; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3862 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3863 'mkdir (GNU coreutils) '* | \
3864 'mkdir (coreutils) '* | \
3865 'mkdir (fileutils) '4.1*)
3866 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3867 break 3;;
3868 esac
3869 done
3870 done
42ecbf5e 3871 done
81ecdfbb
RW
3872IFS=$as_save_IFS
3873
3874fi
3875
3876 if test "${ac_cv_path_mkdir+set}" = set; then
3877 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3878 else
81ecdfbb
RW
3879 # As a last resort, use the slow shell script. Don't cache a
3880 # value for MKDIR_P within a source directory, because that will
3881 # break other packages using the cache if that directory is
3882 # removed, or if the value is a relative name.
3883 test -d ./--version && rmdir ./--version
3884 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3885 fi
3886fi
81ecdfbb
RW
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3888$as_echo "$MKDIR_P" >&6; }
3889
3890mkdir_p="$MKDIR_P"
3891case $mkdir_p in
3892 [\\/$]* | ?:[\\/]*) ;;
3893 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3894esac
42ecbf5e
DJ
3895
3896for ac_prog in gawk mawk nawk awk
3897do
3898 # Extract the first word of "$ac_prog", so it can be a program name with args.
3899set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901$as_echo_n "checking for $ac_word... " >&6; }
3902if test "${ac_cv_prog_AWK+set}" = set; then :
3903 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3904else
3905 if test -n "$AWK"; then
3906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3907else
3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909for as_dir in $PATH
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3915 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3917 break 2
3918 fi
3919done
81ecdfbb
RW
3920 done
3921IFS=$as_save_IFS
42ecbf5e
DJ
3922
3923fi
3924fi
3925AWK=$ac_cv_prog_AWK
3926if test -n "$AWK"; then
81ecdfbb
RW
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3928$as_echo "$AWK" >&6; }
42ecbf5e 3929else
81ecdfbb
RW
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931$as_echo "no" >&6; }
42ecbf5e 3932fi
252b5132 3933
81ecdfbb 3934
42ecbf5e
DJ
3935 test -n "$AWK" && break
3936done
252b5132 3937
81ecdfbb
RW
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3939$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3940set x ${MAKE-make}
3941ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3942if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3943 $as_echo_n "(cached) " >&6
252b5132 3944else
42ecbf5e 3945 cat >conftest.make <<\_ACEOF
81ecdfbb 3946SHELL = /bin/sh
252b5132 3947all:
81ecdfbb 3948 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3949_ACEOF
252b5132 3950# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3951case `${MAKE-make} -f conftest.make 2>/dev/null` in
3952 *@@@%%%=?*=@@@%%%*)
3953 eval ac_cv_prog_make_${ac_make}_set=yes;;
3954 *)
3955 eval ac_cv_prog_make_${ac_make}_set=no;;
3956esac
42ecbf5e 3957rm -f conftest.make
252b5132 3958fi
81ecdfbb
RW
3959if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961$as_echo "yes" >&6; }
252b5132
RH
3962 SET_MAKE=
3963else
81ecdfbb
RW
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
252b5132
RH
3966 SET_MAKE="MAKE=${MAKE-make}"
3967fi
3968
42ecbf5e
DJ
3969rm -rf .tst 2>/dev/null
3970mkdir .tst 2>/dev/null
3971if test -d .tst; then
3972 am__leading_dot=.
3973else
3974 am__leading_dot=_
3975fi
3976rmdir .tst 2>/dev/null
3977
3978DEPDIR="${am__leading_dot}deps"
3979
81ecdfbb 3980ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3981
3982
3983am_make=${MAKE-make}
3984cat > confinc << 'END'
3985am__doit:
81ecdfbb 3986 @echo this is the am__doit target
42ecbf5e
DJ
3987.PHONY: am__doit
3988END
3989# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3991$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3992am__include="#"
3993am__quote=
3994_am_result=none
3995# First try GNU make style include.
3996echo "include confinc" > confmf
81ecdfbb
RW
3997# Ignore all kinds of additional output from `make'.
3998case `$am_make -s -f confmf 2> /dev/null` in #(
3999*the\ am__doit\ target*)
4000 am__include=include
4001 am__quote=
4002 _am_result=GNU
4003 ;;
4004esac
42ecbf5e
DJ
4005# Now try BSD make style include.
4006if test "$am__include" = "#"; then
4007 echo '.include "confinc"' > confmf
81ecdfbb
RW
4008 case `$am_make -s -f confmf 2> /dev/null` in #(
4009 *the\ am__doit\ target*)
4010 am__include=.include
4011 am__quote="\""
4012 _am_result=BSD
4013 ;;
4014 esac
42ecbf5e
DJ
4015fi
4016
4017
81ecdfbb
RW
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4019$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4020rm -f confinc confmf
4021
81ecdfbb
RW
4022# Check whether --enable-dependency-tracking was given.
4023if test "${enable_dependency_tracking+set}" = set; then :
4024 enableval=$enable_dependency_tracking;
4025fi
42ecbf5e 4026
42ecbf5e
DJ
4027if test "x$enable_dependency_tracking" != xno; then
4028 am_depcomp="$ac_aux_dir/depcomp"
4029 AMDEPBACKSLASH='\'
4030fi
81ecdfbb 4031 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4032 AMDEP_TRUE=
4033 AMDEP_FALSE='#'
4034else
4035 AMDEP_TRUE='#'
4036 AMDEP_FALSE=
4037fi
4038
e5a52504 4039
81ecdfbb
RW
4040if test "`cd $srcdir && pwd`" != "`pwd`"; then
4041 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4042 # is not polluted with repeated "-I."
4043 am__isrc=' -I$(srcdir)'
4044 # test to see if srcdir already configured
4045 if test -f $srcdir/config.status; then
4046 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4047 fi
42ecbf5e 4048fi
252b5132 4049
42ecbf5e
DJ
4050# test whether we have cygpath
4051if test -z "$CYGPATH_W"; then
4052 if (cygpath --version) >/dev/null 2>/dev/null; then
4053 CYGPATH_W='cygpath -w'
4054 else
4055 CYGPATH_W=echo
4056 fi
252b5132 4057fi
42ecbf5e
DJ
4058
4059
4060# Define the identity of the package.
2e98a7bd 4061 PACKAGE='ld'
91dc4e0a 4062 VERSION='2.25.51'
42ecbf5e
DJ
4063
4064
4065cat >>confdefs.h <<_ACEOF
e5a52504 4066#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4067_ACEOF
4068
252b5132 4069
42ecbf5e 4070cat >>confdefs.h <<_ACEOF
e5a52504 4071#define VERSION "$VERSION"
42ecbf5e
DJ
4072_ACEOF
4073
4074# Some tools Automake needs.
4075
4076ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4077
4078
4079AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4080
4081
4082AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4083
4084
4085AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4086
e5a52504 4087
42ecbf5e 4088MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4089
42ecbf5e
DJ
4090# We need awk for the "check" target. The system "awk" is bad on
4091# some platforms.
4092# Always define AMTAR for backward compatibility.
4093
4094AMTAR=${AMTAR-"${am_missing_run}tar"}
4095
4096am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4097
4098
4099
4100
4101depcc="$CC" am_compiler_list=
4102
81ecdfbb
RW
4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4104$as_echo_n "checking dependency style of $depcc... " >&6; }
4105if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4107else
4108 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4109 # We make a subdir and do the tests there. Otherwise we can end up
4110 # making bogus files that we don't know about and never remove. For
4111 # instance it was reported that on HP-UX the gcc test will end up
4112 # making a dummy file named `D' -- because `-MD' means `put the output
4113 # in D'.
4114 mkdir conftest.dir
4115 # Copy depcomp to subdir because otherwise we won't find it if we're
4116 # using a relative directory.
4117 cp "$am_depcomp" conftest.dir
4118 cd conftest.dir
4119 # We will build objects and dependencies in a subdirectory because
4120 # it helps to detect inapplicable dependency modes. For instance
4121 # both Tru64's cc and ICC support -MD to output dependencies as a
4122 # side effect of compilation, but ICC will put the dependencies in
4123 # the current directory while Tru64 will put them in the object
4124 # directory.
4125 mkdir sub
4126
4127 am_cv_CC_dependencies_compiler_type=none
4128 if test "$am_compiler_list" = ""; then
4129 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130 fi
81ecdfbb
RW
4131 am__universal=false
4132 case " $depcc " in #(
4133 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4134 esac
4135
42ecbf5e
DJ
4136 for depmode in $am_compiler_list; do
4137 # Setup a source with many dependencies, because some compilers
4138 # like to wrap large dependency lists on column 80 (with \), and
4139 # we should not choose a depcomp mode which is confused by this.
4140 #
4141 # We need to recreate these files for each test, as the compiler may
4142 # overwrite some of them when testing with obscure command lines.
4143 # This happens at least with the AIX C compiler.
4144 : > sub/conftest.c
4145 for i in 1 2 3 4 5 6; do
4146 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4147 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4148 # Solaris 8's {/usr,}/bin/sh.
4149 touch sub/conftst$i.h
4150 done
4151 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152
81ecdfbb
RW
4153 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4154 # mode. It turns out that the SunPro C++ compiler does not properly
4155 # handle `-M -o', and we need to detect this. Also, some Intel
4156 # versions had trouble with output in subdirs
4157 am__obj=sub/conftest.${OBJEXT-o}
4158 am__minus_obj="-o $am__obj"
42ecbf5e 4159 case $depmode in
81ecdfbb
RW
4160 gcc)
4161 # This depmode causes a compiler race in universal mode.
4162 test "$am__universal" = false || continue
4163 ;;
42ecbf5e
DJ
4164 nosideeffect)
4165 # after this tag, mechanisms are not by side-effect, so they'll
4166 # only be used when explicitly requested
4167 if test "x$enable_dependency_tracking" = xyes; then
4168 continue
4169 else
4170 break
4171 fi
4172 ;;
81ecdfbb
RW
4173 msvisualcpp | msvcmsys)
4174 # This compiler won't grok `-c -o', but also, the minuso test has
4175 # not run yet. These depmodes are late enough in the game, and
4176 # so weak that their functioning should not be impacted.
4177 am__obj=conftest.${OBJEXT-o}
4178 am__minus_obj=
4179 ;;
42ecbf5e
DJ
4180 none) break ;;
4181 esac
42ecbf5e 4182 if depmode=$depmode \
81ecdfbb 4183 source=sub/conftest.c object=$am__obj \
42ecbf5e 4184 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4185 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4186 >/dev/null 2>conftest.err &&
81ecdfbb 4187 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4188 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4189 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4190 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4191 # icc doesn't choke on unknown options, it will just issue warnings
4192 # or remarks (even with -Werror). So we grep stderr for any message
4193 # that says an option was ignored or not supported.
4194 # When given -MP, icc 7.0 and 7.1 complain thusly:
4195 # icc: Command line warning: ignoring option '-M'; no argument required
4196 # The diagnosis changed in icc 8.0:
4197 # icc: Command line remark: option '-MP' not supported
4198 if (grep 'ignoring option' conftest.err ||
4199 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4200 am_cv_CC_dependencies_compiler_type=$depmode
4201 break
4202 fi
4203 fi
4204 done
2469cfa2 4205
42ecbf5e
DJ
4206 cd ..
4207 rm -rf conftest.dir
2469cfa2 4208else
42ecbf5e
DJ
4209 am_cv_CC_dependencies_compiler_type=none
4210fi
4211
2469cfa2 4212fi
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4214$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4215CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216
81ecdfbb 4217 if
42ecbf5e
DJ
4218 test "x$enable_dependency_tracking" != xno \
4219 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4220 am__fastdepCC_TRUE=
4221 am__fastdepCC_FALSE='#'
2469cfa2 4222else
42ecbf5e
DJ
4223 am__fastdepCC_TRUE='#'
4224 am__fastdepCC_FALSE=
2469cfa2 4225fi
2469cfa2 4226
2469cfa2 4227
e5a52504 4228
42ecbf5e 4229
64ac50ac
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4231$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4232 # Check whether --enable-maintainer-mode was given.
4233if test "${enable_maintainer_mode+set}" = set; then :
4234 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4235else
4236 USE_MAINTAINER_MODE=no
4237fi
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4240$as_echo "$USE_MAINTAINER_MODE" >&6; }
4241 if test $USE_MAINTAINER_MODE = yes; then
4242 MAINTAINER_MODE_TRUE=
4243 MAINTAINER_MODE_FALSE='#'
4244else
4245 MAINTAINER_MODE_TRUE='#'
4246 MAINTAINER_MODE_FALSE=
4247fi
4248
4249 MAINT=$MAINTAINER_MODE_TRUE
4250
4251
4252
b879806f
AM
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258if test -n "$ac_tool_prefix"; then
4259 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4260set dummy ${ac_tool_prefix}gcc; ac_word=$2
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262$as_echo_n "checking for $ac_word... " >&6; }
4263if test "${ac_cv_prog_CC+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4265else
4266 if test -n "$CC"; then
4267 ac_cv_prog_CC="$CC" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4276 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4279 fi
4280done
4281 done
4282IFS=$as_save_IFS
d7040cdb 4283
81ecdfbb 4284fi
81ecdfbb 4285fi
b879806f
AM
4286CC=$ac_cv_prog_CC
4287if test -n "$CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289$as_echo "$CC" >&6; }
2469cfa2 4290else
b879806f
AM
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292$as_echo "no" >&6; }
81ecdfbb 4293fi
d7040cdb
SE
4294
4295
b879806f
AM
4296fi
4297if test -z "$ac_cv_prog_CC"; then
4298 ac_ct_CC=$CC
4299 # Extract the first word of "gcc", so it can be a program name with args.
4300set dummy gcc; ac_word=$2
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302$as_echo_n "checking for $ac_word... " >&6; }
4303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4304 $as_echo_n "(cached) " >&6
e5a52504 4305else
b879806f
AM
4306 if test -n "$ac_ct_CC"; then
4307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4308else
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_CC="gcc"
4317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320done
4321 done
4322IFS=$as_save_IFS
d7040cdb 4323
81ecdfbb 4324fi
b879806f
AM
4325fi
4326ac_ct_CC=$ac_cv_prog_ac_ct_CC
4327if test -n "$ac_ct_CC"; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4329$as_echo "$ac_ct_CC" >&6; }
4fda8867 4330else
b879806f
AM
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4fda8867
NC
4333fi
4334
b879806f
AM
4335 if test "x$ac_ct_CC" = x; then
4336 CC=""
4337 else
4338 case $cross_compiling:$ac_tool_warned in
4339yes:)
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4342ac_tool_warned=yes ;;
7fb9f789 4343esac
b879806f
AM
4344 CC=$ac_ct_CC
4345 fi
7fb9f789 4346else
b879806f 4347 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4348fi
4349
b879806f
AM
4350if test -z "$CC"; then
4351 if test -n "$ac_tool_prefix"; then
4352 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4353set dummy ${ac_tool_prefix}cc; ac_word=$2
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355$as_echo_n "checking for $ac_word... " >&6; }
4356if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4357 $as_echo_n "(cached) " >&6
4358else
b879806f
AM
4359 if test -n "$CC"; then
4360 ac_cv_prog_CC="$CC" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
397841b5 4364do
b879806f
AM
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CC="${ac_tool_prefix}cc"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373done
4374 done
4375IFS=$as_save_IFS
d7040cdb 4376
ce2cded5 4377fi
ce2cded5 4378fi
b879806f
AM
4379CC=$ac_cv_prog_CC
4380if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382$as_echo "$CC" >&6; }
4383else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385$as_echo "no" >&6; }
81ecdfbb
RW
4386fi
4387
d7040cdb 4388
b879806f 4389 fi
ce2cded5 4390fi
b879806f
AM
4391if test -z "$CC"; then
4392 # Extract the first word of "cc", so it can be a program name with args.
4393set dummy cc; ac_word=$2
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395$as_echo_n "checking for $ac_word... " >&6; }
4396if test "${ac_cv_prog_CC+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
397841b5 4398else
b879806f
AM
4399 if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401else
4402 ac_prog_rejected=no
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
397841b5 4405do
b879806f
AM
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4411 ac_prog_rejected=yes
4412 continue
4413 fi
4414 ac_cv_prog_CC="cc"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419 done
4420IFS=$as_save_IFS
d7040cdb 4421
b879806f
AM
4422if test $ac_prog_rejected = yes; then
4423 # We found a bogon in the path, so make sure we never use it.
4424 set dummy $ac_cv_prog_CC
4425 shift
4426 if test $# != 0; then
4427 # We chose a different compiler from the bogus one.
4428 # However, it has the same basename, so the bogon will be chosen
4429 # first if we set CC to just the basename; use the full file name.
4430 shift
4431 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4432 fi
397841b5 4433fi
397841b5 4434fi
b879806f
AM
4435fi
4436CC=$ac_cv_prog_CC
4437if test -n "$CC"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4439$as_echo "$CC" >&6; }
397841b5 4440else
b879806f
AM
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442$as_echo "no" >&6; }
ce2cded5 4443fi
d7040cdb 4444
397841b5 4445
b879806f
AM
4446fi
4447if test -z "$CC"; then
4448 if test -n "$ac_tool_prefix"; then
4449 for ac_prog in cl.exe
4450 do
4451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4452set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4456 $as_echo_n "(cached) " >&6
d7040cdb 4457else
b879806f
AM
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
d7040cdb
SE
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
81ecdfbb 4466 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
397841b5
AM
4473 done
4474IFS=$as_save_IFS
d7040cdb 4475
252b5132 4476fi
b879806f
AM
4477fi
4478CC=$ac_cv_prog_CC
4479if test -n "$CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481$as_echo "$CC" >&6; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
397841b5
AM
4486
4487
b879806f
AM
4488 test -n "$CC" && break
4489 done
4490fi
4491if test -z "$CC"; then
4492 ac_ct_CC=$CC
4493 for ac_prog in cl.exe
4494do
4495 # Extract the first word of "$ac_prog", so it can be a program name with args.
4496set dummy $ac_prog; ac_word=$2
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498$as_echo_n "checking for $ac_word... " >&6; }
4499if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4500 $as_echo_n "(cached) " >&6
4501else
b879806f
AM
4502 if test -n "$ac_ct_CC"; then
4503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4504else
4505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
397841b5
AM
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
397841b5 4510 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_CC="$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
397841b5
AM
4517 done
4518IFS=$as_save_IFS
397841b5 4519
397841b5 4520fi
397841b5 4521fi
b879806f
AM
4522ac_ct_CC=$ac_cv_prog_ac_ct_CC
4523if test -n "$ac_ct_CC"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4525$as_echo "$ac_ct_CC" >&6; }
4526else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
397841b5
AM
4529fi
4530
397841b5 4531
b879806f
AM
4532 test -n "$ac_ct_CC" && break
4533done
397841b5 4534
b879806f
AM
4535 if test "x$ac_ct_CC" = x; then
4536 CC=""
4537 else
4538 case $cross_compiling:$ac_tool_warned in
4539yes:)
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4542ac_tool_warned=yes ;;
397841b5 4543esac
b879806f
AM
4544 CC=$ac_ct_CC
4545 fi
397841b5
AM
4546fi
4547
397841b5
AM
4548fi
4549
4550
b879806f
AM
4551test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4553as_fn_error "no acceptable C compiler found in \$PATH
4554See \`config.log' for more details." "$LINENO" 5; }
397841b5 4555
b879806f
AM
4556# Provide some information about the compiler.
4557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4558set X $ac_compile
4559ac_compiler=$2
4560for ac_option in --version -v -V -qversion; do
4561 { { ac_try="$ac_compiler $ac_option >&5"
4562case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4567$as_echo "$ac_try_echo"; } >&5
4568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4569 ac_status=$?
4570 if test -s conftest.err; then
4571 sed '10a\
4572... rest of stderr output deleted ...
4573 10q' conftest.err >conftest.er1
4574 cat conftest.er1 >&5
4575 rm -f conftest.er1 conftest.err
4576 fi
4577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }
4579done
397841b5 4580
b879806f
AM
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4582$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4583if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4584 $as_echo_n "(cached) " >&6
4585else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h. */
b879806f 4588
44350750
NC
4589int
4590main ()
4591{
b879806f
AM
4592#ifndef __GNUC__
4593 choke me
4594#endif
4595
4596 ;
44350750
NC
4597 return 0;
4598}
4599_ACEOF
b879806f
AM
4600if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_compiler_gnu=yes
44350750 4602else
b879806f 4603 ac_compiler_gnu=no
44350750 4604fi
b879806f
AM
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606ac_cv_c_compiler_gnu=$ac_compiler_gnu
4607
44350750 4608fi
b879806f
AM
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4610$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4611if test $ac_compiler_gnu = yes; then
4612 GCC=yes
4613else
4614 GCC=
4615fi
4616ac_test_CFLAGS=${CFLAGS+set}
4617ac_save_CFLAGS=$CFLAGS
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4619$as_echo_n "checking whether $CC accepts -g... " >&6; }
4620if test "${ac_cv_prog_cc_g+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622else
4623 ac_save_c_werror_flag=$ac_c_werror_flag
4624 ac_c_werror_flag=yes
4625 ac_cv_prog_cc_g=no
4626 CFLAGS="-g"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
44350750 4629
b879806f
AM
4630int
4631main ()
4632{
44350750 4633
b879806f
AM
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_prog_cc_g=yes
4640else
4641 CFLAGS=""
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h. */
4644
4645int
4646main ()
4647{
44350750 4648
b879806f
AM
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653if ac_fn_c_try_compile "$LINENO"; then :
44350750 4654
b879806f
AM
4655else
4656 ac_c_werror_flag=$ac_save_c_werror_flag
4657 CFLAGS="-g"
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659/* end confdefs.h. */
397841b5 4660
b879806f
AM
4661int
4662main ()
4663{
397841b5 4664
b879806f
AM
4665 ;
4666 return 0;
4667}
4668_ACEOF
4669if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_prog_cc_g=yes
4671fi
4672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673fi
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675fi
4676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 ac_c_werror_flag=$ac_save_c_werror_flag
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4680$as_echo "$ac_cv_prog_cc_g" >&6; }
4681if test "$ac_test_CFLAGS" = set; then
4682 CFLAGS=$ac_save_CFLAGS
4683elif test $ac_cv_prog_cc_g = yes; then
4684 if test "$GCC" = yes; then
4685 CFLAGS="-g -O2"
4686 else
4687 CFLAGS="-g"
4688 fi
4689else
4690 if test "$GCC" = yes; then
4691 CFLAGS="-O2"
4692 else
4693 CFLAGS=
4694 fi
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4697$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4698if test "${ac_cv_prog_cc_c89+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 ac_cv_prog_cc_c89=no
4702ac_save_CC=$CC
4703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h. */
4705#include <stdarg.h>
4706#include <stdio.h>
4707#include <sys/types.h>
4708#include <sys/stat.h>
4709/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4710struct buf { int x; };
4711FILE * (*rcsopen) (struct buf *, struct stat *, int);
4712static char *e (p, i)
4713 char **p;
4714 int i;
4715{
4716 return p[i];
4717}
4718static char *f (char * (*g) (char **, int), char **p, ...)
4719{
4720 char *s;
4721 va_list v;
4722 va_start (v,p);
4723 s = g (p, va_arg (v,int));
4724 va_end (v);
4725 return s;
4726}
df7b86aa 4727
b879806f
AM
4728/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4729 function prototypes and stuff, but not '\xHH' hex character constants.
4730 These don't provoke an error unfortunately, instead are silently treated
4731 as 'x'. The following induces an error, until -std is added to get
4732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4733 array size at least. It's necessary to write '\x00'==0 to get something
4734 that's true only with -std. */
4735int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4736
b879806f
AM
4737/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4738 inside strings and character constants. */
4739#define FOO(x) 'x'
4740int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4741
4742int test (int i, double x);
4743struct s1 {int (*f) (int a);};
4744struct s2 {int (*f) (double a);};
4745int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4746int argc;
4747char **argv;
4748int
4749main ()
4750{
4751return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4752 ;
4753 return 0;
4754}
4755_ACEOF
4756for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4758do
4759 CC="$ac_save_CC $ac_arg"
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 ac_cv_prog_cc_c89=$ac_arg
397841b5 4762fi
b879806f
AM
4763rm -f core conftest.err conftest.$ac_objext
4764 test "x$ac_cv_prog_cc_c89" != "xno" && break
4765done
4766rm -f conftest.$ac_ext
4767CC=$ac_save_CC
4768
397841b5 4769fi
b879806f
AM
4770# AC_CACHE_VAL
4771case "x$ac_cv_prog_cc_c89" in
4772 x)
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4774$as_echo "none needed" >&6; } ;;
4775 xno)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777$as_echo "unsupported" >&6; } ;;
4778 *)
4779 CC="$CC $ac_cv_prog_cc_c89"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4781$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4782esac
4783if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4784
b879806f 4785fi
397841b5
AM
4786
4787ac_ext=c
4788ac_cpp='$CPP $CPPFLAGS'
4789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4791ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4792
4793ac_ext=cpp
4794ac_cpp='$CXXCPP $CPPFLAGS'
4795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4798if test -z "$CXX"; then
4799 if test -n "$CCC"; then
4800 CXX=$CCC
4801 else
4802 if test -n "$ac_tool_prefix"; then
4803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4804 do
4805 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4806set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4809if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4810 $as_echo_n "(cached) " >&6
4811else
b879806f
AM
4812 if test -n "$CXX"; then
4813 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4822 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827 done
4828IFS=$as_save_IFS
4829
4830fi
4831fi
b879806f
AM
4832CXX=$ac_cv_prog_CXX
4833if test -n "$CXX"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4835$as_echo "$CXX" >&6; }
397841b5
AM
4836else
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
4839fi
4840
4841
b879806f
AM
4842 test -n "$CXX" && break
4843 done
397841b5 4844fi
b879806f
AM
4845if test -z "$CXX"; then
4846 ac_ct_CXX=$CXX
4847 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4848do
4849 # Extract the first word of "$ac_prog", so it can be a program name with args.
4850set dummy $ac_prog; ac_word=$2
397841b5
AM
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4853if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4854 $as_echo_n "(cached) " >&6
252b5132 4855else
b879806f
AM
4856 if test -n "$ac_ct_CXX"; then
4857 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4858else
ce2cded5
L
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4866 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4868 break 2
4869 fi
4870done
81ecdfbb
RW
4871 done
4872IFS=$as_save_IFS
4873
252b5132
RH
4874fi
4875fi
b879806f
AM
4876ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4877if test -n "$ac_ct_CXX"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4879$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4880else
81ecdfbb
RW
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
d7040cdb
SE
4883fi
4884
81ecdfbb 4885
b879806f 4886 test -n "$ac_ct_CXX" && break
d7040cdb 4887done
d7040cdb 4888
b879806f
AM
4889 if test "x$ac_ct_CXX" = x; then
4890 CXX="g++"
81ecdfbb
RW
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893yes:)
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896ac_tool_warned=yes ;;
4897esac
b879806f 4898 CXX=$ac_ct_CXX
81ecdfbb 4899 fi
d7040cdb
SE
4900fi
4901
b879806f 4902 fi
d7040cdb 4903fi
ce2cded5 4904# Provide some information about the compiler.
b879806f 4905$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4906set X $ac_compile
4907ac_compiler=$2
4908for ac_option in --version -v -V -qversion; do
4909 { { ac_try="$ac_compiler $ac_option >&5"
4910case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
4914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915$as_echo "$ac_try_echo"; } >&5
4916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4917 ac_status=$?
81ecdfbb
RW
4918 if test -s conftest.err; then
4919 sed '10a\
4920... rest of stderr output deleted ...
4921 10q' conftest.err >conftest.er1
4922 cat conftest.er1 >&5
4923 rm -f conftest.er1 conftest.err
4924 fi
4925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926 test $ac_status = 0; }
4927done
d7040cdb 4928
b879806f
AM
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4930$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4931if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4932 $as_echo_n "(cached) " >&6
d7040cdb 4933else
81ecdfbb 4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4935/* end confdefs.h. */
d7040cdb 4936
ce2cded5
L
4937int
4938main ()
4939{
4940#ifndef __GNUC__
4941 choke me
4942#endif
4943
4944 ;
4945 return 0;
4946}
4947_ACEOF
b879806f 4948if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4949 ac_compiler_gnu=yes
d7040cdb 4950else
81ecdfbb 4951 ac_compiler_gnu=no
d7040cdb 4952fi
81ecdfbb 4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4954ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4955
ce2cded5 4956fi
b879806f
AM
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4958$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4959if test $ac_compiler_gnu = yes; then
b879806f 4960 GXX=yes
81ecdfbb 4961else
b879806f 4962 GXX=
81ecdfbb 4963fi
b879806f
AM
4964ac_test_CXXFLAGS=${CXXFLAGS+set}
4965ac_save_CXXFLAGS=$CXXFLAGS
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4967$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4968if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4969 $as_echo_n "(cached) " >&6
4970else
b879806f
AM
4971 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4972 ac_cxx_werror_flag=yes
4973 ac_cv_prog_cxx_g=no
4974 CXXFLAGS="-g"
81ecdfbb 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4976/* end confdefs.h. */
d7040cdb 4977
ce2cded5
L
4978int
4979main ()
4980{
d7040cdb 4981
ce2cded5
L
4982 ;
4983 return 0;
4984}
4985_ACEOF
b879806f
AM
4986if ac_fn_cxx_try_compile "$LINENO"; then :
4987 ac_cv_prog_cxx_g=yes
ce2cded5 4988else
b879806f 4989 CXXFLAGS=""
81ecdfbb
RW
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991/* end confdefs.h. */
4992
4993int
4994main ()
4995{
4996
4997 ;
4998 return 0;
4999}
5000_ACEOF
b879806f 5001if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5002
5003else
b879806f
AM
5004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5005 CXXFLAGS="-g"
81ecdfbb
RW
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h. */
5008
5009int
5010main ()
5011{
d7040cdb 5012
81ecdfbb
RW
5013 ;
5014 return 0;
5015}
5016_ACEOF
b879806f
AM
5017if ac_fn_cxx_try_compile "$LINENO"; then :
5018 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5019fi
5020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021fi
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5023fi
81ecdfbb 5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5025 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5026fi
b879806f
AM
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5028$as_echo "$ac_cv_prog_cxx_g" >&6; }
5029if test "$ac_test_CXXFLAGS" = set; then
5030 CXXFLAGS=$ac_save_CXXFLAGS
5031elif test $ac_cv_prog_cxx_g = yes; then
5032 if test "$GXX" = yes; then
5033 CXXFLAGS="-g -O2"
ce2cded5 5034 else
b879806f 5035 CXXFLAGS="-g"
ce2cded5 5036 fi
d7040cdb 5037else
b879806f
AM
5038 if test "$GXX" = yes; then
5039 CXXFLAGS="-O2"
ce2cded5 5040 else
b879806f 5041 CXXFLAGS=
ce2cded5 5042 fi
d7040cdb 5043fi
b879806f
AM
5044ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050depcc="$CXX" am_compiler_list=
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5053$as_echo_n "checking dependency style of $depcc... " >&6; }
5054if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5055 $as_echo_n "(cached) " >&6
d7040cdb 5056else
b879806f
AM
5057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5058 # We make a subdir and do the tests there. Otherwise we can end up
5059 # making bogus files that we don't know about and never remove. For
5060 # instance it was reported that on HP-UX the gcc test will end up
5061 # making a dummy file named `D' -- because `-MD' means `put the output
5062 # in D'.
5063 mkdir conftest.dir
5064 # Copy depcomp to subdir because otherwise we won't find it if we're
5065 # using a relative directory.
5066 cp "$am_depcomp" conftest.dir
5067 cd conftest.dir
5068 # We will build objects and dependencies in a subdirectory because
5069 # it helps to detect inapplicable dependency modes. For instance
5070 # both Tru64's cc and ICC support -MD to output dependencies as a
5071 # side effect of compilation, but ICC will put the dependencies in
5072 # the current directory while Tru64 will put them in the object
5073 # directory.
5074 mkdir sub
d7040cdb 5075
b879806f
AM
5076 am_cv_CXX_dependencies_compiler_type=none
5077 if test "$am_compiler_list" = ""; then
5078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5079 fi
5080 am__universal=false
5081 case " $depcc " in #(
5082 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5083 esac
d7040cdb 5084
b879806f
AM
5085 for depmode in $am_compiler_list; do
5086 # Setup a source with many dependencies, because some compilers
5087 # like to wrap large dependency lists on column 80 (with \), and
5088 # we should not choose a depcomp mode which is confused by this.
5089 #
5090 # We need to recreate these files for each test, as the compiler may
5091 # overwrite some of them when testing with obscure command lines.
5092 # This happens at least with the AIX C compiler.
5093 : > sub/conftest.c
5094 for i in 1 2 3 4 5 6; do
5095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097 # Solaris 8's {/usr,}/bin/sh.
5098 touch sub/conftst$i.h
5099 done
5100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5101
b879806f
AM
5102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5103 # mode. It turns out that the SunPro C++ compiler does not properly
5104 # handle `-M -o', and we need to detect this. Also, some Intel
5105 # versions had trouble with output in subdirs
5106 am__obj=sub/conftest.${OBJEXT-o}
5107 am__minus_obj="-o $am__obj"
5108 case $depmode in
5109 gcc)
5110 # This depmode causes a compiler race in universal mode.
5111 test "$am__universal" = false || continue
5112 ;;
5113 nosideeffect)
5114 # after this tag, mechanisms are not by side-effect, so they'll
5115 # only be used when explicitly requested
5116 if test "x$enable_dependency_tracking" = xyes; then
5117 continue
5118 else
5119 break
5120 fi
5121 ;;
5122 msvisualcpp | msvcmsys)
5123 # This compiler won't grok `-c -o', but also, the minuso test has
5124 # not run yet. These depmodes are late enough in the game, and
5125 # so weak that their functioning should not be impacted.
5126 am__obj=conftest.${OBJEXT-o}
5127 am__minus_obj=
5128 ;;
5129 none) break ;;
5130 esac
5131 if depmode=$depmode \
5132 source=sub/conftest.c object=$am__obj \
5133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5135 >/dev/null 2>conftest.err &&
5136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5140 # icc doesn't choke on unknown options, it will just issue warnings
5141 # or remarks (even with -Werror). So we grep stderr for any message
5142 # that says an option was ignored or not supported.
5143 # When given -MP, icc 7.0 and 7.1 complain thusly:
5144 # icc: Command line warning: ignoring option '-M'; no argument required
5145 # The diagnosis changed in icc 8.0:
5146 # icc: Command line remark: option '-MP' not supported
5147 if (grep 'ignoring option' conftest.err ||
5148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5149 am_cv_CXX_dependencies_compiler_type=$depmode
5150 break
5151 fi
5152 fi
5153 done
5154
5155 cd ..
5156 rm -rf conftest.dir
5157else
5158 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5159fi
d7040cdb 5160
ce2cded5 5161fi
b879806f
AM
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5163$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5164CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5165
b879806f
AM
5166 if
5167 test "x$enable_dependency_tracking" != xno \
5168 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5169 am__fastdepCXX_TRUE=
5170 am__fastdepCXX_FALSE='#'
5171else
5172 am__fastdepCXX_TRUE='#'
5173 am__fastdepCXX_FALSE=
ce2cded5 5174fi
d7040cdb 5175
b879806f 5176
ce2cded5
L
5177ac_ext=c
5178ac_cpp='$CPP $CPPFLAGS'
5179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5183$as_echo_n "checking how to run the C preprocessor... " >&6; }
5184# On Suns, sometimes $CPP names a directory.
5185if test -n "$CPP" && test -d "$CPP"; then
5186 CPP=
7357c5b6 5187fi
b879806f
AM
5188if test -z "$CPP"; then
5189 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5190 $as_echo_n "(cached) " >&6
5191else
b879806f
AM
5192 # Double quotes because CPP needs to be expanded
5193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5194 do
5195 ac_preproc_ok=false
5196for ac_c_preproc_warn_flag in '' yes
3cb62297 5197do
b879806f
AM
5198 # Use a header file that comes with gcc, so configuring glibc
5199 # with a fresh cross-compiler works.
5200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201 # <limits.h> exists even on freestanding compilers.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error" is here to catch this case.
5204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205/* end confdefs.h. */
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211 Syntax error
5212_ACEOF
5213if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5214
3cb62297 5215else
b879806f
AM
5216 # Broken: fails on valid input.
5217continue
7357c5b6 5218fi
b879806f 5219rm -f conftest.err conftest.$ac_ext
252b5132 5220
b879806f
AM
5221 # OK, works on sane cases. Now check whether nonexistent headers
5222 # can be detected and how.
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h. */
5225#include <ac_nonexistent.h>
5226_ACEOF
5227if ac_fn_c_try_cpp "$LINENO"; then :
5228 # Broken: success on invalid input.
5229continue
5230else
5231 # Passes both tests.
5232ac_preproc_ok=:
5233break
5234fi
5235rm -f conftest.err conftest.$ac_ext
42ecbf5e 5236
3cb62297 5237done
b879806f
AM
5238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239rm -f conftest.err conftest.$ac_ext
5240if $ac_preproc_ok; then :
5241 break
7357c5b6 5242fi
ac48eca1 5243
b879806f
AM
5244 done
5245 ac_cv_prog_CPP=$CPP
d7040cdb 5246
b879806f
AM
5247fi
5248 CPP=$ac_cv_prog_CPP
7357c5b6 5249else
b879806f
AM
5250 ac_cv_prog_CPP=$CPP
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5253$as_echo "$CPP" >&6; }
5254ac_preproc_ok=false
5255for ac_c_preproc_warn_flag in '' yes
5256do
5257 # Use a header file that comes with gcc, so configuring glibc
5258 # with a fresh cross-compiler works.
5259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5260 # <limits.h> exists even on freestanding compilers.
5261 # On the NeXT, cc -E runs the code through the compiler's parser,
5262 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5264/* end confdefs.h. */
b879806f
AM
5265#ifdef __STDC__
5266# include <limits.h>
5267#else
5268# include <assert.h>
3cb62297 5269#endif
b879806f 5270 Syntax error
7357c5b6 5271_ACEOF
b879806f
AM
5272if ac_fn_c_try_cpp "$LINENO"; then :
5273
81ecdfbb 5274else
b879806f
AM
5275 # Broken: fails on valid input.
5276continue
7357c5b6 5277fi
b879806f 5278rm -f conftest.err conftest.$ac_ext
81ecdfbb 5279
b879806f
AM
5280 # OK, works on sane cases. Now check whether nonexistent headers
5281 # can be detected and how.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <ac_nonexistent.h>
5285_ACEOF
5286if ac_fn_c_try_cpp "$LINENO"; then :
5287 # Broken: success on invalid input.
5288continue
3cb62297 5289else
b879806f
AM
5290 # Passes both tests.
5291ac_preproc_ok=:
5292break
7357c5b6 5293fi
b879806f 5294rm -f conftest.err conftest.$ac_ext
252b5132 5295
b879806f
AM
5296done
5297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5298rm -f conftest.err conftest.$ac_ext
5299if $ac_preproc_ok; then :
252b5132 5300
3cb62297 5301else
b879806f
AM
5302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5304as_fn_error "C preprocessor \"$CPP\" fails sanity check
5305See \`config.log' for more details." "$LINENO" 5; }
5306fi
42ecbf5e 5307
b879806f
AM
5308ac_ext=c
5309ac_cpp='$CPP $CPPFLAGS'
5310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5313
5314
b879806f
AM
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5316$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5317if test "${ac_cv_path_GREP+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
3cb62297 5319else
b879806f
AM
5320 if test -z "$GREP"; then
5321 ac_path_GREP_found=false
5322 # Loop through the user's path and test for each of PROGNAME-LIST
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_prog in grep ggrep; do
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5331 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5332# Check for GNU ac_path_GREP and select it if it is found.
5333 # Check for GNU $ac_path_GREP
5334case `"$ac_path_GREP" --version 2>&1` in
5335*GNU*)
5336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5337*)
5338 ac_count=0
5339 $as_echo_n 0123456789 >"conftest.in"
5340 while :
5341 do
5342 cat "conftest.in" "conftest.in" >"conftest.tmp"
5343 mv "conftest.tmp" "conftest.in"
5344 cp "conftest.in" "conftest.nl"
5345 $as_echo 'GREP' >> "conftest.nl"
5346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5348 as_fn_arith $ac_count + 1 && ac_count=$as_val
5349 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5350 # Best one so far, save it but keep looking for a better one
5351 ac_cv_path_GREP="$ac_path_GREP"
5352 ac_path_GREP_max=$ac_count
5353 fi
5354 # 10*(2^10) chars as input seems more than enough
5355 test $ac_count -gt 10 && break
5356 done
5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5358esac
5359
5360 $ac_path_GREP_found && break 3
5361 done
5362 done
5363 done
5364IFS=$as_save_IFS
5365 if test -z "$ac_cv_path_GREP"; then
5366 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5367 fi
5368else
5369 ac_cv_path_GREP=$GREP
5370fi
5371
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5374$as_echo "$ac_cv_path_GREP" >&6; }
5375 GREP="$ac_cv_path_GREP"
5376
5377
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5379$as_echo_n "checking for egrep... " >&6; }
5380if test "${ac_cv_path_EGREP+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382else
5383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5384 then ac_cv_path_EGREP="$GREP -E"
5385 else
5386 if test -z "$EGREP"; then
5387 ac_path_EGREP_found=false
5388 # Loop through the user's path and test for each of PROGNAME-LIST
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5391do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_prog in egrep; do
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5397 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5398# Check for GNU ac_path_EGREP and select it if it is found.
5399 # Check for GNU $ac_path_EGREP
5400case `"$ac_path_EGREP" --version 2>&1` in
5401*GNU*)
5402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5403*)
5404 ac_count=0
5405 $as_echo_n 0123456789 >"conftest.in"
5406 while :
5407 do
5408 cat "conftest.in" "conftest.in" >"conftest.tmp"
5409 mv "conftest.tmp" "conftest.in"
5410 cp "conftest.in" "conftest.nl"
5411 $as_echo 'EGREP' >> "conftest.nl"
5412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5414 as_fn_arith $ac_count + 1 && ac_count=$as_val
5415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5416 # Best one so far, save it but keep looking for a better one
5417 ac_cv_path_EGREP="$ac_path_EGREP"
5418 ac_path_EGREP_max=$ac_count
5419 fi
5420 # 10*(2^10) chars as input seems more than enough
5421 test $ac_count -gt 10 && break
5422 done
5423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5424esac
5425
5426 $ac_path_EGREP_found && break 3
5427 done
5428 done
5429 done
5430IFS=$as_save_IFS
5431 if test -z "$ac_cv_path_EGREP"; then
5432 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5433 fi
5434else
5435 ac_cv_path_EGREP=$EGREP
5436fi
5437
5438 fi
5439fi
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5441$as_echo "$ac_cv_path_EGREP" >&6; }
5442 EGREP="$ac_cv_path_EGREP"
5443
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5446$as_echo_n "checking for ANSI C header files... " >&6; }
5447if test "${ac_cv_header_stdc+set}" = set; then :
5448 $as_echo_n "(cached) " >&6
5449else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5451/* end confdefs.h. */
b879806f
AM
5452#include <stdlib.h>
5453#include <stdarg.h>
5454#include <string.h>
5455#include <float.h>
42ecbf5e 5456
3cb62297
L
5457int
5458main ()
5459{
42ecbf5e 5460
3cb62297
L
5461 ;
5462 return 0;
5463}
5464_ACEOF
b879806f
AM
5465if ac_fn_c_try_compile "$LINENO"; then :
5466 ac_cv_header_stdc=yes
5467else
5468 ac_cv_header_stdc=no
3cb62297
L
5469fi
5470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5471
5472if test $ac_cv_header_stdc = yes; then
5473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h. */
5476#include <string.h>
5477
5478_ACEOF
5479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5480 $EGREP "memchr" >/dev/null 2>&1; then :
5481
5482else
5483 ac_cv_header_stdc=no
3cb62297 5484fi
b879806f
AM
5485rm -f conftest*
5486
3cb62297 5487fi
b879806f
AM
5488
5489if test $ac_cv_header_stdc = yes; then
5490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h. */
5493#include <stdlib.h>
5494
5495_ACEOF
5496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5497 $EGREP "free" >/dev/null 2>&1; then :
5498
ce2cded5 5499else
b879806f 5500 ac_cv_header_stdc=no
ce2cded5 5501fi
b879806f 5502rm -f conftest*
42ecbf5e 5503
b879806f 5504fi
e5a52504 5505
b879806f
AM
5506if test $ac_cv_header_stdc = yes; then
5507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5508 if test "$cross_compiling" = yes; then :
5509 :
3cb62297 5510else
b879806f
AM
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512/* end confdefs.h. */
5513#include <ctype.h>
5514#include <stdlib.h>
5515#if ((' ' & 0x0FF) == 0x020)
5516# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5517# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5518#else
5519# define ISLOWER(c) \
5520 (('a' <= (c) && (c) <= 'i') \
5521 || ('j' <= (c) && (c) <= 'r') \
5522 || ('s' <= (c) && (c) <= 'z'))
5523# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5524#endif
3cb62297
L
5525
5526#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5527int
5528main ()
5529{
5530 int i;
5531 for (i = 0; i < 256; i++)
5532 if (XOR (islower (i), ISLOWER (i))
5533 || toupper (i) != TOUPPER (i))
5534 return 2;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_run "$LINENO"; then :
5539
5540else
5541 ac_cv_header_stdc=no
5542fi
5543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5544 conftest.$ac_objext conftest.beam conftest.$ac_ext
5545fi
5546
5547fi
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5550$as_echo "$ac_cv_header_stdc" >&6; }
5551if test $ac_cv_header_stdc = yes; then
5552
5553$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5554
5555fi
5556
5557# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5558for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5559 inttypes.h stdint.h unistd.h
5560do :
5561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5563"
5564eval as_val=\$$as_ac_Header
5565 if test "x$as_val" = x""yes; then :
5566 cat >>confdefs.h <<_ACEOF
5567#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5568_ACEOF
5569
5570fi
5571
5572done
5573
5574
5575
5576 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5577if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5578 MINIX=yes
5579else
5580 MINIX=
5581fi
5582
5583
5584 if test "$MINIX" = yes; then
5585
5586$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5587
5588
5589$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5590
5591
5592$as_echo "#define _MINIX 1" >>confdefs.h
5593
5594 fi
5595
5596
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5598$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5599if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5600 $as_echo_n "(cached) " >&6
5601else
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603/* end confdefs.h. */
5604
5605# define __EXTENSIONS__ 1
5606 $ac_includes_default
5607int
5608main ()
5609{
5610
5611 ;
5612 return 0;
5613}
5614_ACEOF
5615if ac_fn_c_try_compile "$LINENO"; then :
5616 ac_cv_safe_to_define___extensions__=yes
5617else
5618 ac_cv_safe_to_define___extensions__=no
5619fi
5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621fi
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5623$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5624 test $ac_cv_safe_to_define___extensions__ = yes &&
5625 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5626
5627 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5628
5629 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5630
5631 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5632
5633 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5634
5635
5636
5637
5638
3cb62297 5639
b879806f
AM
5640case `pwd` in
5641 *\ * | *\ *)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5643$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5644esac
3cb62297
L
5645
5646
da2f07f1 5647
b879806f
AM
5648macro_version='2.2.7a'
5649macro_revision='1.3134'
d7040cdb 5650
d7040cdb
SE
5651
5652
d7040cdb 5653
d7040cdb 5654
42ecbf5e 5655
d7040cdb 5656
252b5132 5657
252b5132 5658
252b5132 5659
252b5132
RH
5660
5661
ce2cded5 5662
b214d478 5663ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5664
3725885a
RW
5665# Backslashify metacharacters that are still active within
5666# double-quoted strings.
5667sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5668
5669# Same as above, but do not quote variable references.
5670double_quote_subst='s/\(["`\\]\)/\\\1/g'
5671
5672# Sed substitution to delay expansion of an escaped shell variable in a
5673# double_quote_subst'ed string.
5674delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5675
5676# Sed substitution to delay expansion of an escaped single quote.
5677delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5678
5679# Sed substitution to avoid accidental globbing in evaled expressions
5680no_glob_subst='s/\*/\\\*/g'
5681
5682ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5683ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5684ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5685
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5687$as_echo_n "checking how to print strings... " >&6; }
5688# Test print first, because it will be a builtin if present.
5689if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5690 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5691 ECHO='print -r --'
5692elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5693 ECHO='printf %s\n'
5694else
5695 # Use this function as a fallback that always works.
5696 func_fallback_echo ()
5697 {
5698 eval 'cat <<_LTECHO_EOF
5699$1
5700_LTECHO_EOF'
5701 }
5702 ECHO='func_fallback_echo'
5703fi
5704
5705# func_echo_all arg...
5706# Invoke $ECHO with all args, space-separated.
5707func_echo_all ()
5708{
5709 $ECHO ""
5710}
5711
5712case "$ECHO" in
5713 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5714$as_echo "printf" >&6; } ;;
5715 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5716$as_echo "print -r" >&6; } ;;
5717 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5718$as_echo "cat" >&6; } ;;
5719esac
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
81ecdfbb
RW
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5735$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5736if test "${ac_cv_path_SED+set}" = set; then :
5737 $as_echo_n "(cached) " >&6
5738else
5739 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5740 for ac_i in 1 2 3 4 5 6 7; do
5741 ac_script="$ac_script$as_nl$ac_script"
5742 done
5743 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5744 { ac_script=; unset ac_script;}
5745 if test -z "$SED"; then
5746 ac_path_SED_found=false
5747 # Loop through the user's path and test for each of PROGNAME-LIST
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5749for as_dir in $PATH
5750do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
81ecdfbb 5753 for ac_prog in sed gsed; do
7357c5b6 5754 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5755 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5756 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5757# Check for GNU ac_path_SED and select it if it is found.
5758 # Check for GNU $ac_path_SED
5759case `"$ac_path_SED" --version 2>&1` in
5760*GNU*)
5761 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5762*)
5763 ac_count=0
5764 $as_echo_n 0123456789 >"conftest.in"
5765 while :
5766 do
5767 cat "conftest.in" "conftest.in" >"conftest.tmp"
5768 mv "conftest.tmp" "conftest.in"
5769 cp "conftest.in" "conftest.nl"
5770 $as_echo '' >> "conftest.nl"
5771 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5773 as_fn_arith $ac_count + 1 && ac_count=$as_val
5774 if test $ac_count -gt ${ac_path_SED_max-0}; then
5775 # Best one so far, save it but keep looking for a better one
5776 ac_cv_path_SED="$ac_path_SED"
5777 ac_path_SED_max=$ac_count
5778 fi
5779 # 10*(2^10) chars as input seems more than enough
5780 test $ac_count -gt 10 && break
5781 done
5782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5783esac
5784
5785 $ac_path_SED_found && break 3
7357c5b6
AM
5786 done
5787 done
81ecdfbb 5788 done
7357c5b6 5789IFS=$as_save_IFS
81ecdfbb
RW
5790 if test -z "$ac_cv_path_SED"; then
5791 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5792 fi
81ecdfbb
RW
5793else
5794 ac_cv_path_SED=$SED
7357c5b6 5795fi
20e95c23 5796
81ecdfbb
RW
5797fi
5798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5799$as_echo "$ac_cv_path_SED" >&6; }
5800 SED="$ac_cv_path_SED"
5801 rm -f conftest.sed
20e95c23 5802
7357c5b6
AM
5803test -z "$SED" && SED=sed
5804Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5805
5806
5807
5808
5809
5810
20e95c23 5811
20e95c23 5812
d7040cdb 5813
d7040cdb 5814
7357c5b6 5815
81ecdfbb
RW
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5817$as_echo_n "checking for fgrep... " >&6; }
5818if test "${ac_cv_path_FGREP+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
7357c5b6 5820else
81ecdfbb
RW
5821 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5822 then ac_cv_path_FGREP="$GREP -F"
5823 else
5824 if test -z "$FGREP"; then
5825 ac_path_FGREP_found=false
5826 # Loop through the user's path and test for each of PROGNAME-LIST
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5829do
5830 IFS=$as_save_IFS
5831 test -z "$as_dir" && as_dir=.
5832 for ac_prog in fgrep; do
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5835 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5836# Check for GNU ac_path_FGREP and select it if it is found.
5837 # Check for GNU $ac_path_FGREP
5838case `"$ac_path_FGREP" --version 2>&1` in
5839*GNU*)
5840 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5841*)
5842 ac_count=0
5843 $as_echo_n 0123456789 >"conftest.in"
5844 while :
5845 do
5846 cat "conftest.in" "conftest.in" >"conftest.tmp"
5847 mv "conftest.tmp" "conftest.in"
5848 cp "conftest.in" "conftest.nl"
5849 $as_echo 'FGREP' >> "conftest.nl"
5850 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5852 as_fn_arith $ac_count + 1 && ac_count=$as_val
5853 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5854 # Best one so far, save it but keep looking for a better one
5855 ac_cv_path_FGREP="$ac_path_FGREP"
5856 ac_path_FGREP_max=$ac_count
7357c5b6 5857 fi
81ecdfbb
RW
5858 # 10*(2^10) chars as input seems more than enough
5859 test $ac_count -gt 10 && break
5860 done
5861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5862esac
5863
5864 $ac_path_FGREP_found && break 3
5865 done
5866 done
5867 done
5868IFS=$as_save_IFS
5869 if test -z "$ac_cv_path_FGREP"; then
5870 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5871 fi
5872else
5873 ac_cv_path_FGREP=$FGREP
5874fi
5875
5876 fi
20e95c23 5877fi
81ecdfbb
RW
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5879$as_echo "$ac_cv_path_FGREP" >&6; }
5880 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5881
5882
5883test -z "$GREP" && GREP=grep
5884
d7040cdb
SE
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
20e95c23 5896
ce2cded5 5897
d7040cdb 5898
7357c5b6
AM
5899
5900
5901
5902
81ecdfbb
RW
5903# Check whether --with-gnu-ld was given.
5904if test "${with_gnu_ld+set}" = set; then :
5905 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5906else
5907 with_gnu_ld=no
81ecdfbb
RW
5908fi
5909
7357c5b6
AM
5910ac_prog=ld
5911if test "$GCC" = yes; then
5912 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5914$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5915 case $host in
5916 *-*-mingw*)
5917 # gcc leaves a trailing carriage return which upsets mingw
5918 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5919 *)
5920 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5921 esac
5922 case $ac_prog in
5923 # Accept absolute paths.
5924 [\\/]* | ?:[\\/]*)
5925 re_direlt='/[^/][^/]*/\.\./'
5926 # Canonicalize the pathname of ld
5927 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5928 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5929 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5930 done
5931 test -z "$LD" && LD="$ac_prog"
5932 ;;
5933 "")
5934 # If it fails, then pretend we aren't using GCC.
5935 ac_prog=ld
5936 ;;
5937 *)
5938 # If it is relative, then search for the first ld in PATH.
5939 with_gnu_ld=unknown
5940 ;;
5941 esac
5942elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5944$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5945else
81ecdfbb
RW
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5947$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5948fi
81ecdfbb
RW
5949if test "${lt_cv_path_LD+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
ce2cded5 5951else
7357c5b6
AM
5952 if test -z "$LD"; then
5953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5954 for ac_dir in $PATH; do
5955 IFS="$lt_save_ifs"
5956 test -z "$ac_dir" && ac_dir=.
5957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5958 lt_cv_path_LD="$ac_dir/$ac_prog"
5959 # Check to see if the program is GNU ld. I'd rather use --version,
5960 # but apparently some variants of GNU ld only accept -v.
5961 # Break only if it was the GNU/non-GNU ld that we prefer.
5962 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5963 *GNU* | *'with BFD'*)
5964 test "$with_gnu_ld" != no && break
5965 ;;
5966 *)
5967 test "$with_gnu_ld" != yes && break
5968 ;;
5969 esac
5970 fi
5971 done
5972 IFS="$lt_save_ifs"
ce2cded5 5973else
7357c5b6 5974 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5975fi
5976fi
7357c5b6
AM
5977
5978LD="$lt_cv_path_LD"
5979if test -n "$LD"; then
81ecdfbb
RW
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5981$as_echo "$LD" >&6; }
ce2cded5 5982else
81ecdfbb
RW
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984$as_echo "no" >&6; }
ce2cded5 5985fi
81ecdfbb
RW
5986test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5988$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5989if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
ce2cded5 5991else
7357c5b6
AM
5992 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5993case `$LD -v 2>&1 </dev/null` in
5994*GNU* | *'with BFD'*)
5995 lt_cv_prog_gnu_ld=yes
5996 ;;
5997*)
5998 lt_cv_prog_gnu_ld=no
5999 ;;
6000esac
ce2cded5 6001fi
81ecdfbb
RW
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6003$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6004with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6005
6006
6007
6008
6009
6010
6011
6012
6013
81ecdfbb
RW
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6015$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6016if test "${lt_cv_path_NM+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
ce2cded5 6018else
7357c5b6
AM
6019 if test -n "$NM"; then
6020 # Let the user override the test.
6021 lt_cv_path_NM="$NM"
ce2cded5 6022else
7357c5b6
AM
6023 lt_nm_to_check="${ac_tool_prefix}nm"
6024 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6025 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6026 fi
7357c5b6
AM
6027 for lt_tmp_nm in $lt_nm_to_check; do
6028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6029 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6030 IFS="$lt_save_ifs"
6031 test -z "$ac_dir" && ac_dir=.
6032 tmp_nm="$ac_dir/$lt_tmp_nm"
6033 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6034 # Check to see if the nm accepts a BSD-compat flag.
6035 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6036 # nm: unknown option "B" ignored
6037 # Tru64's nm complains that /dev/null is an invalid object file
6038 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6039 */dev/null* | *'Invalid file or object type'*)
6040 lt_cv_path_NM="$tmp_nm -B"
6041 break
6042 ;;
6043 *)
6044 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6045 */dev/null*)
6046 lt_cv_path_NM="$tmp_nm -p"
6047 break
6048 ;;
6049 *)
6050 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6051 continue # so that we can try to find one that supports BSD flags
6052 ;;
6053 esac
6054 ;;
6055 esac
6056 fi
6057 done
6058 IFS="$lt_save_ifs"
6059 done
6060 : ${lt_cv_path_NM=no}
ce2cded5
L
6061fi
6062fi
81ecdfbb
RW
6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6064$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6065if test "$lt_cv_path_NM" != "no"; then
6066 NM="$lt_cv_path_NM"
ce2cded5 6067else
7357c5b6 6068 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6069 if test -n "$DUMPBIN"; then :
6070 # Let the user override the test.
6071 else
6072 if test -n "$ac_tool_prefix"; then
6073 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6074 do
6075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078$as_echo_n "checking for $ac_word... " >&6; }
6079if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
20e95c23 6081else
7357c5b6
AM
6082 if test -n "$DUMPBIN"; then
6083 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6084else
6085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086for as_dir in $PATH
6087do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6092 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6094 break 2
6095 fi
6096done
81ecdfbb
RW
6097 done
6098IFS=$as_save_IFS
d7040cdb 6099
20e95c23 6100fi
ce2cded5 6101fi
7357c5b6
AM
6102DUMPBIN=$ac_cv_prog_DUMPBIN
6103if test -n "$DUMPBIN"; then
81ecdfbb
RW
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6105$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6106else
81ecdfbb
RW
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108$as_echo "no" >&6; }
42ecbf5e
DJ
6109fi
6110
81ecdfbb 6111
7357c5b6
AM
6112 test -n "$DUMPBIN" && break
6113 done
ce2cded5 6114fi
7357c5b6
AM
6115if test -z "$DUMPBIN"; then
6116 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6117 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6118do
6119 # Extract the first word of "$ac_prog", so it can be a program name with args.
6120set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122$as_echo_n "checking for $ac_word... " >&6; }
6123if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
42ecbf5e 6125else
7357c5b6
AM
6126 if test -n "$ac_ct_DUMPBIN"; then
6127 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6128else
6129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130for as_dir in $PATH
6131do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6136 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6138 break 2
6139 fi
6140done
81ecdfbb
RW
6141 done
6142IFS=$as_save_IFS
d7040cdb 6143
ce2cded5
L
6144fi
6145fi
7357c5b6
AM
6146ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6147if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6149$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6150else
81ecdfbb
RW
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152$as_echo "no" >&6; }
ce2cded5 6153fi
d7040cdb 6154
81ecdfbb 6155
7357c5b6 6156 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6157done
d7040cdb 6158
81ecdfbb
RW
6159 if test "x$ac_ct_DUMPBIN" = x; then
6160 DUMPBIN=":"
6161 else
6162 case $cross_compiling:$ac_tool_warned in
6163yes:)
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6166ac_tool_warned=yes ;;
6167esac
6168 DUMPBIN=$ac_ct_DUMPBIN
6169 fi
ce2cded5 6170fi
7357c5b6 6171
3725885a
RW
6172 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6173 *COFF*)
6174 DUMPBIN="$DUMPBIN -symbols"
6175 ;;
6176 *)
6177 DUMPBIN=:
6178 ;;
6179 esac
6180 fi
7357c5b6
AM
6181
6182 if test "$DUMPBIN" != ":"; then
6183 NM="$DUMPBIN"
6184 fi
ce2cded5 6185fi
7357c5b6
AM
6186test -z "$NM" && NM=nm
6187
6188
6189
6190
6191
6192
81ecdfbb
RW
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6194$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6195if test "${lt_cv_nm_interface+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
20e95c23 6197else
7357c5b6
AM
6198 lt_cv_nm_interface="BSD nm"
6199 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6200 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6201 (eval "$ac_compile" 2>conftest.err)
6202 cat conftest.err >&5
3725885a 6203 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6204 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6205 cat conftest.err >&5
3725885a 6206 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6207 cat conftest.out >&5
6208 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6209 lt_cv_nm_interface="MS dumpbin"
6210 fi
6211 rm -f conftest*
20e95c23 6212fi
81ecdfbb
RW
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6214$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6215
81ecdfbb
RW
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6217$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6218LN_S=$as_ln_s
6219if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6221$as_echo "yes" >&6; }
ce2cded5 6222else
81ecdfbb
RW
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6224$as_echo "no, using $LN_S" >&6; }
d7040cdb 6225fi
20e95c23 6226
7357c5b6 6227# find the maximum length of command line arguments
81ecdfbb
RW
6228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6229$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6230if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
7357c5b6
AM
6232else
6233 i=0
6234 teststring="ABCD"
20e95c23 6235
7357c5b6
AM
6236 case $build_os in
6237 msdosdjgpp*)
6238 # On DJGPP, this test can blow up pretty badly due to problems in libc
6239 # (any single argument exceeding 2000 bytes causes a buffer overrun
6240 # during glob expansion). Even if it were fixed, the result of this
6241 # check would be larger than it should be.
6242 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6243 ;;
20e95c23 6244
7357c5b6
AM
6245 gnu*)
6246 # Under GNU Hurd, this test is not required because there is
6247 # no limit to the length of command line arguments.
6248 # Libtool will interpret -1 as no limit whatsoever
6249 lt_cv_sys_max_cmd_len=-1;
6250 ;;
20e95c23 6251
b214d478 6252 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6253 # On Win9x/ME, this test blows up -- it succeeds, but takes
6254 # about 5 minutes as the teststring grows exponentially.
6255 # Worse, since 9x/ME are not pre-emptively multitasking,
6256 # you end up with a "frozen" computer, even though with patience
6257 # the test eventually succeeds (with a max line length of 256k).
6258 # Instead, let's just punt: use the minimum linelength reported by
6259 # all of the supported platforms: 8192 (on NT/2K/XP).
6260 lt_cv_sys_max_cmd_len=8192;
6261 ;;
20e95c23 6262
3725885a
RW
6263 mint*)
6264 # On MiNT this can take a long time and run out of memory.
6265 lt_cv_sys_max_cmd_len=8192;
6266 ;;
6267
7357c5b6
AM
6268 amigaos*)
6269 # On AmigaOS with pdksh, this test takes hours, literally.
6270 # So we just punt and use a minimum line length of 8192.
6271 lt_cv_sys_max_cmd_len=8192;
6272 ;;
20e95c23 6273
7357c5b6
AM
6274 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6275 # This has been around since 386BSD, at least. Likely further.
6276 if test -x /sbin/sysctl; then
6277 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6278 elif test -x /usr/sbin/sysctl; then
6279 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6280 else
6281 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6282 fi
6283 # And add a safety zone
6284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6286 ;;
d7040cdb 6287
7357c5b6
AM
6288 interix*)
6289 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6290 lt_cv_sys_max_cmd_len=196608
6291 ;;
d7040cdb 6292
7357c5b6
AM
6293 osf*)
6294 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6295 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6296 # nice to cause kernel panics so lets avoid the loop below.
6297 # First set a reasonable default.
6298 lt_cv_sys_max_cmd_len=16384
6299 #
6300 if test -x /sbin/sysconfig; then
6301 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6302 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6303 esac
6304 fi
6305 ;;
6306 sco3.2v5*)
6307 lt_cv_sys_max_cmd_len=102400
6308 ;;
6309 sysv5* | sco5v6* | sysv4.2uw2*)
6310 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6311 if test -n "$kargmax"; then
6312 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6313 else
6314 lt_cv_sys_max_cmd_len=32768
6315 fi
ce2cded5
L
6316 ;;
6317 *)
b214d478
SE
6318 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6319 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6322 else
6323 # Make teststring a little bigger before we do anything with it.
6324 # a 1K string should be a reasonable start.
6325 for i in 1 2 3 4 5 6 7 8 ; do
6326 teststring=$teststring$teststring
6327 done
6328 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6329 # If test is not a shell built-in, we'll probably end up computing a
6330 # maximum length that is only half of the actual maximum length, but
6331 # we can't tell.
3725885a
RW
6332 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6333 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6334 test $i != 17 # 1/2 MB should be enough
6335 do
6336 i=`expr $i + 1`
6337 teststring=$teststring$teststring
6338 done
6339 # Only check the string length outside the loop.
6340 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6341 teststring=
6342 # Add a significant safety factor because C++ compilers can tack on
6343 # massive amounts of additional arguments before passing them to the
6344 # linker. It appears as though 1/2 is a usable value.
6345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6346 fi
ce2cded5
L
6347 ;;
6348 esac
d7040cdb 6349
7357c5b6 6350fi
d7040cdb 6351
7357c5b6 6352if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6354$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6355else
81ecdfbb
RW
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6357$as_echo "none" >&6; }
7357c5b6
AM
6358fi
6359max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6360
6361
6362
6363
6364
d7040cdb 6365
7357c5b6
AM
6366: ${CP="cp -f"}
6367: ${MV="mv -f"}
6368: ${RM="rm -f"}
d7040cdb 6369
81ecdfbb
RW
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6371$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6372# Try some XSI features
6373xsi_shell=no
6374( _lt_dummy="a/b/c"
6375 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6376 = c,a/b,, \
6377 && eval 'test $(( 1 + 1 )) -eq 2 \
6378 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6379 && xsi_shell=yes
81ecdfbb
RW
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6381$as_echo "$xsi_shell" >&6; }
d7040cdb 6382
d7040cdb 6383
81ecdfbb
RW
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6385$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6386lt_shell_append=no
6387( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6388 >/dev/null 2>&1 \
6389 && lt_shell_append=yes
81ecdfbb
RW
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6391$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6392
6393
7357c5b6
AM
6394if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6395 lt_unset=unset
6396else
6397 lt_unset=false
6398fi
d7040cdb 6399
d7040cdb 6400
d7040cdb 6401
d7040cdb 6402
d7040cdb 6403
7357c5b6
AM
6404# test EBCDIC or ASCII
6405case `echo X|tr X '\101'` in
6406 A) # ASCII based system
6407 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6408 lt_SP2NL='tr \040 \012'
6409 lt_NL2SP='tr \015\012 \040\040'
6410 ;;
6411 *) # EBCDIC based system
6412 lt_SP2NL='tr \100 \n'
6413 lt_NL2SP='tr \r\n \100\100'
6414 ;;
6415esac
42ecbf5e 6416
d7040cdb
SE
6417
6418
6419
6420
6421
6422
d7040cdb 6423
d7040cdb 6424
81ecdfbb
RW
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6426$as_echo_n "checking for $LD option to reload object files... " >&6; }
6427if test "${lt_cv_ld_reload_flag+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
7357c5b6
AM
6429else
6430 lt_cv_ld_reload_flag='-r'
6431fi
81ecdfbb
RW
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6433$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6434reload_flag=$lt_cv_ld_reload_flag
6435case $reload_flag in
6436"" | " "*) ;;
6437*) reload_flag=" $reload_flag" ;;
6438esac
6439reload_cmds='$LD$reload_flag -o $output$reload_objs'
6440case $host_os in
6441 darwin*)
6442 if test "$GCC" = yes; then
6443 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6444 else
6445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6446 fi
6447 ;;
6448esac
d7040cdb 6449
d7040cdb 6450
d7040cdb 6451
d7040cdb 6452
d7040cdb 6453
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
d7040cdb 6457
b214d478
SE
6458if test -n "$ac_tool_prefix"; then
6459 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6460set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462$as_echo_n "checking for $ac_word... " >&6; }
6463if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
b214d478
SE
6465else
6466 if test -n "$OBJDUMP"; then
6467 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6468else
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH
6471do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6476 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6478 break 2
6479 fi
6480done
81ecdfbb
RW
6481 done
6482IFS=$as_save_IFS
b214d478
SE
6483
6484fi
6485fi
6486OBJDUMP=$ac_cv_prog_OBJDUMP
6487if test -n "$OBJDUMP"; then
81ecdfbb
RW
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6489$as_echo "$OBJDUMP" >&6; }
b214d478 6490else
81ecdfbb
RW
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492$as_echo "no" >&6; }
b214d478
SE
6493fi
6494
81ecdfbb 6495
b214d478
SE
6496fi
6497if test -z "$ac_cv_prog_OBJDUMP"; then
6498 ac_ct_OBJDUMP=$OBJDUMP
6499 # Extract the first word of "objdump", so it can be a program name with args.
6500set dummy objdump; ac_word=$2
81ecdfbb
RW
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502$as_echo_n "checking for $ac_word... " >&6; }
6503if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
b214d478
SE
6505else
6506 if test -n "$ac_ct_OBJDUMP"; then
6507 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6508else
6509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6516 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6518 break 2
6519 fi
6520done
81ecdfbb
RW
6521 done
6522IFS=$as_save_IFS
b214d478 6523
b214d478
SE
6524fi
6525fi
6526ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6527if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6529$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6530else
81ecdfbb
RW
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532$as_echo "no" >&6; }
b214d478
SE
6533fi
6534
81ecdfbb
RW
6535 if test "x$ac_ct_OBJDUMP" = x; then
6536 OBJDUMP="false"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539yes:)
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542ac_tool_warned=yes ;;
6543esac
6544 OBJDUMP=$ac_ct_OBJDUMP
6545 fi
b214d478
SE
6546else
6547 OBJDUMP="$ac_cv_prog_OBJDUMP"
6548fi
6549
6550test -z "$OBJDUMP" && OBJDUMP=objdump
6551
6552
6553
6554
6555
6556
6557
6558
d7040cdb 6559
81ecdfbb
RW
6560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6561$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6562if test "${lt_cv_deplibs_check_method+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
ce2cded5 6564else
7357c5b6
AM
6565 lt_cv_file_magic_cmd='$MAGIC_CMD'
6566lt_cv_file_magic_test_file=
6567lt_cv_deplibs_check_method='unknown'
6568# Need to set the preceding variable on all platforms that support
6569# interlibrary dependencies.
6570# 'none' -- dependencies not supported.
6571# `unknown' -- same as none, but documents that we really don't know.
6572# 'pass_all' -- all dependencies passed with no checks.
6573# 'test_compile' -- check by making test program.
6574# 'file_magic [[regex]]' -- check by looking for files in library path
6575# which responds to the $file_magic_cmd with a given extended regex.
6576# If you have `file' or equivalent on your system and you're not sure
6577# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6578
ce2cded5 6579case $host_os in
7357c5b6
AM
6580aix[4-9]*)
6581 lt_cv_deplibs_check_method=pass_all
ce2cded5 6582 ;;
7357c5b6
AM
6583
6584beos*)
6585 lt_cv_deplibs_check_method=pass_all
ce2cded5 6586 ;;
7357c5b6
AM
6587
6588bsdi[45]*)
6589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6590 lt_cv_file_magic_cmd='/usr/bin/file -L'
6591 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6592 ;;
7357c5b6
AM
6593
6594cygwin*)
6595 # func_win32_libid is a shell function defined in ltmain.sh
6596 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6597 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6598 ;;
7357c5b6
AM
6599
6600mingw* | pw32*)
6601 # Base MSYS/MinGW do not provide the 'file' command needed by
6602 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6603 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6604 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6605 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6606 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6607 lt_cv_file_magic_cmd='func_win32_libid'
6608 else
6609 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6610 lt_cv_file_magic_cmd='$OBJDUMP -f'
6611 fi
ce2cded5 6612 ;;
7357c5b6 6613
3725885a 6614cegcc*)
b214d478
SE
6615 # use the weaker test based on 'objdump'. See mingw*.
6616 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6617 lt_cv_file_magic_cmd='$OBJDUMP -f'
6618 ;;
6619
7357c5b6
AM
6620darwin* | rhapsody*)
6621 lt_cv_deplibs_check_method=pass_all
ce2cded5 6622 ;;
7357c5b6
AM
6623
6624freebsd* | dragonfly*)
6625 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6626 case $host_cpu in
6627 i*86 )
6628 # Not sure whether the presence of OpenBSD here was a mistake.
6629 # Let's accept both of them until this is cleared up.
6630 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6631 lt_cv_file_magic_cmd=/usr/bin/file
6632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6633 ;;
6634 esac
6635 else
6636 lt_cv_deplibs_check_method=pass_all
6637 fi
ce2cded5 6638 ;;
7357c5b6
AM
6639
6640gnu*)
6641 lt_cv_deplibs_check_method=pass_all
ce2cded5 6642 ;;
7357c5b6 6643
3725885a
RW
6644haiku*)
6645 lt_cv_deplibs_check_method=pass_all
6646 ;;
6647
7357c5b6
AM
6648hpux10.20* | hpux11*)
6649 lt_cv_file_magic_cmd=/usr/bin/file
6650 case $host_cpu in
6651 ia64*)
6652 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6653 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6654 ;;
6655 hppa*64*)
3725885a 6656 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
6657 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6658 ;;
6659 *)
3725885a 6660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6661 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6662 ;;
6663 esac
ce2cded5 6664 ;;
d7040cdb 6665
7357c5b6
AM
6666interix[3-9]*)
6667 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6669 ;;
d7040cdb 6670
7357c5b6
AM
6671irix5* | irix6* | nonstopux*)
6672 case $LD in
6673 *-32|*"-32 ") libmagic=32-bit;;
6674 *-n32|*"-n32 ") libmagic=N32;;
6675 *-64|*"-64 ") libmagic=64-bit;;
6676 *) libmagic=never-match;;
6677 esac
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
d7040cdb 6680
7357c5b6 6681# This must be Linux ELF.
58e24671 6682linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6683 lt_cv_deplibs_check_method=pass_all
6684 ;;
d7040cdb 6685
7357c5b6
AM
6686netbsd*)
6687 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6688 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6689 else
6690 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6691 fi
ce2cded5 6692 ;;
d7040cdb 6693
7357c5b6
AM
6694newos6*)
6695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6696 lt_cv_file_magic_cmd=/usr/bin/file
6697 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6698 ;;
d7040cdb 6699
7357c5b6
AM
6700*nto* | *qnx*)
6701 lt_cv_deplibs_check_method=pass_all
6702 ;;
d7040cdb 6703
7357c5b6
AM
6704openbsd*)
6705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6707 else
7357c5b6 6708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6709 fi
7357c5b6 6710 ;;
d7040cdb 6711
7357c5b6
AM
6712osf3* | osf4* | osf5*)
6713 lt_cv_deplibs_check_method=pass_all
6714 ;;
d7040cdb 6715
7357c5b6
AM
6716rdos*)
6717 lt_cv_deplibs_check_method=pass_all
6718 ;;
d7040cdb 6719
7357c5b6
AM
6720solaris*)
6721 lt_cv_deplibs_check_method=pass_all
6722 ;;
d7040cdb 6723
7357c5b6
AM
6724sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
d7040cdb 6727
7357c5b6
AM
6728sysv4 | sysv4.3*)
6729 case $host_vendor in
6730 motorola)
6731 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]'
6732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6733 ;;
6734 ncr)
6735 lt_cv_deplibs_check_method=pass_all
6736 ;;
6737 sequent)
6738 lt_cv_file_magic_cmd='/bin/file'
6739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6740 ;;
6741 sni)
6742 lt_cv_file_magic_cmd='/bin/file'
6743 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6744 lt_cv_file_magic_test_file=/lib/libc.so
6745 ;;
6746 siemens)
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749 pc)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752 esac
6753 ;;
d7040cdb 6754
7357c5b6
AM
6755tpf*)
6756 lt_cv_deplibs_check_method=pass_all
6757 ;;
6758esac
d7040cdb 6759
7357c5b6 6760fi
81ecdfbb
RW
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6762$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6763file_magic_cmd=$lt_cv_file_magic_cmd
6764deplibs_check_method=$lt_cv_deplibs_check_method
6765test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6766
6767
6768
7357c5b6
AM
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6780set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782$as_echo_n "checking for $ac_word... " >&6; }
6783if test "${ac_cv_prog_AR+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
7357c5b6
AM
6785else
6786 if test -n "$AR"; then
6787 ac_cv_prog_AR="$AR" # Let the user override the test.
6788else
6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6796 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6798 break 2
ce2cded5
L
6799 fi
6800done
81ecdfbb
RW
6801 done
6802IFS=$as_save_IFS
d7040cdb 6803
42ecbf5e 6804fi
ce2cded5 6805fi
7357c5b6
AM
6806AR=$ac_cv_prog_AR
6807if test -n "$AR"; then
81ecdfbb
RW
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6809$as_echo "$AR" >&6; }
42ecbf5e 6810else
81ecdfbb
RW
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812$as_echo "no" >&6; }
42ecbf5e
DJ
6813fi
6814
81ecdfbb 6815
7357c5b6
AM
6816fi
6817if test -z "$ac_cv_prog_AR"; then
6818 ac_ct_AR=$AR
6819 # Extract the first word of "ar", so it can be a program name with args.
6820set dummy ar; ac_word=$2
81ecdfbb
RW
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822$as_echo_n "checking for $ac_word... " >&6; }
6823if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6824 $as_echo_n "(cached) " >&6
7357c5b6
AM
6825else
6826 if test -n "$ac_ct_AR"; then
6827 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6828else
6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830for as_dir in $PATH
6831do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6836 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6838 break 2
6839 fi
6840done
81ecdfbb
RW
6841 done
6842IFS=$as_save_IFS
42ecbf5e 6843
7357c5b6
AM
6844fi
6845fi
6846ac_ct_AR=$ac_cv_prog_ac_ct_AR
6847if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6849$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6850else
81ecdfbb
RW
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852$as_echo "no" >&6; }
7357c5b6 6853fi
d7040cdb 6854
81ecdfbb
RW
6855 if test "x$ac_ct_AR" = x; then
6856 AR="false"
6857 else
6858 case $cross_compiling:$ac_tool_warned in
6859yes:)
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6862ac_tool_warned=yes ;;
6863esac
6864 AR=$ac_ct_AR
6865 fi
7357c5b6
AM
6866else
6867 AR="$ac_cv_prog_AR"
6868fi
d7040cdb 6869
7357c5b6
AM
6870test -z "$AR" && AR=ar
6871test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6872
6873
6874
20e95c23 6875
d7040cdb 6876
d7040cdb
SE
6877
6878
6879
6880
6881
6882
7357c5b6
AM
6883if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6885set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
6888if test "${ac_cv_prog_STRIP+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
7357c5b6
AM
6890else
6891 if test -n "$STRIP"; then
6892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6893else
6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6903 break 2
ce2cded5 6904 fi
7357c5b6 6905done
81ecdfbb
RW
6906 done
6907IFS=$as_save_IFS
d7040cdb 6908
7357c5b6
AM
6909fi
6910fi
6911STRIP=$ac_cv_prog_STRIP
6912if test -n "$STRIP"; then
81ecdfbb
RW
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6914$as_echo "$STRIP" >&6; }
7357c5b6 6915else
81ecdfbb
RW
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917$as_echo "no" >&6; }
7357c5b6
AM
6918fi
6919
81ecdfbb 6920
7357c5b6
AM
6921fi
6922if test -z "$ac_cv_prog_STRIP"; then
6923 ac_ct_STRIP=$STRIP
6924 # Extract the first word of "strip", so it can be a program name with args.
6925set dummy strip; ac_word=$2
81ecdfbb
RW
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927$as_echo_n "checking for $ac_word... " >&6; }
6928if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
7357c5b6
AM
6930else
6931 if test -n "$ac_ct_STRIP"; then
6932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6933else
6934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6941 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6943 break 2
ce2cded5 6944 fi
7357c5b6 6945done
81ecdfbb
RW
6946 done
6947IFS=$as_save_IFS
d7040cdb 6948
7357c5b6
AM
6949fi
6950fi
6951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6952if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6954$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6955else
81ecdfbb
RW
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957$as_echo "no" >&6; }
7357c5b6 6958fi
d7040cdb 6959
81ecdfbb
RW
6960 if test "x$ac_ct_STRIP" = x; then
6961 STRIP=":"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964yes:)
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967ac_tool_warned=yes ;;
6968esac
6969 STRIP=$ac_ct_STRIP
6970 fi
7357c5b6
AM
6971else
6972 STRIP="$ac_cv_prog_STRIP"
6973fi
d7040cdb 6974
7357c5b6 6975test -z "$STRIP" && STRIP=:
d7040cdb 6976
d7040cdb
SE
6977
6978
6979
d7040cdb 6980
7357c5b6
AM
6981
6982if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6984set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986$as_echo_n "checking for $ac_word... " >&6; }
6987if test "${ac_cv_prog_RANLIB+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
ce2cded5 6989else
7357c5b6
AM
6990 if test -n "$RANLIB"; then
6991 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
ce2cded5 6995do
7357c5b6
AM
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7000 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7002 break 2
ce2cded5 7003 fi
7357c5b6 7004done
81ecdfbb
RW
7005 done
7006IFS=$as_save_IFS
7357c5b6 7007
ce2cded5 7008fi
7357c5b6
AM
7009fi
7010RANLIB=$ac_cv_prog_RANLIB
7011if test -n "$RANLIB"; then
81ecdfbb
RW
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7013$as_echo "$RANLIB" >&6; }
ce2cded5 7014else
81ecdfbb
RW
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016$as_echo "no" >&6; }
ce2cded5 7017fi
d7040cdb 7018
81ecdfbb 7019
7357c5b6
AM
7020fi
7021if test -z "$ac_cv_prog_RANLIB"; then
7022 ac_ct_RANLIB=$RANLIB
7023 # Extract the first word of "ranlib", so it can be a program name with args.
7024set dummy ranlib; ac_word=$2
81ecdfbb
RW
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026$as_echo_n "checking for $ac_word... " >&6; }
7027if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7028 $as_echo_n "(cached) " >&6
ce2cded5 7029else
7357c5b6
AM
7030 if test -n "$ac_ct_RANLIB"; then
7031 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7040 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7042 break 2
7043 fi
7044done
81ecdfbb
RW
7045 done
7046IFS=$as_save_IFS
7357c5b6 7047
ce2cded5 7048fi
7357c5b6
AM
7049fi
7050ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7051if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7053$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7054else
81ecdfbb
RW
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056$as_echo "no" >&6; }
ce2cded5 7057fi
d7040cdb 7058
81ecdfbb
RW
7059 if test "x$ac_ct_RANLIB" = x; then
7060 RANLIB=":"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063yes:)
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066ac_tool_warned=yes ;;
7067esac
7068 RANLIB=$ac_ct_RANLIB
7069 fi
7357c5b6
AM
7070else
7071 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7072fi
d7040cdb 7073
7357c5b6 7074test -z "$RANLIB" && RANLIB=:
d7040cdb 7075
7357c5b6
AM
7076
7077
7078
7079
7080
7081# Determine commands to create old-style static archives.
b214d478 7082old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7083old_postinstall_cmds='chmod 644 $oldlib'
7084old_postuninstall_cmds=
7085
7086if test -n "$RANLIB"; then
7087 case $host_os in
7088 openbsd*)
7089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7090 ;;
7091 *)
7092 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7093 ;;
7094 esac
7095 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7096fi
7357c5b6 7097
3725885a
RW
7098case $host_os in
7099 darwin*)
7100 lock_old_archive_extraction=yes ;;
7101 *)
7102 lock_old_archive_extraction=no ;;
7103esac
7104
7105
7106
7107
7108
7109
7357c5b6
AM
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143# If no C compiler was specified, use CC.
7144LTCC=${LTCC-"$CC"}
7145
7146# If no C compiler flags were specified, use CFLAGS.
7147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7148
7149# Allow CC to be a program name with arguments.
7150compiler=$CC
7151
7152
7153# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7155$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7156if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
ce2cded5 7158else
d7040cdb 7159
7357c5b6
AM
7160# These are sane defaults that work on at least a few old systems.
7161# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7162
7357c5b6
AM
7163# Character class describing NM global symbol codes.
7164symcode='[BCDEGRST]'
7165
7166# Regexp to match symbols that can be accessed directly from C.
7167sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7168
7169# Define system-specific variables.
7170case $host_os in
7171aix*)
7172 symcode='[BCDT]'
7173 ;;
b214d478 7174cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7175 symcode='[ABCDGISTW]'
7176 ;;
7177hpux*)
7178 if test "$host_cpu" = ia64; then
7179 symcode='[ABCDEGRST]'
ce2cded5 7180 fi
7357c5b6
AM
7181 ;;
7182irix* | nonstopux*)
7183 symcode='[BCDEGRST]'
7184 ;;
7185osf*)
7186 symcode='[BCDEGQRST]'
7187 ;;
7188solaris*)
7189 symcode='[BDRT]'
7190 ;;
7191sco3.2v5*)
7192 symcode='[DT]'
7193 ;;
7194sysv4.2uw2*)
7195 symcode='[DT]'
7196 ;;
7197sysv5* | sco5v6* | unixware* | OpenUNIX*)
7198 symcode='[ABDT]'
7199 ;;
7200sysv4)
7201 symcode='[DFNSTU]'
7202 ;;
7203esac
d7040cdb 7204
7357c5b6
AM
7205# If we're using GNU nm, then use its standard symbol codes.
7206case `$NM -V 2>&1` in
7207*GNU* | *'with BFD'*)
7208 symcode='[ABCDGIRSTW]' ;;
7209esac
d7040cdb 7210
7357c5b6
AM
7211# Transform an extracted symbol line into a proper C declaration.
7212# Some systems (esp. on ia64) link data and code symbols differently,
7213# so use this general approach.
7214lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7215
7216# Transform an extracted symbol line into symbol name and symbol address
7217lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7218lt_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
7219
7220# Handle CRLF in mingw tool chain
7221opt_cr=
7222case $build_os in
7223mingw*)
7224 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7225 ;;
7226esac
d7040cdb 7227
7357c5b6
AM
7228# Try without a prefix underscore, then with it.
7229for ac_symprfx in "" "_"; do
d7040cdb 7230
7357c5b6
AM
7231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7232 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7233
7357c5b6
AM
7234 # Write the raw and C identifiers.
7235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7236 # Fake it for dumpbin and say T for any non-static function
7237 # and D for any global variable.
7238 # Also find C++ and __fastcall symbols from MSVC++,
7239 # which start with @ or ?.
7240 lt_cv_sys_global_symbol_pipe="$AWK '"\
7241" {last_section=section; section=\$ 3};"\
7242" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7243" \$ 0!~/External *\|/{next};"\
7244" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7245" {if(hide[section]) next};"\
7246" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7247" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7248" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7249" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7250" ' prfx=^$ac_symprfx"
7251 else
7252 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7253 fi
d7040cdb 7254
7357c5b6
AM
7255 # Check to see that the pipe works correctly.
7256 pipe_works=no
d7040cdb 7257
7357c5b6
AM
7258 rm -f conftest*
7259 cat > conftest.$ac_ext <<_LT_EOF
7260#ifdef __cplusplus
7261extern "C" {
7262#endif
7263char nm_test_var;
7264void nm_test_func(void);
7265void nm_test_func(void){}
7266#ifdef __cplusplus
20e95c23 7267}
7357c5b6
AM
7268#endif
7269int main(){nm_test_var='a';nm_test_func();return(0);}
7270_LT_EOF
7271
81ecdfbb 7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7273 (eval $ac_compile) 2>&5
20e95c23 7274 ac_status=$?
81ecdfbb
RW
7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; then
7357c5b6
AM
7277 # Now try to grab the symbols.
7278 nlist=conftest.nm
3725885a
RW
7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7280 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7281 ac_status=$?
81ecdfbb
RW
7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7284 # Try sorting and uniquifying the output.
7285 if sort "$nlist" | uniq > "$nlist"T; then
7286 mv -f "$nlist"T "$nlist"
7287 else
7288 rm -f "$nlist"T
7289 fi
d7040cdb 7290
7357c5b6
AM
7291 # Make sure that we snagged all the symbols we need.
7292 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7293 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7294 cat <<_LT_EOF > conftest.$ac_ext
7295#ifdef __cplusplus
7296extern "C" {
7297#endif
ce2cded5 7298
7357c5b6
AM
7299_LT_EOF
7300 # Now generate the symbol file.
7301 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7302
7357c5b6 7303 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7304
7357c5b6
AM
7305/* The mapping between symbol names and symbols. */
7306const struct {
7307 const char *name;
7308 void *address;
7309}
7310lt__PROGRAM__LTX_preloaded_symbols[] =
7311{
7312 { "@PROGRAM@", (void *) 0 },
7313_LT_EOF
7314 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7315 cat <<\_LT_EOF >> conftest.$ac_ext
7316 {0, (void *) 0}
7317};
d7040cdb 7318
7357c5b6
AM
7319/* This works around a problem in FreeBSD linker */
7320#ifdef FREEBSD_WORKAROUND
7321static const void *lt_preloaded_setup() {
7322 return lt__PROGRAM__LTX_preloaded_symbols;
7323}
ce2cded5 7324#endif
42ecbf5e 7325
7357c5b6 7326#ifdef __cplusplus
ce2cded5 7327}
7357c5b6
AM
7328#endif
7329_LT_EOF
7330 # Now try linking the two files.
7331 mv conftest.$ac_objext conftstm.$ac_objext
7332 lt_save_LIBS="$LIBS"
7333 lt_save_CFLAGS="$CFLAGS"
7334 LIBS="conftstm.$ac_objext"
7335 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7337 (eval $ac_link) 2>&5
7338 ac_status=$?
81ecdfbb
RW
7339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7341 pipe_works=yes
7342 fi
7343 LIBS="$lt_save_LIBS"
7344 CFLAGS="$lt_save_CFLAGS"
7345 else
7346 echo "cannot find nm_test_func in $nlist" >&5
7347 fi
7348 else
7349 echo "cannot find nm_test_var in $nlist" >&5
7350 fi
7351 else
7352 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7353 fi
7354 else
7355 echo "$progname: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7357 fi
b214d478 7358 rm -rf conftest* conftst*
7357c5b6
AM
7359
7360 # Do not use the global_symbol_pipe unless it works.
7361 if test "$pipe_works" = yes; then
7362 break
7363 else
7364 lt_cv_sys_global_symbol_pipe=
7365 fi
7366done
42ecbf5e 7367
ce2cded5 7368fi
7357c5b6
AM
7369
7370if test -z "$lt_cv_sys_global_symbol_pipe"; then
7371 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7372fi
7357c5b6 7373if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7375$as_echo "failed" >&6; }
7357c5b6 7376else
81ecdfbb
RW
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7378$as_echo "ok" >&6; }
ce2cded5 7379fi
e5a52504 7380
d7040cdb 7381
e5a52504 7382
d7040cdb 7383
d7040cdb 7384
d7040cdb 7385
d7040cdb 7386
d7040cdb 7387
d7040cdb 7388
d7040cdb 7389
d7040cdb 7390
d7040cdb 7391
7357c5b6
AM
7392
7393
7394
b214d478
SE
7395
7396
7397
7398
7399
7357c5b6
AM
7400
7401
81ecdfbb
RW
7402# Check whether --enable-libtool-lock was given.
7403if test "${enable_libtool_lock+set}" = set; then :
7404 enableval=$enable_libtool_lock;
7405fi
7357c5b6 7406
7357c5b6
AM
7407test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7408
7409# Some flags need to be propagated to the compiler or linker for good
7410# libtool support.
7411case $host in
7412ia64-*-hpux*)
7413 # Find out which ABI we are using.
7414 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7416 (eval $ac_compile) 2>&5
7417 ac_status=$?
81ecdfbb
RW
7418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7419 test $ac_status = 0; }; then
7357c5b6
AM
7420 case `/usr/bin/file conftest.$ac_objext` in
7421 *ELF-32*)
7422 HPUX_IA64_MODE="32"
7423 ;;
7424 *ELF-64*)
7425 HPUX_IA64_MODE="64"
7426 ;;
7427 esac
7428 fi
7429 rm -rf conftest*
7430 ;;
7431*-*-irix6*)
7432 # Find out which ABI we are using.
3725885a 7433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
81ecdfbb
RW
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7357c5b6
AM
7439 if test "$lt_cv_prog_gnu_ld" = yes; then
7440 case `/usr/bin/file conftest.$ac_objext` in
7441 *32-bit*)
7442 LD="${LD-ld} -melf32bsmip"
7443 ;;
7444 *N32*)
7445 LD="${LD-ld} -melf32bmipn32"
7446 ;;
7447 *64-bit*)
7448 LD="${LD-ld} -melf64bmip"
7449 ;;
7450 esac
7451 else
7452 case `/usr/bin/file conftest.$ac_objext` in
7453 *32-bit*)
7454 LD="${LD-ld} -32"
7455 ;;
7456 *N32*)
7457 LD="${LD-ld} -n32"
7458 ;;
7459 *64-bit*)
7460 LD="${LD-ld} -64"
7461 ;;
7462 esac
7463 fi
7464 fi
7465 rm -rf conftest*
7466 ;;
7467
cc9afea3 7468x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7469s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7470 # Find out which ABI we are using.
7471 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7473 (eval $ac_compile) 2>&5
7474 ac_status=$?
81ecdfbb
RW
7475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; }; then
7357c5b6
AM
7477 case `/usr/bin/file conftest.o` in
7478 *32-bit*)
7479 case $host in
7480 x86_64-*kfreebsd*-gnu)
7481 LD="${LD-ld} -m elf_i386_fbsd"
7482 ;;
7483 x86_64-*linux*)
6d2920c8
L
7484 case `/usr/bin/file conftest.o` in
7485 *x86-64*)
7486 LD="${LD-ld} -m elf32_x86_64"
7487 ;;
7488 *)
7489 LD="${LD-ld} -m elf_i386"
7490 ;;
7491 esac
7357c5b6 7492 ;;
cc9afea3
AM
7493 powerpc64le-*linux*)
7494 LD="${LD-ld} -m elf32lppclinux"
7495 ;;
7496 powerpc64-*linux*)
7357c5b6
AM
7497 LD="${LD-ld} -m elf32ppclinux"
7498 ;;
7499 s390x-*linux*)
7500 LD="${LD-ld} -m elf_s390"
7501 ;;
7502 sparc64-*linux*)
7503 LD="${LD-ld} -m elf32_sparc"
7504 ;;
7505 esac
7506 ;;
7507 *64-bit*)
7508 case $host in
7509 x86_64-*kfreebsd*-gnu)
7510 LD="${LD-ld} -m elf_x86_64_fbsd"
7511 ;;
7512 x86_64-*linux*)
7513 LD="${LD-ld} -m elf_x86_64"
7514 ;;
cc9afea3
AM
7515 powerpcle-*linux*)
7516 LD="${LD-ld} -m elf64lppc"
7517 ;;
7518 powerpc-*linux*)
7357c5b6
AM
7519 LD="${LD-ld} -m elf64ppc"
7520 ;;
7521 s390*-*linux*|s390*-*tpf*)
7522 LD="${LD-ld} -m elf64_s390"
7523 ;;
7524 sparc*-*linux*)
7525 LD="${LD-ld} -m elf64_sparc"
7526 ;;
7527 esac
7528 ;;
7529 esac
7530 fi
7531 rm -rf conftest*
7532 ;;
7533
7534*-*-sco3.2v5*)
7535 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7536 SAVE_CFLAGS="$CFLAGS"
7537 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7539$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7540if test "${lt_cv_cc_needs_belf+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
ce2cded5 7542else
7357c5b6
AM
7543 ac_ext=c
7544ac_cpp='$CPP $CPPFLAGS'
7545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7547ac_compiler_gnu=$ac_cv_c_compiler_gnu
7548
81ecdfbb 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7550/* end confdefs.h. */
d7040cdb 7551
7357c5b6
AM
7552int
7553main ()
7554{
7555
7556 ;
7557 return 0;
7558}
ce2cded5 7559_ACEOF
81ecdfbb 7560if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7561 lt_cv_cc_needs_belf=yes
ce2cded5 7562else
81ecdfbb 7563 lt_cv_cc_needs_belf=no
ce2cded5 7564fi
81ecdfbb
RW
7565rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7567 ac_ext=c
7568ac_cpp='$CPP $CPPFLAGS'
7569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7572
b214d478 7573fi
81ecdfbb
RW
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7575$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7576 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7577 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7578 CFLAGS="$SAVE_CFLAGS"
7579 fi
7580 ;;
7581sparc*-*solaris*)
7582 # Find out which ABI we are using.
7583 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7585 (eval $ac_compile) 2>&5
7586 ac_status=$?
81ecdfbb
RW
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }; then
b214d478
SE
7589 case `/usr/bin/file conftest.o` in
7590 *64-bit*)
7591 case $lt_cv_prog_gnu_ld in
7592 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7593 *)
7594 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7595 LD="${LD-ld} -64"
7596 fi
7597 ;;
7598 esac
7599 ;;
7600 esac
7601 fi
7602 rm -rf conftest*
7603 ;;
7604esac
7605
7606need_locks="$enable_libtool_lock"
7607
7608
7609 case $host_os in
7610 rhapsody* | darwin*)
7611 if test -n "$ac_tool_prefix"; then
7612 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7613set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7615$as_echo_n "checking for $ac_word... " >&6; }
7616if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7617 $as_echo_n "(cached) " >&6
b214d478
SE
7618else
7619 if test -n "$DSYMUTIL"; then
7620 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7621else
7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623for as_dir in $PATH
7624do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7629 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7631 break 2
7632 fi
7633done
81ecdfbb
RW
7634 done
7635IFS=$as_save_IFS
b214d478
SE
7636
7637fi
7638fi
7639DSYMUTIL=$ac_cv_prog_DSYMUTIL
7640if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7642$as_echo "$DSYMUTIL" >&6; }
b214d478 7643else
81ecdfbb
RW
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645$as_echo "no" >&6; }
b214d478
SE
7646fi
7647
81ecdfbb 7648
b214d478
SE
7649fi
7650if test -z "$ac_cv_prog_DSYMUTIL"; then
7651 ac_ct_DSYMUTIL=$DSYMUTIL
7652 # Extract the first word of "dsymutil", so it can be a program name with args.
7653set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7655$as_echo_n "checking for $ac_word... " >&6; }
7656if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7657 $as_echo_n "(cached) " >&6
b214d478
SE
7658else
7659 if test -n "$ac_ct_DSYMUTIL"; then
7660 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7661else
7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7669 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7671 break 2
7672 fi
7673done
81ecdfbb
RW
7674 done
7675IFS=$as_save_IFS
b214d478 7676
b214d478
SE
7677fi
7678fi
7679ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7680if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7682$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7683else
81ecdfbb
RW
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685$as_echo "no" >&6; }
b214d478
SE
7686fi
7687
81ecdfbb
RW
7688 if test "x$ac_ct_DSYMUTIL" = x; then
7689 DSYMUTIL=":"
7690 else
7691 case $cross_compiling:$ac_tool_warned in
7692yes:)
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695ac_tool_warned=yes ;;
7696esac
7697 DSYMUTIL=$ac_ct_DSYMUTIL
7698 fi
b214d478
SE
7699else
7700 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7701fi
7702
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7705set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707$as_echo_n "checking for $ac_word... " >&6; }
7708if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
b214d478
SE
7710else
7711 if test -n "$NMEDIT"; then
7712 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7713else
7714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7721 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7723 break 2
7724 fi
7725done
81ecdfbb
RW
7726 done
7727IFS=$as_save_IFS
b214d478
SE
7728
7729fi
7730fi
7731NMEDIT=$ac_cv_prog_NMEDIT
7732if test -n "$NMEDIT"; then
81ecdfbb
RW
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7734$as_echo "$NMEDIT" >&6; }
b214d478 7735else
81ecdfbb
RW
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
b214d478
SE
7738fi
7739
81ecdfbb 7740
b214d478
SE
7741fi
7742if test -z "$ac_cv_prog_NMEDIT"; then
7743 ac_ct_NMEDIT=$NMEDIT
7744 # Extract the first word of "nmedit", so it can be a program name with args.
7745set dummy nmedit; ac_word=$2
81ecdfbb
RW
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747$as_echo_n "checking for $ac_word... " >&6; }
7748if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
b214d478
SE
7750else
7751 if test -n "$ac_ct_NMEDIT"; then
7752 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7753else
7754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7761 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7763 break 2
7764 fi
7765done
81ecdfbb
RW
7766 done
7767IFS=$as_save_IFS
b214d478 7768
b214d478
SE
7769fi
7770fi
7771ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7772if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7774$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7775else
81ecdfbb
RW
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777$as_echo "no" >&6; }
b214d478
SE
7778fi
7779
81ecdfbb
RW
7780 if test "x$ac_ct_NMEDIT" = x; then
7781 NMEDIT=":"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784yes:)
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787ac_tool_warned=yes ;;
7788esac
7789 NMEDIT=$ac_ct_NMEDIT
7790 fi
b214d478
SE
7791else
7792 NMEDIT="$ac_cv_prog_NMEDIT"
7793fi
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7797set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799$as_echo_n "checking for $ac_word... " >&6; }
7800if test "${ac_cv_prog_LIPO+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
b214d478
SE
7802else
7803 if test -n "$LIPO"; then
7804 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7805else
7806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807for as_dir in $PATH
7808do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7813 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7815 break 2
7816 fi
7817done
81ecdfbb
RW
7818 done
7819IFS=$as_save_IFS
b214d478
SE
7820
7821fi
7822fi
7823LIPO=$ac_cv_prog_LIPO
7824if test -n "$LIPO"; then
81ecdfbb
RW
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7826$as_echo "$LIPO" >&6; }
b214d478 7827else
81ecdfbb
RW
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
b214d478
SE
7830fi
7831
81ecdfbb 7832
b214d478
SE
7833fi
7834if test -z "$ac_cv_prog_LIPO"; then
7835 ac_ct_LIPO=$LIPO
7836 # Extract the first word of "lipo", so it can be a program name with args.
7837set dummy lipo; ac_word=$2
81ecdfbb
RW
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839$as_echo_n "checking for $ac_word... " >&6; }
7840if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
b214d478
SE
7842else
7843 if test -n "$ac_ct_LIPO"; then
7844 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7845else
7846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847for as_dir in $PATH
7848do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7853 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7855 break 2
7856 fi
7857done
81ecdfbb
RW
7858 done
7859IFS=$as_save_IFS
b214d478 7860
b214d478
SE
7861fi
7862fi
7863ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7864if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7866$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7867else
81ecdfbb
RW
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869$as_echo "no" >&6; }
b214d478
SE
7870fi
7871
81ecdfbb
RW
7872 if test "x$ac_ct_LIPO" = x; then
7873 LIPO=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876yes:)
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879ac_tool_warned=yes ;;
7880esac
7881 LIPO=$ac_ct_LIPO
7882 fi
b214d478
SE
7883else
7884 LIPO="$ac_cv_prog_LIPO"
7885fi
7886
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891$as_echo_n "checking for $ac_word... " >&6; }
7892if test "${ac_cv_prog_OTOOL+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
b214d478
SE
7894else
7895 if test -n "$OTOOL"; then
7896 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7905 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7907 break 2
7908 fi
7909done
81ecdfbb
RW
7910 done
7911IFS=$as_save_IFS
b214d478
SE
7912
7913fi
7914fi
7915OTOOL=$ac_cv_prog_OTOOL
7916if test -n "$OTOOL"; then
81ecdfbb
RW
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7918$as_echo "$OTOOL" >&6; }
b214d478 7919else
81ecdfbb
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921$as_echo "no" >&6; }
b214d478
SE
7922fi
7923
81ecdfbb 7924
b214d478
SE
7925fi
7926if test -z "$ac_cv_prog_OTOOL"; then
7927 ac_ct_OTOOL=$OTOOL
7928 # Extract the first word of "otool", so it can be a program name with args.
7929set dummy otool; ac_word=$2
81ecdfbb
RW
7930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931$as_echo_n "checking for $ac_word... " >&6; }
7932if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
b214d478
SE
7934else
7935 if test -n "$ac_ct_OTOOL"; then
7936 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7937else
7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7945 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7947 break 2
7948 fi
7949done
81ecdfbb
RW
7950 done
7951IFS=$as_save_IFS
b214d478 7952
b214d478
SE
7953fi
7954fi
7955ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7956if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7958$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7959else
81ecdfbb
RW
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961$as_echo "no" >&6; }
b214d478
SE
7962fi
7963
81ecdfbb
RW
7964 if test "x$ac_ct_OTOOL" = x; then
7965 OTOOL=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968yes:)
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971ac_tool_warned=yes ;;
7972esac
7973 OTOOL=$ac_ct_OTOOL
7974 fi
b214d478
SE
7975else
7976 OTOOL="$ac_cv_prog_OTOOL"
7977fi
7978
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7981set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983$as_echo_n "checking for $ac_word... " >&6; }
7984if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
b214d478
SE
7986else
7987 if test -n "$OTOOL64"; then
7988 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7989else
7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7997 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7999 break 2
8000 fi
8001done
81ecdfbb
RW
8002 done
8003IFS=$as_save_IFS
b214d478
SE
8004
8005fi
8006fi
8007OTOOL64=$ac_cv_prog_OTOOL64
8008if test -n "$OTOOL64"; then
81ecdfbb
RW
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8010$as_echo "$OTOOL64" >&6; }
b214d478 8011else
81ecdfbb
RW
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013$as_echo "no" >&6; }
b214d478
SE
8014fi
8015
81ecdfbb 8016
b214d478
SE
8017fi
8018if test -z "$ac_cv_prog_OTOOL64"; then
8019 ac_ct_OTOOL64=$OTOOL64
8020 # Extract the first word of "otool64", so it can be a program name with args.
8021set dummy otool64; ac_word=$2
81ecdfbb
RW
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023$as_echo_n "checking for $ac_word... " >&6; }
8024if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
b214d478
SE
8026else
8027 if test -n "$ac_ct_OTOOL64"; then
8028 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8037 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8039 break 2
8040 fi
8041done
81ecdfbb
RW
8042 done
8043IFS=$as_save_IFS
b214d478 8044
b214d478
SE
8045fi
8046fi
8047ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8048if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8050$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8051else
81ecdfbb
RW
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
b214d478
SE
8054fi
8055
81ecdfbb
RW
8056 if test "x$ac_ct_OTOOL64" = x; then
8057 OTOOL64=":"
8058 else
8059 case $cross_compiling:$ac_tool_warned in
8060yes:)
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063ac_tool_warned=yes ;;
8064esac
8065 OTOOL64=$ac_ct_OTOOL64
8066 fi
b214d478
SE
8067else
8068 OTOOL64="$ac_cv_prog_OTOOL64"
8069fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
81ecdfbb
RW
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8098$as_echo_n "checking for -single_module linker flag... " >&6; }
8099if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
b214d478
SE
8101else
8102 lt_cv_apple_cc_single_mod=no
8103 if test -z "${LT_MULTI_MODULE}"; then
8104 # By default we will add the -single_module flag. You can override
8105 # by either setting the environment variable LT_MULTI_MODULE
8106 # non-empty at configure time, or by adding -multi_module to the
8107 # link flags.
8108 rm -rf libconftest.dylib*
8109 echo "int foo(void){return 1;}" > conftest.c
8110 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8111-dynamiclib -Wl,-single_module conftest.c" >&5
8112 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8113 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8114 _lt_result=$?
8115 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8116 lt_cv_apple_cc_single_mod=yes
8117 else
8118 cat conftest.err >&5
8119 fi
8120 rm -rf libconftest.dylib*
8121 rm -f conftest.*
8122 fi
8123fi
81ecdfbb
RW
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8125$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8127$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8128if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8129 $as_echo_n "(cached) " >&6
b214d478
SE
8130else
8131 lt_cv_ld_exported_symbols_list=no
8132 save_LDFLAGS=$LDFLAGS
8133 echo "_main" > conftest.sym
8134 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8136/* end confdefs.h. */
8137
8138int
8139main ()
8140{
8141
8142 ;
8143 return 0;
8144}
8145_ACEOF
81ecdfbb 8146if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8147 lt_cv_ld_exported_symbols_list=yes
8148else
81ecdfbb 8149 lt_cv_ld_exported_symbols_list=no
b214d478 8150fi
81ecdfbb
RW
8151rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8153 LDFLAGS="$save_LDFLAGS"
8154
8155fi
81ecdfbb
RW
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8157$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8159$as_echo_n "checking for -force_load linker flag... " >&6; }
8160if test "${lt_cv_ld_force_load+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
8162else
8163 lt_cv_ld_force_load=no
8164 cat > conftest.c << _LT_EOF
8165int forced_loaded() { return 2;}
8166_LT_EOF
8167 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8168 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8169 echo "$AR cru libconftest.a conftest.o" >&5
8170 $AR cru libconftest.a conftest.o 2>&5
8171 cat > conftest.c << _LT_EOF
8172int main() { return 0;}
8173_LT_EOF
8174 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8175 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8176 _lt_result=$?
8177 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8178 lt_cv_ld_force_load=yes
8179 else
8180 cat conftest.err >&5
8181 fi
8182 rm -f conftest.err libconftest.a conftest conftest.c
8183 rm -rf conftest.dSYM
8184
8185fi
8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8187$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8188 case $host_os in
8189 rhapsody* | darwin1.[012])
8190 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8191 darwin1.*)
8192 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8193 darwin*) # darwin 5.x on
8194 # if running on 10.5 or later, the deployment target defaults
8195 # to the OS version, if on x86, and 10.4, the deployment
8196 # target defaults to 10.4. Don't you love it?
8197 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8198 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8199 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8200 10.[012][,.]*)
b214d478
SE
8201 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8202 10.*)
8203 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8204 esac
8205 ;;
8206 esac
8207 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8208 _lt_dar_single_mod='$single_module'
8209 fi
8210 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8211 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8212 else
8213 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8214 fi
3725885a 8215 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8216 _lt_dsymutil='~$DSYMUTIL $lib || :'
8217 else
8218 _lt_dsymutil=
8219 fi
8220 ;;
8221 esac
8222
b214d478 8223for ac_header in dlfcn.h
81ecdfbb
RW
8224do :
8225 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8226"
8227if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8228 cat >>confdefs.h <<_ACEOF
81ecdfbb 8229#define HAVE_DLFCN_H 1
b214d478
SE
8230_ACEOF
8231
8232fi
8233
8234done
8235
8236
8237
3725885a
RW
8238
8239
3cb62297 8240
b214d478
SE
8241# Set options
8242
8243
8244
8245 enable_dlopen=no
8246
8247
8248 enable_win32_dll=no
8249
8250
81ecdfbb
RW
8251 # Check whether --enable-shared was given.
8252if test "${enable_shared+set}" = set; then :
8253 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8254 case $enableval in
8255 yes) enable_shared=yes ;;
8256 no) enable_shared=no ;;
8257 *)
8258 enable_shared=no
8259 # Look at the argument we got. We use all the common list separators.
8260 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261 for pkg in $enableval; do
8262 IFS="$lt_save_ifs"
8263 if test "X$pkg" = "X$p"; then
8264 enable_shared=yes
8265 fi
8266 done
8267 IFS="$lt_save_ifs"
8268 ;;
8269 esac
8270else
8271 enable_shared=yes
81ecdfbb 8272fi
b214d478
SE
8273
8274
8275
8276
8277
8278
8279
8280
81ecdfbb
RW
8281
8282 # Check whether --enable-static was given.
8283if test "${enable_static+set}" = set; then :
8284 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8285 case $enableval in
8286 yes) enable_static=yes ;;
8287 no) enable_static=no ;;
8288 *)
8289 enable_static=no
8290 # Look at the argument we got. We use all the common list separators.
8291 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8292 for pkg in $enableval; do
8293 IFS="$lt_save_ifs"
8294 if test "X$pkg" = "X$p"; then
8295 enable_static=yes
8296 fi
8297 done
8298 IFS="$lt_save_ifs"
8299 ;;
8300 esac
8301else
8302 enable_static=yes
81ecdfbb 8303fi
b214d478
SE
8304
8305
8306
8307
8308
8309
8310
8311
8312
81ecdfbb
RW
8313
8314# Check whether --with-pic was given.
8315if test "${with_pic+set}" = set; then :
8316 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8317else
8318 pic_mode=default
81ecdfbb
RW
8319fi
8320
b214d478
SE
8321
8322test -z "$pic_mode" && pic_mode=default
8323
8324
8325
8326
8327
8328
8329
81ecdfbb
RW
8330 # Check whether --enable-fast-install was given.
8331if test "${enable_fast_install+set}" = set; then :
8332 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8333 case $enableval in
8334 yes) enable_fast_install=yes ;;
8335 no) enable_fast_install=no ;;
8336 *)
8337 enable_fast_install=no
8338 # Look at the argument we got. We use all the common list separators.
8339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8340 for pkg in $enableval; do
8341 IFS="$lt_save_ifs"
8342 if test "X$pkg" = "X$p"; then
8343 enable_fast_install=yes
8344 fi
8345 done
8346 IFS="$lt_save_ifs"
7357c5b6
AM
8347 ;;
8348 esac
b214d478
SE
8349else
8350 enable_fast_install=yes
81ecdfbb
RW
8351fi
8352
ce2cded5 8353
ce2cded5
L
8354
8355
ce2cded5 8356
42ecbf5e 8357
d7040cdb 8358
d7040cdb 8359
d7040cdb 8360
d7040cdb 8361
d7040cdb 8362
ce2cded5
L
8363# This can be used to rebuild libtool when needed
8364LIBTOOL_DEPS="$ltmain"
d7040cdb 8365
ce2cded5
L
8366# Always use our own libtool.
8367LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8368
d7040cdb 8369
d7040cdb 8370
d7040cdb 8371
d7040cdb 8372
d7040cdb 8373
d7040cdb 8374
d7040cdb 8375
d7040cdb 8376
d7040cdb 8377
d7040cdb 8378
d7040cdb 8379
d7040cdb 8380
d7040cdb 8381
d7040cdb 8382
d7040cdb 8383
d7040cdb
SE
8384
8385
8386
8387
8388
8389
8390
3725885a 8391
d7040cdb
SE
8392
8393
ce2cded5 8394test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8395
8396
8397
8398
8399
8400
d7040cdb
SE
8401
8402
8403
8404
8405
8406
8407
8408
ce2cded5
L
8409if test -n "${ZSH_VERSION+set}" ; then
8410 setopt NO_GLOB_SUBST
8411fi
d7040cdb 8412
81ecdfbb
RW
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8414$as_echo_n "checking for objdir... " >&6; }
8415if test "${lt_cv_objdir+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
ce2cded5
L
8417else
8418 rm -f .libs 2>/dev/null
8419mkdir .libs 2>/dev/null
8420if test -d .libs; then
8421 lt_cv_objdir=.libs
8422else
8423 # MS-DOS does not allow filenames that begin with a dot.
8424 lt_cv_objdir=_libs
8425fi
8426rmdir .libs 2>/dev/null
8427fi
81ecdfbb
RW
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8429$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8430objdir=$lt_cv_objdir
d7040cdb
SE
8431
8432
8433
8434
8435
ce2cded5
L
8436cat >>confdefs.h <<_ACEOF
8437#define LT_OBJDIR "$lt_cv_objdir/"
8438_ACEOF
d7040cdb
SE
8439
8440
8441
8442
ce2cded5
L
8443case $host_os in
8444aix3*)
8445 # AIX sometimes has problems with the GCC collect2 program. For some
8446 # reason, if we set the COLLECT_NAMES environment variable, the problems
8447 # vanish in a puff of smoke.
8448 if test "X${COLLECT_NAMES+set}" != Xset; then
8449 COLLECT_NAMES=
8450 export COLLECT_NAMES
8451 fi
8452 ;;
8453esac
d7040cdb 8454
ce2cded5
L
8455# Global variables:
8456ofile=libtool
8457can_build_shared=yes
d7040cdb 8458
ce2cded5
L
8459# All known linkers require a `.a' archive for static linking (except MSVC,
8460# which needs '.lib').
8461libext=a
d7040cdb 8462
ce2cded5 8463with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8464
ce2cded5
L
8465old_CC="$CC"
8466old_CFLAGS="$CFLAGS"
d7040cdb 8467
ce2cded5
L
8468# Set sane defaults for various variables
8469test -z "$CC" && CC=cc
8470test -z "$LTCC" && LTCC=$CC
8471test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8472test -z "$LD" && LD=ld
8473test -z "$ac_objext" && ac_objext=o
d7040cdb 8474
ce2cded5
L
8475for cc_temp in $compiler""; do
8476 case $cc_temp in
8477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8479 \-*) ;;
8480 *) break;;
8481 esac
8482done
3725885a 8483cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8484
8485
ce2cded5
L
8486# Only perform the check for file, if the check method requires it
8487test -z "$MAGIC_CMD" && MAGIC_CMD=file
8488case $deplibs_check_method in
8489file_magic*)
8490 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8492$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8493if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
ce2cded5
L
8495else
8496 case $MAGIC_CMD in
8497[\\/*] | ?:[\\/]*)
8498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8499 ;;
8500*)
8501 lt_save_MAGIC_CMD="$MAGIC_CMD"
8502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8504 for ac_dir in $ac_dummy; do
8505 IFS="$lt_save_ifs"
8506 test -z "$ac_dir" && ac_dir=.
8507 if test -f $ac_dir/${ac_tool_prefix}file; then
8508 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8509 if test -n "$file_magic_test_file"; then
8510 case $deplibs_check_method in
8511 "file_magic "*)
8512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8515 $EGREP "$file_magic_regex" > /dev/null; then
8516 :
8517 else
8518 cat <<_LT_EOF 1>&2
d7040cdb 8519
ce2cded5
L
8520*** Warning: the command libtool uses to detect shared libraries,
8521*** $file_magic_cmd, produces output that libtool cannot recognize.
8522*** The result is that libtool may fail to recognize shared libraries
8523*** as such. This will affect the creation of libtool libraries that
8524*** depend on shared libraries, but programs linked with such libtool
8525*** libraries will work regardless of this problem. Nevertheless, you
8526*** may want to report the problem to your system manager and/or to
8527*** bug-libtool@gnu.org
d7040cdb 8528
ce2cded5
L
8529_LT_EOF
8530 fi ;;
8531 esac
8532 fi
8533 break
8534 fi
8535 done
8536 IFS="$lt_save_ifs"
8537 MAGIC_CMD="$lt_save_MAGIC_CMD"
8538 ;;
8539esac
8540fi
d7040cdb 8541
ce2cded5
L
8542MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8543if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8545$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8546else
81ecdfbb
RW
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
ce2cded5 8549fi
d7040cdb
SE
8550
8551
8552
8553
8554
ce2cded5
L
8555if test -z "$lt_cv_path_MAGIC_CMD"; then
8556 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8558$as_echo_n "checking for file... " >&6; }
8559if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
ce2cded5
L
8561else
8562 case $MAGIC_CMD in
8563[\\/*] | ?:[\\/]*)
8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 ;;
8566*)
8567 lt_save_MAGIC_CMD="$MAGIC_CMD"
8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570 for ac_dir in $ac_dummy; do
8571 IFS="$lt_save_ifs"
8572 test -z "$ac_dir" && ac_dir=.
8573 if test -f $ac_dir/file; then
8574 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8575 if test -n "$file_magic_test_file"; then
8576 case $deplibs_check_method in
8577 "file_magic "*)
8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581 $EGREP "$file_magic_regex" > /dev/null; then
8582 :
8583 else
8584 cat <<_LT_EOF 1>&2
d7040cdb 8585
ce2cded5
L
8586*** Warning: the command libtool uses to detect shared libraries,
8587*** $file_magic_cmd, produces output that libtool cannot recognize.
8588*** The result is that libtool may fail to recognize shared libraries
8589*** as such. This will affect the creation of libtool libraries that
8590*** depend on shared libraries, but programs linked with such libtool
8591*** libraries will work regardless of this problem. Nevertheless, you
8592*** may want to report the problem to your system manager and/or to
8593*** bug-libtool@gnu.org
d7040cdb 8594
ce2cded5
L
8595_LT_EOF
8596 fi ;;
8597 esac
8598 fi
8599 break
8600 fi
8601 done
8602 IFS="$lt_save_ifs"
8603 MAGIC_CMD="$lt_save_MAGIC_CMD"
8604 ;;
8605esac
8606fi
d7040cdb 8607
ce2cded5
L
8608MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8612else
81ecdfbb
RW
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614$as_echo "no" >&6; }
ce2cded5 8615fi
d7040cdb
SE
8616
8617
ce2cded5
L
8618 else
8619 MAGIC_CMD=:
8620 fi
8621fi
d7040cdb 8622
ce2cded5
L
8623 fi
8624 ;;
8625esac
d7040cdb 8626
ce2cded5 8627# Use C for the default configuration in the libtool script
d7040cdb 8628
ce2cded5
L
8629lt_save_CC="$CC"
8630ac_ext=c
8631ac_cpp='$CPP $CPPFLAGS'
8632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8634ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8635
8636
ce2cded5
L
8637# Source file extension for C test sources.
8638ac_ext=c
d7040cdb 8639
ce2cded5
L
8640# Object file extension for compiled C test sources.
8641objext=o
8642objext=$objext
d7040cdb 8643
ce2cded5
L
8644# Code to be used in simple compile tests
8645lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8646
ce2cded5
L
8647# Code to be used in simple link tests
8648lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8649
8650
8651
8652
8653
8654
8655
ce2cded5
L
8656# If no C compiler was specified, use CC.
8657LTCC=${LTCC-"$CC"}
d7040cdb 8658
ce2cded5
L
8659# If no C compiler flags were specified, use CFLAGS.
8660LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8661
ce2cded5
L
8662# Allow CC to be a program name with arguments.
8663compiler=$CC
d7040cdb 8664
ce2cded5
L
8665# Save the default compiler, since it gets overwritten when the other
8666# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8667compiler_DEFAULT=$CC
d7040cdb 8668
ce2cded5
L
8669# save warnings/boilerplate of simple test code
8670ac_outfile=conftest.$ac_objext
8671echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8672eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8673_lt_compiler_boilerplate=`cat conftest.err`
8674$RM conftest*
d7040cdb 8675
ce2cded5
L
8676ac_outfile=conftest.$ac_objext
8677echo "$lt_simple_link_test_code" >conftest.$ac_ext
8678eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8679_lt_linker_boilerplate=`cat conftest.err`
b214d478 8680$RM -r conftest*
d7040cdb
SE
8681
8682
ce2cded5
L
8683## CAVEAT EMPTOR:
8684## There is no encapsulation within the following macros, do not change
8685## the running order or otherwise move them around unless you know exactly
8686## what you are doing...
8687if test -n "$compiler"; then
d7040cdb 8688
ce2cded5 8689lt_prog_compiler_no_builtin_flag=
d7040cdb 8690
ce2cded5 8691if test "$GCC" = yes; then
3725885a
RW
8692 case $cc_basename in
8693 nvcc*)
8694 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8695 *)
8696 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8697 esac
d7040cdb 8698
81ecdfbb
RW
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8700$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8701if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
ce2cded5
L
8703else
8704 lt_cv_prog_compiler_rtti_exceptions=no
8705 ac_outfile=conftest.$ac_objext
8706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8707 lt_compiler_flag="-fno-rtti -fno-exceptions"
8708 # Insert the option either (1) after the last *FLAGS variable, or
8709 # (2) before a word containing "conftest.", or (3) at the end.
8710 # Note that $ac_compile itself does not contain backslashes and begins
8711 # with a dollar sign (not a hyphen), so the echo should work correctly.
8712 # The option is referenced via a variable to avoid confusing sed.
8713 lt_compile=`echo "$ac_compile" | $SED \
8714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8716 -e 's:$: $lt_compiler_flag:'`
3725885a 8717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8718 (eval "$lt_compile" 2>conftest.err)
8719 ac_status=$?
8720 cat conftest.err >&5
3725885a 8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8722 if (exit $ac_status) && test -s "$ac_outfile"; then
8723 # The compiler can only warn and ignore the option if not recognized
8724 # So say no if there are warnings other than the usual output.
3725885a 8725 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8728 lt_cv_prog_compiler_rtti_exceptions=yes
8729 fi
8730 fi
8731 $RM conftest*
d7040cdb 8732
ce2cded5 8733fi
81ecdfbb
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8735$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8736
ce2cded5
L
8737if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8738 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8739else
8740 :
8741fi
d7040cdb 8742
ce2cded5 8743fi
d7040cdb
SE
8744
8745
8746
8747
8748
8749
ce2cded5
L
8750 lt_prog_compiler_wl=
8751lt_prog_compiler_pic=
8752lt_prog_compiler_static=
d7040cdb 8753
81ecdfbb
RW
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8755$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8756
ce2cded5
L
8757 if test "$GCC" = yes; then
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_static='-static'
d7040cdb 8760
ce2cded5
L
8761 case $host_os in
8762 aix*)
8763 # All AIX code is PIC.
8764 if test "$host_cpu" = ia64; then
8765 # AIX 5 now supports IA64 processor
8766 lt_prog_compiler_static='-Bstatic'
8767 fi
52204357 8768 lt_prog_compiler_pic='-fPIC'
ce2cded5 8769 ;;
d7040cdb 8770
ce2cded5 8771 amigaos*)
b214d478
SE
8772 case $host_cpu in
8773 powerpc)
8774 # see comment about AmigaOS4 .so support
8775 lt_prog_compiler_pic='-fPIC'
8776 ;;
8777 m68k)
8778 # FIXME: we need at least 68020 code to build shared libraries, but
8779 # adding the `-m68020' flag to GCC prevents building anything better,
8780 # like `-m68040'.
8781 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8782 ;;
8783 esac
ce2cded5 8784 ;;
d7040cdb 8785
ce2cded5
L
8786 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8787 # PIC is the default for these OSes.
8788 ;;
d7040cdb 8789
b214d478 8790 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8791 # This hack is so that the source file can tell whether it is being
8792 # built for inclusion in a dll (and should export symbols for example).
8793 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8794 # (--disable-auto-import) libraries
8795 lt_prog_compiler_pic='-DDLL_EXPORT'
8796 ;;
d7040cdb 8797
ce2cded5
L
8798 darwin* | rhapsody*)
8799 # PIC is the default on this platform
8800 # Common symbols not allowed in MH_DYLIB files
8801 lt_prog_compiler_pic='-fno-common'
8802 ;;
d7040cdb 8803
3725885a
RW
8804 haiku*)
8805 # PIC is the default for Haiku.
8806 # The "-static" flag exists, but is broken.
8807 lt_prog_compiler_static=
8808 ;;
8809
ce2cded5 8810 hpux*)
b214d478
SE
8811 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8812 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8813 # sets the default TLS model and affects inlining.
ce2cded5 8814 case $host_cpu in
b214d478 8815 hppa*64*)
ce2cded5
L
8816 # +Z the default
8817 ;;
8818 *)
8819 lt_prog_compiler_pic='-fPIC'
8820 ;;
8821 esac
8822 ;;
d7040cdb 8823
ce2cded5
L
8824 interix[3-9]*)
8825 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8826 # Instead, we relocate shared libraries at runtime.
8827 ;;
d7040cdb 8828
ce2cded5
L
8829 msdosdjgpp*)
8830 # Just because we use GCC doesn't mean we suddenly get shared libraries
8831 # on systems that don't support them.
8832 lt_prog_compiler_can_build_shared=no
8833 enable_shared=no
8834 ;;
d7040cdb 8835
ce2cded5
L
8836 *nto* | *qnx*)
8837 # QNX uses GNU C++, but need to define -shared option too, otherwise
8838 # it will coredump.
8839 lt_prog_compiler_pic='-fPIC -shared'
8840 ;;
d7040cdb 8841
ce2cded5
L
8842 sysv4*MP*)
8843 if test -d /usr/nec; then
8844 lt_prog_compiler_pic=-Kconform_pic
8845 fi
8846 ;;
d7040cdb 8847
ce2cded5
L
8848 *)
8849 lt_prog_compiler_pic='-fPIC'
8850 ;;
8851 esac
3725885a
RW
8852
8853 case $cc_basename in
8854 nvcc*) # Cuda Compiler Driver 2.2
8855 lt_prog_compiler_wl='-Xlinker '
8856 lt_prog_compiler_pic='-Xcompiler -fPIC'
8857 ;;
8858 esac
ce2cded5
L
8859 else
8860 # PORTME Check for flag to pass linker flags through the system compiler.
8861 case $host_os in
8862 aix*)
8863 lt_prog_compiler_wl='-Wl,'
8864 if test "$host_cpu" = ia64; then
8865 # AIX 5 now supports IA64 processor
8866 lt_prog_compiler_static='-Bstatic'
8867 else
8868 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8869 fi
8870 ;;
d7040cdb 8871
b214d478 8872 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8873 # This hack is so that the source file can tell whether it is being
8874 # built for inclusion in a dll (and should export symbols for example).
8875 lt_prog_compiler_pic='-DDLL_EXPORT'
8876 ;;
d7040cdb 8877
ce2cded5
L
8878 hpux9* | hpux10* | hpux11*)
8879 lt_prog_compiler_wl='-Wl,'
8880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8881 # not for PA HP-UX.
8882 case $host_cpu in
8883 hppa*64*|ia64*)
8884 # +Z the default
8885 ;;
8886 *)
8887 lt_prog_compiler_pic='+Z'
8888 ;;
8889 esac
8890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8891 lt_prog_compiler_static='${wl}-a ${wl}archive'
8892 ;;
d7040cdb 8893
ce2cded5
L
8894 irix5* | irix6* | nonstopux*)
8895 lt_prog_compiler_wl='-Wl,'
8896 # PIC (with -KPIC) is the default.
8897 lt_prog_compiler_static='-non_shared'
8898 ;;
d7040cdb 8899
58e24671 8900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8901 case $cc_basename in
b214d478
SE
8902 # old Intel for x86_64 which still supported -KPIC.
8903 ecc*)
ce2cded5
L
8904 lt_prog_compiler_wl='-Wl,'
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-static'
8907 ;;
b214d478
SE
8908 # icc used to be incompatible with GCC.
8909 # ICC 10 doesn't accept -KPIC any more.
8910 icc* | ifort*)
8911 lt_prog_compiler_wl='-Wl,'
8912 lt_prog_compiler_pic='-fPIC'
8913 lt_prog_compiler_static='-static'
8914 ;;
8915 # Lahey Fortran 8.1.
8916 lf95*)
8917 lt_prog_compiler_wl='-Wl,'
8918 lt_prog_compiler_pic='--shared'
8919 lt_prog_compiler_static='--static'
8920 ;;
3725885a 8921 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8922 # Portland Group compilers (*not* the Pentium gcc compiler,
8923 # which looks to be a dead project)
8924 lt_prog_compiler_wl='-Wl,'
8925 lt_prog_compiler_pic='-fpic'
8926 lt_prog_compiler_static='-Bstatic'
8927 ;;
8928 ccc*)
8929 lt_prog_compiler_wl='-Wl,'
8930 # All Alpha code is PIC.
8931 lt_prog_compiler_static='-non_shared'
8932 ;;
3725885a
RW
8933 xl* | bgxl* | bgf* | mpixl*)
8934 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-qpic'
8937 lt_prog_compiler_static='-qstaticlink'
8938 ;;
ce2cded5
L
8939 *)
8940 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8941 *Sun\ F* | *Sun*Fortran*)
8942 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8943 lt_prog_compiler_pic='-KPIC'
8944 lt_prog_compiler_static='-Bstatic'
3725885a 8945 lt_prog_compiler_wl=''
ce2cded5 8946 ;;
3725885a
RW
8947 *Sun\ C*)
8948 # Sun C 5.9
ce2cded5
L
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
3725885a 8951 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8952 ;;
8953 esac
8954 ;;
8955 esac
8956 ;;
d7040cdb 8957
ce2cded5
L
8958 newsos6)
8959 lt_prog_compiler_pic='-KPIC'
8960 lt_prog_compiler_static='-Bstatic'
8961 ;;
d7040cdb 8962
ce2cded5
L
8963 *nto* | *qnx*)
8964 # QNX uses GNU C++, but need to define -shared option too, otherwise
8965 # it will coredump.
8966 lt_prog_compiler_pic='-fPIC -shared'
8967 ;;
d7040cdb 8968
ce2cded5
L
8969 osf3* | osf4* | osf5*)
8970 lt_prog_compiler_wl='-Wl,'
8971 # All OSF/1 code is PIC.
8972 lt_prog_compiler_static='-non_shared'
8973 ;;
d7040cdb 8974
ce2cded5
L
8975 rdos*)
8976 lt_prog_compiler_static='-non_shared'
8977 ;;
d7040cdb 8978
ce2cded5
L
8979 solaris*)
8980 lt_prog_compiler_pic='-KPIC'
8981 lt_prog_compiler_static='-Bstatic'
8982 case $cc_basename in
8983 f77* | f90* | f95*)
8984 lt_prog_compiler_wl='-Qoption ld ';;
8985 *)
8986 lt_prog_compiler_wl='-Wl,';;
8987 esac
8988 ;;
d7040cdb 8989
ce2cded5
L
8990 sunos4*)
8991 lt_prog_compiler_wl='-Qoption ld '
8992 lt_prog_compiler_pic='-PIC'
8993 lt_prog_compiler_static='-Bstatic'
8994 ;;
d7040cdb 8995
ce2cded5
L
8996 sysv4 | sysv4.2uw2* | sysv4.3*)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-KPIC'
8999 lt_prog_compiler_static='-Bstatic'
9000 ;;
d7040cdb 9001
ce2cded5
L
9002 sysv4*MP*)
9003 if test -d /usr/nec ;then
9004 lt_prog_compiler_pic='-Kconform_pic'
9005 lt_prog_compiler_static='-Bstatic'
9006 fi
9007 ;;
d7040cdb 9008
ce2cded5
L
9009 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_pic='-KPIC'
9012 lt_prog_compiler_static='-Bstatic'
9013 ;;
d7040cdb 9014
ce2cded5
L
9015 unicos*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_can_build_shared=no
9018 ;;
d7040cdb 9019
ce2cded5
L
9020 uts4*)
9021 lt_prog_compiler_pic='-pic'
9022 lt_prog_compiler_static='-Bstatic'
9023 ;;
d7040cdb 9024
ce2cded5
L
9025 *)
9026 lt_prog_compiler_can_build_shared=no
9027 ;;
9028 esac
9029 fi
d7040cdb 9030
ce2cded5
L
9031case $host_os in
9032 # For platforms which do not support PIC, -DPIC is meaningless:
9033 *djgpp*)
9034 lt_prog_compiler_pic=
9035 ;;
9036 *)
9037 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9038 ;;
9039esac
81ecdfbb
RW
9040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9041$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9042
9043
9044
9045
9046
9047
ce2cded5
L
9048#
9049# Check to make sure the PIC flag actually works.
9050#
9051if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9053$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9054if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
ce2cded5 9056else
b214d478 9057 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9058 ac_outfile=conftest.$ac_objext
9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9061 # Insert the option either (1) after the last *FLAGS variable, or
9062 # (2) before a word containing "conftest.", or (3) at the end.
9063 # Note that $ac_compile itself does not contain backslashes and begins
9064 # with a dollar sign (not a hyphen), so the echo should work correctly.
9065 # The option is referenced via a variable to avoid confusing sed.
9066 lt_compile=`echo "$ac_compile" | $SED \
9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069 -e 's:$: $lt_compiler_flag:'`
3725885a 9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9071 (eval "$lt_compile" 2>conftest.err)
9072 ac_status=$?
9073 cat conftest.err >&5
3725885a 9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9075 if (exit $ac_status) && test -s "$ac_outfile"; then
9076 # The compiler can only warn and ignore the option if not recognized
9077 # So say no if there are warnings other than the usual output.
3725885a 9078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9081 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9082 fi
9083 fi
9084 $RM conftest*
d7040cdb 9085
ce2cded5 9086fi
81ecdfbb
RW
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9088$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9089
b214d478 9090if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9091 case $lt_prog_compiler_pic in
9092 "" | " "*) ;;
9093 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9094 esac
9095else
9096 lt_prog_compiler_pic=
9097 lt_prog_compiler_can_build_shared=no
9098fi
9099
9100fi
d7040cdb
SE
9101
9102
9103
9104
9105
9106
ce2cded5
L
9107#
9108# Check to make sure the static flag actually works.
9109#
9110wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
ce2cded5 9115else
b214d478 9116 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9117 save_LDFLAGS="$LDFLAGS"
9118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121 # The linker can only warn and ignore the option if not recognized
9122 # So say no if there are warnings
9123 if test -s conftest.err; then
9124 # Append any errors to the config.log.
9125 cat conftest.err 1>&5
3725885a 9126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9129 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9130 fi
9131 else
b214d478 9132 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9133 fi
9134 fi
b214d478 9135 $RM -r conftest*
ce2cded5 9136 LDFLAGS="$save_LDFLAGS"
d7040cdb 9137
ce2cded5 9138fi
81ecdfbb
RW
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9141
b214d478 9142if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9143 :
9144else
9145 lt_prog_compiler_static=
9146fi
d7040cdb
SE
9147
9148
9149
9150
9151
9152
9153
81ecdfbb
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9157 $as_echo_n "(cached) " >&6
ce2cded5
L
9158else
9159 lt_cv_prog_compiler_c_o=no
9160 $RM -r conftest 2>/dev/null
9161 mkdir conftest
9162 cd conftest
9163 mkdir out
9164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9165
ce2cded5
L
9166 lt_compiler_flag="-o out/conftest2.$ac_objext"
9167 # Insert the option either (1) after the last *FLAGS variable, or
9168 # (2) before a word containing "conftest.", or (3) at the end.
9169 # Note that $ac_compile itself does not contain backslashes and begins
9170 # with a dollar sign (not a hyphen), so the echo should work correctly.
9171 lt_compile=`echo "$ac_compile" | $SED \
9172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174 -e 's:$: $lt_compiler_flag:'`
3725885a 9175 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9176 (eval "$lt_compile" 2>out/conftest.err)
9177 ac_status=$?
9178 cat out/conftest.err >&5
3725885a 9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181 then
9182 # The compiler can only warn and ignore the option if not recognized
9183 # So say no if there are warnings
3725885a 9184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187 lt_cv_prog_compiler_c_o=yes
9188 fi
9189 fi
9190 chmod u+w . 2>&5
9191 $RM conftest*
9192 # SGI C++ compiler will create directory out/ii_files/ for
9193 # template instantiation
9194 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195 $RM out/* && rmdir out
9196 cd ..
9197 $RM -r conftest
9198 $RM conftest*
d7040cdb 9199
ce2cded5 9200fi
81ecdfbb
RW
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9203
9204
9205
9206
9207
9208
81ecdfbb
RW
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
ce2cded5
L
9213else
9214 lt_cv_prog_compiler_c_o=no
9215 $RM -r conftest 2>/dev/null
9216 mkdir conftest
9217 cd conftest
9218 mkdir out
9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9220
ce2cded5
L
9221 lt_compiler_flag="-o out/conftest2.$ac_objext"
9222 # Insert the option either (1) after the last *FLAGS variable, or
9223 # (2) before a word containing "conftest.", or (3) at the end.
9224 # Note that $ac_compile itself does not contain backslashes and begins
9225 # with a dollar sign (not a hyphen), so the echo should work correctly.
9226 lt_compile=`echo "$ac_compile" | $SED \
9227 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229 -e 's:$: $lt_compiler_flag:'`
3725885a 9230 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9231 (eval "$lt_compile" 2>out/conftest.err)
9232 ac_status=$?
9233 cat out/conftest.err >&5
3725885a 9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9235 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236 then
9237 # The compiler can only warn and ignore the option if not recognized
9238 # So say no if there are warnings
3725885a 9239 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9240 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242 lt_cv_prog_compiler_c_o=yes
9243 fi
9244 fi
9245 chmod u+w . 2>&5
9246 $RM conftest*
9247 # SGI C++ compiler will create directory out/ii_files/ for
9248 # template instantiation
9249 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250 $RM out/* && rmdir out
9251 cd ..
9252 $RM -r conftest
9253 $RM conftest*
9254
9255fi
81ecdfbb
RW
9256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9258
9259
9260
9261
9262hard_links="nottested"
9263if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9267 hard_links=yes
9268 $RM conftest*
9269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270 touch conftest.a
9271 ln conftest.a conftest.b 2>&5 || hard_links=no
9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274$as_echo "$hard_links" >&6; }
ce2cded5 9275 if test "$hard_links" = no; then
81ecdfbb
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9278 need_locks=warn
d7040cdb 9279 fi
d7040cdb 9280else
ce2cded5 9281 need_locks=no
d7040cdb 9282fi
d7040cdb 9283
d7040cdb 9284
d7040cdb 9285
d7040cdb 9286
d7040cdb 9287
d7040cdb 9288
81ecdfbb
RW
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9291
ce2cded5
L
9292 runpath_var=
9293 allow_undefined_flag=
9294 always_export_symbols=no
9295 archive_cmds=
9296 archive_expsym_cmds=
9297 compiler_needs_object=no
9298 enable_shared_with_static_runtimes=no
9299 export_dynamic_flag_spec=
9300 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301 hardcode_automatic=no
9302 hardcode_direct=no
9303 hardcode_direct_absolute=no
9304 hardcode_libdir_flag_spec=
9305 hardcode_libdir_flag_spec_ld=
9306 hardcode_libdir_separator=
9307 hardcode_minus_L=no
9308 hardcode_shlibpath_var=unsupported
9309 inherit_rpath=no
9310 link_all_deplibs=unknown
9311 module_cmds=
9312 module_expsym_cmds=
9313 old_archive_from_new_cmds=
9314 old_archive_from_expsyms_cmds=
9315 thread_safe_flag_spec=
9316 whole_archive_flag_spec=
9317 # include_expsyms should be a list of space-separated symbols to be *always*
9318 # included in the symbol list
9319 include_expsyms=
9320 # exclude_expsyms can be an extended regexp of symbols to exclude
9321 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9322 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9323 # as well as any symbol that contains `d'.
b214d478 9324 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9325 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9326 # platforms (ab)use it in PIC code, but their linkers get confused if
9327 # the symbol is explicitly referenced. Since portable code cannot
9328 # rely on this symbol name, it's probably fine to never include it in
9329 # preloaded symbol tables.
b214d478 9330 # Exclude shared library initialization/finalization symbols.
ce2cded5 9331 extract_expsyms_cmds=
d7040cdb 9332
ce2cded5 9333 case $host_os in
b214d478 9334 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9335 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9336 # When not using gcc, we currently assume that we are using
9337 # Microsoft Visual C++.
9338 if test "$GCC" != yes; then
9339 with_gnu_ld=no
9340 fi
d7040cdb 9341 ;;
ce2cded5
L
9342 interix*)
9343 # we just hope/assume this is gcc and not c89 (= MSVC++)
9344 with_gnu_ld=yes
9345 ;;
9346 openbsd*)
9347 with_gnu_ld=no
d7040cdb
SE
9348 ;;
9349 esac
d7040cdb 9350
ce2cded5 9351 ld_shlibs=yes
3725885a
RW
9352
9353 # On some targets, GNU ld is compatible enough with the native linker
9354 # that we're better off using the native interface for both.
9355 lt_use_gnu_ld_interface=no
ce2cded5 9356 if test "$with_gnu_ld" = yes; then
3725885a
RW
9357 case $host_os in
9358 aix*)
9359 # The AIX port of GNU ld has always aspired to compatibility
9360 # with the native linker. However, as the warning in the GNU ld
9361 # block says, versions before 2.19.5* couldn't really create working
9362 # shared libraries, regardless of the interface used.
9363 case `$LD -v 2>&1` in
9364 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9365 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9366 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9367 *)
9368 lt_use_gnu_ld_interface=yes
9369 ;;
9370 esac
9371 ;;
9372 *)
9373 lt_use_gnu_ld_interface=yes
9374 ;;
9375 esac
9376 fi
9377
9378 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9379 # If archive_cmds runs LD, not CC, wlarc should be empty
9380 wlarc='${wl}'
d7040cdb 9381
ce2cded5
L
9382 # Set some defaults for GNU ld with shared library support. These
9383 # are reset later if shared libraries are not supported. Putting them
9384 # here allows them to be overridden if necessary.
9385 runpath_var=LD_RUN_PATH
9386 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387 export_dynamic_flag_spec='${wl}--export-dynamic'
9388 # ancient GNU ld didn't support --whole-archive et. al.
9389 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9390 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9391 else
9392 whole_archive_flag_spec=
9393 fi
9394 supports_anon_versioning=no
9395 case `$LD -v 2>&1` in
3725885a 9396 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9397 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9398 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9399 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9400 *\ 2.11.*) ;; # other 2.11 versions
9401 *) supports_anon_versioning=yes ;;
9402 esac
d7040cdb 9403
ce2cded5
L
9404 # See if GNU ld supports shared libraries.
9405 case $host_os in
50e7d84b 9406 aix[3-9]*)
ce2cded5
L
9407 # On AIX/PPC, the GNU linker is very broken
9408 if test "$host_cpu" != ia64; then
9409 ld_shlibs=no
9410 cat <<_LT_EOF 1>&2
d7040cdb 9411
3725885a 9412*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9413*** to be unable to reliably create shared libraries on AIX.
9414*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9415*** really care for shared libraries, you may want to install binutils
9416*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9417*** You will then need to restart the configuration process.
d7040cdb 9418
ce2cded5
L
9419_LT_EOF
9420 fi
d7040cdb 9421 ;;
d7040cdb 9422
ce2cded5 9423 amigaos*)
b214d478
SE
9424 case $host_cpu in
9425 powerpc)
9426 # see comment about AmigaOS4 .so support
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds=''
9429 ;;
9430 m68k)
9431 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)'
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_minus_L=yes
9434 ;;
9435 esac
ce2cded5 9436 ;;
d7040cdb 9437
ce2cded5
L
9438 beos*)
9439 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 allow_undefined_flag=unsupported
9441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9442 # support --undefined. This deserves some investigation. FIXME
9443 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 else
9445 ld_shlibs=no
9446 fi
9447 ;;
d7040cdb 9448
b214d478 9449 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9450 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9451 # as there is no search path for DLLs.
9452 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9453 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9454 allow_undefined_flag=unsupported
9455 always_export_symbols=no
9456 enable_shared_with_static_runtimes=yes
9457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9458
9459 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9461 # If the export-symbols file already is a .def file (1st line
9462 # is EXPORTS), use it as is; otherwise, prepend...
9463 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9464 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9465 else
ce2cded5
L
9466 echo EXPORTS > $output_objdir/$soname.def;
9467 cat $export_symbols >> $output_objdir/$soname.def;
9468 fi~
9469 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9470 else
9471 ld_shlibs=no
9472 fi
9473 ;;
d7040cdb 9474
3725885a
RW
9475 haiku*)
9476 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9477 link_all_deplibs=yes
9478 ;;
9479
ce2cded5
L
9480 interix[3-9]*)
9481 hardcode_direct=no
9482 hardcode_shlibpath_var=no
9483 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9484 export_dynamic_flag_spec='${wl}-E'
9485 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9486 # Instead, shared libraries are loaded at an image base (0x10000000 by
9487 # default) and relocated if they conflict, which is a slow very memory
9488 # consuming and fragmenting process. To avoid this, we pick a random,
9489 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9490 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9491 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9492 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'
9493 ;;
d7040cdb 9494
58e24671 9495 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9496 tmp_diet=no
9497 if test "$host_os" = linux-dietlibc; then
9498 case $cc_basename in
9499 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9500 esac
9501 fi
9502 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9503 && test "$tmp_diet" = no
9504 then
6e733cce 9505 tmp_addflag=' $pic_flag'
b214d478 9506 tmp_sharedflag='-shared'
ce2cded5
L
9507 case $cc_basename,$host_cpu in
9508 pgcc*) # Portland Group C compiler
3725885a 9509 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
9510 tmp_addflag=' $pic_flag'
9511 ;;
3725885a
RW
9512 pgf77* | pgf90* | pgf95* | pgfortran*)
9513 # Portland Group f77 and f90 compilers
9514 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
9515 tmp_addflag=' $pic_flag -Mnomain' ;;
9516 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9517 tmp_addflag=' -i_dynamic' ;;
9518 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9519 tmp_addflag=' -i_dynamic -nofor_main' ;;
9520 ifc* | ifort*) # Intel Fortran compiler
9521 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9522 lf95*) # Lahey Fortran 8.1
9523 whole_archive_flag_spec=
9524 tmp_sharedflag='--shared' ;;
3725885a 9525 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9526 tmp_sharedflag='-qmkshrobj'
9527 tmp_addflag= ;;
3725885a
RW
9528 nvcc*) # Cuda Compiler Driver 2.2
9529 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'
9530 compiler_needs_object=yes
9531 ;;
ce2cded5
L
9532 esac
9533 case `$CC -V 2>&1 | sed 5q` in
9534 *Sun\ C*) # Sun C 5.9
3725885a 9535 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
9536 compiler_needs_object=yes
9537 tmp_sharedflag='-G' ;;
9538 *Sun\ F*) # Sun Fortran 8.3
9539 tmp_sharedflag='-G' ;;
ce2cded5
L
9540 esac
9541 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9542
ce2cded5
L
9543 if test "x$supports_anon_versioning" = xyes; then
9544 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9546 echo "local: *; };" >> $output_objdir/$libname.ver~
9547 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9548 fi
b214d478
SE
9549
9550 case $cc_basename in
3725885a 9551 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9552 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9553 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9554 hardcode_libdir_flag_spec=
9555 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9556 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9557 if test "x$supports_anon_versioning" = xyes; then
9558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9560 echo "local: *; };" >> $output_objdir/$libname.ver~
9561 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9562 fi
9563 ;;
9564 esac
ce2cded5
L
9565 else
9566 ld_shlibs=no
9567 fi
9568 ;;
d7040cdb 9569
ce2cded5
L
9570 netbsd*)
9571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9572 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9573 wlarc=
9574 else
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9576 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577 fi
9578 ;;
9579
9580 solaris*)
9581 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9582 ld_shlibs=no
9583 cat <<_LT_EOF 1>&2
9584
9585*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9586*** create shared libraries on Solaris systems. Therefore, libtool
9587*** is disabling shared libraries support. We urge you to upgrade GNU
9588*** binutils to release 2.9.1 or newer. Another option is to modify
9589*** your PATH or compiler configuration so that the native linker is
9590*** used, and then restart.
9591
9592_LT_EOF
9593 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9596 else
9597 ld_shlibs=no
9598 fi
9599 ;;
9600
9601 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9602 case `$LD -v 2>&1` in
9603 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9604 ld_shlibs=no
9605 cat <<_LT_EOF 1>&2
9606
9607*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9608*** reliably create shared libraries on SCO systems. Therefore, libtool
9609*** is disabling shared libraries support. We urge you to upgrade GNU
9610*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9611*** your PATH or compiler configuration so that the native linker is
9612*** used, and then restart.
9613
9614_LT_EOF
9615 ;;
9616 *)
9617 # For security reasons, it is highly recommended that you always
9618 # use absolute paths for naming shared libraries, and exclude the
9619 # DT_RUNPATH tag from executables and libraries. But doing so
9620 # requires that you compile everything twice, which is a pain.
9621 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9623 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9625 else
9626 ld_shlibs=no
9627 fi
9628 ;;
9629 esac
9630 ;;
9631
9632 sunos4*)
9633 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9634 wlarc=
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 *)
9640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9643 else
9644 ld_shlibs=no
9645 fi
9646 ;;
9647 esac
9648
9649 if test "$ld_shlibs" = no; then
9650 runpath_var=
9651 hardcode_libdir_flag_spec=
9652 export_dynamic_flag_spec=
9653 whole_archive_flag_spec=
9654 fi
9655 else
9656 # PORTME fill in a description of your system's linker (not GNU ld)
9657 case $host_os in
9658 aix3*)
9659 allow_undefined_flag=unsupported
9660 always_export_symbols=yes
9661 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'
9662 # Note: this linker hardcodes the directories in LIBPATH if there
9663 # are no directories specified by -L.
9664 hardcode_minus_L=yes
9665 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9666 # Neither direct hardcoding nor static linking is supported with a
9667 # broken collect2.
9668 hardcode_direct=unsupported
9669 fi
9670 ;;
9671
50e7d84b 9672 aix[4-9]*)
ce2cded5
L
9673 if test "$host_cpu" = ia64; then
9674 # On IA64, the linker does run time linking by default, so we don't
9675 # have to do anything special.
9676 aix_use_runtimelinking=no
9677 exp_sym_flag='-Bexport'
9678 no_entry_flag=""
9679 else
9680 # If we're using GNU nm, then we don't want the "-C" option.
9681 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9682 # Also, AIX nm treats weak defined symbols like other global
9683 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9684 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9685 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9686 else
9687 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9688 fi
9689 aix_use_runtimelinking=no
9690
9691 # Test if we are trying to use run time linking or normal
9692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9693 # need to do runtime linking.
50e7d84b 9694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9695 for ld_flag in $LDFLAGS; do
9696 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9697 aix_use_runtimelinking=yes
9698 break
9699 fi
9700 done
9701 ;;
9702 esac
9703
9704 exp_sym_flag='-bexport'
9705 no_entry_flag='-bnoentry'
9706 fi
9707
9708 # When large executables or shared objects are built, AIX ld can
9709 # have problems creating the table of contents. If linking a library
9710 # or program results in "error TOC overflow" add -mminimal-toc to
9711 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9712 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9713
9714 archive_cmds=''
9715 hardcode_direct=yes
9716 hardcode_direct_absolute=yes
9717 hardcode_libdir_separator=':'
9718 link_all_deplibs=yes
9719 file_list_spec='${wl}-f,'
9720
9721 if test "$GCC" = yes; then
9722 case $host_os in aix4.[012]|aix4.[012].*)
9723 # We only want to do this on AIX 4.2 and lower, the check
9724 # below for broken collect2 doesn't work under 4.3+
9725 collect2name=`${CC} -print-prog-name=collect2`
9726 if test -f "$collect2name" &&
9727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9728 then
9729 # We have reworked collect2
9730 :
9731 else
9732 # We have old collect2
9733 hardcode_direct=unsupported
9734 # It fails to find uninstalled libraries when the uninstalled
9735 # path is not listed in the libpath. Setting hardcode_minus_L
9736 # to unsupported forces relinking
9737 hardcode_minus_L=yes
9738 hardcode_libdir_flag_spec='-L$libdir'
9739 hardcode_libdir_separator=
9740 fi
9741 ;;
9742 esac
9743 shared_flag='-shared'
9744 if test "$aix_use_runtimelinking" = yes; then
9745 shared_flag="$shared_flag "'${wl}-G'
9746 fi
9747 else
9748 # not using gcc
9749 if test "$host_cpu" = ia64; then
9750 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9751 # chokes on -Wl,-G. The following line is correct:
9752 shared_flag='-G'
9753 else
9754 if test "$aix_use_runtimelinking" = yes; then
9755 shared_flag='${wl}-G'
9756 else
9757 shared_flag='${wl}-bM:SRE'
9758 fi
9759 fi
9760 fi
9761
b214d478 9762 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9763 # It seems that -bexpall does not export symbols beginning with
9764 # underscore (_), so it is better to generate a list of symbols to export.
9765 always_export_symbols=yes
9766 if test "$aix_use_runtimelinking" = yes; then
9767 # Warning - without using the other runtime loading flags (-brtl),
9768 # -berok will link without error, but may produce a broken library.
9769 allow_undefined_flag='-berok'
9770 # Determine the default libpath from the value encoded in an
9771 # empty executable.
81ecdfbb 9772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9773/* end confdefs.h. */
9774
9775int
9776main ()
9777{
9778
9779 ;
9780 return 0;
9781}
9782_ACEOF
81ecdfbb 9783if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9784
ce2cded5
L
9785lt_aix_libpath_sed='
9786 /Import File Strings/,/^$/ {
9787 /^0/ {
9788 s/^0 *\(.*\)$/\1/
9789 p
9790 }
9791 }'
9792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9793# Check for a 64-bit object if we didn't find anything.
9794if test -z "$aix_libpath"; then
9795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9796fi
d7040cdb 9797fi
81ecdfbb
RW
9798rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9800if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9801
ce2cded5 9802 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9803 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
9804 else
9805 if test "$host_cpu" = ia64; then
9806 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9807 allow_undefined_flag="-z nodefs"
9808 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"
9809 else
9810 # Determine the default libpath from the value encoded in an
9811 # empty executable.
81ecdfbb 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9813/* end confdefs.h. */
d7040cdb 9814
ce2cded5
L
9815int
9816main ()
9817{
d7040cdb 9818
ce2cded5
L
9819 ;
9820 return 0;
9821}
9822_ACEOF
81ecdfbb 9823if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9824
ce2cded5
L
9825lt_aix_libpath_sed='
9826 /Import File Strings/,/^$/ {
9827 /^0/ {
9828 s/^0 *\(.*\)$/\1/
9829 p
9830 }
9831 }'
9832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9833# Check for a 64-bit object if we didn't find anything.
9834if test -z "$aix_libpath"; then
9835 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9836fi
ce2cded5 9837fi
81ecdfbb
RW
9838rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9840if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9841
ce2cded5
L
9842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9843 # Warning - without using the other run time loading flags,
9844 # -berok will link without error, but may produce a broken library.
9845 no_undefined_flag=' ${wl}-bernotok'
9846 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9847 if test "$with_gnu_ld" = yes; then
9848 # We only use this code for GNU lds that support --whole-archive.
9849 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9850 else
9851 # Exported symbols can be pulled into shared objects from archives
9852 whole_archive_flag_spec='$convenience'
9853 fi
ce2cded5
L
9854 archive_cmds_need_lc=yes
9855 # This is similar to how AIX traditionally builds its shared libraries.
9856 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'
9857 fi
9858 fi
9859 ;;
d7040cdb 9860
ce2cded5 9861 amigaos*)
b214d478
SE
9862 case $host_cpu in
9863 powerpc)
9864 # see comment about AmigaOS4 .so support
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866 archive_expsym_cmds=''
9867 ;;
9868 m68k)
9869 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)'
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_minus_L=yes
9872 ;;
9873 esac
ce2cded5
L
9874 ;;
9875
9876 bsdi[45]*)
9877 export_dynamic_flag_spec=-rdynamic
9878 ;;
9879
b214d478 9880 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9881 # When not using gcc, we currently assume that we are using
9882 # Microsoft Visual C++.
9883 # hardcode_libdir_flag_spec is actually meaningless, as there is
9884 # no search path for DLLs.
9885 hardcode_libdir_flag_spec=' '
9886 allow_undefined_flag=unsupported
9887 # Tell ltmain to make .lib files, not .a files.
9888 libext=lib
9889 # Tell ltmain to make .dll files, not .so files.
9890 shrext_cmds=".dll"
9891 # FIXME: Setting linknames here is a bad hack.
3725885a 9892 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9893 # The linker will automatically build a .lib file if we build a DLL.
9894 old_archive_from_new_cmds='true'
9895 # FIXME: Should let the user specify the lib program.
9896 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9897 fix_srcfile_path='`cygpath -w "$srcfile"`'
9898 enable_shared_with_static_runtimes=yes
9899 ;;
9900
9901 darwin* | rhapsody*)
d7040cdb 9902
b214d478
SE
9903
9904 archive_cmds_need_lc=no
9905 hardcode_direct=no
9906 hardcode_automatic=yes
9907 hardcode_shlibpath_var=unsupported
3725885a
RW
9908 if test "$lt_cv_ld_force_load" = "yes"; then
9909 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\"`'
9910 else
9911 whole_archive_flag_spec=''
9912 fi
b214d478
SE
9913 link_all_deplibs=yes
9914 allow_undefined_flag="$_lt_dar_allow_undefined"
9915 case $cc_basename in
9916 ifort*) _lt_dar_can_shared=yes ;;
9917 *) _lt_dar_can_shared=$GCC ;;
9918 esac
9919 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9920 output_verbose_link_cmd=func_echo_all
b214d478
SE
9921 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9922 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9923 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}"
9924 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}"
9925
9926 else
9927 ld_shlibs=no
9928 fi
9929
ce2cded5 9930 ;;
d7040cdb 9931
ce2cded5
L
9932 dgux*)
9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_shlibpath_var=no
9936 ;;
d7040cdb 9937
ce2cded5
L
9938 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9939 # support. Future versions do this automatically, but an explicit c++rt0.o
9940 # does not break anything, and helps significantly (at the cost of a little
9941 # extra space).
9942 freebsd2.2*)
9943 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9944 hardcode_libdir_flag_spec='-R$libdir'
9945 hardcode_direct=yes
9946 hardcode_shlibpath_var=no
d7040cdb 9947 ;;
d7040cdb 9948
ce2cded5 9949 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9950 freebsd2.*)
ce2cded5
L
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct=yes
9953 hardcode_minus_L=yes
9954 hardcode_shlibpath_var=no
9955 ;;
d7040cdb 9956
ce2cded5
L
9957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9958 freebsd* | dragonfly*)
9959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9960 hardcode_libdir_flag_spec='-R$libdir'
9961 hardcode_direct=yes
9962 hardcode_shlibpath_var=no
9963 ;;
d7040cdb 9964
ce2cded5
L
9965 hpux9*)
9966 if test "$GCC" = yes; then
9967 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'
9968 else
9969 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'
9970 fi
9971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9972 hardcode_libdir_separator=:
9973 hardcode_direct=yes
d7040cdb 9974
ce2cded5
L
9975 # hardcode_minus_L: Not really in the search PATH,
9976 # but as the default location of the library.
9977 hardcode_minus_L=yes
9978 export_dynamic_flag_spec='${wl}-E'
9979 ;;
d7040cdb 9980
ce2cded5 9981 hpux10*)
3725885a 9982 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9984 else
9985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9986 fi
9987 if test "$with_gnu_ld" = no; then
9988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9989 hardcode_libdir_flag_spec_ld='+b $libdir'
9990 hardcode_libdir_separator=:
9991 hardcode_direct=yes
9992 hardcode_direct_absolute=yes
9993 export_dynamic_flag_spec='${wl}-E'
9994 # hardcode_minus_L: Not really in the search PATH,
9995 # but as the default location of the library.
9996 hardcode_minus_L=yes
9997 fi
9998 ;;
d7040cdb 9999
ce2cded5 10000 hpux11*)
3725885a 10001 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10002 case $host_cpu in
10003 hppa*64*)
10004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10005 ;;
10006 ia64*)
b214d478 10007 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10008 ;;
10009 *)
10010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011 ;;
10012 esac
10013 else
10014 case $host_cpu in
10015 hppa*64*)
10016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 ;;
10018 ia64*)
10019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10020 ;;
10021 *)
3725885a
RW
10022
10023 # Older versions of the 11.00 compiler do not understand -b yet
10024 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10026$as_echo_n "checking if $CC understands -b... " >&6; }
10027if test "${lt_cv_prog_compiler__b+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029else
10030 lt_cv_prog_compiler__b=no
10031 save_LDFLAGS="$LDFLAGS"
10032 LDFLAGS="$LDFLAGS -b"
10033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10035 # The linker can only warn and ignore the option if not recognized
10036 # So say no if there are warnings
10037 if test -s conftest.err; then
10038 # Append any errors to the config.log.
10039 cat conftest.err 1>&5
10040 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10042 if diff conftest.exp conftest.er2 >/dev/null; then
10043 lt_cv_prog_compiler__b=yes
10044 fi
10045 else
10046 lt_cv_prog_compiler__b=yes
10047 fi
10048 fi
10049 $RM -r conftest*
10050 LDFLAGS="$save_LDFLAGS"
10051
10052fi
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10054$as_echo "$lt_cv_prog_compiler__b" >&6; }
10055
10056if test x"$lt_cv_prog_compiler__b" = xyes; then
10057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058else
10059 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060fi
10061
ce2cded5
L
10062 ;;
10063 esac
10064 fi
10065 if test "$with_gnu_ld" = no; then
10066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10067 hardcode_libdir_separator=:
d7040cdb 10068
ce2cded5
L
10069 case $host_cpu in
10070 hppa*64*|ia64*)
10071 hardcode_direct=no
10072 hardcode_shlibpath_var=no
10073 ;;
10074 *)
10075 hardcode_direct=yes
10076 hardcode_direct_absolute=yes
10077 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10078
ce2cded5
L
10079 # hardcode_minus_L: Not really in the search PATH,
10080 # but as the default location of the library.
10081 hardcode_minus_L=yes
10082 ;;
10083 esac
10084 fi
10085 ;;
d7040cdb 10086
ce2cded5
L
10087 irix5* | irix6* | nonstopux*)
10088 if test "$GCC" = yes; then
3725885a 10089 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
10090 # Try to use the -exported_symbol ld option, if it does not
10091 # work, assume that -exports_file does not work either and
10092 # implicitly export all symbols.
10093 save_LDFLAGS="$LDFLAGS"
10094 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096/* end confdefs.h. */
ce2cded5
L
10097int foo(void) {}
10098_ACEOF
81ecdfbb 10099if ac_fn_c_try_link "$LINENO"; then :
3725885a 10100 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 10101
ce2cded5 10102fi
81ecdfbb
RW
10103rm -f core conftest.err conftest.$ac_objext \
10104 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10105 LDFLAGS="$save_LDFLAGS"
10106 else
3725885a
RW
10107 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'
10108 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
10109 fi
10110 archive_cmds_need_lc='no'
10111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112 hardcode_libdir_separator=:
10113 inherit_rpath=yes
10114 link_all_deplibs=yes
10115 ;;
d7040cdb 10116
ce2cded5
L
10117 netbsd*)
10118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10120 else
10121 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10122 fi
10123 hardcode_libdir_flag_spec='-R$libdir'
10124 hardcode_direct=yes
10125 hardcode_shlibpath_var=no
10126 ;;
d7040cdb 10127
ce2cded5
L
10128 newsos6)
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_direct=yes
10131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132 hardcode_libdir_separator=:
10133 hardcode_shlibpath_var=no
10134 ;;
d7040cdb 10135
ce2cded5
L
10136 *nto* | *qnx*)
10137 ;;
d7040cdb 10138
ce2cded5 10139 openbsd*)
b214d478
SE
10140 if test -f /usr/libexec/ld.so; then
10141 hardcode_direct=yes
10142 hardcode_shlibpath_var=no
10143 hardcode_direct_absolute=yes
10144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10146 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10148 export_dynamic_flag_spec='${wl}-E'
10149 else
10150 case $host_os in
10151 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10153 hardcode_libdir_flag_spec='-R$libdir'
10154 ;;
10155 *)
10156 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10158 ;;
10159 esac
10160 fi
10161 else
10162 ld_shlibs=no
ce2cded5
L
10163 fi
10164 ;;
d7040cdb 10165
ce2cded5
L
10166 os2*)
10167 hardcode_libdir_flag_spec='-L$libdir'
10168 hardcode_minus_L=yes
10169 allow_undefined_flag=unsupported
3725885a 10170 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
10171 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10172 ;;
d7040cdb 10173
ce2cded5
L
10174 osf3*)
10175 if test "$GCC" = yes; then
10176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10177 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
10178 else
10179 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10180 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
10181 fi
10182 archive_cmds_need_lc='no'
10183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10184 hardcode_libdir_separator=:
10185 ;;
d7040cdb 10186
ce2cded5
L
10187 osf4* | osf5*) # as osf3* with the addition of -msym flag
10188 if test "$GCC" = yes; then
10189 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10190 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
10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192 else
10193 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10194 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 10195 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 10196 $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 10197
ce2cded5
L
10198 # Both c and cxx compiler support -rpath directly
10199 hardcode_libdir_flag_spec='-rpath $libdir'
10200 fi
10201 archive_cmds_need_lc='no'
10202 hardcode_libdir_separator=:
10203 ;;
d7040cdb 10204
ce2cded5
L
10205 solaris*)
10206 no_undefined_flag=' -z defs'
10207 if test "$GCC" = yes; then
10208 wlarc='${wl}'
10209 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10211 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10212 else
10213 case `$CC -V 2>&1` in
10214 *"Compilers 5.0"*)
10215 wlarc=''
10216 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10218 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10219 ;;
10220 *)
10221 wlarc='${wl}'
10222 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10223 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10224 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10225 ;;
10226 esac
10227 fi
10228 hardcode_libdir_flag_spec='-R$libdir'
10229 hardcode_shlibpath_var=no
10230 case $host_os in
10231 solaris2.[0-5] | solaris2.[0-5].*) ;;
10232 *)
10233 # The compiler driver will combine and reorder linker options,
10234 # but understands `-z linker_flag'. GCC discards it without `$wl',
10235 # but is careful enough not to reorder.
10236 # Supported since Solaris 2.6 (maybe 2.5.1?)
10237 if test "$GCC" = yes; then
10238 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10239 else
10240 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10241 fi
10242 ;;
10243 esac
10244 link_all_deplibs=yes
10245 ;;
d7040cdb 10246
ce2cded5
L
10247 sunos4*)
10248 if test "x$host_vendor" = xsequent; then
10249 # Use $CC to link under sequent, because it throws in some extra .o
10250 # files that make .init and .fini sections work.
10251 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10252 else
10253 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10254 fi
10255 hardcode_libdir_flag_spec='-L$libdir'
10256 hardcode_direct=yes
10257 hardcode_minus_L=yes
10258 hardcode_shlibpath_var=no
10259 ;;
d7040cdb 10260
ce2cded5
L
10261 sysv4)
10262 case $host_vendor in
10263 sni)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_direct=yes # is this really true???
10266 ;;
10267 siemens)
10268 ## LD is ld it makes a PLAMLIB
10269 ## CC just makes a GrossModule.
10270 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10271 reload_cmds='$CC -r -o $output$reload_objs'
10272 hardcode_direct=no
10273 ;;
10274 motorola)
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10277 ;;
10278 esac
10279 runpath_var='LD_RUN_PATH'
10280 hardcode_shlibpath_var=no
10281 ;;
d7040cdb 10282
ce2cded5
L
10283 sysv4.3*)
10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_shlibpath_var=no
10286 export_dynamic_flag_spec='-Bexport'
10287 ;;
d7040cdb 10288
ce2cded5
L
10289 sysv4*MP*)
10290 if test -d /usr/nec; then
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_shlibpath_var=no
10293 runpath_var=LD_RUN_PATH
10294 hardcode_runpath_var=yes
10295 ld_shlibs=yes
10296 fi
10297 ;;
d7040cdb 10298
ce2cded5
L
10299 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10300 no_undefined_flag='${wl}-z,text'
10301 archive_cmds_need_lc=no
10302 hardcode_shlibpath_var=no
10303 runpath_var='LD_RUN_PATH'
d7040cdb 10304
ce2cded5
L
10305 if test "$GCC" = yes; then
10306 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308 else
10309 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 fi
10312 ;;
d7040cdb 10313
ce2cded5
L
10314 sysv5* | sco3.2v5* | sco5v6*)
10315 # Note: We can NOT use -z defs as we might desire, because we do not
10316 # link with -lc, and that would cause any symbols used from libc to
10317 # always be unresolved, which means just about no library would
10318 # ever link correctly. If we're not using GNU ld we use -z text
10319 # though, which does catch some bad symbols but isn't as heavy-handed
10320 # as -z defs.
10321 no_undefined_flag='${wl}-z,text'
10322 allow_undefined_flag='${wl}-z,nodefs'
10323 archive_cmds_need_lc=no
10324 hardcode_shlibpath_var=no
10325 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10326 hardcode_libdir_separator=':'
10327 link_all_deplibs=yes
10328 export_dynamic_flag_spec='${wl}-Bexport'
10329 runpath_var='LD_RUN_PATH'
d7040cdb 10330
ce2cded5
L
10331 if test "$GCC" = yes; then
10332 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334 else
10335 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 fi
10338 ;;
d7040cdb 10339
ce2cded5
L
10340 uts4*)
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_libdir_flag_spec='-L$libdir'
10343 hardcode_shlibpath_var=no
10344 ;;
d7040cdb 10345
ce2cded5
L
10346 *)
10347 ld_shlibs=no
10348 ;;
10349 esac
d7040cdb 10350
ce2cded5
L
10351 if test x$host_vendor = xsni; then
10352 case $host in
10353 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10354 export_dynamic_flag_spec='${wl}-Blargedynsym'
10355 ;;
10356 esac
10357 fi
10358 fi
d7040cdb 10359
81ecdfbb
RW
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10361$as_echo "$ld_shlibs" >&6; }
ce2cded5 10362test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10363
ce2cded5 10364with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
ce2cded5
L
10380#
10381# Do we need to explicitly link libc?
10382#
10383case "x$archive_cmds_need_lc" in
10384x|xyes)
10385 # Assume -lc should be added
10386 archive_cmds_need_lc=yes
d7040cdb 10387
ce2cded5
L
10388 if test "$enable_shared" = yes && test "$GCC" = yes; then
10389 case $archive_cmds in
10390 *'~'*)
10391 # FIXME: we may have to deal with multi-command sequences.
10392 ;;
10393 '$CC '*)
10394 # Test whether the compiler implicitly links with -lc since on some
10395 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10396 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10398$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10399if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
39144654
RW
10401else
10402 $RM conftest*
10403 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10404
81ecdfbb 10405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10406 (eval $ac_compile) 2>&5
10407 ac_status=$?
81ecdfbb
RW
10408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10409 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10410 soname=conftest
10411 lib=conftest
10412 libobjs=conftest.$ac_objext
10413 deplibs=
10414 wl=$lt_prog_compiler_wl
10415 pic_flag=$lt_prog_compiler_pic
10416 compiler_flags=-v
10417 linker_flags=-v
10418 verstring=
10419 output_objdir=.
10420 libname=conftest
10421 lt_save_allow_undefined_flag=$allow_undefined_flag
10422 allow_undefined_flag=
81ecdfbb 10423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10424 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10425 ac_status=$?
81ecdfbb
RW
10426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10427 test $ac_status = 0; }
39144654
RW
10428 then
10429 lt_cv_archive_cmds_need_lc=no
10430 else
10431 lt_cv_archive_cmds_need_lc=yes
10432 fi
10433 allow_undefined_flag=$lt_save_allow_undefined_flag
10434 else
10435 cat conftest.err 1>&5
10436 fi
10437 $RM conftest*
10438
10439fi
81ecdfbb
RW
10440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10441$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10442 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10443 ;;
10444 esac
10445 fi
10446 ;;
10447esac
d7040cdb
SE
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
d7040cdb 10475
d7040cdb 10476
d7040cdb
SE
10477
10478
10479
10480
10481
10482
d7040cdb 10483
d7040cdb 10484
d7040cdb 10485
d7040cdb 10486
d7040cdb 10487
d7040cdb 10488
d7040cdb 10489
d7040cdb 10490
d7040cdb 10491
d7040cdb 10492
d7040cdb 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
ce2cded5
L
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
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
81ecdfbb
RW
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10606$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10607
10608if test "$GCC" = yes; then
ce2cded5
L
10609 case $host_os in
10610 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10611 *) lt_awk_arg="/^libraries:/" ;;
10612 esac
3725885a
RW
10613 case $host_os in
10614 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10615 *) lt_sed_strip_eq="s,=/,/,g" ;;
10616 esac
10617 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10618 case $lt_search_path_spec in
10619 *\;*)
ce2cded5
L
10620 # if the path contains ";" then we assume it to be the separator
10621 # otherwise default to the standard path separator (i.e. ":") - it is
10622 # assumed that no part of a normal pathname contains ";" but that should
10623 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10624 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10625 ;;
10626 *)
10627 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10628 ;;
10629 esac
ce2cded5
L
10630 # Ok, now we have the path, separated by spaces, we can step through it
10631 # and add multilib dir if necessary.
10632 lt_tmp_lt_search_path_spec=
10633 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10634 for lt_sys_path in $lt_search_path_spec; do
10635 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10636 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10637 else
10638 test -d "$lt_sys_path" && \
10639 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10640 fi
10641 done
3725885a 10642 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10643BEGIN {RS=" "; FS="/|\n";} {
10644 lt_foo="";
10645 lt_count=0;
10646 for (lt_i = NF; lt_i > 0; lt_i--) {
10647 if ($lt_i != "" && $lt_i != ".") {
10648 if ($lt_i == "..") {
10649 lt_count++;
10650 } else {
10651 if (lt_count == 0) {
10652 lt_foo="/" $lt_i lt_foo;
10653 } else {
10654 lt_count--;
10655 }
10656 }
10657 }
10658 }
10659 if (lt_foo != "") { lt_freq[lt_foo]++; }
10660 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10661}'`
3725885a
RW
10662 # AWK program above erroneously prepends '/' to C:/dos/paths
10663 # for these hosts.
10664 case $host_os in
10665 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10666 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10667 esac
10668 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10669else
ce2cded5
L
10670 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10671fi
10672library_names_spec=
10673libname_spec='lib$name'
10674soname_spec=
10675shrext_cmds=".so"
10676postinstall_cmds=
10677postuninstall_cmds=
10678finish_cmds=
10679finish_eval=
10680shlibpath_var=
10681shlibpath_overrides_runpath=unknown
10682version_type=none
10683dynamic_linker="$host_os ld.so"
10684sys_lib_dlsearch_path_spec="/lib /usr/lib"
10685need_lib_prefix=unknown
10686hardcode_into_libs=no
10687
10688# when you set need_version to no, make sure it does not cause -set_version
10689# flags to be left without arguments
10690need_version=unknown
10691
10692case $host_os in
10693aix3*)
10694 version_type=linux
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10696 shlibpath_var=LIBPATH
10697
10698 # AIX 3 has no versioning support, so we append a major version to the name.
10699 soname_spec='${libname}${release}${shared_ext}$major'
10700 ;;
10701
50e7d84b 10702aix[4-9]*)
ce2cded5
L
10703 version_type=linux
10704 need_lib_prefix=no
10705 need_version=no
10706 hardcode_into_libs=yes
10707 if test "$host_cpu" = ia64; then
10708 # AIX 5 supports IA64
10709 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10710 shlibpath_var=LD_LIBRARY_PATH
10711 else
10712 # With GCC up to 2.95.x, collect2 would create an import file
10713 # for dependence libraries. The import file would start with
10714 # the line `#! .'. This would cause the generated library to
10715 # depend on `.', always an invalid library. This was fixed in
10716 # development snapshots of GCC prior to 3.0.
10717 case $host_os in
10718 aix4 | aix4.[01] | aix4.[01].*)
10719 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10720 echo ' yes '
10721 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10722 :
10723 else
10724 can_build_shared=no
10725 fi
10726 ;;
10727 esac
10728 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10729 # soname into executable. Probably we can add versioning support to
10730 # collect2, so additional links can be useful in future.
10731 if test "$aix_use_runtimelinking" = yes; then
10732 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10733 # instead of lib<name>.a to let people know that these are not
10734 # typical AIX shared libraries.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 else
10737 # We preserve .a as extension for shared libraries through AIX4.2
10738 # and later when we are not doing run time linking.
10739 library_names_spec='${libname}${release}.a $libname.a'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 fi
10742 shlibpath_var=LIBPATH
10743 fi
10744 ;;
10745
10746amigaos*)
b214d478
SE
10747 case $host_cpu in
10748 powerpc)
10749 # Since July 2007 AmigaOS4 officially supports .so libraries.
10750 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10752 ;;
10753 m68k)
ce2cded5
L
10754 library_names_spec='$libname.ixlibrary $libname.a'
10755 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10756 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
10757 ;;
10758 esac
ce2cded5
L
10759 ;;
10760
10761beos*)
10762 library_names_spec='${libname}${shared_ext}'
10763 dynamic_linker="$host_os ld.so"
10764 shlibpath_var=LIBRARY_PATH
10765 ;;
10766
10767bsdi[45]*)
10768 version_type=linux
10769 need_version=no
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10773 shlibpath_var=LD_LIBRARY_PATH
10774 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10775 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10776 # the default ld.so.conf also contains /usr/contrib/lib and
10777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10778 # libtool to hard-code these into programs
10779 ;;
10780
b214d478 10781cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10782 version_type=windows
10783 shrext_cmds=".dll"
10784 need_version=no
10785 need_lib_prefix=no
10786
b214d478
SE
10787 case $GCC,$host_os in
10788 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10789 library_names_spec='$libname.dll.a'
10790 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10791 postinstall_cmds='base_file=`basename \${file}`~
10792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10793 dldir=$destdir/`dirname \$dlpath`~
10794 test -d \$dldir || mkdir -p \$dldir~
10795 $install_prog $dir/$dlname \$dldir/$dlname~
10796 chmod a+x \$dldir/$dlname~
10797 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10798 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10799 fi'
10800 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10801 dlpath=$dir/\$dldll~
10802 $RM \$dlpath'
10803 shlibpath_overrides_runpath=yes
10804
10805 case $host_os in
10806 cygwin*)
10807 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10808 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10809
10810 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10811 ;;
b214d478 10812 mingw* | cegcc*)
ce2cded5
L
10813 # MinGW DLLs use traditional 'lib' prefix
10814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10815 ;;
10816 pw32*)
10817 # pw32 DLLs use 'pw' prefix rather than 'lib'
10818 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10819 ;;
10820 esac
10821 ;;
10822
10823 *)
10824 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10825 ;;
10826 esac
10827 dynamic_linker='Win32 ld.exe'
10828 # FIXME: first we should search . and the directory the executable is in
10829 shlibpath_var=PATH
10830 ;;
10831
10832darwin* | rhapsody*)
10833 dynamic_linker="$host_os dyld"
10834 version_type=darwin
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10838 soname_spec='${libname}${release}${major}$shared_ext'
10839 shlibpath_overrides_runpath=yes
10840 shlibpath_var=DYLD_LIBRARY_PATH
10841 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10842
10843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10845 ;;
10846
10847dgux*)
10848 version_type=linux
10849 need_lib_prefix=no
10850 need_version=no
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 ;;
10855
ce2cded5
L
10856freebsd* | dragonfly*)
10857 # DragonFly does not have aout. When/if they implement a new
10858 # versioning mechanism, adjust this.
10859 if test -x /usr/bin/objformat; then
10860 objformat=`/usr/bin/objformat`
10861 else
10862 case $host_os in
6d2920c8 10863 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10864 *) objformat=elf ;;
10865 esac
10866 fi
10867 version_type=freebsd-$objformat
10868 case $version_type in
10869 freebsd-elf*)
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10871 need_version=no
10872 need_lib_prefix=no
10873 ;;
10874 freebsd-*)
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10876 need_version=yes
10877 ;;
10878 esac
10879 shlibpath_var=LD_LIBRARY_PATH
10880 case $host_os in
6d2920c8 10881 freebsd2.*)
ce2cded5
L
10882 shlibpath_overrides_runpath=yes
10883 ;;
10884 freebsd3.[01]* | freebsdelf3.[01]*)
10885 shlibpath_overrides_runpath=yes
10886 hardcode_into_libs=yes
10887 ;;
10888 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10889 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10892 ;;
10893 *) # from 4.6 on, and DragonFly
10894 shlibpath_overrides_runpath=yes
10895 hardcode_into_libs=yes
10896 ;;
10897 esac
10898 ;;
10899
10900gnu*)
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 hardcode_into_libs=yes
10908 ;;
10909
3725885a
RW
10910haiku*)
10911 version_type=linux
10912 need_lib_prefix=no
10913 need_version=no
10914 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
10918 shlibpath_overrides_runpath=yes
10919 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10920 hardcode_into_libs=yes
10921 ;;
10922
ce2cded5
L
10923hpux9* | hpux10* | hpux11*)
10924 # Give a soname corresponding to the major version so that dld.sl refuses to
10925 # link against other versions.
10926 version_type=sunos
10927 need_lib_prefix=no
10928 need_version=no
10929 case $host_cpu in
10930 ia64*)
10931 shrext_cmds='.so'
10932 hardcode_into_libs=yes
10933 dynamic_linker="$host_os dld.so"
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 if test "X$HPUX_IA64_MODE" = X32; then
10939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10940 else
10941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10942 fi
10943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10944 ;;
10945 hppa*64*)
10946 shrext_cmds='.sl'
10947 hardcode_into_libs=yes
10948 dynamic_linker="$host_os dld.sl"
10949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955 ;;
10956 *)
10957 shrext_cmds='.sl'
10958 dynamic_linker="$host_os dld.sl"
10959 shlibpath_var=SHLIB_PATH
10960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 ;;
10964 esac
3725885a 10965 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10966 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10967 # or fails outright, so override atomically:
10968 install_override_mode=555
ce2cded5
L
10969 ;;
10970
10971interix[3-9]*)
10972 version_type=linux
10973 need_lib_prefix=no
10974 need_version=no
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=no
10980 hardcode_into_libs=yes
10981 ;;
10982
10983irix5* | irix6* | nonstopux*)
10984 case $host_os in
10985 nonstopux*) version_type=nonstopux ;;
10986 *)
10987 if test "$lt_cv_prog_gnu_ld" = yes; then
10988 version_type=linux
10989 else
10990 version_type=irix
10991 fi ;;
10992 esac
10993 need_lib_prefix=no
10994 need_version=no
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10997 case $host_os in
10998 irix5* | nonstopux*)
10999 libsuff= shlibsuff=
11000 ;;
11001 *)
11002 case $LD in # libtool.m4 will add one of these switches to LD
11003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11004 libsuff= shlibsuff= libmagic=32-bit;;
11005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11006 libsuff=32 shlibsuff=N32 libmagic=N32;;
11007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11008 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11009 *) libsuff= shlibsuff= libmagic=never-match;;
11010 esac
11011 ;;
11012 esac
11013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11014 shlibpath_overrides_runpath=no
11015 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11016 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11017 hardcode_into_libs=yes
11018 ;;
11019
11020# No shared lib support for Linux oldld, aout, or coff.
11021linux*oldld* | linux*aout* | linux*coff*)
11022 dynamic_linker=no
11023 ;;
11024
11025# This must be Linux ELF.
58e24671 11026linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11027 version_type=linux
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=no
39144654 11035
ce2cded5 11036 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11037 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
39144654
RW
11039else
11040 lt_cv_shlibpath_overrides_runpath=no
11041 save_LDFLAGS=$LDFLAGS
11042 save_libdir=$libdir
11043 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11044 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11046/* end confdefs.h. */
11047
d7040cdb
SE
11048int
11049main ()
11050{
ce2cded5 11051
d7040cdb
SE
11052 ;
11053 return 0;
11054}
11055_ACEOF
81ecdfbb
RW
11056if ac_fn_c_try_link "$LINENO"; then :
11057 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11058 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11059fi
d7040cdb 11060fi
81ecdfbb
RW
11061rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11063 LDFLAGS=$save_LDFLAGS
11064 libdir=$save_libdir
11065
11066fi
11067
11068 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11069
ce2cded5
L
11070 # This implies no fast_install, which is unacceptable.
11071 # Some rework will be needed to allow for fast_install
11072 # before this can be enabled.
11073 hardcode_into_libs=yes
d7040cdb 11074
ce2cded5
L
11075 # Append ld.so.conf contents to the search path
11076 if test -f /etc/ld.so.conf; then
3725885a 11077 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
11078 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11079 fi
d7040cdb 11080
ce2cded5
L
11081 # We used to test for /lib/ld.so.1 and disable shared libraries on
11082 # powerpc, because MkLinux only supported shared libraries with the
11083 # GNU dynamic linker. Since this was broken with cross compilers,
11084 # most powerpc-linux boxes support dynamic linking these days and
11085 # people can always --disable-shared, the test was removed, and we
11086 # assume the GNU/Linux dynamic linker is in use.
11087 dynamic_linker='GNU/Linux ld.so'
11088 ;;
d7040cdb 11089
ce2cded5
L
11090netbsd*)
11091 version_type=sunos
11092 need_lib_prefix=no
11093 need_version=no
11094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097 dynamic_linker='NetBSD (a.out) ld.so'
11098 else
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 dynamic_linker='NetBSD ld.elf_so'
11102 fi
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 ;;
d7040cdb 11107
ce2cded5
L
11108newsos6)
11109 version_type=linux
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11113 ;;
d7040cdb 11114
ce2cded5
L
11115*nto* | *qnx*)
11116 version_type=qnx
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=no
11123 hardcode_into_libs=yes
11124 dynamic_linker='ldqnx.so'
11125 ;;
d7040cdb 11126
ce2cded5
L
11127openbsd*)
11128 version_type=sunos
11129 sys_lib_dlsearch_path_spec="/usr/lib"
11130 need_lib_prefix=no
11131 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11132 case $host_os in
11133 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11134 *) need_version=no ;;
11135 esac
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11140 case $host_os in
11141 openbsd2.[89] | openbsd2.[89].*)
11142 shlibpath_overrides_runpath=no
11143 ;;
11144 *)
11145 shlibpath_overrides_runpath=yes
11146 ;;
11147 esac
11148 else
11149 shlibpath_overrides_runpath=yes
11150 fi
11151 ;;
d7040cdb 11152
ce2cded5
L
11153os2*)
11154 libname_spec='$name'
11155 shrext_cmds=".dll"
11156 need_lib_prefix=no
11157 library_names_spec='$libname${shared_ext} $libname.a'
11158 dynamic_linker='OS/2 ld.exe'
11159 shlibpath_var=LIBPATH
11160 ;;
d7040cdb 11161
ce2cded5
L
11162osf3* | osf4* | osf5*)
11163 version_type=osf
11164 need_lib_prefix=no
11165 need_version=no
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11170 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11171 ;;
d7040cdb 11172
ce2cded5
L
11173rdos*)
11174 dynamic_linker=no
11175 ;;
d7040cdb 11176
ce2cded5
L
11177solaris*)
11178 version_type=linux
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 # ldd complains unless libraries are executable
11187 postinstall_cmds='chmod +x $lib'
11188 ;;
d7040cdb 11189
ce2cded5
L
11190sunos4*)
11191 version_type=sunos
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 if test "$with_gnu_ld" = yes; then
11197 need_lib_prefix=no
11198 fi
11199 need_version=yes
11200 ;;
d7040cdb 11201
ce2cded5
L
11202sysv4 | sysv4.3*)
11203 version_type=linux
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 case $host_vendor in
11208 sni)
11209 shlibpath_overrides_runpath=no
11210 need_lib_prefix=no
11211 runpath_var=LD_RUN_PATH
11212 ;;
11213 siemens)
11214 need_lib_prefix=no
11215 ;;
11216 motorola)
11217 need_lib_prefix=no
11218 need_version=no
11219 shlibpath_overrides_runpath=no
11220 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11221 ;;
11222 esac
11223 ;;
d7040cdb 11224
ce2cded5
L
11225sysv4*MP*)
11226 if test -d /usr/nec ;then
11227 version_type=linux
11228 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11229 soname_spec='$libname${shared_ext}.$major'
11230 shlibpath_var=LD_LIBRARY_PATH
11231 fi
11232 ;;
d7040cdb 11233
ce2cded5
L
11234sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11235 version_type=freebsd-elf
11236 need_lib_prefix=no
11237 need_version=no
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 hardcode_into_libs=yes
11243 if test "$with_gnu_ld" = yes; then
11244 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11245 else
11246 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11247 case $host_os in
11248 sco3.2v5*)
11249 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11250 ;;
11251 esac
11252 fi
11253 sys_lib_dlsearch_path_spec='/usr/lib'
11254 ;;
d7040cdb 11255
ce2cded5
L
11256tpf*)
11257 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11258 version_type=linux
11259 need_lib_prefix=no
11260 need_version=no
b214d478 11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=no
11264 hardcode_into_libs=yes
11265 ;;
d7040cdb 11266
ce2cded5
L
11267uts4*)
11268 version_type=linux
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 soname_spec='${libname}${release}${shared_ext}$major'
11271 shlibpath_var=LD_LIBRARY_PATH
11272 ;;
d7040cdb 11273
ce2cded5
L
11274*)
11275 dynamic_linker=no
11276 ;;
11277esac
81ecdfbb
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11279$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11280test "$dynamic_linker" = no && can_build_shared=no
11281
11282variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11283if test "$GCC" = yes; then
11284 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11285fi
11286
b214d478
SE
11287if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11288 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11289fi
11290if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11291 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11292fi
11293
d7040cdb
SE
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
d7040cdb 11305
d7040cdb 11306
d7040cdb 11307
d7040cdb 11308
d7040cdb
SE
11309
11310
11311
11312
d7040cdb 11313
d7040cdb
SE
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
d7040cdb
SE
11327
11328
11329
11330
d7040cdb
SE
11331
11332
11333
11334
d7040cdb 11335
d7040cdb 11336
d7040cdb 11337
d7040cdb 11338
d7040cdb 11339
d7040cdb 11340
d7040cdb 11341
d7040cdb
SE
11342
11343
11344
11345
11346
d7040cdb 11347
d7040cdb 11348
d7040cdb 11349
d7040cdb 11350
d7040cdb 11351
d7040cdb 11352
d7040cdb
SE
11353
11354
11355
11356
11357
d7040cdb
SE
11358
11359
d7040cdb 11360
d7040cdb 11361
d7040cdb 11362
d7040cdb 11363
ce2cded5
L
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
3725885a
RW
11374
11375
11376
11377
11378
ce2cded5
L
11379
11380
11381
11382
11383
11384
81ecdfbb
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11386$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11387hardcode_action=
11388if test -n "$hardcode_libdir_flag_spec" ||
11389 test -n "$runpath_var" ||
11390 test "X$hardcode_automatic" = "Xyes" ; then
11391
11392 # We can hardcode non-existent directories.
11393 if test "$hardcode_direct" != no &&
11394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11395 # have to relink, otherwise we might link with an installed library
11396 # when we should be linking with a yet-to-be-installed one
11397 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11398 test "$hardcode_minus_L" != no; then
11399 # Linking always hardcodes the temporary library directory.
11400 hardcode_action=relink
11401 else
11402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11403 hardcode_action=immediate
d7040cdb 11404 fi
d7040cdb 11405else
ce2cded5
L
11406 # We cannot hardcode anything, or else we can only hardcode existing
11407 # directories.
11408 hardcode_action=unsupported
d7040cdb 11409fi
81ecdfbb
RW
11410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11411$as_echo "$hardcode_action" >&6; }
d7040cdb 11412
ce2cded5
L
11413if test "$hardcode_action" = relink ||
11414 test "$inherit_rpath" = yes; then
11415 # Fast installation is not supported
11416 enable_fast_install=no
11417elif test "$shlibpath_overrides_runpath" = yes ||
11418 test "$enable_shared" = no; then
11419 # Fast installation is not necessary
11420 enable_fast_install=needless
d7040cdb
SE
11421fi
11422
d7040cdb 11423
d7040cdb 11424
d7040cdb 11425
d7040cdb 11426
d7040cdb 11427
ce2cded5
L
11428 if test "x$enable_dlopen" != xyes; then
11429 enable_dlopen=unknown
11430 enable_dlopen_self=unknown
11431 enable_dlopen_self_static=unknown
d7040cdb 11432else
ce2cded5
L
11433 lt_cv_dlopen=no
11434 lt_cv_dlopen_libs=
d7040cdb 11435
ce2cded5
L
11436 case $host_os in
11437 beos*)
11438 lt_cv_dlopen="load_add_on"
11439 lt_cv_dlopen_libs=
11440 lt_cv_dlopen_self=yes
11441 ;;
d7040cdb 11442
b214d478 11443 mingw* | pw32* | cegcc*)
ce2cded5
L
11444 lt_cv_dlopen="LoadLibrary"
11445 lt_cv_dlopen_libs=
11446 ;;
11447
11448 cygwin*)
11449 lt_cv_dlopen="dlopen"
11450 lt_cv_dlopen_libs=
11451 ;;
11452
11453 darwin*)
11454 # if libdl is installed we need to link against it
81ecdfbb
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11456$as_echo_n "checking for dlopen in -ldl... " >&6; }
11457if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
d7040cdb 11459else
ce2cded5
L
11460 ac_check_lib_save_LIBS=$LIBS
11461LIBS="-ldl $LIBS"
81ecdfbb 11462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11463/* end confdefs.h. */
11464
81ecdfbb
RW
11465/* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
ce2cded5
L
11468#ifdef __cplusplus
11469extern "C"
11470#endif
ce2cded5
L
11471char dlopen ();
11472int
11473main ()
11474{
81ecdfbb 11475return dlopen ();
ce2cded5
L
11476 ;
11477 return 0;
11478}
11479_ACEOF
81ecdfbb 11480if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11481 ac_cv_lib_dl_dlopen=yes
11482else
81ecdfbb 11483 ac_cv_lib_dl_dlopen=no
d7040cdb 11484fi
81ecdfbb
RW
11485rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11487LIBS=$ac_check_lib_save_LIBS
d7040cdb 11488fi
81ecdfbb
RW
11489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11490$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11491if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11493else
d7040cdb 11494
ce2cded5
L
11495 lt_cv_dlopen="dyld"
11496 lt_cv_dlopen_libs=
11497 lt_cv_dlopen_self=yes
11498
d7040cdb 11499fi
ce2cded5
L
11500
11501 ;;
11502
11503 *)
81ecdfbb
RW
11504 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11505if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11506 lt_cv_dlopen="shl_load"
11507else
81ecdfbb
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11509$as_echo_n "checking for shl_load in -ldld... " >&6; }
11510if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
ce2cded5
L
11512else
11513 ac_check_lib_save_LIBS=$LIBS
11514LIBS="-ldld $LIBS"
81ecdfbb 11515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11516/* end confdefs.h. */
d7040cdb 11517
81ecdfbb
RW
11518/* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
ce2cded5
L
11521#ifdef __cplusplus
11522extern "C"
11523#endif
ce2cded5
L
11524char shl_load ();
11525int
11526main ()
11527{
81ecdfbb 11528return shl_load ();
ce2cded5
L
11529 ;
11530 return 0;
11531}
11532_ACEOF
81ecdfbb 11533if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11534 ac_cv_lib_dld_shl_load=yes
11535else
81ecdfbb 11536 ac_cv_lib_dld_shl_load=no
ce2cded5 11537fi
81ecdfbb
RW
11538rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11540LIBS=$ac_check_lib_save_LIBS
11541fi
81ecdfbb
RW
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11543$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11544if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11546else
81ecdfbb
RW
11547 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11548if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11549 lt_cv_dlopen="dlopen"
11550else
81ecdfbb
RW
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11552$as_echo_n "checking for dlopen in -ldl... " >&6; }
11553if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
d7040cdb 11555else
ce2cded5
L
11556 ac_check_lib_save_LIBS=$LIBS
11557LIBS="-ldl $LIBS"
81ecdfbb 11558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11559/* end confdefs.h. */
11560
81ecdfbb
RW
11561/* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
ce2cded5
L
11564#ifdef __cplusplus
11565extern "C"
11566#endif
ce2cded5 11567char dlopen ();
d7040cdb
SE
11568int
11569main ()
11570{
81ecdfbb 11571return dlopen ();
d7040cdb
SE
11572 ;
11573 return 0;
11574}
11575_ACEOF
81ecdfbb 11576if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11577 ac_cv_lib_dl_dlopen=yes
d7040cdb 11578else
81ecdfbb 11579 ac_cv_lib_dl_dlopen=no
d7040cdb 11580fi
81ecdfbb
RW
11581rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11583LIBS=$ac_check_lib_save_LIBS
d7040cdb 11584fi
81ecdfbb
RW
11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11589else
81ecdfbb
RW
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11591$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11592if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11593 $as_echo_n "(cached) " >&6
d7040cdb 11594else
ce2cded5
L
11595 ac_check_lib_save_LIBS=$LIBS
11596LIBS="-lsvld $LIBS"
81ecdfbb 11597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11598/* end confdefs.h. */
d7040cdb 11599
81ecdfbb
RW
11600/* Override any GCC internal prototype to avoid an error.
11601 Use char because int might match the return type of a GCC
11602 builtin and then its argument prototype would still apply. */
ce2cded5
L
11603#ifdef __cplusplus
11604extern "C"
11605#endif
ce2cded5 11606char dlopen ();
d7040cdb
SE
11607int
11608main ()
11609{
81ecdfbb 11610return dlopen ();
d7040cdb
SE
11611 ;
11612 return 0;
11613}
11614_ACEOF
81ecdfbb 11615if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11616 ac_cv_lib_svld_dlopen=yes
d7040cdb 11617else
81ecdfbb 11618 ac_cv_lib_svld_dlopen=no
d7040cdb 11619fi
81ecdfbb
RW
11620rm -f core conftest.err conftest.$ac_objext \
11621 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11622LIBS=$ac_check_lib_save_LIBS
d7040cdb 11623fi
81ecdfbb
RW
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11625$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11626if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11627 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11628else
81ecdfbb
RW
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11630$as_echo_n "checking for dld_link in -ldld... " >&6; }
11631if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
ce2cded5
L
11633else
11634 ac_check_lib_save_LIBS=$LIBS
11635LIBS="-ldld $LIBS"
81ecdfbb 11636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11637/* end confdefs.h. */
11638
81ecdfbb
RW
11639/* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
ce2cded5
L
11642#ifdef __cplusplus
11643extern "C"
11644#endif
ce2cded5 11645char dld_link ();
d7040cdb
SE
11646int
11647main ()
11648{
81ecdfbb 11649return dld_link ();
d7040cdb
SE
11650 ;
11651 return 0;
11652}
11653_ACEOF
81ecdfbb 11654if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11655 ac_cv_lib_dld_dld_link=yes
d7040cdb 11656else
81ecdfbb 11657 ac_cv_lib_dld_dld_link=no
d7040cdb 11658fi
81ecdfbb
RW
11659rm -f core conftest.err conftest.$ac_objext \
11660 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11661LIBS=$ac_check_lib_save_LIBS
11662fi
81ecdfbb
RW
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11664$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11665if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11667fi
11668
11669
11670fi
11671
11672
11673fi
11674
11675
11676fi
11677
11678
11679fi
11680
11681
11682fi
11683
11684 ;;
11685 esac
11686
11687 if test "x$lt_cv_dlopen" != xno; then
11688 enable_dlopen=yes
11689 else
11690 enable_dlopen=no
11691 fi
11692
11693 case $lt_cv_dlopen in
11694 dlopen)
11695 save_CPPFLAGS="$CPPFLAGS"
11696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11697
11698 save_LDFLAGS="$LDFLAGS"
11699 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11700
11701 save_LIBS="$LIBS"
11702 LIBS="$lt_cv_dlopen_libs $LIBS"
11703
81ecdfbb
RW
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11705$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11706if test "${lt_cv_dlopen_self+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
ce2cded5
L
11708else
11709 if test "$cross_compiling" = yes; then :
11710 lt_cv_dlopen_self=cross
11711else
11712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11713 lt_status=$lt_dlunknown
11714 cat > conftest.$ac_ext <<_LT_EOF
b879806f 11715#line 11715 "configure"
ce2cded5
L
11716#include "confdefs.h"
11717
11718#if HAVE_DLFCN_H
11719#include <dlfcn.h>
11720#endif
11721
11722#include <stdio.h>
11723
11724#ifdef RTLD_GLOBAL
11725# define LT_DLGLOBAL RTLD_GLOBAL
11726#else
11727# ifdef DL_GLOBAL
11728# define LT_DLGLOBAL DL_GLOBAL
11729# else
11730# define LT_DLGLOBAL 0
11731# endif
11732#endif
11733
11734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11735 find out it does not work in some platform. */
11736#ifndef LT_DLLAZY_OR_NOW
11737# ifdef RTLD_LAZY
11738# define LT_DLLAZY_OR_NOW RTLD_LAZY
11739# else
11740# ifdef DL_LAZY
11741# define LT_DLLAZY_OR_NOW DL_LAZY
11742# else
11743# ifdef RTLD_NOW
11744# define LT_DLLAZY_OR_NOW RTLD_NOW
11745# else
11746# ifdef DL_NOW
11747# define LT_DLLAZY_OR_NOW DL_NOW
11748# else
11749# define LT_DLLAZY_OR_NOW 0
11750# endif
11751# endif
11752# endif
11753# endif
11754#endif
11755
3725885a
RW
11756/* When -fvisbility=hidden is used, assume the code has been annotated
11757 correspondingly for the symbols needed. */
11758#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11759void fnord () __attribute__((visibility("default")));
11760#endif
11761
11762void fnord () { int i=42; }
ce2cded5 11763int main ()
d7040cdb 11764{
ce2cded5
L
11765 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11766 int status = $lt_dlunknown;
11767
11768 if (self)
11769 {
11770 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11771 else
11772 {
11773 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11774 else puts (dlerror ());
11775 }
ce2cded5
L
11776 /* dlclose (self); */
11777 }
11778 else
11779 puts (dlerror ());
11780
b214d478 11781 return status;
d7040cdb 11782}
ce2cded5 11783_LT_EOF
81ecdfbb 11784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11785 (eval $ac_link) 2>&5
d7040cdb 11786 ac_status=$?
81ecdfbb
RW
11787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11788 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11789 (./conftest; exit; ) >&5 2>/dev/null
11790 lt_status=$?
11791 case x$lt_status in
11792 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11793 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11794 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11795 esac
11796 else :
11797 # compilation failed
11798 lt_cv_dlopen_self=no
11799 fi
11800fi
11801rm -fr conftest*
11802
11803
11804fi
81ecdfbb
RW
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11806$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11807
11808 if test "x$lt_cv_dlopen_self" = xyes; then
11809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11811$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11812if test "${lt_cv_dlopen_self_static+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
ce2cded5
L
11814else
11815 if test "$cross_compiling" = yes; then :
11816 lt_cv_dlopen_self_static=cross
11817else
11818 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11819 lt_status=$lt_dlunknown
11820 cat > conftest.$ac_ext <<_LT_EOF
b879806f 11821#line 11821 "configure"
ce2cded5
L
11822#include "confdefs.h"
11823
11824#if HAVE_DLFCN_H
11825#include <dlfcn.h>
11826#endif
11827
11828#include <stdio.h>
11829
11830#ifdef RTLD_GLOBAL
11831# define LT_DLGLOBAL RTLD_GLOBAL
11832#else
11833# ifdef DL_GLOBAL
11834# define LT_DLGLOBAL DL_GLOBAL
11835# else
11836# define LT_DLGLOBAL 0
11837# endif
11838#endif
11839
11840/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11841 find out it does not work in some platform. */
11842#ifndef LT_DLLAZY_OR_NOW
11843# ifdef RTLD_LAZY
11844# define LT_DLLAZY_OR_NOW RTLD_LAZY
11845# else
11846# ifdef DL_LAZY
11847# define LT_DLLAZY_OR_NOW DL_LAZY
11848# else
11849# ifdef RTLD_NOW
11850# define LT_DLLAZY_OR_NOW RTLD_NOW
11851# else
11852# ifdef DL_NOW
11853# define LT_DLLAZY_OR_NOW DL_NOW
11854# else
11855# define LT_DLLAZY_OR_NOW 0
11856# endif
11857# endif
11858# endif
11859# endif
11860#endif
11861
3cb62297
L
11862/* When -fvisbility=hidden is used, assume the code has been annotated
11863 correspondingly for the symbols needed. */
11864#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11865void fnord () __attribute__((visibility("default")));
11866#endif
11867
11868void fnord () { int i=42; }
11869int main ()
11870{
11871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11872 int status = $lt_dlunknown;
11873
11874 if (self)
11875 {
11876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11877 else
11878 {
11879 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11880 else puts (dlerror ());
11881 }
11882 /* dlclose (self); */
11883 }
11884 else
11885 puts (dlerror ());
11886
11887 return status;
11888}
11889_LT_EOF
11890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11891 (eval $ac_link) 2>&5
11892 ac_status=$?
11893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11894 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11895 (./conftest; exit; ) >&5 2>/dev/null
11896 lt_status=$?
11897 case x$lt_status in
11898 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11899 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11900 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11901 esac
11902 else :
11903 # compilation failed
11904 lt_cv_dlopen_self_static=no
11905 fi
11906fi
11907rm -fr conftest*
11908
11909
11910fi
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11912$as_echo "$lt_cv_dlopen_self_static" >&6; }
11913 fi
11914
11915 CPPFLAGS="$save_CPPFLAGS"
11916 LDFLAGS="$save_LDFLAGS"
11917 LIBS="$save_LIBS"
11918 ;;
11919 esac
11920
11921 case $lt_cv_dlopen_self in
11922 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11923 *) enable_dlopen_self=unknown ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self_static in
11927 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11928 *) enable_dlopen_self_static=unknown ;;
11929 esac
11930fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948striplib=
11949old_striplib=
11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11951$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11952if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11956$as_echo "yes" >&6; }
11957else
11958# FIXME - insert some real tests, host_os isn't really good enough
11959 case $host_os in
11960 darwin*)
11961 if test -n "$STRIP" ; then
11962 striplib="$STRIP -x"
11963 old_striplib="$STRIP -S"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11965$as_echo "yes" >&6; }
11966 else
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11968$as_echo "no" >&6; }
11969 fi
11970 ;;
11971 *)
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974 ;;
11975 esac
11976fi
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989 # Report which library types will actually be built
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11991$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11993$as_echo "$can_build_shared" >&6; }
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11996$as_echo_n "checking whether to build shared libraries... " >&6; }
11997 test "$can_build_shared" = "no" && enable_shared=no
11998
11999 # On AIX, shared libraries and static libraries use the same namespace, and
12000 # are all built from PIC.
12001 case $host_os in
12002 aix3*)
12003 test "$enable_shared" = yes && enable_static=no
12004 if test -n "$RANLIB"; then
12005 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12006 postinstall_cmds='$RANLIB $lib'
12007 fi
12008 ;;
12009
12010 aix[4-9]*)
12011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12012 test "$enable_shared" = yes && enable_static=no
12013 fi
12014 ;;
12015 esac
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12017$as_echo "$enable_shared" >&6; }
12018
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12020$as_echo_n "checking whether to build static libraries... " >&6; }
12021 # Make sure either enable_shared or enable_static is yes.
12022 test "$enable_shared" = yes || enable_static=yes
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12024$as_echo "$enable_static" >&6; }
12025
12026
12027
12028
12029fi
12030ac_ext=c
12031ac_cpp='$CPP $CPPFLAGS'
12032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034ac_compiler_gnu=$ac_cv_c_compiler_gnu
12035
12036CC="$lt_save_CC"
12037
12038 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12039 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12040 (test "X$CXX" != "Xg++"))) ; then
12041 ac_ext=cpp
12042ac_cpp='$CXXCPP $CPPFLAGS'
12043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12047$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12048if test -z "$CXXCPP"; then
12049 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12051else
12052 # Double quotes because CXXCPP needs to be expanded
12053 for CXXCPP in "$CXX -E" "/lib/cpp"
12054 do
12055 ac_preproc_ok=false
12056for ac_cxx_preproc_warn_flag in '' yes
12057do
12058 # Use a header file that comes with gcc, so configuring glibc
12059 # with a fresh cross-compiler works.
12060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 # <limits.h> exists even on freestanding compilers.
12062 # On the NeXT, cc -E runs the code through the compiler's parser,
12063 # not just through cpp. "Syntax error" is here to catch this case.
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065/* end confdefs.h. */
12066#ifdef __STDC__
12067# include <limits.h>
12068#else
12069# include <assert.h>
12070#endif
12071 Syntax error
12072_ACEOF
12073if ac_fn_cxx_try_cpp "$LINENO"; then :
12074
12075else
12076 # Broken: fails on valid input.
12077continue
12078fi
12079rm -f conftest.err conftest.$ac_ext
12080
12081 # OK, works on sane cases. Now check whether nonexistent headers
12082 # can be detected and how.
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084/* end confdefs.h. */
12085#include <ac_nonexistent.h>
12086_ACEOF
12087if ac_fn_cxx_try_cpp "$LINENO"; then :
12088 # Broken: success on invalid input.
12089continue
12090else
12091 # Passes both tests.
12092ac_preproc_ok=:
12093break
12094fi
12095rm -f conftest.err conftest.$ac_ext
12096
12097done
12098# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12099rm -f conftest.err conftest.$ac_ext
12100if $ac_preproc_ok; then :
12101 break
12102fi
12103
12104 done
12105 ac_cv_prog_CXXCPP=$CXXCPP
12106
12107fi
12108 CXXCPP=$ac_cv_prog_CXXCPP
12109else
12110 ac_cv_prog_CXXCPP=$CXXCPP
12111fi
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12113$as_echo "$CXXCPP" >&6; }
12114ac_preproc_ok=false
12115for ac_cxx_preproc_warn_flag in '' yes
12116do
12117 # Use a header file that comes with gcc, so configuring glibc
12118 # with a fresh cross-compiler works.
12119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12120 # <limits.h> exists even on freestanding compilers.
12121 # On the NeXT, cc -E runs the code through the compiler's parser,
12122 # not just through cpp. "Syntax error" is here to catch this case.
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124/* end confdefs.h. */
12125#ifdef __STDC__
12126# include <limits.h>
12127#else
12128# include <assert.h>
12129#endif
12130 Syntax error
12131_ACEOF
12132if ac_fn_cxx_try_cpp "$LINENO"; then :
12133
12134else
12135 # Broken: fails on valid input.
12136continue
12137fi
12138rm -f conftest.err conftest.$ac_ext
12139
12140 # OK, works on sane cases. Now check whether nonexistent headers
12141 # can be detected and how.
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143/* end confdefs.h. */
12144#include <ac_nonexistent.h>
12145_ACEOF
12146if ac_fn_cxx_try_cpp "$LINENO"; then :
12147 # Broken: success on invalid input.
12148continue
12149else
12150 # Passes both tests.
12151ac_preproc_ok=:
12152break
12153fi
12154rm -f conftest.err conftest.$ac_ext
12155
12156done
12157# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12158rm -f conftest.err conftest.$ac_ext
12159if $ac_preproc_ok; then :
12160
12161else
12162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12164as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12165See \`config.log' for more details." "$LINENO" 5; }
12166fi
12167
12168ac_ext=c
12169ac_cpp='$CPP $CPPFLAGS'
12170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12172ac_compiler_gnu=$ac_cv_c_compiler_gnu
12173
12174else
12175 _lt_caught_CXX_error=yes
12176fi
12177
12178ac_ext=cpp
12179ac_cpp='$CXXCPP $CPPFLAGS'
12180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12183
12184archive_cmds_need_lc_CXX=no
12185allow_undefined_flag_CXX=
12186always_export_symbols_CXX=no
12187archive_expsym_cmds_CXX=
12188compiler_needs_object_CXX=no
12189export_dynamic_flag_spec_CXX=
12190hardcode_direct_CXX=no
12191hardcode_direct_absolute_CXX=no
12192hardcode_libdir_flag_spec_CXX=
12193hardcode_libdir_flag_spec_ld_CXX=
12194hardcode_libdir_separator_CXX=
12195hardcode_minus_L_CXX=no
12196hardcode_shlibpath_var_CXX=unsupported
12197hardcode_automatic_CXX=no
12198inherit_rpath_CXX=no
12199module_cmds_CXX=
12200module_expsym_cmds_CXX=
12201link_all_deplibs_CXX=unknown
12202old_archive_cmds_CXX=$old_archive_cmds
12203reload_flag_CXX=$reload_flag
12204reload_cmds_CXX=$reload_cmds
12205no_undefined_flag_CXX=
12206whole_archive_flag_spec_CXX=
12207enable_shared_with_static_runtimes_CXX=no
12208
12209# Source file extension for C++ test sources.
12210ac_ext=cpp
12211
12212# Object file extension for compiled C++ test sources.
12213objext=o
12214objext_CXX=$objext
12215
12216# No sense in running all these tests if we already determined that
12217# the CXX compiler isn't working. Some variables (like enable_shared)
12218# are currently assumed to apply to all compilers on this platform,
12219# and will be corrupted by setting them based on a non-working compiler.
12220if test "$_lt_caught_CXX_error" != yes; then
12221 # Code to be used in simple compile tests
12222 lt_simple_compile_test_code="int some_variable = 0;"
12223
12224 # Code to be used in simple link tests
12225 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12226
12227 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12228
12229
12230
12231
12232
12233
12234# If no C compiler was specified, use CC.
12235LTCC=${LTCC-"$CC"}
12236
12237# If no C compiler flags were specified, use CFLAGS.
12238LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12239
12240# Allow CC to be a program name with arguments.
12241compiler=$CC
12242
12243
12244 # save warnings/boilerplate of simple test code
12245 ac_outfile=conftest.$ac_objext
12246echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12247eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12248_lt_compiler_boilerplate=`cat conftest.err`
12249$RM conftest*
12250
12251 ac_outfile=conftest.$ac_objext
12252echo "$lt_simple_link_test_code" >conftest.$ac_ext
12253eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12254_lt_linker_boilerplate=`cat conftest.err`
12255$RM -r conftest*
12256
12257
12258 # Allow CC to be a program name with arguments.
12259 lt_save_CC=$CC
12260 lt_save_LD=$LD
12261 lt_save_GCC=$GCC
12262 GCC=$GXX
12263 lt_save_with_gnu_ld=$with_gnu_ld
12264 lt_save_path_LD=$lt_cv_path_LD
12265 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12266 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12267 else
12268 $as_unset lt_cv_prog_gnu_ld
12269 fi
12270 if test -n "${lt_cv_path_LDCXX+set}"; then
12271 lt_cv_path_LD=$lt_cv_path_LDCXX
12272 else
12273 $as_unset lt_cv_path_LD
12274 fi
12275 test -z "${LDCXX+set}" || LD=$LDCXX
12276 CC=${CXX-"c++"}
12277 compiler=$CC
12278 compiler_CXX=$CC
12279 for cc_temp in $compiler""; do
12280 case $cc_temp in
12281 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12282 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12283 \-*) ;;
12284 *) break;;
12285 esac
12286done
12287cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12288
12289
12290 if test -n "$compiler"; then
12291 # We don't want -fno-exception when compiling C++ code, so set the
12292 # no_builtin_flag separately
12293 if test "$GXX" = yes; then
12294 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12295 else
12296 lt_prog_compiler_no_builtin_flag_CXX=
12297 fi
12298
12299 if test "$GXX" = yes; then
12300 # Set up default GNU C++ configuration
12301
12302
12303
12304# Check whether --with-gnu-ld was given.
12305if test "${with_gnu_ld+set}" = set; then :
12306 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12307else
12308 with_gnu_ld=no
12309fi
12310
12311ac_prog=ld
12312if test "$GCC" = yes; then
12313 # Check if gcc -print-prog-name=ld gives a path.
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12315$as_echo_n "checking for ld used by $CC... " >&6; }
12316 case $host in
12317 *-*-mingw*)
12318 # gcc leaves a trailing carriage return which upsets mingw
12319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12320 *)
12321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12322 esac
12323 case $ac_prog in
12324 # Accept absolute paths.
12325 [\\/]* | ?:[\\/]*)
12326 re_direlt='/[^/][^/]*/\.\./'
12327 # Canonicalize the pathname of ld
12328 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12329 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12330 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12331 done
12332 test -z "$LD" && LD="$ac_prog"
12333 ;;
12334 "")
12335 # If it fails, then pretend we aren't using GCC.
12336 ac_prog=ld
12337 ;;
12338 *)
12339 # If it is relative, then search for the first ld in PATH.
12340 with_gnu_ld=unknown
12341 ;;
12342 esac
12343elif test "$with_gnu_ld" = yes; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12345$as_echo_n "checking for GNU ld... " >&6; }
12346else
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12348$as_echo_n "checking for non-GNU ld... " >&6; }
12349fi
12350if test "${lt_cv_path_LD+set}" = set; then :
12351 $as_echo_n "(cached) " >&6
12352else
12353 if test -z "$LD"; then
12354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12355 for ac_dir in $PATH; do
12356 IFS="$lt_save_ifs"
12357 test -z "$ac_dir" && ac_dir=.
12358 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12359 lt_cv_path_LD="$ac_dir/$ac_prog"
12360 # Check to see if the program is GNU ld. I'd rather use --version,
12361 # but apparently some variants of GNU ld only accept -v.
12362 # Break only if it was the GNU/non-GNU ld that we prefer.
12363 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12364 *GNU* | *'with BFD'*)
12365 test "$with_gnu_ld" != no && break
12366 ;;
12367 *)
12368 test "$with_gnu_ld" != yes && break
12369 ;;
12370 esac
12371 fi
12372 done
12373 IFS="$lt_save_ifs"
12374else
12375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12376fi
12377fi
12378
12379LD="$lt_cv_path_LD"
12380if test -n "$LD"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12382$as_echo "$LD" >&6; }
12383else
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385$as_echo "no" >&6; }
12386fi
12387test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12389$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12390if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392else
12393 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12394case `$LD -v 2>&1 </dev/null` in
12395*GNU* | *'with BFD'*)
12396 lt_cv_prog_gnu_ld=yes
12397 ;;
12398*)
12399 lt_cv_prog_gnu_ld=no
12400 ;;
12401esac
12402fi
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12404$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12405with_gnu_ld=$lt_cv_prog_gnu_ld
12406
12407
12408
12409
12410
12411
12412
12413 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12414 # archiving commands below assume that GNU ld is being used.
12415 if test "$with_gnu_ld" = yes; then
6e733cce
L
12416 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417 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
12418
12419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12420 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12421
12422 # If archive_cmds runs LD, not CC, wlarc should be empty
12423 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12424 # investigate it a little bit more. (MM)
12425 wlarc='${wl}'
12426
12427 # ancient GNU ld didn't support --whole-archive et. al.
12428 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12429 $GREP 'no-whole-archive' > /dev/null; then
12430 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12431 else
12432 whole_archive_flag_spec_CXX=
12433 fi
12434 else
12435 with_gnu_ld=no
12436 wlarc=
12437
12438 # A generic and very simple default shared library creation
12439 # command for GNU C++ for the case where it uses the native
12440 # linker, instead of GNU ld. If possible, this setting should
12441 # overridden to take advantage of the native linker features on
12442 # the platform it is being used on.
12443 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12444 fi
12445
12446 # Commands to make compiler produce verbose output that lists
12447 # what "hidden" libraries, object files and flags are used when
12448 # linking a shared library.
12449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12450
12451 else
12452 GXX=no
12453 with_gnu_ld=no
12454 wlarc=
12455 fi
12456
12457 # PORTME: fill in a description of your system's C++ link characteristics
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12459$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12460 ld_shlibs_CXX=yes
12461 case $host_os in
12462 aix3*)
12463 # FIXME: insert proper C++ library support
12464 ld_shlibs_CXX=no
12465 ;;
12466 aix[4-9]*)
12467 if test "$host_cpu" = ia64; then
12468 # On IA64, the linker does run time linking by default, so we don't
12469 # have to do anything special.
12470 aix_use_runtimelinking=no
12471 exp_sym_flag='-Bexport'
12472 no_entry_flag=""
12473 else
12474 aix_use_runtimelinking=no
12475
12476 # Test if we are trying to use run time linking or normal
12477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12478 # need to do runtime linking.
12479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12480 for ld_flag in $LDFLAGS; do
12481 case $ld_flag in
12482 *-brtl*)
12483 aix_use_runtimelinking=yes
12484 break
12485 ;;
12486 esac
12487 done
12488 ;;
12489 esac
12490
12491 exp_sym_flag='-bexport'
12492 no_entry_flag='-bnoentry'
12493 fi
12494
12495 # When large executables or shared objects are built, AIX ld can
12496 # have problems creating the table of contents. If linking a library
12497 # or program results in "error TOC overflow" add -mminimal-toc to
12498 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12499 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12500
12501 archive_cmds_CXX=''
12502 hardcode_direct_CXX=yes
12503 hardcode_direct_absolute_CXX=yes
12504 hardcode_libdir_separator_CXX=':'
12505 link_all_deplibs_CXX=yes
12506 file_list_spec_CXX='${wl}-f,'
12507
12508 if test "$GXX" = yes; then
12509 case $host_os in aix4.[012]|aix4.[012].*)
12510 # We only want to do this on AIX 4.2 and lower, the check
12511 # below for broken collect2 doesn't work under 4.3+
12512 collect2name=`${CC} -print-prog-name=collect2`
12513 if test -f "$collect2name" &&
12514 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12515 then
12516 # We have reworked collect2
12517 :
12518 else
12519 # We have old collect2
12520 hardcode_direct_CXX=unsupported
12521 # It fails to find uninstalled libraries when the uninstalled
12522 # path is not listed in the libpath. Setting hardcode_minus_L
12523 # to unsupported forces relinking
12524 hardcode_minus_L_CXX=yes
12525 hardcode_libdir_flag_spec_CXX='-L$libdir'
12526 hardcode_libdir_separator_CXX=
12527 fi
12528 esac
12529 shared_flag='-shared'
12530 if test "$aix_use_runtimelinking" = yes; then
12531 shared_flag="$shared_flag "'${wl}-G'
12532 fi
12533 else
12534 # not using gcc
12535 if test "$host_cpu" = ia64; then
12536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12537 # chokes on -Wl,-G. The following line is correct:
12538 shared_flag='-G'
12539 else
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag='${wl}-G'
12542 else
12543 shared_flag='${wl}-bM:SRE'
12544 fi
12545 fi
12546 fi
12547
12548 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12549 # It seems that -bexpall does not export symbols beginning with
12550 # underscore (_), so it is better to generate a list of symbols to
12551 # export.
12552 always_export_symbols_CXX=yes
12553 if test "$aix_use_runtimelinking" = yes; then
12554 # Warning - without using the other runtime loading flags (-brtl),
12555 # -berok will link without error, but may produce a broken library.
12556 allow_undefined_flag_CXX='-berok'
12557 # Determine the default libpath from the value encoded in an empty
12558 # executable.
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560/* end confdefs.h. */
12561
12562int
12563main ()
12564{
12565
12566 ;
12567 return 0;
12568}
12569_ACEOF
12570if ac_fn_cxx_try_link "$LINENO"; then :
12571
12572lt_aix_libpath_sed='
12573 /Import File Strings/,/^$/ {
12574 /^0/ {
12575 s/^0 *\(.*\)$/\1/
12576 p
12577 }
12578 }'
12579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12580# Check for a 64-bit object if we didn't find anything.
12581if test -z "$aix_libpath"; then
12582 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583fi
12584fi
12585rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12588
12589 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12590
12591 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"
12592 else
12593 if test "$host_cpu" = ia64; then
12594 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12595 allow_undefined_flag_CXX="-z nodefs"
12596 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"
12597 else
12598 # Determine the default libpath from the value encoded in an
12599 # empty executable.
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601/* end confdefs.h. */
12602
12603int
12604main ()
12605{
12606
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611if ac_fn_cxx_try_link "$LINENO"; then :
12612
12613lt_aix_libpath_sed='
12614 /Import File Strings/,/^$/ {
12615 /^0/ {
12616 s/^0 *\(.*\)$/\1/
12617 p
12618 }
12619 }'
12620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12621# Check for a 64-bit object if we didn't find anything.
12622if test -z "$aix_libpath"; then
12623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624fi
12625fi
12626rm -f core conftest.err conftest.$ac_objext \
12627 conftest$ac_exeext conftest.$ac_ext
12628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12629
12630 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12631 # Warning - without using the other run time loading flags,
12632 # -berok will link without error, but may produce a broken library.
12633 no_undefined_flag_CXX=' ${wl}-bernotok'
12634 allow_undefined_flag_CXX=' ${wl}-berok'
12635 if test "$with_gnu_ld" = yes; then
12636 # We only use this code for GNU lds that support --whole-archive.
12637 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12638 else
12639 # Exported symbols can be pulled into shared objects from archives
12640 whole_archive_flag_spec_CXX='$convenience'
12641 fi
12642 archive_cmds_need_lc_CXX=yes
12643 # This is similar to how AIX traditionally builds its shared
12644 # libraries.
12645 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'
12646 fi
12647 fi
12648 ;;
12649
12650 beos*)
12651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12652 allow_undefined_flag_CXX=unsupported
12653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12654 # support --undefined. This deserves some investigation. FIXME
12655 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12656 else
12657 ld_shlibs_CXX=no
12658 fi
12659 ;;
12660
12661 chorus*)
12662 case $cc_basename in
12663 *)
12664 # FIXME: insert proper C++ library support
12665 ld_shlibs_CXX=no
12666 ;;
12667 esac
12668 ;;
12669
12670 cygwin* | mingw* | pw32* | cegcc*)
12671 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12672 # as there is no search path for DLLs.
12673 hardcode_libdir_flag_spec_CXX='-L$libdir'
12674 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12675 allow_undefined_flag_CXX=unsupported
12676 always_export_symbols_CXX=no
12677 enable_shared_with_static_runtimes_CXX=yes
12678
12679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12680 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'
12681 # If the export-symbols file already is a .def file (1st line
12682 # is EXPORTS), use it as is; otherwise, prepend...
12683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12684 cp $export_symbols $output_objdir/$soname.def;
12685 else
12686 echo EXPORTS > $output_objdir/$soname.def;
12687 cat $export_symbols >> $output_objdir/$soname.def;
12688 fi~
12689 $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'
12690 else
12691 ld_shlibs_CXX=no
12692 fi
12693 ;;
12694 darwin* | rhapsody*)
12695
12696
12697 archive_cmds_need_lc_CXX=no
12698 hardcode_direct_CXX=no
12699 hardcode_automatic_CXX=yes
12700 hardcode_shlibpath_var_CXX=unsupported
12701 if test "$lt_cv_ld_force_load" = "yes"; then
12702 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\"`'
12703 else
12704 whole_archive_flag_spec_CXX=''
12705 fi
12706 link_all_deplibs_CXX=yes
12707 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12708 case $cc_basename in
12709 ifort*) _lt_dar_can_shared=yes ;;
12710 *) _lt_dar_can_shared=$GCC ;;
12711 esac
12712 if test "$_lt_dar_can_shared" = "yes"; then
12713 output_verbose_link_cmd=func_echo_all
12714 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}"
12715 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12716 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}"
12717 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}"
12718 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12719 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}"
12720 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}"
12721 fi
12722
12723 else
12724 ld_shlibs_CXX=no
12725 fi
12726
12727 ;;
12728
12729 dgux*)
12730 case $cc_basename in
12731 ec++*)
12732 # FIXME: insert proper C++ library support
12733 ld_shlibs_CXX=no
12734 ;;
12735 ghcx*)
12736 # Green Hills C++ Compiler
12737 # FIXME: insert proper C++ library support
12738 ld_shlibs_CXX=no
12739 ;;
12740 *)
12741 # FIXME: insert proper C++ library support
12742 ld_shlibs_CXX=no
12743 ;;
12744 esac
12745 ;;
12746
6d2920c8 12747 freebsd2.*)
3cb62297
L
12748 # C++ shared libraries reported to be fairly broken before
12749 # switch to ELF
12750 ld_shlibs_CXX=no
12751 ;;
12752
12753 freebsd-elf*)
12754 archive_cmds_need_lc_CXX=no
12755 ;;
12756
12757 freebsd* | dragonfly*)
12758 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12759 # conventions
12760 ld_shlibs_CXX=yes
12761 ;;
12762
12763 gnu*)
12764 ;;
12765
12766 haiku*)
12767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12768 link_all_deplibs_CXX=yes
12769 ;;
12770
12771 hpux9*)
12772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12773 hardcode_libdir_separator_CXX=:
12774 export_dynamic_flag_spec_CXX='${wl}-E'
12775 hardcode_direct_CXX=yes
12776 hardcode_minus_L_CXX=yes # Not in the search PATH,
12777 # but as the default
12778 # location of the library.
12779
12780 case $cc_basename in
12781 CC*)
12782 # FIXME: insert proper C++ library support
12783 ld_shlibs_CXX=no
12784 ;;
12785 aCC*)
12786 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'
12787 # Commands to make compiler produce verbose output that lists
12788 # what "hidden" libraries, object files and flags are used when
12789 # linking a shared library.
12790 #
12791 # There doesn't appear to be a way to prevent this compiler from
12792 # explicitly linking system object files so we need to strip them
12793 # from the output so that they don't get included in the library
12794 # dependencies.
12795 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"'
12796 ;;
12797 *)
12798 if test "$GXX" = yes; then
12799 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'
12800 else
12801 # FIXME: insert proper C++ library support
12802 ld_shlibs_CXX=no
12803 fi
12804 ;;
12805 esac
12806 ;;
12807
12808 hpux10*|hpux11*)
12809 if test $with_gnu_ld = no; then
12810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12811 hardcode_libdir_separator_CXX=:
12812
12813 case $host_cpu in
12814 hppa*64*|ia64*)
12815 ;;
12816 *)
12817 export_dynamic_flag_spec_CXX='${wl}-E'
12818 ;;
12819 esac
12820 fi
12821 case $host_cpu in
12822 hppa*64*|ia64*)
12823 hardcode_direct_CXX=no
12824 hardcode_shlibpath_var_CXX=no
12825 ;;
12826 *)
12827 hardcode_direct_CXX=yes
12828 hardcode_direct_absolute_CXX=yes
12829 hardcode_minus_L_CXX=yes # Not in the search PATH,
12830 # but as the default
12831 # location of the library.
12832 ;;
12833 esac
12834
12835 case $cc_basename in
12836 CC*)
12837 # FIXME: insert proper C++ library support
12838 ld_shlibs_CXX=no
12839 ;;
12840 aCC*)
12841 case $host_cpu in
12842 hppa*64*)
12843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844 ;;
12845 ia64*)
12846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 ;;
12848 *)
12849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12850 ;;
12851 esac
12852 # Commands to make compiler produce verbose output that lists
12853 # what "hidden" libraries, object files and flags are used when
12854 # linking a shared library.
12855 #
12856 # There doesn't appear to be a way to prevent this compiler from
12857 # explicitly linking system object files so we need to strip them
12858 # from the output so that they don't get included in the library
12859 # dependencies.
12860 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"'
12861 ;;
12862 *)
12863 if test "$GXX" = yes; then
12864 if test $with_gnu_ld = no; then
12865 case $host_cpu in
12866 hppa*64*)
12867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12868 ;;
12869 ia64*)
12870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12871 ;;
12872 *)
12873 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'
12874 ;;
12875 esac
12876 fi
12877 else
12878 # FIXME: insert proper C++ library support
12879 ld_shlibs_CXX=no
12880 fi
12881 ;;
12882 esac
12883 ;;
12884
12885 interix[3-9]*)
12886 hardcode_direct_CXX=no
12887 hardcode_shlibpath_var_CXX=no
12888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12889 export_dynamic_flag_spec_CXX='${wl}-E'
12890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12891 # Instead, shared libraries are loaded at an image base (0x10000000 by
12892 # default) and relocated if they conflict, which is a slow very memory
12893 # consuming and fragmenting process. To avoid this, we pick a random,
12894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12896 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'
12897 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'
12898 ;;
12899 irix5* | irix6*)
12900 case $cc_basename in
12901 CC*)
12902 # SGI C++
12903 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'
12904
12905 # Archives containing C++ object files must be created using
12906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12907 # necessary to make sure instantiated templates are included
12908 # in the archive.
12909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12910 ;;
12911 *)
12912 if test "$GXX" = yes; then
12913 if test "$with_gnu_ld" = no; then
12914 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'
12915 else
12916 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'
12917 fi
12918 fi
12919 link_all_deplibs_CXX=yes
12920 ;;
12921 esac
12922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12923 hardcode_libdir_separator_CXX=:
12924 inherit_rpath_CXX=yes
12925 ;;
12926
12927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12928 case $cc_basename in
12929 KCC*)
12930 # Kuck and Associates, Inc. (KAI) C++ Compiler
12931
12932 # KCC will only create a shared library if the output file
12933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12934 # to its proper name (with version) after linking.
12935 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'
12936 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'
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12940 #
12941 # There doesn't appear to be a way to prevent this compiler from
12942 # explicitly linking system object files so we need to strip them
12943 # from the output so that they don't get included in the library
12944 # dependencies.
12945 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"'
12946
12947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12949
12950 # Archives containing C++ object files must be created using
12951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12953 ;;
12954 icpc* | ecpc* )
12955 # Intel C++
12956 with_gnu_ld=yes
12957 # version 8.0 and above of icpc choke on multiply defined symbols
12958 # if we add $predep_objects and $postdep_objects, however 7.1 and
12959 # earlier do not add the objects themselves.
12960 case `$CC -V 2>&1` in
12961 *"Version 7."*)
12962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12963 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'
12964 ;;
12965 *) # Version 8.0 or newer
12966 tmp_idyn=
12967 case $host_cpu in
12968 ia64*) tmp_idyn=' -i_dynamic';;
12969 esac
12970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 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'
12972 ;;
12973 esac
12974 archive_cmds_need_lc_CXX=no
12975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12978 ;;
12979 pgCC* | pgcpp*)
12980 # Portland Group C++ compiler
12981 case `$CC -V` in
12982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12983 prelink_cmds_CXX='tpldir=Template.dir~
12984 rm -rf $tpldir~
12985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12986 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12987 old_archive_cmds_CXX='tpldir=Template.dir~
12988 rm -rf $tpldir~
12989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12991 $RANLIB $oldlib'
12992 archive_cmds_CXX='tpldir=Template.dir~
12993 rm -rf $tpldir~
12994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12996 archive_expsym_cmds_CXX='tpldir=Template.dir~
12997 rm -rf $tpldir~
12998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12999 $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'
13000 ;;
13001 *) # Version 6 and above use weak symbols
13002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13003 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'
13004 ;;
13005 esac
13006
13007 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13009 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'
13010 ;;
13011 cxx*)
13012 # Compaq C++
13013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13014 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'
13015
13016 runpath_var=LD_RUN_PATH
13017 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13018 hardcode_libdir_separator_CXX=:
13019
13020 # Commands to make compiler produce verbose output that lists
13021 # what "hidden" libraries, object files and flags are used when
13022 # linking a shared library.
13023 #
13024 # There doesn't appear to be a way to prevent this compiler from
13025 # explicitly linking system object files so we need to strip them
13026 # from the output so that they don't get included in the library
13027 # dependencies.
13028 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'
13029 ;;
13030 xl* | mpixl* | bgxl*)
13031 # IBM XL 8.0 on PPC, with GNU ld
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13035 if test "x$supports_anon_versioning" = xyes; then
13036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13038 echo "local: *; };" >> $output_objdir/$libname.ver~
13039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13040 fi
13041 ;;
13042 *)
13043 case `$CC -V 2>&1 | sed 5q` in
13044 *Sun\ C*)
13045 # Sun C++ 5.9
13046 no_undefined_flag_CXX=' -zdefs'
13047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13048 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'
13049 hardcode_libdir_flag_spec_CXX='-R$libdir'
13050 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'
13051 compiler_needs_object_CXX=yes
13052
13053 # Not sure whether something based on
13054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13055 # would be better.
13056 output_verbose_link_cmd='func_echo_all'
13057
13058 # Archives containing C++ object files must be created using
13059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13060 # necessary to make sure instantiated templates are included
13061 # in the archive.
13062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13063 ;;
13064 esac
13065 ;;
13066 esac
13067 ;;
13068
13069 lynxos*)
13070 # FIXME: insert proper C++ library support
13071 ld_shlibs_CXX=no
13072 ;;
13073
13074 m88k*)
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13077 ;;
13078
13079 mvs*)
13080 case $cc_basename in
13081 cxx*)
13082 # FIXME: insert proper C++ library support
13083 ld_shlibs_CXX=no
13084 ;;
13085 *)
13086 # FIXME: insert proper C++ library support
13087 ld_shlibs_CXX=no
13088 ;;
13089 esac
13090 ;;
13091
13092 netbsd*)
13093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13095 wlarc=
13096 hardcode_libdir_flag_spec_CXX='-R$libdir'
13097 hardcode_direct_CXX=yes
13098 hardcode_shlibpath_var_CXX=no
13099 fi
13100 # Workaround some broken pre-1.5 toolchains
13101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13102 ;;
13103
13104 *nto* | *qnx*)
13105 ld_shlibs_CXX=yes
13106 ;;
13107
13108 openbsd2*)
13109 # C++ shared libraries are fairly broken
13110 ld_shlibs_CXX=no
13111 ;;
13112
13113 openbsd*)
13114 if test -f /usr/libexec/ld.so; then
13115 hardcode_direct_CXX=yes
13116 hardcode_shlibpath_var_CXX=no
13117 hardcode_direct_absolute_CXX=yes
13118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13122 export_dynamic_flag_spec_CXX='${wl}-E'
13123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13124 fi
13125 output_verbose_link_cmd=func_echo_all
13126 else
13127 ld_shlibs_CXX=no
13128 fi
13129 ;;
13130
13131 osf3* | osf4* | osf5*)
13132 case $cc_basename in
13133 KCC*)
13134 # Kuck and Associates, Inc. (KAI) C++ Compiler
13135
13136 # KCC will only create a shared library if the output file
13137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13138 # to its proper name (with version) after linking.
13139 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'
13140
13141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13142 hardcode_libdir_separator_CXX=:
13143
13144 # Archives containing C++ object files must be created using
13145 # the KAI C++ compiler.
13146 case $host in
13147 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13148 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13149 esac
13150 ;;
13151 RCC*)
13152 # Rational C++ 2.4.1
13153 # FIXME: insert proper C++ library support
13154 ld_shlibs_CXX=no
13155 ;;
13156 cxx*)
13157 case $host in
13158 osf3*)
13159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13160 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'
13161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13162 ;;
13163 *)
13164 allow_undefined_flag_CXX=' -expect_unresolved \*'
13165 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'
13166 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13167 echo "-hidden">> $lib.exp~
13168 $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~
13169 $RM $lib.exp'
13170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13171 ;;
13172 esac
13173
13174 hardcode_libdir_separator_CXX=:
13175
13176 # Commands to make compiler produce verbose output that lists
13177 # what "hidden" libraries, object files and flags are used when
13178 # linking a shared library.
13179 #
13180 # There doesn't appear to be a way to prevent this compiler from
13181 # explicitly linking system object files so we need to strip them
13182 # from the output so that they don't get included in the library
13183 # dependencies.
13184 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"'
13185 ;;
13186 *)
13187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13189 case $host in
13190 osf3*)
13191 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'
13192 ;;
13193 *)
13194 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'
13195 ;;
13196 esac
13197
13198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13199 hardcode_libdir_separator_CXX=:
13200
13201 # Commands to make compiler produce verbose output that lists
13202 # what "hidden" libraries, object files and flags are used when
13203 # linking a shared library.
13204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13205
13206 else
13207 # FIXME: insert proper C++ library support
13208 ld_shlibs_CXX=no
13209 fi
13210 ;;
13211 esac
13212 ;;
13213
13214 psos*)
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13217 ;;
13218
13219 sunos4*)
13220 case $cc_basename in
13221 CC*)
13222 # Sun C++ 4.x
13223 # FIXME: insert proper C++ library support
13224 ld_shlibs_CXX=no
13225 ;;
13226 lcc*)
13227 # Lucid
13228 # FIXME: insert proper C++ library support
13229 ld_shlibs_CXX=no
13230 ;;
13231 *)
13232 # FIXME: insert proper C++ library support
13233 ld_shlibs_CXX=no
13234 ;;
13235 esac
13236 ;;
13237
13238 solaris*)
13239 case $cc_basename in
13240 CC*)
13241 # Sun C++ 4.2, 5.x and Centerline C++
13242 archive_cmds_need_lc_CXX=yes
13243 no_undefined_flag_CXX=' -zdefs'
13244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13245 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13246 $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'
13247
13248 hardcode_libdir_flag_spec_CXX='-R$libdir'
13249 hardcode_shlibpath_var_CXX=no
13250 case $host_os in
13251 solaris2.[0-5] | solaris2.[0-5].*) ;;
13252 *)
13253 # The compiler driver will combine and reorder linker options,
13254 # but understands `-z linker_flag'.
13255 # Supported since Solaris 2.6 (maybe 2.5.1?)
13256 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13257 ;;
13258 esac
13259 link_all_deplibs_CXX=yes
13260
13261 output_verbose_link_cmd='func_echo_all'
13262
13263 # Archives containing C++ object files must be created using
13264 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13265 # necessary to make sure instantiated templates are included
13266 # in the archive.
13267 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13268 ;;
13269 gcx*)
13270 # Green Hills C++ Compiler
13271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13272
13273 # The C++ compiler must be used to create the archive.
13274 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13275 ;;
13276 *)
13277 # GNU C++ compiler with Solaris linker
13278 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13279 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13280 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13281 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13282 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13283 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13284
13285 # Commands to make compiler produce verbose output that lists
13286 # what "hidden" libraries, object files and flags are used when
13287 # linking a shared library.
13288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13289 else
13290 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13291 # platform.
13292 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13300 fi
13301
13302 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13303 case $host_os in
13304 solaris2.[0-5] | solaris2.[0-5].*) ;;
13305 *)
13306 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13307 ;;
13308 esac
13309 fi
13310 ;;
13311 esac
13312 ;;
13313
13314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13315 no_undefined_flag_CXX='${wl}-z,text'
13316 archive_cmds_need_lc_CXX=no
13317 hardcode_shlibpath_var_CXX=no
13318 runpath_var='LD_RUN_PATH'
13319
13320 case $cc_basename in
13321 CC*)
13322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13324 ;;
13325 *)
13326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 ;;
13329 esac
13330 ;;
13331
13332 sysv5* | sco3.2v5* | sco5v6*)
13333 # Note: We can NOT use -z defs as we might desire, because we do not
13334 # link with -lc, and that would cause any symbols used from libc to
13335 # always be unresolved, which means just about no library would
13336 # ever link correctly. If we're not using GNU ld we use -z text
13337 # though, which does catch some bad symbols but isn't as heavy-handed
13338 # as -z defs.
13339 no_undefined_flag_CXX='${wl}-z,text'
13340 allow_undefined_flag_CXX='${wl}-z,nodefs'
13341 archive_cmds_need_lc_CXX=no
13342 hardcode_shlibpath_var_CXX=no
13343 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13344 hardcode_libdir_separator_CXX=':'
13345 link_all_deplibs_CXX=yes
13346 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13347 runpath_var='LD_RUN_PATH'
13348
13349 case $cc_basename in
13350 CC*)
13351 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13352 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13354 '"$old_archive_cmds_CXX"
13355 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13356 '"$reload_cmds_CXX"
13357 ;;
13358 *)
13359 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361 ;;
13362 esac
13363 ;;
13364
13365 tandem*)
13366 case $cc_basename in
13367 NCC*)
13368 # NonStop-UX NCC 3.20
13369 # FIXME: insert proper C++ library support
13370 ld_shlibs_CXX=no
13371 ;;
13372 *)
13373 # FIXME: insert proper C++ library support
13374 ld_shlibs_CXX=no
13375 ;;
13376 esac
13377 ;;
13378
13379 vxworks*)
13380 # FIXME: insert proper C++ library support
13381 ld_shlibs_CXX=no
13382 ;;
13383
13384 *)
13385 # FIXME: insert proper C++ library support
13386 ld_shlibs_CXX=no
13387 ;;
13388 esac
13389
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13391$as_echo "$ld_shlibs_CXX" >&6; }
13392 test "$ld_shlibs_CXX" = no && can_build_shared=no
13393
13394 GCC_CXX="$GXX"
13395 LD_CXX="$LD"
13396
13397 ## CAVEAT EMPTOR:
13398 ## There is no encapsulation within the following macros, do not change
13399 ## the running order or otherwise move them around unless you know exactly
13400 ## what you are doing...
13401 # Dependencies to place before and after the object being linked:
13402predep_objects_CXX=
13403postdep_objects_CXX=
13404predeps_CXX=
13405postdeps_CXX=
13406compiler_lib_search_path_CXX=
13407
13408cat > conftest.$ac_ext <<_LT_EOF
13409class Foo
13410{
13411public:
13412 Foo (void) { a = 0; }
13413private:
13414 int a;
13415};
13416_LT_EOF
13417
13418if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419 (eval $ac_compile) 2>&5
13420 ac_status=$?
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; }; then
13423 # Parse the compiler output and extract the necessary
13424 # objects, libraries and library flags.
13425
13426 # Sentinel used to keep track of whether or not we are before
13427 # the conftest object file.
13428 pre_test_object_deps_done=no
13429
13430 for p in `eval "$output_verbose_link_cmd"`; do
13431 case $p in
13432
13433 -L* | -R* | -l*)
13434 # Some compilers place space between "-{L,R}" and the path.
13435 # Remove the space.
13436 if test $p = "-L" ||
13437 test $p = "-R"; then
13438 prev=$p
13439 continue
13440 else
13441 prev=
13442 fi
13443
13444 if test "$pre_test_object_deps_done" = no; then
13445 case $p in
13446 -L* | -R*)
13447 # Internal compiler library paths should come after those
13448 # provided the user. The postdeps already come after the
13449 # user supplied libs so there is no need to process them.
13450 if test -z "$compiler_lib_search_path_CXX"; then
13451 compiler_lib_search_path_CXX="${prev}${p}"
13452 else
13453 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13454 fi
13455 ;;
13456 # The "-l" case would never come before the object being
13457 # linked, so don't bother handling this case.
13458 esac
13459 else
13460 if test -z "$postdeps_CXX"; then
13461 postdeps_CXX="${prev}${p}"
13462 else
13463 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13464 fi
13465 fi
13466 ;;
13467
13468 *.$objext)
13469 # This assumes that the test object file only shows up
13470 # once in the compiler output.
13471 if test "$p" = "conftest.$objext"; then
13472 pre_test_object_deps_done=yes
13473 continue
13474 fi
13475
13476 if test "$pre_test_object_deps_done" = no; then
13477 if test -z "$predep_objects_CXX"; then
13478 predep_objects_CXX="$p"
13479 else
13480 predep_objects_CXX="$predep_objects_CXX $p"
13481 fi
13482 else
13483 if test -z "$postdep_objects_CXX"; then
13484 postdep_objects_CXX="$p"
13485 else
13486 postdep_objects_CXX="$postdep_objects_CXX $p"
13487 fi
13488 fi
13489 ;;
13490
13491 *) ;; # Ignore the rest.
13492
13493 esac
13494 done
13495
13496 # Clean up.
13497 rm -f a.out a.exe
13498else
13499 echo "libtool.m4: error: problem compiling CXX test program"
13500fi
13501
13502$RM -f confest.$objext
13503
13504# PORTME: override above test on systems where it is broken
13505case $host_os in
13506interix[3-9]*)
13507 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13508 # hack all around it, let's just trust "g++" to DTRT.
13509 predep_objects_CXX=
13510 postdep_objects_CXX=
13511 postdeps_CXX=
13512 ;;
13513
13514linux*)
13515 case `$CC -V 2>&1 | sed 5q` in
13516 *Sun\ C*)
13517 # Sun C++ 5.9
13518
13519 # The more standards-conforming stlport4 library is
13520 # incompatible with the Cstd library. Avoid specifying
13521 # it if it's in CXXFLAGS. Ignore libCrun as
13522 # -library=stlport4 depends on it.
13523 case " $CXX $CXXFLAGS " in
13524 *" -library=stlport4 "*)
13525 solaris_use_stlport4=yes
13526 ;;
13527 esac
13528
13529 if test "$solaris_use_stlport4" != yes; then
13530 postdeps_CXX='-library=Cstd -library=Crun'
13531 fi
13532 ;;
13533 esac
13534 ;;
13535
13536solaris*)
13537 case $cc_basename in
13538 CC*)
13539 # The more standards-conforming stlport4 library is
13540 # incompatible with the Cstd library. Avoid specifying
13541 # it if it's in CXXFLAGS. Ignore libCrun as
13542 # -library=stlport4 depends on it.
13543 case " $CXX $CXXFLAGS " in
13544 *" -library=stlport4 "*)
13545 solaris_use_stlport4=yes
13546 ;;
13547 esac
13548
13549 # Adding this requires a known-good setup of shared libraries for
13550 # Sun compiler versions before 5.6, else PIC objects from an old
13551 # archive will be linked into the output, leading to subtle bugs.
13552 if test "$solaris_use_stlport4" != yes; then
13553 postdeps_CXX='-library=Cstd -library=Crun'
13554 fi
13555 ;;
13556 esac
13557 ;;
13558esac
13559
13560
13561case " $postdeps_CXX " in
13562*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13563esac
13564 compiler_lib_search_dirs_CXX=
13565if test -n "${compiler_lib_search_path_CXX}"; then
13566 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13567fi
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599 lt_prog_compiler_wl_CXX=
13600lt_prog_compiler_pic_CXX=
13601lt_prog_compiler_static_CXX=
13602
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13604$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13605
13606 # C++ specific cases for pic, static, wl, etc.
13607 if test "$GXX" = yes; then
13608 lt_prog_compiler_wl_CXX='-Wl,'
13609 lt_prog_compiler_static_CXX='-static'
13610
13611 case $host_os in
13612 aix*)
13613 # All AIX code is PIC.
13614 if test "$host_cpu" = ia64; then
13615 # AIX 5 now supports IA64 processor
13616 lt_prog_compiler_static_CXX='-Bstatic'
13617 fi
52204357 13618 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13619 ;;
13620
13621 amigaos*)
13622 case $host_cpu in
13623 powerpc)
13624 # see comment about AmigaOS4 .so support
13625 lt_prog_compiler_pic_CXX='-fPIC'
13626 ;;
13627 m68k)
13628 # FIXME: we need at least 68020 code to build shared libraries, but
13629 # adding the `-m68020' flag to GCC prevents building anything better,
13630 # like `-m68040'.
13631 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13632 ;;
13633 esac
13634 ;;
13635
13636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13637 # PIC is the default for these OSes.
13638 ;;
13639 mingw* | cygwin* | os2* | pw32* | cegcc*)
13640 # This hack is so that the source file can tell whether it is being
13641 # built for inclusion in a dll (and should export symbols for example).
13642 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13643 # (--disable-auto-import) libraries
13644 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13645 ;;
13646 darwin* | rhapsody*)
13647 # PIC is the default on this platform
13648 # Common symbols not allowed in MH_DYLIB files
13649 lt_prog_compiler_pic_CXX='-fno-common'
13650 ;;
13651 *djgpp*)
13652 # DJGPP does not support shared libraries at all
13653 lt_prog_compiler_pic_CXX=
13654 ;;
13655 haiku*)
13656 # PIC is the default for Haiku.
13657 # The "-static" flag exists, but is broken.
13658 lt_prog_compiler_static_CXX=
13659 ;;
13660 interix[3-9]*)
13661 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13662 # Instead, we relocate shared libraries at runtime.
13663 ;;
13664 sysv4*MP*)
13665 if test -d /usr/nec; then
13666 lt_prog_compiler_pic_CXX=-Kconform_pic
13667 fi
13668 ;;
13669 hpux*)
13670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13672 # sets the default TLS model and affects inlining.
13673 case $host_cpu in
13674 hppa*64*)
13675 ;;
13676 *)
13677 lt_prog_compiler_pic_CXX='-fPIC'
13678 ;;
13679 esac
13680 ;;
13681 *qnx* | *nto*)
13682 # QNX uses GNU C++, but need to define -shared option too, otherwise
13683 # it will coredump.
13684 lt_prog_compiler_pic_CXX='-fPIC -shared'
13685 ;;
13686 *)
13687 lt_prog_compiler_pic_CXX='-fPIC'
13688 ;;
13689 esac
13690 else
13691 case $host_os in
13692 aix[4-9]*)
13693 # All AIX code is PIC.
13694 if test "$host_cpu" = ia64; then
13695 # AIX 5 now supports IA64 processor
13696 lt_prog_compiler_static_CXX='-Bstatic'
13697 else
13698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13699 fi
13700 ;;
13701 chorus*)
13702 case $cc_basename in
13703 cxch68*)
13704 # Green Hills C++ Compiler
13705 # _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"
13706 ;;
13707 esac
13708 ;;
13709 dgux*)
13710 case $cc_basename in
13711 ec++*)
13712 lt_prog_compiler_pic_CXX='-KPIC'
13713 ;;
13714 ghcx*)
13715 # Green Hills C++ Compiler
13716 lt_prog_compiler_pic_CXX='-pic'
13717 ;;
13718 *)
13719 ;;
13720 esac
13721 ;;
13722 freebsd* | dragonfly*)
13723 # FreeBSD uses GNU C++
13724 ;;
13725 hpux9* | hpux10* | hpux11*)
13726 case $cc_basename in
13727 CC*)
13728 lt_prog_compiler_wl_CXX='-Wl,'
13729 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13730 if test "$host_cpu" != ia64; then
13731 lt_prog_compiler_pic_CXX='+Z'
13732 fi
13733 ;;
13734 aCC*)
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737 case $host_cpu in
13738 hppa*64*|ia64*)
13739 # +Z the default
13740 ;;
13741 *)
13742 lt_prog_compiler_pic_CXX='+Z'
13743 ;;
13744 esac
13745 ;;
13746 *)
13747 ;;
13748 esac
13749 ;;
13750 interix*)
13751 # This is c89, which is MS Visual C++ (no shared libs)
13752 # Anyone wants to do a port?
13753 ;;
13754 irix5* | irix6* | nonstopux*)
13755 case $cc_basename in
13756 CC*)
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 lt_prog_compiler_static_CXX='-non_shared'
13759 # CC pic flag -KPIC is the default.
13760 ;;
13761 *)
13762 ;;
13763 esac
13764 ;;
13765 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13766 case $cc_basename in
13767 KCC*)
13768 # KAI C++ Compiler
13769 lt_prog_compiler_wl_CXX='--backend -Wl,'
13770 lt_prog_compiler_pic_CXX='-fPIC'
13771 ;;
13772 ecpc* )
13773 # old Intel C++ for x86_64 which still supported -KPIC.
13774 lt_prog_compiler_wl_CXX='-Wl,'
13775 lt_prog_compiler_pic_CXX='-KPIC'
13776 lt_prog_compiler_static_CXX='-static'
13777 ;;
13778 icpc* )
13779 # Intel C++, used to be incompatible with GCC.
13780 # ICC 10 doesn't accept -KPIC any more.
13781 lt_prog_compiler_wl_CXX='-Wl,'
13782 lt_prog_compiler_pic_CXX='-fPIC'
13783 lt_prog_compiler_static_CXX='-static'
13784 ;;
13785 pgCC* | pgcpp*)
13786 # Portland Group C++ compiler
13787 lt_prog_compiler_wl_CXX='-Wl,'
13788 lt_prog_compiler_pic_CXX='-fpic'
13789 lt_prog_compiler_static_CXX='-Bstatic'
13790 ;;
13791 cxx*)
13792 # Compaq C++
13793 # Make sure the PIC flag is empty. It appears that all Alpha
13794 # Linux and Compaq Tru64 Unix objects are PIC.
13795 lt_prog_compiler_pic_CXX=
13796 lt_prog_compiler_static_CXX='-non_shared'
13797 ;;
13798 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13799 # IBM XL 8.0, 9.0 on PPC and BlueGene
13800 lt_prog_compiler_wl_CXX='-Wl,'
13801 lt_prog_compiler_pic_CXX='-qpic'
13802 lt_prog_compiler_static_CXX='-qstaticlink'
13803 ;;
13804 *)
13805 case `$CC -V 2>&1 | sed 5q` in
13806 *Sun\ C*)
13807 # Sun C++ 5.9
13808 lt_prog_compiler_pic_CXX='-KPIC'
13809 lt_prog_compiler_static_CXX='-Bstatic'
13810 lt_prog_compiler_wl_CXX='-Qoption ld '
13811 ;;
13812 esac
13813 ;;
13814 esac
13815 ;;
13816 lynxos*)
13817 ;;
13818 m88k*)
13819 ;;
13820 mvs*)
13821 case $cc_basename in
13822 cxx*)
13823 lt_prog_compiler_pic_CXX='-W c,exportall'
13824 ;;
13825 *)
13826 ;;
13827 esac
13828 ;;
13829 netbsd*)
13830 ;;
13831 *qnx* | *nto*)
13832 # QNX uses GNU C++, but need to define -shared option too, otherwise
13833 # it will coredump.
13834 lt_prog_compiler_pic_CXX='-fPIC -shared'
13835 ;;
13836 osf3* | osf4* | osf5*)
13837 case $cc_basename in
13838 KCC*)
13839 lt_prog_compiler_wl_CXX='--backend -Wl,'
13840 ;;
13841 RCC*)
13842 # Rational C++ 2.4.1
13843 lt_prog_compiler_pic_CXX='-pic'
13844 ;;
13845 cxx*)
13846 # Digital/Compaq C++
13847 lt_prog_compiler_wl_CXX='-Wl,'
13848 # Make sure the PIC flag is empty. It appears that all Alpha
13849 # Linux and Compaq Tru64 Unix objects are PIC.
13850 lt_prog_compiler_pic_CXX=
13851 lt_prog_compiler_static_CXX='-non_shared'
13852 ;;
13853 *)
13854 ;;
13855 esac
13856 ;;
13857 psos*)
13858 ;;
13859 solaris*)
13860 case $cc_basename in
13861 CC*)
13862 # Sun C++ 4.2, 5.x and Centerline C++
13863 lt_prog_compiler_pic_CXX='-KPIC'
13864 lt_prog_compiler_static_CXX='-Bstatic'
13865 lt_prog_compiler_wl_CXX='-Qoption ld '
13866 ;;
13867 gcx*)
13868 # Green Hills C++ Compiler
13869 lt_prog_compiler_pic_CXX='-PIC'
13870 ;;
13871 *)
13872 ;;
13873 esac
13874 ;;
13875 sunos4*)
13876 case $cc_basename in
13877 CC*)
13878 # Sun C++ 4.x
13879 lt_prog_compiler_pic_CXX='-pic'
13880 lt_prog_compiler_static_CXX='-Bstatic'
13881 ;;
13882 lcc*)
13883 # Lucid
13884 lt_prog_compiler_pic_CXX='-pic'
13885 ;;
13886 *)
13887 ;;
13888 esac
13889 ;;
13890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13891 case $cc_basename in
13892 CC*)
13893 lt_prog_compiler_wl_CXX='-Wl,'
13894 lt_prog_compiler_pic_CXX='-KPIC'
13895 lt_prog_compiler_static_CXX='-Bstatic'
13896 ;;
13897 esac
13898 ;;
13899 tandem*)
13900 case $cc_basename in
13901 NCC*)
13902 # NonStop-UX NCC 3.20
13903 lt_prog_compiler_pic_CXX='-KPIC'
13904 ;;
13905 *)
13906 ;;
13907 esac
13908 ;;
13909 vxworks*)
13910 ;;
13911 *)
13912 lt_prog_compiler_can_build_shared_CXX=no
13913 ;;
13914 esac
13915 fi
13916
13917case $host_os in
13918 # For platforms which do not support PIC, -DPIC is meaningless:
13919 *djgpp*)
13920 lt_prog_compiler_pic_CXX=
13921 ;;
13922 *)
13923 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13924 ;;
13925esac
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13927$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13928
13929
13930
13931#
13932# Check to make sure the PIC flag actually works.
13933#
13934if test -n "$lt_prog_compiler_pic_CXX"; then
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13936$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13937if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13938 $as_echo_n "(cached) " >&6
13939else
13940 lt_cv_prog_compiler_pic_works_CXX=no
13941 ac_outfile=conftest.$ac_objext
13942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13943 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13944 # Insert the option either (1) after the last *FLAGS variable, or
13945 # (2) before a word containing "conftest.", or (3) at the end.
13946 # Note that $ac_compile itself does not contain backslashes and begins
13947 # with a dollar sign (not a hyphen), so the echo should work correctly.
13948 # The option is referenced via a variable to avoid confusing sed.
13949 lt_compile=`echo "$ac_compile" | $SED \
13950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952 -e 's:$: $lt_compiler_flag:'`
13953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13954 (eval "$lt_compile" 2>conftest.err)
13955 ac_status=$?
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 if (exit $ac_status) && test -s "$ac_outfile"; then
13959 # The compiler can only warn and ignore the option if not recognized
13960 # So say no if there are warnings other than the usual output.
13961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13964 lt_cv_prog_compiler_pic_works_CXX=yes
13965 fi
13966 fi
13967 $RM conftest*
13968
13969fi
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13971$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13972
13973if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13974 case $lt_prog_compiler_pic_CXX in
13975 "" | " "*) ;;
13976 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13977 esac
13978else
13979 lt_prog_compiler_pic_CXX=
13980 lt_prog_compiler_can_build_shared_CXX=no
13981fi
13982
13983fi
13984
13985
13986
13987#
13988# Check to make sure the static flag actually works.
13989#
13990wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13992$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13993if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995else
13996 lt_cv_prog_compiler_static_works_CXX=no
13997 save_LDFLAGS="$LDFLAGS"
13998 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13999 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14000 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14001 # The linker can only warn and ignore the option if not recognized
14002 # So say no if there are warnings
14003 if test -s conftest.err; then
14004 # Append any errors to the config.log.
14005 cat conftest.err 1>&5
14006 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14008 if diff conftest.exp conftest.er2 >/dev/null; then
14009 lt_cv_prog_compiler_static_works_CXX=yes
14010 fi
14011 else
14012 lt_cv_prog_compiler_static_works_CXX=yes
14013 fi
14014 fi
14015 $RM -r conftest*
14016 LDFLAGS="$save_LDFLAGS"
14017
14018fi
14019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14020$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14021
14022if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14023 :
14024else
14025 lt_prog_compiler_static_CXX=
14026fi
14027
14028
14029
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14033if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035else
14036 lt_cv_prog_compiler_c_o_CXX=no
14037 $RM -r conftest 2>/dev/null
14038 mkdir conftest
14039 cd conftest
14040 mkdir out
14041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14042
14043 lt_compiler_flag="-o out/conftest2.$ac_objext"
14044 # Insert the option either (1) after the last *FLAGS variable, or
14045 # (2) before a word containing "conftest.", or (3) at the end.
14046 # Note that $ac_compile itself does not contain backslashes and begins
14047 # with a dollar sign (not a hyphen), so the echo should work correctly.
14048 lt_compile=`echo "$ac_compile" | $SED \
14049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14051 -e 's:$: $lt_compiler_flag:'`
14052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14053 (eval "$lt_compile" 2>out/conftest.err)
14054 ac_status=$?
14055 cat out/conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14058 then
14059 # The compiler can only warn and ignore the option if not recognized
14060 # So say no if there are warnings
14061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14064 lt_cv_prog_compiler_c_o_CXX=yes
14065 fi
14066 fi
14067 chmod u+w . 2>&5
14068 $RM conftest*
14069 # SGI C++ compiler will create directory out/ii_files/ for
14070 # template instantiation
14071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14072 $RM out/* && rmdir out
14073 cd ..
14074 $RM -r conftest
14075 $RM conftest*
14076
14077fi
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14079$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14080
14081
14082
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14084$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14085if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087else
14088 lt_cv_prog_compiler_c_o_CXX=no
14089 $RM -r conftest 2>/dev/null
14090 mkdir conftest
14091 cd conftest
14092 mkdir out
14093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14094
14095 lt_compiler_flag="-o out/conftest2.$ac_objext"
14096 # Insert the option either (1) after the last *FLAGS variable, or
14097 # (2) before a word containing "conftest.", or (3) at the end.
14098 # Note that $ac_compile itself does not contain backslashes and begins
14099 # with a dollar sign (not a hyphen), so the echo should work correctly.
14100 lt_compile=`echo "$ac_compile" | $SED \
14101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14103 -e 's:$: $lt_compiler_flag:'`
14104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14105 (eval "$lt_compile" 2>out/conftest.err)
14106 ac_status=$?
14107 cat out/conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14110 then
14111 # The compiler can only warn and ignore the option if not recognized
14112 # So say no if there are warnings
14113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14114 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14115 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14116 lt_cv_prog_compiler_c_o_CXX=yes
14117 fi
14118 fi
14119 chmod u+w . 2>&5
14120 $RM conftest*
14121 # SGI C++ compiler will create directory out/ii_files/ for
14122 # template instantiation
14123 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14124 $RM out/* && rmdir out
14125 cd ..
14126 $RM -r conftest
14127 $RM conftest*
14128
14129fi
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14131$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14132
14133
14134
14135
14136hard_links="nottested"
14137if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14138 # do not overwrite the value of need_locks provided by the user
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14140$as_echo_n "checking if we can lock with hard links... " >&6; }
14141 hard_links=yes
14142 $RM conftest*
14143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14144 touch conftest.a
14145 ln conftest.a conftest.b 2>&5 || hard_links=no
14146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14148$as_echo "$hard_links" >&6; }
14149 if test "$hard_links" = no; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14151$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14152 need_locks=warn
14153 fi
14154else
14155 need_locks=no
14156fi
14157
14158
14159
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14161$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14162
14163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14164 case $host_os in
14165 aix[4-9]*)
14166 # If we're using GNU nm, then we don't want the "-C" option.
14167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14168 # Also, AIX nm treats weak defined symbols like other global defined
14169 # symbols, whereas GNU nm marks them as "W".
14170 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14171 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'
14172 else
14173 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14174 fi
14175 ;;
14176 pw32*)
14177 export_symbols_cmds_CXX="$ltdll_cmds"
14178 ;;
14179 cygwin* | mingw* | cegcc*)
14180 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'
14181 ;;
14182 *)
14183 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14184 ;;
14185 esac
14186 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14187
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14189$as_echo "$ld_shlibs_CXX" >&6; }
14190test "$ld_shlibs_CXX" = no && can_build_shared=no
14191
14192with_gnu_ld_CXX=$with_gnu_ld
14193
14194
14195
14196
14197
14198
14199#
14200# Do we need to explicitly link libc?
14201#
14202case "x$archive_cmds_need_lc_CXX" in
14203x|xyes)
14204 # Assume -lc should be added
14205 archive_cmds_need_lc_CXX=yes
14206
14207 if test "$enable_shared" = yes && test "$GCC" = yes; then
14208 case $archive_cmds_CXX in
14209 *'~'*)
14210 # FIXME: we may have to deal with multi-command sequences.
14211 ;;
14212 '$CC '*)
14213 # Test whether the compiler implicitly links with -lc since on some
14214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14215 # to ld, don't add -lc before -lgcc.
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14217$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14218if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14219 $as_echo_n "(cached) " >&6
14220else
14221 $RM conftest*
14222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14223
14224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14225 (eval $ac_compile) 2>&5
14226 ac_status=$?
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; } 2>conftest.err; then
14229 soname=conftest
14230 lib=conftest
14231 libobjs=conftest.$ac_objext
14232 deplibs=
14233 wl=$lt_prog_compiler_wl_CXX
14234 pic_flag=$lt_prog_compiler_pic_CXX
14235 compiler_flags=-v
14236 linker_flags=-v
14237 verstring=
14238 output_objdir=.
14239 libname=conftest
14240 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14241 allow_undefined_flag_CXX=
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14243 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }
14247 then
14248 lt_cv_archive_cmds_need_lc_CXX=no
14249 else
14250 lt_cv_archive_cmds_need_lc_CXX=yes
14251 fi
14252 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14253 else
14254 cat conftest.err 1>&5
14255 fi
14256 $RM conftest*
14257
14258fi
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14260$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14261 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14262 ;;
14263 esac
14264 fi
14265 ;;
14266esac
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14332$as_echo_n "checking dynamic linker characteristics... " >&6; }
14333
14334library_names_spec=
14335libname_spec='lib$name'
14336soname_spec=
14337shrext_cmds=".so"
14338postinstall_cmds=
14339postuninstall_cmds=
14340finish_cmds=
14341finish_eval=
14342shlibpath_var=
14343shlibpath_overrides_runpath=unknown
14344version_type=none
14345dynamic_linker="$host_os ld.so"
14346sys_lib_dlsearch_path_spec="/lib /usr/lib"
14347need_lib_prefix=unknown
14348hardcode_into_libs=no
14349
14350# when you set need_version to no, make sure it does not cause -set_version
14351# flags to be left without arguments
14352need_version=unknown
14353
14354case $host_os in
14355aix3*)
14356 version_type=linux
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14358 shlibpath_var=LIBPATH
14359
14360 # AIX 3 has no versioning support, so we append a major version to the name.
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 ;;
14363
14364aix[4-9]*)
14365 version_type=linux
14366 need_lib_prefix=no
14367 need_version=no
14368 hardcode_into_libs=yes
14369 if test "$host_cpu" = ia64; then
14370 # AIX 5 supports IA64
14371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14372 shlibpath_var=LD_LIBRARY_PATH
14373 else
14374 # With GCC up to 2.95.x, collect2 would create an import file
14375 # for dependence libraries. The import file would start with
14376 # the line `#! .'. This would cause the generated library to
14377 # depend on `.', always an invalid library. This was fixed in
14378 # development snapshots of GCC prior to 3.0.
14379 case $host_os in
14380 aix4 | aix4.[01] | aix4.[01].*)
14381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14382 echo ' yes '
14383 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14384 :
14385 else
14386 can_build_shared=no
14387 fi
14388 ;;
14389 esac
14390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14391 # soname into executable. Probably we can add versioning support to
14392 # collect2, so additional links can be useful in future.
14393 if test "$aix_use_runtimelinking" = yes; then
14394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14395 # instead of lib<name>.a to let people know that these are not
14396 # typical AIX shared libraries.
14397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14398 else
14399 # We preserve .a as extension for shared libraries through AIX4.2
14400 # and later when we are not doing run time linking.
14401 library_names_spec='${libname}${release}.a $libname.a'
14402 soname_spec='${libname}${release}${shared_ext}$major'
14403 fi
14404 shlibpath_var=LIBPATH
14405 fi
14406 ;;
14407
14408amigaos*)
14409 case $host_cpu in
14410 powerpc)
14411 # Since July 2007 AmigaOS4 officially supports .so libraries.
14412 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14414 ;;
14415 m68k)
14416 library_names_spec='$libname.ixlibrary $libname.a'
14417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14418 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'
14419 ;;
14420 esac
14421 ;;
14422
14423beos*)
14424 library_names_spec='${libname}${shared_ext}'
14425 dynamic_linker="$host_os ld.so"
14426 shlibpath_var=LIBRARY_PATH
14427 ;;
14428
14429bsdi[45]*)
14430 version_type=linux
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14437 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14438 # the default ld.so.conf also contains /usr/contrib/lib and
14439 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14440 # libtool to hard-code these into programs
14441 ;;
14442
14443cygwin* | mingw* | pw32* | cegcc*)
14444 version_type=windows
14445 shrext_cmds=".dll"
14446 need_version=no
14447 need_lib_prefix=no
14448
14449 case $GCC,$host_os in
14450 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14451 library_names_spec='$libname.dll.a'
14452 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14453 postinstall_cmds='base_file=`basename \${file}`~
14454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14455 dldir=$destdir/`dirname \$dlpath`~
14456 test -d \$dldir || mkdir -p \$dldir~
14457 $install_prog $dir/$dlname \$dldir/$dlname~
14458 chmod a+x \$dldir/$dlname~
14459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14461 fi'
14462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14463 dlpath=$dir/\$dldll~
14464 $RM \$dlpath'
14465 shlibpath_overrides_runpath=yes
14466
14467 case $host_os in
14468 cygwin*)
14469 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14470 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14471
14472 ;;
14473 mingw* | cegcc*)
14474 # MinGW DLLs use traditional 'lib' prefix
14475 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476 ;;
14477 pw32*)
14478 # pw32 DLLs use 'pw' prefix rather than 'lib'
14479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480 ;;
14481 esac
14482 ;;
14483
14484 *)
14485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14486 ;;
14487 esac
14488 dynamic_linker='Win32 ld.exe'
14489 # FIXME: first we should search . and the directory the executable is in
14490 shlibpath_var=PATH
14491 ;;
14492
14493darwin* | rhapsody*)
14494 dynamic_linker="$host_os dyld"
14495 version_type=darwin
14496 need_lib_prefix=no
14497 need_version=no
14498 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14499 soname_spec='${libname}${release}${major}$shared_ext'
14500 shlibpath_overrides_runpath=yes
14501 shlibpath_var=DYLD_LIBRARY_PATH
14502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14503
14504 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14505 ;;
14506
14507dgux*)
14508 version_type=linux
14509 need_lib_prefix=no
14510 need_version=no
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 ;;
14515
3cb62297
L
14516freebsd* | dragonfly*)
14517 # DragonFly does not have aout. When/if they implement a new
14518 # versioning mechanism, adjust this.
14519 if test -x /usr/bin/objformat; then
14520 objformat=`/usr/bin/objformat`
14521 else
14522 case $host_os in
6d2920c8 14523 freebsd[23].*) objformat=aout ;;
3cb62297
L
14524 *) objformat=elf ;;
14525 esac
14526 fi
14527 version_type=freebsd-$objformat
14528 case $version_type in
14529 freebsd-elf*)
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14531 need_version=no
14532 need_lib_prefix=no
14533 ;;
14534 freebsd-*)
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14536 need_version=yes
14537 ;;
14538 esac
14539 shlibpath_var=LD_LIBRARY_PATH
14540 case $host_os in
6d2920c8 14541 freebsd2.*)
3cb62297
L
14542 shlibpath_overrides_runpath=yes
14543 ;;
14544 freebsd3.[01]* | freebsdelf3.[01]*)
14545 shlibpath_overrides_runpath=yes
14546 hardcode_into_libs=yes
14547 ;;
14548 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14549 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14550 shlibpath_overrides_runpath=no
14551 hardcode_into_libs=yes
14552 ;;
14553 *) # from 4.6 on, and DragonFly
14554 shlibpath_overrides_runpath=yes
14555 hardcode_into_libs=yes
14556 ;;
14557 esac
14558 ;;
14559
14560gnu*)
14561 version_type=linux
14562 need_lib_prefix=no
14563 need_version=no
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 hardcode_into_libs=yes
14568 ;;
14569
14570haiku*)
14571 version_type=linux
14572 need_lib_prefix=no
14573 need_version=no
14574 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
14578 shlibpath_overrides_runpath=yes
14579 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14580 hardcode_into_libs=yes
14581 ;;
14582
14583hpux9* | hpux10* | hpux11*)
14584 # Give a soname corresponding to the major version so that dld.sl refuses to
14585 # link against other versions.
14586 version_type=sunos
14587 need_lib_prefix=no
14588 need_version=no
14589 case $host_cpu in
14590 ia64*)
14591 shrext_cmds='.so'
14592 hardcode_into_libs=yes
14593 dynamic_linker="$host_os dld.so"
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 if test "X$HPUX_IA64_MODE" = X32; then
14599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14600 else
14601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14602 fi
14603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14604 ;;
14605 hppa*64*)
14606 shrext_cmds='.sl'
14607 hardcode_into_libs=yes
14608 dynamic_linker="$host_os dld.sl"
14609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14612 soname_spec='${libname}${release}${shared_ext}$major'
14613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14615 ;;
14616 *)
14617 shrext_cmds='.sl'
14618 dynamic_linker="$host_os dld.sl"
14619 shlibpath_var=SHLIB_PATH
14620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14622 soname_spec='${libname}${release}${shared_ext}$major'
14623 ;;
14624 esac
14625 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14626 postinstall_cmds='chmod 555 $lib'
14627 # or fails outright, so override atomically:
14628 install_override_mode=555
14629 ;;
14630
14631interix[3-9]*)
14632 version_type=linux
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14641 ;;
14642
14643irix5* | irix6* | nonstopux*)
14644 case $host_os in
14645 nonstopux*) version_type=nonstopux ;;
14646 *)
14647 if test "$lt_cv_prog_gnu_ld" = yes; then
14648 version_type=linux
14649 else
14650 version_type=irix
14651 fi ;;
14652 esac
14653 need_lib_prefix=no
14654 need_version=no
14655 soname_spec='${libname}${release}${shared_ext}$major'
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14657 case $host_os in
14658 irix5* | nonstopux*)
14659 libsuff= shlibsuff=
14660 ;;
14661 *)
14662 case $LD in # libtool.m4 will add one of these switches to LD
14663 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14664 libsuff= shlibsuff= libmagic=32-bit;;
14665 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14666 libsuff=32 shlibsuff=N32 libmagic=N32;;
14667 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14668 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14669 *) libsuff= shlibsuff= libmagic=never-match;;
14670 esac
14671 ;;
14672 esac
14673 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14674 shlibpath_overrides_runpath=no
14675 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14676 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14677 hardcode_into_libs=yes
14678 ;;
14679
14680# No shared lib support for Linux oldld, aout, or coff.
14681linux*oldld* | linux*aout* | linux*coff*)
14682 dynamic_linker=no
14683 ;;
14684
14685# This must be Linux ELF.
14686linux* | k*bsd*-gnu | kopensolaris*-gnu)
14687 version_type=linux
14688 need_lib_prefix=no
14689 need_version=no
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=no
14695
14696 # Some binutils ld are patched to set DT_RUNPATH
14697 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699else
14700 lt_cv_shlibpath_overrides_runpath=no
14701 save_LDFLAGS=$LDFLAGS
14702 save_libdir=$libdir
14703 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14704 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h. */
14707
14708int
14709main ()
14710{
14711
14712 ;
14713 return 0;
14714}
14715_ACEOF
14716if ac_fn_cxx_try_link "$LINENO"; then :
14717 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14718 lt_cv_shlibpath_overrides_runpath=yes
14719fi
14720fi
14721rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LDFLAGS=$save_LDFLAGS
14724 libdir=$save_libdir
14725
14726fi
14727
14728 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14729
14730 # This implies no fast_install, which is unacceptable.
14731 # Some rework will be needed to allow for fast_install
14732 # before this can be enabled.
14733 hardcode_into_libs=yes
14734
14735 # Append ld.so.conf contents to the search path
14736 if test -f /etc/ld.so.conf; then
14737 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' ' '`
14738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14739 fi
14740
14741 # We used to test for /lib/ld.so.1 and disable shared libraries on
14742 # powerpc, because MkLinux only supported shared libraries with the
14743 # GNU dynamic linker. Since this was broken with cross compilers,
14744 # most powerpc-linux boxes support dynamic linking these days and
14745 # people can always --disable-shared, the test was removed, and we
14746 # assume the GNU/Linux dynamic linker is in use.
14747 dynamic_linker='GNU/Linux ld.so'
14748 ;;
14749
14750netbsd*)
14751 version_type=sunos
14752 need_lib_prefix=no
14753 need_version=no
14754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14757 dynamic_linker='NetBSD (a.out) ld.so'
14758 else
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14761 dynamic_linker='NetBSD ld.elf_so'
14762 fi
14763 shlibpath_var=LD_LIBRARY_PATH
14764 shlibpath_overrides_runpath=yes
14765 hardcode_into_libs=yes
14766 ;;
14767
14768newsos6)
14769 version_type=linux
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 shlibpath_overrides_runpath=yes
14773 ;;
14774
14775*nto* | *qnx*)
14776 version_type=qnx
14777 need_lib_prefix=no
14778 need_version=no
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14782 shlibpath_overrides_runpath=no
14783 hardcode_into_libs=yes
14784 dynamic_linker='ldqnx.so'
14785 ;;
14786
14787openbsd*)
14788 version_type=sunos
14789 sys_lib_dlsearch_path_spec="/usr/lib"
14790 need_lib_prefix=no
14791 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14792 case $host_os in
14793 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14794 *) need_version=no ;;
14795 esac
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14800 case $host_os in
14801 openbsd2.[89] | openbsd2.[89].*)
14802 shlibpath_overrides_runpath=no
14803 ;;
14804 *)
14805 shlibpath_overrides_runpath=yes
14806 ;;
14807 esac
14808 else
14809 shlibpath_overrides_runpath=yes
14810 fi
14811 ;;
14812
14813os2*)
14814 libname_spec='$name'
14815 shrext_cmds=".dll"
14816 need_lib_prefix=no
14817 library_names_spec='$libname${shared_ext} $libname.a'
14818 dynamic_linker='OS/2 ld.exe'
14819 shlibpath_var=LIBPATH
14820 ;;
14821
14822osf3* | osf4* | osf5*)
14823 version_type=osf
14824 need_lib_prefix=no
14825 need_version=no
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 shlibpath_var=LD_LIBRARY_PATH
14829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14830 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14831 ;;
14832
14833rdos*)
14834 dynamic_linker=no
14835 ;;
14836
14837solaris*)
14838 version_type=linux
14839 need_lib_prefix=no
14840 need_version=no
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842 soname_spec='${libname}${release}${shared_ext}$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14845 hardcode_into_libs=yes
14846 # ldd complains unless libraries are executable
14847 postinstall_cmds='chmod +x $lib'
14848 ;;
14849
14850sunos4*)
14851 version_type=sunos
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=yes
14856 if test "$with_gnu_ld" = yes; then
14857 need_lib_prefix=no
14858 fi
14859 need_version=yes
14860 ;;
14861
14862sysv4 | sysv4.3*)
14863 version_type=linux
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 case $host_vendor in
14868 sni)
14869 shlibpath_overrides_runpath=no
14870 need_lib_prefix=no
14871 runpath_var=LD_RUN_PATH
14872 ;;
14873 siemens)
14874 need_lib_prefix=no
14875 ;;
14876 motorola)
14877 need_lib_prefix=no
14878 need_version=no
14879 shlibpath_overrides_runpath=no
14880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14881 ;;
14882 esac
14883 ;;
14884
14885sysv4*MP*)
14886 if test -d /usr/nec ;then
14887 version_type=linux
14888 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14889 soname_spec='$libname${shared_ext}.$major'
14890 shlibpath_var=LD_LIBRARY_PATH
14891 fi
14892 ;;
14893
14894sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14895 version_type=freebsd-elf
14896 need_lib_prefix=no
14897 need_version=no
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14902 hardcode_into_libs=yes
14903 if test "$with_gnu_ld" = yes; then
14904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14905 else
14906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14907 case $host_os in
14908 sco3.2v5*)
14909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14910 ;;
14911 esac
14912 fi
14913 sys_lib_dlsearch_path_spec='/usr/lib'
14914 ;;
14915
14916tpf*)
14917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14918 version_type=linux
14919 need_lib_prefix=no
14920 need_version=no
14921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922 shlibpath_var=LD_LIBRARY_PATH
14923 shlibpath_overrides_runpath=no
14924 hardcode_into_libs=yes
14925 ;;
14926
14927uts4*)
14928 version_type=linux
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 ;;
14933
14934*)
14935 dynamic_linker=no
14936 ;;
14937esac
14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14939$as_echo "$dynamic_linker" >&6; }
14940test "$dynamic_linker" = no && can_build_shared=no
14941
14942variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14943if test "$GCC" = yes; then
14944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14945fi
14946
14947if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14948 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14949fi
14950if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14951 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14952fi
14953
3725885a 14954
ce2cded5 14955
ce2cded5 14956
ce2cded5 14957
d7040cdb 14958
ce2cded5 14959
ce2cded5 14960
ce2cded5 14961
d7040cdb 14962
ce2cded5
L
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
ce2cded5
L
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
b879806f
AM
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14992$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14993hardcode_action_CXX=
14994if test -n "$hardcode_libdir_flag_spec_CXX" ||
14995 test -n "$runpath_var_CXX" ||
14996 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14997
14998 # We can hardcode non-existent directories.
14999 if test "$hardcode_direct_CXX" != no &&
15000 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15001 # have to relink, otherwise we might link with an installed library
15002 # when we should be linking with a yet-to-be-installed one
15003 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15004 test "$hardcode_minus_L_CXX" != no; then
15005 # Linking always hardcodes the temporary library directory.
15006 hardcode_action_CXX=relink
15007 else
15008 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15009 hardcode_action_CXX=immediate
15010 fi
15011else
15012 # We cannot hardcode anything, or else we can only hardcode existing
15013 # directories.
15014 hardcode_action_CXX=unsupported
15015fi
15016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15017$as_echo "$hardcode_action_CXX" >&6; }
15018
15019if test "$hardcode_action_CXX" = relink ||
15020 test "$inherit_rpath_CXX" = yes; then
15021 # Fast installation is not supported
15022 enable_fast_install=no
15023elif test "$shlibpath_overrides_runpath" = yes ||
15024 test "$enable_shared" = no; then
15025 # Fast installation is not necessary
15026 enable_fast_install=needless
15027fi
15028
15029
15030
15031
15032
15033
15034
15035 fi # test -n "$compiler"
15036
15037 CC=$lt_save_CC
15038 LDCXX=$LD
15039 LD=$lt_save_LD
15040 GCC=$lt_save_GCC
15041 with_gnu_ld=$lt_save_with_gnu_ld
15042 lt_cv_path_LDCXX=$lt_cv_path_LD
15043 lt_cv_path_LD=$lt_save_path_LD
15044 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15045 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15046fi # test "$_lt_caught_CXX_error" != yes
15047
15048ac_ext=c
15049ac_cpp='$CPP $CPPFLAGS'
15050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15052ac_compiler_gnu=$ac_cv_c_compiler_gnu
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066 ac_config_commands="$ac_config_commands libtool"
15067
15068
15069
15070
15071# Only expand once:
15072
15073
15074
15075# The tests for host and target for $enable_largefile require
15076# canonical names.
15077
15078
15079
15080# As the $enable_largefile decision depends on --enable-plugins we must set it
15081# even in directories otherwise not depending on the $plugins option.
15082
15083
15084 maybe_plugins=no
15085 for ac_header in dlfcn.h
15086do :
15087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15088"
15089if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15090 cat >>confdefs.h <<_ACEOF
15091#define HAVE_DLFCN_H 1
15092_ACEOF
15093 maybe_plugins=yes
15094fi
15095
15096done
15097
15098 for ac_header in windows.h
15099do :
15100 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15101"
15102if test "x$ac_cv_header_windows_h" = x""yes; then :
15103 cat >>confdefs.h <<_ACEOF
15104#define HAVE_WINDOWS_H 1
15105_ACEOF
15106 maybe_plugins=yes
15107fi
15108
15109done
15110
15111
15112 # Check whether --enable-plugins was given.
15113if test "${enable_plugins+set}" = set; then :
15114 enableval=$enable_plugins; case "${enableval}" in
15115 no) plugins=no ;;
15116 *) plugins=yes
15117 if test "$maybe_plugins" != "yes" ; then
15118 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15119 fi ;;
15120 esac
15121else
15122 plugins=$maybe_plugins
15123
15124fi
15125
2974be62
AM
15126 if test "$plugins" = "yes"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15128$as_echo_n "checking for library containing dlopen... " >&6; }
15129if test "${ac_cv_search_dlopen+set}" = set; then :
15130 $as_echo_n "(cached) " >&6
15131else
15132 ac_func_search_save_LIBS=$LIBS
15133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h. */
15135
15136/* Override any GCC internal prototype to avoid an error.
15137 Use char because int might match the return type of a GCC
15138 builtin and then its argument prototype would still apply. */
15139#ifdef __cplusplus
15140extern "C"
15141#endif
15142char dlopen ();
15143int
15144main ()
15145{
15146return dlopen ();
15147 ;
15148 return 0;
15149}
15150_ACEOF
15151for ac_lib in '' dl; do
15152 if test -z "$ac_lib"; then
15153 ac_res="none required"
15154 else
15155 ac_res=-l$ac_lib
15156 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15157 fi
15158 if ac_fn_c_try_link "$LINENO"; then :
15159 ac_cv_search_dlopen=$ac_res
15160fi
15161rm -f core conftest.err conftest.$ac_objext \
15162 conftest$ac_exeext
15163 if test "${ac_cv_search_dlopen+set}" = set; then :
15164 break
15165fi
15166done
15167if test "${ac_cv_search_dlopen+set}" = set; then :
15168
15169else
15170 ac_cv_search_dlopen=no
15171fi
15172rm conftest.$ac_ext
15173LIBS=$ac_func_search_save_LIBS
15174fi
15175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15176$as_echo "$ac_cv_search_dlopen" >&6; }
15177ac_res=$ac_cv_search_dlopen
15178if test "$ac_res" != no; then :
15179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15180
15181fi
15182
15183 fi
b879806f
AM
15184
15185
15186case "${host}" in
15187 sparc-*-solaris*|i[3-7]86-*-solaris*)
15188 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15189 # are mutually exclusive; and without procfs support, the bfd/ elf module
15190 # cannot provide certain routines such as elfcore_write_prpsinfo
15191 # or elfcore_write_prstatus. So unless the user explicitly requested
15192 # large-file support through the --enable-largefile switch, disable
15193 # large-file support in favor of procfs support.
15194 test "${target}" = "${host}" -a "x$plugins" = xno \
15195 && : ${enable_largefile="no"}
15196 ;;
15197esac
15198
15199# Check whether --enable-largefile was given.
15200if test "${enable_largefile+set}" = set; then :
15201 enableval=$enable_largefile;
15202fi
15203
15204if test "$enable_largefile" != no; then
15205
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15207$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15208if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15209 $as_echo_n "(cached) " >&6
15210else
15211 ac_cv_sys_largefile_CC=no
15212 if test "$GCC" != yes; then
15213 ac_save_CC=$CC
15214 while :; do
15215 # IRIX 6.2 and later do not support large files by default,
15216 # so use the C compiler's -n32 option if that helps.
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218/* end confdefs.h. */
15219#include <sys/types.h>
15220 /* Check that off_t can represent 2**63 - 1 correctly.
15221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15222 since some C++ compilers masquerading as C compilers
15223 incorrectly reject 9223372036854775807. */
15224#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15226 && LARGE_OFF_T % 2147483647 == 1)
15227 ? 1 : -1];
15228int
15229main ()
15230{
15231
15232 ;
15233 return 0;
15234}
15235_ACEOF
15236 if ac_fn_c_try_compile "$LINENO"; then :
15237 break
15238fi
15239rm -f core conftest.err conftest.$ac_objext
15240 CC="$CC -n32"
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 ac_cv_sys_largefile_CC=' -n32'; break
15243fi
15244rm -f core conftest.err conftest.$ac_objext
15245 break
15246 done
15247 CC=$ac_save_CC
15248 rm -f conftest.$ac_ext
15249 fi
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15252$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15253 if test "$ac_cv_sys_largefile_CC" != no; then
15254 CC=$CC$ac_cv_sys_largefile_CC
15255 fi
15256
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15258$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15259if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15260 $as_echo_n "(cached) " >&6
15261else
15262 while :; do
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264/* end confdefs.h. */
15265#include <sys/types.h>
15266 /* Check that off_t can represent 2**63 - 1 correctly.
15267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15268 since some C++ compilers masquerading as C compilers
15269 incorrectly reject 9223372036854775807. */
15270#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15272 && LARGE_OFF_T % 2147483647 == 1)
15273 ? 1 : -1];
15274int
15275main ()
15276{
15277
15278 ;
15279 return 0;
15280}
15281_ACEOF
15282if ac_fn_c_try_compile "$LINENO"; then :
15283 ac_cv_sys_file_offset_bits=no; break
15284fi
15285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287/* end confdefs.h. */
15288#define _FILE_OFFSET_BITS 64
15289#include <sys/types.h>
15290 /* Check that off_t can represent 2**63 - 1 correctly.
15291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15292 since some C++ compilers masquerading as C compilers
15293 incorrectly reject 9223372036854775807. */
15294#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15296 && LARGE_OFF_T % 2147483647 == 1)
15297 ? 1 : -1];
15298int
15299main ()
15300{
15301
15302 ;
15303 return 0;
15304}
15305_ACEOF
15306if ac_fn_c_try_compile "$LINENO"; then :
15307 ac_cv_sys_file_offset_bits=64; break
15308fi
15309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 ac_cv_sys_file_offset_bits=unknown
15311 break
15312done
15313fi
15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15315$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15316case $ac_cv_sys_file_offset_bits in #(
15317 no | unknown) ;;
15318 *)
15319cat >>confdefs.h <<_ACEOF
15320#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15321_ACEOF
15322;;
15323esac
15324rm -rf conftest*
15325 if test $ac_cv_sys_file_offset_bits = unknown; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15327$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15328if test "${ac_cv_sys_large_files+set}" = set; then :
15329 $as_echo_n "(cached) " >&6
15330else
15331 while :; do
15332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h. */
15334#include <sys/types.h>
15335 /* Check that off_t can represent 2**63 - 1 correctly.
15336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15337 since some C++ compilers masquerading as C compilers
15338 incorrectly reject 9223372036854775807. */
15339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15341 && LARGE_OFF_T % 2147483647 == 1)
15342 ? 1 : -1];
15343int
15344main ()
15345{
15346
15347 ;
15348 return 0;
15349}
15350_ACEOF
15351if ac_fn_c_try_compile "$LINENO"; then :
15352 ac_cv_sys_large_files=no; break
15353fi
15354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356/* end confdefs.h. */
15357#define _LARGE_FILES 1
15358#include <sys/types.h>
15359 /* Check that off_t can represent 2**63 - 1 correctly.
15360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15361 since some C++ compilers masquerading as C compilers
15362 incorrectly reject 9223372036854775807. */
15363#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15365 && LARGE_OFF_T % 2147483647 == 1)
15366 ? 1 : -1];
15367int
15368main ()
15369{
15370
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375if ac_fn_c_try_compile "$LINENO"; then :
15376 ac_cv_sys_large_files=1; break
15377fi
15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 ac_cv_sys_large_files=unknown
15380 break
15381done
15382fi
15383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15384$as_echo "$ac_cv_sys_large_files" >&6; }
15385case $ac_cv_sys_large_files in #(
15386 no | unknown) ;;
15387 *)
15388cat >>confdefs.h <<_ACEOF
15389#define _LARGE_FILES $ac_cv_sys_large_files
15390_ACEOF
15391;;
15392esac
15393rm -rf conftest*
15394 fi
15395fi
15396
15397
15398
15399
15400# Check whether --with-lib-path was given.
15401if test "${with_lib_path+set}" = set; then :
15402 withval=$with_lib_path; LIB_PATH=$withval
15403fi
15404
15405# Check whether --enable-targets was given.
15406if test "${enable_targets+set}" = set; then :
15407 enableval=$enable_targets; case "${enableval}" in
15408 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15409 ;;
15410 no) enable_targets= ;;
15411 *) enable_targets=$enableval ;;
15412esac
15413fi
15414# Check whether --enable-64-bit-bfd was given.
15415if test "${enable_64_bit_bfd+set}" = set; then :
15416 enableval=$enable_64_bit_bfd; case "${enableval}" in
15417 yes) want64=true ;;
15418 no) want64=false ;;
15419 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15420esac
15421else
15422 want64=false
15423fi
15424
15425
15426# Check whether --with-sysroot was given.
15427if test "${with_sysroot+set}" = set; then :
15428 withval=$with_sysroot;
15429 case ${with_sysroot} in
15430 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15431 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15432 esac
15433
15434 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15435 use_sysroot=yes
15436
15437 if test "x$prefix" = xNONE; then
15438 test_prefix=/usr/local
15439 else
15440 test_prefix=$prefix
15441 fi
15442 if test "x$exec_prefix" = xNONE; then
15443 test_exec_prefix=$test_prefix
15444 else
15445 test_exec_prefix=$exec_prefix
15446 fi
15447 case ${TARGET_SYSTEM_ROOT} in
15448 "${test_prefix}"|"${test_prefix}/"*|\
15449 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15450 '${prefix}'|'${prefix}/'*|\
15451 '${exec_prefix}'|'${exec_prefix}/'*)
15452 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15453 TARGET_SYSTEM_ROOT_DEFINE="$t"
15454 ;;
15455 esac
15456
15457else
15458
15459 use_sysroot=no
15460 TARGET_SYSTEM_ROOT=
15461 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15462
15463fi
15464
15465
15466
15467
15468
15469# Check whether --enable-gold was given.
15470if test "${enable_gold+set}" = set; then :
15471 enableval=$enable_gold; case "${enableval}" in
15472 default)
15473 install_as_default=no
15474 installed_linker=ld.bfd
15475 ;;
15476 yes|no)
15477 install_as_default=yes
15478 installed_linker=ld.bfd
15479 ;;
15480 *)
15481 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15482 ;;
15483 esac
15484else
15485 install_as_default=yes
15486 installed_linker=ld.bfd
15487fi
15488
15489
15490
15491
15492# Check whether --enable-got was given.
15493if test "${enable_got+set}" = set; then :
15494 enableval=$enable_got; case "${enableval}" in
15495 target | single | negative | multigot) got_handling=$enableval ;;
15496 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15497esac
15498else
15499 got_handling=target
15500fi
15501
15502
15503case "${got_handling}" in
15504 target)
15505
15506$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15507 ;;
15508 single)
15509
15510$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15511 ;;
15512 negative)
15513
15514$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15515 ;;
15516 multigot)
15517
15518$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15519 ;;
15520 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15521esac
15522
15523
15524# Set the 'development' global.
15525. $srcdir/../bfd/development.sh
15526
15527GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529/* end confdefs.h. */
15530__GNUC__
15531_ACEOF
15532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15533 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
ce2cded5 15534
3cb62297 15535else
b879806f 15536 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15537fi
b879806f 15538rm -f conftest*
ce2cded5 15539
ce2cded5 15540
b879806f
AM
15541# Check whether --enable-werror was given.
15542if test "${enable_werror+set}" = set; then :
15543 enableval=$enable_werror; case "${enableval}" in
15544 yes | y) ERROR_ON_WARNING="yes" ;;
15545 no | n) ERROR_ON_WARNING="no" ;;
15546 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15547 esac
15548fi
ce2cded5
L
15549
15550
b879806f
AM
15551# Disable -Wformat by default when using gcc on mingw
15552case "${host}" in
15553 *-*-mingw32*)
15554 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15555 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15556 fi
15557 ;;
15558 *) ;;
15559esac
ce2cded5 15560
b879806f
AM
15561# Enable -Werror by default when using gcc. Turn it off for releases.
15562if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15563 ERROR_ON_WARNING=yes
15564fi
d7040cdb 15565
b879806f
AM
15566NO_WERROR=
15567if test "${ERROR_ON_WARNING}" = yes ; then
15568 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
15569 NO_WERROR="-Wno-error"
15570fi
3cb62297 15571
b879806f
AM
15572if test "${GCC}" = yes ; then
15573 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15574fi
67310ccd 15575
b879806f
AM
15576# Check whether --enable-build-warnings was given.
15577if test "${enable_build_warnings+set}" = set; then :
15578 enableval=$enable_build_warnings; case "${enableval}" in
15579 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15580 no) if test "${GCC}" = yes ; then
15581 WARN_CFLAGS="-w"
15582 fi;;
15583 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15584 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15585 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15586 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15587 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15588esac
15589fi
67310ccd 15590
d7040cdb 15591
b879806f
AM
15592if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15593 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15594fi
d7040cdb 15595
d7040cdb 15596
d7040cdb 15597
d7040cdb 15598
ce2cded5
L
15599
15600
b879806f
AM
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15602$as_echo_n "checking for LC_MESSAGES... " >&6; }
15603if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15604 $as_echo_n "(cached) " >&6
15605else
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607/* end confdefs.h. */
15608#include <locale.h>
15609int
15610main ()
15611{
15612return LC_MESSAGES
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617if ac_fn_c_try_link "$LINENO"; then :
15618 am_cv_val_LC_MESSAGES=yes
15619else
15620 am_cv_val_LC_MESSAGES=no
15621fi
15622rm -f core conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
15624fi
15625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15626$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15627 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 15628
b879806f 15629$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 15630
b879806f 15631 fi
ce2cded5 15632
ce2cded5 15633
b879806f 15634ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
15635
15636
b879806f 15637# PR 14072
ce2cded5 15638
ce2cded5 15639
b879806f
AM
15640if test -z "$target" ; then
15641 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15642fi
15643if test -z "$host" ; then
15644 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15645fi
d7040cdb 15646
b879806f 15647# host-specific stuff:
d7040cdb 15648
3e4fe8ac 15649ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15650# If we haven't got the data from the intl directory,
15651# assume NLS is disabled.
15652USE_NLS=no
15653LIBINTL=
15654LIBINTL_DEP=
15655INCINTL=
15656XGETTEXT=
15657GMSGFMT=
15658POSUB=
15659
15660if test -f ../intl/config.intl; then
15661 . ../intl/config.intl
15662fi
81ecdfbb
RW
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15664$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15665if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15667$as_echo "no" >&6; }
d7040cdb 15668else
81ecdfbb
RW
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15670$as_echo "yes" >&6; }
d7040cdb 15671
81ecdfbb 15672$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15673
15674
81ecdfbb
RW
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15676$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15677 # Look for .po and .gmo files in the source directory.
15678 CATALOGS=
15679 XLINGUAS=
15680 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15681 # If there aren't any .gmo files the shell will give us the
15682 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15683 # weeded out.
15684 case "$cat" in *\**)
15685 continue;;
15686 esac
15687 # The quadruple backslash is collapsed to a double backslash
15688 # by the backticks, then collapsed again by the double quotes,
15689 # leaving us with one backslash in the sed expression (right
15690 # before the dot that mustn't act as a wildcard).
15691 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15692 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15693 # The user is allowed to set LINGUAS to a list of languages to
15694 # install catalogs for. If it's empty that means "all of them."
15695 if test "x$LINGUAS" = x; then
15696 CATALOGS="$CATALOGS $cat"
15697 XLINGUAS="$XLINGUAS $lang"
15698 else
15699 case "$LINGUAS" in *$lang*)
15700 CATALOGS="$CATALOGS $cat"
15701 XLINGUAS="$XLINGUAS $lang"
15702 ;;
15703 esac
15704 fi
15705 done
15706 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15708$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15709
15710
15711 DATADIRNAME=share
15712
15713 INSTOBJEXT=.mo
15714
15715 GENCAT=gencat
15716
15717 CATOBJEXT=.gmo
15718
15719fi
15720
15721 MKINSTALLDIRS=
15722 if test -n "$ac_aux_dir"; then
15723 case "$ac_aux_dir" in
15724 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15725 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15726 esac
15727 fi
15728 if test -z "$MKINSTALLDIRS"; then
15729 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15730 fi
15731
15732
15733
81ecdfbb
RW
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15735$as_echo_n "checking whether NLS is requested... " >&6; }
15736 # Check whether --enable-nls was given.
15737if test "${enable_nls+set}" = set; then :
15738 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15739else
15740 USE_NLS=yes
81ecdfbb
RW
15741fi
15742
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15744$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15745
15746
15747
15748
15749
15750
15751# Prepare PATH_SEPARATOR.
15752# The user is always right.
15753if test "${PATH_SEPARATOR+set}" != set; then
15754 echo "#! /bin/sh" >conf$$.sh
15755 echo "exit 0" >>conf$$.sh
15756 chmod +x conf$$.sh
15757 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15758 PATH_SEPARATOR=';'
15759 else
15760 PATH_SEPARATOR=:
15761 fi
15762 rm -f conf$$.sh
15763fi
15764
15765# Find out how to test for executable files. Don't use a zero-byte file,
15766# as systems may use methods other than mode bits to determine executability.
15767cat >conf$$.file <<_ASEOF
15768#! /bin/sh
15769exit 0
15770_ASEOF
15771chmod +x conf$$.file
15772if test -x conf$$.file >/dev/null 2>&1; then
15773 ac_executable_p="test -x"
15774else
15775 ac_executable_p="test -f"
15776fi
15777rm -f conf$$.file
15778
15779# Extract the first word of "msgfmt", so it can be a program name with args.
15780set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15782$as_echo_n "checking for $ac_word... " >&6; }
15783if test "${ac_cv_path_MSGFMT+set}" = set; then :
15784 $as_echo_n "(cached) " >&6
d7040cdb
SE
15785else
15786 case "$MSGFMT" in
15787 [\\/]* | ?:[\\/]*)
15788 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15789 ;;
15790 *)
15791 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15792 for ac_dir in $PATH; do
15793 IFS="$ac_save_IFS"
15794 test -z "$ac_dir" && ac_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15797 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15798 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15799 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15800 break 2
15801 fi
15802 fi
15803 done
15804 done
15805 IFS="$ac_save_IFS"
15806 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15807 ;;
15808esac
15809fi
15810MSGFMT="$ac_cv_path_MSGFMT"
15811if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15813$as_echo "$MSGFMT" >&6; }
d7040cdb 15814else
81ecdfbb
RW
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15816$as_echo "no" >&6; }
d7040cdb
SE
15817fi
15818
15819 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15820set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15822$as_echo_n "checking for $ac_word... " >&6; }
15823if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15824 $as_echo_n "(cached) " >&6
d7040cdb
SE
15825else
15826 case $GMSGFMT in
15827 [\\/]* | ?:[\\/]*)
15828 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15829 ;;
15830 *)
15831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15832for as_dir in $PATH
15833do
15834 IFS=$as_save_IFS
15835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15836 for ac_exec_ext in '' $ac_executable_extensions; do
15837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15838 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15840 break 2
15841 fi
15842done
81ecdfbb
RW
15843 done
15844IFS=$as_save_IFS
d7040cdb
SE
15845
15846 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15847 ;;
15848esac
15849fi
15850GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15851if test -n "$GMSGFMT"; then
81ecdfbb
RW
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15853$as_echo "$GMSGFMT" >&6; }
d7040cdb 15854else
81ecdfbb
RW
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856$as_echo "no" >&6; }
20e95c23 15857fi
42ecbf5e 15858
20e95c23 15859
252b5132 15860
81ecdfbb 15861
d7040cdb
SE
15862# Prepare PATH_SEPARATOR.
15863# The user is always right.
15864if test "${PATH_SEPARATOR+set}" != set; then
15865 echo "#! /bin/sh" >conf$$.sh
15866 echo "exit 0" >>conf$$.sh
15867 chmod +x conf$$.sh
15868 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15869 PATH_SEPARATOR=';'
15870 else
15871 PATH_SEPARATOR=:
15872 fi
15873 rm -f conf$$.sh
20e95c23 15874fi
252b5132 15875
d7040cdb
SE
15876# Find out how to test for executable files. Don't use a zero-byte file,
15877# as systems may use methods other than mode bits to determine executability.
15878cat >conf$$.file <<_ASEOF
15879#! /bin/sh
15880exit 0
15881_ASEOF
15882chmod +x conf$$.file
15883if test -x conf$$.file >/dev/null 2>&1; then
15884 ac_executable_p="test -x"
20e95c23 15885else
d7040cdb
SE
15886 ac_executable_p="test -f"
15887fi
15888rm -f conf$$.file
20e95c23 15889
d7040cdb
SE
15890# Extract the first word of "xgettext", so it can be a program name with args.
15891set dummy xgettext; ac_word=$2
81ecdfbb
RW
15892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15893$as_echo_n "checking for $ac_word... " >&6; }
15894if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15895 $as_echo_n "(cached) " >&6
252b5132 15896else
d7040cdb
SE
15897 case "$XGETTEXT" in
15898 [\\/]* | ?:[\\/]*)
15899 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15900 ;;
15901 *)
15902 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15903 for ac_dir in $PATH; do
15904 IFS="$ac_save_IFS"
15905 test -z "$ac_dir" && ac_dir=.
15906 for ac_exec_ext in '' $ac_executable_extensions; do
15907 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15908 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15909 (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
15910 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15911 break 2
15912 fi
15913 fi
15914 done
15915 done
15916 IFS="$ac_save_IFS"
15917 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15918 ;;
15919esac
252b5132 15920fi
d7040cdb
SE
15921XGETTEXT="$ac_cv_path_XGETTEXT"
15922if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15924$as_echo "$XGETTEXT" >&6; }
d5fbea21 15925else
81ecdfbb
RW
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15927$as_echo "no" >&6; }
d5fbea21
DJ
15928fi
15929
d7040cdb 15930 rm -f messages.po
d5fbea21 15931
20e95c23 15932
d7040cdb
SE
15933# Prepare PATH_SEPARATOR.
15934# The user is always right.
15935if test "${PATH_SEPARATOR+set}" != set; then
15936 echo "#! /bin/sh" >conf$$.sh
15937 echo "exit 0" >>conf$$.sh
15938 chmod +x conf$$.sh
15939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15940 PATH_SEPARATOR=';'
15941 else
15942 PATH_SEPARATOR=:
15943 fi
15944 rm -f conf$$.sh
15945fi
20e95c23 15946
d7040cdb
SE
15947# Find out how to test for executable files. Don't use a zero-byte file,
15948# as systems may use methods other than mode bits to determine executability.
15949cat >conf$$.file <<_ASEOF
15950#! /bin/sh
15951exit 0
15952_ASEOF
15953chmod +x conf$$.file
15954if test -x conf$$.file >/dev/null 2>&1; then
15955 ac_executable_p="test -x"
15956else
15957 ac_executable_p="test -f"
15958fi
15959rm -f conf$$.file
20e95c23 15960
d7040cdb
SE
15961# Extract the first word of "msgmerge", so it can be a program name with args.
15962set dummy msgmerge; ac_word=$2
81ecdfbb
RW
15963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15964$as_echo_n "checking for $ac_word... " >&6; }
15965if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15966 $as_echo_n "(cached) " >&6
d7040cdb
SE
15967else
15968 case "$MSGMERGE" in
15969 [\\/]* | ?:[\\/]*)
15970 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15971 ;;
15972 *)
15973 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15974 for ac_dir in $PATH; do
15975 IFS="$ac_save_IFS"
15976 test -z "$ac_dir" && ac_dir=.
15977 for ac_exec_ext in '' $ac_executable_extensions; do
15978 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15979 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15980 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15981 break 2
15982 fi
15983 fi
15984 done
15985 done
15986 IFS="$ac_save_IFS"
15987 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15988 ;;
15989esac
15990fi
15991MSGMERGE="$ac_cv_path_MSGMERGE"
15992if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15994$as_echo "$MSGMERGE" >&6; }
d7040cdb 15995else
81ecdfbb
RW
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15997$as_echo "no" >&6; }
d7040cdb 15998fi
20e95c23
DJ
15999
16000
d7040cdb
SE
16001 if test "$GMSGFMT" != ":"; then
16002 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16003 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16004 : ;
16005 else
16006 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16008$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16009 GMSGFMT=":"
16010 fi
16011 fi
20e95c23 16012
d7040cdb
SE
16013 if test "$XGETTEXT" != ":"; then
16014 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16015 (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
16016 : ;
16017 else
81ecdfbb
RW
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16019$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16020 XGETTEXT=":"
16021 fi
16022 rm -f messages.po
20e95c23 16023 fi
42ecbf5e 16024
81ecdfbb 16025 ac_config_commands="$ac_config_commands default-1"
252b5132 16026
42ecbf5e 16027
252b5132 16028
42ecbf5e
DJ
16029
16030
d7040cdb 16031for ac_prog in 'bison -y' byacc
20e95c23 16032do
d7040cdb
SE
16033 # Extract the first word of "$ac_prog", so it can be a program name with args.
16034set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16036$as_echo_n "checking for $ac_word... " >&6; }
16037if test "${ac_cv_prog_YACC+set}" = set; then :
16038 $as_echo_n "(cached) " >&6
20e95c23 16039else
d7040cdb
SE
16040 if test -n "$YACC"; then
16041 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16042else
d7040cdb
SE
16043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16044for as_dir in $PATH
16045do
16046 IFS=$as_save_IFS
16047 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16048 for ac_exec_ext in '' $ac_executable_extensions; do
16049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16050 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16052 break 2
16053 fi
16054done
81ecdfbb
RW
16055 done
16056IFS=$as_save_IFS
42ecbf5e 16057
42ecbf5e 16058fi
e5a52504 16059fi
d7040cdb
SE
16060YACC=$ac_cv_prog_YACC
16061if test -n "$YACC"; then
81ecdfbb
RW
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16063$as_echo "$YACC" >&6; }
42ecbf5e 16064else
81ecdfbb
RW
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066$as_echo "no" >&6; }
42ecbf5e 16067fi
252b5132 16068
81ecdfbb 16069
d7040cdb 16070 test -n "$YACC" && break
42ecbf5e 16071done
d7040cdb 16072test -n "$YACC" || YACC="yacc"
d15b04bd 16073
d7040cdb
SE
16074for ac_prog in flex lex
16075do
16076 # Extract the first word of "$ac_prog", so it can be a program name with args.
16077set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16079$as_echo_n "checking for $ac_word... " >&6; }
16080if test "${ac_cv_prog_LEX+set}" = set; then :
16081 $as_echo_n "(cached) " >&6
d15b04bd 16082else
d7040cdb
SE
16083 if test -n "$LEX"; then
16084 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16085else
16086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087for as_dir in $PATH
16088do
16089 IFS=$as_save_IFS
16090 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16091 for ac_exec_ext in '' $ac_executable_extensions; do
16092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16093 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16095 break 2
16096 fi
16097done
81ecdfbb
RW
16098 done
16099IFS=$as_save_IFS
d7040cdb
SE
16100
16101fi
16102fi
16103LEX=$ac_cv_prog_LEX
16104if test -n "$LEX"; then
81ecdfbb
RW
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16106$as_echo "$LEX" >&6; }
d7040cdb 16107else
81ecdfbb
RW
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109$as_echo "no" >&6; }
d15b04bd 16110fi
e5a52504 16111
81ecdfbb 16112
d7040cdb
SE
16113 test -n "$LEX" && break
16114done
16115test -n "$LEX" || LEX=":"
42ecbf5e 16116
81ecdfbb
RW
16117if test "x$LEX" != "x:"; then
16118 cat >conftest.l <<_ACEOF
16119%%
16120a { ECHO; }
16121b { REJECT; }
16122c { yymore (); }
16123d { yyless (1); }
16124e { yyless (input () != 0); }
16125f { unput (yytext[0]); }
16126. { BEGIN INITIAL; }
16127%%
16128#ifdef YYTEXT_POINTER
16129extern char *yytext;
d7040cdb 16130#endif
42ecbf5e 16131int
81ecdfbb 16132main (void)
42ecbf5e 16133{
81ecdfbb 16134 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16135}
16136_ACEOF
81ecdfbb
RW
16137{ { ac_try="$LEX conftest.l"
16138case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141esac
16142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16143$as_echo "$ac_try_echo"; } >&5
16144 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16145 ac_status=$?
81ecdfbb
RW
16146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16147 test $ac_status = 0; }
16148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16149$as_echo_n "checking lex output file root... " >&6; }
16150if test "${ac_cv_prog_lex_root+set}" = set; then :
16151 $as_echo_n "(cached) " >&6
42ecbf5e 16152else
42ecbf5e 16153
81ecdfbb
RW
16154if test -f lex.yy.c; then
16155 ac_cv_prog_lex_root=lex.yy
16156elif test -f lexyy.c; then
16157 ac_cv_prog_lex_root=lexyy
16158else
16159 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16160fi
42ecbf5e 16161fi
81ecdfbb
RW
16162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16163$as_echo "$ac_cv_prog_lex_root" >&6; }
16164LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16165
81ecdfbb
RW
16166if test -z "${LEXLIB+set}"; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16168$as_echo_n "checking lex library... " >&6; }
16169if test "${ac_cv_lib_lex+set}" = set; then :
16170 $as_echo_n "(cached) " >&6
252b5132 16171else
20e95c23 16172
81ecdfbb
RW
16173 ac_save_LIBS=$LIBS
16174 ac_cv_lib_lex='none needed'
16175 for ac_lib in '' -lfl -ll; do
16176 LIBS="$ac_lib $ac_save_LIBS"
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h. */
16179`cat $LEX_OUTPUT_ROOT.c`
16180_ACEOF
16181if ac_fn_c_try_link "$LINENO"; then :
16182 ac_cv_lib_lex=$ac_lib
20e95c23 16183fi
81ecdfbb
RW
16184rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 test "$ac_cv_lib_lex" != 'none needed' && break
16187 done
16188 LIBS=$ac_save_LIBS
20e95c23
DJ
16189
16190fi
81ecdfbb
RW
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16192$as_echo "$ac_cv_lib_lex" >&6; }
16193 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16194fi
20e95c23 16195
20e95c23 16196
81ecdfbb
RW
16197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16198$as_echo_n "checking whether yytext is a pointer... " >&6; }
16199if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16200 $as_echo_n "(cached) " >&6
d7040cdb
SE
16201else
16202 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16203# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16204# not all implementations provide the %pointer and %array declarations.
16205ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16206ac_save_LIBS=$LIBS
81ecdfbb
RW
16207LIBS="$LEXLIB $ac_save_LIBS"
16208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209/* end confdefs.h. */
16210#define YYTEXT_POINTER 1
d7040cdb 16211`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16212_ACEOF
81ecdfbb 16213if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16214 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16215fi
81ecdfbb
RW
16216rm -f core conftest.err conftest.$ac_objext \
16217 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16218LIBS=$ac_save_LIBS
d7040cdb
SE
16219
16220fi
81ecdfbb
RW
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16222$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16223if test $ac_cv_prog_lex_yytext_pointer = yes; then
16224
81ecdfbb 16225$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16226
16227fi
81ecdfbb 16228rm -f conftest.l $LEX_OUTPUT_ROOT.c
d7040cdb
SE
16229
16230fi
16231if test "$LEX" = :; then
16232 LEX=${am_missing_run}flex
16233fi
16234
81ecdfbb
RW
16235
16236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16237$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16238 # Check whether --enable-maintainer-mode was given.
16239if test "${enable_maintainer_mode+set}" = set; then :
16240 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16241else
d7040cdb 16242 USE_MAINTAINER_MODE=no
81ecdfbb 16243fi
d7040cdb 16244
81ecdfbb
RW
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16246$as_echo "$USE_MAINTAINER_MODE" >&6; }
16247 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16248 MAINTAINER_MODE_TRUE=
16249 MAINTAINER_MODE_FALSE='#'
16250else
16251 MAINTAINER_MODE_TRUE='#'
16252 MAINTAINER_MODE_FALSE=
252b5132 16253fi
252b5132 16254
d7040cdb
SE
16255 MAINT=$MAINTAINER_MODE_TRUE
16256
16257
81ecdfbb 16258 if false; then
d7040cdb
SE
16259 GENINSRC_NEVER_TRUE=
16260 GENINSRC_NEVER_FALSE='#'
16261else
16262 GENINSRC_NEVER_TRUE='#'
16263 GENINSRC_NEVER_FALSE=
252b5132
RH
16264fi
16265
81ecdfbb
RW
16266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16267$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16268if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16269 $as_echo_n "(cached) " >&6
eccbf555
AM
16270else
16271 echo abfoo >t1
16272 echo cdfoo >t2
16273 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16274 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16275 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16276 :
16277 else
16278 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16279 fi
16280 fi
16281 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16282 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16283 :
16284 else
16285 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16286 fi
16287 fi
16288 rm t1 t2
16289
16290fi
81ecdfbb
RW
16291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16292$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16293do_compare="$gcc_cv_prog_cmp_skip"
16294
16295
d7040cdb
SE
16296
16297. ${srcdir}/configure.host
16298
16299
16300
16301
252b5132
RH
16302
16303
6738cadc 16304
b27caf75 16305
58797674 16306for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16307do :
16308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16309ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16310eval as_val=\$$as_ac_Header
16311 if test "x$as_val" = x""yes; then :
42ecbf5e 16312 cat >>confdefs.h <<_ACEOF
81ecdfbb 16313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16314_ACEOF
16315
16316fi
16317
252b5132
RH
16318done
16319
5d3236ee
DK
16320for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16321do :
16322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16323ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16324eval as_val=\$$as_ac_Header
16325 if test "x$as_val" = x""yes; then :
16326 cat >>confdefs.h <<_ACEOF
16327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16328_ACEOF
16329
16330fi
16331
16332done
16333
208a4923
NC
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16335$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16336if test "${gcc_cv_header_string+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16338else
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h. */
16341#include <string.h>
16342#include <strings.h>
16343int
16344main ()
16345{
16346
16347 ;
16348 return 0;
16349}
16350_ACEOF
16351if ac_fn_c_try_compile "$LINENO"; then :
16352 gcc_cv_header_string=yes
16353else
16354 gcc_cv_header_string=no
16355fi
16356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357fi
16358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16359$as_echo "$gcc_cv_header_string" >&6; }
16360if test $gcc_cv_header_string = yes; then
16361
16362$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16363
16364fi
16365
44350750 16366for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16367do :
16368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16369ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16370eval as_val=\$$as_ac_var
16371 if test "x$as_val" = x""yes; then :
42ecbf5e 16372 cat >>confdefs.h <<_ACEOF
81ecdfbb 16373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16374_ACEOF
252b5132 16375
252b5132
RH
16376fi
16377done
16378
5d3236ee
DK
16379for ac_func in open lseek close
16380do :
16381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16382ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16383eval as_val=\$$as_ac_var
16384 if test "x$as_val" = x""yes; then :
16385 cat >>confdefs.h <<_ACEOF
16386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16387_ACEOF
16388
16389fi
16390done
16391
252b5132 16392ac_header_dirent=no
42ecbf5e 16393for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16394 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16396$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16398 $as_echo_n "(cached) " >&6
16399else
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16401/* end confdefs.h. */
252b5132
RH
16402#include <sys/types.h>
16403#include <$ac_hdr>
42ecbf5e
DJ
16404
16405int
16406main ()
16407{
16408if ((DIR *) 0)
16409return 0;
16410 ;
16411 return 0;
16412}
16413_ACEOF
81ecdfbb 16414if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16415 eval "$as_ac_Header=yes"
16416else
81ecdfbb 16417 eval "$as_ac_Header=no"
42ecbf5e 16418fi
81ecdfbb 16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16420fi
81ecdfbb
RW
16421eval ac_res=\$$as_ac_Header
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16423$as_echo "$ac_res" >&6; }
16424eval as_val=\$$as_ac_Header
16425 if test "x$as_val" = x""yes; then :
42ecbf5e 16426 cat >>confdefs.h <<_ACEOF
81ecdfbb 16427#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16428_ACEOF
16429
16430ac_header_dirent=$ac_hdr; break
d15b04bd 16431fi
42ecbf5e 16432
d15b04bd
L
16433done
16434# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16435if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16437$as_echo_n "checking for library containing opendir... " >&6; }
16438if test "${ac_cv_search_opendir+set}" = set; then :
16439 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16440else
16441 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16443/* end confdefs.h. */
16444
81ecdfbb
RW
16445/* Override any GCC internal prototype to avoid an error.
16446 Use char because int might match the return type of a GCC
16447 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16448#ifdef __cplusplus
16449extern "C"
16450#endif
42ecbf5e
DJ
16451char opendir ();
16452int
16453main ()
16454{
81ecdfbb 16455return opendir ();
42ecbf5e
DJ
16456 ;
16457 return 0;
16458}
16459_ACEOF
81ecdfbb
RW
16460for ac_lib in '' dir; do
16461 if test -z "$ac_lib"; then
16462 ac_res="none required"
16463 else
16464 ac_res=-l$ac_lib
42ecbf5e 16465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16466 fi
16467 if ac_fn_c_try_link "$LINENO"; then :
16468 ac_cv_search_opendir=$ac_res
16469fi
16470rm -f core conftest.err conftest.$ac_objext \
16471 conftest$ac_exeext
16472 if test "${ac_cv_search_opendir+set}" = set; then :
16473 break
16474fi
16475done
16476if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16477
42ecbf5e 16478else
81ecdfbb 16479 ac_cv_search_opendir=no
252b5132 16480fi
81ecdfbb 16481rm conftest.$ac_ext
42ecbf5e
DJ
16482LIBS=$ac_func_search_save_LIBS
16483fi
81ecdfbb
RW
16484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16485$as_echo "$ac_cv_search_opendir" >&6; }
16486ac_res=$ac_cv_search_opendir
16487if test "$ac_res" != no; then :
16488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16489
d15b04bd 16490fi
252b5132
RH
16491
16492else
81ecdfbb
RW
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16494$as_echo_n "checking for library containing opendir... " >&6; }
16495if test "${ac_cv_search_opendir+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
252b5132 16497else
42ecbf5e 16498 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16500/* end confdefs.h. */
16501
81ecdfbb
RW
16502/* Override any GCC internal prototype to avoid an error.
16503 Use char because int might match the return type of a GCC
16504 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16505#ifdef __cplusplus
16506extern "C"
16507#endif
42ecbf5e
DJ
16508char opendir ();
16509int
16510main ()
16511{
81ecdfbb 16512return opendir ();
42ecbf5e
DJ
16513 ;
16514 return 0;
16515}
16516_ACEOF
81ecdfbb
RW
16517for ac_lib in '' x; do
16518 if test -z "$ac_lib"; then
16519 ac_res="none required"
16520 else
16521 ac_res=-l$ac_lib
42ecbf5e 16522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16523 fi
16524 if ac_fn_c_try_link "$LINENO"; then :
16525 ac_cv_search_opendir=$ac_res
16526fi
16527rm -f core conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext
16529 if test "${ac_cv_search_opendir+set}" = set; then :
16530 break
16531fi
16532done
16533if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16534
42ecbf5e 16535else
81ecdfbb 16536 ac_cv_search_opendir=no
252b5132 16537fi
81ecdfbb 16538rm conftest.$ac_ext
42ecbf5e 16539LIBS=$ac_func_search_save_LIBS
252b5132 16540fi
81ecdfbb
RW
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16542$as_echo "$ac_cv_search_opendir" >&6; }
16543ac_res=$ac_cv_search_opendir
16544if test "$ac_res" != no; then :
16545 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16546
d15b04bd 16547fi
252b5132
RH
16548
16549fi
16550
16551
2aec968d
L
16552for ac_header in stdlib.h unistd.h
16553do :
16554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16555ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16556eval as_val=\$$as_ac_Header
16557 if test "x$as_val" = x""yes; then :
16558 cat >>confdefs.h <<_ACEOF
16559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16560_ACEOF
16561
16562fi
16563
16564done
16565
16566for ac_func in getpagesize
16567do :
16568 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16569if test "x$ac_cv_func_getpagesize" = x""yes; then :
16570 cat >>confdefs.h <<_ACEOF
16571#define HAVE_GETPAGESIZE 1
16572_ACEOF
16573
16574fi
16575done
16576
16577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16578$as_echo_n "checking for working mmap... " >&6; }
16579if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16580 $as_echo_n "(cached) " >&6
16581else
16582 if test "$cross_compiling" = yes; then :
16583 ac_cv_func_mmap_fixed_mapped=no
16584else
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586/* end confdefs.h. */
16587$ac_includes_default
16588/* malloc might have been renamed as rpl_malloc. */
16589#undef malloc
16590
16591/* Thanks to Mike Haertel and Jim Avera for this test.
16592 Here is a matrix of mmap possibilities:
16593 mmap private not fixed
16594 mmap private fixed at somewhere currently unmapped
16595 mmap private fixed at somewhere already mapped
16596 mmap shared not fixed
16597 mmap shared fixed at somewhere currently unmapped
16598 mmap shared fixed at somewhere already mapped
16599 For private mappings, we should verify that changes cannot be read()
16600 back from the file, nor mmap's back from the file at a different
16601 address. (There have been systems where private was not correctly
16602 implemented like the infamous i386 svr4.0, and systems where the
16603 VM page cache was not coherent with the file system buffer cache
16604 like early versions of FreeBSD and possibly contemporary NetBSD.)
16605 For shared mappings, we should conversely verify that changes get
16606 propagated back to all the places they're supposed to be.
16607
16608 Grep wants private fixed already mapped.
16609 The main things grep needs to know about mmap are:
16610 * does it exist and is it safe to write into the mmap'd area
16611 * how to use it (BSD variants) */
16612
16613#include <fcntl.h>
16614#include <sys/mman.h>
16615
16616#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16617char *malloc ();
16618#endif
16619
16620/* This mess was copied from the GNU getpagesize.h. */
16621#ifndef HAVE_GETPAGESIZE
16622/* Assume that all systems that can run configure have sys/param.h. */
16623# ifndef HAVE_SYS_PARAM_H
16624# define HAVE_SYS_PARAM_H 1
16625# endif
16626
16627# ifdef _SC_PAGESIZE
16628# define getpagesize() sysconf(_SC_PAGESIZE)
16629# else /* no _SC_PAGESIZE */
16630# ifdef HAVE_SYS_PARAM_H
16631# include <sys/param.h>
16632# ifdef EXEC_PAGESIZE
16633# define getpagesize() EXEC_PAGESIZE
16634# else /* no EXEC_PAGESIZE */
16635# ifdef NBPG
16636# define getpagesize() NBPG * CLSIZE
16637# ifndef CLSIZE
16638# define CLSIZE 1
16639# endif /* no CLSIZE */
16640# else /* no NBPG */
16641# ifdef NBPC
16642# define getpagesize() NBPC
16643# else /* no NBPC */
16644# ifdef PAGESIZE
16645# define getpagesize() PAGESIZE
16646# endif /* PAGESIZE */
16647# endif /* no NBPC */
16648# endif /* no NBPG */
16649# endif /* no EXEC_PAGESIZE */
16650# else /* no HAVE_SYS_PARAM_H */
16651# define getpagesize() 8192 /* punt totally */
16652# endif /* no HAVE_SYS_PARAM_H */
16653# endif /* no _SC_PAGESIZE */
16654
16655#endif /* no HAVE_GETPAGESIZE */
16656
16657int
16658main ()
16659{
16660 char *data, *data2, *data3;
16661 int i, pagesize;
16662 int fd;
16663
16664 pagesize = getpagesize ();
16665
16666 /* First, make a file with some known garbage in it. */
16667 data = (char *) malloc (pagesize);
16668 if (!data)
16669 return 1;
16670 for (i = 0; i < pagesize; ++i)
16671 *(data + i) = rand ();
16672 umask (0);
16673 fd = creat ("conftest.mmap", 0600);
16674 if (fd < 0)
16675 return 1;
16676 if (write (fd, data, pagesize) != pagesize)
16677 return 1;
16678 close (fd);
16679
16680 /* Next, try to mmap the file at a fixed address which already has
16681 something else allocated at it. If we can, also make sure that
16682 we see the same garbage. */
16683 fd = open ("conftest.mmap", O_RDWR);
16684 if (fd < 0)
16685 return 1;
16686 data2 = (char *) malloc (2 * pagesize);
16687 if (!data2)
16688 return 1;
16689 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16692 return 1;
16693 for (i = 0; i < pagesize; ++i)
16694 if (*(data + i) != *(data2 + i))
16695 return 1;
16696
16697 /* Finally, make sure that changes to the mapped area do not
16698 percolate back to the file as seen by read(). (This is a bug on
16699 some variants of i386 svr4.0.) */
16700 for (i = 0; i < pagesize; ++i)
16701 *(data2 + i) = *(data2 + i) + 1;
16702 data3 = (char *) malloc (pagesize);
16703 if (!data3)
16704 return 1;
16705 if (read (fd, data3, pagesize) != pagesize)
16706 return 1;
16707 for (i = 0; i < pagesize; ++i)
16708 if (*(data + i) != *(data3 + i))
16709 return 1;
16710 close (fd);
16711 return 0;
16712}
16713_ACEOF
16714if ac_fn_c_try_run "$LINENO"; then :
16715 ac_cv_func_mmap_fixed_mapped=yes
16716else
16717 ac_cv_func_mmap_fixed_mapped=no
16718fi
16719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16720 conftest.$ac_objext conftest.beam conftest.$ac_ext
16721fi
16722
16723fi
16724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16725$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16726if test $ac_cv_func_mmap_fixed_mapped = yes; then
16727
16728$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16729
16730fi
16731rm -f conftest.mmap
16732
16733
5d3236ee
DK
16734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16735$as_echo_n "checking for library containing dlopen... " >&6; }
16736if test "${ac_cv_search_dlopen+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738else
16739 ac_func_search_save_LIBS=$LIBS
16740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741/* end confdefs.h. */
16742
16743/* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
16746#ifdef __cplusplus
16747extern "C"
16748#endif
16749char dlopen ();
16750int
16751main ()
16752{
16753return dlopen ();
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758for ac_lib in '' dl; do
16759 if test -z "$ac_lib"; then
16760 ac_res="none required"
16761 else
16762 ac_res=-l$ac_lib
16763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16764 fi
16765 if ac_fn_c_try_link "$LINENO"; then :
16766 ac_cv_search_dlopen=$ac_res
16767fi
16768rm -f core conftest.err conftest.$ac_objext \
16769 conftest$ac_exeext
16770 if test "${ac_cv_search_dlopen+set}" = set; then :
16771 break
16772fi
16773done
16774if test "${ac_cv_search_dlopen+set}" = set; then :
16775
16776else
16777 ac_cv_search_dlopen=no
16778fi
16779rm conftest.$ac_ext
16780LIBS=$ac_func_search_save_LIBS
16781fi
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16783$as_echo "$ac_cv_search_dlopen" >&6; }
16784ac_res=$ac_cv_search_dlopen
16785if test "$ac_res" != no; then :
16786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16787
3917d5d5
DK
16788fi
16789
b879806f 16790 if test x$plugins = xyes; then
5d3236ee
DK
16791 ENABLE_PLUGINS_TRUE=
16792 ENABLE_PLUGINS_FALSE='#'
16793else
16794 ENABLE_PLUGINS_TRUE='#'
16795 ENABLE_PLUGINS_FALSE=
16796fi
16797
16798
02ecc8e9
L
16799# Check whether --enable-initfini-array was given.
16800if test "${enable_initfini_array+set}" = set; then :
16801 enableval=$enable_initfini_array;
16802else
16803
16804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16805$as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16806if test "${gcc_cv_initfini_array+set}" = set; then :
16807 $as_echo_n "(cached) " >&6
16808else
16809 if test "x${build}" = "x${target}" ; then
16810 if test "$cross_compiling" = yes; then :
16811 gcc_cv_initfini_array=no
16812else
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814/* end confdefs.h. */
16815
16816static int x = -1;
16817int main (void) { return x; }
16818int foo (void) { x = 0; }
16819int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16820_ACEOF
16821if ac_fn_c_try_run "$LINENO"; then :
16822 gcc_cv_initfini_array=yes
16823else
16824 gcc_cv_initfini_array=no
16825fi
16826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16827 conftest.$ac_objext conftest.beam conftest.$ac_ext
16828fi
16829
16830 else
16831 gcc_cv_initfini_array=no
16832 fi
16833fi
16834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16835$as_echo "$gcc_cv_initfini_array" >&6; }
16836 enable_initfini_array=$gcc_cv_initfini_array
16837
16838fi
16839
16840
16841if test $enable_initfini_array = yes; then
16842
16843$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16844
16845fi
16846
81ecdfbb
RW
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16848$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16849if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
34875e64 16851else
81ecdfbb 16852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16853/* end confdefs.h. */
34875e64 16854#include <unistd.h>
42ecbf5e
DJ
16855int
16856main ()
16857{
34875e64 16858extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16859 ;
16860 return 0;
16861}
16862_ACEOF
81ecdfbb 16863if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16864 ld_cv_decl_getopt_unistd_h=yes
16865else
81ecdfbb 16866 ld_cv_decl_getopt_unistd_h=no
34875e64 16867fi
81ecdfbb 16868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16869fi
16870
81ecdfbb
RW
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16872$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16873if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16874
81ecdfbb 16875$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16876
16877fi
42ecbf5e 16878
252b5132
RH
16879
16880case "${host}" in
a8100d5b 16881*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16882
81ecdfbb 16883$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16884 ;;
16885esac
16886
81ecdfbb
RW
16887ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16888if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16889 ac_have_decl=1
252b5132 16890else
81ecdfbb
RW
16891 ac_have_decl=0
16892fi
502bdb00 16893
81ecdfbb
RW
16894cat >>confdefs.h <<_ACEOF
16895#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16896_ACEOF
81ecdfbb
RW
16897ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16898if test "x$ac_cv_have_decl_free" = x""yes; then :
16899 ac_have_decl=1
252b5132 16900else
81ecdfbb 16901 ac_have_decl=0
252b5132
RH
16902fi
16903
502bdb00 16904cat >>confdefs.h <<_ACEOF
81ecdfbb 16905#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16906_ACEOF
81ecdfbb
RW
16907ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16908if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16909 ac_have_decl=1
16910else
16911 ac_have_decl=0
16912fi
42ecbf5e 16913
81ecdfbb
RW
16914cat >>confdefs.h <<_ACEOF
16915#define HAVE_DECL_SBRK $ac_have_decl
16916_ACEOF
16917ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16918if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16919 ac_have_decl=1
16920else
16921 ac_have_decl=0
16922fi
502bdb00 16923
81ecdfbb
RW
16924cat >>confdefs.h <<_ACEOF
16925#define HAVE_DECL_GETENV $ac_have_decl
16926_ACEOF
16927ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16928if test "x$ac_cv_have_decl_environ" = x""yes; then :
16929 ac_have_decl=1
502bdb00 16930else
81ecdfbb
RW
16931 ac_have_decl=0
16932fi
16933
16934cat >>confdefs.h <<_ACEOF
16935#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16936_ACEOF
252b5132 16937
252b5132 16938
81ecdfbb
RW
16939# Link in zlib if we can. This is needed only for the bootstrap tests
16940# right now, since those tests use libbfd, which depends on zlib.
52546677
RM
16941
16942 # See if the user specified whether he wants zlib support or not.
16943
16944# Check whether --with-zlib was given.
16945if test "${with_zlib+set}" = set; then :
16946 withval=$with_zlib;
16947else
16948 with_zlib=auto
16949fi
16950
16951
16952 if test "$with_zlib" != "no"; then
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
16954$as_echo_n "checking for library containing zlibVersion... " >&6; }
16955if test "${ac_cv_search_zlibVersion+set}" = set; then :
16956 $as_echo_n "(cached) " >&6
252b5132 16957else
81ecdfbb
RW
16958 ac_func_search_save_LIBS=$LIBS
16959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16960/* end confdefs.h. */
502bdb00 16961
81ecdfbb
RW
16962/* Override any GCC internal prototype to avoid an error.
16963 Use char because int might match the return type of a GCC
4474d12b 16964 builtin and then its argument prototype would still apply. */
4474d12b
CS
16965#ifdef __cplusplus
16966extern "C"
16967#endif
4474d12b
CS
16968char zlibVersion ();
16969int
16970main ()
16971{
81ecdfbb 16972return zlibVersion ();
4474d12b
CS
16973 ;
16974 return 0;
16975}
16976_ACEOF
81ecdfbb
RW
16977for ac_lib in '' z; do
16978 if test -z "$ac_lib"; then
16979 ac_res="none required"
4474d12b 16980 else
81ecdfbb
RW
16981 ac_res=-l$ac_lib
16982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474d12b 16983 fi
81ecdfbb
RW
16984 if ac_fn_c_try_link "$LINENO"; then :
16985 ac_cv_search_zlibVersion=$ac_res
4474d12b 16986fi
81ecdfbb
RW
16987rm -f core conftest.err conftest.$ac_objext \
16988 conftest$ac_exeext
16989 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16990 break
4474d12b 16991fi
81ecdfbb
RW
16992done
16993if test "${ac_cv_search_zlibVersion+set}" = set; then :
4474d12b 16994
4474d12b 16995else
81ecdfbb 16996 ac_cv_search_zlibVersion=no
4474d12b 16997fi
81ecdfbb
RW
16998rm conftest.$ac_ext
16999LIBS=$ac_func_search_save_LIBS
4474d12b 17000fi
81ecdfbb
RW
17001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
17002$as_echo "$ac_cv_search_zlibVersion" >&6; }
17003ac_res=$ac_cv_search_zlibVersion
17004if test "$ac_res" != no; then :
17005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17006 for ac_header in zlib.h
17007do :
17008 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17009if test "x$ac_cv_header_zlib_h" = x""yes; then :
4474d12b 17010 cat >>confdefs.h <<_ACEOF
81ecdfbb 17011#define HAVE_ZLIB_H 1
4474d12b
CS
17012_ACEOF
17013
17014fi
17015
17016done
17017
17018fi
17019
52546677
RM
17020 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
17021 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
17022 fi
17023 fi
17024
4474d12b 17025
597e2591
ILT
17026# When converting linker scripts into strings for use in emulation
17027# files, use astring.sed if the compiler supports ANSI string
17028# concatenation, or ostring.sed otherwise. This is to support the
17029# broken Microsoft MSVC compiler, which limits the length of string
17030# constants, while still supporting pre-ANSI compilers which do not
17031# support string concatenation.
81ecdfbb
RW
17032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17033$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17034if test "${ld_cv_string_concatenation+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
42ecbf5e 17036else
81ecdfbb 17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17038/* end confdefs.h. */
81ecdfbb 17039
314e9a4e
L
17040int
17041main ()
17042{
81ecdfbb 17043char *a = "a" "a";
314e9a4e
L
17044 ;
17045 return 0;
17046}
17047_ACEOF
81ecdfbb
RW
17048if ac_fn_c_try_compile "$LINENO"; then :
17049 ld_cv_string_concatenation=yes
314e9a4e 17050else
81ecdfbb 17051 ld_cv_string_concatenation=no
314e9a4e 17052fi
81ecdfbb 17053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17054fi
81ecdfbb
RW
17055
17056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17057$as_echo "$ld_cv_string_concatenation" >&6; }
17058if test "$ld_cv_string_concatenation" = "yes"; then
17059 STRINGIFY=astring.sed
17060else
17061 STRINGIFY=ostring.sed
314e9a4e 17062fi
81ecdfbb
RW
17063
17064
17065# target-specific stuff:
17066
17067all_targets=
17068EMUL=
17069all_emuls=
17070all_emul_extras=
17071all_libpath=
17072
17073rm -f tdirs
17074
bf9ef603 17075# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17076# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17077if test x${want64} = xfalse; then
17078 # The cast to long int works around a bug in the HP C Compiler
17079# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17080# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17081# This bug is HP SR number 8606223364.
17082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17083$as_echo_n "checking size of void *... " >&6; }
17084if test "${ac_cv_sizeof_void_p+set}" = set; then :
17085 $as_echo_n "(cached) " >&6
17086else
17087 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17088
17089else
17090 if test "$ac_cv_type_void_p" = yes; then
17091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17093{ as_fn_set_status 77
17094as_fn_error "cannot compute sizeof (void *)
17095See \`config.log' for more details." "$LINENO" 5; }; }
17096 else
17097 ac_cv_sizeof_void_p=0
17098 fi
17099fi
17100
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17103$as_echo "$ac_cv_sizeof_void_p" >&6; }
17104
17105
17106
17107cat >>confdefs.h <<_ACEOF
17108#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17109_ACEOF
17110
17111
17112 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17113 want64=true
17114 fi
17115fi
17116
81ecdfbb
RW
17117for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17118do
17119 if test "$targ_alias" = "all"; then
17120 all_targets=true
17121 else
17122 # Canonicalize the secondary target names.
17123 result=`$ac_config_sub $targ_alias 2>/dev/null`
17124 if test -n "$result"; then
17125 targ=$result
17126 else
17127 targ=$targ_alias
17128 fi
17129
17130 . ${srcdir}/configure.tgt
17131
17132 if test "$targ" = "$target"; then
17133 EMUL=$targ_emul
17134 fi
17135
17136 if test x${want64} = xfalse; then
17137 . ${srcdir}/../bfd/config.bfd
17138 fi
17139
17140 if test x${want64} = xtrue; then
17141 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17142 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17143 fi
17144
17145 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17146 case " $all_emuls " in
17147 *" e${i}.o "*) ;;
17148 *)
17149 all_emuls="$all_emuls e${i}.o"
17150 eval result=\$tdir_$i
17151 test -z "$result" && result=$targ_alias
17152 echo tdir_$i=$result >> tdirs
17153 ;;
17154 esac
17155 done
17156
17157 for i in $targ_emul $targ_extra_libpath; do
17158 case " $all_libpath " in
17159 *" ${i} "*) ;;
17160 *)
17161 if test -z "$all_libpath"; then
17162 all_libpath=${i}
17163 else
17164 all_libpath="$all_libpath ${i}"
17165 fi
17166 ;;
17167 esac
17168 done
17169
17170 for i in $targ_extra_ofiles; do
17171 case " $all_emul_extras " in
17172 *" ${i} "*) ;;
17173 *)
17174 all_emul_extras="$all_emul_extras ${i}"
17175 ;;
17176 esac
17177 done
5063daf7 17178
81ecdfbb
RW
17179 fi
17180done
17181
17182
17183
17184TDIRS=tdirs
17185
17186
17187if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17188 if test x${want64} = xtrue; then
17189 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17190 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17191 else
17192 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17193 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17194 fi
42ecbf5e
DJ
17195else
17196 EMULATION_OFILES=$all_emuls
17197 EMUL_EXTRA_OFILES=$all_emul_extras
17198fi
17199
17200
17201
17202
17203EMULATION_LIBPATH=$all_libpath
17204
17205
17206if test x${enable_static} = xno; then
17207 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17208else
17209 TESTBFDLIB="../bfd/.libs/libbfd.a"
17210fi
17211
17212
17213target_vendor=${target_vendor=$host_vendor}
17214case "$target_vendor" in
17215 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17216 *) EXTRA_SHLIB_EXTENSION= ;;
17217esac
17218
17219case "$target_os" in
17220 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17221esac
17222
17223if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17224
17225cat >>confdefs.h <<_ACEOF
17226#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17227_ACEOF
17228
17229fi
17230
108a6f8e
CD
17231
17232
17233
17234
31dd3154 17235
81ecdfbb 17236ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17237
42ecbf5e
DJ
17238cat >confcache <<\_ACEOF
17239# This file is a shell script that caches the results of configure
17240# tests run on this system so they can be shared between configure
17241# scripts and configure runs, see configure's option --config-cache.
17242# It is not useful on other systems. If it contains results you don't
17243# want to keep, you may remove or edit it.
17244#
17245# config.status only pays attention to the cache file if you give it
17246# the --recheck option to rerun configure.
17247#
17248# `ac_cv_env_foo' variables (set or unset) will be overridden when
17249# loading this file, other *unset* `ac_cv_foo' will be assigned the
17250# following values.
17251
17252_ACEOF
17253
17254# The following way of writing the cache mishandles newlines in values,
17255# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17256# So, we kill variables containing newlines.
42ecbf5e
DJ
17257# Ultrix sh set writes to stderr and can't be redirected directly,
17258# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17259(
17260 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17261 eval ac_val=\$$ac_var
17262 case $ac_val in #(
17263 *${as_nl}*)
17264 case $ac_var in #(
17265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17266$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17267 esac
17268 case $ac_var in #(
17269 _ | IFS | as_nl) ;; #(
17270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17271 *) { eval $ac_var=; unset $ac_var;} ;;
17272 esac ;;
17273 esac
17274 done
17275
42ecbf5e 17276 (set) 2>&1 |
81ecdfbb
RW
17277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17278 *${as_nl}ac_space=\ *)
17279 # `set' does not quote correctly, so add quotes: double-quote
17280 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17281 sed -n \
17282 "s/'/'\\\\''/g;
17283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17284 ;; #(
42ecbf5e
DJ
17285 *)
17286 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17288 ;;
81ecdfbb
RW
17289 esac |
17290 sort
17291) |
42ecbf5e 17292 sed '
81ecdfbb 17293 /^ac_cv_env_/b end
42ecbf5e 17294 t clear
81ecdfbb 17295 :clear
42ecbf5e
DJ
17296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17297 t end
81ecdfbb
RW
17298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17299 :end' >>confcache
17300if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17301 if test -w "$cache_file"; then
17302 test "x$cache_file" != "x/dev/null" &&
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17304$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17305 cat confcache >$cache_file
17306 else
81ecdfbb
RW
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17308$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17309 fi
17310fi
17311rm -f confcache
17312
17313test "x$prefix" = xNONE && prefix=$ac_default_prefix
17314# Let make expand exec_prefix.
17315test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17316
42ecbf5e
DJ
17317DEFS=-DHAVE_CONFIG_H
17318
17319ac_libobjs=
17320ac_ltlibobjs=
17321for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17322 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17326 # will be set to the directory where LIBOBJS objects are built.
17327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17329done
17330LIBOBJS=$ac_libobjs
17331
17332LTLIBOBJS=$ac_ltlibobjs
17333
17334
17335if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17336 as_fn_error "conditional \"AMDEP\" was never defined.
17337Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17338fi
17339if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17340 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17341Usually this means the macro was only invoked conditionally." "$LINENO" 5
17342fi
17343 if test -n "$EXEEXT"; then
17344 am__EXEEXT_TRUE=
17345 am__EXEEXT_FALSE='#'
17346else
17347 am__EXEEXT_TRUE='#'
17348 am__EXEEXT_FALSE=
42ecbf5e 17349fi
81ecdfbb 17350
64ac50ac
RW
17351if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17352 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17353Usually this means the macro was only invoked conditionally." "$LINENO" 5
17354fi
3cb62297
L
17355if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17356 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17357Usually this means the macro was only invoked conditionally." "$LINENO" 5
17358fi
42ecbf5e 17359if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17360 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17361Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17362fi
d5fbea21 17363if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17364 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17365Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17366fi
5d3236ee
DK
17367if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17368 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17369Usually this means the macro was only invoked conditionally." "$LINENO" 5
17370fi
42ecbf5e
DJ
17371
17372: ${CONFIG_STATUS=./config.status}
81ecdfbb 17373ac_write_fail=0
42ecbf5e
DJ
17374ac_clean_files_save=$ac_clean_files
17375ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17377$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17378as_write_fail=0
17379cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17380#! $SHELL
17381# Generated by $as_me.
17382# Run this file to recreate the current configuration.
17383# Compiler output produced by configure, useful for debugging
17384# configure, is in config.log if it exists.
17385
17386debug=false
17387ac_cs_recheck=false
17388ac_cs_silent=false
42ecbf5e 17389
81ecdfbb
RW
17390SHELL=\${CONFIG_SHELL-$SHELL}
17391export SHELL
17392_ASEOF
17393cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17394## -------------------- ##
17395## M4sh Initialization. ##
17396## -------------------- ##
42ecbf5e 17397
81ecdfbb
RW
17398# Be more Bourne compatible
17399DUALCASE=1; export DUALCASE # for MKS sh
17400if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17401 emulate sh
17402 NULLCMD=:
81ecdfbb 17403 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17404 # is contrary to our usage. Disable this feature.
17405 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17406 setopt NO_GLOB_SUBST
17407else
17408 case `(set -o) 2>/dev/null` in #(
17409 *posix*) :
17410 set -o posix ;; #(
17411 *) :
17412 ;;
17413esac
42ecbf5e 17414fi
42ecbf5e 17415
81ecdfbb
RW
17416
17417as_nl='
17418'
17419export as_nl
17420# Printing a long string crashes Solaris 7 /usr/bin/printf.
17421as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17422as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17423as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17424# Prefer a ksh shell builtin over an external printf program on Solaris,
17425# but without wasting forks for bash or zsh.
17426if test -z "$BASH_VERSION$ZSH_VERSION" \
17427 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17428 as_echo='print -r --'
17429 as_echo_n='print -rn --'
17430elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17431 as_echo='printf %s\n'
17432 as_echo_n='printf %s'
17433else
17434 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17435 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17436 as_echo_n='/usr/ucb/echo -n'
17437 else
17438 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17439 as_echo_n_body='eval
17440 arg=$1;
17441 case $arg in #(
17442 *"$as_nl"*)
17443 expr "X$arg" : "X\\(.*\\)$as_nl";
17444 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17445 esac;
17446 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17447 '
17448 export as_echo_n_body
17449 as_echo_n='sh -c $as_echo_n_body as_echo'
17450 fi
17451 export as_echo_body
17452 as_echo='sh -c $as_echo_body as_echo'
17453fi
17454
17455# The user is always right.
17456if test "${PATH_SEPARATOR+set}" != set; then
17457 PATH_SEPARATOR=:
17458 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17459 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17460 PATH_SEPARATOR=';'
17461 }
42ecbf5e
DJ
17462fi
17463
17464
81ecdfbb
RW
17465# IFS
17466# We need space, tab and new line, in precisely that order. Quoting is
17467# there to prevent editors from complaining about space-tab.
17468# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17469# splitting by setting IFS to empty value.)
17470IFS=" "" $as_nl"
17471
17472# Find who we are. Look in the path if we contain no directory separator.
17473case $0 in #((
17474 *[\\/]* ) as_myself=$0 ;;
17475 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17476for as_dir in $PATH
17477do
17478 IFS=$as_save_IFS
17479 test -z "$as_dir" && as_dir=.
17480 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17481 done
17482IFS=$as_save_IFS
17483
17484 ;;
17485esac
17486# We did not find ourselves, most probably we were run as `sh COMMAND'
17487# in which case we are not to be found in the path.
17488if test "x$as_myself" = x; then
17489 as_myself=$0
17490fi
17491if test ! -f "$as_myself"; then
17492 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17493 exit 1
17494fi
17495
17496# Unset variables that we do not need and which cause bugs (e.g. in
17497# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17498# suppresses any "Segmentation fault" message there. '((' could
17499# trigger a bug in pdksh 5.2.14.
17500for as_var in BASH_ENV ENV MAIL MAILPATH
17501do eval test x\${$as_var+set} = xset \
17502 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17503done
42ecbf5e
DJ
17504PS1='$ '
17505PS2='> '
17506PS4='+ '
17507
17508# NLS nuisances.
81ecdfbb
RW
17509LC_ALL=C
17510export LC_ALL
17511LANGUAGE=C
17512export LANGUAGE
17513
17514# CDPATH.
17515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17516
17517
17518# as_fn_error ERROR [LINENO LOG_FD]
17519# ---------------------------------
17520# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17521# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17522# script with status $?, using 1 if that was 0.
17523as_fn_error ()
17524{
17525 as_status=$?; test $as_status -eq 0 && as_status=1
17526 if test "$3"; then
17527 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17528 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17529 fi
81ecdfbb
RW
17530 $as_echo "$as_me: error: $1" >&2
17531 as_fn_exit $as_status
17532} # as_fn_error
17533
17534
17535# as_fn_set_status STATUS
17536# -----------------------
17537# Set $? to STATUS, without forking.
17538as_fn_set_status ()
17539{
17540 return $1
17541} # as_fn_set_status
17542
17543# as_fn_exit STATUS
17544# -----------------
17545# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17546as_fn_exit ()
17547{
17548 set +e
17549 as_fn_set_status $1
17550 exit $1
17551} # as_fn_exit
17552
17553# as_fn_unset VAR
17554# ---------------
17555# Portably unset VAR.
17556as_fn_unset ()
17557{
17558 { eval $1=; unset $1;}
17559}
17560as_unset=as_fn_unset
17561# as_fn_append VAR VALUE
17562# ----------------------
17563# Append the text in VALUE to the end of the definition contained in VAR. Take
17564# advantage of any shell optimizations that allow amortized linear growth over
17565# repeated appends, instead of the typical quadratic growth present in naive
17566# implementations.
17567if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17568 eval 'as_fn_append ()
17569 {
17570 eval $1+=\$2
17571 }'
17572else
17573 as_fn_append ()
17574 {
17575 eval $1=\$$1\$2
17576 }
17577fi # as_fn_append
17578
17579# as_fn_arith ARG...
17580# ------------------
17581# Perform arithmetic evaluation on the ARGs, and store the result in the
17582# global $as_val. Take advantage of shells that can avoid forks. The arguments
17583# must be portable across $(()) and expr.
17584if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17585 eval 'as_fn_arith ()
17586 {
17587 as_val=$(( $* ))
17588 }'
17589else
17590 as_fn_arith ()
17591 {
17592 as_val=`expr "$@" || test $? -eq 1`
17593 }
17594fi # as_fn_arith
17595
42ecbf5e 17596
81ecdfbb
RW
17597if expr a : '\(a\)' >/dev/null 2>&1 &&
17598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17599 as_expr=expr
17600else
17601 as_expr=false
17602fi
17603
81ecdfbb 17604if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17605 as_basename=basename
17606else
17607 as_basename=false
17608fi
17609
81ecdfbb
RW
17610if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17611 as_dirname=dirname
17612else
17613 as_dirname=false
17614fi
42ecbf5e 17615
81ecdfbb 17616as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17617$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17618 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17619 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17620$as_echo X/"$0" |
17621 sed '/^.*\/\([^/][^/]*\)\/*$/{
17622 s//\1/
17623 q
17624 }
17625 /^X\/\(\/\/\)$/{
17626 s//\1/
17627 q
17628 }
17629 /^X\/\(\/\).*/{
17630 s//\1/
17631 q
17632 }
17633 s/.*/./; q'`
42ecbf5e 17634
42ecbf5e
DJ
17635# Avoid depending upon Character Ranges.
17636as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17637as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17638as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17639as_cr_digits='0123456789'
17640as_cr_alnum=$as_cr_Letters$as_cr_digits
17641
81ecdfbb
RW
17642ECHO_C= ECHO_N= ECHO_T=
17643case `echo -n x` in #(((((
17644-n*)
17645 case `echo 'xy\c'` in
17646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17647 xy) ECHO_C='\c';;
17648 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17649 ECHO_T=' ';;
17650 esac;;
17651*)
17652 ECHO_N='-n';;
42ecbf5e 17653esac
252b5132 17654
81ecdfbb
RW
17655rm -f conf$$ conf$$.exe conf$$.file
17656if test -d conf$$.dir; then
17657 rm -f conf$$.dir/conf$$.file
42ecbf5e 17658else
81ecdfbb
RW
17659 rm -f conf$$.dir
17660 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17661fi
81ecdfbb
RW
17662if (echo >conf$$.file) 2>/dev/null; then
17663 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17664 as_ln_s='ln -s'
81ecdfbb
RW
17665 # ... but there are two gotchas:
17666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17668 # In both cases, we have to default to `cp -p'.
17669 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17670 as_ln_s='cp -p'
17671 elif ln conf$$.file conf$$ 2>/dev/null; then
17672 as_ln_s=ln
17673 else
17674 as_ln_s='cp -p'
252b5132 17675 fi
e5a52504 17676else
42ecbf5e 17677 as_ln_s='cp -p'
e5a52504 17678fi
81ecdfbb
RW
17679rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17680rmdir conf$$.dir 2>/dev/null
17681
17682
17683# as_fn_mkdir_p
17684# -------------
17685# Create "$as_dir" as a directory, including parents if necessary.
17686as_fn_mkdir_p ()
17687{
17688
17689 case $as_dir in #(
17690 -*) as_dir=./$as_dir;;
17691 esac
17692 test -d "$as_dir" || eval $as_mkdir_p || {
17693 as_dirs=
17694 while :; do
17695 case $as_dir in #(
17696 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17697 *) as_qdir=$as_dir;;
17698 esac
17699 as_dirs="'$as_qdir' $as_dirs"
17700 as_dir=`$as_dirname -- "$as_dir" ||
17701$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17702 X"$as_dir" : 'X\(//\)[^/]' \| \
17703 X"$as_dir" : 'X\(//\)$' \| \
17704 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17705$as_echo X"$as_dir" |
17706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17707 s//\1/
17708 q
17709 }
17710 /^X\(\/\/\)[^/].*/{
17711 s//\1/
17712 q
17713 }
17714 /^X\(\/\/\)$/{
17715 s//\1/
17716 q
17717 }
17718 /^X\(\/\).*/{
17719 s//\1/
17720 q
17721 }
17722 s/.*/./; q'`
17723 test -d "$as_dir" && break
17724 done
17725 test -z "$as_dirs" || eval "mkdir $as_dirs"
17726 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17727
252b5132 17728
81ecdfbb 17729} # as_fn_mkdir_p
42ecbf5e 17730if mkdir -p . 2>/dev/null; then
81ecdfbb 17731 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17732else
17733 test -d ./-p && rmdir ./-p
17734 as_mkdir_p=false
17735fi
252b5132 17736
81ecdfbb
RW
17737if test -x / >/dev/null 2>&1; then
17738 as_test_x='test -x'
17739else
17740 if ls -dL / >/dev/null 2>&1; then
17741 as_ls_L_option=L
17742 else
17743 as_ls_L_option=
17744 fi
17745 as_test_x='
17746 eval sh -c '\''
17747 if test -d "$1"; then
17748 test -d "$1/.";
17749 else
17750 case $1 in #(
17751 -*)set "./$1";;
17752 esac;
17753 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17754 ???[sx]*):;;*)false;;esac;fi
17755 '\'' sh
17756 '
17757fi
17758as_executable_p=$as_test_x
252b5132 17759
42ecbf5e
DJ
17760# Sed expression to map a string onto a valid CPP name.
17761as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17762
42ecbf5e
DJ
17763# Sed expression to map a string onto a valid variable name.
17764as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17765
e5a52504 17766
42ecbf5e 17767exec 6>&1
81ecdfbb
RW
17768## ----------------------------------- ##
17769## Main body of $CONFIG_STATUS script. ##
17770## ----------------------------------- ##
17771_ASEOF
17772test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17773
81ecdfbb
RW
17774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17775# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17776# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17777# values after options handling.
17778ac_log="
91dc4e0a 17779This file was extended by ld $as_me 2.25.51, which was
81ecdfbb 17780generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17781
17782 CONFIG_FILES = $CONFIG_FILES
17783 CONFIG_HEADERS = $CONFIG_HEADERS
17784 CONFIG_LINKS = $CONFIG_LINKS
17785 CONFIG_COMMANDS = $CONFIG_COMMANDS
17786 $ $0 $@
e5a52504 17787
81ecdfbb
RW
17788on `(hostname || uname -n) 2>/dev/null | sed 1q`
17789"
17790
42ecbf5e
DJ
17791_ACEOF
17792
81ecdfbb
RW
17793case $ac_config_files in *"
17794"*) set x $ac_config_files; shift; ac_config_files=$*;;
17795esac
e5a52504 17796
81ecdfbb
RW
17797case $ac_config_headers in *"
17798"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17799esac
42ecbf5e 17800
42ecbf5e 17801
81ecdfbb
RW
17802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17803# Files that config.status was made for.
17804config_files="$ac_config_files"
17805config_headers="$ac_config_headers"
17806config_commands="$ac_config_commands"
42ecbf5e 17807
81ecdfbb 17808_ACEOF
42ecbf5e 17809
81ecdfbb 17810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17811ac_cs_usage="\
81ecdfbb
RW
17812\`$as_me' instantiates files and other configuration actions
17813from templates according to the current configuration. Unless the files
17814and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17815
81ecdfbb 17816Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17817
17818 -h, --help print this help, then exit
81ecdfbb
RW
17819 -V, --version print version number and configuration settings, then exit
17820 -q, --quiet, --silent
17821 do not print progress messages
42ecbf5e
DJ
17822 -d, --debug don't remove temporary files
17823 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17824 --file=FILE[:TEMPLATE]
17825 instantiate the configuration file FILE
17826 --header=FILE[:TEMPLATE]
17827 instantiate the configuration header FILE
42ecbf5e
DJ
17828
17829Configuration files:
17830$config_files
17831
17832Configuration headers:
17833$config_headers
17834
17835Configuration commands:
17836$config_commands
17837
81ecdfbb 17838Report bugs to the package provider."
42ecbf5e 17839
81ecdfbb
RW
17840_ACEOF
17841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17842ac_cs_version="\\
91dc4e0a 17843ld config.status 2.25.51
81ecdfbb
RW
17844configured by $0, generated by GNU Autoconf 2.64,
17845 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17846
81ecdfbb 17847Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17848This config.status script is free software; the Free Software Foundation
17849gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17850
17851ac_pwd='$ac_pwd'
17852srcdir='$srcdir'
17853INSTALL='$INSTALL'
17854MKDIR_P='$MKDIR_P'
17855AWK='$AWK'
17856test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17857_ACEOF
17858
81ecdfbb
RW
17859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17860# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17861ac_need_defaults=:
17862while test $# != 0
17863do
17864 case $1 in
17865 --*=*)
81ecdfbb
RW
17866 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17867 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17868 ac_shift=:
252b5132 17869 ;;
81ecdfbb 17870 *)
42ecbf5e
DJ
17871 ac_option=$1
17872 ac_optarg=$2
17873 ac_shift=shift
252b5132 17874 ;;
42ecbf5e 17875 esac
252b5132 17876
42ecbf5e
DJ
17877 case $ac_option in
17878 # Handling of the options.
42ecbf5e
DJ
17879 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17880 ac_cs_recheck=: ;;
81ecdfbb
RW
17881 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17882 $as_echo "$ac_cs_version"; exit ;;
17883 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17884 debug=: ;;
17885 --file | --fil | --fi | --f )
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_FILES " '$ac_optarg'"
42ecbf5e
DJ
17891 ac_need_defaults=false;;
17892 --header | --heade | --head | --hea )
17893 $ac_shift
81ecdfbb
RW
17894 case $ac_optarg in
17895 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17896 esac
17897 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17898 ac_need_defaults=false;;
81ecdfbb
RW
17899 --he | --h)
17900 # Conflict between --help and --header
17901 as_fn_error "ambiguous option: \`$1'
17902Try \`$0 --help' for more information.";;
17903 --help | --hel | -h )
17904 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17906 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17907 ac_cs_silent=: ;;
252b5132 17908
42ecbf5e 17909 # This is an error.
81ecdfbb
RW
17910 -*) as_fn_error "unrecognized option: \`$1'
17911Try \`$0 --help' for more information." ;;
252b5132 17912
81ecdfbb
RW
17913 *) as_fn_append ac_config_targets " $1"
17914 ac_need_defaults=false ;;
252b5132 17915
42ecbf5e
DJ
17916 esac
17917 shift
17918done
d15b04bd 17919
42ecbf5e 17920ac_configure_extra_args=
e5a52504 17921
42ecbf5e
DJ
17922if $ac_cs_silent; then
17923 exec 6>/dev/null
17924 ac_configure_extra_args="$ac_configure_extra_args --silent"
17925fi
e5a52504 17926
42ecbf5e 17927_ACEOF
81ecdfbb 17928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17929if \$ac_cs_recheck; then
81ecdfbb
RW
17930 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17931 shift
17932 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17933 CONFIG_SHELL='$SHELL'
17934 export CONFIG_SHELL
17935 exec "\$@"
42ecbf5e
DJ
17936fi
17937
17938_ACEOF
81ecdfbb
RW
17939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17940exec 5>>config.log
17941{
17942 echo
17943 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17944## Running $as_me. ##
17945_ASBOX
17946 $as_echo "$ac_log"
17947} >&5
42ecbf5e 17948
81ecdfbb
RW
17949_ACEOF
17950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17951#
81ecdfbb 17952# INIT-COMMANDS
252b5132 17953#
42ecbf5e 17954AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17955
17956
17957# The HP-UX ksh and POSIX shell print the target directory to stdout
17958# if CDPATH is set.
17959(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17960
17961sed_quote_subst='$sed_quote_subst'
17962double_quote_subst='$double_quote_subst'
17963delay_variable_subst='$delay_variable_subst'
3725885a
RW
17964macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17965macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17966enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17967enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17968pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17969enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17970SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17971ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17972host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17973host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17974host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17975build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17976build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17977build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17978SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17979Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17980GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17981EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17982FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17983LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17984NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17985LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17986max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17987ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17988exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17989lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17990lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17991lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17992reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17993reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17994OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17995deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17996file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17997AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17998AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17999STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18000RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18001old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18002old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18003old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18004lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18005CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18006CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18007compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18008GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18009lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18010lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18011lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18012lt_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"`'
18013objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18014MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18015lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18016lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18017lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18018lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18019lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18020need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18021DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18022NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18023LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18024OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18025OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18026libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18027shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18028extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18029archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18030enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18031export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18032whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18033compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18034old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18035old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18036archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18037archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18038module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18039module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18040with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18041allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18042no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18043hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18044hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18045hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18046hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18047hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18048hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18049hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18050hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18051inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18052link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18053fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18054always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18055export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18056exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18057include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18058prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18059file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18060variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18061need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18062need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18063version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18064runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18065shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18066shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18067libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18068library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18069soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18070install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18071postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18072postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18073finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18074finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18075hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18076sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18077sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18078hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18079enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18080enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18081enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18082old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18083striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18084compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18085predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18086postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18087predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18088postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18089compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18090LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18091reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18092reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18093old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18094compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18095GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18096lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18097lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18098lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18099lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18100lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18101archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18102enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18103export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18104whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18105compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18106old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18107old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18108archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18109archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18110module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18111module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18112with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18113allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18114no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18115hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18116hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18117hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18118hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18119hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18120hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18121hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18122hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18123inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18124link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18125fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18126always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18127export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18128exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18129include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18130prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18131file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18132hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18133compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18134predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18135postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18136predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18137postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18138compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18139
18140LTCC='$LTCC'
18141LTCFLAGS='$LTCFLAGS'
18142compiler='$compiler_DEFAULT'
18143
3725885a
RW
18144# A function that is used when there is no print builtin or printf.
18145func_fallback_echo ()
18146{
18147 eval 'cat <<_LTECHO_EOF
18148\$1
18149_LTECHO_EOF'
18150}
18151
d7040cdb 18152# Quote evaled strings.
3725885a
RW
18153for var in SHELL \
18154ECHO \
18155SED \
d7040cdb
SE
18156GREP \
18157EGREP \
18158FGREP \
18159LD \
18160NM \
18161LN_S \
18162lt_SP2NL \
18163lt_NL2SP \
18164reload_flag \
b214d478 18165OBJDUMP \
d7040cdb
SE
18166deplibs_check_method \
18167file_magic_cmd \
18168AR \
18169AR_FLAGS \
18170STRIP \
18171RANLIB \
18172CC \
18173CFLAGS \
18174compiler \
18175lt_cv_sys_global_symbol_pipe \
18176lt_cv_sys_global_symbol_to_cdecl \
18177lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18178lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18179lt_prog_compiler_no_builtin_flag \
18180lt_prog_compiler_wl \
18181lt_prog_compiler_pic \
18182lt_prog_compiler_static \
18183lt_cv_prog_compiler_c_o \
18184need_locks \
b214d478
SE
18185DSYMUTIL \
18186NMEDIT \
18187LIPO \
18188OTOOL \
18189OTOOL64 \
d7040cdb
SE
18190shrext_cmds \
18191export_dynamic_flag_spec \
18192whole_archive_flag_spec \
18193compiler_needs_object \
18194with_gnu_ld \
18195allow_undefined_flag \
18196no_undefined_flag \
18197hardcode_libdir_flag_spec \
18198hardcode_libdir_flag_spec_ld \
18199hardcode_libdir_separator \
18200fix_srcfile_path \
18201exclude_expsyms \
18202include_expsyms \
18203file_list_spec \
18204variables_saved_for_relink \
18205libname_spec \
18206library_names_spec \
18207soname_spec \
3725885a 18208install_override_mode \
d7040cdb
SE
18209finish_eval \
18210old_striplib \
3cb62297
L
18211striplib \
18212compiler_lib_search_dirs \
18213predep_objects \
18214postdep_objects \
18215predeps \
18216postdeps \
18217compiler_lib_search_path \
18218LD_CXX \
18219reload_flag_CXX \
18220compiler_CXX \
18221lt_prog_compiler_no_builtin_flag_CXX \
18222lt_prog_compiler_wl_CXX \
18223lt_prog_compiler_pic_CXX \
18224lt_prog_compiler_static_CXX \
18225lt_cv_prog_compiler_c_o_CXX \
18226export_dynamic_flag_spec_CXX \
18227whole_archive_flag_spec_CXX \
18228compiler_needs_object_CXX \
18229with_gnu_ld_CXX \
18230allow_undefined_flag_CXX \
18231no_undefined_flag_CXX \
18232hardcode_libdir_flag_spec_CXX \
18233hardcode_libdir_flag_spec_ld_CXX \
18234hardcode_libdir_separator_CXX \
18235fix_srcfile_path_CXX \
18236exclude_expsyms_CXX \
18237include_expsyms_CXX \
18238file_list_spec_CXX \
18239compiler_lib_search_dirs_CXX \
18240predep_objects_CXX \
18241postdep_objects_CXX \
18242predeps_CXX \
18243postdeps_CXX \
18244compiler_lib_search_path_CXX; do
3725885a 18245 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18246 *[\\\\\\\`\\"\\\$]*)
3725885a 18247 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18248 ;;
18249 *)
18250 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18251 ;;
18252 esac
18253done
18254
18255# Double-quote double-evaled strings.
18256for var in reload_cmds \
18257old_postinstall_cmds \
18258old_postuninstall_cmds \
18259old_archive_cmds \
18260extract_expsyms_cmds \
18261old_archive_from_new_cmds \
18262old_archive_from_expsyms_cmds \
18263archive_cmds \
18264archive_expsym_cmds \
18265module_cmds \
18266module_expsym_cmds \
18267export_symbols_cmds \
18268prelink_cmds \
18269postinstall_cmds \
18270postuninstall_cmds \
18271finish_cmds \
18272sys_lib_search_path_spec \
3cb62297
L
18273sys_lib_dlsearch_path_spec \
18274reload_cmds_CXX \
18275old_archive_cmds_CXX \
18276old_archive_from_new_cmds_CXX \
18277old_archive_from_expsyms_cmds_CXX \
18278archive_cmds_CXX \
18279archive_expsym_cmds_CXX \
18280module_cmds_CXX \
18281module_expsym_cmds_CXX \
18282export_symbols_cmds_CXX \
18283prelink_cmds_CXX; do
3725885a 18284 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18285 *[\\\\\\\`\\"\\\$]*)
3725885a 18286 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18287 ;;
18288 *)
18289 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18290 ;;
18291 esac
18292done
18293
d7040cdb
SE
18294ac_aux_dir='$ac_aux_dir'
18295xsi_shell='$xsi_shell'
18296lt_shell_append='$lt_shell_append'
18297
18298# See if we are running on zsh, and set the options which allow our
18299# commands through without removal of \ escapes INIT.
18300if test -n "\${ZSH_VERSION+set}" ; then
18301 setopt NO_GLOB_SUBST
18302fi
18303
18304
18305 PACKAGE='$PACKAGE'
18306 VERSION='$VERSION'
18307 TIMESTAMP='$TIMESTAMP'
18308 RM='$RM'
18309 ofile='$ofile'
18310
18311
18312
3cb62297
L
18313
18314
20e95c23
DJ
18315# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18316 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18317 # from automake.
18318 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18319 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18320 LINGUAS="${LINGUAS-%UNSET%}"
18321
42ecbf5e
DJ
18322
18323_ACEOF
18324
81ecdfbb 18325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18326
81ecdfbb 18327# Handling of arguments.
42ecbf5e 18328for ac_config_target in $ac_config_targets
252b5132 18329do
81ecdfbb
RW
18330 case $ac_config_target in
18331 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18332 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18333 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb
RW
18334 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18335 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18336 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18337
18338 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18339 esac
18340done
18341
81ecdfbb 18342
42ecbf5e
DJ
18343# If the user did not use the arguments to specify the items to instantiate,
18344# then the envvar interface is used. Set only those that are not.
18345# We use the long form for the default assignment because of an extremely
18346# bizarre bug on SunOS 4.1.3.
18347if $ac_need_defaults; then
18348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18351fi
18352
18353# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18354# simply because there is no reason against having it here, and in addition,
42ecbf5e 18355# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18356# Hook for its removal unless debugging.
18357# Note that there is a small window in which the directory will not be cleaned:
18358# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18359$debug ||
18360{
81ecdfbb
RW
18361 tmp=
18362 trap 'exit_status=$?
18363 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18364' 0
18365 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18366}
42ecbf5e 18367# Create a (secure) tmp directory for tmp files.
e5a52504 18368
42ecbf5e 18369{
81ecdfbb 18370 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18371 test -n "$tmp" && test -d "$tmp"
18372} ||
18373{
81ecdfbb
RW
18374 tmp=./conf$$-$RANDOM
18375 (umask 077 && mkdir "$tmp")
18376} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18377
18378# Set up the scripts for CONFIG_FILES section.
18379# No need to generate them if there are no CONFIG_FILES.
18380# This happens for instance with `./config.status config.h'.
18381if test -n "$CONFIG_FILES"; then
18382
18383if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18384 ac_cs_awk_getline=:
18385 ac_cs_awk_pipe_init=
18386 ac_cs_awk_read_file='
18387 while ((getline aline < (F[key])) > 0)
18388 print(aline)
18389 close(F[key])'
18390 ac_cs_awk_pipe_fini=
18391else
18392 ac_cs_awk_getline=false
18393 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18394 ac_cs_awk_read_file='
18395 print "|#_!!_#|"
18396 print "cat " F[key] " &&"
18397 '$ac_cs_awk_pipe_init
18398 # The final `:' finishes the AND list.
18399 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18400fi
18401ac_cr=`echo X | tr X '\015'`
18402# On cygwin, bash can eat \r inside `` if the user requested igncr.
18403# But we know of no other shell where ac_cr would be empty at this
18404# point, so we can use a bashism as a fallback.
18405if test "x$ac_cr" = x; then
18406 eval ac_cr=\$\'\\r\'
18407fi
18408ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18409if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18410 ac_cs_awk_cr='\r'
18411else
18412 ac_cs_awk_cr=$ac_cr
18413fi
18414
18415echo 'BEGIN {' >"$tmp/subs1.awk" &&
18416_ACEOF
18417
18418# Create commands to substitute file output variables.
42ecbf5e 18419{
81ecdfbb
RW
18420 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18421 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18422 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18423 echo "_ACAWK" &&
18424 echo "_ACEOF"
18425} >conf$$files.sh &&
18426. ./conf$$files.sh ||
18427 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18428rm -f conf$$files.sh
e5a52504 18429
81ecdfbb
RW
18430{
18431 echo "cat >conf$$subs.awk <<_ACEOF" &&
18432 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18433 echo "_ACEOF"
18434} >conf$$subs.sh ||
18435 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18436ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18437ac_delim='%!_!# '
18438for ac_last_try in false false false false false :; do
18439 . ./conf$$subs.sh ||
18440 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18441
18442 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18443 if test $ac_delim_n = $ac_delim_num; then
18444 break
18445 elif $ac_last_try; then
18446 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18447 else
18448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18449 fi
18450done
18451rm -f conf$$subs.sh
18452
18453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18454cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18455_ACEOF
18456sed -n '
18457h
18458s/^/S["/; s/!.*/"]=/
18459p
18460g
18461s/^[^!]*!//
18462:repl
18463t repl
18464s/'"$ac_delim"'$//
18465t delim
18466:nl
18467h
18468s/\(.\{148\}\).*/\1/
18469t more1
18470s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18471p
18472n
18473b repl
18474:more1
18475s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18476p
18477g
18478s/.\{148\}//
18479t nl
18480:delim
18481h
18482s/\(.\{148\}\).*/\1/
18483t more2
18484s/["\\]/\\&/g; s/^/"/; s/$/"/
18485p
18486b
18487:more2
18488s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18489p
18490g
18491s/.\{148\}//
18492t delim
18493' <conf$$subs.awk | sed '
18494/^[^""]/{
18495 N
18496 s/\n//
18497}
18498' >>$CONFIG_STATUS || ac_write_fail=1
18499rm -f conf$$subs.awk
18500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18501_ACAWK
18502cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18503 for (key in S) S_is_set[key] = 1
18504 FS = "\a"
18505 \$ac_cs_awk_pipe_init
18506}
18507{
18508 line = $ 0
18509 nfields = split(line, field, "@")
18510 substed = 0
18511 len = length(field[1])
18512 for (i = 2; i < nfields; i++) {
18513 key = field[i]
18514 keylen = length(key)
18515 if (S_is_set[key]) {
18516 value = S[key]
18517 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18518 len += length(value) + length(field[++i])
18519 substed = 1
18520 } else
18521 len += 1 + keylen
18522 }
18523 if (nfields == 3 && !substed) {
18524 key = field[2]
18525 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18526 \$ac_cs_awk_read_file
18527 next
18528 }
18529 }
18530 print line
18531}
18532\$ac_cs_awk_pipe_fini
18533_ACAWK
18534_ACEOF
18535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18536if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18537 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18538else
18539 cat
18540fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18541 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18542_ACEOF
d15b04bd 18543
81ecdfbb
RW
18544# VPATH may cause trouble with some makes, so we remove $(srcdir),
18545# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18546# trailing colons and then remove the whole line if VPATH becomes empty
18547# (actually we leave an empty line to preserve line numbers).
18548if test "x$srcdir" = x.; then
18549 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18550s/:*\$(srcdir):*/:/
18551s/:*\${srcdir}:*/:/
18552s/:*@srcdir@:*/:/
18553s/^\([^=]*=[ ]*\):*/\1/
18554s/:*$//
18555s/^[^=]*=[ ]*$//
18556}'
18557fi
18558
18559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560fi # test -n "$CONFIG_FILES"
42ecbf5e 18561
81ecdfbb
RW
18562# Set up the scripts for CONFIG_HEADERS section.
18563# No need to generate them if there are no CONFIG_HEADERS.
18564# This happens for instance with `./config.status Makefile'.
18565if test -n "$CONFIG_HEADERS"; then
18566cat >"$tmp/defines.awk" <<\_ACAWK ||
18567BEGIN {
18568_ACEOF
42ecbf5e 18569
81ecdfbb
RW
18570# Transform confdefs.h into an awk script `defines.awk', embedded as
18571# here-document in config.status, that substitutes the proper values into
18572# config.h.in to produce config.h.
252b5132 18573
81ecdfbb
RW
18574# Create a delimiter string that does not exist in confdefs.h, to ease
18575# handling of long lines.
18576ac_delim='%!_!# '
18577for ac_last_try in false false :; do
18578 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18579 if test -z "$ac_t"; then
18580 break
18581 elif $ac_last_try; then
18582 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18583 else
18584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18585 fi
18586done
18587
18588# For the awk script, D is an array of macro values keyed by name,
18589# likewise P contains macro parameters if any. Preserve backslash
18590# newline sequences.
18591
18592ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18593sed -n '
18594s/.\{148\}/&'"$ac_delim"'/g
18595t rset
18596:rset
18597s/^[ ]*#[ ]*define[ ][ ]*/ /
18598t def
18599d
18600:def
18601s/\\$//
18602t bsnl
18603s/["\\]/\\&/g
18604s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18605D["\1"]=" \3"/p
18606s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18607d
18608:bsnl
18609s/["\\]/\\&/g
18610s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18611D["\1"]=" \3\\\\\\n"\\/p
18612t cont
18613s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18614t cont
18615d
18616:cont
18617n
18618s/.\{148\}/&'"$ac_delim"'/g
18619t clear
18620:clear
18621s/\\$//
18622t bsnlc
18623s/["\\]/\\&/g; s/^/"/; s/$/"/p
18624d
18625:bsnlc
18626s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18627b cont
18628' <confdefs.h | sed '
18629s/'"$ac_delim"'/"\\\
18630"/g' >>$CONFIG_STATUS || ac_write_fail=1
18631
18632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18633 for (key in D) D_is_set[key] = 1
18634 FS = "\a"
18635}
18636/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18637 line = \$ 0
18638 split(line, arg, " ")
18639 if (arg[1] == "#") {
18640 defundef = arg[2]
18641 mac1 = arg[3]
18642 } else {
18643 defundef = substr(arg[1], 2)
18644 mac1 = arg[2]
18645 }
18646 split(mac1, mac2, "(") #)
18647 macro = mac2[1]
18648 prefix = substr(line, 1, index(line, defundef) - 1)
18649 if (D_is_set[macro]) {
18650 # Preserve the white space surrounding the "#".
18651 print prefix "define", macro P[macro] D[macro]
18652 next
18653 } else {
18654 # Replace #undef with comments. This is necessary, for example,
18655 # in the case of _POSIX_SOURCE, which is predefined and required
18656 # on some systems where configure will not decide to define it.
18657 if (defundef == "undef") {
18658 print "/*", prefix defundef, macro, "*/"
18659 next
18660 }
18661 }
18662}
18663{ print }
18664_ACAWK
42ecbf5e 18665_ACEOF
81ecdfbb
RW
18666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18667 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18668fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18669
81ecdfbb
RW
18670
18671eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18672shift
18673for ac_tag
18674do
18675 case $ac_tag in
18676 :[FHLC]) ac_mode=$ac_tag; continue;;
18677 esac
18678 case $ac_mode$ac_tag in
18679 :[FHL]*:*);;
18680 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18681 :[FH]-) ac_tag=-:-;;
18682 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18683 esac
18684 ac_save_IFS=$IFS
18685 IFS=:
18686 set x $ac_tag
18687 IFS=$ac_save_IFS
18688 shift
18689 ac_file=$1
18690 shift
18691
18692 case $ac_mode in
18693 :L) ac_source=$1;;
18694 :[FH])
18695 ac_file_inputs=
18696 for ac_f
18697 do
18698 case $ac_f in
18699 -) ac_f="$tmp/stdin";;
18700 *) # Look for the file first in the build tree, then in the source tree
18701 # (if the path is not absolute). The absolute path cannot be DOS-style,
18702 # because $ac_f cannot contain `:'.
18703 test -f "$ac_f" ||
18704 case $ac_f in
18705 [\\/$]*) false;;
18706 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18707 esac ||
18708 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18709 esac
18710 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18711 as_fn_append ac_file_inputs " '$ac_f'"
18712 done
18713
18714 # Let's still pretend it is `configure' which instantiates (i.e., don't
18715 # use $as_me), people would be surprised to read:
18716 # /* config.h. Generated by config.status. */
18717 configure_input='Generated from '`
18718 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18719 `' by configure.'
18720 if test x"$ac_file" != x-; then
18721 configure_input="$ac_file. $configure_input"
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18723$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18724 fi
81ecdfbb
RW
18725 # Neutralize special characters interpreted by sed in replacement strings.
18726 case $configure_input in #(
18727 *\&* | *\|* | *\\* )
18728 ac_sed_conf_input=`$as_echo "$configure_input" |
18729 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18730 *) ac_sed_conf_input=$configure_input;;
18731 esac
252b5132 18732
81ecdfbb
RW
18733 case $ac_tag in
18734 *:-:* | *:-) cat >"$tmp/stdin" \
18735 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18736 esac
18737 ;;
252b5132
RH
18738 esac
18739
81ecdfbb 18740 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18741$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18742 X"$ac_file" : 'X\(//\)[^/]' \| \
18743 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18745$as_echo X"$ac_file" |
18746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18747 s//\1/
18748 q
18749 }
18750 /^X\(\/\/\)[^/].*/{
18751 s//\1/
18752 q
18753 }
18754 /^X\(\/\/\)$/{
18755 s//\1/
18756 q
18757 }
18758 /^X\(\/\).*/{
18759 s//\1/
18760 q
18761 }
18762 s/.*/./; q'`
18763 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18764 ac_builddir=.
18765
81ecdfbb
RW
18766case "$ac_dir" in
18767.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18768*)
18769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18770 # A ".." for each directory in $ac_dir_suffix.
18771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18772 case $ac_top_builddir_sub in
18773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18775 esac ;;
18776esac
18777ac_abs_top_builddir=$ac_pwd
18778ac_abs_builddir=$ac_pwd$ac_dir_suffix
18779# for backward compatibility:
18780ac_top_builddir=$ac_top_build_prefix
252b5132 18781
42ecbf5e 18782case $srcdir in
81ecdfbb 18783 .) # We are building in place.
42ecbf5e 18784 ac_srcdir=.
81ecdfbb
RW
18785 ac_top_srcdir=$ac_top_builddir_sub
18786 ac_abs_top_srcdir=$ac_pwd ;;
18787 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18788 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18789 ac_top_srcdir=$srcdir
18790 ac_abs_top_srcdir=$srcdir ;;
18791 *) # Relative name.
18792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18793 ac_top_srcdir=$ac_top_build_prefix$srcdir
18794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18795esac
81ecdfbb 18796ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18797
252b5132 18798
81ecdfbb
RW
18799 case $ac_mode in
18800 :F)
18801 #
18802 # CONFIG_FILE
18803 #
e5a52504 18804
42ecbf5e
DJ
18805 case $INSTALL in
18806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18808 esac
18809 ac_MKDIR_P=$MKDIR_P
18810 case $MKDIR_P in
18811 [\\/$]* | ?:[\\/]* ) ;;
18812 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18813 esac
81ecdfbb 18814_ACEOF
e5a52504 18815
81ecdfbb
RW
18816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18817# If the template does not know about datarootdir, expand it.
18818# FIXME: This hack should be removed a few years after 2.60.
18819ac_datarootdir_hack=; ac_datarootdir_seen=
18820ac_sed_dataroot='
18821/datarootdir/ {
18822 p
18823 q
18824}
18825/@datadir@/p
18826/@docdir@/p
18827/@infodir@/p
18828/@localedir@/p
18829/@mandir@/p'
18830case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18831*datarootdir*) ac_datarootdir_seen=yes;;
18832*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18834$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18835_ACEOF
18836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18837 ac_datarootdir_hack='
18838 s&@datadir@&$datadir&g
18839 s&@docdir@&$docdir&g
18840 s&@infodir@&$infodir&g
18841 s&@localedir@&$localedir&g
18842 s&@mandir@&$mandir&g
18843 s&\\\${datarootdir}&$datarootdir&g' ;;
18844esac
42ecbf5e 18845_ACEOF
81ecdfbb
RW
18846
18847# Neutralize VPATH when `$srcdir' = `.'.
18848# Shell code in configure.ac might set extrasub.
18849# FIXME: do we really want to maintain this feature?
18850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18852$extrasub
18853_ACEOF
81ecdfbb 18854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18855:t
18856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18857s|@configure_input@|$ac_sed_conf_input|;t t
18858s&@top_builddir@&$ac_top_builddir_sub&;t t
18859s&@top_build_prefix@&$ac_top_build_prefix&;t t
18860s&@srcdir@&$ac_srcdir&;t t
18861s&@abs_srcdir@&$ac_abs_srcdir&;t t
18862s&@top_srcdir@&$ac_top_srcdir&;t t
18863s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18864s&@builddir@&$ac_builddir&;t t
18865s&@abs_builddir@&$ac_abs_builddir&;t t
18866s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18867s&@INSTALL@&$ac_INSTALL&;t t
18868s&@MKDIR_P@&$ac_MKDIR_P&;t t
18869$ac_datarootdir_hack
18870"
18871eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18872if $ac_cs_awk_getline; then
18873 $AWK -f "$tmp/subs.awk"
18874else
18875 $AWK -f "$tmp/subs.awk" | $SHELL
18876fi >$tmp/out \
18877 || as_fn_error "could not create $ac_file" "$LINENO" 5
18878
18879test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18880 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18881 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18883which seems to be undefined. Please make sure it is defined." >&5
18884$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18885which seems to be undefined. Please make sure it is defined." >&2;}
18886
18887 rm -f "$tmp/stdin"
42ecbf5e 18888 case $ac_file in
81ecdfbb
RW
18889 -) cat "$tmp/out" && rm -f "$tmp/out";;
18890 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18891 esac \
18892 || as_fn_error "could not create $ac_file" "$LINENO" 5
18893 ;;
18894 :H)
18895 #
18896 # CONFIG_HEADER
18897 #
42ecbf5e 18898 if test x"$ac_file" != x-; then
81ecdfbb
RW
18899 {
18900 $as_echo "/* $configure_input */" \
18901 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18902 } >"$tmp/config.h" \
18903 || as_fn_error "could not create $ac_file" "$LINENO" 5
18904 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18906$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18907 else
81ecdfbb
RW
18908 rm -f "$ac_file"
18909 mv "$tmp/config.h" "$ac_file" \
18910 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18911 fi
42ecbf5e 18912 else
81ecdfbb
RW
18913 $as_echo "/* $configure_input */" \
18914 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18915 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18916 fi
81ecdfbb
RW
18917# Compute "$ac_file"'s index in $config_headers.
18918_am_arg="$ac_file"
42ecbf5e
DJ
18919_am_stamp_count=1
18920for _am_header in $config_headers :; do
18921 case $_am_header in
81ecdfbb 18922 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18923 break ;;
18924 * )
18925 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18926 esac
18927done
81ecdfbb
RW
18928echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18929$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18930 X"$_am_arg" : 'X\(//\)[^/]' \| \
18931 X"$_am_arg" : 'X\(//\)$' \| \
18932 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18933$as_echo X"$_am_arg" |
18934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18935 s//\1/
18936 q
18937 }
18938 /^X\(\/\/\)[^/].*/{
18939 s//\1/
18940 q
18941 }
18942 /^X\(\/\/\)$/{
18943 s//\1/
18944 q
18945 }
18946 /^X\(\/\).*/{
18947 s//\1/
18948 q
18949 }
18950 s/.*/./; q'`/stamp-h$_am_stamp_count
18951 ;;
42ecbf5e 18952
81ecdfbb
RW
18953 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18954$as_echo "$as_me: executing $ac_file commands" >&6;}
18955 ;;
18956 esac
42ecbf5e
DJ
18957
18958
81ecdfbb
RW
18959 case $ac_file$ac_mode in
18960 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18961 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18962 # are listed without --file. Let's play safe and only enable the eval
18963 # if we detect the quoting.
18964 case $CONFIG_FILES in
18965 *\'*) eval set x "$CONFIG_FILES" ;;
18966 *) set x $CONFIG_FILES ;;
18967 esac
18968 shift
18969 for mf
18970 do
18971 # Strip MF so we end up with the name of the file.
18972 mf=`echo "$mf" | sed -e 's/:.*$//'`
18973 # Check whether this is an Automake generated Makefile or not.
18974 # We used to match only the files named `Makefile.in', but
18975 # some people rename them; so instead we look at the file content.
18976 # Grep'ing the first line is not enough: some people post-process
18977 # each Makefile.in and add a new line on top of each file to say so.
18978 # Grep'ing the whole file is not good either: AIX grep has a line
18979 # limit of 2048, but all sed's we know have understand at least 4000.
18980 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18981 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18982$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18983 X"$mf" : 'X\(//\)[^/]' \| \
18984 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18985 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18986$as_echo X"$mf" |
18987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18988 s//\1/
18989 q
18990 }
18991 /^X\(\/\/\)[^/].*/{
18992 s//\1/
18993 q
18994 }
18995 /^X\(\/\/\)$/{
18996 s//\1/
18997 q
18998 }
18999 /^X\(\/\).*/{
19000 s//\1/
19001 q
19002 }
19003 s/.*/./; q'`
19004 else
19005 continue
19006 fi
19007 # Extract the definition of DEPDIR, am__include, and am__quote
19008 # from the Makefile without running `make'.
19009 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19010 test -z "$DEPDIR" && continue
19011 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19012 test -z "am__include" && continue
19013 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19014 # When using ansi2knr, U may be empty or an underscore; expand it
19015 U=`sed -n 's/^U = //p' < "$mf"`
19016 # Find all dependency output files, they are included files with
19017 # $(DEPDIR) in their names. We invoke sed twice because it is the
19018 # simplest approach to changing $(DEPDIR) to its actual value in the
19019 # expansion.
19020 for file in `sed -n "
19021 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19022 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19023 # Make sure the directory exists.
19024 test -f "$dirpart/$file" && continue
19025 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19026$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19027 X"$file" : 'X\(//\)[^/]' \| \
19028 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19029 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19030$as_echo X"$file" |
19031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19032 s//\1/
19033 q
19034 }
19035 /^X\(\/\/\)[^/].*/{
19036 s//\1/
19037 q
19038 }
19039 /^X\(\/\/\)$/{
19040 s//\1/
19041 q
19042 }
19043 /^X\(\/\).*/{
19044 s//\1/
19045 q
19046 }
19047 s/.*/./; q'`
19048 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19049 # echo "creating $dirpart/$file"
19050 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19051 done
42ecbf5e 19052 done
81ecdfbb 19053}
d7040cdb 19054 ;;
81ecdfbb 19055 "libtool":C)
d7040cdb
SE
19056
19057 # See if we are running on zsh, and set the options which allow our
19058 # commands through without removal of \ escapes.
19059 if test -n "${ZSH_VERSION+set}" ; then
19060 setopt NO_GLOB_SUBST
19061 fi
19062
19063 cfgfile="${ofile}T"
19064 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19065 $RM "$cfgfile"
19066
19067 cat <<_LT_EOF >> "$cfgfile"
19068#! $SHELL
19069
19070# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19071# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19072# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19073# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19074#
b214d478 19075# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19076# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19077# Written by Gordon Matzigkeit, 1996
d7040cdb 19078#
b214d478 19079# This file is part of GNU Libtool.
d7040cdb 19080#
b214d478
SE
19081# GNU Libtool is free software; you can redistribute it and/or
19082# modify it under the terms of the GNU General Public License as
19083# published by the Free Software Foundation; either version 2 of
19084# the License, or (at your option) any later version.
d7040cdb 19085#
b214d478
SE
19086# As a special exception to the GNU General Public License,
19087# if you distribute this file as part of a program or library that
19088# is built using GNU Libtool, you may include this file under the
19089# same distribution terms that you use for the rest of that program.
d7040cdb 19090#
b214d478
SE
19091# GNU Libtool is distributed in the hope that it will be useful,
19092# but WITHOUT ANY WARRANTY; without even the implied warranty of
19093# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19094# GNU General Public License for more details.
d7040cdb 19095#
b214d478
SE
19096# You should have received a copy of the GNU General Public License
19097# along with GNU Libtool; see the file COPYING. If not, a copy
19098# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19099# obtained by writing to the Free Software Foundation, Inc.,
19100# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19101
19102
19103# The names of the tagged configurations supported by this script.
3cb62297 19104available_tags="CXX "
d7040cdb
SE
19105
19106# ### BEGIN LIBTOOL CONFIG
19107
19108# Which release of libtool.m4 was used?
19109macro_version=$macro_version
19110macro_revision=$macro_revision
19111
19112# Whether or not to build shared libraries.
19113build_libtool_libs=$enable_shared
19114
19115# Whether or not to build static libraries.
19116build_old_libs=$enable_static
19117
19118# What type of objects to build.
19119pic_mode=$pic_mode
19120
19121# Whether or not to optimize for fast installation.
19122fast_install=$enable_fast_install
19123
3725885a
RW
19124# Shell to use when invoking shell scripts.
19125SHELL=$lt_SHELL
19126
19127# An echo program that protects backslashes.
19128ECHO=$lt_ECHO
19129
d7040cdb
SE
19130# The host system.
19131host_alias=$host_alias
19132host=$host
19133host_os=$host_os
19134
19135# The build system.
19136build_alias=$build_alias
19137build=$build
19138build_os=$build_os
19139
19140# A sed program that does not truncate output.
19141SED=$lt_SED
19142
19143# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19144Xsed="\$SED -e 1s/^X//"
19145
19146# A grep program that handles long lines.
19147GREP=$lt_GREP
19148
19149# An ERE matcher.
19150EGREP=$lt_EGREP
19151
19152# A literal string matcher.
19153FGREP=$lt_FGREP
19154
19155# A BSD- or MS-compatible name lister.
19156NM=$lt_NM
19157
19158# Whether we need soft or hard links.
19159LN_S=$lt_LN_S
19160
19161# What is the maximum length of a command?
19162max_cmd_len=$max_cmd_len
19163
19164# Object file suffix (normally "o").
19165objext=$ac_objext
19166
19167# Executable file suffix (normally "").
19168exeext=$exeext
19169
19170# whether the shell understands "unset".
19171lt_unset=$lt_unset
19172
19173# turn spaces into newlines.
19174SP2NL=$lt_lt_SP2NL
19175
19176# turn newlines into spaces.
19177NL2SP=$lt_lt_NL2SP
19178
b214d478
SE
19179# An object symbol dumper.
19180OBJDUMP=$lt_OBJDUMP
19181
d7040cdb
SE
19182# Method to check whether dependent libraries are shared objects.
19183deplibs_check_method=$lt_deplibs_check_method
19184
19185# Command to use when deplibs_check_method == "file_magic".
19186file_magic_cmd=$lt_file_magic_cmd
19187
19188# The archiver.
19189AR=$lt_AR
19190AR_FLAGS=$lt_AR_FLAGS
19191
19192# A symbol stripping program.
19193STRIP=$lt_STRIP
19194
19195# Commands used to install an old-style archive.
19196RANLIB=$lt_RANLIB
19197old_postinstall_cmds=$lt_old_postinstall_cmds
19198old_postuninstall_cmds=$lt_old_postuninstall_cmds
19199
3725885a
RW
19200# Whether to use a lock for old archive extraction.
19201lock_old_archive_extraction=$lock_old_archive_extraction
19202
d7040cdb
SE
19203# A C compiler.
19204LTCC=$lt_CC
19205
19206# LTCC compiler flags.
19207LTCFLAGS=$lt_CFLAGS
19208
19209# Take the output of nm and produce a listing of raw symbols and C names.
19210global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19211
19212# Transform the output of nm in a proper C declaration.
19213global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19214
19215# Transform the output of nm in a C name address pair.
19216global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19217
b214d478
SE
19218# Transform the output of nm in a C name address pair when lib prefix is needed.
19219global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19220
d7040cdb
SE
19221# The name of the directory that contains temporary libtool files.
19222objdir=$objdir
19223
d7040cdb
SE
19224# Used to examine libraries when file_magic_cmd begins with "file".
19225MAGIC_CMD=$MAGIC_CMD
19226
19227# Must we lock files when doing compilation?
19228need_locks=$lt_need_locks
19229
b214d478
SE
19230# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19231DSYMUTIL=$lt_DSYMUTIL
19232
19233# Tool to change global to local symbols on Mac OS X.
19234NMEDIT=$lt_NMEDIT
19235
19236# Tool to manipulate fat objects and archives on Mac OS X.
19237LIPO=$lt_LIPO
19238
19239# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19240OTOOL=$lt_OTOOL
19241
19242# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19243OTOOL64=$lt_OTOOL64
19244
d7040cdb
SE
19245# Old archive suffix (normally "a").
19246libext=$libext
19247
19248# Shared library suffix (normally ".so").
19249shrext_cmds=$lt_shrext_cmds
19250
19251# The commands to extract the exported symbol list from a shared archive.
19252extract_expsyms_cmds=$lt_extract_expsyms_cmds
19253
19254# Variables whose values should be saved in libtool wrapper scripts and
19255# restored at link time.
19256variables_saved_for_relink=$lt_variables_saved_for_relink
19257
19258# Do we need the "lib" prefix for modules?
19259need_lib_prefix=$need_lib_prefix
19260
19261# Do we need a version for libraries?
19262need_version=$need_version
19263
19264# Library versioning type.
19265version_type=$version_type
19266
19267# Shared library runtime path variable.
19268runpath_var=$runpath_var
19269
19270# Shared library path variable.
19271shlibpath_var=$shlibpath_var
19272
19273# Is shlibpath searched before the hard-coded library search path?
19274shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19275
19276# Format of library name prefix.
19277libname_spec=$lt_libname_spec
19278
19279# List of archive names. First name is the real one, the rest are links.
19280# The last name is the one that the linker finds with -lNAME
19281library_names_spec=$lt_library_names_spec
19282
19283# The coded name of the library, if different from the real name.
19284soname_spec=$lt_soname_spec
19285
3725885a
RW
19286# Permission mode override for installation of shared libraries.
19287install_override_mode=$lt_install_override_mode
19288
d7040cdb
SE
19289# Command to use after installation of a shared archive.
19290postinstall_cmds=$lt_postinstall_cmds
19291
19292# Command to use after uninstallation of a shared archive.
19293postuninstall_cmds=$lt_postuninstall_cmds
19294
19295# Commands used to finish a libtool library installation in a directory.
19296finish_cmds=$lt_finish_cmds
19297
19298# As "finish_cmds", except a single script fragment to be evaled but
19299# not shown.
19300finish_eval=$lt_finish_eval
19301
19302# Whether we should hardcode library paths into libraries.
19303hardcode_into_libs=$hardcode_into_libs
19304
19305# Compile-time system search path for libraries.
19306sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19307
19308# Run-time system search path for libraries.
19309sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19310
19311# Whether dlopen is supported.
19312dlopen_support=$enable_dlopen
19313
19314# Whether dlopen of programs is supported.
19315dlopen_self=$enable_dlopen_self
19316
19317# Whether dlopen of statically linked programs is supported.
19318dlopen_self_static=$enable_dlopen_self_static
19319
19320# Commands to strip libraries.
19321old_striplib=$lt_old_striplib
19322striplib=$lt_striplib
19323
19324
19325# The linker used to build libraries.
19326LD=$lt_LD
19327
3725885a
RW
19328# How to create reloadable object files.
19329reload_flag=$lt_reload_flag
19330reload_cmds=$lt_reload_cmds
19331
d7040cdb
SE
19332# Commands used to build an old-style archive.
19333old_archive_cmds=$lt_old_archive_cmds
19334
19335# A language specific compiler.
19336CC=$lt_compiler
19337
19338# Is the compiler the GNU compiler?
19339with_gcc=$GCC
19340
19341# Compiler flag to turn off builtin functions.
19342no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19343
19344# How to pass a linker flag through the compiler.
19345wl=$lt_lt_prog_compiler_wl
19346
19347# Additional compiler flags for building library objects.
19348pic_flag=$lt_lt_prog_compiler_pic
19349
19350# Compiler flag to prevent dynamic linking.
19351link_static_flag=$lt_lt_prog_compiler_static
19352
19353# Does compiler simultaneously support -c and -o options?
19354compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19355
19356# Whether or not to add -lc for building shared libraries.
19357build_libtool_need_lc=$archive_cmds_need_lc
19358
19359# Whether or not to disallow shared libs when runtime libs are static.
19360allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19361
19362# Compiler flag to allow reflexive dlopens.
19363export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19364
19365# Compiler flag to generate shared objects directly from archives.
19366whole_archive_flag_spec=$lt_whole_archive_flag_spec
19367
19368# Whether the compiler copes with passing no objects directly.
19369compiler_needs_object=$lt_compiler_needs_object
19370
19371# Create an old-style archive from a shared archive.
19372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19373
19374# Create a temporary old-style archive to link instead of a shared archive.
19375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19376
19377# Commands used to build a shared archive.
19378archive_cmds=$lt_archive_cmds
19379archive_expsym_cmds=$lt_archive_expsym_cmds
19380
19381# Commands used to build a loadable module if different from building
19382# a shared archive.
19383module_cmds=$lt_module_cmds
19384module_expsym_cmds=$lt_module_expsym_cmds
19385
19386# Whether we are building with GNU ld or not.
19387with_gnu_ld=$lt_with_gnu_ld
19388
19389# Flag that allows shared libraries with undefined symbols to be built.
19390allow_undefined_flag=$lt_allow_undefined_flag
19391
19392# Flag that enforces no undefined symbols.
19393no_undefined_flag=$lt_no_undefined_flag
19394
19395# Flag to hardcode \$libdir into a binary during linking.
19396# This must work even if \$libdir does not exist
19397hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19398
19399# If ld is used when linking, flag to hardcode \$libdir into a binary
19400# during linking. This must work even if \$libdir does not exist.
19401hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19402
19403# Whether we need a single "-rpath" flag with a separated argument.
19404hardcode_libdir_separator=$lt_hardcode_libdir_separator
19405
19406# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19407# DIR into the resulting binary.
19408hardcode_direct=$hardcode_direct
19409
19410# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19411# DIR into the resulting binary and the resulting library dependency is
19412# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19413# library is relocated.
19414hardcode_direct_absolute=$hardcode_direct_absolute
19415
19416# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19417# into the resulting binary.
19418hardcode_minus_L=$hardcode_minus_L
19419
19420# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19421# into the resulting binary.
19422hardcode_shlibpath_var=$hardcode_shlibpath_var
19423
19424# Set to "yes" if building a shared library automatically hardcodes DIR
19425# into the library and all subsequent libraries and executables linked
19426# against it.
19427hardcode_automatic=$hardcode_automatic
19428
19429# Set to yes if linker adds runtime paths of dependent libraries
19430# to runtime path list.
19431inherit_rpath=$inherit_rpath
19432
19433# Whether libtool must link a program against all its dependency libraries.
19434link_all_deplibs=$link_all_deplibs
19435
19436# Fix the shell variable \$srcfile for the compiler.
19437fix_srcfile_path=$lt_fix_srcfile_path
19438
19439# Set to "yes" if exported symbols are required.
19440always_export_symbols=$always_export_symbols
19441
19442# The commands to list exported symbols.
19443export_symbols_cmds=$lt_export_symbols_cmds
19444
19445# Symbols that should not be listed in the preloaded symbols.
19446exclude_expsyms=$lt_exclude_expsyms
19447
19448# Symbols that must always be exported.
19449include_expsyms=$lt_include_expsyms
19450
19451# Commands necessary for linking programs (against libraries) with templates.
19452prelink_cmds=$lt_prelink_cmds
19453
19454# Specify filename containing input files.
19455file_list_spec=$lt_file_list_spec
19456
19457# How to hardcode a shared library path into an executable.
19458hardcode_action=$hardcode_action
19459
3cb62297
L
19460# The directories searched by this compiler when creating a shared library.
19461compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19462
19463# Dependencies to place before and after the objects being linked to
19464# create a shared library.
19465predep_objects=$lt_predep_objects
19466postdep_objects=$lt_postdep_objects
19467predeps=$lt_predeps
19468postdeps=$lt_postdeps
19469
19470# The library search path used internally by the compiler when linking
19471# a shared library.
19472compiler_lib_search_path=$lt_compiler_lib_search_path
19473
d7040cdb
SE
19474# ### END LIBTOOL CONFIG
19475
19476_LT_EOF
19477
19478 case $host_os in
19479 aix3*)
19480 cat <<\_LT_EOF >> "$cfgfile"
19481# AIX sometimes has problems with the GCC collect2 program. For some
19482# reason, if we set the COLLECT_NAMES environment variable, the problems
19483# vanish in a puff of smoke.
19484if test "X${COLLECT_NAMES+set}" != Xset; then
19485 COLLECT_NAMES=
19486 export COLLECT_NAMES
19487fi
19488_LT_EOF
19489 ;;
19490 esac
19491
19492
19493ltmain="$ac_aux_dir/ltmain.sh"
19494
19495
19496 # We use sed instead of cat because bash on DJGPP gets confused if
19497 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19498 # text mode, it properly converts lines to CR/LF. This bash problem
19499 # is reportedly fixed, but why not run on old versions too?
19500 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19501 || (rm -f "$cfgfile"; exit 1)
19502
19503 case $xsi_shell in
19504 yes)
19505 cat << \_LT_EOF >> "$cfgfile"
b214d478 19506
d7040cdb
SE
19507# func_dirname file append nondir_replacement
19508# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19509# otherwise set result to NONDIR_REPLACEMENT.
19510func_dirname ()
19511{
19512 case ${1} in
19513 */*) func_dirname_result="${1%/*}${2}" ;;
19514 * ) func_dirname_result="${3}" ;;
19515 esac
19516}
19517
19518# func_basename file
19519func_basename ()
19520{
19521 func_basename_result="${1##*/}"
19522}
19523
b214d478
SE
19524# func_dirname_and_basename file append nondir_replacement
19525# perform func_basename and func_dirname in a single function
19526# call:
19527# dirname: Compute the dirname of FILE. If nonempty,
19528# add APPEND to the result, otherwise set result
19529# to NONDIR_REPLACEMENT.
19530# value returned in "$func_dirname_result"
19531# basename: Compute filename of FILE.
19532# value retuned in "$func_basename_result"
19533# Implementation must be kept synchronized with func_dirname
19534# and func_basename. For efficiency, we do not delegate to
19535# those functions but instead duplicate the functionality here.
19536func_dirname_and_basename ()
19537{
19538 case ${1} in
19539 */*) func_dirname_result="${1%/*}${2}" ;;
19540 * ) func_dirname_result="${3}" ;;
19541 esac
19542 func_basename_result="${1##*/}"
19543}
19544
d7040cdb
SE
19545# func_stripname prefix suffix name
19546# strip PREFIX and SUFFIX off of NAME.
19547# PREFIX and SUFFIX must not contain globbing or regex special
19548# characters, hashes, percent signs, but SUFFIX may contain a leading
19549# dot (in which case that matches only a dot).
19550func_stripname ()
19551{
19552 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19553 # positional parameters, so assign one to ordinary parameter first.
19554 func_stripname_result=${3}
19555 func_stripname_result=${func_stripname_result#"${1}"}
19556 func_stripname_result=${func_stripname_result%"${2}"}
19557}
19558
19559# func_opt_split
19560func_opt_split ()
19561{
19562 func_opt_split_opt=${1%%=*}
19563 func_opt_split_arg=${1#*=}
19564}
19565
19566# func_lo2o object
19567func_lo2o ()
19568{
19569 case ${1} in
19570 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19571 *) func_lo2o_result=${1} ;;
19572 esac
19573}
b214d478
SE
19574
19575# func_xform libobj-or-source
19576func_xform ()
19577{
19578 func_xform_result=${1%.*}.lo
19579}
19580
19581# func_arith arithmetic-term...
19582func_arith ()
19583{
19584 func_arith_result=$(( $* ))
19585}
19586
19587# func_len string
19588# STRING may not start with a hyphen.
19589func_len ()
19590{
19591 func_len_result=${#1}
19592}
19593
d7040cdb
SE
19594_LT_EOF
19595 ;;
19596 *) # Bourne compatible functions.
19597 cat << \_LT_EOF >> "$cfgfile"
b214d478 19598
d7040cdb
SE
19599# func_dirname file append nondir_replacement
19600# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19601# otherwise set result to NONDIR_REPLACEMENT.
19602func_dirname ()
19603{
19604 # Extract subdirectory from the argument.
3725885a 19605 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19606 if test "X$func_dirname_result" = "X${1}"; then
19607 func_dirname_result="${3}"
19608 else
19609 func_dirname_result="$func_dirname_result${2}"
19610 fi
19611}
19612
19613# func_basename file
19614func_basename ()
19615{
3725885a 19616 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19617}
19618
b214d478 19619
d7040cdb
SE
19620# func_stripname prefix suffix name
19621# strip PREFIX and SUFFIX off of NAME.
19622# PREFIX and SUFFIX must not contain globbing or regex special
19623# characters, hashes, percent signs, but SUFFIX may contain a leading
19624# dot (in which case that matches only a dot).
19625# func_strip_suffix prefix name
19626func_stripname ()
19627{
19628 case ${2} in
3725885a
RW
19629 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19630 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19631 esac
19632}
19633
19634# sed scripts:
19635my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19636my_sed_long_arg='1s/^-[^=]*=//'
19637
19638# func_opt_split
19639func_opt_split ()
19640{
3725885a
RW
19641 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19642 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19643}
19644
19645# func_lo2o object
19646func_lo2o ()
19647{
3725885a 19648 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19649}
b214d478
SE
19650
19651# func_xform libobj-or-source
19652func_xform ()
19653{
3725885a 19654 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19655}
19656
19657# func_arith arithmetic-term...
19658func_arith ()
19659{
19660 func_arith_result=`expr "$@"`
19661}
19662
19663# func_len string
19664# STRING may not start with a hyphen.
19665func_len ()
19666{
19667 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19668}
19669
d7040cdb
SE
19670_LT_EOF
19671esac
19672
19673case $lt_shell_append in
19674 yes)
19675 cat << \_LT_EOF >> "$cfgfile"
19676
19677# func_append var value
19678# Append VALUE to the end of shell variable VAR.
19679func_append ()
19680{
19681 eval "$1+=\$2"
19682}
19683_LT_EOF
19684 ;;
19685 *)
19686 cat << \_LT_EOF >> "$cfgfile"
19687
19688# func_append var value
19689# Append VALUE to the end of shell variable VAR.
19690func_append ()
19691{
19692 eval "$1=\$$1\$2"
19693}
b214d478 19694
d7040cdb
SE
19695_LT_EOF
19696 ;;
19697 esac
19698
19699
19700 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19701 || (rm -f "$cfgfile"; exit 1)
19702
19703 mv -f "$cfgfile" "$ofile" ||
19704 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19705 chmod +x "$ofile"
19706
3cb62297
L
19707
19708 cat <<_LT_EOF >> "$ofile"
19709
19710# ### BEGIN LIBTOOL TAG CONFIG: CXX
19711
19712# The linker used to build libraries.
19713LD=$lt_LD_CXX
19714
19715# How to create reloadable object files.
19716reload_flag=$lt_reload_flag_CXX
19717reload_cmds=$lt_reload_cmds_CXX
19718
19719# Commands used to build an old-style archive.
19720old_archive_cmds=$lt_old_archive_cmds_CXX
19721
19722# A language specific compiler.
19723CC=$lt_compiler_CXX
19724
19725# Is the compiler the GNU compiler?
19726with_gcc=$GCC_CXX
19727
19728# Compiler flag to turn off builtin functions.
19729no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19730
19731# How to pass a linker flag through the compiler.
19732wl=$lt_lt_prog_compiler_wl_CXX
19733
19734# Additional compiler flags for building library objects.
19735pic_flag=$lt_lt_prog_compiler_pic_CXX
19736
19737# Compiler flag to prevent dynamic linking.
19738link_static_flag=$lt_lt_prog_compiler_static_CXX
19739
19740# Does compiler simultaneously support -c and -o options?
19741compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19742
19743# Whether or not to add -lc for building shared libraries.
19744build_libtool_need_lc=$archive_cmds_need_lc_CXX
19745
19746# Whether or not to disallow shared libs when runtime libs are static.
19747allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19748
19749# Compiler flag to allow reflexive dlopens.
19750export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19751
19752# Compiler flag to generate shared objects directly from archives.
19753whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19754
19755# Whether the compiler copes with passing no objects directly.
19756compiler_needs_object=$lt_compiler_needs_object_CXX
19757
19758# Create an old-style archive from a shared archive.
19759old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19760
19761# Create a temporary old-style archive to link instead of a shared archive.
19762old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19763
19764# Commands used to build a shared archive.
19765archive_cmds=$lt_archive_cmds_CXX
19766archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19767
19768# Commands used to build a loadable module if different from building
19769# a shared archive.
19770module_cmds=$lt_module_cmds_CXX
19771module_expsym_cmds=$lt_module_expsym_cmds_CXX
19772
19773# Whether we are building with GNU ld or not.
19774with_gnu_ld=$lt_with_gnu_ld_CXX
19775
19776# Flag that allows shared libraries with undefined symbols to be built.
19777allow_undefined_flag=$lt_allow_undefined_flag_CXX
19778
19779# Flag that enforces no undefined symbols.
19780no_undefined_flag=$lt_no_undefined_flag_CXX
19781
19782# Flag to hardcode \$libdir into a binary during linking.
19783# This must work even if \$libdir does not exist
19784hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19785
19786# If ld is used when linking, flag to hardcode \$libdir into a binary
19787# during linking. This must work even if \$libdir does not exist.
19788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19789
19790# Whether we need a single "-rpath" flag with a separated argument.
19791hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19792
19793# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19794# DIR into the resulting binary.
19795hardcode_direct=$hardcode_direct_CXX
19796
19797# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19798# DIR into the resulting binary and the resulting library dependency is
19799# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19800# library is relocated.
19801hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19802
19803# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19804# into the resulting binary.
19805hardcode_minus_L=$hardcode_minus_L_CXX
19806
19807# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19808# into the resulting binary.
19809hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19810
19811# Set to "yes" if building a shared library automatically hardcodes DIR
19812# into the library and all subsequent libraries and executables linked
19813# against it.
19814hardcode_automatic=$hardcode_automatic_CXX
19815
19816# Set to yes if linker adds runtime paths of dependent libraries
19817# to runtime path list.
19818inherit_rpath=$inherit_rpath_CXX
19819
19820# Whether libtool must link a program against all its dependency libraries.
19821link_all_deplibs=$link_all_deplibs_CXX
19822
19823# Fix the shell variable \$srcfile for the compiler.
19824fix_srcfile_path=$lt_fix_srcfile_path_CXX
19825
19826# Set to "yes" if exported symbols are required.
19827always_export_symbols=$always_export_symbols_CXX
19828
19829# The commands to list exported symbols.
19830export_symbols_cmds=$lt_export_symbols_cmds_CXX
19831
19832# Symbols that should not be listed in the preloaded symbols.
19833exclude_expsyms=$lt_exclude_expsyms_CXX
19834
19835# Symbols that must always be exported.
19836include_expsyms=$lt_include_expsyms_CXX
19837
19838# Commands necessary for linking programs (against libraries) with templates.
19839prelink_cmds=$lt_prelink_cmds_CXX
19840
19841# Specify filename containing input files.
19842file_list_spec=$lt_file_list_spec_CXX
19843
19844# How to hardcode a shared library path into an executable.
19845hardcode_action=$hardcode_action_CXX
19846
19847# The directories searched by this compiler when creating a shared library.
19848compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19849
19850# Dependencies to place before and after the objects being linked to
19851# create a shared library.
19852predep_objects=$lt_predep_objects_CXX
19853postdep_objects=$lt_postdep_objects_CXX
19854predeps=$lt_predeps_CXX
19855postdeps=$lt_postdeps_CXX
19856
19857# The library search path used internally by the compiler when linking
19858# a shared library.
19859compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19860
19861# ### END LIBTOOL TAG CONFIG: CXX
19862_LT_EOF
19863
42ecbf5e 19864 ;;
81ecdfbb 19865 "default-1":C)
20e95c23
DJ
19866 for ac_file in $CONFIG_FILES; do
19867 # Support "outfile[:infile[:infile...]]"
19868 case "$ac_file" in
19869 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19870 esac
19871 # PO directories have a Makefile.in generated from Makefile.in.in.
19872 case "$ac_file" in */Makefile.in)
19873 # Adjust a relative srcdir.
19874 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19875 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19876 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19877 # In autoconf-2.13 it is called $ac_given_srcdir.
19878 # In autoconf-2.50 it is called $srcdir.
19879 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19880 case "$ac_given_srcdir" in
19881 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19882 /*) top_srcdir="$ac_given_srcdir" ;;
19883 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19884 esac
19885 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19886 rm -f "$ac_dir/POTFILES"
19887 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19888 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19889 POMAKEFILEDEPS="POTFILES.in"
19890 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19891 # on $ac_dir but don't depend on user-specified configuration
19892 # parameters.
19893 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19894 # The LINGUAS file contains the set of available languages.
19895 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19896 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19897 fi
19898 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19899 # Hide the ALL_LINGUAS assigment from automake.
19900 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19901 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19902 else
19903 # The set of available languages was given in configure.in.
19904 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19905 fi
19906 case "$ac_given_srcdir" in
19907 .) srcdirpre= ;;
19908 *) srcdirpre='$(srcdir)/' ;;
19909 esac
19910 POFILES=
19911 GMOFILES=
19912 UPDATEPOFILES=
19913 DUMMYPOFILES=
19914 for lang in $ALL_LINGUAS; do
19915 POFILES="$POFILES $srcdirpre$lang.po"
19916 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19917 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19918 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19919 done
19920 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19921 # environment variable.
19922 INST_LINGUAS=
19923 if test -n "$ALL_LINGUAS"; then
19924 for presentlang in $ALL_LINGUAS; do
19925 useit=no
19926 if test "%UNSET%" != "$LINGUAS"; then
19927 desiredlanguages="$LINGUAS"
19928 else
19929 desiredlanguages="$ALL_LINGUAS"
19930 fi
19931 for desiredlang in $desiredlanguages; do
19932 # Use the presentlang catalog if desiredlang is
19933 # a. equal to presentlang, or
19934 # b. a variant of presentlang (because in this case,
19935 # presentlang can be used as a fallback for messages
19936 # which are not translated in the desiredlang catalog).
19937 case "$desiredlang" in
19938 "$presentlang"*) useit=yes;;
19939 esac
19940 done
19941 if test $useit = yes; then
19942 INST_LINGUAS="$INST_LINGUAS $presentlang"
19943 fi
19944 done
19945 fi
19946 CATALOGS=
19947 if test -n "$INST_LINGUAS"; then
19948 for lang in $INST_LINGUAS; do
19949 CATALOGS="$CATALOGS $lang.gmo"
19950 done
19951 fi
19952 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19953 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"
19954 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19955 if test -f "$f"; then
19956 case "$f" in
19957 *.orig | *.bak | *~) ;;
19958 *) cat "$f" >> "$ac_dir/Makefile" ;;
19959 esac
19960 fi
19961 done
19962 fi
19963 ;;
19964 esac
19965 done ;;
81ecdfbb 19966
42ecbf5e 19967 esac
81ecdfbb 19968done # for ac_tag
42ecbf5e 19969
42ecbf5e 19970
81ecdfbb 19971as_fn_exit 0
42ecbf5e 19972_ACEOF
42ecbf5e
DJ
19973ac_clean_files=$ac_clean_files_save
19974
81ecdfbb
RW
19975test $ac_write_fail = 0 ||
19976 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19977
42ecbf5e
DJ
19978
19979# configure is writing to config.log, and then calls config.status.
19980# config.status does its own redirection, appending to config.log.
19981# Unfortunately, on DOS this fails, as config.log is still kept open
19982# by configure, so config.status won't be able to write to it; its
19983# output is simply discarded. So we exec the FD to /dev/null,
19984# effectively closing config.log, so it can be properly (re)opened and
19985# appended to by config.status. When coming back to configure, we
19986# need to make the FD available again.
19987if test "$no_create" != yes; then
19988 ac_cs_success=:
19989 ac_config_status_args=
19990 test "$silent" = yes &&
19991 ac_config_status_args="$ac_config_status_args --quiet"
19992 exec 5>/dev/null
19993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19994 exec 5>>config.log
19995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19996 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19997 $ac_cs_success || as_fn_exit $?
19998fi
19999if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20001$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20002fi
252b5132 20003
This page took 1.760525 seconds and 4 git commands to generate.