Fix ealphavms.c and eelf64_ia64_vms.c deps
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
d8bd95ef 3# Generated by GNU Autoconf 2.64 for ld 2.26.51.
81ecdfbb
RW
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
252b5132
RH
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
42ecbf5e 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
42ecbf5e 31fi
42ecbf5e 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
42ecbf5e
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
42ecbf5e
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
172test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 192do
81ecdfbb
RW
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 236 else
81ecdfbb
RW
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
42ecbf5e 241 fi
81ecdfbb
RW
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
42ecbf5e 380
81ecdfbb
RW
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
383 as_expr=expr
384else
385 as_expr=false
386fi
387
81ecdfbb 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
389 as_basename=basename
390else
391 as_basename=false
392fi
393
81ecdfbb
RW
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
42ecbf5e 399
81ecdfbb 400as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
42ecbf5e 418
42ecbf5e
DJ
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
42ecbf5e 426
81ecdfbb
RW
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
42ecbf5e 436 sed '
81ecdfbb
RW
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
42ecbf5e 441 N
81ecdfbb
RW
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 444 t loop
81ecdfbb 445 s/-\n.*//
42ecbf5e 446 ' >$as_me.lineno &&
81ecdfbb
RW
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e
DJ
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
42ecbf5e
DJ
454 # Exit status is that of the last command.
455 exit
456}
457
81ecdfbb
RW
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
42ecbf5e
DJ
469esac
470
81ecdfbb
RW
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
42ecbf5e 474else
81ecdfbb
RW
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
42ecbf5e 477fi
81ecdfbb
RW
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 480 as_ln_s='ln -s'
81ecdfbb
RW
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
42ecbf5e 491 fi
42ecbf5e
DJ
492else
493 as_ln_s='cp -p'
494fi
81ecdfbb
RW
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
497
498if mkdir -p . 2>/dev/null; then
81ecdfbb 499 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
81ecdfbb
RW
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
42ecbf5e
DJ
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
d7040cdb
SE
534SHELL=${CONFIG_SHELL-/bin/sh}
535
d7040cdb 536
81ecdfbb
RW
537exec 7<&0 </dev/null 6>&1
538
42ecbf5e
DJ
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 543
42ecbf5e
DJ
544#
545# Initializations.
546#
252b5132 547ac_default_prefix=/usr/local
81ecdfbb 548ac_clean_files=
42ecbf5e 549ac_config_libobj_dir=.
81ecdfbb 550LIBOBJS=
42ecbf5e
DJ
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
42ecbf5e
DJ
555
556# Identity of this package.
2e98a7bd
AM
557PACKAGE_NAME='ld'
558PACKAGE_TARNAME='ld'
d8bd95ef
TG
559PACKAGE_VERSION='2.26.51'
560PACKAGE_STRING='ld 2.26.51'
2e98a7bd
AM
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
42ecbf5e
DJ
563
564ac_unique_file="ldmain.c"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
81ecdfbb 568#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
569# include <sys/types.h>
570#endif
81ecdfbb 571#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
572# include <sys/stat.h>
573#endif
81ecdfbb 574#ifdef STDC_HEADERS
42ecbf5e
DJ
575# include <stdlib.h>
576# include <stddef.h>
577#else
81ecdfbb 578# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
579# include <stdlib.h>
580# endif
581#endif
81ecdfbb
RW
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
584# include <memory.h>
585# endif
586# include <string.h>
587#endif
81ecdfbb 588#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
589# include <strings.h>
590#endif
81ecdfbb 591#ifdef HAVE_INTTYPES_H
42ecbf5e 592# include <inttypes.h>
42ecbf5e 593#endif
81ecdfbb
RW
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
598# include <unistd.h>
599#endif"
600
81ecdfbb
RW
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605TESTBFDLIB
606EMULATION_LIBPATH
607LIB_PATH
608EMUL_EXTRA_OFILES
609EMULATION_OFILES
610EMUL
c58212ea
L
611elf_plt_unwind_list_options
612elf_shlib_list_options
613elf_list_options
81ecdfbb 614STRINGIFY
02ecc8e9 615enable_initfini_array
5d3236ee
DK
616ENABLE_PLUGINS_FALSE
617ENABLE_PLUGINS_TRUE
81ecdfbb 618NATIVE_LIB_DIRS
b27caf75 619HOSTING_SLIBS
81ecdfbb 620HOSTING_LIBS
6738cadc 621HOSTING_SCRT0
81ecdfbb
RW
622HOSTING_CRT0
623HDEFINES
624do_compare
625GENINSRC_NEVER_FALSE
626GENINSRC_NEVER_TRUE
81ecdfbb
RW
627LEXLIB
628LEX_OUTPUT_ROOT
629LEX
630YFLAGS
631YACC
632MSGMERGE
633MSGFMT
634MKINSTALLDIRS
635CATOBJEXT
636GENCAT
637INSTOBJEXT
638DATADIRNAME
639CATALOGS
640POSUB
641GMSGFMT
642XGETTEXT
643INCINTL
644LIBINTL_DEP
645LIBINTL
646USE_NLS
6757cf57 647WARN_WRITE_STRINGS
b879806f
AM
648NO_WERROR
649WARN_CFLAGS
650installed_linker
651install_as_default
652TARGET_SYSTEM_ROOT_DEFINE
653TARGET_SYSTEM_ROOT
654use_sysroot
3cb62297 655CXXCPP
81ecdfbb
RW
656OTOOL64
657OTOOL
658LIPO
659NMEDIT
660DSYMUTIL
81ecdfbb
RW
661RANLIB
662AR
663OBJDUMP
664LN_S
665NM
666ac_ct_DUMPBIN
667DUMPBIN
668LD
669FGREP
670SED
671LIBTOOL
b879806f 672EGREP
b879806f 673CPP
68880f31 674GREP
3cb62297
L
675am__fastdepCXX_FALSE
676am__fastdepCXX_TRUE
677CXXDEPMODE
678ac_ct_CXX
679CXXFLAGS
680CXX
64ac50ac
RW
681MAINT
682MAINTAINER_MODE_FALSE
683MAINTAINER_MODE_TRUE
81ecdfbb
RW
684am__fastdepCC_FALSE
685am__fastdepCC_TRUE
686CCDEPMODE
687AMDEPBACKSLASH
688AMDEP_FALSE
689AMDEP_TRUE
690am__quote
691am__include
692DEPDIR
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723target_os
724target_vendor
725target_cpu
726target
727host_os
728host_vendor
729host_cpu
730host
731build_os
732build_vendor
733build_cpu
734build
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
42ecbf5e 773ac_subst_files='TDIRS'
81ecdfbb
RW
774ac_user_opts='
775enable_option_checking
776enable_dependency_tracking
64ac50ac 777enable_maintainer_mode
b879806f
AM
778enable_shared
779enable_static
780with_pic
781enable_fast_install
782with_gnu_ld
783enable_libtool_lock
784enable_plugins
785enable_largefile
81ecdfbb
RW
786with_lib_path
787enable_targets
788enable_64_bit_bfd
789with_sysroot
4fda8867 790enable_gold
81ecdfbb 791enable_got
6c3bc0f8 792enable_compressed_debug_sections
81ecdfbb
RW
793enable_werror
794enable_build_warnings
81ecdfbb 795enable_nls
02ecc8e9 796enable_initfini_array
81ecdfbb
RW
797'
798 ac_precious_vars='build_alias
799host_alias
800target_alias
801CC
802CFLAGS
803LDFLAGS
804LIBS
805CPPFLAGS
3cb62297
L
806CXX
807CXXFLAGS
808CCC
b879806f 809CPP
3cb62297 810CXXCPP
81ecdfbb
RW
811YACC
812YFLAGS'
813
252b5132
RH
814
815# Initialize some variables set by options.
42ecbf5e
DJ
816ac_init_help=
817ac_init_version=false
81ecdfbb
RW
818ac_unrecognized_opts=
819ac_unrecognized_sep=
252b5132
RH
820# The variables have the same names as the options, with
821# dashes changed to underlines.
42ecbf5e 822cache_file=/dev/null
252b5132 823exec_prefix=NONE
252b5132 824no_create=
252b5132
RH
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
252b5132
RH
833verbose=
834x_includes=NONE
835x_libraries=NONE
42ecbf5e
DJ
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 842# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
252b5132
RH
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
252b5132
RH
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
2e98a7bd 853docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
252b5132 862
252b5132 863ac_prev=
81ecdfbb 864ac_dashdash=
252b5132
RH
865for ac_option
866do
252b5132
RH
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
81ecdfbb 869 eval $ac_prev=\$ac_option
252b5132
RH
870 ac_prev=
871 continue
872 fi
873
81ecdfbb
RW
874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
252b5132
RH
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
81ecdfbb
RW
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
252b5132
RH
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 888 bindir=$ac_optarg ;;
252b5132
RH
889
890 -build | --build | --buil | --bui | --bu)
42ecbf5e 891 ac_prev=build_alias ;;
252b5132 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 893 build_alias=$ac_optarg ;;
252b5132
RH
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
252b5132 904
81ecdfbb 905 -datadir | --datadir | --datadi | --datad)
252b5132 906 ac_prev=datadir ;;
81ecdfbb 907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 908 datadir=$ac_optarg ;;
252b5132 909
81ecdfbb
RW
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
252b5132 917 -disable-* | --disable-*)
81ecdfbb 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 919 # Reject names that are not valid shell variable names.
81ecdfbb
RW
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
252b5132
RH
942
943 -enable-* | --enable-*)
81ecdfbb 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 945 # Reject names that are not valid shell variable names.
81ecdfbb
RW
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
252b5132 956 esac
81ecdfbb 957 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
42ecbf5e 966 exec_prefix=$ac_optarg ;;
252b5132
RH
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
42ecbf5e
DJ
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
252b5132
RH
978
979 -host | --host | --hos | --ho)
42ecbf5e 980 ac_prev=host_alias ;;
252b5132 981 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 982 host_alias=$ac_optarg ;;
252b5132 983
81ecdfbb
RW
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
252b5132
RH
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 995 includedir=$ac_optarg ;;
252b5132
RH
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1000 infodir=$ac_optarg ;;
252b5132
RH
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1005 libdir=$ac_optarg ;;
252b5132
RH
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1012 libexecdir=$ac_optarg ;;
252b5132 1013
81ecdfbb
RW
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
252b5132 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1020 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1024 localstatedir=$ac_optarg ;;
252b5132
RH
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1029 mandir=$ac_optarg ;;
252b5132
RH
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1036 | --no-cr | --no-c | -n)
252b5132
RH
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1050 oldincludedir=$ac_optarg ;;
252b5132
RH
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1055 prefix=$ac_optarg ;;
252b5132
RH
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1062 program_prefix=$ac_optarg ;;
252b5132
RH
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1069 program_suffix=$ac_optarg ;;
252b5132
RH
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1086 program_transform_name=$ac_optarg ;;
252b5132 1087
81ecdfbb
RW
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
252b5132
RH
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
42ecbf5e 1106 sbindir=$ac_optarg ;;
252b5132
RH
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
42ecbf5e 1117 sharedstatedir=$ac_optarg ;;
252b5132
RH
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
42ecbf5e 1122 site=$ac_optarg ;;
85fbca6a 1123
252b5132
RH
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1127 srcdir=$ac_optarg ;;
252b5132
RH
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1134 sysconfdir=$ac_optarg ;;
252b5132
RH
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1137 ac_prev=target_alias ;;
252b5132 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1139 target_alias=$ac_optarg ;;
252b5132
RH
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
42ecbf5e
DJ
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
252b5132
RH
1146
1147 -with-* | --with-*)
81ecdfbb 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1149 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
252b5132 1160 esac
81ecdfbb 1161 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1162
1163 -without-* | --without-*)
81ecdfbb 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1165 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
252b5132
RH
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1188 x_includes=$ac_optarg ;;
252b5132
RH
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1195 x_libraries=$ac_optarg ;;
252b5132 1196
81ecdfbb
RW
1197 -*) as_fn_error "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information."
252b5132
RH
1199 ;;
1200
42ecbf5e
DJ
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1209 export $ac_envvar ;;
1210
252b5132 1211 *)
42ecbf5e 1212 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
42ecbf5e 1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
1217 ;;
1218
1219 esac
1220done
1221
1222if test -n "$ac_prev"; then
42ecbf5e 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1224 as_fn_error "missing argument to $ac_option"
252b5132 1225fi
252b5132 1226
81ecdfbb
RW
1227if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1232 esac
81ecdfbb 1233fi
252b5132 1234
81ecdfbb
RW
1235# Check all directory arguments for consistency.
1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
252b5132 1240do
81ecdfbb
RW
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
42ecbf5e 1249 case $ac_val in
81ecdfbb
RW
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1252 esac
81ecdfbb 1253 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1254done
1255
42ecbf5e
DJ
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
1262
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
81ecdfbb 1267 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
42ecbf5e
DJ
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272fi
e5a52504 1273
42ecbf5e
DJ
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
252b5132 1278
252b5132 1279
81ecdfbb
RW
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error "pwd does not report name of working directory"
1286
1287
252b5132
RH
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
81ecdfbb
RW
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
252b5132 1315 srcdir=$ac_confdir
81ecdfbb 1316 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1317 srcdir=..
1318 fi
1319else
1320 ac_srcdir_defaulted=no
1321fi
81ecdfbb
RW
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
1340for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345done
252b5132 1346
42ecbf5e
DJ
1347#
1348# Report the --help message.
1349#
1350if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
d8bd95ef 1354\`configure' configures ld 2.26.51 to adapt to many kinds of systems.
252b5132 1355
42ecbf5e 1356Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1357
42ecbf5e
DJ
1358To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1360
42ecbf5e 1361Defaults for the options are specified in brackets.
ac48eca1 1362
42ecbf5e
DJ
1363Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373
42ecbf5e
DJ
1374Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1376 [$ac_default_prefix]
42ecbf5e 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1378 [PREFIX]
ac48eca1 1379
42ecbf5e
DJ
1380By default, \`make install' will install all the files in
1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383for instance \`--prefix=\$HOME'.
ac48eca1 1384
42ecbf5e 1385For better control, use the options below.
ac48eca1 1386
42ecbf5e 1387Fine tuning of the installation directories:
81ecdfbb
RW
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1407_ACEOF
ac48eca1 1408
42ecbf5e 1409 cat <<\_ACEOF
252b5132 1410
42ecbf5e
DJ
1411Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1415
42ecbf5e
DJ
1416System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 --target=TARGET configure for building compilers for TARGET [HOST]
1420_ACEOF
252b5132 1421fi
252b5132 1422
42ecbf5e 1423if test -n "$ac_init_help"; then
2e98a7bd 1424 case $ac_init_help in
d8bd95ef 1425 short | recursive ) echo "Configuration of ld 2.26.51:";;
2e98a7bd 1426 esac
42ecbf5e 1427 cat <<\_ACEOF
e5a52504 1428
42ecbf5e 1429Optional Features:
81ecdfbb 1430 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --disable-dependency-tracking speeds up one-time build
1434 --enable-dependency-tracking do not reject slow dependency extractors
64ac50ac
RW
1435 --enable-maintainer-mode enable make rules and dependencies not useful
1436 (and sometimes confusing) to the casual installer
b879806f
AM
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --enable-plugins Enable support for plugins
1443 --disable-largefile omit support for large files
ce2cded5
L
1444 --enable-targets alternative target configurations
1445 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1446 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1447 --enable-got=<type> GOT handling scheme (target, single, negative,
1448 multigot)
4894d80b
L
1449 --enable-compressed-debug-sections={all,ld,none}
1450 compress debug sections by default]
ce2cded5
L
1451 --enable-werror treat compile warnings as errors
1452 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1453 --disable-nls do not use Native Language Support
26e3a0c9 1454 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1455
1456Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1460 both]
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1462 --with-lib-path=dir1:dir2... set default LIB_PATH
1463 --with-sysroot=DIR Search for usr/lib et al within DIR.
42ecbf5e
DJ
1464
1465Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
81ecdfbb
RW
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
3cb62297
L
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
b879806f 1475 CPP C preprocessor
3cb62297 1476 CXXCPP C++ preprocessor
81ecdfbb
RW
1477 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1478 the first program found out of: `bison -y', `byacc', `yacc'.
1479 YFLAGS The list of arguments that will be passed by default to $YACC.
1480 This script will default YFLAGS to the empty string to avoid a
1481 default value of `-d' given by some make applications.
42ecbf5e
DJ
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
81ecdfbb 1486Report bugs to the package provider.
42ecbf5e 1487_ACEOF
81ecdfbb 1488ac_status=$?
42ecbf5e
DJ
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
42ecbf5e 1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
42ecbf5e
DJ
1497 ac_builddir=.
1498
81ecdfbb
RW
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1514
1515case $srcdir in
81ecdfbb 1516 .) # We are building in place.
42ecbf5e 1517 ac_srcdir=.
81ecdfbb
RW
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1521 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1528esac
81ecdfbb
RW
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f "$ac_srcdir/configure.gnu"; then
1534 echo &&
1535 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536 elif test -f "$ac_srcdir/configure"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1539 else
81ecdfbb
RW
1540 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 fi || ac_status=$?
1542 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1543 done
a2d91340
AC
1544fi
1545
81ecdfbb 1546test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1547if $ac_init_version; then
1548 cat <<\_ACEOF
d8bd95ef 1549ld configure 2.26.51
81ecdfbb 1550generated by GNU Autoconf 2.64
a2d91340 1551
81ecdfbb 1552Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
81ecdfbb 1556 exit
42ecbf5e 1557fi
a2d91340 1558
81ecdfbb
RW
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
a2d91340 1562
81ecdfbb
RW
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 rm -f conftest.$ac_objext
1570 if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573 *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577 (eval "$ac_compile") 2>conftest.err
1578 ac_status=$?
1579 if test -s conftest.err; then
1580 grep -v '^ *+' conftest.err >conftest.er1
1581 cat conftest.er1 >&5
1582 mv -f conftest.er1 conftest.err
1583 fi
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; } && {
1586 test -z "$ac_c_werror_flag" ||
1587 test ! -s conftest.err
1588 } && test -s conftest.$ac_objext; then :
1589 ac_retval=0
1590else
1591 $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1593
81ecdfbb
RW
1594 ac_retval=1
1595fi
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 return $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_try_link LINENO
1602# -----------------------
1603# Try to link conftest.$ac_ext, and return whether this succeeded.
1604ac_fn_c_try_link ()
42ecbf5e 1605{
81ecdfbb
RW
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612esac
1613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614$as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631else
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1634
81ecdfbb
RW
1635 ac_retval=1
1636fi
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 return $ac_retval
42ecbf5e 1644
81ecdfbb 1645} # ac_fn_c_try_link
42ecbf5e 1646
b879806f
AM
1647# ac_fn_cxx_try_compile LINENO
1648# ----------------------------
1649# Try to compile conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_cxx_try_compile ()
81ecdfbb
RW
1651{
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
81ecdfbb
RW
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
b879806f 1661 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1669 test $ac_status = 0; } && {
1670 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1671 test ! -s conftest.err
b879806f 1672 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
b879806f 1678 ac_retval=1
81ecdfbb
RW
1679fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
b879806f 1683} # ac_fn_cxx_try_compile
81ecdfbb 1684
b879806f
AM
1685# ac_fn_c_try_cpp LINENO
1686# ----------------------
1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688ac_fn_c_try_cpp ()
3cb62297
L
1689{
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1691 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1692case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
b879806f 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1706 test $ac_status = 0; } >/dev/null && {
1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1708 test ! -s conftest.err
b879806f 1709 }; then :
3cb62297
L
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
b879806f 1715 ac_retval=1
3cb62297
L
1716fi
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 return $ac_retval
1719
b879806f 1720} # ac_fn_c_try_cpp
3cb62297 1721
81ecdfbb
RW
1722# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1725# the include files in INCLUDES and setting the cache variable VAR
1726# accordingly.
1727ac_fn_c_check_header_mongrel ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732$as_echo_n "checking for $2... " >&6; }
1733if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1734 $as_echo_n "(cached) " >&6
1735fi
1736eval ac_res=\$$3
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739else
1740 # Is the header compilable?
1741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1742$as_echo_n "checking $2 usability... " >&6; }
1743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h. */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749 ac_header_compiler=yes
1750else
1751 ac_header_compiler=no
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1755$as_echo "$ac_header_compiler" >&6; }
1756
1757# Is the header present?
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1759$as_echo_n "checking $2 presence... " >&6; }
1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762#include <$2>
1763_ACEOF
1764if ac_fn_c_try_cpp "$LINENO"; then :
1765 ac_header_preproc=yes
1766else
1767 ac_header_preproc=no
1768fi
1769rm -f conftest.err conftest.$ac_ext
1770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1771$as_echo "$ac_header_preproc" >&6; }
1772
1773# So? What about this header?
1774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1775 yes:no: )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1777$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1779$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780 ;;
1781 no:yes:* )
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1783$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1785$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1787$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1789$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1791$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 ;;
1793esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798else
1799 eval "$3=\$ac_header_compiler"
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_mongrel
1808
1809# ac_fn_c_try_run LINENO
1810# ----------------------
1811# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1812# that executables *can* be run.
1813ac_fn_c_try_run ()
1814{
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if { { ac_try="$ac_link"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_link") 2>&5
1824 ac_status=$?
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1827 { { case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_try") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; }; }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: program exited with status $ac_status" >&5
1840 $as_echo "$as_me: failed program was:" >&5
1841sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=$ac_status
1844fi
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 return $ac_retval
1848
1849} # ac_fn_c_try_run
1850
1851# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists and can be compiled using the include files in
1854# INCLUDES, setting the cache variable VAR accordingly.
1855ac_fn_c_check_header_compile ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
1860if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1862else
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866#include <$2>
1867_ACEOF
1868if ac_fn_c_try_compile "$LINENO"; then :
1869 eval "$3=yes"
1870else
1871 eval "$3=no"
1872fi
1873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879
1880} # ac_fn_c_check_header_compile
1881
1882# ac_fn_c_check_func LINENO FUNC VAR
1883# ----------------------------------
1884# Tests whether FUNC exists, setting the cache variable VAR accordingly
1885ac_fn_c_check_func ()
1886{
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892else
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897#define $2 innocuous_$2
1898
1899/* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1903
1904#ifdef __STDC__
1905# include <limits.h>
1906#else
1907# include <assert.h>
1908#endif
1909
1910#undef $2
1911
1912/* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1915#ifdef __cplusplus
1916extern "C"
1917#endif
1918char $2 ();
1919/* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922#if defined __stub_$2 || defined __stub___$2
1923choke me
1924#endif
1925
1926int
1927main ()
1928{
1929return $2 ();
1930 ;
1931 return 0;
1932}
1933_ACEOF
1934if ac_fn_c_try_link "$LINENO"; then :
1935 eval "$3=yes"
1936else
1937 eval "$3=no"
1938fi
1939rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1941fi
1942eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946
1947} # ac_fn_c_check_func
1948
3cb62297
L
1949# ac_fn_cxx_try_cpp LINENO
1950# ------------------------
1951# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952ac_fn_cxx_try_cpp ()
1953{
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if { { ac_try="$ac_cpp conftest.$ac_ext"
1956case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959esac
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963 ac_status=$?
1964 if test -s conftest.err; then
1965 grep -v '^ *+' conftest.err >conftest.er1
1966 cat conftest.er1 >&5
1967 mv -f conftest.er1 conftest.err
1968 fi
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; } >/dev/null && {
1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972 test ! -s conftest.err
1973 }; then :
1974 ac_retval=0
1975else
1976 $as_echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979 ac_retval=1
1980fi
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 return $ac_retval
1983
1984} # ac_fn_cxx_try_cpp
1985
1986# ac_fn_cxx_try_link LINENO
1987# -------------------------
1988# Try to link conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_link ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext conftest$ac_exeext
1993 if { { ac_try="$ac_link"
1994case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997esac
1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999$as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_link") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2006 fi
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest$ac_exeext && {
2012 test "$cross_compiling" = yes ||
2013 $as_test_x conftest$ac_exeext
2014 }; then :
2015 ac_retval=0
2016else
2017 $as_echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020 ac_retval=1
2021fi
2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024 # interfere with the next link command; also delete a directory that is
2025 # left behind by Apple's compiler. We do this before executing the actions.
2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 return $ac_retval
2029
2030} # ac_fn_cxx_try_link
2031
81ecdfbb
RW
2032# ac_fn_c_check_decl LINENO SYMBOL VAR
2033# ------------------------------------
2034# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2035ac_fn_c_check_decl ()
2036{
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2041$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
81ecdfbb
RW
2042if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2044else
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h. */
2047$4
2048int
2049main ()
2050{
360cfc9c
AM
2051#ifndef $as_decl_name
2052#ifdef __cplusplus
2053 (void) $as_decl_use;
2054#else
2055 (void) $as_decl_name;
2056#endif
81ecdfbb
RW
2057#endif
2058
2059 ;
2060 return 0;
2061}
2062_ACEOF
2063if ac_fn_c_try_compile "$LINENO"; then :
2064 eval "$3=yes"
2065else
2066 eval "$3=no"
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075} # ac_fn_c_check_decl
2076
2077# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2078# --------------------------------------------
2079# Tries to find the compile-time value of EXPR in a program that includes
2080# INCLUDES, setting VAR accordingly. Returns whether the value could be
2081# computed
2082ac_fn_c_compute_int ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if test "$cross_compiling" = yes; then
2086 # Depending upon the size, compute the lo and hi bounds.
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090int
2091main ()
2092{
2093static int test_array [1 - 2 * !(($2) >= 0)];
2094test_array [0] = 0
2095
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_lo=0 ac_mid=0
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h. */
2105$4
2106int
2107main ()
2108{
2109static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2110test_array [0] = 0
2111
2112 ;
2113 return 0;
2114}
2115_ACEOF
2116if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_hi=$ac_mid; break
2118else
2119 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2120 if test $ac_lo -le $ac_mid; then
2121 ac_lo= ac_hi=
2122 break
2123 fi
2124 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128else
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$4
2132int
2133main ()
2134{
2135static int test_array [1 - 2 * !(($2) < 0)];
2136test_array [0] = 0
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_hi=-1 ac_mid=-1
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146/* end confdefs.h. */
2147$4
2148int
2149main ()
2150{
2151static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2152test_array [0] = 0
2153
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_lo=$ac_mid; break
2160else
2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2162 if test $ac_mid -le $ac_hi; then
2163 ac_lo= ac_hi=
2164 break
2165 fi
2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2167fi
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170else
2171 ac_lo= ac_hi=
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176# Binary search between lo and hi bounds.
2177while test "x$ac_lo" != "x$ac_hi"; do
2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182int
2183main ()
2184{
2185static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2186test_array [0] = 0
2187
2188 ;
2189 return 0;
2190}
2191_ACEOF
2192if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_hi=$ac_mid
2194else
2195 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2196fi
2197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198done
2199case $ac_lo in #((
2200?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2201'') ac_retval=1 ;;
2202esac
2203 else
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207static long int longval () { return $2; }
2208static unsigned long int ulongval () { return $2; }
2209#include <stdio.h>
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214
2215 FILE *f = fopen ("conftest.val", "w");
2216 if (! f)
2217 return 1;
2218 if (($2) < 0)
2219 {
2220 long int i = longval ();
2221 if (i != ($2))
2222 return 1;
2223 fprintf (f, "%ld", i);
2224 }
2225 else
2226 {
2227 unsigned long int i = ulongval ();
2228 if (i != ($2))
2229 return 1;
2230 fprintf (f, "%lu", i);
2231 }
2232 /* Do not output a trailing newline, as this causes \r\n confusion
2233 on some platforms. */
2234 return ferror (f) || fclose (f) != 0;
2235
2236 ;
2237 return 0;
2238}
2239_ACEOF
2240if ac_fn_c_try_run "$LINENO"; then :
2241 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2242else
2243 ac_retval=1
2244fi
2245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2246 conftest.$ac_objext conftest.beam conftest.$ac_ext
2247rm -f conftest.val
2248
2249 fi
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 return $ac_retval
2252
2253} # ac_fn_c_compute_int
2254cat >config.log <<_ACEOF
2255This file contains any messages produced by compilers while
2256running configure, to aid debugging if configure makes a mistake.
2257
d8bd95ef 2258It was created by ld $as_me 2.26.51, which was
81ecdfbb
RW
2259generated by GNU Autoconf 2.64. Invocation command line was
2260
2261 $ $0 $@
2262
2263_ACEOF
2264exec 5>>config.log
2265{
2266cat <<_ASUNAME
2267## --------- ##
2268## Platform. ##
2269## --------- ##
2270
2271hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2272uname -m = `(uname -m) 2>/dev/null || echo unknown`
2273uname -r = `(uname -r) 2>/dev/null || echo unknown`
2274uname -s = `(uname -s) 2>/dev/null || echo unknown`
2275uname -v = `(uname -v) 2>/dev/null || echo unknown`
2276
2277/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2278/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2279
2280/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2281/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2282/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2283/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2284/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2285/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2286/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2287
2288_ASUNAME
2289
2290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291for as_dir in $PATH
2292do
2293 IFS=$as_save_IFS
2294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2295 $as_echo "PATH: $as_dir"
2296 done
2297IFS=$as_save_IFS
252b5132 2298
42ecbf5e 2299} >&5
5d64ca4e 2300
42ecbf5e 2301cat >&5 <<_ACEOF
5d64ca4e 2302
5d64ca4e 2303
42ecbf5e
DJ
2304## ----------- ##
2305## Core tests. ##
2306## ----------- ##
5d64ca4e 2307
42ecbf5e 2308_ACEOF
2469cfa2 2309
42ecbf5e
DJ
2310
2311# Keep a trace of the command line.
2312# Strip out --no-create and --no-recursion so they do not pile up.
2313# Strip out --silent because we don't want to record it for future runs.
2314# Also quote any args containing shell meta-characters.
2315# Make two passes to allow for proper duplicate-argument suppression.
2316ac_configure_args=
2317ac_configure_args0=
2318ac_configure_args1=
42ecbf5e
DJ
2319ac_must_keep_next=false
2320for ac_pass in 1 2
2321do
2322 for ac_arg
2323 do
2324 case $ac_arg in
2325 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2327 | -silent | --silent | --silen | --sile | --sil)
2328 continue ;;
81ecdfbb
RW
2329 *\'*)
2330 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2331 esac
2332 case $ac_pass in
81ecdfbb 2333 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2334 2)
81ecdfbb 2335 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2336 if test $ac_must_keep_next = true; then
2337 ac_must_keep_next=false # Got value, back to normal.
2338 else
2339 case $ac_arg in
2340 *=* | --config-cache | -C | -disable-* | --disable-* \
2341 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2342 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2343 | -with-* | --with-* | -without-* | --without-* | --x)
2344 case "$ac_configure_args0 " in
2345 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2346 esac
2347 ;;
2348 -* ) ac_must_keep_next=true ;;
2349 esac
2350 fi
81ecdfbb 2351 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2352 ;;
2353 esac
2354 done
2355done
81ecdfbb
RW
2356{ ac_configure_args0=; unset ac_configure_args0;}
2357{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2358
2359# When interrupted or exit'd, cleanup temporary files, and complete
2360# config.log. We remove comments because anyway the quotes in there
2361# would cause problems or look ugly.
81ecdfbb
RW
2362# WARNING: Use '\'' to represent an apostrophe within the trap.
2363# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2364trap 'exit_status=$?
2365 # Save into config.log some information that might help in debugging.
2366 {
2367 echo
2368
2369 cat <<\_ASBOX
2370## ---------------- ##
2371## Cache variables. ##
2372## ---------------- ##
2373_ASBOX
2374 echo
2375 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2376(
2377 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2378 eval ac_val=\$$ac_var
2379 case $ac_val in #(
2380 *${as_nl}*)
2381 case $ac_var in #(
2382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2384 esac
2385 case $ac_var in #(
2386 _ | IFS | as_nl) ;; #(
2387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2388 *) { eval $ac_var=; unset $ac_var;} ;;
2389 esac ;;
2390 esac
2391 done
42ecbf5e 2392 (set) 2>&1 |
81ecdfbb
RW
2393 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2394 *${as_nl}ac_space=\ *)
42ecbf5e 2395 sed -n \
81ecdfbb
RW
2396 "s/'\''/'\''\\\\'\'''\''/g;
2397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2398 ;; #(
42ecbf5e 2399 *)
81ecdfbb 2400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2401 ;;
81ecdfbb
RW
2402 esac |
2403 sort
2404)
42ecbf5e
DJ
2405 echo
2406
2407 cat <<\_ASBOX
2408## ----------------- ##
2409## Output variables. ##
2410## ----------------- ##
2411_ASBOX
2412 echo
2413 for ac_var in $ac_subst_vars
2414 do
81ecdfbb
RW
2415 eval ac_val=\$$ac_var
2416 case $ac_val in
2417 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2418 esac
2419 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2420 done | sort
2421 echo
2422
2423 if test -n "$ac_subst_files"; then
2424 cat <<\_ASBOX
81ecdfbb
RW
2425## ------------------- ##
2426## File substitutions. ##
2427## ------------------- ##
42ecbf5e
DJ
2428_ASBOX
2429 echo
2430 for ac_var in $ac_subst_files
2431 do
81ecdfbb
RW
2432 eval ac_val=\$$ac_var
2433 case $ac_val in
2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2435 esac
2436 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2437 done | sort
2438 echo
2439 fi
2440
2441 if test -s confdefs.h; then
2442 cat <<\_ASBOX
2443## ----------- ##
2444## confdefs.h. ##
2445## ----------- ##
2446_ASBOX
2447 echo
81ecdfbb 2448 cat confdefs.h
42ecbf5e
DJ
2449 echo
2450 fi
2451 test "$ac_signal" != 0 &&
81ecdfbb
RW
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2454 } >&5
81ecdfbb
RW
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2457 exit $exit_status
81ecdfbb 2458' 0
42ecbf5e 2459for ac_signal in 1 2 13 15; do
81ecdfbb 2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2461done
2462ac_signal=0
2463
2464# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2465rm -f -r conftest* confdefs.h
2466
2467$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2468
2469# Predefined preprocessor variables.
2470
2471cat >>confdefs.h <<_ACEOF
2472#define PACKAGE_NAME "$PACKAGE_NAME"
2473_ACEOF
2474
42ecbf5e
DJ
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477_ACEOF
2478
42ecbf5e
DJ
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_VERSION "$PACKAGE_VERSION"
2481_ACEOF
2482
42ecbf5e
DJ
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_STRING "$PACKAGE_STRING"
2485_ACEOF
2486
42ecbf5e
DJ
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489_ACEOF
2490
81ecdfbb
RW
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_URL "$PACKAGE_URL"
2493_ACEOF
2494
42ecbf5e
DJ
2495
2496# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2497# Prefer an explicitly selected file to automatically selected ones.
2498ac_site_file1=NONE
2499ac_site_file2=NONE
2500if test -n "$CONFIG_SITE"; then
2501 ac_site_file1=$CONFIG_SITE
2502elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508fi
2509for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510do
2511 test "x$ac_site_file" = xNONE && continue
42ecbf5e 2512 if test -r "$ac_site_file"; then
81ecdfbb
RW
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e
DJ
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file"
2517 fi
2518done
2519
2520if test -r "$cache_file"; then
2521 # Some versions of bash will fail to source /dev/null (special
2522 # files actually), so we avoid doing that.
2523 if test -f "$cache_file"; then
81ecdfbb
RW
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2525$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2526 case $cache_file in
81ecdfbb
RW
2527 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2528 *) . "./$cache_file";;
42ecbf5e
DJ
2529 esac
2530 fi
2531else
81ecdfbb
RW
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2533$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2534 >$cache_file
2535fi
2536
2537# Check that the precious variables saved in the cache have kept the same
2538# value.
2539ac_cache_corrupted=false
81ecdfbb 2540for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2541 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2542 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2543 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2544 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2545 case $ac_old_set,$ac_new_set in
2546 set,)
81ecdfbb
RW
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2548$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2549 ac_cache_corrupted=: ;;
2550 ,set)
81ecdfbb
RW
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2552$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2553 ac_cache_corrupted=: ;;
2554 ,);;
2555 *)
2556 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2557 # differences in whitespace do not lead to failure.
2558 ac_old_val_w=`echo x $ac_old_val`
2559 ac_new_val_w=`echo x $ac_new_val`
2560 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2562$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2563 ac_cache_corrupted=:
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2566$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2567 eval $ac_var=\$ac_old_val
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2570$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2572$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2573 fi;;
2574 esac
2575 # Pass precious variables to config.status.
2576 if test "$ac_new_set" = set; then
2577 case $ac_new_val in
81ecdfbb 2578 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2579 *) ac_arg=$ac_var=$ac_new_val ;;
2580 esac
2581 case " $ac_configure_args " in
2582 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2583 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2584 esac
2585 fi
2586done
2587if $ac_cache_corrupted; then
81ecdfbb
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2591$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2592 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2593fi
81ecdfbb
RW
2594## -------------------- ##
2595## Main body of script. ##
2596## -------------------- ##
42ecbf5e
DJ
2597
2598ac_ext=c
2599ac_cpp='$CPP $CPPFLAGS'
2600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603
2604
2605
42ecbf5e 2606
da594c4a 2607
42ecbf5e
DJ
2608
2609
2610ac_aux_dir=
81ecdfbb
RW
2611for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2612 for ac_t in install-sh install.sh shtool; do
2613 if test -f "$ac_dir/$ac_t"; then
2614 ac_aux_dir=$ac_dir
2615 ac_install_sh="$ac_aux_dir/$ac_t -c"
2616 break 2
2617 fi
2618 done
42ecbf5e
DJ
2619done
2620if test -z "$ac_aux_dir"; then
81ecdfbb 2621 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2622fi
81ecdfbb
RW
2623
2624# These three variables are undocumented and unsupported,
2625# and are intended to be withdrawn in a future Autoconf release.
2626# They can cause serious problems if a builder's source tree is in a directory
2627# whose full name contains unusual characters.
2628ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2631
42ecbf5e
DJ
2632
2633# Make sure we can run config.sub.
81ecdfbb
RW
2634$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2636
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2638$as_echo_n "checking build system type... " >&6; }
2639if test "${ac_cv_build+set}" = set; then :
2640 $as_echo_n "(cached) " >&6
2641else
2642 ac_build_alias=$build_alias
2643test "x$ac_build_alias" = x &&
2644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2645test "x$ac_build_alias" = x &&
2646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2647ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2649
2650fi
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2652$as_echo "$ac_cv_build" >&6; }
2653case $ac_cv_build in
2654*-*-*) ;;
2655*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2656esac
42ecbf5e 2657build=$ac_cv_build
81ecdfbb
RW
2658ac_save_IFS=$IFS; IFS='-'
2659set x $ac_cv_build
2660shift
2661build_cpu=$1
2662build_vendor=$2
2663shift; shift
2664# Remember, the first character of IFS is used to create $*,
2665# except with old shells:
2666build_os=$*
2667IFS=$ac_save_IFS
2668case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2669
2670
81ecdfbb
RW
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2672$as_echo_n "checking host system type... " >&6; }
2673if test "${ac_cv_host+set}" = set; then :
2674 $as_echo_n "(cached) " >&6
2675else
2676 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build
42ecbf5e 2678else
81ecdfbb
RW
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681fi
42ecbf5e
DJ
2682
2683fi
81ecdfbb
RW
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2685$as_echo "$ac_cv_host" >&6; }
2686case $ac_cv_host in
2687*-*-*) ;;
2688*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2689esac
42ecbf5e 2690host=$ac_cv_host
81ecdfbb
RW
2691ac_save_IFS=$IFS; IFS='-'
2692set x $ac_cv_host
2693shift
2694host_cpu=$1
2695host_vendor=$2
2696shift; shift
2697# Remember, the first character of IFS is used to create $*,
2698# except with old shells:
2699host_os=$*
2700IFS=$ac_save_IFS
2701case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2702
2703
81ecdfbb
RW
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2705$as_echo_n "checking target system type... " >&6; }
2706if test "${ac_cv_target+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
42ecbf5e 2708else
81ecdfbb
RW
2709 if test "x$target_alias" = x; then
2710 ac_cv_target=$ac_cv_host
2711else
2712 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2713 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2714fi
42ecbf5e
DJ
2715
2716fi
81ecdfbb
RW
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2718$as_echo "$ac_cv_target" >&6; }
2719case $ac_cv_target in
2720*-*-*) ;;
2721*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2722esac
42ecbf5e 2723target=$ac_cv_target
81ecdfbb
RW
2724ac_save_IFS=$IFS; IFS='-'
2725set x $ac_cv_target
2726shift
2727target_cpu=$1
2728target_vendor=$2
2729shift; shift
2730# Remember, the first character of IFS is used to create $*,
2731# except with old shells:
2732target_os=$*
2733IFS=$ac_save_IFS
2734case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2735
2736
2737# The aliases save the names the user supplied, while $host etc.
2738# will get canonicalized.
2739test -n "$target_alias" &&
2740 test "$program_prefix$program_suffix$program_transform_name" = \
2741 NONENONEs,x,x, &&
2742 program_prefix=${target_alias}-
02ecc8e9 2743
42ecbf5e
DJ
2744ac_ext=c
2745ac_cpp='$CPP $CPPFLAGS'
2746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753$as_echo_n "checking for $ac_word... " >&6; }
2754if test "${ac_cv_prog_CC+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2756else
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2759else
2760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761for as_dir in $PATH
2762do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2769 break 2
2770 fi
2771done
81ecdfbb
RW
2772 done
2773IFS=$as_save_IFS
42ecbf5e
DJ
2774
2775fi
2776fi
2777CC=$ac_cv_prog_CC
2778if test -n "$CC"; then
81ecdfbb
RW
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780$as_echo "$CC" >&6; }
42ecbf5e 2781else
81ecdfbb
RW
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783$as_echo "no" >&6; }
42ecbf5e
DJ
2784fi
2785
81ecdfbb 2786
42ecbf5e
DJ
2787fi
2788if test -z "$ac_cv_prog_CC"; then
2789 ac_ct_CC=$CC
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791set dummy gcc; ac_word=$2
81ecdfbb
RW
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793$as_echo_n "checking for $ac_word... " >&6; }
2794if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2796else
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2799else
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2807 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2809 break 2
2810 fi
2811done
81ecdfbb
RW
2812 done
2813IFS=$as_save_IFS
42ecbf5e
DJ
2814
2815fi
2816fi
2817ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2821else
81ecdfbb
RW
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823$as_echo "no" >&6; }
42ecbf5e
DJ
2824fi
2825
81ecdfbb
RW
2826 if test "x$ac_ct_CC" = x; then
2827 CC=""
2828 else
2829 case $cross_compiling:$ac_tool_warned in
2830yes:)
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833ac_tool_warned=yes ;;
2834esac
2835 CC=$ac_ct_CC
2836 fi
42ecbf5e
DJ
2837else
2838 CC="$ac_cv_prog_CC"
2839fi
2840
2841if test -z "$CC"; then
81ecdfbb
RW
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2844set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846$as_echo_n "checking for $ac_word... " >&6; }
2847if test "${ac_cv_prog_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2849else
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2852else
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2862 break 2
2863 fi
2864done
81ecdfbb
RW
2865 done
2866IFS=$as_save_IFS
42ecbf5e
DJ
2867
2868fi
2869fi
2870CC=$ac_cv_prog_CC
2871if test -n "$CC"; then
81ecdfbb
RW
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873$as_echo "$CC" >&6; }
42ecbf5e 2874else
81ecdfbb
RW
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
42ecbf5e
DJ
2877fi
2878
42ecbf5e 2879
81ecdfbb 2880 fi
42ecbf5e
DJ
2881fi
2882if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884set dummy cc; ac_word=$2
81ecdfbb
RW
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886$as_echo_n "checking for $ac_word... " >&6; }
2887if test "${ac_cv_prog_CC+set}" = set; then :
2888 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2889else
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2892else
2893 ac_prog_rejected=no
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e
DJ
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2903 continue
2904 fi
2905 ac_cv_prog_CC="cc"
81ecdfbb 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2907 break 2
2908 fi
2909done
81ecdfbb
RW
2910 done
2911IFS=$as_save_IFS
42ecbf5e
DJ
2912
2913if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2916 shift
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2921 shift
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 fi
2924fi
2925fi
2926fi
2927CC=$ac_cv_prog_CC
2928if test -n "$CC"; then
81ecdfbb
RW
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930$as_echo "$CC" >&6; }
42ecbf5e 2931else
81ecdfbb
RW
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933$as_echo "no" >&6; }
42ecbf5e
DJ
2934fi
2935
81ecdfbb 2936
42ecbf5e
DJ
2937fi
2938if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
81ecdfbb 2940 for ac_prog in cl.exe
42ecbf5e
DJ
2941 do
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_CC+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2948else
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2961 break 2
2962 fi
2963done
81ecdfbb
RW
2964 done
2965IFS=$as_save_IFS
42ecbf5e
DJ
2966
2967fi
2968fi
2969CC=$ac_cv_prog_CC
2970if test -n "$CC"; then
81ecdfbb
RW
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972$as_echo "$CC" >&6; }
42ecbf5e 2973else
81ecdfbb
RW
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975$as_echo "no" >&6; }
42ecbf5e
DJ
2976fi
2977
81ecdfbb 2978
42ecbf5e
DJ
2979 test -n "$CC" && break
2980 done
2981fi
2982if test -z "$CC"; then
2983 ac_ct_CC=$CC
81ecdfbb 2984 for ac_prog in cl.exe
42ecbf5e
DJ
2985do
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989$as_echo_n "checking for $ac_word... " >&6; }
2990if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2992else
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3003 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3005 break 2
3006 fi
3007done
81ecdfbb
RW
3008 done
3009IFS=$as_save_IFS
42ecbf5e
DJ
3010
3011fi
3012fi
3013ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3017else
81ecdfbb
RW
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019$as_echo "no" >&6; }
42ecbf5e
DJ
3020fi
3021
81ecdfbb 3022
42ecbf5e
DJ
3023 test -n "$ac_ct_CC" && break
3024done
3025
81ecdfbb
RW
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030yes:)
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033ac_tool_warned=yes ;;
3034esac
3035 CC=$ac_ct_CC
3036 fi
42ecbf5e
DJ
3037fi
3038
3039fi
3040
3041
81ecdfbb
RW
3042test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error "no acceptable C compiler found in \$PATH
3045See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3046
3047# Provide some information about the compiler.
81ecdfbb
RW
3048$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049set X $ac_compile
3050ac_compiler=$2
3051for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3060 ac_status=$?
81ecdfbb
RW
3061 if test -s conftest.err; then
3062 sed '10a\
3063... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3066 rm -f conftest.er1 conftest.err
3067 fi
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070done
42ecbf5e 3071
81ecdfbb 3072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3073/* end confdefs.h. */
3074
3075int
3076main ()
3077{
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083ac_clean_files_save=$ac_clean_files
81ecdfbb 3084ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
42ecbf5e
DJ
3085# Try to create an executable without -o first, disregard a.out.
3086# It will help us diagnose broken compilers, and finding out an intuition
3087# of exeext.
81ecdfbb
RW
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089$as_echo_n "checking for C compiler default output file name... " >&6; }
3090ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091
3092# The possible output files:
3093ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3094
3095ac_rmfiles=
3096for ac_file in $ac_files
3097do
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 esac
3102done
3103rm -f $ac_rmfiles
3104
3105if { { ac_try="$ac_link_default"
3106case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111$as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118# in a Makefile. We should not override ac_cv_exeext if it was cached,
3119# so that the user can short-circuit this test for compilers unknown to
3120# Autoconf.
3121for ac_file in $ac_files ''
42ecbf5e
DJ
3122do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
81ecdfbb 3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3126 ;;
3127 [ab].out )
3128 # We found the default executable, but exeext='' is most
3129 # certainly right.
3130 break;;
3131 *.* )
81ecdfbb
RW
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133 then :; else
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 fi
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3140 # actually working.
42ecbf5e
DJ
3141 break;;
3142 * )
3143 break;;
3144 esac
3145done
81ecdfbb
RW
3146test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
42ecbf5e 3148else
81ecdfbb
RW
3149 ac_file=''
3150fi
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152$as_echo "$ac_file" >&6; }
3153if test -z "$ac_file"; then :
3154 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
81ecdfbb
RW
3157{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159{ as_fn_set_status 77
3160as_fn_error "C compiler cannot create executables
3161See \`config.log' for more details." "$LINENO" 5; }; }
42ecbf5e 3162fi
42ecbf5e 3163ac_exeext=$ac_cv_exeext
42ecbf5e 3164
81ecdfbb 3165# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3166# the compiler is broken, or we cross compile.
81ecdfbb
RW
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168$as_echo_n "checking whether the C compiler works... " >&6; }
42ecbf5e
DJ
3169# If not cross compiling, check that we can run a simple program.
3170if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
81ecdfbb
RW
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
42ecbf5e 3179 ac_status=$?
81ecdfbb
RW
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
42ecbf5e
DJ
3182 cross_compiling=no
3183 else
3184 if test "$cross_compiling" = maybe; then
3185 cross_compiling=yes
3186 else
81ecdfbb
RW
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189as_fn_error "cannot run C compiled programs.
42ecbf5e 3190If you meant to cross compile, use \`--host'.
81ecdfbb 3191See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e
DJ
3192 fi
3193 fi
3194fi
81ecdfbb
RW
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196$as_echo "yes" >&6; }
42ecbf5e 3197
81ecdfbb 3198rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
42ecbf5e 3199ac_clean_files=$ac_clean_files_save
81ecdfbb 3200# Check that the compiler produces executables we can run. If not, either
42ecbf5e 3201# the compiler is broken, or we cross compile.
81ecdfbb
RW
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203$as_echo_n "checking whether we are cross compiling... " >&6; }
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205$as_echo "$cross_compiling" >&6; }
3206
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208$as_echo_n "checking for suffix of executables... " >&6; }
3209if { { ac_try="$ac_link"
3210case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215$as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
42ecbf5e 3217 ac_status=$?
81ecdfbb
RW
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
42ecbf5e
DJ
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222# work properly (i.e., refer to `conftest.exe'), while it won't with
3223# `rm'.
3224for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3226 case $ac_file in
81ecdfbb 3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3229 break;;
3230 * ) break;;
3231 esac
3232done
3233else
81ecdfbb
RW
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236as_fn_error "cannot compute suffix of executables: cannot compile and link
3237See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3238fi
42ecbf5e 3239rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3242
3243rm -f conftest.$ac_ext
3244EXEEXT=$ac_cv_exeext
3245ac_exeext=$EXEEXT
81ecdfbb
RW
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247$as_echo_n "checking for suffix of object files... " >&6; }
3248if test "${ac_cv_objext+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
42ecbf5e 3250else
81ecdfbb 3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3252/* end confdefs.h. */
3253
3254int
3255main ()
3256{
3257
3258 ;
3259 return 0;
3260}
3261_ACEOF
3262rm -f conftest.o conftest.obj
81ecdfbb
RW
3263if { { ac_try="$ac_compile"
3264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compile") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
42ecbf5e 3276 case $ac_file in
81ecdfbb 3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3279 break;;
3280 esac
3281done
3282else
81ecdfbb 3283 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
81ecdfbb
RW
3286{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288as_fn_error "cannot compute suffix of object files: cannot compile
3289See \`config.log' for more details." "$LINENO" 5; }
42ecbf5e 3290fi
42ecbf5e
DJ
3291rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292fi
81ecdfbb
RW
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3295OBJEXT=$ac_cv_objext
3296ac_objext=$OBJEXT
81ecdfbb
RW
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
42ecbf5e 3301else
81ecdfbb 3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3303/* end confdefs.h. */
3304
3305int
3306main ()
3307{
3308#ifndef __GNUC__
3309 choke me
3310#endif
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
81ecdfbb 3316if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3317 ac_compiler_gnu=yes
3318else
81ecdfbb 3319 ac_compiler_gnu=no
42ecbf5e 3320fi
81ecdfbb 3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3322ac_cv_c_compiler_gnu=$ac_compiler_gnu
3323
3324fi
81ecdfbb
RW
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327if test $ac_compiler_gnu = yes; then
3328 GCC=yes
3329else
3330 GCC=
3331fi
42ecbf5e
DJ
3332ac_test_CFLAGS=${CFLAGS+set}
3333ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335$as_echo_n "checking whether $CC accepts -g... " >&6; }
3336if test "${ac_cv_prog_cc_g+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3338else
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3341 ac_cv_prog_cc_g=no
3342 CFLAGS="-g"
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3344/* end confdefs.h. */
3345
3346int
3347main ()
3348{
3349
3350 ;
3351 return 0;
3352}
3353_ACEOF
81ecdfbb 3354if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3355 ac_cv_prog_cc_g=yes
3356else
81ecdfbb
RW
3357 CFLAGS=""
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h. */
3360
3361int
3362main ()
3363{
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369if ac_fn_c_try_compile "$LINENO"; then :
3370
3371else
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3373 CFLAGS="-g"
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375/* end confdefs.h. */
3376
3377int
3378main ()
3379{
42ecbf5e 3380
81ecdfbb
RW
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385if ac_fn_c_try_compile "$LINENO"; then :
3386 ac_cv_prog_cc_g=yes
3387fi
3388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3391fi
81ecdfbb
RW
3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3394fi
81ecdfbb
RW
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3397if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3401 CFLAGS="-g -O2"
3402 else
3403 CFLAGS="-g"
3404 fi
3405else
3406 if test "$GCC" = yes; then
3407 CFLAGS="-O2"
3408 else
3409 CFLAGS=
3410 fi
3411fi
81ecdfbb
RW
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
42ecbf5e 3416else
81ecdfbb 3417 ac_cv_prog_cc_c89=no
42ecbf5e 3418ac_save_CC=$CC
81ecdfbb 3419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3420/* end confdefs.h. */
3421#include <stdarg.h>
3422#include <stdio.h>
3423#include <sys/types.h>
3424#include <sys/stat.h>
3425/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426struct buf { int x; };
3427FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428static char *e (p, i)
3429 char **p;
3430 int i;
3431{
3432 return p[i];
3433}
3434static char *f (char * (*g) (char **, int), char **p, ...)
3435{
3436 char *s;
3437 va_list v;
3438 va_start (v,p);
3439 s = g (p, va_arg (v,int));
3440 va_end (v);
3441 return s;
3442}
3443
3444/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3447 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3450 that's true only with -std. */
42ecbf5e
DJ
3451int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452
81ecdfbb
RW
3453/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3455#define FOO(x) 'x'
3456int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3457
42ecbf5e
DJ
3458int test (int i, double x);
3459struct s1 {int (*f) (int a);};
3460struct s2 {int (*f) (double a);};
3461int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3462int argc;
3463char **argv;
3464int
3465main ()
3466{
3467return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3468 ;
3469 return 0;
3470}
3471_ACEOF
81ecdfbb
RW
3472for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3474do
3475 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3478fi
81ecdfbb
RW
3479rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3481done
81ecdfbb 3482rm -f conftest.$ac_ext
42ecbf5e
DJ
3483CC=$ac_save_CC
3484
3485fi
81ecdfbb
RW
3486# AC_CACHE_VAL
3487case "x$ac_cv_prog_cc_c89" in
3488 x)
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490$as_echo "none needed" >&6; } ;;
3491 xno)
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493$as_echo "unsupported" >&6; } ;;
42ecbf5e 3494 *)
81ecdfbb
RW
3495 CC="$CC $ac_cv_prog_cc_c89"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3498esac
81ecdfbb 3499if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3500
42ecbf5e
DJ
3501fi
3502
42ecbf5e
DJ
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
81ecdfbb
RW
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3511$as_echo_n "checking for library containing strerror... " >&6; }
3512if test "${ac_cv_search_strerror+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3514else
3515 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3517/* end confdefs.h. */
3518
81ecdfbb
RW
3519/* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3522#ifdef __cplusplus
3523extern "C"
3524#endif
42ecbf5e
DJ
3525char strerror ();
3526int
3527main ()
3528{
81ecdfbb 3529return strerror ();
42ecbf5e
DJ
3530 ;
3531 return 0;
3532}
3533_ACEOF
81ecdfbb
RW
3534for ac_lib in '' cposix; do
3535 if test -z "$ac_lib"; then
3536 ac_res="none required"
3537 else
3538 ac_res=-l$ac_lib
42ecbf5e 3539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3540 fi
3541 if ac_fn_c_try_link "$LINENO"; then :
3542 ac_cv_search_strerror=$ac_res
3543fi
3544rm -f core conftest.err conftest.$ac_objext \
3545 conftest$ac_exeext
3546 if test "${ac_cv_search_strerror+set}" = set; then :
3547 break
3548fi
3549done
3550if test "${ac_cv_search_strerror+set}" = set; then :
42ecbf5e 3551
42ecbf5e 3552else
81ecdfbb 3553 ac_cv_search_strerror=no
42ecbf5e 3554fi
81ecdfbb 3555rm conftest.$ac_ext
42ecbf5e
DJ
3556LIBS=$ac_func_search_save_LIBS
3557fi
81ecdfbb
RW
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3559$as_echo "$ac_cv_search_strerror" >&6; }
3560ac_res=$ac_cv_search_strerror
3561if test "$ac_res" != no; then :
3562 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3563
3564fi
e5a52504
MM
3565
3566
81ecdfbb
RW
3567am__api_version='1.11'
3568
e5a52504
MM
3569# Find a good install program. We prefer a C program (faster),
3570# so one script is as good as another. But avoid the broken or
3571# incompatible versions:
3572# SysV /etc/install, /usr/sbin/install
3573# SunOS /usr/etc/install
3574# IRIX /sbin/install
3575# AIX /bin/install
42ecbf5e 3576# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3578# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3580# OS/2's system install, which has a completely different semantic
e5a52504 3581# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3582# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3584$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3585if test -z "$INSTALL"; then
81ecdfbb
RW
3586if test "${ac_cv_path_install+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
e5a52504 3588else
42ecbf5e
DJ
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3594 # Account for people who put trailing slashes in PATH elements.
3595case $as_dir/ in #((
3596 ./ | .// | /[cC]/* | \
42ecbf5e 3597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3599 /usr/ucb/* ) ;;
3600 *)
3601 # OSF1 and SCO ODT 3.0 have their own names for install.
3602 # Don't use installbsd from OSF since it installs stuff as root
3603 # by default.
3604 for ac_prog in ginstall scoinst install; do
3605 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3606 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
252b5132 3607 if test $ac_prog = install &&
42ecbf5e 3608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3609 # AIX install. It has an incompatible calling convention.
3610 :
42ecbf5e
DJ
3611 elif test $ac_prog = install &&
3612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3613 # program-specific install script used by HP pwplus--don't use.
3614 :
252b5132 3615 else
58c85be7
RW
3616 rm -rf conftest.one conftest.two conftest.dir
3617 echo one > conftest.one
3618 echo two > conftest.two
3619 mkdir conftest.dir
3620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3621 test -s conftest.one && test -s conftest.two &&
3622 test -s conftest.dir/conftest.one &&
3623 test -s conftest.dir/conftest.two
3624 then
3625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3626 break 3
3627 fi
252b5132
RH
3628 fi
3629 fi
3630 done
42ecbf5e
DJ
3631 done
3632 ;;
3633esac
81ecdfbb
RW
3634
3635 done
3636IFS=$as_save_IFS
42ecbf5e 3637
58c85be7 3638rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3639
3640fi
3641 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3642 INSTALL=$ac_cv_path_install
252b5132 3643 else
58c85be7
RW
3644 # As a last resort, use the slow shell script. Don't cache a
3645 # value for INSTALL within a source directory, because that will
252b5132 3646 # break other packages using the cache if that directory is
58c85be7 3647 # removed, or if the value is a relative name.
42ecbf5e 3648 INSTALL=$ac_install_sh
252b5132
RH
3649 fi
3650fi
81ecdfbb
RW
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3652$as_echo "$INSTALL" >&6; }
252b5132
RH
3653
3654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3655# It thinks the first close brace ends the variable substitution.
3656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3657
42ecbf5e 3658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3659
3660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3661
81ecdfbb
RW
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3663$as_echo_n "checking whether build environment is sane... " >&6; }
252b5132
RH
3664# Just in case
3665sleep 1
42ecbf5e 3666echo timestamp > conftest.file
81ecdfbb
RW
3667# Reject unsafe characters in $srcdir or the absolute working directory
3668# name. Accept space and tab only in the latter.
3669am_lf='
3670'
3671case `pwd` in
3672 *[\\\"\#\$\&\'\`$am_lf]*)
3673 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3674esac
3675case $srcdir in
3676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3677 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3678esac
3679
252b5132
RH
3680# Do `set' in a subshell so we don't clobber the current shell's
3681# arguments. Must try -L first in case configure is actually a
3682# symlink; some systems play weird games with the mod time of symlinks
3683# (eg FreeBSD returns the mod time of the symlink's containing
3684# directory).
3685if (
81ecdfbb 3686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
252b5132
RH
3687 if test "$*" = "X"; then
3688 # -L didn't work.
81ecdfbb 3689 set X `ls -t "$srcdir/configure" conftest.file`
252b5132 3690 fi
42ecbf5e
DJ
3691 rm -f conftest.file
3692 if test "$*" != "X $srcdir/configure conftest.file" \
3693 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
3694
3695 # If neither matched, then we have a broken ls. This can happen
3696 # if, for instance, CONFIG_SHELL is bash and it inherits a
3697 # broken ls alias from the environment. This has actually
3698 # happened. Such a system could not be considered "sane".
81ecdfbb
RW
3699 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3700alias in your environment" "$LINENO" 5
252b5132
RH
3701 fi
3702
42ecbf5e 3703 test "$2" = conftest.file
252b5132
RH
3704 )
3705then
3706 # Ok.
3707 :
3708else
81ecdfbb
RW
3709 as_fn_error "newly created file is older than distributed files!
3710Check your system clock" "$LINENO" 5
252b5132 3711fi
81ecdfbb
RW
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713$as_echo "yes" >&6; }
252b5132 3714test "$program_prefix" != NONE &&
81ecdfbb 3715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3716# Use a double $ so make ignores it.
3717test "$program_suffix" != NONE &&
81ecdfbb
RW
3718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3719# Double any \ or $.
42ecbf5e 3720# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3721ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3722program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e
DJ
3723
3724# expand $ac_aux_dir to an absolute path
3725am_aux_dir=`cd $ac_aux_dir && pwd`
3726
81ecdfbb
RW
3727if test x"${MISSING+set}" != xset; then
3728 case $am_aux_dir in
3729 *\ * | *\ *)
3730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3731 *)
3732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3733 esac
3734fi
42ecbf5e
DJ
3735# Use eval to expand $SHELL
3736if eval "$MISSING --run true"; then
3737 am_missing_run="$MISSING --run "
3738else
3739 am_missing_run=
81ecdfbb
RW
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3741$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3742fi
3743
3744if test x"${install_sh}" != xset; then
3745 case $am_aux_dir in
3746 *\ * | *\ *)
3747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3748 *)
3749 install_sh="\${SHELL} $am_aux_dir/install-sh"
3750 esac
3751fi
3752
3753# Installed binaries are usually stripped using `strip' when the user
3754# run `make install-strip'. However `strip' might not be the right
3755# tool to use in cross-compilation environments, therefore Automake
3756# will honor the `STRIP' environment variable to overrule this program.
3757if test "$cross_compiling" != no; then
3758 if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3760set dummy ${ac_tool_prefix}strip; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if test "${ac_cv_prog_STRIP+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 if test -n "$STRIP"; then
3767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780done
3781 done
3782IFS=$as_save_IFS
3783
3784fi
3785fi
3786STRIP=$ac_cv_prog_STRIP
3787if test -n "$STRIP"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3789$as_echo "$STRIP" >&6; }
3790else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793fi
3794
3795
3796fi
3797if test -z "$ac_cv_prog_STRIP"; then
3798 ac_ct_STRIP=$STRIP
3799 # Extract the first word of "strip", so it can be a program name with args.
3800set dummy strip; ac_word=$2
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802$as_echo_n "checking for $ac_word... " >&6; }
3803if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3804 $as_echo_n "(cached) " >&6
3805else
3806 if test -n "$ac_ct_STRIP"; then
3807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3816 ac_cv_prog_ac_ct_STRIP="strip"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820done
3821 done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3827if test -n "$ac_ct_STRIP"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3829$as_echo "$ac_ct_STRIP" >&6; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833fi
3834
3835 if test "x$ac_ct_STRIP" = x; then
3836 STRIP=":"
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839yes:)
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842ac_tool_warned=yes ;;
3843esac
3844 STRIP=$ac_ct_STRIP
3845 fi
3846else
3847 STRIP="$ac_cv_prog_STRIP"
3848fi
3849
3850fi
3851INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3852
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3854$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3855if test -z "$MKDIR_P"; then
3856 if test "${ac_cv_path_mkdir+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_prog in mkdir gmkdir; do
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3868 'mkdir (GNU coreutils) '* | \
3869 'mkdir (coreutils) '* | \
3870 'mkdir (fileutils) '4.1*)
3871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3872 break 3;;
3873 esac
3874 done
3875 done
42ecbf5e 3876 done
81ecdfbb
RW
3877IFS=$as_save_IFS
3878
3879fi
3880
3881 if test "${ac_cv_path_mkdir+set}" = set; then
3882 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3883 else
81ecdfbb
RW
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for MKDIR_P within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 test -d ./--version && rmdir ./--version
3889 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3890 fi
3891fi
81ecdfbb
RW
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3893$as_echo "$MKDIR_P" >&6; }
3894
3895mkdir_p="$MKDIR_P"
3896case $mkdir_p in
3897 [\\/$]* | ?:[\\/]*) ;;
3898 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3899esac
42ecbf5e
DJ
3900
3901for ac_prog in gawk mawk nawk awk
3902do
3903 # Extract the first word of "$ac_prog", so it can be a program name with args.
3904set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906$as_echo_n "checking for $ac_word... " >&6; }
3907if test "${ac_cv_prog_AWK+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3909else
3910 if test -n "$AWK"; then
3911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42ecbf5e 3920 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3922 break 2
3923 fi
3924done
81ecdfbb
RW
3925 done
3926IFS=$as_save_IFS
42ecbf5e
DJ
3927
3928fi
3929fi
3930AWK=$ac_cv_prog_AWK
3931if test -n "$AWK"; then
81ecdfbb
RW
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3933$as_echo "$AWK" >&6; }
42ecbf5e 3934else
81ecdfbb
RW
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936$as_echo "no" >&6; }
42ecbf5e 3937fi
252b5132 3938
81ecdfbb 3939
42ecbf5e
DJ
3940 test -n "$AWK" && break
3941done
252b5132 3942
81ecdfbb
RW
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3944$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3945set x ${MAKE-make}
3946ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3947if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3948 $as_echo_n "(cached) " >&6
252b5132 3949else
42ecbf5e 3950 cat >conftest.make <<\_ACEOF
81ecdfbb 3951SHELL = /bin/sh
252b5132 3952all:
81ecdfbb 3953 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3954_ACEOF
252b5132 3955# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
3956case `${MAKE-make} -f conftest.make 2>/dev/null` in
3957 *@@@%%%=?*=@@@%%%*)
3958 eval ac_cv_prog_make_${ac_make}_set=yes;;
3959 *)
3960 eval ac_cv_prog_make_${ac_make}_set=no;;
3961esac
42ecbf5e 3962rm -f conftest.make
252b5132 3963fi
81ecdfbb
RW
3964if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966$as_echo "yes" >&6; }
252b5132
RH
3967 SET_MAKE=
3968else
81ecdfbb
RW
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970$as_echo "no" >&6; }
252b5132
RH
3971 SET_MAKE="MAKE=${MAKE-make}"
3972fi
3973
42ecbf5e
DJ
3974rm -rf .tst 2>/dev/null
3975mkdir .tst 2>/dev/null
3976if test -d .tst; then
3977 am__leading_dot=.
3978else
3979 am__leading_dot=_
3980fi
3981rmdir .tst 2>/dev/null
3982
3983DEPDIR="${am__leading_dot}deps"
3984
81ecdfbb 3985ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
3986
3987
3988am_make=${MAKE-make}
3989cat > confinc << 'END'
3990am__doit:
81ecdfbb 3991 @echo this is the am__doit target
42ecbf5e
DJ
3992.PHONY: am__doit
3993END
3994# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3996$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
3997am__include="#"
3998am__quote=
3999_am_result=none
4000# First try GNU make style include.
4001echo "include confinc" > confmf
81ecdfbb
RW
4002# Ignore all kinds of additional output from `make'.
4003case `$am_make -s -f confmf 2> /dev/null` in #(
4004*the\ am__doit\ target*)
4005 am__include=include
4006 am__quote=
4007 _am_result=GNU
4008 ;;
4009esac
42ecbf5e
DJ
4010# Now try BSD make style include.
4011if test "$am__include" = "#"; then
4012 echo '.include "confinc"' > confmf
81ecdfbb
RW
4013 case `$am_make -s -f confmf 2> /dev/null` in #(
4014 *the\ am__doit\ target*)
4015 am__include=.include
4016 am__quote="\""
4017 _am_result=BSD
4018 ;;
4019 esac
42ecbf5e
DJ
4020fi
4021
4022
81ecdfbb
RW
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4024$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4025rm -f confinc confmf
4026
81ecdfbb
RW
4027# Check whether --enable-dependency-tracking was given.
4028if test "${enable_dependency_tracking+set}" = set; then :
4029 enableval=$enable_dependency_tracking;
4030fi
42ecbf5e 4031
42ecbf5e
DJ
4032if test "x$enable_dependency_tracking" != xno; then
4033 am_depcomp="$ac_aux_dir/depcomp"
4034 AMDEPBACKSLASH='\'
4035fi
81ecdfbb 4036 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4037 AMDEP_TRUE=
4038 AMDEP_FALSE='#'
4039else
4040 AMDEP_TRUE='#'
4041 AMDEP_FALSE=
4042fi
4043
e5a52504 4044
81ecdfbb
RW
4045if test "`cd $srcdir && pwd`" != "`pwd`"; then
4046 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4047 # is not polluted with repeated "-I."
4048 am__isrc=' -I$(srcdir)'
4049 # test to see if srcdir already configured
4050 if test -f $srcdir/config.status; then
4051 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4052 fi
42ecbf5e 4053fi
252b5132 4054
42ecbf5e
DJ
4055# test whether we have cygpath
4056if test -z "$CYGPATH_W"; then
4057 if (cygpath --version) >/dev/null 2>/dev/null; then
4058 CYGPATH_W='cygpath -w'
4059 else
4060 CYGPATH_W=echo
4061 fi
252b5132 4062fi
42ecbf5e
DJ
4063
4064
4065# Define the identity of the package.
2e98a7bd 4066 PACKAGE='ld'
d8bd95ef 4067 VERSION='2.26.51'
42ecbf5e
DJ
4068
4069
4070cat >>confdefs.h <<_ACEOF
e5a52504 4071#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4072_ACEOF
4073
252b5132 4074
42ecbf5e 4075cat >>confdefs.h <<_ACEOF
e5a52504 4076#define VERSION "$VERSION"
42ecbf5e
DJ
4077_ACEOF
4078
4079# Some tools Automake needs.
4080
4081ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4082
4083
4084AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4085
4086
4087AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4088
4089
4090AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4091
e5a52504 4092
42ecbf5e 4093MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4094
42ecbf5e
DJ
4095# We need awk for the "check" target. The system "awk" is bad on
4096# some platforms.
4097# Always define AMTAR for backward compatibility.
4098
4099AMTAR=${AMTAR-"${am_missing_run}tar"}
4100
4101am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4102
4103
4104
4105
4106depcc="$CC" am_compiler_list=
4107
81ecdfbb
RW
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4109$as_echo_n "checking dependency style of $depcc... " >&6; }
4110if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4112else
4113 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4114 # We make a subdir and do the tests there. Otherwise we can end up
4115 # making bogus files that we don't know about and never remove. For
4116 # instance it was reported that on HP-UX the gcc test will end up
4117 # making a dummy file named `D' -- because `-MD' means `put the output
4118 # in D'.
4119 mkdir conftest.dir
4120 # Copy depcomp to subdir because otherwise we won't find it if we're
4121 # using a relative directory.
4122 cp "$am_depcomp" conftest.dir
4123 cd conftest.dir
4124 # We will build objects and dependencies in a subdirectory because
4125 # it helps to detect inapplicable dependency modes. For instance
4126 # both Tru64's cc and ICC support -MD to output dependencies as a
4127 # side effect of compilation, but ICC will put the dependencies in
4128 # the current directory while Tru64 will put them in the object
4129 # directory.
4130 mkdir sub
4131
4132 am_cv_CC_dependencies_compiler_type=none
4133 if test "$am_compiler_list" = ""; then
4134 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135 fi
81ecdfbb
RW
4136 am__universal=false
4137 case " $depcc " in #(
4138 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139 esac
4140
42ecbf5e
DJ
4141 for depmode in $am_compiler_list; do
4142 # Setup a source with many dependencies, because some compilers
4143 # like to wrap large dependency lists on column 80 (with \), and
4144 # we should not choose a depcomp mode which is confused by this.
4145 #
4146 # We need to recreate these files for each test, as the compiler may
4147 # overwrite some of them when testing with obscure command lines.
4148 # This happens at least with the AIX C compiler.
4149 : > sub/conftest.c
4150 for i in 1 2 3 4 5 6; do
4151 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153 # Solaris 8's {/usr,}/bin/sh.
4154 touch sub/conftst$i.h
4155 done
4156 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157
81ecdfbb
RW
4158 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4159 # mode. It turns out that the SunPro C++ compiler does not properly
4160 # handle `-M -o', and we need to detect this. Also, some Intel
4161 # versions had trouble with output in subdirs
4162 am__obj=sub/conftest.${OBJEXT-o}
4163 am__minus_obj="-o $am__obj"
42ecbf5e 4164 case $depmode in
81ecdfbb
RW
4165 gcc)
4166 # This depmode causes a compiler race in universal mode.
4167 test "$am__universal" = false || continue
4168 ;;
42ecbf5e
DJ
4169 nosideeffect)
4170 # after this tag, mechanisms are not by side-effect, so they'll
4171 # only be used when explicitly requested
4172 if test "x$enable_dependency_tracking" = xyes; then
4173 continue
4174 else
4175 break
4176 fi
4177 ;;
81ecdfbb
RW
4178 msvisualcpp | msvcmsys)
4179 # This compiler won't grok `-c -o', but also, the minuso test has
4180 # not run yet. These depmodes are late enough in the game, and
4181 # so weak that their functioning should not be impacted.
4182 am__obj=conftest.${OBJEXT-o}
4183 am__minus_obj=
4184 ;;
42ecbf5e
DJ
4185 none) break ;;
4186 esac
42ecbf5e 4187 if depmode=$depmode \
81ecdfbb 4188 source=sub/conftest.c object=$am__obj \
42ecbf5e 4189 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4190 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4191 >/dev/null 2>conftest.err &&
81ecdfbb 4192 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4193 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4194 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4195 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196 # icc doesn't choke on unknown options, it will just issue warnings
4197 # or remarks (even with -Werror). So we grep stderr for any message
4198 # that says an option was ignored or not supported.
4199 # When given -MP, icc 7.0 and 7.1 complain thusly:
4200 # icc: Command line warning: ignoring option '-M'; no argument required
4201 # The diagnosis changed in icc 8.0:
4202 # icc: Command line remark: option '-MP' not supported
4203 if (grep 'ignoring option' conftest.err ||
4204 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205 am_cv_CC_dependencies_compiler_type=$depmode
4206 break
4207 fi
4208 fi
4209 done
2469cfa2 4210
42ecbf5e
DJ
4211 cd ..
4212 rm -rf conftest.dir
2469cfa2 4213else
42ecbf5e
DJ
4214 am_cv_CC_dependencies_compiler_type=none
4215fi
4216
2469cfa2 4217fi
81ecdfbb
RW
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4220CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221
81ecdfbb 4222 if
42ecbf5e
DJ
4223 test "x$enable_dependency_tracking" != xno \
4224 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225 am__fastdepCC_TRUE=
4226 am__fastdepCC_FALSE='#'
2469cfa2 4227else
42ecbf5e
DJ
4228 am__fastdepCC_TRUE='#'
4229 am__fastdepCC_FALSE=
2469cfa2 4230fi
2469cfa2 4231
2469cfa2 4232
e5a52504 4233
42ecbf5e 4234
64ac50ac
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4236$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4237 # Check whether --enable-maintainer-mode was given.
4238if test "${enable_maintainer_mode+set}" = set; then :
4239 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4240else
4241 USE_MAINTAINER_MODE=no
4242fi
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4245$as_echo "$USE_MAINTAINER_MODE" >&6; }
4246 if test $USE_MAINTAINER_MODE = yes; then
4247 MAINTAINER_MODE_TRUE=
4248 MAINTAINER_MODE_FALSE='#'
4249else
4250 MAINTAINER_MODE_TRUE='#'
4251 MAINTAINER_MODE_FALSE=
4252fi
4253
4254 MAINT=$MAINTAINER_MODE_TRUE
4255
4256
4257
b879806f
AM
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4265set dummy ${ac_tool_prefix}gcc; ac_word=$2
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if test "${ac_cv_prog_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285done
4286 done
4287IFS=$as_save_IFS
d7040cdb 4288
81ecdfbb 4289fi
81ecdfbb 4290fi
b879806f
AM
4291CC=$ac_cv_prog_CC
4292if test -n "$CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294$as_echo "$CC" >&6; }
2469cfa2 4295else
b879806f
AM
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
81ecdfbb 4298fi
d7040cdb
SE
4299
4300
b879806f
AM
4301fi
4302if test -z "$ac_cv_prog_CC"; then
4303 ac_ct_CC=$CC
4304 # Extract the first word of "gcc", so it can be a program name with args.
4305set dummy gcc; ac_word=$2
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307$as_echo_n "checking for $ac_word... " >&6; }
4308if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
e5a52504 4310else
b879806f
AM
4311 if test -n "$ac_ct_CC"; then
4312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4313else
4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315for as_dir in $PATH
4316do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_ac_ct_CC="gcc"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325done
4326 done
4327IFS=$as_save_IFS
d7040cdb 4328
81ecdfbb 4329fi
b879806f
AM
4330fi
4331ac_ct_CC=$ac_cv_prog_ac_ct_CC
4332if test -n "$ac_ct_CC"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4334$as_echo "$ac_ct_CC" >&6; }
4fda8867 4335else
b879806f
AM
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337$as_echo "no" >&6; }
4fda8867
NC
4338fi
4339
b879806f
AM
4340 if test "x$ac_ct_CC" = x; then
4341 CC=""
4342 else
4343 case $cross_compiling:$ac_tool_warned in
4344yes:)
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347ac_tool_warned=yes ;;
7fb9f789 4348esac
b879806f
AM
4349 CC=$ac_ct_CC
4350 fi
7fb9f789 4351else
b879806f 4352 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4353fi
4354
b879806f
AM
4355if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4358set dummy ${ac_tool_prefix}cc; ac_word=$2
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360$as_echo_n "checking for $ac_word... " >&6; }
4361if test "${ac_cv_prog_CC+set}" = set; then :
397841b5
AM
4362 $as_echo_n "(cached) " >&6
4363else
b879806f
AM
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
397841b5 4369do
b879806f
AM
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_CC="${ac_tool_prefix}cc"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378done
4379 done
4380IFS=$as_save_IFS
d7040cdb 4381
ce2cded5 4382fi
ce2cded5 4383fi
b879806f
AM
4384CC=$ac_cv_prog_CC
4385if test -n "$CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387$as_echo "$CC" >&6; }
4388else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390$as_echo "no" >&6; }
81ecdfbb
RW
4391fi
4392
d7040cdb 4393
b879806f 4394 fi
ce2cded5 4395fi
b879806f
AM
4396if test -z "$CC"; then
4397 # Extract the first word of "cc", so it can be a program name with args.
4398set dummy cc; ac_word=$2
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400$as_echo_n "checking for $ac_word... " >&6; }
4401if test "${ac_cv_prog_CC+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
397841b5 4403else
b879806f
AM
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC="$CC" # Let the user override the test.
4406else
4407 ac_prog_rejected=no
4408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
397841b5 4410do
b879806f
AM
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4416 ac_prog_rejected=yes
4417 continue
4418 fi
4419 ac_cv_prog_CC="cc"
4420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423done
4424 done
4425IFS=$as_save_IFS
d7040cdb 4426
b879806f
AM
4427if test $ac_prog_rejected = yes; then
4428 # We found a bogon in the path, so make sure we never use it.
4429 set dummy $ac_cv_prog_CC
4430 shift
4431 if test $# != 0; then
4432 # We chose a different compiler from the bogus one.
4433 # However, it has the same basename, so the bogon will be chosen
4434 # first if we set CC to just the basename; use the full file name.
4435 shift
4436 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4437 fi
397841b5 4438fi
397841b5 4439fi
b879806f
AM
4440fi
4441CC=$ac_cv_prog_CC
4442if test -n "$CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4444$as_echo "$CC" >&6; }
397841b5 4445else
b879806f
AM
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
ce2cded5 4448fi
d7040cdb 4449
397841b5 4450
b879806f
AM
4451fi
4452if test -z "$CC"; then
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in cl.exe
4455 do
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459$as_echo_n "checking for $ac_word... " >&6; }
4460if test "${ac_cv_prog_CC+set}" = set; then :
81ecdfbb 4461 $as_echo_n "(cached) " >&6
d7040cdb 4462else
b879806f
AM
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC="$CC" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
d7040cdb
SE
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
81ecdfbb 4471 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477done
397841b5
AM
4478 done
4479IFS=$as_save_IFS
d7040cdb 4480
252b5132 4481fi
b879806f
AM
4482fi
4483CC=$ac_cv_prog_CC
4484if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486$as_echo "$CC" >&6; }
4487else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490fi
397841b5
AM
4491
4492
b879806f
AM
4493 test -n "$CC" && break
4494 done
4495fi
4496if test -z "$CC"; then
4497 ac_ct_CC=$CC
4498 for ac_prog in cl.exe
4499do
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501set dummy $ac_prog; ac_word=$2
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503$as_echo_n "checking for $ac_word... " >&6; }
4504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
397841b5
AM
4505 $as_echo_n "(cached) " >&6
4506else
b879806f
AM
4507 if test -n "$ac_ct_CC"; then
4508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4509else
4510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
397841b5
AM
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
397841b5 4515 for ac_exec_ext in '' $ac_executable_extensions; do
b879806f
AM
4516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4517 ac_cv_prog_ac_ct_CC="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
4520 fi
4521done
397841b5
AM
4522 done
4523IFS=$as_save_IFS
397841b5 4524
397841b5 4525fi
397841b5 4526fi
b879806f
AM
4527ac_ct_CC=$ac_cv_prog_ac_ct_CC
4528if test -n "$ac_ct_CC"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4530$as_echo "$ac_ct_CC" >&6; }
4531else
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
397841b5
AM
4534fi
4535
397841b5 4536
b879806f
AM
4537 test -n "$ac_ct_CC" && break
4538done
397841b5 4539
b879806f
AM
4540 if test "x$ac_ct_CC" = x; then
4541 CC=""
4542 else
4543 case $cross_compiling:$ac_tool_warned in
4544yes:)
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547ac_tool_warned=yes ;;
397841b5 4548esac
b879806f
AM
4549 CC=$ac_ct_CC
4550 fi
397841b5
AM
4551fi
4552
397841b5
AM
4553fi
4554
4555
b879806f
AM
4556test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4558as_fn_error "no acceptable C compiler found in \$PATH
4559See \`config.log' for more details." "$LINENO" 5; }
397841b5 4560
b879806f
AM
4561# Provide some information about the compiler.
4562$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4563set X $ac_compile
4564ac_compiler=$2
4565for ac_option in --version -v -V -qversion; do
4566 { { ac_try="$ac_compiler $ac_option >&5"
4567case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572$as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4574 ac_status=$?
4575 if test -s conftest.err; then
4576 sed '10a\
4577... rest of stderr output deleted ...
4578 10q' conftest.err >conftest.er1
4579 cat conftest.er1 >&5
4580 rm -f conftest.er1 conftest.err
4581 fi
4582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4583 test $ac_status = 0; }
4584done
397841b5 4585
b879806f
AM
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4587$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4588if test "${ac_cv_c_compiler_gnu+set}" = set; then :
44350750
NC
4589 $as_echo_n "(cached) " >&6
4590else
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h. */
b879806f 4593
44350750
NC
4594int
4595main ()
4596{
b879806f
AM
4597#ifndef __GNUC__
4598 choke me
4599#endif
4600
4601 ;
44350750
NC
4602 return 0;
4603}
4604_ACEOF
b879806f
AM
4605if ac_fn_c_try_compile "$LINENO"; then :
4606 ac_compiler_gnu=yes
44350750 4607else
b879806f 4608 ac_compiler_gnu=no
44350750 4609fi
b879806f
AM
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611ac_cv_c_compiler_gnu=$ac_compiler_gnu
4612
44350750 4613fi
b879806f
AM
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4615$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4616if test $ac_compiler_gnu = yes; then
4617 GCC=yes
4618else
4619 GCC=
4620fi
4621ac_test_CFLAGS=${CFLAGS+set}
4622ac_save_CFLAGS=$CFLAGS
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4624$as_echo_n "checking whether $CC accepts -g... " >&6; }
4625if test "${ac_cv_prog_cc_g+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627else
4628 ac_save_c_werror_flag=$ac_c_werror_flag
4629 ac_c_werror_flag=yes
4630 ac_cv_prog_cc_g=no
4631 CFLAGS="-g"
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633/* end confdefs.h. */
44350750 4634
b879806f
AM
4635int
4636main ()
4637{
44350750 4638
b879806f
AM
4639 ;
4640 return 0;
4641}
4642_ACEOF
4643if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_prog_cc_g=yes
4645else
4646 CFLAGS=""
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h. */
4649
4650int
4651main ()
4652{
44350750 4653
b879806f
AM
4654 ;
4655 return 0;
4656}
4657_ACEOF
4658if ac_fn_c_try_compile "$LINENO"; then :
44350750 4659
b879806f
AM
4660else
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4662 CFLAGS="-g"
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664/* end confdefs.h. */
397841b5 4665
b879806f
AM
4666int
4667main ()
4668{
397841b5 4669
b879806f
AM
4670 ;
4671 return 0;
4672}
4673_ACEOF
4674if ac_fn_c_try_compile "$LINENO"; then :
4675 ac_cv_prog_cc_g=yes
4676fi
4677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4678fi
4679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680fi
4681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 ac_c_werror_flag=$ac_save_c_werror_flag
4683fi
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4685$as_echo "$ac_cv_prog_cc_g" >&6; }
4686if test "$ac_test_CFLAGS" = set; then
4687 CFLAGS=$ac_save_CFLAGS
4688elif test $ac_cv_prog_cc_g = yes; then
4689 if test "$GCC" = yes; then
4690 CFLAGS="-g -O2"
4691 else
4692 CFLAGS="-g"
4693 fi
4694else
4695 if test "$GCC" = yes; then
4696 CFLAGS="-O2"
4697 else
4698 CFLAGS=
4699 fi
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4702$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4703if test "${ac_cv_prog_cc_c89+set}" = set; then :
4704 $as_echo_n "(cached) " >&6
4705else
4706 ac_cv_prog_cc_c89=no
4707ac_save_CC=$CC
4708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h. */
4710#include <stdarg.h>
4711#include <stdio.h>
4712#include <sys/types.h>
4713#include <sys/stat.h>
4714/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4715struct buf { int x; };
4716FILE * (*rcsopen) (struct buf *, struct stat *, int);
4717static char *e (p, i)
4718 char **p;
4719 int i;
4720{
4721 return p[i];
4722}
4723static char *f (char * (*g) (char **, int), char **p, ...)
4724{
4725 char *s;
4726 va_list v;
4727 va_start (v,p);
4728 s = g (p, va_arg (v,int));
4729 va_end (v);
4730 return s;
4731}
df7b86aa 4732
b879806f
AM
4733/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4734 function prototypes and stuff, but not '\xHH' hex character constants.
4735 These don't provoke an error unfortunately, instead are silently treated
4736 as 'x'. The following induces an error, until -std is added to get
4737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4738 array size at least. It's necessary to write '\x00'==0 to get something
4739 that's true only with -std. */
4740int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4741
b879806f
AM
4742/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4743 inside strings and character constants. */
4744#define FOO(x) 'x'
4745int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4746
4747int test (int i, double x);
4748struct s1 {int (*f) (int a);};
4749struct s2 {int (*f) (double a);};
4750int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4751int argc;
4752char **argv;
4753int
4754main ()
4755{
4756return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4757 ;
4758 return 0;
4759}
4760_ACEOF
4761for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4763do
4764 CC="$ac_save_CC $ac_arg"
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 ac_cv_prog_cc_c89=$ac_arg
397841b5 4767fi
b879806f
AM
4768rm -f core conftest.err conftest.$ac_objext
4769 test "x$ac_cv_prog_cc_c89" != "xno" && break
4770done
4771rm -f conftest.$ac_ext
4772CC=$ac_save_CC
4773
397841b5 4774fi
b879806f
AM
4775# AC_CACHE_VAL
4776case "x$ac_cv_prog_cc_c89" in
4777 x)
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779$as_echo "none needed" >&6; } ;;
4780 xno)
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782$as_echo "unsupported" >&6; } ;;
4783 *)
4784 CC="$CC $ac_cv_prog_cc_c89"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4786$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4787esac
4788if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4789
b879806f 4790fi
397841b5
AM
4791
4792ac_ext=c
4793ac_cpp='$CPP $CPPFLAGS'
4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
4797
4798ac_ext=cpp
4799ac_cpp='$CXXCPP $CPPFLAGS'
4800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4803if test -z "$CXX"; then
4804 if test -n "$CCC"; then
4805 CXX=$CCC
4806 else
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4809 do
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4814if test "${ac_cv_prog_CXX+set}" = set; then :
397841b5
AM
4815 $as_echo_n "(cached) " >&6
4816else
b879806f
AM
4817 if test -n "$CXX"; then
4818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832 done
4833IFS=$as_save_IFS
4834
4835fi
4836fi
b879806f
AM
4837CXX=$ac_cv_prog_CXX
4838if test -n "$CXX"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4840$as_echo "$CXX" >&6; }
397841b5
AM
4841else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843$as_echo "no" >&6; }
4844fi
4845
4846
b879806f
AM
4847 test -n "$CXX" && break
4848 done
397841b5 4849fi
b879806f
AM
4850if test -z "$CXX"; then
4851 ac_ct_CXX=$CXX
4852 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4853do
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855set dummy $ac_prog; ac_word=$2
397841b5
AM
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857$as_echo_n "checking for $ac_word... " >&6; }
b879806f 4858if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
81ecdfbb 4859 $as_echo_n "(cached) " >&6
252b5132 4860else
b879806f
AM
4861 if test -n "$ac_ct_CXX"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4863else
ce2cded5
L
4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b879806f 4871 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4873 break 2
4874 fi
4875done
81ecdfbb
RW
4876 done
4877IFS=$as_save_IFS
4878
252b5132
RH
4879fi
4880fi
b879806f
AM
4881ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4882if test -n "$ac_ct_CXX"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4884$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4885else
81ecdfbb
RW
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887$as_echo "no" >&6; }
d7040cdb
SE
4888fi
4889
81ecdfbb 4890
b879806f 4891 test -n "$ac_ct_CXX" && break
d7040cdb 4892done
d7040cdb 4893
b879806f
AM
4894 if test "x$ac_ct_CXX" = x; then
4895 CXX="g++"
81ecdfbb
RW
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
b879806f 4903 CXX=$ac_ct_CXX
81ecdfbb 4904 fi
d7040cdb
SE
4905fi
4906
b879806f 4907 fi
d7040cdb 4908fi
ce2cded5 4909# Provide some information about the compiler.
b879806f 4910$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4911set X $ac_compile
4912ac_compiler=$2
4913for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920$as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4922 ac_status=$?
81ecdfbb
RW
4923 if test -s conftest.err; then
4924 sed '10a\
4925... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4928 rm -f conftest.er1 conftest.err
4929 fi
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932done
d7040cdb 4933
b879806f
AM
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4935$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4936if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
81ecdfbb 4937 $as_echo_n "(cached) " >&6
d7040cdb 4938else
81ecdfbb 4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4940/* end confdefs.h. */
d7040cdb 4941
ce2cded5
L
4942int
4943main ()
4944{
4945#ifndef __GNUC__
4946 choke me
4947#endif
4948
4949 ;
4950 return 0;
4951}
4952_ACEOF
b879806f 4953if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4954 ac_compiler_gnu=yes
d7040cdb 4955else
81ecdfbb 4956 ac_compiler_gnu=no
d7040cdb 4957fi
81ecdfbb 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4959ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4960
ce2cded5 4961fi
b879806f
AM
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4963$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4964if test $ac_compiler_gnu = yes; then
b879806f 4965 GXX=yes
81ecdfbb 4966else
b879806f 4967 GXX=
81ecdfbb 4968fi
b879806f
AM
4969ac_test_CXXFLAGS=${CXXFLAGS+set}
4970ac_save_CXXFLAGS=$CXXFLAGS
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4972$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4973if test "${ac_cv_prog_cxx_g+set}" = set; then :
81ecdfbb
RW
4974 $as_echo_n "(cached) " >&6
4975else
b879806f
AM
4976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4977 ac_cxx_werror_flag=yes
4978 ac_cv_prog_cxx_g=no
4979 CXXFLAGS="-g"
81ecdfbb 4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4981/* end confdefs.h. */
d7040cdb 4982
ce2cded5
L
4983int
4984main ()
4985{
d7040cdb 4986
ce2cded5
L
4987 ;
4988 return 0;
4989}
4990_ACEOF
b879806f
AM
4991if ac_fn_cxx_try_compile "$LINENO"; then :
4992 ac_cv_prog_cxx_g=yes
ce2cded5 4993else
b879806f 4994 CXXFLAGS=""
81ecdfbb
RW
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996/* end confdefs.h. */
4997
4998int
4999main ()
5000{
5001
5002 ;
5003 return 0;
5004}
5005_ACEOF
b879806f 5006if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5007
5008else
b879806f
AM
5009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5010 CXXFLAGS="-g"
81ecdfbb
RW
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012/* end confdefs.h. */
5013
5014int
5015main ()
5016{
d7040cdb 5017
81ecdfbb
RW
5018 ;
5019 return 0;
5020}
5021_ACEOF
b879806f
AM
5022if ac_fn_cxx_try_compile "$LINENO"; then :
5023 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5024fi
5025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5026fi
5027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5028fi
81ecdfbb 5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5030 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5031fi
b879806f
AM
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5033$as_echo "$ac_cv_prog_cxx_g" >&6; }
5034if test "$ac_test_CXXFLAGS" = set; then
5035 CXXFLAGS=$ac_save_CXXFLAGS
5036elif test $ac_cv_prog_cxx_g = yes; then
5037 if test "$GXX" = yes; then
5038 CXXFLAGS="-g -O2"
ce2cded5 5039 else
b879806f 5040 CXXFLAGS="-g"
ce2cded5 5041 fi
d7040cdb 5042else
b879806f
AM
5043 if test "$GXX" = yes; then
5044 CXXFLAGS="-O2"
ce2cded5 5045 else
b879806f 5046 CXXFLAGS=
ce2cded5 5047 fi
d7040cdb 5048fi
b879806f
AM
5049ac_ext=c
5050ac_cpp='$CPP $CPPFLAGS'
5051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055depcc="$CXX" am_compiler_list=
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5058$as_echo_n "checking dependency style of $depcc... " >&6; }
5059if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
81ecdfbb 5060 $as_echo_n "(cached) " >&6
d7040cdb 5061else
b879806f
AM
5062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063 # We make a subdir and do the tests there. Otherwise we can end up
5064 # making bogus files that we don't know about and never remove. For
5065 # instance it was reported that on HP-UX the gcc test will end up
5066 # making a dummy file named `D' -- because `-MD' means `put the output
5067 # in D'.
5068 mkdir conftest.dir
5069 # Copy depcomp to subdir because otherwise we won't find it if we're
5070 # using a relative directory.
5071 cp "$am_depcomp" conftest.dir
5072 cd conftest.dir
5073 # We will build objects and dependencies in a subdirectory because
5074 # it helps to detect inapplicable dependency modes. For instance
5075 # both Tru64's cc and ICC support -MD to output dependencies as a
5076 # side effect of compilation, but ICC will put the dependencies in
5077 # the current directory while Tru64 will put them in the object
5078 # directory.
5079 mkdir sub
d7040cdb 5080
b879806f
AM
5081 am_cv_CXX_dependencies_compiler_type=none
5082 if test "$am_compiler_list" = ""; then
5083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5084 fi
5085 am__universal=false
5086 case " $depcc " in #(
5087 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5088 esac
d7040cdb 5089
b879806f
AM
5090 for depmode in $am_compiler_list; do
5091 # Setup a source with many dependencies, because some compilers
5092 # like to wrap large dependency lists on column 80 (with \), and
5093 # we should not choose a depcomp mode which is confused by this.
5094 #
5095 # We need to recreate these files for each test, as the compiler may
5096 # overwrite some of them when testing with obscure command lines.
5097 # This happens at least with the AIX C compiler.
5098 : > sub/conftest.c
5099 for i in 1 2 3 4 5 6; do
5100 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5101 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5102 # Solaris 8's {/usr,}/bin/sh.
5103 touch sub/conftst$i.h
5104 done
5105 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5106
b879806f
AM
5107 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5108 # mode. It turns out that the SunPro C++ compiler does not properly
5109 # handle `-M -o', and we need to detect this. Also, some Intel
5110 # versions had trouble with output in subdirs
5111 am__obj=sub/conftest.${OBJEXT-o}
5112 am__minus_obj="-o $am__obj"
5113 case $depmode in
5114 gcc)
5115 # This depmode causes a compiler race in universal mode.
5116 test "$am__universal" = false || continue
5117 ;;
5118 nosideeffect)
5119 # after this tag, mechanisms are not by side-effect, so they'll
5120 # only be used when explicitly requested
5121 if test "x$enable_dependency_tracking" = xyes; then
5122 continue
5123 else
5124 break
5125 fi
5126 ;;
5127 msvisualcpp | msvcmsys)
5128 # This compiler won't grok `-c -o', but also, the minuso test has
5129 # not run yet. These depmodes are late enough in the game, and
5130 # so weak that their functioning should not be impacted.
5131 am__obj=conftest.${OBJEXT-o}
5132 am__minus_obj=
5133 ;;
5134 none) break ;;
5135 esac
5136 if depmode=$depmode \
5137 source=sub/conftest.c object=$am__obj \
5138 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5139 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5140 >/dev/null 2>conftest.err &&
5141 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5143 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5145 # icc doesn't choke on unknown options, it will just issue warnings
5146 # or remarks (even with -Werror). So we grep stderr for any message
5147 # that says an option was ignored or not supported.
5148 # When given -MP, icc 7.0 and 7.1 complain thusly:
5149 # icc: Command line warning: ignoring option '-M'; no argument required
5150 # The diagnosis changed in icc 8.0:
5151 # icc: Command line remark: option '-MP' not supported
5152 if (grep 'ignoring option' conftest.err ||
5153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5154 am_cv_CXX_dependencies_compiler_type=$depmode
5155 break
5156 fi
5157 fi
5158 done
5159
5160 cd ..
5161 rm -rf conftest.dir
5162else
5163 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5164fi
d7040cdb 5165
ce2cded5 5166fi
b879806f
AM
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5168$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5169CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5170
b879806f
AM
5171 if
5172 test "x$enable_dependency_tracking" != xno \
5173 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5174 am__fastdepCXX_TRUE=
5175 am__fastdepCXX_FALSE='#'
5176else
5177 am__fastdepCXX_TRUE='#'
5178 am__fastdepCXX_FALSE=
ce2cded5 5179fi
d7040cdb 5180
b879806f 5181
68880f31
CLT
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5183$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5184if test "${ac_cv_path_GREP+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5186else
5187 if test -z "$GREP"; then
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199# Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201case `"$ac_path_GREP" --version 2>&1` in
5202*GNU*)
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5204*)
5205 ac_count=0
5206 $as_echo_n 0123456789 >"conftest.in"
5207 while :
5208 do
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5220 fi
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225esac
5226
5227 $ac_path_GREP_found && break 3
5228 done
5229 done
5230 done
5231IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_GREP"; then
5233 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234 fi
5235else
5236 ac_cv_path_GREP=$GREP
5237fi
5238
5239fi
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5241$as_echo "$ac_cv_path_GREP" >&6; }
5242 GREP="$ac_cv_path_GREP"
5243
5244
ce2cded5
L
5245ac_ext=c
5246ac_cpp='$CPP $CPPFLAGS'
5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5251$as_echo_n "checking how to run the C preprocessor... " >&6; }
5252# On Suns, sometimes $CPP names a directory.
5253if test -n "$CPP" && test -d "$CPP"; then
5254 CPP=
7357c5b6 5255fi
b879806f
AM
5256if test -z "$CPP"; then
5257 if test "${ac_cv_prog_CPP+set}" = set; then :
3cb62297
L
5258 $as_echo_n "(cached) " >&6
5259else
b879806f
AM
5260 # Double quotes because CPP needs to be expanded
5261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5262 do
5263 ac_preproc_ok=false
5264for ac_c_preproc_warn_flag in '' yes
3cb62297 5265do
b879806f
AM
5266 # Use a header file that comes with gcc, so configuring glibc
5267 # with a fresh cross-compiler works.
5268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269 # <limits.h> exists even on freestanding compilers.
5270 # On the NeXT, cc -E runs the code through the compiler's parser,
5271 # not just through cpp. "Syntax error" is here to catch this case.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h. */
5274#ifdef __STDC__
5275# include <limits.h>
5276#else
5277# include <assert.h>
5278#endif
5279 Syntax error
5280_ACEOF
5281if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5282
3cb62297 5283else
b879806f
AM
5284 # Broken: fails on valid input.
5285continue
7357c5b6 5286fi
b879806f 5287rm -f conftest.err conftest.$ac_ext
252b5132 5288
b879806f
AM
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h. */
5293#include <ac_nonexistent.h>
5294_ACEOF
5295if ac_fn_c_try_cpp "$LINENO"; then :
5296 # Broken: success on invalid input.
5297continue
5298else
5299 # Passes both tests.
5300ac_preproc_ok=:
5301break
5302fi
5303rm -f conftest.err conftest.$ac_ext
42ecbf5e 5304
3cb62297 5305done
b879806f
AM
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then :
5309 break
7357c5b6 5310fi
ac48eca1 5311
b879806f
AM
5312 done
5313 ac_cv_prog_CPP=$CPP
d7040cdb 5314
b879806f
AM
5315fi
5316 CPP=$ac_cv_prog_CPP
7357c5b6 5317else
b879806f
AM
5318 ac_cv_prog_CPP=$CPP
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5321$as_echo "$CPP" >&6; }
5322ac_preproc_ok=false
5323for ac_c_preproc_warn_flag in '' yes
5324do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5332/* end confdefs.h. */
b879806f
AM
5333#ifdef __STDC__
5334# include <limits.h>
5335#else
5336# include <assert.h>
3cb62297 5337#endif
b879806f 5338 Syntax error
7357c5b6 5339_ACEOF
b879806f
AM
5340if ac_fn_c_try_cpp "$LINENO"; then :
5341
81ecdfbb 5342else
b879806f
AM
5343 # Broken: fails on valid input.
5344continue
7357c5b6 5345fi
b879806f 5346rm -f conftest.err conftest.$ac_ext
81ecdfbb 5347
b879806f
AM
5348 # OK, works on sane cases. Now check whether nonexistent headers
5349 # can be detected and how.
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h. */
5352#include <ac_nonexistent.h>
5353_ACEOF
5354if ac_fn_c_try_cpp "$LINENO"; then :
5355 # Broken: success on invalid input.
5356continue
3cb62297 5357else
b879806f
AM
5358 # Passes both tests.
5359ac_preproc_ok=:
5360break
7357c5b6 5361fi
b879806f 5362rm -f conftest.err conftest.$ac_ext
252b5132 5363
b879806f
AM
5364done
5365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5366rm -f conftest.err conftest.$ac_ext
5367if $ac_preproc_ok; then :
252b5132 5368
3cb62297 5369else
b879806f
AM
5370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5372as_fn_error "C preprocessor \"$CPP\" fails sanity check
5373See \`config.log' for more details." "$LINENO" 5; }
5374fi
42ecbf5e 5375
b879806f
AM
5376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5381
5382
b879806f
AM
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5384$as_echo_n "checking for egrep... " >&6; }
5385if test "${ac_cv_path_EGREP+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387else
5388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5389 then ac_cv_path_EGREP="$GREP -E"
5390 else
5391 if test -z "$EGREP"; then
5392 ac_path_EGREP_found=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396do
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_prog in egrep; do
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5403# Check for GNU ac_path_EGREP and select it if it is found.
5404 # Check for GNU $ac_path_EGREP
5405case `"$ac_path_EGREP" --version 2>&1` in
5406*GNU*)
5407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5408*)
5409 ac_count=0
5410 $as_echo_n 0123456789 >"conftest.in"
5411 while :
5412 do
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'EGREP' >> "conftest.nl"
5417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5419 as_fn_arith $ac_count + 1 && ac_count=$as_val
5420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_EGREP="$ac_path_EGREP"
5423 ac_path_EGREP_max=$ac_count
5424 fi
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5427 done
5428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429esac
5430
5431 $ac_path_EGREP_found && break 3
5432 done
5433 done
5434 done
5435IFS=$as_save_IFS
5436 if test -z "$ac_cv_path_EGREP"; then
5437 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 fi
5439else
5440 ac_cv_path_EGREP=$EGREP
5441fi
5442
5443 fi
5444fi
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5446$as_echo "$ac_cv_path_EGREP" >&6; }
5447 EGREP="$ac_cv_path_EGREP"
5448
5449
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5451$as_echo_n "checking for ANSI C header files... " >&6; }
5452if test "${ac_cv_header_stdc+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454else
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5456/* end confdefs.h. */
b879806f
AM
5457#include <stdlib.h>
5458#include <stdarg.h>
5459#include <string.h>
5460#include <float.h>
42ecbf5e 5461
3cb62297
L
5462int
5463main ()
5464{
42ecbf5e 5465
3cb62297
L
5466 ;
5467 return 0;
5468}
5469_ACEOF
b879806f
AM
5470if ac_fn_c_try_compile "$LINENO"; then :
5471 ac_cv_header_stdc=yes
5472else
5473 ac_cv_header_stdc=no
3cb62297
L
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5476
5477if test $ac_cv_header_stdc = yes; then
5478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481#include <string.h>
5482
5483_ACEOF
5484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5485 $EGREP "memchr" >/dev/null 2>&1; then :
5486
5487else
5488 ac_cv_header_stdc=no
3cb62297 5489fi
b879806f
AM
5490rm -f conftest*
5491
3cb62297 5492fi
b879806f
AM
5493
5494if test $ac_cv_header_stdc = yes; then
5495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498#include <stdlib.h>
5499
5500_ACEOF
5501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 $EGREP "free" >/dev/null 2>&1; then :
5503
ce2cded5 5504else
b879806f 5505 ac_cv_header_stdc=no
ce2cded5 5506fi
b879806f 5507rm -f conftest*
42ecbf5e 5508
b879806f 5509fi
e5a52504 5510
b879806f
AM
5511if test $ac_cv_header_stdc = yes; then
5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5513 if test "$cross_compiling" = yes; then :
5514 :
3cb62297 5515else
b879806f
AM
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518#include <ctype.h>
5519#include <stdlib.h>
5520#if ((' ' & 0x0FF) == 0x020)
5521# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5522# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523#else
5524# define ISLOWER(c) \
5525 (('a' <= (c) && (c) <= 'i') \
5526 || ('j' <= (c) && (c) <= 'r') \
5527 || ('s' <= (c) && (c) <= 'z'))
5528# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5529#endif
3cb62297
L
5530
5531#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5532int
5533main ()
5534{
5535 int i;
5536 for (i = 0; i < 256; i++)
5537 if (XOR (islower (i), ISLOWER (i))
5538 || toupper (i) != TOUPPER (i))
5539 return 2;
5540 return 0;
5541}
5542_ACEOF
5543if ac_fn_c_try_run "$LINENO"; then :
5544
5545else
5546 ac_cv_header_stdc=no
5547fi
5548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5549 conftest.$ac_objext conftest.beam conftest.$ac_ext
5550fi
5551
5552fi
5553fi
5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5555$as_echo "$ac_cv_header_stdc" >&6; }
5556if test $ac_cv_header_stdc = yes; then
5557
5558$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5559
5560fi
5561
5562# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5563for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5564 inttypes.h stdint.h unistd.h
5565do :
5566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5567ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5568"
5569eval as_val=\$$as_ac_Header
5570 if test "x$as_val" = x""yes; then :
5571 cat >>confdefs.h <<_ACEOF
5572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5573_ACEOF
5574
5575fi
5576
5577done
5578
5579
5580
5581 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5582if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5583 MINIX=yes
5584else
5585 MINIX=
5586fi
5587
5588
5589 if test "$MINIX" = yes; then
5590
5591$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5592
5593
5594$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5595
5596
5597$as_echo "#define _MINIX 1" >>confdefs.h
5598
5599 fi
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5603$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5604if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608/* end confdefs.h. */
5609
5610# define __EXTENSIONS__ 1
5611 $ac_includes_default
5612int
5613main ()
5614{
5615
5616 ;
5617 return 0;
5618}
5619_ACEOF
5620if ac_fn_c_try_compile "$LINENO"; then :
5621 ac_cv_safe_to_define___extensions__=yes
5622else
5623 ac_cv_safe_to_define___extensions__=no
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626fi
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5628$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5629 test $ac_cv_safe_to_define___extensions__ = yes &&
5630 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5631
5632 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5633
5634 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5635
5636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5637
5638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5639
5640
5641
5642
5643
3cb62297 5644
b879806f
AM
5645case `pwd` in
5646 *\ * | *\ *)
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5648$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5649esac
3cb62297
L
5650
5651
da2f07f1 5652
b879806f
AM
5653macro_version='2.2.7a'
5654macro_revision='1.3134'
d7040cdb 5655
d7040cdb
SE
5656
5657
d7040cdb 5658
d7040cdb 5659
42ecbf5e 5660
d7040cdb 5661
252b5132 5662
252b5132 5663
252b5132 5664
252b5132
RH
5665
5666
ce2cded5 5667
b214d478 5668ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5669
3725885a
RW
5670# Backslashify metacharacters that are still active within
5671# double-quoted strings.
5672sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5673
5674# Same as above, but do not quote variable references.
5675double_quote_subst='s/\(["`\\]\)/\\\1/g'
5676
5677# Sed substitution to delay expansion of an escaped shell variable in a
5678# double_quote_subst'ed string.
5679delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5680
5681# Sed substitution to delay expansion of an escaped single quote.
5682delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5683
5684# Sed substitution to avoid accidental globbing in evaled expressions
5685no_glob_subst='s/\*/\\\*/g'
5686
5687ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5688ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5689ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5690
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5692$as_echo_n "checking how to print strings... " >&6; }
5693# Test print first, because it will be a builtin if present.
5694if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5695 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5696 ECHO='print -r --'
5697elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5698 ECHO='printf %s\n'
5699else
5700 # Use this function as a fallback that always works.
5701 func_fallback_echo ()
5702 {
5703 eval 'cat <<_LTECHO_EOF
5704$1
5705_LTECHO_EOF'
5706 }
5707 ECHO='func_fallback_echo'
5708fi
5709
5710# func_echo_all arg...
5711# Invoke $ECHO with all args, space-separated.
5712func_echo_all ()
5713{
5714 $ECHO ""
5715}
5716
5717case "$ECHO" in
5718 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5719$as_echo "printf" >&6; } ;;
5720 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5721$as_echo "print -r" >&6; } ;;
5722 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5723$as_echo "cat" >&6; } ;;
5724esac
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
81ecdfbb
RW
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5740$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5741if test "${ac_cv_path_SED+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5743else
5744 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5745 for ac_i in 1 2 3 4 5 6 7; do
5746 ac_script="$ac_script$as_nl$ac_script"
5747 done
5748 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5749 { ac_script=; unset ac_script;}
5750 if test -z "$SED"; then
5751 ac_path_SED_found=false
5752 # Loop through the user's path and test for each of PROGNAME-LIST
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
81ecdfbb 5758 for ac_prog in sed gsed; do
7357c5b6 5759 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb
RW
5760 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5761 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5762# Check for GNU ac_path_SED and select it if it is found.
5763 # Check for GNU $ac_path_SED
5764case `"$ac_path_SED" --version 2>&1` in
5765*GNU*)
5766 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5767*)
5768 ac_count=0
5769 $as_echo_n 0123456789 >"conftest.in"
5770 while :
5771 do
5772 cat "conftest.in" "conftest.in" >"conftest.tmp"
5773 mv "conftest.tmp" "conftest.in"
5774 cp "conftest.in" "conftest.nl"
5775 $as_echo '' >> "conftest.nl"
5776 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5778 as_fn_arith $ac_count + 1 && ac_count=$as_val
5779 if test $ac_count -gt ${ac_path_SED_max-0}; then
5780 # Best one so far, save it but keep looking for a better one
5781 ac_cv_path_SED="$ac_path_SED"
5782 ac_path_SED_max=$ac_count
5783 fi
5784 # 10*(2^10) chars as input seems more than enough
5785 test $ac_count -gt 10 && break
5786 done
5787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5788esac
5789
5790 $ac_path_SED_found && break 3
7357c5b6
AM
5791 done
5792 done
81ecdfbb 5793 done
7357c5b6 5794IFS=$as_save_IFS
81ecdfbb
RW
5795 if test -z "$ac_cv_path_SED"; then
5796 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5797 fi
81ecdfbb
RW
5798else
5799 ac_cv_path_SED=$SED
7357c5b6 5800fi
20e95c23 5801
81ecdfbb
RW
5802fi
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5804$as_echo "$ac_cv_path_SED" >&6; }
5805 SED="$ac_cv_path_SED"
5806 rm -f conftest.sed
20e95c23 5807
7357c5b6
AM
5808test -z "$SED" && SED=sed
5809Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5810
5811
5812
5813
5814
5815
20e95c23 5816
20e95c23 5817
d7040cdb 5818
d7040cdb 5819
7357c5b6 5820
81ecdfbb
RW
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5822$as_echo_n "checking for fgrep... " >&6; }
5823if test "${ac_cv_path_FGREP+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
7357c5b6 5825else
81ecdfbb
RW
5826 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5827 then ac_cv_path_FGREP="$GREP -F"
5828 else
5829 if test -z "$FGREP"; then
5830 ac_path_FGREP_found=false
5831 # Loop through the user's path and test for each of PROGNAME-LIST
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_prog in fgrep; do
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5840 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5841# Check for GNU ac_path_FGREP and select it if it is found.
5842 # Check for GNU $ac_path_FGREP
5843case `"$ac_path_FGREP" --version 2>&1` in
5844*GNU*)
5845 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5846*)
5847 ac_count=0
5848 $as_echo_n 0123456789 >"conftest.in"
5849 while :
5850 do
5851 cat "conftest.in" "conftest.in" >"conftest.tmp"
5852 mv "conftest.tmp" "conftest.in"
5853 cp "conftest.in" "conftest.nl"
5854 $as_echo 'FGREP' >> "conftest.nl"
5855 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5857 as_fn_arith $ac_count + 1 && ac_count=$as_val
5858 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5859 # Best one so far, save it but keep looking for a better one
5860 ac_cv_path_FGREP="$ac_path_FGREP"
5861 ac_path_FGREP_max=$ac_count
7357c5b6 5862 fi
81ecdfbb
RW
5863 # 10*(2^10) chars as input seems more than enough
5864 test $ac_count -gt 10 && break
5865 done
5866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5867esac
5868
5869 $ac_path_FGREP_found && break 3
5870 done
5871 done
5872 done
5873IFS=$as_save_IFS
5874 if test -z "$ac_cv_path_FGREP"; then
5875 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5876 fi
5877else
5878 ac_cv_path_FGREP=$FGREP
5879fi
5880
5881 fi
20e95c23 5882fi
81ecdfbb
RW
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5884$as_echo "$ac_cv_path_FGREP" >&6; }
5885 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5886
5887
5888test -z "$GREP" && GREP=grep
5889
d7040cdb
SE
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
20e95c23 5901
ce2cded5 5902
d7040cdb 5903
7357c5b6
AM
5904
5905
5906
5907
81ecdfbb
RW
5908# Check whether --with-gnu-ld was given.
5909if test "${with_gnu_ld+set}" = set; then :
5910 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5911else
5912 with_gnu_ld=no
81ecdfbb
RW
5913fi
5914
7357c5b6
AM
5915ac_prog=ld
5916if test "$GCC" = yes; then
5917 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5919$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5920 case $host in
5921 *-*-mingw*)
5922 # gcc leaves a trailing carriage return which upsets mingw
5923 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5924 *)
5925 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5926 esac
5927 case $ac_prog in
5928 # Accept absolute paths.
5929 [\\/]* | ?:[\\/]*)
5930 re_direlt='/[^/][^/]*/\.\./'
5931 # Canonicalize the pathname of ld
5932 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5933 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5934 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5935 done
5936 test -z "$LD" && LD="$ac_prog"
5937 ;;
5938 "")
5939 # If it fails, then pretend we aren't using GCC.
5940 ac_prog=ld
5941 ;;
5942 *)
5943 # If it is relative, then search for the first ld in PATH.
5944 with_gnu_ld=unknown
5945 ;;
5946 esac
5947elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5949$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5950else
81ecdfbb
RW
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5952$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5953fi
81ecdfbb
RW
5954if test "${lt_cv_path_LD+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
ce2cded5 5956else
7357c5b6
AM
5957 if test -z "$LD"; then
5958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959 for ac_dir in $PATH; do
5960 IFS="$lt_save_ifs"
5961 test -z "$ac_dir" && ac_dir=.
5962 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5963 lt_cv_path_LD="$ac_dir/$ac_prog"
5964 # Check to see if the program is GNU ld. I'd rather use --version,
5965 # but apparently some variants of GNU ld only accept -v.
5966 # Break only if it was the GNU/non-GNU ld that we prefer.
5967 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5968 *GNU* | *'with BFD'*)
5969 test "$with_gnu_ld" != no && break
5970 ;;
5971 *)
5972 test "$with_gnu_ld" != yes && break
5973 ;;
5974 esac
5975 fi
5976 done
5977 IFS="$lt_save_ifs"
ce2cded5 5978else
7357c5b6 5979 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5980fi
5981fi
7357c5b6
AM
5982
5983LD="$lt_cv_path_LD"
5984if test -n "$LD"; then
81ecdfbb
RW
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5986$as_echo "$LD" >&6; }
ce2cded5 5987else
81ecdfbb
RW
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989$as_echo "no" >&6; }
ce2cded5 5990fi
81ecdfbb
RW
5991test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5993$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5994if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
ce2cded5 5996else
7357c5b6
AM
5997 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5998case `$LD -v 2>&1 </dev/null` in
5999*GNU* | *'with BFD'*)
6000 lt_cv_prog_gnu_ld=yes
6001 ;;
6002*)
6003 lt_cv_prog_gnu_ld=no
6004 ;;
6005esac
ce2cded5 6006fi
81ecdfbb
RW
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6008$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6009with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6010
6011
6012
6013
6014
6015
6016
6017
6018
81ecdfbb
RW
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6020$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6021if test "${lt_cv_path_NM+set}" = set; then :
6022 $as_echo_n "(cached) " >&6
ce2cded5 6023else
7357c5b6
AM
6024 if test -n "$NM"; then
6025 # Let the user override the test.
6026 lt_cv_path_NM="$NM"
ce2cded5 6027else
7357c5b6
AM
6028 lt_nm_to_check="${ac_tool_prefix}nm"
6029 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6030 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6031 fi
7357c5b6
AM
6032 for lt_tmp_nm in $lt_nm_to_check; do
6033 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6035 IFS="$lt_save_ifs"
6036 test -z "$ac_dir" && ac_dir=.
6037 tmp_nm="$ac_dir/$lt_tmp_nm"
6038 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6039 # Check to see if the nm accepts a BSD-compat flag.
6040 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6041 # nm: unknown option "B" ignored
6042 # Tru64's nm complains that /dev/null is an invalid object file
6043 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6044 */dev/null* | *'Invalid file or object type'*)
6045 lt_cv_path_NM="$tmp_nm -B"
6046 break
6047 ;;
6048 *)
6049 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6050 */dev/null*)
6051 lt_cv_path_NM="$tmp_nm -p"
6052 break
6053 ;;
6054 *)
6055 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6056 continue # so that we can try to find one that supports BSD flags
6057 ;;
6058 esac
6059 ;;
6060 esac
6061 fi
6062 done
6063 IFS="$lt_save_ifs"
6064 done
6065 : ${lt_cv_path_NM=no}
ce2cded5
L
6066fi
6067fi
81ecdfbb
RW
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6069$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6070if test "$lt_cv_path_NM" != "no"; then
6071 NM="$lt_cv_path_NM"
ce2cded5 6072else
7357c5b6 6073 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6074 if test -n "$DUMPBIN"; then :
6075 # Let the user override the test.
6076 else
6077 if test -n "$ac_tool_prefix"; then
6078 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6079 do
6080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6083$as_echo_n "checking for $ac_word... " >&6; }
6084if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6085 $as_echo_n "(cached) " >&6
20e95c23 6086else
7357c5b6
AM
6087 if test -n "$DUMPBIN"; then
6088 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6095 for ac_exec_ext in '' $ac_executable_extensions; do
6096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6097 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6099 break 2
6100 fi
6101done
81ecdfbb
RW
6102 done
6103IFS=$as_save_IFS
d7040cdb 6104
20e95c23 6105fi
ce2cded5 6106fi
7357c5b6
AM
6107DUMPBIN=$ac_cv_prog_DUMPBIN
6108if test -n "$DUMPBIN"; then
81ecdfbb
RW
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6110$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6111else
81ecdfbb
RW
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6113$as_echo "no" >&6; }
42ecbf5e
DJ
6114fi
6115
81ecdfbb 6116
7357c5b6
AM
6117 test -n "$DUMPBIN" && break
6118 done
ce2cded5 6119fi
7357c5b6
AM
6120if test -z "$DUMPBIN"; then
6121 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6122 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6123do
6124 # Extract the first word of "$ac_prog", so it can be a program name with args.
6125set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
42ecbf5e 6130else
7357c5b6
AM
6131 if test -n "$ac_ct_DUMPBIN"; then
6132 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137 IFS=$as_save_IFS
6138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6141 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6143 break 2
6144 fi
6145done
81ecdfbb
RW
6146 done
6147IFS=$as_save_IFS
d7040cdb 6148
ce2cded5
L
6149fi
6150fi
7357c5b6
AM
6151ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6152if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6154$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6155else
81ecdfbb
RW
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6157$as_echo "no" >&6; }
ce2cded5 6158fi
d7040cdb 6159
81ecdfbb 6160
7357c5b6 6161 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6162done
d7040cdb 6163
81ecdfbb
RW
6164 if test "x$ac_ct_DUMPBIN" = x; then
6165 DUMPBIN=":"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 DUMPBIN=$ac_ct_DUMPBIN
6174 fi
ce2cded5 6175fi
7357c5b6 6176
3725885a
RW
6177 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6178 *COFF*)
6179 DUMPBIN="$DUMPBIN -symbols"
6180 ;;
6181 *)
6182 DUMPBIN=:
6183 ;;
6184 esac
6185 fi
7357c5b6
AM
6186
6187 if test "$DUMPBIN" != ":"; then
6188 NM="$DUMPBIN"
6189 fi
ce2cded5 6190fi
7357c5b6
AM
6191test -z "$NM" && NM=nm
6192
6193
6194
6195
6196
6197
81ecdfbb
RW
6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6199$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6200if test "${lt_cv_nm_interface+set}" = set; then :
6201 $as_echo_n "(cached) " >&6
20e95c23 6202else
7357c5b6
AM
6203 lt_cv_nm_interface="BSD nm"
6204 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6205 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6206 (eval "$ac_compile" 2>conftest.err)
6207 cat conftest.err >&5
3725885a 6208 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6209 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6210 cat conftest.err >&5
3725885a 6211 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6212 cat conftest.out >&5
6213 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6214 lt_cv_nm_interface="MS dumpbin"
6215 fi
6216 rm -f conftest*
20e95c23 6217fi
81ecdfbb
RW
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6219$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6220
81ecdfbb
RW
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6222$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6223LN_S=$as_ln_s
6224if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6226$as_echo "yes" >&6; }
ce2cded5 6227else
81ecdfbb
RW
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6229$as_echo "no, using $LN_S" >&6; }
d7040cdb 6230fi
20e95c23 6231
7357c5b6 6232# find the maximum length of command line arguments
81ecdfbb
RW
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6234$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6235if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
7357c5b6
AM
6237else
6238 i=0
6239 teststring="ABCD"
20e95c23 6240
7357c5b6
AM
6241 case $build_os in
6242 msdosdjgpp*)
6243 # On DJGPP, this test can blow up pretty badly due to problems in libc
6244 # (any single argument exceeding 2000 bytes causes a buffer overrun
6245 # during glob expansion). Even if it were fixed, the result of this
6246 # check would be larger than it should be.
6247 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6248 ;;
20e95c23 6249
7357c5b6
AM
6250 gnu*)
6251 # Under GNU Hurd, this test is not required because there is
6252 # no limit to the length of command line arguments.
6253 # Libtool will interpret -1 as no limit whatsoever
6254 lt_cv_sys_max_cmd_len=-1;
6255 ;;
20e95c23 6256
b214d478 6257 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6258 # On Win9x/ME, this test blows up -- it succeeds, but takes
6259 # about 5 minutes as the teststring grows exponentially.
6260 # Worse, since 9x/ME are not pre-emptively multitasking,
6261 # you end up with a "frozen" computer, even though with patience
6262 # the test eventually succeeds (with a max line length of 256k).
6263 # Instead, let's just punt: use the minimum linelength reported by
6264 # all of the supported platforms: 8192 (on NT/2K/XP).
6265 lt_cv_sys_max_cmd_len=8192;
6266 ;;
20e95c23 6267
3725885a
RW
6268 mint*)
6269 # On MiNT this can take a long time and run out of memory.
6270 lt_cv_sys_max_cmd_len=8192;
6271 ;;
6272
7357c5b6
AM
6273 amigaos*)
6274 # On AmigaOS with pdksh, this test takes hours, literally.
6275 # So we just punt and use a minimum line length of 8192.
6276 lt_cv_sys_max_cmd_len=8192;
6277 ;;
20e95c23 6278
7357c5b6
AM
6279 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6280 # This has been around since 386BSD, at least. Likely further.
6281 if test -x /sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6283 elif test -x /usr/sbin/sysctl; then
6284 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6285 else
6286 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6287 fi
6288 # And add a safety zone
6289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6290 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6291 ;;
d7040cdb 6292
7357c5b6
AM
6293 interix*)
6294 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6295 lt_cv_sys_max_cmd_len=196608
6296 ;;
d7040cdb 6297
7357c5b6
AM
6298 osf*)
6299 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6300 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6301 # nice to cause kernel panics so lets avoid the loop below.
6302 # First set a reasonable default.
6303 lt_cv_sys_max_cmd_len=16384
6304 #
6305 if test -x /sbin/sysconfig; then
6306 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6307 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6308 esac
6309 fi
6310 ;;
6311 sco3.2v5*)
6312 lt_cv_sys_max_cmd_len=102400
6313 ;;
6314 sysv5* | sco5v6* | sysv4.2uw2*)
6315 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6316 if test -n "$kargmax"; then
6317 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6318 else
6319 lt_cv_sys_max_cmd_len=32768
6320 fi
ce2cded5
L
6321 ;;
6322 *)
b214d478
SE
6323 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6324 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6325 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6327 else
6328 # Make teststring a little bigger before we do anything with it.
6329 # a 1K string should be a reasonable start.
6330 for i in 1 2 3 4 5 6 7 8 ; do
6331 teststring=$teststring$teststring
6332 done
6333 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6334 # If test is not a shell built-in, we'll probably end up computing a
6335 # maximum length that is only half of the actual maximum length, but
6336 # we can't tell.
3725885a
RW
6337 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6338 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6339 test $i != 17 # 1/2 MB should be enough
6340 do
6341 i=`expr $i + 1`
6342 teststring=$teststring$teststring
6343 done
6344 # Only check the string length outside the loop.
6345 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6346 teststring=
6347 # Add a significant safety factor because C++ compilers can tack on
6348 # massive amounts of additional arguments before passing them to the
6349 # linker. It appears as though 1/2 is a usable value.
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6351 fi
ce2cded5
L
6352 ;;
6353 esac
d7040cdb 6354
7357c5b6 6355fi
d7040cdb 6356
7357c5b6 6357if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6359$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6360else
81ecdfbb
RW
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6362$as_echo "none" >&6; }
7357c5b6
AM
6363fi
6364max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6365
6366
6367
6368
6369
d7040cdb 6370
7357c5b6
AM
6371: ${CP="cp -f"}
6372: ${MV="mv -f"}
6373: ${RM="rm -f"}
d7040cdb 6374
81ecdfbb
RW
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6376$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6377# Try some XSI features
6378xsi_shell=no
6379( _lt_dummy="a/b/c"
6380 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6381 = c,a/b,, \
6382 && eval 'test $(( 1 + 1 )) -eq 2 \
6383 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6384 && xsi_shell=yes
81ecdfbb
RW
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6386$as_echo "$xsi_shell" >&6; }
d7040cdb 6387
d7040cdb 6388
81ecdfbb
RW
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6390$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6391lt_shell_append=no
6392( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6393 >/dev/null 2>&1 \
6394 && lt_shell_append=yes
81ecdfbb
RW
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6396$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6397
6398
7357c5b6
AM
6399if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6400 lt_unset=unset
6401else
6402 lt_unset=false
6403fi
d7040cdb 6404
d7040cdb 6405
d7040cdb 6406
d7040cdb 6407
d7040cdb 6408
7357c5b6
AM
6409# test EBCDIC or ASCII
6410case `echo X|tr X '\101'` in
6411 A) # ASCII based system
6412 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6413 lt_SP2NL='tr \040 \012'
6414 lt_NL2SP='tr \015\012 \040\040'
6415 ;;
6416 *) # EBCDIC based system
6417 lt_SP2NL='tr \100 \n'
6418 lt_NL2SP='tr \r\n \100\100'
6419 ;;
6420esac
42ecbf5e 6421
d7040cdb
SE
6422
6423
6424
6425
6426
6427
d7040cdb 6428
d7040cdb 6429
81ecdfbb
RW
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6431$as_echo_n "checking for $LD option to reload object files... " >&6; }
6432if test "${lt_cv_ld_reload_flag+set}" = set; then :
6433 $as_echo_n "(cached) " >&6
7357c5b6
AM
6434else
6435 lt_cv_ld_reload_flag='-r'
6436fi
81ecdfbb
RW
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6438$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6439reload_flag=$lt_cv_ld_reload_flag
6440case $reload_flag in
6441"" | " "*) ;;
6442*) reload_flag=" $reload_flag" ;;
6443esac
6444reload_cmds='$LD$reload_flag -o $output$reload_objs'
6445case $host_os in
6446 darwin*)
6447 if test "$GCC" = yes; then
6448 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6449 else
6450 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6451 fi
6452 ;;
6453esac
d7040cdb 6454
d7040cdb 6455
d7040cdb 6456
d7040cdb 6457
d7040cdb 6458
d7040cdb 6459
d7040cdb 6460
d7040cdb 6461
d7040cdb 6462
b214d478
SE
6463if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6465set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467$as_echo_n "checking for $ac_word... " >&6; }
6468if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
b214d478
SE
6470else
6471 if test -n "$OBJDUMP"; then
6472 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6473else
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6481 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6483 break 2
6484 fi
6485done
81ecdfbb
RW
6486 done
6487IFS=$as_save_IFS
b214d478
SE
6488
6489fi
6490fi
6491OBJDUMP=$ac_cv_prog_OBJDUMP
6492if test -n "$OBJDUMP"; then
81ecdfbb
RW
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6494$as_echo "$OBJDUMP" >&6; }
b214d478 6495else
81ecdfbb
RW
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
b214d478
SE
6498fi
6499
81ecdfbb 6500
b214d478
SE
6501fi
6502if test -z "$ac_cv_prog_OBJDUMP"; then
6503 ac_ct_OBJDUMP=$OBJDUMP
6504 # Extract the first word of "objdump", so it can be a program name with args.
6505set dummy objdump; ac_word=$2
81ecdfbb
RW
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507$as_echo_n "checking for $ac_word... " >&6; }
6508if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6509 $as_echo_n "(cached) " >&6
b214d478
SE
6510else
6511 if test -n "$ac_ct_OBJDUMP"; then
6512 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 6521 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6523 break 2
6524 fi
6525done
81ecdfbb
RW
6526 done
6527IFS=$as_save_IFS
b214d478 6528
b214d478
SE
6529fi
6530fi
6531ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6532if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6534$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6535else
81ecdfbb
RW
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537$as_echo "no" >&6; }
b214d478
SE
6538fi
6539
81ecdfbb
RW
6540 if test "x$ac_ct_OBJDUMP" = x; then
6541 OBJDUMP="false"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544yes:)
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547ac_tool_warned=yes ;;
6548esac
6549 OBJDUMP=$ac_ct_OBJDUMP
6550 fi
b214d478
SE
6551else
6552 OBJDUMP="$ac_cv_prog_OBJDUMP"
6553fi
6554
6555test -z "$OBJDUMP" && OBJDUMP=objdump
6556
6557
6558
6559
6560
6561
6562
6563
d7040cdb 6564
81ecdfbb
RW
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6566$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6567if test "${lt_cv_deplibs_check_method+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
ce2cded5 6569else
7357c5b6
AM
6570 lt_cv_file_magic_cmd='$MAGIC_CMD'
6571lt_cv_file_magic_test_file=
6572lt_cv_deplibs_check_method='unknown'
6573# Need to set the preceding variable on all platforms that support
6574# interlibrary dependencies.
6575# 'none' -- dependencies not supported.
6576# `unknown' -- same as none, but documents that we really don't know.
6577# 'pass_all' -- all dependencies passed with no checks.
6578# 'test_compile' -- check by making test program.
6579# 'file_magic [[regex]]' -- check by looking for files in library path
6580# which responds to the $file_magic_cmd with a given extended regex.
6581# If you have `file' or equivalent on your system and you're not sure
6582# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6583
ce2cded5 6584case $host_os in
7357c5b6
AM
6585aix[4-9]*)
6586 lt_cv_deplibs_check_method=pass_all
ce2cded5 6587 ;;
7357c5b6
AM
6588
6589beos*)
6590 lt_cv_deplibs_check_method=pass_all
ce2cded5 6591 ;;
7357c5b6
AM
6592
6593bsdi[45]*)
6594 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6595 lt_cv_file_magic_cmd='/usr/bin/file -L'
6596 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6597 ;;
7357c5b6
AM
6598
6599cygwin*)
6600 # func_win32_libid is a shell function defined in ltmain.sh
6601 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6602 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6603 ;;
7357c5b6
AM
6604
6605mingw* | pw32*)
6606 # Base MSYS/MinGW do not provide the 'file' command needed by
6607 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6608 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6609 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6610 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6611 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6612 lt_cv_file_magic_cmd='func_win32_libid'
6613 else
6614 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6615 lt_cv_file_magic_cmd='$OBJDUMP -f'
6616 fi
ce2cded5 6617 ;;
7357c5b6 6618
3725885a 6619cegcc*)
b214d478
SE
6620 # use the weaker test based on 'objdump'. See mingw*.
6621 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6622 lt_cv_file_magic_cmd='$OBJDUMP -f'
6623 ;;
6624
7357c5b6
AM
6625darwin* | rhapsody*)
6626 lt_cv_deplibs_check_method=pass_all
ce2cded5 6627 ;;
7357c5b6
AM
6628
6629freebsd* | dragonfly*)
6630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6631 case $host_cpu in
6632 i*86 )
6633 # Not sure whether the presence of OpenBSD here was a mistake.
6634 # Let's accept both of them until this is cleared up.
6635 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6636 lt_cv_file_magic_cmd=/usr/bin/file
6637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6638 ;;
6639 esac
6640 else
6641 lt_cv_deplibs_check_method=pass_all
6642 fi
ce2cded5 6643 ;;
7357c5b6
AM
6644
6645gnu*)
6646 lt_cv_deplibs_check_method=pass_all
ce2cded5 6647 ;;
7357c5b6 6648
3725885a
RW
6649haiku*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
7357c5b6
AM
6653hpux10.20* | hpux11*)
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 case $host_cpu in
6656 ia64*)
6657 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6658 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6659 ;;
6660 hppa*64*)
3725885a 6661 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
6662 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6663 ;;
6664 *)
3725885a 6665 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6666 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6667 ;;
6668 esac
ce2cded5 6669 ;;
d7040cdb 6670
7357c5b6
AM
6671interix[3-9]*)
6672 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6674 ;;
d7040cdb 6675
7357c5b6
AM
6676irix5* | irix6* | nonstopux*)
6677 case $LD in
6678 *-32|*"-32 ") libmagic=32-bit;;
6679 *-n32|*"-n32 ") libmagic=N32;;
6680 *-64|*"-64 ") libmagic=64-bit;;
6681 *) libmagic=never-match;;
6682 esac
6683 lt_cv_deplibs_check_method=pass_all
6684 ;;
d7040cdb 6685
7357c5b6 6686# This must be Linux ELF.
58e24671 6687linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
d7040cdb 6690
7357c5b6
AM
6691netbsd*)
6692 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6694 else
6695 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6696 fi
ce2cded5 6697 ;;
d7040cdb 6698
7357c5b6
AM
6699newos6*)
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6701 lt_cv_file_magic_cmd=/usr/bin/file
6702 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6703 ;;
d7040cdb 6704
7357c5b6
AM
6705*nto* | *qnx*)
6706 lt_cv_deplibs_check_method=pass_all
6707 ;;
d7040cdb 6708
7357c5b6
AM
6709openbsd*)
6710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6712 else
7357c5b6 6713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6714 fi
7357c5b6 6715 ;;
d7040cdb 6716
7357c5b6
AM
6717osf3* | osf4* | osf5*)
6718 lt_cv_deplibs_check_method=pass_all
6719 ;;
d7040cdb 6720
7357c5b6
AM
6721rdos*)
6722 lt_cv_deplibs_check_method=pass_all
6723 ;;
d7040cdb 6724
7357c5b6
AM
6725solaris*)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
d7040cdb 6728
7357c5b6
AM
6729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6730 lt_cv_deplibs_check_method=pass_all
6731 ;;
d7040cdb 6732
7357c5b6
AM
6733sysv4 | sysv4.3*)
6734 case $host_vendor in
6735 motorola)
6736 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]'
6737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6738 ;;
6739 ncr)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742 sequent)
6743 lt_cv_file_magic_cmd='/bin/file'
6744 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6745 ;;
6746 sni)
6747 lt_cv_file_magic_cmd='/bin/file'
6748 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6749 lt_cv_file_magic_test_file=/lib/libc.so
6750 ;;
6751 siemens)
6752 lt_cv_deplibs_check_method=pass_all
6753 ;;
6754 pc)
6755 lt_cv_deplibs_check_method=pass_all
6756 ;;
6757 esac
6758 ;;
d7040cdb 6759
7357c5b6
AM
6760tpf*)
6761 lt_cv_deplibs_check_method=pass_all
6762 ;;
6763esac
d7040cdb 6764
7357c5b6 6765fi
81ecdfbb
RW
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6767$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6768file_magic_cmd=$lt_cv_file_magic_cmd
6769deplibs_check_method=$lt_cv_deplibs_check_method
6770test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6771
6772
6773
7357c5b6
AM
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783if test -n "$ac_tool_prefix"; then
6784 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6785set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787$as_echo_n "checking for $ac_word... " >&6; }
6788if test "${ac_cv_prog_AR+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
7357c5b6
AM
6790else
6791 if test -n "$AR"; then
6792 ac_cv_prog_AR="$AR" # Let the user override the test.
6793else
6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6801 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6803 break 2
ce2cded5
L
6804 fi
6805done
81ecdfbb
RW
6806 done
6807IFS=$as_save_IFS
d7040cdb 6808
42ecbf5e 6809fi
ce2cded5 6810fi
7357c5b6
AM
6811AR=$ac_cv_prog_AR
6812if test -n "$AR"; then
81ecdfbb
RW
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6814$as_echo "$AR" >&6; }
42ecbf5e 6815else
81ecdfbb
RW
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817$as_echo "no" >&6; }
42ecbf5e
DJ
6818fi
6819
81ecdfbb 6820
7357c5b6
AM
6821fi
6822if test -z "$ac_cv_prog_AR"; then
6823 ac_ct_AR=$AR
6824 # Extract the first word of "ar", so it can be a program name with args.
6825set dummy ar; ac_word=$2
81ecdfbb
RW
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827$as_echo_n "checking for $ac_word... " >&6; }
6828if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6829 $as_echo_n "(cached) " >&6
7357c5b6
AM
6830else
6831 if test -n "$ac_ct_AR"; then
6832 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6833else
6834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6841 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6843 break 2
6844 fi
6845done
81ecdfbb
RW
6846 done
6847IFS=$as_save_IFS
42ecbf5e 6848
7357c5b6
AM
6849fi
6850fi
6851ac_ct_AR=$ac_cv_prog_ac_ct_AR
6852if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6854$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6855else
81ecdfbb
RW
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857$as_echo "no" >&6; }
7357c5b6 6858fi
d7040cdb 6859
81ecdfbb
RW
6860 if test "x$ac_ct_AR" = x; then
6861 AR="false"
6862 else
6863 case $cross_compiling:$ac_tool_warned in
6864yes:)
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6867ac_tool_warned=yes ;;
6868esac
6869 AR=$ac_ct_AR
6870 fi
7357c5b6
AM
6871else
6872 AR="$ac_cv_prog_AR"
6873fi
d7040cdb 6874
7357c5b6
AM
6875test -z "$AR" && AR=ar
6876test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6877
6878
6879
20e95c23 6880
d7040cdb 6881
d7040cdb
SE
6882
6883
6884
6885
6886
6887
7357c5b6
AM
6888if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6890set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892$as_echo_n "checking for $ac_word... " >&6; }
6893if test "${ac_cv_prog_STRIP+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
7357c5b6
AM
6895else
6896 if test -n "$STRIP"; then
6897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6908 break 2
ce2cded5 6909 fi
7357c5b6 6910done
81ecdfbb
RW
6911 done
6912IFS=$as_save_IFS
d7040cdb 6913
7357c5b6
AM
6914fi
6915fi
6916STRIP=$ac_cv_prog_STRIP
6917if test -n "$STRIP"; then
81ecdfbb
RW
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6919$as_echo "$STRIP" >&6; }
7357c5b6 6920else
81ecdfbb
RW
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922$as_echo "no" >&6; }
7357c5b6
AM
6923fi
6924
81ecdfbb 6925
7357c5b6
AM
6926fi
6927if test -z "$ac_cv_prog_STRIP"; then
6928 ac_ct_STRIP=$STRIP
6929 # Extract the first word of "strip", so it can be a program name with args.
6930set dummy strip; ac_word=$2
81ecdfbb
RW
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932$as_echo_n "checking for $ac_word... " >&6; }
6933if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6934 $as_echo_n "(cached) " >&6
7357c5b6
AM
6935else
6936 if test -n "$ac_ct_STRIP"; then
6937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6938else
6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 6946 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6948 break 2
ce2cded5 6949 fi
7357c5b6 6950done
81ecdfbb
RW
6951 done
6952IFS=$as_save_IFS
d7040cdb 6953
7357c5b6
AM
6954fi
6955fi
6956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6957if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6959$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6960else
81ecdfbb
RW
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962$as_echo "no" >&6; }
7357c5b6 6963fi
d7040cdb 6964
81ecdfbb
RW
6965 if test "x$ac_ct_STRIP" = x; then
6966 STRIP=":"
6967 else
6968 case $cross_compiling:$ac_tool_warned in
6969yes:)
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6972ac_tool_warned=yes ;;
6973esac
6974 STRIP=$ac_ct_STRIP
6975 fi
7357c5b6
AM
6976else
6977 STRIP="$ac_cv_prog_STRIP"
6978fi
d7040cdb 6979
7357c5b6 6980test -z "$STRIP" && STRIP=:
d7040cdb 6981
d7040cdb
SE
6982
6983
6984
d7040cdb 6985
7357c5b6
AM
6986
6987if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if test "${ac_cv_prog_RANLIB+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
ce2cded5 6994else
7357c5b6
AM
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
ce2cded5 7000do
7357c5b6
AM
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7007 break 2
ce2cded5 7008 fi
7357c5b6 7009done
81ecdfbb
RW
7010 done
7011IFS=$as_save_IFS
7357c5b6 7012
ce2cded5 7013fi
7357c5b6
AM
7014fi
7015RANLIB=$ac_cv_prog_RANLIB
7016if test -n "$RANLIB"; then
81ecdfbb
RW
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7018$as_echo "$RANLIB" >&6; }
ce2cded5 7019else
81ecdfbb
RW
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
ce2cded5 7022fi
d7040cdb 7023
81ecdfbb 7024
7357c5b6
AM
7025fi
7026if test -z "$ac_cv_prog_RANLIB"; then
7027 ac_ct_RANLIB=$RANLIB
7028 # Extract the first word of "ranlib", so it can be a program name with args.
7029set dummy ranlib; ac_word=$2
81ecdfbb
RW
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
ce2cded5 7034else
7357c5b6
AM
7035 if test -n "$ac_ct_RANLIB"; then
7036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357c5b6 7045 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7047 break 2
7048 fi
7049done
81ecdfbb
RW
7050 done
7051IFS=$as_save_IFS
7357c5b6 7052
ce2cded5 7053fi
7357c5b6
AM
7054fi
7055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7056if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7058$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7059else
81ecdfbb
RW
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
ce2cded5 7062fi
d7040cdb 7063
81ecdfbb
RW
7064 if test "x$ac_ct_RANLIB" = x; then
7065 RANLIB=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073 RANLIB=$ac_ct_RANLIB
7074 fi
7357c5b6
AM
7075else
7076 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7077fi
d7040cdb 7078
7357c5b6 7079test -z "$RANLIB" && RANLIB=:
d7040cdb 7080
7357c5b6
AM
7081
7082
7083
7084
7085
7086# Determine commands to create old-style static archives.
b214d478 7087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7088old_postinstall_cmds='chmod 644 $oldlib'
7089old_postuninstall_cmds=
7090
7091if test -n "$RANLIB"; then
7092 case $host_os in
7093 openbsd*)
7094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7095 ;;
7096 *)
7097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7098 ;;
7099 esac
7100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7101fi
7357c5b6 7102
3725885a
RW
7103case $host_os in
7104 darwin*)
7105 lock_old_archive_extraction=yes ;;
7106 *)
7107 lock_old_archive_extraction=no ;;
7108esac
7109
7110
7111
7112
7113
7114
7357c5b6
AM
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
7144
7145
7146
7147
7148# If no C compiler was specified, use CC.
7149LTCC=${LTCC-"$CC"}
7150
7151# If no C compiler flags were specified, use CFLAGS.
7152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7153
7154# Allow CC to be a program name with arguments.
7155compiler=$CC
7156
7157
7158# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7160$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7161if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
ce2cded5 7163else
d7040cdb 7164
7357c5b6
AM
7165# These are sane defaults that work on at least a few old systems.
7166# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7167
7357c5b6
AM
7168# Character class describing NM global symbol codes.
7169symcode='[BCDEGRST]'
7170
7171# Regexp to match symbols that can be accessed directly from C.
7172sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7173
7174# Define system-specific variables.
7175case $host_os in
7176aix*)
7177 symcode='[BCDT]'
7178 ;;
b214d478 7179cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7180 symcode='[ABCDGISTW]'
7181 ;;
7182hpux*)
7183 if test "$host_cpu" = ia64; then
7184 symcode='[ABCDEGRST]'
ce2cded5 7185 fi
7357c5b6
AM
7186 ;;
7187irix* | nonstopux*)
7188 symcode='[BCDEGRST]'
7189 ;;
7190osf*)
7191 symcode='[BCDEGQRST]'
7192 ;;
7193solaris*)
7194 symcode='[BDRT]'
7195 ;;
7196sco3.2v5*)
7197 symcode='[DT]'
7198 ;;
7199sysv4.2uw2*)
7200 symcode='[DT]'
7201 ;;
7202sysv5* | sco5v6* | unixware* | OpenUNIX*)
7203 symcode='[ABDT]'
7204 ;;
7205sysv4)
7206 symcode='[DFNSTU]'
7207 ;;
7208esac
d7040cdb 7209
7357c5b6
AM
7210# If we're using GNU nm, then use its standard symbol codes.
7211case `$NM -V 2>&1` in
7212*GNU* | *'with BFD'*)
7213 symcode='[ABCDGIRSTW]' ;;
7214esac
d7040cdb 7215
7357c5b6
AM
7216# Transform an extracted symbol line into a proper C declaration.
7217# Some systems (esp. on ia64) link data and code symbols differently,
7218# so use this general approach.
7219lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7220
7221# Transform an extracted symbol line into symbol name and symbol address
7222lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7223lt_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
7224
7225# Handle CRLF in mingw tool chain
7226opt_cr=
7227case $build_os in
7228mingw*)
7229 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7230 ;;
7231esac
d7040cdb 7232
7357c5b6
AM
7233# Try without a prefix underscore, then with it.
7234for ac_symprfx in "" "_"; do
d7040cdb 7235
7357c5b6
AM
7236 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7237 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7238
7357c5b6
AM
7239 # Write the raw and C identifiers.
7240 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7241 # Fake it for dumpbin and say T for any non-static function
7242 # and D for any global variable.
7243 # Also find C++ and __fastcall symbols from MSVC++,
7244 # which start with @ or ?.
7245 lt_cv_sys_global_symbol_pipe="$AWK '"\
7246" {last_section=section; section=\$ 3};"\
7247" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7248" \$ 0!~/External *\|/{next};"\
7249" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7250" {if(hide[section]) next};"\
7251" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7252" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7253" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7254" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7255" ' prfx=^$ac_symprfx"
7256 else
7257 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7258 fi
d7040cdb 7259
7357c5b6
AM
7260 # Check to see that the pipe works correctly.
7261 pipe_works=no
d7040cdb 7262
7357c5b6
AM
7263 rm -f conftest*
7264 cat > conftest.$ac_ext <<_LT_EOF
7265#ifdef __cplusplus
7266extern "C" {
7267#endif
7268char nm_test_var;
7269void nm_test_func(void);
7270void nm_test_func(void){}
7271#ifdef __cplusplus
20e95c23 7272}
7357c5b6
AM
7273#endif
7274int main(){nm_test_var='a';nm_test_func();return(0);}
7275_LT_EOF
7276
81ecdfbb 7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7278 (eval $ac_compile) 2>&5
20e95c23 7279 ac_status=$?
81ecdfbb
RW
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7357c5b6
AM
7282 # Now try to grab the symbols.
7283 nlist=conftest.nm
3725885a
RW
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7286 ac_status=$?
81ecdfbb
RW
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7289 # Try sorting and uniquifying the output.
7290 if sort "$nlist" | uniq > "$nlist"T; then
7291 mv -f "$nlist"T "$nlist"
7292 else
7293 rm -f "$nlist"T
7294 fi
d7040cdb 7295
7357c5b6
AM
7296 # Make sure that we snagged all the symbols we need.
7297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7299 cat <<_LT_EOF > conftest.$ac_ext
7300#ifdef __cplusplus
7301extern "C" {
7302#endif
ce2cded5 7303
7357c5b6
AM
7304_LT_EOF
7305 # Now generate the symbol file.
7306 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7307
7357c5b6 7308 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7309
7357c5b6
AM
7310/* The mapping between symbol names and symbols. */
7311const struct {
7312 const char *name;
7313 void *address;
7314}
7315lt__PROGRAM__LTX_preloaded_symbols[] =
7316{
7317 { "@PROGRAM@", (void *) 0 },
7318_LT_EOF
7319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7320 cat <<\_LT_EOF >> conftest.$ac_ext
7321 {0, (void *) 0}
7322};
d7040cdb 7323
7357c5b6
AM
7324/* This works around a problem in FreeBSD linker */
7325#ifdef FREEBSD_WORKAROUND
7326static const void *lt_preloaded_setup() {
7327 return lt__PROGRAM__LTX_preloaded_symbols;
7328}
ce2cded5 7329#endif
42ecbf5e 7330
7357c5b6 7331#ifdef __cplusplus
ce2cded5 7332}
7357c5b6
AM
7333#endif
7334_LT_EOF
7335 # Now try linking the two files.
7336 mv conftest.$ac_objext conftstm.$ac_objext
7337 lt_save_LIBS="$LIBS"
7338 lt_save_CFLAGS="$CFLAGS"
7339 LIBS="conftstm.$ac_objext"
7340 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7342 (eval $ac_link) 2>&5
7343 ac_status=$?
81ecdfbb
RW
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7346 pipe_works=yes
7347 fi
7348 LIBS="$lt_save_LIBS"
7349 CFLAGS="$lt_save_CFLAGS"
7350 else
7351 echo "cannot find nm_test_func in $nlist" >&5
7352 fi
7353 else
7354 echo "cannot find nm_test_var in $nlist" >&5
7355 fi
7356 else
7357 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7358 fi
7359 else
7360 echo "$progname: failed program was:" >&5
7361 cat conftest.$ac_ext >&5
7362 fi
b214d478 7363 rm -rf conftest* conftst*
7357c5b6
AM
7364
7365 # Do not use the global_symbol_pipe unless it works.
7366 if test "$pipe_works" = yes; then
7367 break
7368 else
7369 lt_cv_sys_global_symbol_pipe=
7370 fi
7371done
42ecbf5e 7372
ce2cded5 7373fi
7357c5b6
AM
7374
7375if test -z "$lt_cv_sys_global_symbol_pipe"; then
7376 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7377fi
7357c5b6 7378if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7380$as_echo "failed" >&6; }
7357c5b6 7381else
81ecdfbb
RW
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7383$as_echo "ok" >&6; }
ce2cded5 7384fi
e5a52504 7385
d7040cdb 7386
e5a52504 7387
d7040cdb 7388
d7040cdb 7389
d7040cdb 7390
d7040cdb 7391
d7040cdb 7392
d7040cdb 7393
d7040cdb 7394
d7040cdb 7395
d7040cdb 7396
7357c5b6
AM
7397
7398
7399
b214d478
SE
7400
7401
7402
7403
7404
7357c5b6
AM
7405
7406
81ecdfbb
RW
7407# Check whether --enable-libtool-lock was given.
7408if test "${enable_libtool_lock+set}" = set; then :
7409 enableval=$enable_libtool_lock;
7410fi
7357c5b6 7411
7357c5b6
AM
7412test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7413
7414# Some flags need to be propagated to the compiler or linker for good
7415# libtool support.
7416case $host in
7417ia64-*-hpux*)
7418 # Find out which ABI we are using.
7419 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7421 (eval $ac_compile) 2>&5
7422 ac_status=$?
81ecdfbb
RW
7423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7424 test $ac_status = 0; }; then
7357c5b6
AM
7425 case `/usr/bin/file conftest.$ac_objext` in
7426 *ELF-32*)
7427 HPUX_IA64_MODE="32"
7428 ;;
7429 *ELF-64*)
7430 HPUX_IA64_MODE="64"
7431 ;;
7432 esac
7433 fi
7434 rm -rf conftest*
7435 ;;
7436*-*-irix6*)
7437 # Find out which ABI we are using.
3725885a 7438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
81ecdfbb
RW
7442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7357c5b6
AM
7444 if test "$lt_cv_prog_gnu_ld" = yes; then
7445 case `/usr/bin/file conftest.$ac_objext` in
7446 *32-bit*)
7447 LD="${LD-ld} -melf32bsmip"
7448 ;;
7449 *N32*)
7450 LD="${LD-ld} -melf32bmipn32"
7451 ;;
7452 *64-bit*)
7453 LD="${LD-ld} -melf64bmip"
7454 ;;
7455 esac
7456 else
7457 case `/usr/bin/file conftest.$ac_objext` in
7458 *32-bit*)
7459 LD="${LD-ld} -32"
7460 ;;
7461 *N32*)
7462 LD="${LD-ld} -n32"
7463 ;;
7464 *64-bit*)
7465 LD="${LD-ld} -64"
7466 ;;
7467 esac
7468 fi
7469 fi
7470 rm -rf conftest*
7471 ;;
7472
cc9afea3 7473x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7474s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7475 # Find out which ABI we are using.
7476 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7478 (eval $ac_compile) 2>&5
7479 ac_status=$?
81ecdfbb
RW
7480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481 test $ac_status = 0; }; then
7357c5b6
AM
7482 case `/usr/bin/file conftest.o` in
7483 *32-bit*)
7484 case $host in
7485 x86_64-*kfreebsd*-gnu)
7486 LD="${LD-ld} -m elf_i386_fbsd"
7487 ;;
7488 x86_64-*linux*)
6d2920c8
L
7489 case `/usr/bin/file conftest.o` in
7490 *x86-64*)
7491 LD="${LD-ld} -m elf32_x86_64"
7492 ;;
7493 *)
7494 LD="${LD-ld} -m elf_i386"
7495 ;;
7496 esac
7357c5b6 7497 ;;
cc9afea3
AM
7498 powerpc64le-*linux*)
7499 LD="${LD-ld} -m elf32lppclinux"
7500 ;;
7501 powerpc64-*linux*)
7357c5b6
AM
7502 LD="${LD-ld} -m elf32ppclinux"
7503 ;;
7504 s390x-*linux*)
7505 LD="${LD-ld} -m elf_s390"
7506 ;;
7507 sparc64-*linux*)
7508 LD="${LD-ld} -m elf32_sparc"
7509 ;;
7510 esac
7511 ;;
7512 *64-bit*)
7513 case $host in
7514 x86_64-*kfreebsd*-gnu)
7515 LD="${LD-ld} -m elf_x86_64_fbsd"
7516 ;;
7517 x86_64-*linux*)
7518 LD="${LD-ld} -m elf_x86_64"
7519 ;;
cc9afea3
AM
7520 powerpcle-*linux*)
7521 LD="${LD-ld} -m elf64lppc"
7522 ;;
7523 powerpc-*linux*)
7357c5b6
AM
7524 LD="${LD-ld} -m elf64ppc"
7525 ;;
7526 s390*-*linux*|s390*-*tpf*)
7527 LD="${LD-ld} -m elf64_s390"
7528 ;;
7529 sparc*-*linux*)
7530 LD="${LD-ld} -m elf64_sparc"
7531 ;;
7532 esac
7533 ;;
7534 esac
7535 fi
7536 rm -rf conftest*
7537 ;;
7538
7539*-*-sco3.2v5*)
7540 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7541 SAVE_CFLAGS="$CFLAGS"
7542 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7544$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7545if test "${lt_cv_cc_needs_belf+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
ce2cded5 7547else
7357c5b6
AM
7548 ac_ext=c
7549ac_cpp='$CPP $CPPFLAGS'
7550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553
81ecdfbb 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7555/* end confdefs.h. */
d7040cdb 7556
7357c5b6
AM
7557int
7558main ()
7559{
7560
7561 ;
7562 return 0;
7563}
ce2cded5 7564_ACEOF
81ecdfbb 7565if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7566 lt_cv_cc_needs_belf=yes
ce2cded5 7567else
81ecdfbb 7568 lt_cv_cc_needs_belf=no
ce2cded5 7569fi
81ecdfbb
RW
7570rm -f core conftest.err conftest.$ac_objext \
7571 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7572 ac_ext=c
7573ac_cpp='$CPP $CPPFLAGS'
7574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7577
b214d478 7578fi
81ecdfbb
RW
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7580$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7583 CFLAGS="$SAVE_CFLAGS"
7584 fi
7585 ;;
7586sparc*-*solaris*)
7587 # Find out which ABI we are using.
7588 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7590 (eval $ac_compile) 2>&5
7591 ac_status=$?
81ecdfbb
RW
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
b214d478
SE
7594 case `/usr/bin/file conftest.o` in
7595 *64-bit*)
7596 case $lt_cv_prog_gnu_ld in
7597 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7598 *)
7599 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7600 LD="${LD-ld} -64"
7601 fi
7602 ;;
7603 esac
7604 ;;
7605 esac
7606 fi
7607 rm -rf conftest*
7608 ;;
7609esac
7610
7611need_locks="$enable_libtool_lock"
7612
7613
7614 case $host_os in
7615 rhapsody* | darwin*)
7616 if test -n "$ac_tool_prefix"; then
7617 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7618set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
b214d478
SE
7623else
7624 if test -n "$DSYMUTIL"; then
7625 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7636 break 2
7637 fi
7638done
81ecdfbb
RW
7639 done
7640IFS=$as_save_IFS
b214d478
SE
7641
7642fi
7643fi
7644DSYMUTIL=$ac_cv_prog_DSYMUTIL
7645if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7647$as_echo "$DSYMUTIL" >&6; }
b214d478 7648else
81ecdfbb
RW
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
b214d478
SE
7651fi
7652
81ecdfbb 7653
b214d478
SE
7654fi
7655if test -z "$ac_cv_prog_DSYMUTIL"; then
7656 ac_ct_DSYMUTIL=$DSYMUTIL
7657 # Extract the first word of "dsymutil", so it can be a program name with args.
7658set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
7661if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7662 $as_echo_n "(cached) " >&6
b214d478
SE
7663else
7664 if test -n "$ac_ct_DSYMUTIL"; then
7665 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7674 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7676 break 2
7677 fi
7678done
81ecdfbb
RW
7679 done
7680IFS=$as_save_IFS
b214d478 7681
b214d478
SE
7682fi
7683fi
7684ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7685if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7687$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7688else
81ecdfbb
RW
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
b214d478
SE
7691fi
7692
81ecdfbb
RW
7693 if test "x$ac_ct_DSYMUTIL" = x; then
7694 DSYMUTIL=":"
7695 else
7696 case $cross_compiling:$ac_tool_warned in
7697yes:)
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700ac_tool_warned=yes ;;
7701esac
7702 DSYMUTIL=$ac_ct_DSYMUTIL
7703 fi
b214d478
SE
7704else
7705 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7706fi
7707
7708 if test -n "$ac_tool_prefix"; then
7709 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7710set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712$as_echo_n "checking for $ac_word... " >&6; }
7713if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7714 $as_echo_n "(cached) " >&6
b214d478
SE
7715else
7716 if test -n "$NMEDIT"; then
7717 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7718else
7719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720for as_dir in $PATH
7721do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7726 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7728 break 2
7729 fi
7730done
81ecdfbb
RW
7731 done
7732IFS=$as_save_IFS
b214d478
SE
7733
7734fi
7735fi
7736NMEDIT=$ac_cv_prog_NMEDIT
7737if test -n "$NMEDIT"; then
81ecdfbb
RW
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7739$as_echo "$NMEDIT" >&6; }
b214d478 7740else
81ecdfbb
RW
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742$as_echo "no" >&6; }
b214d478
SE
7743fi
7744
81ecdfbb 7745
b214d478
SE
7746fi
7747if test -z "$ac_cv_prog_NMEDIT"; then
7748 ac_ct_NMEDIT=$NMEDIT
7749 # Extract the first word of "nmedit", so it can be a program name with args.
7750set dummy nmedit; ac_word=$2
81ecdfbb
RW
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
7753if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
b214d478
SE
7755else
7756 if test -n "$ac_ct_NMEDIT"; then
7757 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7766 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7768 break 2
7769 fi
7770done
81ecdfbb
RW
7771 done
7772IFS=$as_save_IFS
b214d478 7773
b214d478
SE
7774fi
7775fi
7776ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7777if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7779$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7780else
81ecdfbb
RW
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
b214d478
SE
7783fi
7784
81ecdfbb
RW
7785 if test "x$ac_ct_NMEDIT" = x; then
7786 NMEDIT=":"
7787 else
7788 case $cross_compiling:$ac_tool_warned in
7789yes:)
7790{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792ac_tool_warned=yes ;;
7793esac
7794 NMEDIT=$ac_ct_NMEDIT
7795 fi
b214d478
SE
7796else
7797 NMEDIT="$ac_cv_prog_NMEDIT"
7798fi
7799
7800 if test -n "$ac_tool_prefix"; then
7801 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7802set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804$as_echo_n "checking for $ac_word... " >&6; }
7805if test "${ac_cv_prog_LIPO+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
b214d478
SE
7807else
7808 if test -n "$LIPO"; then
7809 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7818 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7820 break 2
7821 fi
7822done
81ecdfbb
RW
7823 done
7824IFS=$as_save_IFS
b214d478
SE
7825
7826fi
7827fi
7828LIPO=$ac_cv_prog_LIPO
7829if test -n "$LIPO"; then
81ecdfbb
RW
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7831$as_echo "$LIPO" >&6; }
b214d478 7832else
81ecdfbb
RW
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834$as_echo "no" >&6; }
b214d478
SE
7835fi
7836
81ecdfbb 7837
b214d478
SE
7838fi
7839if test -z "$ac_cv_prog_LIPO"; then
7840 ac_ct_LIPO=$LIPO
7841 # Extract the first word of "lipo", so it can be a program name with args.
7842set dummy lipo; ac_word=$2
81ecdfbb
RW
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
7845if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
b214d478
SE
7847else
7848 if test -n "$ac_ct_LIPO"; then
7849 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7858 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7860 break 2
7861 fi
7862done
81ecdfbb
RW
7863 done
7864IFS=$as_save_IFS
b214d478 7865
b214d478
SE
7866fi
7867fi
7868ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7869if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7871$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7872else
81ecdfbb
RW
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
b214d478
SE
7875fi
7876
81ecdfbb
RW
7877 if test "x$ac_ct_LIPO" = x; then
7878 LIPO=":"
7879 else
7880 case $cross_compiling:$ac_tool_warned in
7881yes:)
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884ac_tool_warned=yes ;;
7885esac
7886 LIPO=$ac_ct_LIPO
7887 fi
b214d478
SE
7888else
7889 LIPO="$ac_cv_prog_LIPO"
7890fi
7891
7892 if test -n "$ac_tool_prefix"; then
7893 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7894set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896$as_echo_n "checking for $ac_word... " >&6; }
7897if test "${ac_cv_prog_OTOOL+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
b214d478
SE
7899else
7900 if test -n "$OTOOL"; then
7901 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7910 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7912 break 2
7913 fi
7914done
81ecdfbb
RW
7915 done
7916IFS=$as_save_IFS
b214d478
SE
7917
7918fi
7919fi
7920OTOOL=$ac_cv_prog_OTOOL
7921if test -n "$OTOOL"; then
81ecdfbb
RW
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7923$as_echo "$OTOOL" >&6; }
b214d478 7924else
81ecdfbb
RW
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926$as_echo "no" >&6; }
b214d478
SE
7927fi
7928
81ecdfbb 7929
b214d478
SE
7930fi
7931if test -z "$ac_cv_prog_OTOOL"; then
7932 ac_ct_OTOOL=$OTOOL
7933 # Extract the first word of "otool", so it can be a program name with args.
7934set dummy otool; ac_word=$2
81ecdfbb
RW
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
7937if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7938 $as_echo_n "(cached) " >&6
b214d478
SE
7939else
7940 if test -n "$ac_ct_OTOOL"; then
7941 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 7950 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7952 break 2
7953 fi
7954done
81ecdfbb
RW
7955 done
7956IFS=$as_save_IFS
b214d478 7957
b214d478
SE
7958fi
7959fi
7960ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7961if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7963$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7964else
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
b214d478
SE
7967fi
7968
81ecdfbb
RW
7969 if test "x$ac_ct_OTOOL" = x; then
7970 OTOOL=":"
7971 else
7972 case $cross_compiling:$ac_tool_warned in
7973yes:)
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976ac_tool_warned=yes ;;
7977esac
7978 OTOOL=$ac_ct_OTOOL
7979 fi
b214d478
SE
7980else
7981 OTOOL="$ac_cv_prog_OTOOL"
7982fi
7983
7984 if test -n "$ac_tool_prefix"; then
7985 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7986set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988$as_echo_n "checking for $ac_word... " >&6; }
7989if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7990 $as_echo_n "(cached) " >&6
b214d478
SE
7991else
7992 if test -n "$OTOOL64"; then
7993 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8002 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8004 break 2
8005 fi
8006done
81ecdfbb
RW
8007 done
8008IFS=$as_save_IFS
b214d478
SE
8009
8010fi
8011fi
8012OTOOL64=$ac_cv_prog_OTOOL64
8013if test -n "$OTOOL64"; then
81ecdfbb
RW
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8015$as_echo "$OTOOL64" >&6; }
b214d478 8016else
81ecdfbb
RW
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018$as_echo "no" >&6; }
b214d478
SE
8019fi
8020
81ecdfbb 8021
b214d478
SE
8022fi
8023if test -z "$ac_cv_prog_OTOOL64"; then
8024 ac_ct_OTOOL64=$OTOOL64
8025 # Extract the first word of "otool64", so it can be a program name with args.
8026set dummy otool64; ac_word=$2
81ecdfbb
RW
8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028$as_echo_n "checking for $ac_word... " >&6; }
8029if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8030 $as_echo_n "(cached) " >&6
b214d478
SE
8031else
8032 if test -n "$ac_ct_OTOOL64"; then
8033 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8034else
8035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036for as_dir in $PATH
8037do
8038 IFS=$as_save_IFS
8039 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b214d478 8042 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8044 break 2
8045 fi
8046done
81ecdfbb
RW
8047 done
8048IFS=$as_save_IFS
b214d478 8049
b214d478
SE
8050fi
8051fi
8052ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8053if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8055$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8056else
81ecdfbb
RW
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
b214d478
SE
8059fi
8060
81ecdfbb
RW
8061 if test "x$ac_ct_OTOOL64" = x; then
8062 OTOOL64=":"
8063 else
8064 case $cross_compiling:$ac_tool_warned in
8065yes:)
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8068ac_tool_warned=yes ;;
8069esac
8070 OTOOL64=$ac_ct_OTOOL64
8071 fi
b214d478
SE
8072else
8073 OTOOL64="$ac_cv_prog_OTOOL64"
8074fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
81ecdfbb
RW
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8103$as_echo_n "checking for -single_module linker flag... " >&6; }
8104if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
b214d478
SE
8106else
8107 lt_cv_apple_cc_single_mod=no
8108 if test -z "${LT_MULTI_MODULE}"; then
8109 # By default we will add the -single_module flag. You can override
8110 # by either setting the environment variable LT_MULTI_MODULE
8111 # non-empty at configure time, or by adding -multi_module to the
8112 # link flags.
8113 rm -rf libconftest.dylib*
8114 echo "int foo(void){return 1;}" > conftest.c
8115 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8116-dynamiclib -Wl,-single_module conftest.c" >&5
8117 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8118 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8119 _lt_result=$?
8120 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8121 lt_cv_apple_cc_single_mod=yes
8122 else
8123 cat conftest.err >&5
8124 fi
8125 rm -rf libconftest.dylib*
8126 rm -f conftest.*
8127 fi
8128fi
81ecdfbb
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8130$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8132$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8133if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
b214d478
SE
8135else
8136 lt_cv_ld_exported_symbols_list=no
8137 save_LDFLAGS=$LDFLAGS
8138 echo "_main" > conftest.sym
8139 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8141/* end confdefs.h. */
8142
8143int
8144main ()
8145{
8146
8147 ;
8148 return 0;
8149}
8150_ACEOF
81ecdfbb 8151if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8152 lt_cv_ld_exported_symbols_list=yes
8153else
81ecdfbb 8154 lt_cv_ld_exported_symbols_list=no
b214d478 8155fi
81ecdfbb
RW
8156rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8158 LDFLAGS="$save_LDFLAGS"
8159
8160fi
81ecdfbb
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8162$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8164$as_echo_n "checking for -force_load linker flag... " >&6; }
8165if test "${lt_cv_ld_force_load+set}" = set; then :
8166 $as_echo_n "(cached) " >&6
8167else
8168 lt_cv_ld_force_load=no
8169 cat > conftest.c << _LT_EOF
8170int forced_loaded() { return 2;}
8171_LT_EOF
8172 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8173 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8174 echo "$AR cru libconftest.a conftest.o" >&5
8175 $AR cru libconftest.a conftest.o 2>&5
8176 cat > conftest.c << _LT_EOF
8177int main() { return 0;}
8178_LT_EOF
8179 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8180 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8181 _lt_result=$?
8182 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8183 lt_cv_ld_force_load=yes
8184 else
8185 cat conftest.err >&5
8186 fi
8187 rm -f conftest.err libconftest.a conftest conftest.c
8188 rm -rf conftest.dSYM
8189
8190fi
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8192$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8193 case $host_os in
8194 rhapsody* | darwin1.[012])
8195 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8196 darwin1.*)
8197 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8198 darwin*) # darwin 5.x on
8199 # if running on 10.5 or later, the deployment target defaults
8200 # to the OS version, if on x86, and 10.4, the deployment
8201 # target defaults to 10.4. Don't you love it?
8202 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8203 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8205 10.[012][,.]*)
b214d478
SE
8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8207 10.*)
8208 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8209 esac
8210 ;;
8211 esac
8212 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8213 _lt_dar_single_mod='$single_module'
8214 fi
8215 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8216 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8217 else
8218 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8219 fi
3725885a 8220 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8221 _lt_dsymutil='~$DSYMUTIL $lib || :'
8222 else
8223 _lt_dsymutil=
8224 fi
8225 ;;
8226 esac
8227
b214d478 8228for ac_header in dlfcn.h
81ecdfbb
RW
8229do :
8230 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8231"
8232if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
b214d478 8233 cat >>confdefs.h <<_ACEOF
81ecdfbb 8234#define HAVE_DLFCN_H 1
b214d478
SE
8235_ACEOF
8236
8237fi
8238
8239done
8240
8241
8242
3725885a
RW
8243
8244
3cb62297 8245
b214d478
SE
8246# Set options
8247
8248
8249
8250 enable_dlopen=no
8251
8252
8253 enable_win32_dll=no
8254
8255
81ecdfbb
RW
8256 # Check whether --enable-shared was given.
8257if test "${enable_shared+set}" = set; then :
8258 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8259 case $enableval in
8260 yes) enable_shared=yes ;;
8261 no) enable_shared=no ;;
8262 *)
8263 enable_shared=no
8264 # Look at the argument we got. We use all the common list separators.
8265 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266 for pkg in $enableval; do
8267 IFS="$lt_save_ifs"
8268 if test "X$pkg" = "X$p"; then
8269 enable_shared=yes
8270 fi
8271 done
8272 IFS="$lt_save_ifs"
8273 ;;
8274 esac
8275else
8276 enable_shared=yes
81ecdfbb 8277fi
b214d478
SE
8278
8279
8280
8281
8282
8283
8284
8285
81ecdfbb
RW
8286
8287 # Check whether --enable-static was given.
8288if test "${enable_static+set}" = set; then :
8289 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8290 case $enableval in
8291 yes) enable_static=yes ;;
8292 no) enable_static=no ;;
8293 *)
8294 enable_static=no
8295 # Look at the argument we got. We use all the common list separators.
8296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8297 for pkg in $enableval; do
8298 IFS="$lt_save_ifs"
8299 if test "X$pkg" = "X$p"; then
8300 enable_static=yes
8301 fi
8302 done
8303 IFS="$lt_save_ifs"
8304 ;;
8305 esac
8306else
8307 enable_static=yes
81ecdfbb 8308fi
b214d478
SE
8309
8310
8311
8312
8313
8314
8315
8316
8317
81ecdfbb
RW
8318
8319# Check whether --with-pic was given.
8320if test "${with_pic+set}" = set; then :
8321 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8322else
8323 pic_mode=default
81ecdfbb
RW
8324fi
8325
b214d478
SE
8326
8327test -z "$pic_mode" && pic_mode=default
8328
8329
8330
8331
8332
8333
8334
81ecdfbb
RW
8335 # Check whether --enable-fast-install was given.
8336if test "${enable_fast_install+set}" = set; then :
8337 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8338 case $enableval in
8339 yes) enable_fast_install=yes ;;
8340 no) enable_fast_install=no ;;
8341 *)
8342 enable_fast_install=no
8343 # Look at the argument we got. We use all the common list separators.
8344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8345 for pkg in $enableval; do
8346 IFS="$lt_save_ifs"
8347 if test "X$pkg" = "X$p"; then
8348 enable_fast_install=yes
8349 fi
8350 done
8351 IFS="$lt_save_ifs"
7357c5b6
AM
8352 ;;
8353 esac
b214d478
SE
8354else
8355 enable_fast_install=yes
81ecdfbb
RW
8356fi
8357
ce2cded5 8358
ce2cded5
L
8359
8360
ce2cded5 8361
42ecbf5e 8362
d7040cdb 8363
d7040cdb 8364
d7040cdb 8365
d7040cdb 8366
d7040cdb 8367
ce2cded5
L
8368# This can be used to rebuild libtool when needed
8369LIBTOOL_DEPS="$ltmain"
d7040cdb 8370
ce2cded5
L
8371# Always use our own libtool.
8372LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8373
d7040cdb 8374
d7040cdb 8375
d7040cdb 8376
d7040cdb 8377
d7040cdb 8378
d7040cdb 8379
d7040cdb 8380
d7040cdb 8381
d7040cdb 8382
d7040cdb 8383
d7040cdb 8384
d7040cdb 8385
d7040cdb 8386
d7040cdb 8387
d7040cdb 8388
d7040cdb
SE
8389
8390
8391
8392
8393
8394
8395
3725885a 8396
d7040cdb
SE
8397
8398
ce2cded5 8399test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8400
8401
8402
8403
8404
8405
d7040cdb
SE
8406
8407
8408
8409
8410
8411
8412
8413
ce2cded5
L
8414if test -n "${ZSH_VERSION+set}" ; then
8415 setopt NO_GLOB_SUBST
8416fi
d7040cdb 8417
81ecdfbb
RW
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8419$as_echo_n "checking for objdir... " >&6; }
8420if test "${lt_cv_objdir+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
ce2cded5
L
8422else
8423 rm -f .libs 2>/dev/null
8424mkdir .libs 2>/dev/null
8425if test -d .libs; then
8426 lt_cv_objdir=.libs
8427else
8428 # MS-DOS does not allow filenames that begin with a dot.
8429 lt_cv_objdir=_libs
8430fi
8431rmdir .libs 2>/dev/null
8432fi
81ecdfbb
RW
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8434$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8435objdir=$lt_cv_objdir
d7040cdb
SE
8436
8437
8438
8439
8440
ce2cded5
L
8441cat >>confdefs.h <<_ACEOF
8442#define LT_OBJDIR "$lt_cv_objdir/"
8443_ACEOF
d7040cdb
SE
8444
8445
8446
8447
ce2cded5
L
8448case $host_os in
8449aix3*)
8450 # AIX sometimes has problems with the GCC collect2 program. For some
8451 # reason, if we set the COLLECT_NAMES environment variable, the problems
8452 # vanish in a puff of smoke.
8453 if test "X${COLLECT_NAMES+set}" != Xset; then
8454 COLLECT_NAMES=
8455 export COLLECT_NAMES
8456 fi
8457 ;;
8458esac
d7040cdb 8459
ce2cded5
L
8460# Global variables:
8461ofile=libtool
8462can_build_shared=yes
d7040cdb 8463
ce2cded5
L
8464# All known linkers require a `.a' archive for static linking (except MSVC,
8465# which needs '.lib').
8466libext=a
d7040cdb 8467
ce2cded5 8468with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8469
ce2cded5
L
8470old_CC="$CC"
8471old_CFLAGS="$CFLAGS"
d7040cdb 8472
ce2cded5
L
8473# Set sane defaults for various variables
8474test -z "$CC" && CC=cc
8475test -z "$LTCC" && LTCC=$CC
8476test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8477test -z "$LD" && LD=ld
8478test -z "$ac_objext" && ac_objext=o
d7040cdb 8479
ce2cded5
L
8480for cc_temp in $compiler""; do
8481 case $cc_temp in
8482 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8483 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8484 \-*) ;;
8485 *) break;;
8486 esac
8487done
3725885a 8488cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8489
8490
ce2cded5
L
8491# Only perform the check for file, if the check method requires it
8492test -z "$MAGIC_CMD" && MAGIC_CMD=file
8493case $deplibs_check_method in
8494file_magic*)
8495 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8497$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8498if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
ce2cded5
L
8500else
8501 case $MAGIC_CMD in
8502[\\/*] | ?:[\\/]*)
8503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8504 ;;
8505*)
8506 lt_save_MAGIC_CMD="$MAGIC_CMD"
8507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8508 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8509 for ac_dir in $ac_dummy; do
8510 IFS="$lt_save_ifs"
8511 test -z "$ac_dir" && ac_dir=.
8512 if test -f $ac_dir/${ac_tool_prefix}file; then
8513 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8514 if test -n "$file_magic_test_file"; then
8515 case $deplibs_check_method in
8516 "file_magic "*)
8517 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8520 $EGREP "$file_magic_regex" > /dev/null; then
8521 :
8522 else
8523 cat <<_LT_EOF 1>&2
d7040cdb 8524
ce2cded5
L
8525*** Warning: the command libtool uses to detect shared libraries,
8526*** $file_magic_cmd, produces output that libtool cannot recognize.
8527*** The result is that libtool may fail to recognize shared libraries
8528*** as such. This will affect the creation of libtool libraries that
8529*** depend on shared libraries, but programs linked with such libtool
8530*** libraries will work regardless of this problem. Nevertheless, you
8531*** may want to report the problem to your system manager and/or to
8532*** bug-libtool@gnu.org
d7040cdb 8533
ce2cded5
L
8534_LT_EOF
8535 fi ;;
8536 esac
8537 fi
8538 break
8539 fi
8540 done
8541 IFS="$lt_save_ifs"
8542 MAGIC_CMD="$lt_save_MAGIC_CMD"
8543 ;;
8544esac
8545fi
d7040cdb 8546
ce2cded5
L
8547MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8548if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8550$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8551else
81ecdfbb
RW
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553$as_echo "no" >&6; }
ce2cded5 8554fi
d7040cdb
SE
8555
8556
8557
8558
8559
ce2cded5
L
8560if test -z "$lt_cv_path_MAGIC_CMD"; then
8561 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8563$as_echo_n "checking for file... " >&6; }
8564if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8565 $as_echo_n "(cached) " >&6
ce2cded5
L
8566else
8567 case $MAGIC_CMD in
8568[\\/*] | ?:[\\/]*)
8569 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8570 ;;
8571*)
8572 lt_save_MAGIC_CMD="$MAGIC_CMD"
8573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8574 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8575 for ac_dir in $ac_dummy; do
8576 IFS="$lt_save_ifs"
8577 test -z "$ac_dir" && ac_dir=.
8578 if test -f $ac_dir/file; then
8579 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8580 if test -n "$file_magic_test_file"; then
8581 case $deplibs_check_method in
8582 "file_magic "*)
8583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8586 $EGREP "$file_magic_regex" > /dev/null; then
8587 :
8588 else
8589 cat <<_LT_EOF 1>&2
d7040cdb 8590
ce2cded5
L
8591*** Warning: the command libtool uses to detect shared libraries,
8592*** $file_magic_cmd, produces output that libtool cannot recognize.
8593*** The result is that libtool may fail to recognize shared libraries
8594*** as such. This will affect the creation of libtool libraries that
8595*** depend on shared libraries, but programs linked with such libtool
8596*** libraries will work regardless of this problem. Nevertheless, you
8597*** may want to report the problem to your system manager and/or to
8598*** bug-libtool@gnu.org
d7040cdb 8599
ce2cded5
L
8600_LT_EOF
8601 fi ;;
8602 esac
8603 fi
8604 break
8605 fi
8606 done
8607 IFS="$lt_save_ifs"
8608 MAGIC_CMD="$lt_save_MAGIC_CMD"
8609 ;;
8610esac
8611fi
d7040cdb 8612
ce2cded5
L
8613MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8616$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8617else
81ecdfbb
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619$as_echo "no" >&6; }
ce2cded5 8620fi
d7040cdb
SE
8621
8622
ce2cded5
L
8623 else
8624 MAGIC_CMD=:
8625 fi
8626fi
d7040cdb 8627
ce2cded5
L
8628 fi
8629 ;;
8630esac
d7040cdb 8631
ce2cded5 8632# Use C for the default configuration in the libtool script
d7040cdb 8633
ce2cded5
L
8634lt_save_CC="$CC"
8635ac_ext=c
8636ac_cpp='$CPP $CPPFLAGS'
8637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8639ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8640
8641
ce2cded5
L
8642# Source file extension for C test sources.
8643ac_ext=c
d7040cdb 8644
ce2cded5
L
8645# Object file extension for compiled C test sources.
8646objext=o
8647objext=$objext
d7040cdb 8648
ce2cded5
L
8649# Code to be used in simple compile tests
8650lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8651
ce2cded5
L
8652# Code to be used in simple link tests
8653lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8654
8655
8656
8657
8658
8659
8660
ce2cded5
L
8661# If no C compiler was specified, use CC.
8662LTCC=${LTCC-"$CC"}
d7040cdb 8663
ce2cded5
L
8664# If no C compiler flags were specified, use CFLAGS.
8665LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8666
ce2cded5
L
8667# Allow CC to be a program name with arguments.
8668compiler=$CC
d7040cdb 8669
ce2cded5
L
8670# Save the default compiler, since it gets overwritten when the other
8671# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8672compiler_DEFAULT=$CC
d7040cdb 8673
ce2cded5
L
8674# save warnings/boilerplate of simple test code
8675ac_outfile=conftest.$ac_objext
8676echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8677eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8678_lt_compiler_boilerplate=`cat conftest.err`
8679$RM conftest*
d7040cdb 8680
ce2cded5
L
8681ac_outfile=conftest.$ac_objext
8682echo "$lt_simple_link_test_code" >conftest.$ac_ext
8683eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8684_lt_linker_boilerplate=`cat conftest.err`
b214d478 8685$RM -r conftest*
d7040cdb
SE
8686
8687
ce2cded5
L
8688## CAVEAT EMPTOR:
8689## There is no encapsulation within the following macros, do not change
8690## the running order or otherwise move them around unless you know exactly
8691## what you are doing...
8692if test -n "$compiler"; then
d7040cdb 8693
ce2cded5 8694lt_prog_compiler_no_builtin_flag=
d7040cdb 8695
ce2cded5 8696if test "$GCC" = yes; then
3725885a
RW
8697 case $cc_basename in
8698 nvcc*)
8699 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8700 *)
8701 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8702 esac
d7040cdb 8703
81ecdfbb
RW
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8706if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8707 $as_echo_n "(cached) " >&6
ce2cded5
L
8708else
8709 lt_cv_prog_compiler_rtti_exceptions=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="-fno-rtti -fno-exceptions"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
3725885a 8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8723 (eval "$lt_compile" 2>conftest.err)
8724 ac_status=$?
8725 cat conftest.err >&5
3725885a 8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
3725885a 8730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_rtti_exceptions=yes
8734 fi
8735 fi
8736 $RM conftest*
d7040cdb 8737
ce2cded5 8738fi
81ecdfbb
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8741
ce2cded5
L
8742if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8744else
8745 :
8746fi
d7040cdb 8747
ce2cded5 8748fi
d7040cdb
SE
8749
8750
8751
8752
8753
8754
ce2cded5
L
8755 lt_prog_compiler_wl=
8756lt_prog_compiler_pic=
8757lt_prog_compiler_static=
d7040cdb 8758
81ecdfbb
RW
8759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8760$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8761
ce2cded5
L
8762 if test "$GCC" = yes; then
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_static='-static'
d7040cdb 8765
ce2cded5
L
8766 case $host_os in
8767 aix*)
8768 # All AIX code is PIC.
8769 if test "$host_cpu" = ia64; then
8770 # AIX 5 now supports IA64 processor
8771 lt_prog_compiler_static='-Bstatic'
8772 fi
52204357 8773 lt_prog_compiler_pic='-fPIC'
ce2cded5 8774 ;;
d7040cdb 8775
ce2cded5 8776 amigaos*)
b214d478
SE
8777 case $host_cpu in
8778 powerpc)
8779 # see comment about AmigaOS4 .so support
8780 lt_prog_compiler_pic='-fPIC'
8781 ;;
8782 m68k)
8783 # FIXME: we need at least 68020 code to build shared libraries, but
8784 # adding the `-m68020' flag to GCC prevents building anything better,
8785 # like `-m68040'.
8786 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8787 ;;
8788 esac
ce2cded5 8789 ;;
d7040cdb 8790
ce2cded5
L
8791 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8792 # PIC is the default for these OSes.
8793 ;;
d7040cdb 8794
b214d478 8795 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8796 # This hack is so that the source file can tell whether it is being
8797 # built for inclusion in a dll (and should export symbols for example).
8798 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8799 # (--disable-auto-import) libraries
8800 lt_prog_compiler_pic='-DDLL_EXPORT'
8801 ;;
d7040cdb 8802
ce2cded5
L
8803 darwin* | rhapsody*)
8804 # PIC is the default on this platform
8805 # Common symbols not allowed in MH_DYLIB files
8806 lt_prog_compiler_pic='-fno-common'
8807 ;;
d7040cdb 8808
3725885a
RW
8809 haiku*)
8810 # PIC is the default for Haiku.
8811 # The "-static" flag exists, but is broken.
8812 lt_prog_compiler_static=
8813 ;;
8814
ce2cded5 8815 hpux*)
b214d478
SE
8816 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8817 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8818 # sets the default TLS model and affects inlining.
ce2cded5 8819 case $host_cpu in
b214d478 8820 hppa*64*)
ce2cded5
L
8821 # +Z the default
8822 ;;
8823 *)
8824 lt_prog_compiler_pic='-fPIC'
8825 ;;
8826 esac
8827 ;;
d7040cdb 8828
ce2cded5
L
8829 interix[3-9]*)
8830 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8831 # Instead, we relocate shared libraries at runtime.
8832 ;;
d7040cdb 8833
ce2cded5
L
8834 msdosdjgpp*)
8835 # Just because we use GCC doesn't mean we suddenly get shared libraries
8836 # on systems that don't support them.
8837 lt_prog_compiler_can_build_shared=no
8838 enable_shared=no
8839 ;;
d7040cdb 8840
ce2cded5
L
8841 *nto* | *qnx*)
8842 # QNX uses GNU C++, but need to define -shared option too, otherwise
8843 # it will coredump.
8844 lt_prog_compiler_pic='-fPIC -shared'
8845 ;;
d7040cdb 8846
ce2cded5
L
8847 sysv4*MP*)
8848 if test -d /usr/nec; then
8849 lt_prog_compiler_pic=-Kconform_pic
8850 fi
8851 ;;
d7040cdb 8852
ce2cded5
L
8853 *)
8854 lt_prog_compiler_pic='-fPIC'
8855 ;;
8856 esac
3725885a
RW
8857
8858 case $cc_basename in
8859 nvcc*) # Cuda Compiler Driver 2.2
8860 lt_prog_compiler_wl='-Xlinker '
8861 lt_prog_compiler_pic='-Xcompiler -fPIC'
8862 ;;
8863 esac
ce2cded5
L
8864 else
8865 # PORTME Check for flag to pass linker flags through the system compiler.
8866 case $host_os in
8867 aix*)
8868 lt_prog_compiler_wl='-Wl,'
8869 if test "$host_cpu" = ia64; then
8870 # AIX 5 now supports IA64 processor
8871 lt_prog_compiler_static='-Bstatic'
8872 else
8873 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8874 fi
8875 ;;
d7040cdb 8876
b214d478 8877 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8878 # This hack is so that the source file can tell whether it is being
8879 # built for inclusion in a dll (and should export symbols for example).
8880 lt_prog_compiler_pic='-DDLL_EXPORT'
8881 ;;
d7040cdb 8882
ce2cded5
L
8883 hpux9* | hpux10* | hpux11*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8886 # not for PA HP-UX.
8887 case $host_cpu in
8888 hppa*64*|ia64*)
8889 # +Z the default
8890 ;;
8891 *)
8892 lt_prog_compiler_pic='+Z'
8893 ;;
8894 esac
8895 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8896 lt_prog_compiler_static='${wl}-a ${wl}archive'
8897 ;;
d7040cdb 8898
ce2cded5
L
8899 irix5* | irix6* | nonstopux*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # PIC (with -KPIC) is the default.
8902 lt_prog_compiler_static='-non_shared'
8903 ;;
d7040cdb 8904
58e24671 8905 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8906 case $cc_basename in
b214d478
SE
8907 # old Intel for x86_64 which still supported -KPIC.
8908 ecc*)
ce2cded5
L
8909 lt_prog_compiler_wl='-Wl,'
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-static'
8912 ;;
b214d478
SE
8913 # icc used to be incompatible with GCC.
8914 # ICC 10 doesn't accept -KPIC any more.
8915 icc* | ifort*)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_pic='-fPIC'
8918 lt_prog_compiler_static='-static'
8919 ;;
8920 # Lahey Fortran 8.1.
8921 lf95*)
8922 lt_prog_compiler_wl='-Wl,'
8923 lt_prog_compiler_pic='--shared'
8924 lt_prog_compiler_static='--static'
8925 ;;
3725885a 8926 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8927 # Portland Group compilers (*not* the Pentium gcc compiler,
8928 # which looks to be a dead project)
8929 lt_prog_compiler_wl='-Wl,'
8930 lt_prog_compiler_pic='-fpic'
8931 lt_prog_compiler_static='-Bstatic'
8932 ;;
8933 ccc*)
8934 lt_prog_compiler_wl='-Wl,'
8935 # All Alpha code is PIC.
8936 lt_prog_compiler_static='-non_shared'
8937 ;;
3725885a
RW
8938 xl* | bgxl* | bgf* | mpixl*)
8939 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-qpic'
8942 lt_prog_compiler_static='-qstaticlink'
8943 ;;
ce2cded5
L
8944 *)
8945 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8946 *Sun\ F* | *Sun*Fortran*)
8947 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8948 lt_prog_compiler_pic='-KPIC'
8949 lt_prog_compiler_static='-Bstatic'
3725885a 8950 lt_prog_compiler_wl=''
ce2cded5 8951 ;;
3725885a
RW
8952 *Sun\ C*)
8953 # Sun C 5.9
ce2cded5
L
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
3725885a 8956 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8957 ;;
8958 esac
8959 ;;
8960 esac
8961 ;;
d7040cdb 8962
ce2cded5
L
8963 newsos6)
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 ;;
d7040cdb 8967
ce2cded5
L
8968 *nto* | *qnx*)
8969 # QNX uses GNU C++, but need to define -shared option too, otherwise
8970 # it will coredump.
8971 lt_prog_compiler_pic='-fPIC -shared'
8972 ;;
d7040cdb 8973
ce2cded5
L
8974 osf3* | osf4* | osf5*)
8975 lt_prog_compiler_wl='-Wl,'
8976 # All OSF/1 code is PIC.
8977 lt_prog_compiler_static='-non_shared'
8978 ;;
d7040cdb 8979
ce2cded5
L
8980 rdos*)
8981 lt_prog_compiler_static='-non_shared'
8982 ;;
d7040cdb 8983
ce2cded5
L
8984 solaris*)
8985 lt_prog_compiler_pic='-KPIC'
8986 lt_prog_compiler_static='-Bstatic'
8987 case $cc_basename in
8988 f77* | f90* | f95*)
8989 lt_prog_compiler_wl='-Qoption ld ';;
8990 *)
8991 lt_prog_compiler_wl='-Wl,';;
8992 esac
8993 ;;
d7040cdb 8994
ce2cded5
L
8995 sunos4*)
8996 lt_prog_compiler_wl='-Qoption ld '
8997 lt_prog_compiler_pic='-PIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 ;;
d7040cdb 9000
ce2cded5
L
9001 sysv4 | sysv4.2uw2* | sysv4.3*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 ;;
d7040cdb 9006
ce2cded5
L
9007 sysv4*MP*)
9008 if test -d /usr/nec ;then
9009 lt_prog_compiler_pic='-Kconform_pic'
9010 lt_prog_compiler_static='-Bstatic'
9011 fi
9012 ;;
d7040cdb 9013
ce2cded5
L
9014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9015 lt_prog_compiler_wl='-Wl,'
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 ;;
d7040cdb 9019
ce2cded5
L
9020 unicos*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_can_build_shared=no
9023 ;;
d7040cdb 9024
ce2cded5
L
9025 uts4*)
9026 lt_prog_compiler_pic='-pic'
9027 lt_prog_compiler_static='-Bstatic'
9028 ;;
d7040cdb 9029
ce2cded5
L
9030 *)
9031 lt_prog_compiler_can_build_shared=no
9032 ;;
9033 esac
9034 fi
d7040cdb 9035
ce2cded5
L
9036case $host_os in
9037 # For platforms which do not support PIC, -DPIC is meaningless:
9038 *djgpp*)
9039 lt_prog_compiler_pic=
9040 ;;
9041 *)
9042 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9043 ;;
9044esac
81ecdfbb
RW
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9046$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9047
9048
9049
9050
9051
9052
ce2cded5
L
9053#
9054# Check to make sure the PIC flag actually works.
9055#
9056if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9058$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9059if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
ce2cded5 9061else
b214d478 9062 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9063 ac_outfile=conftest.$ac_objext
9064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 # The option is referenced via a variable to avoid confusing sed.
9071 lt_compile=`echo "$ac_compile" | $SED \
9072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9073 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9074 -e 's:$: $lt_compiler_flag:'`
3725885a 9075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9076 (eval "$lt_compile" 2>conftest.err)
9077 ac_status=$?
9078 cat conftest.err >&5
3725885a 9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9080 if (exit $ac_status) && test -s "$ac_outfile"; then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings other than the usual output.
3725885a 9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9084 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9086 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9087 fi
9088 fi
9089 $RM conftest*
d7040cdb 9090
ce2cded5 9091fi
81ecdfbb
RW
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9093$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9094
b214d478 9095if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9096 case $lt_prog_compiler_pic in
9097 "" | " "*) ;;
9098 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9099 esac
9100else
9101 lt_prog_compiler_pic=
9102 lt_prog_compiler_can_build_shared=no
9103fi
9104
9105fi
d7040cdb
SE
9106
9107
9108
9109
9110
9111
ce2cded5
L
9112#
9113# Check to make sure the static flag actually works.
9114#
9115wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9117$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9118if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9119 $as_echo_n "(cached) " >&6
ce2cded5 9120else
b214d478 9121 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9122 save_LDFLAGS="$LDFLAGS"
9123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9124 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9126 # The linker can only warn and ignore the option if not recognized
9127 # So say no if there are warnings
9128 if test -s conftest.err; then
9129 # Append any errors to the config.log.
9130 cat conftest.err 1>&5
3725885a 9131 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9133 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9134 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9135 fi
9136 else
b214d478 9137 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9138 fi
9139 fi
b214d478 9140 $RM -r conftest*
ce2cded5 9141 LDFLAGS="$save_LDFLAGS"
d7040cdb 9142
ce2cded5 9143fi
81ecdfbb
RW
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9145$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9146
b214d478 9147if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9148 :
9149else
9150 lt_prog_compiler_static=
9151fi
d7040cdb
SE
9152
9153
9154
9155
9156
9157
9158
81ecdfbb
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9160$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9161if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
ce2cded5
L
9163else
9164 lt_cv_prog_compiler_c_o=no
9165 $RM -r conftest 2>/dev/null
9166 mkdir conftest
9167 cd conftest
9168 mkdir out
9169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9170
ce2cded5
L
9171 lt_compiler_flag="-o out/conftest2.$ac_objext"
9172 # Insert the option either (1) after the last *FLAGS variable, or
9173 # (2) before a word containing "conftest.", or (3) at the end.
9174 # Note that $ac_compile itself does not contain backslashes and begins
9175 # with a dollar sign (not a hyphen), so the echo should work correctly.
9176 lt_compile=`echo "$ac_compile" | $SED \
9177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9179 -e 's:$: $lt_compiler_flag:'`
3725885a 9180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9181 (eval "$lt_compile" 2>out/conftest.err)
9182 ac_status=$?
9183 cat out/conftest.err >&5
3725885a 9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9185 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9186 then
9187 # The compiler can only warn and ignore the option if not recognized
9188 # So say no if there are warnings
3725885a 9189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9192 lt_cv_prog_compiler_c_o=yes
9193 fi
9194 fi
9195 chmod u+w . 2>&5
9196 $RM conftest*
9197 # SGI C++ compiler will create directory out/ii_files/ for
9198 # template instantiation
9199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9200 $RM out/* && rmdir out
9201 cd ..
9202 $RM -r conftest
9203 $RM conftest*
d7040cdb 9204
ce2cded5 9205fi
81ecdfbb
RW
9206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9207$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9208
9209
9210
9211
9212
9213
81ecdfbb
RW
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9215$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9216if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9217 $as_echo_n "(cached) " >&6
ce2cded5
L
9218else
9219 lt_cv_prog_compiler_c_o=no
9220 $RM -r conftest 2>/dev/null
9221 mkdir conftest
9222 cd conftest
9223 mkdir out
9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9225
ce2cded5
L
9226 lt_compiler_flag="-o out/conftest2.$ac_objext"
9227 # Insert the option either (1) after the last *FLAGS variable, or
9228 # (2) before a word containing "conftest.", or (3) at the end.
9229 # Note that $ac_compile itself does not contain backslashes and begins
9230 # with a dollar sign (not a hyphen), so the echo should work correctly.
9231 lt_compile=`echo "$ac_compile" | $SED \
9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9234 -e 's:$: $lt_compiler_flag:'`
3725885a 9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9236 (eval "$lt_compile" 2>out/conftest.err)
9237 ac_status=$?
9238 cat out/conftest.err >&5
3725885a 9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9241 then
9242 # The compiler can only warn and ignore the option if not recognized
9243 # So say no if there are warnings
3725885a 9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9247 lt_cv_prog_compiler_c_o=yes
9248 fi
9249 fi
9250 chmod u+w . 2>&5
9251 $RM conftest*
9252 # SGI C++ compiler will create directory out/ii_files/ for
9253 # template instantiation
9254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9255 $RM out/* && rmdir out
9256 cd ..
9257 $RM -r conftest
9258 $RM conftest*
9259
9260fi
81ecdfbb
RW
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9262$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9263
9264
9265
9266
9267hard_links="nottested"
9268if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9269 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9271$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9272 hard_links=yes
9273 $RM conftest*
9274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9275 touch conftest.a
9276 ln conftest.a conftest.b 2>&5 || hard_links=no
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9279$as_echo "$hard_links" >&6; }
ce2cded5 9280 if test "$hard_links" = no; then
81ecdfbb
RW
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9282$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9283 need_locks=warn
d7040cdb 9284 fi
d7040cdb 9285else
ce2cded5 9286 need_locks=no
d7040cdb 9287fi
d7040cdb 9288
d7040cdb 9289
d7040cdb 9290
d7040cdb 9291
d7040cdb 9292
d7040cdb 9293
81ecdfbb
RW
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9295$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9296
ce2cded5
L
9297 runpath_var=
9298 allow_undefined_flag=
9299 always_export_symbols=no
9300 archive_cmds=
9301 archive_expsym_cmds=
9302 compiler_needs_object=no
9303 enable_shared_with_static_runtimes=no
9304 export_dynamic_flag_spec=
9305 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9306 hardcode_automatic=no
9307 hardcode_direct=no
9308 hardcode_direct_absolute=no
9309 hardcode_libdir_flag_spec=
9310 hardcode_libdir_flag_spec_ld=
9311 hardcode_libdir_separator=
9312 hardcode_minus_L=no
9313 hardcode_shlibpath_var=unsupported
9314 inherit_rpath=no
9315 link_all_deplibs=unknown
9316 module_cmds=
9317 module_expsym_cmds=
9318 old_archive_from_new_cmds=
9319 old_archive_from_expsyms_cmds=
9320 thread_safe_flag_spec=
9321 whole_archive_flag_spec=
9322 # include_expsyms should be a list of space-separated symbols to be *always*
9323 # included in the symbol list
9324 include_expsyms=
9325 # exclude_expsyms can be an extended regexp of symbols to exclude
9326 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9327 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9328 # as well as any symbol that contains `d'.
b214d478 9329 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9330 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9331 # platforms (ab)use it in PIC code, but their linkers get confused if
9332 # the symbol is explicitly referenced. Since portable code cannot
9333 # rely on this symbol name, it's probably fine to never include it in
9334 # preloaded symbol tables.
b214d478 9335 # Exclude shared library initialization/finalization symbols.
ce2cded5 9336 extract_expsyms_cmds=
d7040cdb 9337
ce2cded5 9338 case $host_os in
b214d478 9339 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9340 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9341 # When not using gcc, we currently assume that we are using
9342 # Microsoft Visual C++.
9343 if test "$GCC" != yes; then
9344 with_gnu_ld=no
9345 fi
d7040cdb 9346 ;;
ce2cded5
L
9347 interix*)
9348 # we just hope/assume this is gcc and not c89 (= MSVC++)
9349 with_gnu_ld=yes
9350 ;;
9351 openbsd*)
9352 with_gnu_ld=no
d7040cdb
SE
9353 ;;
9354 esac
d7040cdb 9355
ce2cded5 9356 ld_shlibs=yes
3725885a
RW
9357
9358 # On some targets, GNU ld is compatible enough with the native linker
9359 # that we're better off using the native interface for both.
9360 lt_use_gnu_ld_interface=no
ce2cded5 9361 if test "$with_gnu_ld" = yes; then
3725885a
RW
9362 case $host_os in
9363 aix*)
9364 # The AIX port of GNU ld has always aspired to compatibility
9365 # with the native linker. However, as the warning in the GNU ld
9366 # block says, versions before 2.19.5* couldn't really create working
9367 # shared libraries, regardless of the interface used.
9368 case `$LD -v 2>&1` in
9369 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9370 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9371 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9372 *)
9373 lt_use_gnu_ld_interface=yes
9374 ;;
9375 esac
9376 ;;
9377 *)
9378 lt_use_gnu_ld_interface=yes
9379 ;;
9380 esac
9381 fi
9382
9383 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9384 # If archive_cmds runs LD, not CC, wlarc should be empty
9385 wlarc='${wl}'
d7040cdb 9386
ce2cded5
L
9387 # Set some defaults for GNU ld with shared library support. These
9388 # are reset later if shared libraries are not supported. Putting them
9389 # here allows them to be overridden if necessary.
9390 runpath_var=LD_RUN_PATH
9391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9392 export_dynamic_flag_spec='${wl}--export-dynamic'
9393 # ancient GNU ld didn't support --whole-archive et. al.
9394 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9395 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9396 else
9397 whole_archive_flag_spec=
9398 fi
9399 supports_anon_versioning=no
9400 case `$LD -v 2>&1` in
3725885a 9401 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9402 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9403 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9404 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9405 *\ 2.11.*) ;; # other 2.11 versions
9406 *) supports_anon_versioning=yes ;;
9407 esac
d7040cdb 9408
ce2cded5
L
9409 # See if GNU ld supports shared libraries.
9410 case $host_os in
50e7d84b 9411 aix[3-9]*)
ce2cded5
L
9412 # On AIX/PPC, the GNU linker is very broken
9413 if test "$host_cpu" != ia64; then
9414 ld_shlibs=no
9415 cat <<_LT_EOF 1>&2
d7040cdb 9416
3725885a 9417*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9418*** to be unable to reliably create shared libraries on AIX.
9419*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9420*** really care for shared libraries, you may want to install binutils
9421*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9422*** You will then need to restart the configuration process.
d7040cdb 9423
ce2cded5
L
9424_LT_EOF
9425 fi
d7040cdb 9426 ;;
d7040cdb 9427
ce2cded5 9428 amigaos*)
b214d478
SE
9429 case $host_cpu in
9430 powerpc)
9431 # see comment about AmigaOS4 .so support
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds=''
9434 ;;
9435 m68k)
9436 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)'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_minus_L=yes
9439 ;;
9440 esac
ce2cded5 9441 ;;
d7040cdb 9442
ce2cded5
L
9443 beos*)
9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 allow_undefined_flag=unsupported
9446 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9447 # support --undefined. This deserves some investigation. FIXME
9448 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 else
9450 ld_shlibs=no
9451 fi
9452 ;;
d7040cdb 9453
b214d478 9454 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9455 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9456 # as there is no search path for DLLs.
9457 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9458 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9459 allow_undefined_flag=unsupported
9460 always_export_symbols=no
9461 enable_shared_with_static_runtimes=yes
9462 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9463
9464 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9466 # If the export-symbols file already is a .def file (1st line
9467 # is EXPORTS), use it as is; otherwise, prepend...
9468 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9469 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9470 else
ce2cded5
L
9471 echo EXPORTS > $output_objdir/$soname.def;
9472 cat $export_symbols >> $output_objdir/$soname.def;
9473 fi~
9474 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9475 else
9476 ld_shlibs=no
9477 fi
9478 ;;
d7040cdb 9479
3725885a
RW
9480 haiku*)
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 link_all_deplibs=yes
9483 ;;
9484
ce2cded5
L
9485 interix[3-9]*)
9486 hardcode_direct=no
9487 hardcode_shlibpath_var=no
9488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9489 export_dynamic_flag_spec='${wl}-E'
9490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9491 # Instead, shared libraries are loaded at an image base (0x10000000 by
9492 # default) and relocated if they conflict, which is a slow very memory
9493 # consuming and fragmenting process. To avoid this, we pick a random,
9494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9495 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9497 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'
9498 ;;
d7040cdb 9499
58e24671 9500 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9501 tmp_diet=no
9502 if test "$host_os" = linux-dietlibc; then
9503 case $cc_basename in
9504 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9505 esac
9506 fi
9507 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9508 && test "$tmp_diet" = no
9509 then
6e733cce 9510 tmp_addflag=' $pic_flag'
b214d478 9511 tmp_sharedflag='-shared'
ce2cded5
L
9512 case $cc_basename,$host_cpu in
9513 pgcc*) # Portland Group C compiler
3725885a 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'
9516 ;;
3725885a
RW
9517 pgf77* | pgf90* | pgf95* | pgfortran*)
9518 # Portland Group f77 and f90 compilers
9519 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
9520 tmp_addflag=' $pic_flag -Mnomain' ;;
9521 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9522 tmp_addflag=' -i_dynamic' ;;
9523 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9524 tmp_addflag=' -i_dynamic -nofor_main' ;;
9525 ifc* | ifort*) # Intel Fortran compiler
9526 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9527 lf95*) # Lahey Fortran 8.1
9528 whole_archive_flag_spec=
9529 tmp_sharedflag='--shared' ;;
3725885a 9530 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9531 tmp_sharedflag='-qmkshrobj'
9532 tmp_addflag= ;;
3725885a
RW
9533 nvcc*) # Cuda Compiler Driver 2.2
9534 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'
9535 compiler_needs_object=yes
9536 ;;
ce2cded5
L
9537 esac
9538 case `$CC -V 2>&1 | sed 5q` in
9539 *Sun\ C*) # Sun C 5.9
3725885a 9540 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
9541 compiler_needs_object=yes
9542 tmp_sharedflag='-G' ;;
9543 *Sun\ F*) # Sun Fortran 8.3
9544 tmp_sharedflag='-G' ;;
ce2cded5
L
9545 esac
9546 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9547
ce2cded5
L
9548 if test "x$supports_anon_versioning" = xyes; then
9549 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9550 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9551 echo "local: *; };" >> $output_objdir/$libname.ver~
9552 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9553 fi
b214d478
SE
9554
9555 case $cc_basename in
3725885a 9556 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9557 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9558 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9559 hardcode_libdir_flag_spec=
9560 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9561 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9562 if test "x$supports_anon_versioning" = xyes; then
9563 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9564 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9565 echo "local: *; };" >> $output_objdir/$libname.ver~
9566 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9567 fi
9568 ;;
9569 esac
ce2cded5
L
9570 else
9571 ld_shlibs=no
9572 fi
9573 ;;
d7040cdb 9574
ce2cded5
L
9575 netbsd*)
9576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9577 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9578 wlarc=
9579 else
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9582 fi
9583 ;;
9584
9585 solaris*)
9586 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9587 ld_shlibs=no
9588 cat <<_LT_EOF 1>&2
9589
9590*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9591*** create shared libraries on Solaris systems. Therefore, libtool
9592*** is disabling shared libraries support. We urge you to upgrade GNU
9593*** binutils to release 2.9.1 or newer. Another option is to modify
9594*** your PATH or compiler configuration so that the native linker is
9595*** used, and then restart.
9596
9597_LT_EOF
9598 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9601 else
9602 ld_shlibs=no
9603 fi
9604 ;;
9605
9606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9607 case `$LD -v 2>&1` in
9608 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9609 ld_shlibs=no
9610 cat <<_LT_EOF 1>&2
9611
9612*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9613*** reliably create shared libraries on SCO systems. Therefore, libtool
9614*** is disabling shared libraries support. We urge you to upgrade GNU
9615*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9616*** your PATH or compiler configuration so that the native linker is
9617*** used, and then restart.
9618
9619_LT_EOF
9620 ;;
9621 *)
9622 # For security reasons, it is highly recommended that you always
9623 # use absolute paths for naming shared libraries, and exclude the
9624 # DT_RUNPATH tag from executables and libraries. But doing so
9625 # requires that you compile everything twice, which is a pain.
9626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9630 else
9631 ld_shlibs=no
9632 fi
9633 ;;
9634 esac
9635 ;;
9636
9637 sunos4*)
9638 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9639 wlarc=
9640 hardcode_direct=yes
9641 hardcode_shlibpath_var=no
9642 ;;
9643
9644 *)
9645 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9648 else
9649 ld_shlibs=no
9650 fi
9651 ;;
9652 esac
9653
9654 if test "$ld_shlibs" = no; then
9655 runpath_var=
9656 hardcode_libdir_flag_spec=
9657 export_dynamic_flag_spec=
9658 whole_archive_flag_spec=
9659 fi
9660 else
9661 # PORTME fill in a description of your system's linker (not GNU ld)
9662 case $host_os in
9663 aix3*)
9664 allow_undefined_flag=unsupported
9665 always_export_symbols=yes
9666 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'
9667 # Note: this linker hardcodes the directories in LIBPATH if there
9668 # are no directories specified by -L.
9669 hardcode_minus_L=yes
9670 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9671 # Neither direct hardcoding nor static linking is supported with a
9672 # broken collect2.
9673 hardcode_direct=unsupported
9674 fi
9675 ;;
9676
50e7d84b 9677 aix[4-9]*)
ce2cded5
L
9678 if test "$host_cpu" = ia64; then
9679 # On IA64, the linker does run time linking by default, so we don't
9680 # have to do anything special.
9681 aix_use_runtimelinking=no
9682 exp_sym_flag='-Bexport'
9683 no_entry_flag=""
9684 else
9685 # If we're using GNU nm, then we don't want the "-C" option.
9686 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9687 # Also, AIX nm treats weak defined symbols like other global
9688 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9689 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9690 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 9691 else
5c14705f 9692 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9693 fi
9694 aix_use_runtimelinking=no
9695
9696 # Test if we are trying to use run time linking or normal
9697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9698 # need to do runtime linking.
50e7d84b 9699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9700 for ld_flag in $LDFLAGS; do
9701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9702 aix_use_runtimelinking=yes
9703 break
9704 fi
9705 done
9706 ;;
9707 esac
9708
9709 exp_sym_flag='-bexport'
9710 no_entry_flag='-bnoentry'
9711 fi
9712
9713 # When large executables or shared objects are built, AIX ld can
9714 # have problems creating the table of contents. If linking a library
9715 # or program results in "error TOC overflow" add -mminimal-toc to
9716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718
9719 archive_cmds=''
9720 hardcode_direct=yes
9721 hardcode_direct_absolute=yes
9722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
9724 file_list_spec='${wl}-f,'
9725
9726 if test "$GCC" = yes; then
9727 case $host_os in aix4.[012]|aix4.[012].*)
9728 # We only want to do this on AIX 4.2 and lower, the check
9729 # below for broken collect2 doesn't work under 4.3+
9730 collect2name=`${CC} -print-prog-name=collect2`
9731 if test -f "$collect2name" &&
9732 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9733 then
9734 # We have reworked collect2
9735 :
9736 else
9737 # We have old collect2
9738 hardcode_direct=unsupported
9739 # It fails to find uninstalled libraries when the uninstalled
9740 # path is not listed in the libpath. Setting hardcode_minus_L
9741 # to unsupported forces relinking
9742 hardcode_minus_L=yes
9743 hardcode_libdir_flag_spec='-L$libdir'
9744 hardcode_libdir_separator=
9745 fi
9746 ;;
9747 esac
9748 shared_flag='-shared'
9749 if test "$aix_use_runtimelinking" = yes; then
9750 shared_flag="$shared_flag "'${wl}-G'
9751 fi
9752 else
9753 # not using gcc
9754 if test "$host_cpu" = ia64; then
9755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9756 # chokes on -Wl,-G. The following line is correct:
9757 shared_flag='-G'
9758 else
9759 if test "$aix_use_runtimelinking" = yes; then
9760 shared_flag='${wl}-G'
9761 else
9762 shared_flag='${wl}-bM:SRE'
9763 fi
9764 fi
9765 fi
9766
b214d478 9767 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9768 # It seems that -bexpall does not export symbols beginning with
9769 # underscore (_), so it is better to generate a list of symbols to export.
9770 always_export_symbols=yes
9771 if test "$aix_use_runtimelinking" = yes; then
9772 # Warning - without using the other runtime loading flags (-brtl),
9773 # -berok will link without error, but may produce a broken library.
9774 allow_undefined_flag='-berok'
9775 # Determine the default libpath from the value encoded in an
9776 # empty executable.
81ecdfbb 9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9778/* end confdefs.h. */
9779
9780int
9781main ()
9782{
9783
9784 ;
9785 return 0;
9786}
9787_ACEOF
81ecdfbb 9788if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9789
ce2cded5
L
9790lt_aix_libpath_sed='
9791 /Import File Strings/,/^$/ {
9792 /^0/ {
9793 s/^0 *\(.*\)$/\1/
9794 p
9795 }
9796 }'
9797aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9798# Check for a 64-bit object if we didn't find anything.
9799if test -z "$aix_libpath"; then
9800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801fi
d7040cdb 9802fi
81ecdfbb
RW
9803rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9805if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9806
ce2cded5 9807 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9808 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
9809 else
9810 if test "$host_cpu" = ia64; then
9811 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9812 allow_undefined_flag="-z nodefs"
9813 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"
9814 else
9815 # Determine the default libpath from the value encoded in an
9816 # empty executable.
81ecdfbb 9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9818/* end confdefs.h. */
d7040cdb 9819
ce2cded5
L
9820int
9821main ()
9822{
d7040cdb 9823
ce2cded5
L
9824 ;
9825 return 0;
9826}
9827_ACEOF
81ecdfbb 9828if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9829
ce2cded5
L
9830lt_aix_libpath_sed='
9831 /Import File Strings/,/^$/ {
9832 /^0/ {
9833 s/^0 *\(.*\)$/\1/
9834 p
9835 }
9836 }'
9837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838# Check for a 64-bit object if we didn't find anything.
9839if test -z "$aix_libpath"; then
9840 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841fi
ce2cded5 9842fi
81ecdfbb
RW
9843rm -f core conftest.err conftest.$ac_objext \
9844 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9845if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9846
ce2cded5
L
9847 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9848 # Warning - without using the other run time loading flags,
9849 # -berok will link without error, but may produce a broken library.
9850 no_undefined_flag=' ${wl}-bernotok'
9851 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9852 if test "$with_gnu_ld" = yes; then
9853 # We only use this code for GNU lds that support --whole-archive.
9854 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9855 else
9856 # Exported symbols can be pulled into shared objects from archives
9857 whole_archive_flag_spec='$convenience'
9858 fi
ce2cded5
L
9859 archive_cmds_need_lc=yes
9860 # This is similar to how AIX traditionally builds its shared libraries.
9861 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'
9862 fi
9863 fi
9864 ;;
d7040cdb 9865
ce2cded5 9866 amigaos*)
b214d478
SE
9867 case $host_cpu in
9868 powerpc)
9869 # see comment about AmigaOS4 .so support
9870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871 archive_expsym_cmds=''
9872 ;;
9873 m68k)
9874 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)'
9875 hardcode_libdir_flag_spec='-L$libdir'
9876 hardcode_minus_L=yes
9877 ;;
9878 esac
ce2cded5
L
9879 ;;
9880
9881 bsdi[45]*)
9882 export_dynamic_flag_spec=-rdynamic
9883 ;;
9884
b214d478 9885 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9886 # When not using gcc, we currently assume that we are using
9887 # Microsoft Visual C++.
9888 # hardcode_libdir_flag_spec is actually meaningless, as there is
9889 # no search path for DLLs.
9890 hardcode_libdir_flag_spec=' '
9891 allow_undefined_flag=unsupported
9892 # Tell ltmain to make .lib files, not .a files.
9893 libext=lib
9894 # Tell ltmain to make .dll files, not .so files.
9895 shrext_cmds=".dll"
9896 # FIXME: Setting linknames here is a bad hack.
3725885a 9897 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9898 # The linker will automatically build a .lib file if we build a DLL.
9899 old_archive_from_new_cmds='true'
9900 # FIXME: Should let the user specify the lib program.
9901 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9902 fix_srcfile_path='`cygpath -w "$srcfile"`'
9903 enable_shared_with_static_runtimes=yes
9904 ;;
9905
9906 darwin* | rhapsody*)
d7040cdb 9907
b214d478
SE
9908
9909 archive_cmds_need_lc=no
9910 hardcode_direct=no
9911 hardcode_automatic=yes
9912 hardcode_shlibpath_var=unsupported
3725885a
RW
9913 if test "$lt_cv_ld_force_load" = "yes"; then
9914 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\"`'
9915 else
9916 whole_archive_flag_spec=''
9917 fi
b214d478
SE
9918 link_all_deplibs=yes
9919 allow_undefined_flag="$_lt_dar_allow_undefined"
9920 case $cc_basename in
9921 ifort*) _lt_dar_can_shared=yes ;;
9922 *) _lt_dar_can_shared=$GCC ;;
9923 esac
9924 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9925 output_verbose_link_cmd=func_echo_all
b214d478
SE
9926 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9927 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9928 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}"
9929 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}"
9930
9931 else
9932 ld_shlibs=no
9933 fi
9934
ce2cded5 9935 ;;
d7040cdb 9936
ce2cded5
L
9937 dgux*)
9938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_shlibpath_var=no
9941 ;;
d7040cdb 9942
ce2cded5
L
9943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9944 # support. Future versions do this automatically, but an explicit c++rt0.o
9945 # does not break anything, and helps significantly (at the cost of a little
9946 # extra space).
9947 freebsd2.2*)
9948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9949 hardcode_libdir_flag_spec='-R$libdir'
9950 hardcode_direct=yes
9951 hardcode_shlibpath_var=no
d7040cdb 9952 ;;
d7040cdb 9953
ce2cded5 9954 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9955 freebsd2.*)
ce2cded5
L
9956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9957 hardcode_direct=yes
9958 hardcode_minus_L=yes
9959 hardcode_shlibpath_var=no
9960 ;;
d7040cdb 9961
ce2cded5
L
9962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9963 freebsd* | dragonfly*)
9964 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
d7040cdb 9969
ce2cded5
L
9970 hpux9*)
9971 if test "$GCC" = yes; then
9972 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'
9973 else
9974 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'
9975 fi
9976 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9977 hardcode_libdir_separator=:
9978 hardcode_direct=yes
d7040cdb 9979
ce2cded5
L
9980 # hardcode_minus_L: Not really in the search PATH,
9981 # but as the default location of the library.
9982 hardcode_minus_L=yes
9983 export_dynamic_flag_spec='${wl}-E'
9984 ;;
d7040cdb 9985
ce2cded5 9986 hpux10*)
3725885a 9987 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9988 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 else
9990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9991 fi
9992 if test "$with_gnu_ld" = no; then
9993 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9994 hardcode_libdir_flag_spec_ld='+b $libdir'
9995 hardcode_libdir_separator=:
9996 hardcode_direct=yes
9997 hardcode_direct_absolute=yes
9998 export_dynamic_flag_spec='${wl}-E'
9999 # hardcode_minus_L: Not really in the search PATH,
10000 # but as the default location of the library.
10001 hardcode_minus_L=yes
10002 fi
10003 ;;
d7040cdb 10004
ce2cded5 10005 hpux11*)
3725885a 10006 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10007 case $host_cpu in
10008 hppa*64*)
10009 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 ;;
10011 ia64*)
b214d478 10012 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10013 ;;
10014 *)
10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10016 ;;
10017 esac
10018 else
10019 case $host_cpu in
10020 hppa*64*)
10021 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 ;;
10023 ia64*)
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025 ;;
10026 *)
3725885a
RW
10027
10028 # Older versions of the 11.00 compiler do not understand -b yet
10029 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10031$as_echo_n "checking if $CC understands -b... " >&6; }
10032if test "${lt_cv_prog_compiler__b+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
10034else
10035 lt_cv_prog_compiler__b=no
10036 save_LDFLAGS="$LDFLAGS"
10037 LDFLAGS="$LDFLAGS -b"
10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10040 # The linker can only warn and ignore the option if not recognized
10041 # So say no if there are warnings
10042 if test -s conftest.err; then
10043 # Append any errors to the config.log.
10044 cat conftest.err 1>&5
10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10047 if diff conftest.exp conftest.er2 >/dev/null; then
10048 lt_cv_prog_compiler__b=yes
10049 fi
10050 else
10051 lt_cv_prog_compiler__b=yes
10052 fi
10053 fi
10054 $RM -r conftest*
10055 LDFLAGS="$save_LDFLAGS"
10056
10057fi
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10059$as_echo "$lt_cv_prog_compiler__b" >&6; }
10060
10061if test x"$lt_cv_prog_compiler__b" = xyes; then
10062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10063else
10064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10065fi
10066
ce2cded5
L
10067 ;;
10068 esac
10069 fi
10070 if test "$with_gnu_ld" = no; then
10071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10072 hardcode_libdir_separator=:
d7040cdb 10073
ce2cded5
L
10074 case $host_cpu in
10075 hppa*64*|ia64*)
10076 hardcode_direct=no
10077 hardcode_shlibpath_var=no
10078 ;;
10079 *)
10080 hardcode_direct=yes
10081 hardcode_direct_absolute=yes
10082 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10083
ce2cded5
L
10084 # hardcode_minus_L: Not really in the search PATH,
10085 # but as the default location of the library.
10086 hardcode_minus_L=yes
10087 ;;
10088 esac
10089 fi
10090 ;;
d7040cdb 10091
ce2cded5
L
10092 irix5* | irix6* | nonstopux*)
10093 if test "$GCC" = yes; then
3725885a 10094 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
10095 # Try to use the -exported_symbol ld option, if it does not
10096 # work, assume that -exports_file does not work either and
10097 # implicitly export all symbols.
10098 save_LDFLAGS="$LDFLAGS"
10099 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h. */
ce2cded5
L
10102int foo(void) {}
10103_ACEOF
81ecdfbb 10104if ac_fn_c_try_link "$LINENO"; then :
3725885a 10105 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 10106
ce2cded5 10107fi
81ecdfbb
RW
10108rm -f core conftest.err conftest.$ac_objext \
10109 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10110 LDFLAGS="$save_LDFLAGS"
10111 else
3725885a
RW
10112 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'
10113 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
10114 fi
10115 archive_cmds_need_lc='no'
10116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10117 hardcode_libdir_separator=:
10118 inherit_rpath=yes
10119 link_all_deplibs=yes
10120 ;;
d7040cdb 10121
ce2cded5
L
10122 netbsd*)
10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10125 else
10126 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10127 fi
10128 hardcode_libdir_flag_spec='-R$libdir'
10129 hardcode_direct=yes
10130 hardcode_shlibpath_var=no
10131 ;;
d7040cdb 10132
ce2cded5
L
10133 newsos6)
10134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 hardcode_direct=yes
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 hardcode_libdir_separator=:
10138 hardcode_shlibpath_var=no
10139 ;;
d7040cdb 10140
ce2cded5
L
10141 *nto* | *qnx*)
10142 ;;
d7040cdb 10143
ce2cded5 10144 openbsd*)
b214d478
SE
10145 if test -f /usr/libexec/ld.so; then
10146 hardcode_direct=yes
10147 hardcode_shlibpath_var=no
10148 hardcode_direct_absolute=yes
10149 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10151 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10152 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10153 export_dynamic_flag_spec='${wl}-E'
10154 else
10155 case $host_os in
10156 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_libdir_flag_spec='-R$libdir'
10159 ;;
10160 *)
10161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10162 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163 ;;
10164 esac
10165 fi
10166 else
10167 ld_shlibs=no
ce2cded5
L
10168 fi
10169 ;;
d7040cdb 10170
ce2cded5
L
10171 os2*)
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_minus_L=yes
10174 allow_undefined_flag=unsupported
3725885a 10175 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
10176 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10177 ;;
d7040cdb 10178
ce2cded5
L
10179 osf3*)
10180 if test "$GCC" = yes; then
10181 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10182 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
10183 else
10184 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10185 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
10186 fi
10187 archive_cmds_need_lc='no'
10188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator=:
10190 ;;
d7040cdb 10191
ce2cded5
L
10192 osf4* | osf5*) # as osf3* with the addition of -msym flag
10193 if test "$GCC" = yes; then
10194 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10195 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
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 else
10198 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10199 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 10200 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 10201 $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 10202
ce2cded5
L
10203 # Both c and cxx compiler support -rpath directly
10204 hardcode_libdir_flag_spec='-rpath $libdir'
10205 fi
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_separator=:
10208 ;;
d7040cdb 10209
ce2cded5
L
10210 solaris*)
10211 no_undefined_flag=' -z defs'
10212 if test "$GCC" = yes; then
10213 wlarc='${wl}'
10214 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10216 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10217 else
10218 case `$CC -V 2>&1` in
10219 *"Compilers 5.0"*)
10220 wlarc=''
10221 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10223 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10224 ;;
10225 *)
10226 wlarc='${wl}'
10227 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10229 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10230 ;;
10231 esac
10232 fi
10233 hardcode_libdir_flag_spec='-R$libdir'
10234 hardcode_shlibpath_var=no
10235 case $host_os in
10236 solaris2.[0-5] | solaris2.[0-5].*) ;;
10237 *)
10238 # The compiler driver will combine and reorder linker options,
10239 # but understands `-z linker_flag'. GCC discards it without `$wl',
10240 # but is careful enough not to reorder.
10241 # Supported since Solaris 2.6 (maybe 2.5.1?)
10242 if test "$GCC" = yes; then
10243 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10244 else
10245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10246 fi
10247 ;;
10248 esac
10249 link_all_deplibs=yes
10250 ;;
d7040cdb 10251
ce2cded5
L
10252 sunos4*)
10253 if test "x$host_vendor" = xsequent; then
10254 # Use $CC to link under sequent, because it throws in some extra .o
10255 # files that make .init and .fini sections work.
10256 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10257 else
10258 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10259 fi
10260 hardcode_libdir_flag_spec='-L$libdir'
10261 hardcode_direct=yes
10262 hardcode_minus_L=yes
10263 hardcode_shlibpath_var=no
10264 ;;
d7040cdb 10265
ce2cded5
L
10266 sysv4)
10267 case $host_vendor in
10268 sni)
10269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270 hardcode_direct=yes # is this really true???
10271 ;;
10272 siemens)
10273 ## LD is ld it makes a PLAMLIB
10274 ## CC just makes a GrossModule.
10275 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10276 reload_cmds='$CC -r -o $output$reload_objs'
10277 hardcode_direct=no
10278 ;;
10279 motorola)
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10282 ;;
10283 esac
10284 runpath_var='LD_RUN_PATH'
10285 hardcode_shlibpath_var=no
10286 ;;
d7040cdb 10287
ce2cded5
L
10288 sysv4.3*)
10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_shlibpath_var=no
10291 export_dynamic_flag_spec='-Bexport'
10292 ;;
d7040cdb 10293
ce2cded5
L
10294 sysv4*MP*)
10295 if test -d /usr/nec; then
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_shlibpath_var=no
10298 runpath_var=LD_RUN_PATH
10299 hardcode_runpath_var=yes
10300 ld_shlibs=yes
10301 fi
10302 ;;
d7040cdb 10303
ce2cded5
L
10304 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10305 no_undefined_flag='${wl}-z,text'
10306 archive_cmds_need_lc=no
10307 hardcode_shlibpath_var=no
10308 runpath_var='LD_RUN_PATH'
d7040cdb 10309
ce2cded5
L
10310 if test "$GCC" = yes; then
10311 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10312 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 else
10314 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 fi
10317 ;;
d7040cdb 10318
ce2cded5
L
10319 sysv5* | sco3.2v5* | sco5v6*)
10320 # Note: We can NOT use -z defs as we might desire, because we do not
10321 # link with -lc, and that would cause any symbols used from libc to
10322 # always be unresolved, which means just about no library would
10323 # ever link correctly. If we're not using GNU ld we use -z text
10324 # though, which does catch some bad symbols but isn't as heavy-handed
10325 # as -z defs.
10326 no_undefined_flag='${wl}-z,text'
10327 allow_undefined_flag='${wl}-z,nodefs'
10328 archive_cmds_need_lc=no
10329 hardcode_shlibpath_var=no
10330 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10331 hardcode_libdir_separator=':'
10332 link_all_deplibs=yes
10333 export_dynamic_flag_spec='${wl}-Bexport'
10334 runpath_var='LD_RUN_PATH'
d7040cdb 10335
ce2cded5
L
10336 if test "$GCC" = yes; then
10337 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10339 else
10340 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 fi
10343 ;;
d7040cdb 10344
ce2cded5
L
10345 uts4*)
10346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10347 hardcode_libdir_flag_spec='-L$libdir'
10348 hardcode_shlibpath_var=no
10349 ;;
d7040cdb 10350
ce2cded5
L
10351 *)
10352 ld_shlibs=no
10353 ;;
10354 esac
d7040cdb 10355
ce2cded5
L
10356 if test x$host_vendor = xsni; then
10357 case $host in
10358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 export_dynamic_flag_spec='${wl}-Blargedynsym'
10360 ;;
10361 esac
10362 fi
10363 fi
d7040cdb 10364
81ecdfbb
RW
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10366$as_echo "$ld_shlibs" >&6; }
ce2cded5 10367test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10368
ce2cded5 10369with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
ce2cded5
L
10385#
10386# Do we need to explicitly link libc?
10387#
10388case "x$archive_cmds_need_lc" in
10389x|xyes)
10390 # Assume -lc should be added
10391 archive_cmds_need_lc=yes
d7040cdb 10392
ce2cded5
L
10393 if test "$enable_shared" = yes && test "$GCC" = yes; then
10394 case $archive_cmds in
10395 *'~'*)
10396 # FIXME: we may have to deal with multi-command sequences.
10397 ;;
10398 '$CC '*)
10399 # Test whether the compiler implicitly links with -lc since on some
10400 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10401 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10403$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10404if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
39144654
RW
10406else
10407 $RM conftest*
10408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10409
81ecdfbb 10410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10411 (eval $ac_compile) 2>&5
10412 ac_status=$?
81ecdfbb
RW
10413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10414 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10415 soname=conftest
10416 lib=conftest
10417 libobjs=conftest.$ac_objext
10418 deplibs=
10419 wl=$lt_prog_compiler_wl
10420 pic_flag=$lt_prog_compiler_pic
10421 compiler_flags=-v
10422 linker_flags=-v
10423 verstring=
10424 output_objdir=.
10425 libname=conftest
10426 lt_save_allow_undefined_flag=$allow_undefined_flag
10427 allow_undefined_flag=
81ecdfbb 10428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10429 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10430 ac_status=$?
81ecdfbb
RW
10431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10432 test $ac_status = 0; }
39144654
RW
10433 then
10434 lt_cv_archive_cmds_need_lc=no
10435 else
10436 lt_cv_archive_cmds_need_lc=yes
10437 fi
10438 allow_undefined_flag=$lt_save_allow_undefined_flag
10439 else
10440 cat conftest.err 1>&5
10441 fi
10442 $RM conftest*
10443
10444fi
81ecdfbb
RW
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10446$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10447 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10448 ;;
10449 esac
10450 fi
10451 ;;
10452esac
d7040cdb
SE
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
d7040cdb 10480
d7040cdb 10481
d7040cdb
SE
10482
10483
10484
10485
10486
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
d7040cdb 10511
d7040cdb 10512
d7040cdb 10513
d7040cdb 10514
d7040cdb 10515
ce2cded5
L
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
10605
10606
10607
10608
10609
81ecdfbb
RW
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10611$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10612
10613if test "$GCC" = yes; then
ce2cded5
L
10614 case $host_os in
10615 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10616 *) lt_awk_arg="/^libraries:/" ;;
10617 esac
3725885a
RW
10618 case $host_os in
10619 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10620 *) lt_sed_strip_eq="s,=/,/,g" ;;
10621 esac
10622 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10623 case $lt_search_path_spec in
10624 *\;*)
ce2cded5
L
10625 # if the path contains ";" then we assume it to be the separator
10626 # otherwise default to the standard path separator (i.e. ":") - it is
10627 # assumed that no part of a normal pathname contains ";" but that should
10628 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10629 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10630 ;;
10631 *)
10632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10633 ;;
10634 esac
ce2cded5
L
10635 # Ok, now we have the path, separated by spaces, we can step through it
10636 # and add multilib dir if necessary.
10637 lt_tmp_lt_search_path_spec=
10638 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10639 for lt_sys_path in $lt_search_path_spec; do
10640 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10641 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10642 else
10643 test -d "$lt_sys_path" && \
10644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10645 fi
10646 done
3725885a 10647 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10648BEGIN {RS=" "; FS="/|\n";} {
10649 lt_foo="";
10650 lt_count=0;
10651 for (lt_i = NF; lt_i > 0; lt_i--) {
10652 if ($lt_i != "" && $lt_i != ".") {
10653 if ($lt_i == "..") {
10654 lt_count++;
10655 } else {
10656 if (lt_count == 0) {
10657 lt_foo="/" $lt_i lt_foo;
10658 } else {
10659 lt_count--;
10660 }
10661 }
10662 }
10663 }
10664 if (lt_foo != "") { lt_freq[lt_foo]++; }
10665 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10666}'`
3725885a
RW
10667 # AWK program above erroneously prepends '/' to C:/dos/paths
10668 # for these hosts.
10669 case $host_os in
10670 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10671 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10672 esac
10673 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10674else
ce2cded5
L
10675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10676fi
10677library_names_spec=
10678libname_spec='lib$name'
10679soname_spec=
10680shrext_cmds=".so"
10681postinstall_cmds=
10682postuninstall_cmds=
10683finish_cmds=
10684finish_eval=
10685shlibpath_var=
10686shlibpath_overrides_runpath=unknown
10687version_type=none
10688dynamic_linker="$host_os ld.so"
10689sys_lib_dlsearch_path_spec="/lib /usr/lib"
10690need_lib_prefix=unknown
10691hardcode_into_libs=no
10692
10693# when you set need_version to no, make sure it does not cause -set_version
10694# flags to be left without arguments
10695need_version=unknown
10696
10697case $host_os in
10698aix3*)
10699 version_type=linux
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10701 shlibpath_var=LIBPATH
10702
10703 # AIX 3 has no versioning support, so we append a major version to the name.
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 ;;
10706
50e7d84b 10707aix[4-9]*)
ce2cded5
L
10708 version_type=linux
10709 need_lib_prefix=no
10710 need_version=no
10711 hardcode_into_libs=yes
10712 if test "$host_cpu" = ia64; then
10713 # AIX 5 supports IA64
10714 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 else
10717 # With GCC up to 2.95.x, collect2 would create an import file
10718 # for dependence libraries. The import file would start with
10719 # the line `#! .'. This would cause the generated library to
10720 # depend on `.', always an invalid library. This was fixed in
10721 # development snapshots of GCC prior to 3.0.
10722 case $host_os in
10723 aix4 | aix4.[01] | aix4.[01].*)
10724 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10725 echo ' yes '
10726 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10727 :
10728 else
10729 can_build_shared=no
10730 fi
10731 ;;
10732 esac
10733 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10734 # soname into executable. Probably we can add versioning support to
10735 # collect2, so additional links can be useful in future.
10736 if test "$aix_use_runtimelinking" = yes; then
10737 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10738 # instead of lib<name>.a to let people know that these are not
10739 # typical AIX shared libraries.
10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 else
10742 # We preserve .a as extension for shared libraries through AIX4.2
10743 # and later when we are not doing run time linking.
10744 library_names_spec='${libname}${release}.a $libname.a'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 fi
10747 shlibpath_var=LIBPATH
10748 fi
10749 ;;
10750
10751amigaos*)
b214d478
SE
10752 case $host_cpu in
10753 powerpc)
10754 # Since July 2007 AmigaOS4 officially supports .so libraries.
10755 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 ;;
10758 m68k)
ce2cded5
L
10759 library_names_spec='$libname.ixlibrary $libname.a'
10760 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10761 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
10762 ;;
10763 esac
ce2cded5
L
10764 ;;
10765
10766beos*)
10767 library_names_spec='${libname}${shared_ext}'
10768 dynamic_linker="$host_os ld.so"
10769 shlibpath_var=LIBRARY_PATH
10770 ;;
10771
10772bsdi[45]*)
10773 version_type=linux
10774 need_version=no
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10776 soname_spec='${libname}${release}${shared_ext}$major'
10777 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10780 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10781 # the default ld.so.conf also contains /usr/contrib/lib and
10782 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10783 # libtool to hard-code these into programs
10784 ;;
10785
b214d478 10786cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10787 version_type=windows
10788 shrext_cmds=".dll"
10789 need_version=no
10790 need_lib_prefix=no
10791
b214d478
SE
10792 case $GCC,$host_os in
10793 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10794 library_names_spec='$libname.dll.a'
10795 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10796 postinstall_cmds='base_file=`basename \${file}`~
10797 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10798 dldir=$destdir/`dirname \$dlpath`~
10799 test -d \$dldir || mkdir -p \$dldir~
10800 $install_prog $dir/$dlname \$dldir/$dlname~
10801 chmod a+x \$dldir/$dlname~
10802 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10803 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10804 fi'
10805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10806 dlpath=$dir/\$dldll~
10807 $RM \$dlpath'
10808 shlibpath_overrides_runpath=yes
10809
10810 case $host_os in
10811 cygwin*)
10812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10814
10815 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10816 ;;
b214d478 10817 mingw* | cegcc*)
ce2cded5
L
10818 # MinGW DLLs use traditional 'lib' prefix
10819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10820 ;;
10821 pw32*)
10822 # pw32 DLLs use 'pw' prefix rather than 'lib'
10823 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824 ;;
10825 esac
10826 ;;
10827
10828 *)
10829 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10830 ;;
10831 esac
10832 dynamic_linker='Win32 ld.exe'
10833 # FIXME: first we should search . and the directory the executable is in
10834 shlibpath_var=PATH
10835 ;;
10836
10837darwin* | rhapsody*)
10838 dynamic_linker="$host_os dyld"
10839 version_type=darwin
10840 need_lib_prefix=no
10841 need_version=no
10842 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10843 soname_spec='${libname}${release}${major}$shared_ext'
10844 shlibpath_overrides_runpath=yes
10845 shlibpath_var=DYLD_LIBRARY_PATH
10846 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10847
10848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10850 ;;
10851
10852dgux*)
10853 version_type=linux
10854 need_lib_prefix=no
10855 need_version=no
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 ;;
10860
ce2cded5
L
10861freebsd* | dragonfly*)
10862 # DragonFly does not have aout. When/if they implement a new
10863 # versioning mechanism, adjust this.
10864 if test -x /usr/bin/objformat; then
10865 objformat=`/usr/bin/objformat`
10866 else
10867 case $host_os in
6d2920c8 10868 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10869 *) objformat=elf ;;
10870 esac
10871 fi
10872 version_type=freebsd-$objformat
10873 case $version_type in
10874 freebsd-elf*)
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10876 need_version=no
10877 need_lib_prefix=no
10878 ;;
10879 freebsd-*)
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10881 need_version=yes
10882 ;;
10883 esac
10884 shlibpath_var=LD_LIBRARY_PATH
10885 case $host_os in
6d2920c8 10886 freebsd2.*)
ce2cded5
L
10887 shlibpath_overrides_runpath=yes
10888 ;;
10889 freebsd3.[01]* | freebsdelf3.[01]*)
10890 shlibpath_overrides_runpath=yes
10891 hardcode_into_libs=yes
10892 ;;
10893 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10894 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10895 shlibpath_overrides_runpath=no
10896 hardcode_into_libs=yes
10897 ;;
10898 *) # from 4.6 on, and DragonFly
10899 shlibpath_overrides_runpath=yes
10900 hardcode_into_libs=yes
10901 ;;
10902 esac
10903 ;;
10904
10905gnu*)
10906 version_type=linux
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 hardcode_into_libs=yes
10913 ;;
10914
3725885a
RW
10915haiku*)
10916 version_type=linux
10917 need_lib_prefix=no
10918 need_version=no
10919 dynamic_linker="$host_os runtime_loader"
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 shlibpath_var=LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10925 hardcode_into_libs=yes
10926 ;;
10927
ce2cded5
L
10928hpux9* | hpux10* | hpux11*)
10929 # Give a soname corresponding to the major version so that dld.sl refuses to
10930 # link against other versions.
10931 version_type=sunos
10932 need_lib_prefix=no
10933 need_version=no
10934 case $host_cpu in
10935 ia64*)
10936 shrext_cmds='.so'
10937 hardcode_into_libs=yes
10938 dynamic_linker="$host_os dld.so"
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 if test "X$HPUX_IA64_MODE" = X32; then
10944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10945 else
10946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10947 fi
10948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10949 ;;
10950 hppa*64*)
10951 shrext_cmds='.sl'
10952 hardcode_into_libs=yes
10953 dynamic_linker="$host_os dld.sl"
10954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960 ;;
10961 *)
10962 shrext_cmds='.sl'
10963 dynamic_linker="$host_os dld.sl"
10964 shlibpath_var=SHLIB_PATH
10965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10968 ;;
10969 esac
3725885a 10970 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10971 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10972 # or fails outright, so override atomically:
10973 install_override_mode=555
ce2cded5
L
10974 ;;
10975
10976interix[3-9]*)
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
10985 hardcode_into_libs=yes
10986 ;;
10987
10988irix5* | irix6* | nonstopux*)
10989 case $host_os in
10990 nonstopux*) version_type=nonstopux ;;
10991 *)
10992 if test "$lt_cv_prog_gnu_ld" = yes; then
10993 version_type=linux
10994 else
10995 version_type=irix
10996 fi ;;
10997 esac
10998 need_lib_prefix=no
10999 need_version=no
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11002 case $host_os in
11003 irix5* | nonstopux*)
11004 libsuff= shlibsuff=
11005 ;;
11006 *)
11007 case $LD in # libtool.m4 will add one of these switches to LD
11008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11009 libsuff= shlibsuff= libmagic=32-bit;;
11010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11011 libsuff=32 shlibsuff=N32 libmagic=N32;;
11012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11014 *) libsuff= shlibsuff= libmagic=never-match;;
11015 esac
11016 ;;
11017 esac
11018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11019 shlibpath_overrides_runpath=no
11020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11022 hardcode_into_libs=yes
11023 ;;
11024
11025# No shared lib support for Linux oldld, aout, or coff.
11026linux*oldld* | linux*aout* | linux*coff*)
11027 dynamic_linker=no
11028 ;;
11029
11030# This must be Linux ELF.
58e24671 11031linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11032 version_type=linux
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 soname_spec='${libname}${release}${shared_ext}$major'
11037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=no
39144654 11040
ce2cded5 11041 # Some binutils ld are patched to set DT_RUNPATH
81ecdfbb
RW
11042 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
39144654
RW
11044else
11045 lt_cv_shlibpath_overrides_runpath=no
11046 save_LDFLAGS=$LDFLAGS
11047 save_libdir=$libdir
11048 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11049 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11051/* end confdefs.h. */
11052
d7040cdb
SE
11053int
11054main ()
11055{
ce2cded5 11056
d7040cdb
SE
11057 ;
11058 return 0;
11059}
11060_ACEOF
81ecdfbb
RW
11061if ac_fn_c_try_link "$LINENO"; then :
11062 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11063 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11064fi
d7040cdb 11065fi
81ecdfbb
RW
11066rm -f core conftest.err conftest.$ac_objext \
11067 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11068 LDFLAGS=$save_LDFLAGS
11069 libdir=$save_libdir
11070
11071fi
11072
11073 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11074
ce2cded5
L
11075 # This implies no fast_install, which is unacceptable.
11076 # Some rework will be needed to allow for fast_install
11077 # before this can be enabled.
11078 hardcode_into_libs=yes
d7040cdb 11079
ce2cded5
L
11080 # Append ld.so.conf contents to the search path
11081 if test -f /etc/ld.so.conf; then
3725885a 11082 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
11083 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11084 fi
d7040cdb 11085
ce2cded5
L
11086 # We used to test for /lib/ld.so.1 and disable shared libraries on
11087 # powerpc, because MkLinux only supported shared libraries with the
11088 # GNU dynamic linker. Since this was broken with cross compilers,
11089 # most powerpc-linux boxes support dynamic linking these days and
11090 # people can always --disable-shared, the test was removed, and we
11091 # assume the GNU/Linux dynamic linker is in use.
11092 dynamic_linker='GNU/Linux ld.so'
11093 ;;
d7040cdb 11094
ce2cded5
L
11095netbsd*)
11096 version_type=sunos
11097 need_lib_prefix=no
11098 need_version=no
11099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11102 dynamic_linker='NetBSD (a.out) ld.so'
11103 else
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 dynamic_linker='NetBSD ld.elf_so'
11107 fi
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=yes
11110 hardcode_into_libs=yes
11111 ;;
d7040cdb 11112
ce2cded5
L
11113newsos6)
11114 version_type=linux
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 shlibpath_overrides_runpath=yes
11118 ;;
d7040cdb 11119
ce2cded5
L
11120*nto* | *qnx*)
11121 version_type=qnx
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=no
11128 hardcode_into_libs=yes
11129 dynamic_linker='ldqnx.so'
11130 ;;
d7040cdb 11131
ce2cded5
L
11132openbsd*)
11133 version_type=sunos
11134 sys_lib_dlsearch_path_spec="/usr/lib"
11135 need_lib_prefix=no
11136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11137 case $host_os in
11138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11139 *) need_version=no ;;
11140 esac
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11145 case $host_os in
11146 openbsd2.[89] | openbsd2.[89].*)
11147 shlibpath_overrides_runpath=no
11148 ;;
11149 *)
11150 shlibpath_overrides_runpath=yes
11151 ;;
11152 esac
11153 else
11154 shlibpath_overrides_runpath=yes
11155 fi
11156 ;;
d7040cdb 11157
ce2cded5
L
11158os2*)
11159 libname_spec='$name'
11160 shrext_cmds=".dll"
11161 need_lib_prefix=no
11162 library_names_spec='$libname${shared_ext} $libname.a'
11163 dynamic_linker='OS/2 ld.exe'
11164 shlibpath_var=LIBPATH
11165 ;;
d7040cdb 11166
ce2cded5
L
11167osf3* | osf4* | osf5*)
11168 version_type=osf
11169 need_lib_prefix=no
11170 need_version=no
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11176 ;;
d7040cdb 11177
ce2cded5
L
11178rdos*)
11179 dynamic_linker=no
11180 ;;
d7040cdb 11181
ce2cded5
L
11182solaris*)
11183 version_type=linux
11184 need_lib_prefix=no
11185 need_version=no
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 hardcode_into_libs=yes
11191 # ldd complains unless libraries are executable
11192 postinstall_cmds='chmod +x $lib'
11193 ;;
d7040cdb 11194
ce2cded5
L
11195sunos4*)
11196 version_type=sunos
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11199 shlibpath_var=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath=yes
11201 if test "$with_gnu_ld" = yes; then
11202 need_lib_prefix=no
11203 fi
11204 need_version=yes
11205 ;;
d7040cdb 11206
ce2cded5
L
11207sysv4 | sysv4.3*)
11208 version_type=linux
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 shlibpath_var=LD_LIBRARY_PATH
11212 case $host_vendor in
11213 sni)
11214 shlibpath_overrides_runpath=no
11215 need_lib_prefix=no
11216 runpath_var=LD_RUN_PATH
11217 ;;
11218 siemens)
11219 need_lib_prefix=no
11220 ;;
11221 motorola)
11222 need_lib_prefix=no
11223 need_version=no
11224 shlibpath_overrides_runpath=no
11225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11226 ;;
11227 esac
11228 ;;
d7040cdb 11229
ce2cded5
L
11230sysv4*MP*)
11231 if test -d /usr/nec ;then
11232 version_type=linux
11233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11234 soname_spec='$libname${shared_ext}.$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 fi
11237 ;;
d7040cdb 11238
ce2cded5
L
11239sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11240 version_type=freebsd-elf
11241 need_lib_prefix=no
11242 need_version=no
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=yes
11247 hardcode_into_libs=yes
11248 if test "$with_gnu_ld" = yes; then
11249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11250 else
11251 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11252 case $host_os in
11253 sco3.2v5*)
11254 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11255 ;;
11256 esac
11257 fi
11258 sys_lib_dlsearch_path_spec='/usr/lib'
11259 ;;
d7040cdb 11260
ce2cded5
L
11261tpf*)
11262 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
b214d478 11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11267 shlibpath_var=LD_LIBRARY_PATH
11268 shlibpath_overrides_runpath=no
11269 hardcode_into_libs=yes
11270 ;;
d7040cdb 11271
ce2cded5
L
11272uts4*)
11273 version_type=linux
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 ;;
d7040cdb 11278
ce2cded5
L
11279*)
11280 dynamic_linker=no
11281 ;;
11282esac
81ecdfbb
RW
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11284$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11285test "$dynamic_linker" = no && can_build_shared=no
11286
11287variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11288if test "$GCC" = yes; then
11289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11290fi
11291
b214d478
SE
11292if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11293 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11294fi
11295if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11296 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11297fi
11298
d7040cdb
SE
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
d7040cdb 11310
d7040cdb 11311
d7040cdb 11312
d7040cdb 11313
d7040cdb
SE
11314
11315
11316
11317
d7040cdb 11318
d7040cdb
SE
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
d7040cdb
SE
11332
11333
11334
11335
d7040cdb
SE
11336
11337
11338
11339
d7040cdb 11340
d7040cdb 11341
d7040cdb 11342
d7040cdb 11343
d7040cdb 11344
d7040cdb 11345
d7040cdb 11346
d7040cdb
SE
11347
11348
11349
11350
11351
d7040cdb 11352
d7040cdb 11353
d7040cdb 11354
d7040cdb 11355
d7040cdb 11356
d7040cdb 11357
d7040cdb
SE
11358
11359
11360
11361
11362
d7040cdb
SE
11363
11364
d7040cdb 11365
d7040cdb 11366
d7040cdb 11367
d7040cdb 11368
ce2cded5
L
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
3725885a
RW
11379
11380
11381
11382
11383
ce2cded5
L
11384
11385
11386
11387
11388
11389
81ecdfbb
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11391$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11392hardcode_action=
11393if test -n "$hardcode_libdir_flag_spec" ||
11394 test -n "$runpath_var" ||
11395 test "X$hardcode_automatic" = "Xyes" ; then
11396
11397 # We can hardcode non-existent directories.
11398 if test "$hardcode_direct" != no &&
11399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11400 # have to relink, otherwise we might link with an installed library
11401 # when we should be linking with a yet-to-be-installed one
11402 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11403 test "$hardcode_minus_L" != no; then
11404 # Linking always hardcodes the temporary library directory.
11405 hardcode_action=relink
11406 else
11407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11408 hardcode_action=immediate
d7040cdb 11409 fi
d7040cdb 11410else
ce2cded5
L
11411 # We cannot hardcode anything, or else we can only hardcode existing
11412 # directories.
11413 hardcode_action=unsupported
d7040cdb 11414fi
81ecdfbb
RW
11415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11416$as_echo "$hardcode_action" >&6; }
d7040cdb 11417
ce2cded5
L
11418if test "$hardcode_action" = relink ||
11419 test "$inherit_rpath" = yes; then
11420 # Fast installation is not supported
11421 enable_fast_install=no
11422elif test "$shlibpath_overrides_runpath" = yes ||
11423 test "$enable_shared" = no; then
11424 # Fast installation is not necessary
11425 enable_fast_install=needless
d7040cdb
SE
11426fi
11427
d7040cdb 11428
d7040cdb 11429
d7040cdb 11430
d7040cdb 11431
d7040cdb 11432
ce2cded5
L
11433 if test "x$enable_dlopen" != xyes; then
11434 enable_dlopen=unknown
11435 enable_dlopen_self=unknown
11436 enable_dlopen_self_static=unknown
d7040cdb 11437else
ce2cded5
L
11438 lt_cv_dlopen=no
11439 lt_cv_dlopen_libs=
d7040cdb 11440
ce2cded5
L
11441 case $host_os in
11442 beos*)
11443 lt_cv_dlopen="load_add_on"
11444 lt_cv_dlopen_libs=
11445 lt_cv_dlopen_self=yes
11446 ;;
d7040cdb 11447
b214d478 11448 mingw* | pw32* | cegcc*)
ce2cded5
L
11449 lt_cv_dlopen="LoadLibrary"
11450 lt_cv_dlopen_libs=
11451 ;;
11452
11453 cygwin*)
11454 lt_cv_dlopen="dlopen"
11455 lt_cv_dlopen_libs=
11456 ;;
11457
11458 darwin*)
11459 # if libdl is installed we need to link against it
81ecdfbb
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11461$as_echo_n "checking for dlopen in -ldl... " >&6; }
11462if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
d7040cdb 11464else
ce2cded5
L
11465 ac_check_lib_save_LIBS=$LIBS
11466LIBS="-ldl $LIBS"
81ecdfbb 11467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11468/* end confdefs.h. */
11469
81ecdfbb
RW
11470/* Override any GCC internal prototype to avoid an error.
11471 Use char because int might match the return type of a GCC
11472 builtin and then its argument prototype would still apply. */
ce2cded5
L
11473#ifdef __cplusplus
11474extern "C"
11475#endif
ce2cded5
L
11476char dlopen ();
11477int
11478main ()
11479{
81ecdfbb 11480return dlopen ();
ce2cded5
L
11481 ;
11482 return 0;
11483}
11484_ACEOF
81ecdfbb 11485if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11486 ac_cv_lib_dl_dlopen=yes
11487else
81ecdfbb 11488 ac_cv_lib_dl_dlopen=no
d7040cdb 11489fi
81ecdfbb
RW
11490rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11492LIBS=$ac_check_lib_save_LIBS
d7040cdb 11493fi
81ecdfbb
RW
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11495$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11496if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11497 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11498else
d7040cdb 11499
ce2cded5
L
11500 lt_cv_dlopen="dyld"
11501 lt_cv_dlopen_libs=
11502 lt_cv_dlopen_self=yes
11503
d7040cdb 11504fi
ce2cded5
L
11505
11506 ;;
11507
11508 *)
81ecdfbb
RW
11509 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11510if test "x$ac_cv_func_shl_load" = x""yes; then :
ce2cded5
L
11511 lt_cv_dlopen="shl_load"
11512else
81ecdfbb
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11514$as_echo_n "checking for shl_load in -ldld... " >&6; }
11515if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
ce2cded5
L
11517else
11518 ac_check_lib_save_LIBS=$LIBS
11519LIBS="-ldld $LIBS"
81ecdfbb 11520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11521/* end confdefs.h. */
d7040cdb 11522
81ecdfbb
RW
11523/* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
ce2cded5
L
11526#ifdef __cplusplus
11527extern "C"
11528#endif
ce2cded5
L
11529char shl_load ();
11530int
11531main ()
11532{
81ecdfbb 11533return shl_load ();
ce2cded5
L
11534 ;
11535 return 0;
11536}
11537_ACEOF
81ecdfbb 11538if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11539 ac_cv_lib_dld_shl_load=yes
11540else
81ecdfbb 11541 ac_cv_lib_dld_shl_load=no
ce2cded5 11542fi
81ecdfbb
RW
11543rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11545LIBS=$ac_check_lib_save_LIBS
11546fi
81ecdfbb
RW
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11548$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11549if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
b214d478 11550 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11551else
81ecdfbb
RW
11552 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11553if test "x$ac_cv_func_dlopen" = x""yes; then :
ce2cded5
L
11554 lt_cv_dlopen="dlopen"
11555else
81ecdfbb
RW
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11557$as_echo_n "checking for dlopen in -ldl... " >&6; }
11558if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
d7040cdb 11560else
ce2cded5
L
11561 ac_check_lib_save_LIBS=$LIBS
11562LIBS="-ldl $LIBS"
81ecdfbb 11563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11564/* end confdefs.h. */
11565
81ecdfbb
RW
11566/* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
ce2cded5
L
11569#ifdef __cplusplus
11570extern "C"
11571#endif
ce2cded5 11572char dlopen ();
d7040cdb
SE
11573int
11574main ()
11575{
81ecdfbb 11576return dlopen ();
d7040cdb
SE
11577 ;
11578 return 0;
11579}
11580_ACEOF
81ecdfbb 11581if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11582 ac_cv_lib_dl_dlopen=yes
d7040cdb 11583else
81ecdfbb 11584 ac_cv_lib_dl_dlopen=no
d7040cdb 11585fi
81ecdfbb
RW
11586rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11588LIBS=$ac_check_lib_save_LIBS
d7040cdb 11589fi
81ecdfbb
RW
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11591$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11592if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
ce2cded5 11593 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11594else
81ecdfbb
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11596$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11597if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
d7040cdb 11599else
ce2cded5
L
11600 ac_check_lib_save_LIBS=$LIBS
11601LIBS="-lsvld $LIBS"
81ecdfbb 11602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11603/* end confdefs.h. */
d7040cdb 11604
81ecdfbb
RW
11605/* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
ce2cded5
L
11608#ifdef __cplusplus
11609extern "C"
11610#endif
ce2cded5 11611char dlopen ();
d7040cdb
SE
11612int
11613main ()
11614{
81ecdfbb 11615return dlopen ();
d7040cdb
SE
11616 ;
11617 return 0;
11618}
11619_ACEOF
81ecdfbb 11620if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11621 ac_cv_lib_svld_dlopen=yes
d7040cdb 11622else
81ecdfbb 11623 ac_cv_lib_svld_dlopen=no
d7040cdb 11624fi
81ecdfbb
RW
11625rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11627LIBS=$ac_check_lib_save_LIBS
d7040cdb 11628fi
81ecdfbb
RW
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11630$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11631if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
ce2cded5
L
11632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11633else
81ecdfbb
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11635$as_echo_n "checking for dld_link in -ldld... " >&6; }
11636if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11637 $as_echo_n "(cached) " >&6
ce2cded5
L
11638else
11639 ac_check_lib_save_LIBS=$LIBS
11640LIBS="-ldld $LIBS"
81ecdfbb 11641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11642/* end confdefs.h. */
11643
81ecdfbb
RW
11644/* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
ce2cded5
L
11647#ifdef __cplusplus
11648extern "C"
11649#endif
ce2cded5 11650char dld_link ();
d7040cdb
SE
11651int
11652main ()
11653{
81ecdfbb 11654return dld_link ();
d7040cdb
SE
11655 ;
11656 return 0;
11657}
11658_ACEOF
81ecdfbb 11659if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11660 ac_cv_lib_dld_dld_link=yes
d7040cdb 11661else
81ecdfbb 11662 ac_cv_lib_dld_dld_link=no
d7040cdb 11663fi
81ecdfbb
RW
11664rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11666LIBS=$ac_check_lib_save_LIBS
11667fi
81ecdfbb
RW
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11669$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11670if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
b214d478 11671 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11672fi
11673
11674
11675fi
11676
11677
11678fi
11679
11680
11681fi
11682
11683
11684fi
11685
11686
11687fi
11688
11689 ;;
11690 esac
11691
11692 if test "x$lt_cv_dlopen" != xno; then
11693 enable_dlopen=yes
11694 else
11695 enable_dlopen=no
11696 fi
11697
11698 case $lt_cv_dlopen in
11699 dlopen)
11700 save_CPPFLAGS="$CPPFLAGS"
11701 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702
11703 save_LDFLAGS="$LDFLAGS"
11704 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11705
11706 save_LIBS="$LIBS"
11707 LIBS="$lt_cv_dlopen_libs $LIBS"
11708
81ecdfbb
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11710$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11711if test "${lt_cv_dlopen_self+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
ce2cded5
L
11713else
11714 if test "$cross_compiling" = yes; then :
11715 lt_cv_dlopen_self=cross
11716else
11717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718 lt_status=$lt_dlunknown
11719 cat > conftest.$ac_ext <<_LT_EOF
6757cf57 11720#line 11720 "configure"
ce2cded5
L
11721#include "confdefs.h"
11722
11723#if HAVE_DLFCN_H
11724#include <dlfcn.h>
11725#endif
11726
11727#include <stdio.h>
11728
11729#ifdef RTLD_GLOBAL
11730# define LT_DLGLOBAL RTLD_GLOBAL
11731#else
11732# ifdef DL_GLOBAL
11733# define LT_DLGLOBAL DL_GLOBAL
11734# else
11735# define LT_DLGLOBAL 0
11736# endif
11737#endif
11738
11739/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740 find out it does not work in some platform. */
11741#ifndef LT_DLLAZY_OR_NOW
11742# ifdef RTLD_LAZY
11743# define LT_DLLAZY_OR_NOW RTLD_LAZY
11744# else
11745# ifdef DL_LAZY
11746# define LT_DLLAZY_OR_NOW DL_LAZY
11747# else
11748# ifdef RTLD_NOW
11749# define LT_DLLAZY_OR_NOW RTLD_NOW
11750# else
11751# ifdef DL_NOW
11752# define LT_DLLAZY_OR_NOW DL_NOW
11753# else
11754# define LT_DLLAZY_OR_NOW 0
11755# endif
11756# endif
11757# endif
11758# endif
11759#endif
11760
3725885a
RW
11761/* When -fvisbility=hidden is used, assume the code has been annotated
11762 correspondingly for the symbols needed. */
11763#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764void fnord () __attribute__((visibility("default")));
11765#endif
11766
11767void fnord () { int i=42; }
ce2cded5 11768int main ()
d7040cdb 11769{
ce2cded5
L
11770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771 int status = $lt_dlunknown;
11772
11773 if (self)
11774 {
11775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11776 else
11777 {
11778 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11779 else puts (dlerror ());
11780 }
ce2cded5
L
11781 /* dlclose (self); */
11782 }
11783 else
11784 puts (dlerror ());
11785
b214d478 11786 return status;
d7040cdb 11787}
ce2cded5 11788_LT_EOF
81ecdfbb 11789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11790 (eval $ac_link) 2>&5
d7040cdb 11791 ac_status=$?
81ecdfbb
RW
11792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11794 (./conftest; exit; ) >&5 2>/dev/null
11795 lt_status=$?
11796 case x$lt_status in
11797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11799 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11800 esac
11801 else :
11802 # compilation failed
11803 lt_cv_dlopen_self=no
11804 fi
11805fi
11806rm -fr conftest*
11807
11808
11809fi
81ecdfbb
RW
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11811$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11812
11813 if test "x$lt_cv_dlopen_self" = xyes; then
11814 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11816$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11817if test "${lt_cv_dlopen_self_static+set}" = set; then :
11818 $as_echo_n "(cached) " >&6
ce2cded5
L
11819else
11820 if test "$cross_compiling" = yes; then :
11821 lt_cv_dlopen_self_static=cross
11822else
11823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11824 lt_status=$lt_dlunknown
11825 cat > conftest.$ac_ext <<_LT_EOF
6757cf57 11826#line 11826 "configure"
ce2cded5
L
11827#include "confdefs.h"
11828
11829#if HAVE_DLFCN_H
11830#include <dlfcn.h>
11831#endif
11832
11833#include <stdio.h>
11834
11835#ifdef RTLD_GLOBAL
11836# define LT_DLGLOBAL RTLD_GLOBAL
11837#else
11838# ifdef DL_GLOBAL
11839# define LT_DLGLOBAL DL_GLOBAL
11840# else
11841# define LT_DLGLOBAL 0
11842# endif
11843#endif
11844
11845/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11846 find out it does not work in some platform. */
11847#ifndef LT_DLLAZY_OR_NOW
11848# ifdef RTLD_LAZY
11849# define LT_DLLAZY_OR_NOW RTLD_LAZY
11850# else
11851# ifdef DL_LAZY
11852# define LT_DLLAZY_OR_NOW DL_LAZY
11853# else
11854# ifdef RTLD_NOW
11855# define LT_DLLAZY_OR_NOW RTLD_NOW
11856# else
11857# ifdef DL_NOW
11858# define LT_DLLAZY_OR_NOW DL_NOW
11859# else
11860# define LT_DLLAZY_OR_NOW 0
11861# endif
11862# endif
11863# endif
11864# endif
11865#endif
11866
3cb62297
L
11867/* When -fvisbility=hidden is used, assume the code has been annotated
11868 correspondingly for the symbols needed. */
11869#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11870void fnord () __attribute__((visibility("default")));
11871#endif
11872
11873void fnord () { int i=42; }
11874int main ()
11875{
11876 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877 int status = $lt_dlunknown;
11878
11879 if (self)
11880 {
11881 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11882 else
11883 {
11884 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11885 else puts (dlerror ());
11886 }
11887 /* dlclose (self); */
11888 }
11889 else
11890 puts (dlerror ());
11891
11892 return status;
11893}
11894_LT_EOF
11895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11896 (eval $ac_link) 2>&5
11897 ac_status=$?
11898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11900 (./conftest; exit; ) >&5 2>/dev/null
11901 lt_status=$?
11902 case x$lt_status in
11903 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11906 esac
11907 else :
11908 # compilation failed
11909 lt_cv_dlopen_self_static=no
11910 fi
11911fi
11912rm -fr conftest*
11913
11914
11915fi
11916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11917$as_echo "$lt_cv_dlopen_self_static" >&6; }
11918 fi
11919
11920 CPPFLAGS="$save_CPPFLAGS"
11921 LDFLAGS="$save_LDFLAGS"
11922 LIBS="$save_LIBS"
11923 ;;
11924 esac
11925
11926 case $lt_cv_dlopen_self in
11927 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928 *) enable_dlopen_self=unknown ;;
11929 esac
11930
11931 case $lt_cv_dlopen_self_static in
11932 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933 *) enable_dlopen_self_static=unknown ;;
11934 esac
11935fi
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953striplib=
11954old_striplib=
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11956$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11957if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11958 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11959 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961$as_echo "yes" >&6; }
11962else
11963# FIXME - insert some real tests, host_os isn't really good enough
11964 case $host_os in
11965 darwin*)
11966 if test -n "$STRIP" ; then
11967 striplib="$STRIP -x"
11968 old_striplib="$STRIP -S"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970$as_echo "yes" >&6; }
11971 else
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
11974 fi
11975 ;;
11976 *)
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978$as_echo "no" >&6; }
11979 ;;
11980 esac
11981fi
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 # Report which library types will actually be built
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11996$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11998$as_echo "$can_build_shared" >&6; }
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12001$as_echo_n "checking whether to build shared libraries... " >&6; }
12002 test "$can_build_shared" = "no" && enable_shared=no
12003
12004 # On AIX, shared libraries and static libraries use the same namespace, and
12005 # are all built from PIC.
12006 case $host_os in
12007 aix3*)
12008 test "$enable_shared" = yes && enable_static=no
12009 if test -n "$RANLIB"; then
12010 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12011 postinstall_cmds='$RANLIB $lib'
12012 fi
12013 ;;
12014
12015 aix[4-9]*)
12016 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12017 test "$enable_shared" = yes && enable_static=no
12018 fi
12019 ;;
12020 esac
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12022$as_echo "$enable_shared" >&6; }
12023
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12025$as_echo_n "checking whether to build static libraries... " >&6; }
12026 # Make sure either enable_shared or enable_static is yes.
12027 test "$enable_shared" = yes || enable_static=yes
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12029$as_echo "$enable_static" >&6; }
12030
12031
12032
12033
12034fi
12035ac_ext=c
12036ac_cpp='$CPP $CPPFLAGS'
12037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12039ac_compiler_gnu=$ac_cv_c_compiler_gnu
12040
12041CC="$lt_save_CC"
12042
12043 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12044 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12045 (test "X$CXX" != "Xg++"))) ; then
12046 ac_ext=cpp
12047ac_cpp='$CXXCPP $CPPFLAGS'
12048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12052$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12053if test -z "$CXXCPP"; then
12054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
12056else
12057 # Double quotes because CXXCPP needs to be expanded
12058 for CXXCPP in "$CXX -E" "/lib/cpp"
12059 do
12060 ac_preproc_ok=false
12061for ac_cxx_preproc_warn_flag in '' yes
12062do
12063 # Use a header file that comes with gcc, so configuring glibc
12064 # with a fresh cross-compiler works.
12065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 # <limits.h> exists even on freestanding compilers.
12067 # On the NeXT, cc -E runs the code through the compiler's parser,
12068 # not just through cpp. "Syntax error" is here to catch this case.
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h. */
12071#ifdef __STDC__
12072# include <limits.h>
12073#else
12074# include <assert.h>
12075#endif
12076 Syntax error
12077_ACEOF
12078if ac_fn_cxx_try_cpp "$LINENO"; then :
12079
12080else
12081 # Broken: fails on valid input.
12082continue
12083fi
12084rm -f conftest.err conftest.$ac_ext
12085
12086 # OK, works on sane cases. Now check whether nonexistent headers
12087 # can be detected and how.
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h. */
12090#include <ac_nonexistent.h>
12091_ACEOF
12092if ac_fn_cxx_try_cpp "$LINENO"; then :
12093 # Broken: success on invalid input.
12094continue
12095else
12096 # Passes both tests.
12097ac_preproc_ok=:
12098break
12099fi
12100rm -f conftest.err conftest.$ac_ext
12101
12102done
12103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12104rm -f conftest.err conftest.$ac_ext
12105if $ac_preproc_ok; then :
12106 break
12107fi
12108
12109 done
12110 ac_cv_prog_CXXCPP=$CXXCPP
12111
12112fi
12113 CXXCPP=$ac_cv_prog_CXXCPP
12114else
12115 ac_cv_prog_CXXCPP=$CXXCPP
12116fi
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12118$as_echo "$CXXCPP" >&6; }
12119ac_preproc_ok=false
12120for ac_cxx_preproc_warn_flag in '' yes
12121do
12122 # Use a header file that comes with gcc, so configuring glibc
12123 # with a fresh cross-compiler works.
12124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 # <limits.h> exists even on freestanding compilers.
12126 # On the NeXT, cc -E runs the code through the compiler's parser,
12127 # not just through cpp. "Syntax error" is here to catch this case.
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h. */
12130#ifdef __STDC__
12131# include <limits.h>
12132#else
12133# include <assert.h>
12134#endif
12135 Syntax error
12136_ACEOF
12137if ac_fn_cxx_try_cpp "$LINENO"; then :
12138
12139else
12140 # Broken: fails on valid input.
12141continue
12142fi
12143rm -f conftest.err conftest.$ac_ext
12144
12145 # OK, works on sane cases. Now check whether nonexistent headers
12146 # can be detected and how.
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148/* end confdefs.h. */
12149#include <ac_nonexistent.h>
12150_ACEOF
12151if ac_fn_cxx_try_cpp "$LINENO"; then :
12152 # Broken: success on invalid input.
12153continue
12154else
12155 # Passes both tests.
12156ac_preproc_ok=:
12157break
12158fi
12159rm -f conftest.err conftest.$ac_ext
12160
12161done
12162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12163rm -f conftest.err conftest.$ac_ext
12164if $ac_preproc_ok; then :
12165
12166else
12167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12169as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12170See \`config.log' for more details." "$LINENO" 5; }
12171fi
12172
12173ac_ext=c
12174ac_cpp='$CPP $CPPFLAGS'
12175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12177ac_compiler_gnu=$ac_cv_c_compiler_gnu
12178
12179else
12180 _lt_caught_CXX_error=yes
12181fi
12182
12183ac_ext=cpp
12184ac_cpp='$CXXCPP $CPPFLAGS'
12185ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12188
12189archive_cmds_need_lc_CXX=no
12190allow_undefined_flag_CXX=
12191always_export_symbols_CXX=no
12192archive_expsym_cmds_CXX=
12193compiler_needs_object_CXX=no
12194export_dynamic_flag_spec_CXX=
12195hardcode_direct_CXX=no
12196hardcode_direct_absolute_CXX=no
12197hardcode_libdir_flag_spec_CXX=
12198hardcode_libdir_flag_spec_ld_CXX=
12199hardcode_libdir_separator_CXX=
12200hardcode_minus_L_CXX=no
12201hardcode_shlibpath_var_CXX=unsupported
12202hardcode_automatic_CXX=no
12203inherit_rpath_CXX=no
12204module_cmds_CXX=
12205module_expsym_cmds_CXX=
12206link_all_deplibs_CXX=unknown
12207old_archive_cmds_CXX=$old_archive_cmds
12208reload_flag_CXX=$reload_flag
12209reload_cmds_CXX=$reload_cmds
12210no_undefined_flag_CXX=
12211whole_archive_flag_spec_CXX=
12212enable_shared_with_static_runtimes_CXX=no
12213
12214# Source file extension for C++ test sources.
12215ac_ext=cpp
12216
12217# Object file extension for compiled C++ test sources.
12218objext=o
12219objext_CXX=$objext
12220
12221# No sense in running all these tests if we already determined that
12222# the CXX compiler isn't working. Some variables (like enable_shared)
12223# are currently assumed to apply to all compilers on this platform,
12224# and will be corrupted by setting them based on a non-working compiler.
12225if test "$_lt_caught_CXX_error" != yes; then
12226 # Code to be used in simple compile tests
12227 lt_simple_compile_test_code="int some_variable = 0;"
12228
12229 # Code to be used in simple link tests
12230 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12231
12232 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12233
12234
12235
12236
12237
12238
12239# If no C compiler was specified, use CC.
12240LTCC=${LTCC-"$CC"}
12241
12242# If no C compiler flags were specified, use CFLAGS.
12243LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12244
12245# Allow CC to be a program name with arguments.
12246compiler=$CC
12247
12248
12249 # save warnings/boilerplate of simple test code
12250 ac_outfile=conftest.$ac_objext
12251echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12252eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12253_lt_compiler_boilerplate=`cat conftest.err`
12254$RM conftest*
12255
12256 ac_outfile=conftest.$ac_objext
12257echo "$lt_simple_link_test_code" >conftest.$ac_ext
12258eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12259_lt_linker_boilerplate=`cat conftest.err`
12260$RM -r conftest*
12261
12262
12263 # Allow CC to be a program name with arguments.
12264 lt_save_CC=$CC
12265 lt_save_LD=$LD
12266 lt_save_GCC=$GCC
12267 GCC=$GXX
12268 lt_save_with_gnu_ld=$with_gnu_ld
12269 lt_save_path_LD=$lt_cv_path_LD
12270 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12271 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12272 else
12273 $as_unset lt_cv_prog_gnu_ld
12274 fi
12275 if test -n "${lt_cv_path_LDCXX+set}"; then
12276 lt_cv_path_LD=$lt_cv_path_LDCXX
12277 else
12278 $as_unset lt_cv_path_LD
12279 fi
12280 test -z "${LDCXX+set}" || LD=$LDCXX
12281 CC=${CXX-"c++"}
12282 compiler=$CC
12283 compiler_CXX=$CC
12284 for cc_temp in $compiler""; do
12285 case $cc_temp in
12286 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12287 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12288 \-*) ;;
12289 *) break;;
12290 esac
12291done
12292cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12293
12294
12295 if test -n "$compiler"; then
12296 # We don't want -fno-exception when compiling C++ code, so set the
12297 # no_builtin_flag separately
12298 if test "$GXX" = yes; then
12299 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12300 else
12301 lt_prog_compiler_no_builtin_flag_CXX=
12302 fi
12303
12304 if test "$GXX" = yes; then
12305 # Set up default GNU C++ configuration
12306
12307
12308
12309# Check whether --with-gnu-ld was given.
12310if test "${with_gnu_ld+set}" = set; then :
12311 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12312else
12313 with_gnu_ld=no
12314fi
12315
12316ac_prog=ld
12317if test "$GCC" = yes; then
12318 # Check if gcc -print-prog-name=ld gives a path.
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12320$as_echo_n "checking for ld used by $CC... " >&6; }
12321 case $host in
12322 *-*-mingw*)
12323 # gcc leaves a trailing carriage return which upsets mingw
12324 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12325 *)
12326 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12327 esac
12328 case $ac_prog in
12329 # Accept absolute paths.
12330 [\\/]* | ?:[\\/]*)
12331 re_direlt='/[^/][^/]*/\.\./'
12332 # Canonicalize the pathname of ld
12333 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12334 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12335 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12336 done
12337 test -z "$LD" && LD="$ac_prog"
12338 ;;
12339 "")
12340 # If it fails, then pretend we aren't using GCC.
12341 ac_prog=ld
12342 ;;
12343 *)
12344 # If it is relative, then search for the first ld in PATH.
12345 with_gnu_ld=unknown
12346 ;;
12347 esac
12348elif test "$with_gnu_ld" = yes; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12350$as_echo_n "checking for GNU ld... " >&6; }
12351else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12353$as_echo_n "checking for non-GNU ld... " >&6; }
12354fi
12355if test "${lt_cv_path_LD+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357else
12358 if test -z "$LD"; then
12359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12360 for ac_dir in $PATH; do
12361 IFS="$lt_save_ifs"
12362 test -z "$ac_dir" && ac_dir=.
12363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12364 lt_cv_path_LD="$ac_dir/$ac_prog"
12365 # Check to see if the program is GNU ld. I'd rather use --version,
12366 # but apparently some variants of GNU ld only accept -v.
12367 # Break only if it was the GNU/non-GNU ld that we prefer.
12368 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12369 *GNU* | *'with BFD'*)
12370 test "$with_gnu_ld" != no && break
12371 ;;
12372 *)
12373 test "$with_gnu_ld" != yes && break
12374 ;;
12375 esac
12376 fi
12377 done
12378 IFS="$lt_save_ifs"
12379else
12380 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12381fi
12382fi
12383
12384LD="$lt_cv_path_LD"
12385if test -n "$LD"; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12387$as_echo "$LD" >&6; }
12388else
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391fi
12392test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12394$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12395if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397else
12398 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12399case `$LD -v 2>&1 </dev/null` in
12400*GNU* | *'with BFD'*)
12401 lt_cv_prog_gnu_ld=yes
12402 ;;
12403*)
12404 lt_cv_prog_gnu_ld=no
12405 ;;
12406esac
12407fi
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12409$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12410with_gnu_ld=$lt_cv_prog_gnu_ld
12411
12412
12413
12414
12415
12416
12417
12418 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12419 # archiving commands below assume that GNU ld is being used.
12420 if test "$with_gnu_ld" = yes; then
6e733cce
L
12421 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12422 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
12423
12424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12426
12427 # If archive_cmds runs LD, not CC, wlarc should be empty
12428 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12429 # investigate it a little bit more. (MM)
12430 wlarc='${wl}'
12431
12432 # ancient GNU ld didn't support --whole-archive et. al.
12433 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12434 $GREP 'no-whole-archive' > /dev/null; then
12435 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12436 else
12437 whole_archive_flag_spec_CXX=
12438 fi
12439 else
12440 with_gnu_ld=no
12441 wlarc=
12442
12443 # A generic and very simple default shared library creation
12444 # command for GNU C++ for the case where it uses the native
12445 # linker, instead of GNU ld. If possible, this setting should
12446 # overridden to take advantage of the native linker features on
12447 # the platform it is being used on.
12448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12449 fi
12450
12451 # Commands to make compiler produce verbose output that lists
12452 # what "hidden" libraries, object files and flags are used when
12453 # linking a shared library.
12454 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12455
12456 else
12457 GXX=no
12458 with_gnu_ld=no
12459 wlarc=
12460 fi
12461
12462 # PORTME: fill in a description of your system's C++ link characteristics
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12464$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12465 ld_shlibs_CXX=yes
12466 case $host_os in
12467 aix3*)
12468 # FIXME: insert proper C++ library support
12469 ld_shlibs_CXX=no
12470 ;;
12471 aix[4-9]*)
12472 if test "$host_cpu" = ia64; then
12473 # On IA64, the linker does run time linking by default, so we don't
12474 # have to do anything special.
12475 aix_use_runtimelinking=no
12476 exp_sym_flag='-Bexport'
12477 no_entry_flag=""
12478 else
12479 aix_use_runtimelinking=no
12480
12481 # Test if we are trying to use run time linking or normal
12482 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12483 # need to do runtime linking.
12484 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12485 for ld_flag in $LDFLAGS; do
12486 case $ld_flag in
12487 *-brtl*)
12488 aix_use_runtimelinking=yes
12489 break
12490 ;;
12491 esac
12492 done
12493 ;;
12494 esac
12495
12496 exp_sym_flag='-bexport'
12497 no_entry_flag='-bnoentry'
12498 fi
12499
12500 # When large executables or shared objects are built, AIX ld can
12501 # have problems creating the table of contents. If linking a library
12502 # or program results in "error TOC overflow" add -mminimal-toc to
12503 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12504 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12505
12506 archive_cmds_CXX=''
12507 hardcode_direct_CXX=yes
12508 hardcode_direct_absolute_CXX=yes
12509 hardcode_libdir_separator_CXX=':'
12510 link_all_deplibs_CXX=yes
12511 file_list_spec_CXX='${wl}-f,'
12512
12513 if test "$GXX" = yes; then
12514 case $host_os in aix4.[012]|aix4.[012].*)
12515 # We only want to do this on AIX 4.2 and lower, the check
12516 # below for broken collect2 doesn't work under 4.3+
12517 collect2name=`${CC} -print-prog-name=collect2`
12518 if test -f "$collect2name" &&
12519 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12520 then
12521 # We have reworked collect2
12522 :
12523 else
12524 # We have old collect2
12525 hardcode_direct_CXX=unsupported
12526 # It fails to find uninstalled libraries when the uninstalled
12527 # path is not listed in the libpath. Setting hardcode_minus_L
12528 # to unsupported forces relinking
12529 hardcode_minus_L_CXX=yes
12530 hardcode_libdir_flag_spec_CXX='-L$libdir'
12531 hardcode_libdir_separator_CXX=
12532 fi
12533 esac
12534 shared_flag='-shared'
12535 if test "$aix_use_runtimelinking" = yes; then
12536 shared_flag="$shared_flag "'${wl}-G'
12537 fi
12538 else
12539 # not using gcc
12540 if test "$host_cpu" = ia64; then
12541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12542 # chokes on -Wl,-G. The following line is correct:
12543 shared_flag='-G'
12544 else
12545 if test "$aix_use_runtimelinking" = yes; then
12546 shared_flag='${wl}-G'
12547 else
12548 shared_flag='${wl}-bM:SRE'
12549 fi
12550 fi
12551 fi
12552
12553 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12554 # It seems that -bexpall does not export symbols beginning with
12555 # underscore (_), so it is better to generate a list of symbols to
12556 # export.
12557 always_export_symbols_CXX=yes
12558 if test "$aix_use_runtimelinking" = yes; then
12559 # Warning - without using the other runtime loading flags (-brtl),
12560 # -berok will link without error, but may produce a broken library.
12561 allow_undefined_flag_CXX='-berok'
12562 # Determine the default libpath from the value encoded in an empty
12563 # executable.
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565/* end confdefs.h. */
12566
12567int
12568main ()
12569{
12570
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575if ac_fn_cxx_try_link "$LINENO"; then :
12576
12577lt_aix_libpath_sed='
12578 /Import File Strings/,/^$/ {
12579 /^0/ {
12580 s/^0 *\(.*\)$/\1/
12581 p
12582 }
12583 }'
12584aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12585# Check for a 64-bit object if we didn't find anything.
12586if test -z "$aix_libpath"; then
12587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588fi
12589fi
12590rm -f core conftest.err conftest.$ac_objext \
12591 conftest$ac_exeext conftest.$ac_ext
12592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12593
12594 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12595
12596 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"
12597 else
12598 if test "$host_cpu" = ia64; then
12599 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12600 allow_undefined_flag_CXX="-z nodefs"
12601 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"
12602 else
12603 # Determine the default libpath from the value encoded in an
12604 # empty executable.
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606/* end confdefs.h. */
12607
12608int
12609main ()
12610{
12611
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616if ac_fn_cxx_try_link "$LINENO"; then :
12617
12618lt_aix_libpath_sed='
12619 /Import File Strings/,/^$/ {
12620 /^0/ {
12621 s/^0 *\(.*\)$/\1/
12622 p
12623 }
12624 }'
12625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12626# Check for a 64-bit object if we didn't find anything.
12627if test -z "$aix_libpath"; then
12628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629fi
12630fi
12631rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634
12635 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12636 # Warning - without using the other run time loading flags,
12637 # -berok will link without error, but may produce a broken library.
12638 no_undefined_flag_CXX=' ${wl}-bernotok'
12639 allow_undefined_flag_CXX=' ${wl}-berok'
12640 if test "$with_gnu_ld" = yes; then
12641 # We only use this code for GNU lds that support --whole-archive.
12642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12643 else
12644 # Exported symbols can be pulled into shared objects from archives
12645 whole_archive_flag_spec_CXX='$convenience'
12646 fi
12647 archive_cmds_need_lc_CXX=yes
12648 # This is similar to how AIX traditionally builds its shared
12649 # libraries.
12650 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'
12651 fi
12652 fi
12653 ;;
12654
12655 beos*)
12656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12657 allow_undefined_flag_CXX=unsupported
12658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12659 # support --undefined. This deserves some investigation. FIXME
12660 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12661 else
12662 ld_shlibs_CXX=no
12663 fi
12664 ;;
12665
12666 chorus*)
12667 case $cc_basename in
12668 *)
12669 # FIXME: insert proper C++ library support
12670 ld_shlibs_CXX=no
12671 ;;
12672 esac
12673 ;;
12674
12675 cygwin* | mingw* | pw32* | cegcc*)
12676 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12677 # as there is no search path for DLLs.
12678 hardcode_libdir_flag_spec_CXX='-L$libdir'
12679 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12680 allow_undefined_flag_CXX=unsupported
12681 always_export_symbols_CXX=no
12682 enable_shared_with_static_runtimes_CXX=yes
12683
12684 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12685 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'
12686 # If the export-symbols file already is a .def file (1st line
12687 # is EXPORTS), use it as is; otherwise, prepend...
12688 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12689 cp $export_symbols $output_objdir/$soname.def;
12690 else
12691 echo EXPORTS > $output_objdir/$soname.def;
12692 cat $export_symbols >> $output_objdir/$soname.def;
12693 fi~
12694 $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'
12695 else
12696 ld_shlibs_CXX=no
12697 fi
12698 ;;
12699 darwin* | rhapsody*)
12700
12701
12702 archive_cmds_need_lc_CXX=no
12703 hardcode_direct_CXX=no
12704 hardcode_automatic_CXX=yes
12705 hardcode_shlibpath_var_CXX=unsupported
12706 if test "$lt_cv_ld_force_load" = "yes"; then
12707 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\"`'
12708 else
12709 whole_archive_flag_spec_CXX=''
12710 fi
12711 link_all_deplibs_CXX=yes
12712 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12713 case $cc_basename in
12714 ifort*) _lt_dar_can_shared=yes ;;
12715 *) _lt_dar_can_shared=$GCC ;;
12716 esac
12717 if test "$_lt_dar_can_shared" = "yes"; then
12718 output_verbose_link_cmd=func_echo_all
12719 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}"
12720 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12721 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}"
12722 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}"
12723 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12724 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}"
12725 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}"
12726 fi
12727
12728 else
12729 ld_shlibs_CXX=no
12730 fi
12731
12732 ;;
12733
12734 dgux*)
12735 case $cc_basename in
12736 ec++*)
12737 # FIXME: insert proper C++ library support
12738 ld_shlibs_CXX=no
12739 ;;
12740 ghcx*)
12741 # Green Hills C++ Compiler
12742 # FIXME: insert proper C++ library support
12743 ld_shlibs_CXX=no
12744 ;;
12745 *)
12746 # FIXME: insert proper C++ library support
12747 ld_shlibs_CXX=no
12748 ;;
12749 esac
12750 ;;
12751
6d2920c8 12752 freebsd2.*)
3cb62297
L
12753 # C++ shared libraries reported to be fairly broken before
12754 # switch to ELF
12755 ld_shlibs_CXX=no
12756 ;;
12757
12758 freebsd-elf*)
12759 archive_cmds_need_lc_CXX=no
12760 ;;
12761
12762 freebsd* | dragonfly*)
12763 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12764 # conventions
12765 ld_shlibs_CXX=yes
12766 ;;
12767
12768 gnu*)
12769 ;;
12770
12771 haiku*)
12772 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12773 link_all_deplibs_CXX=yes
12774 ;;
12775
12776 hpux9*)
12777 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12778 hardcode_libdir_separator_CXX=:
12779 export_dynamic_flag_spec_CXX='${wl}-E'
12780 hardcode_direct_CXX=yes
12781 hardcode_minus_L_CXX=yes # Not in the search PATH,
12782 # but as the default
12783 # location of the library.
12784
12785 case $cc_basename in
12786 CC*)
12787 # FIXME: insert proper C++ library support
12788 ld_shlibs_CXX=no
12789 ;;
12790 aCC*)
12791 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'
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12795 #
12796 # There doesn't appear to be a way to prevent this compiler from
12797 # explicitly linking system object files so we need to strip them
12798 # from the output so that they don't get included in the library
12799 # dependencies.
12800 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"'
12801 ;;
12802 *)
12803 if test "$GXX" = yes; then
12804 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'
12805 else
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 fi
12809 ;;
12810 esac
12811 ;;
12812
12813 hpux10*|hpux11*)
12814 if test $with_gnu_ld = no; then
12815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12816 hardcode_libdir_separator_CXX=:
12817
12818 case $host_cpu in
12819 hppa*64*|ia64*)
12820 ;;
12821 *)
12822 export_dynamic_flag_spec_CXX='${wl}-E'
12823 ;;
12824 esac
12825 fi
12826 case $host_cpu in
12827 hppa*64*|ia64*)
12828 hardcode_direct_CXX=no
12829 hardcode_shlibpath_var_CXX=no
12830 ;;
12831 *)
12832 hardcode_direct_CXX=yes
12833 hardcode_direct_absolute_CXX=yes
12834 hardcode_minus_L_CXX=yes # Not in the search PATH,
12835 # but as the default
12836 # location of the library.
12837 ;;
12838 esac
12839
12840 case $cc_basename in
12841 CC*)
12842 # FIXME: insert proper C++ library support
12843 ld_shlibs_CXX=no
12844 ;;
12845 aCC*)
12846 case $host_cpu in
12847 hppa*64*)
12848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12849 ;;
12850 ia64*)
12851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 ;;
12853 *)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12855 ;;
12856 esac
12857 # Commands to make compiler produce verbose output that lists
12858 # what "hidden" libraries, object files and flags are used when
12859 # linking a shared library.
12860 #
12861 # There doesn't appear to be a way to prevent this compiler from
12862 # explicitly linking system object files so we need to strip them
12863 # from the output so that they don't get included in the library
12864 # dependencies.
12865 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"'
12866 ;;
12867 *)
12868 if test "$GXX" = yes; then
12869 if test $with_gnu_ld = no; then
12870 case $host_cpu in
12871 hppa*64*)
12872 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12873 ;;
12874 ia64*)
12875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12876 ;;
12877 *)
12878 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'
12879 ;;
12880 esac
12881 fi
12882 else
12883 # FIXME: insert proper C++ library support
12884 ld_shlibs_CXX=no
12885 fi
12886 ;;
12887 esac
12888 ;;
12889
12890 interix[3-9]*)
12891 hardcode_direct_CXX=no
12892 hardcode_shlibpath_var_CXX=no
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894 export_dynamic_flag_spec_CXX='${wl}-E'
12895 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12896 # Instead, shared libraries are loaded at an image base (0x10000000 by
12897 # default) and relocated if they conflict, which is a slow very memory
12898 # consuming and fragmenting process. To avoid this, we pick a random,
12899 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12900 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12901 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'
12902 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'
12903 ;;
12904 irix5* | irix6*)
12905 case $cc_basename in
12906 CC*)
12907 # SGI C++
12908 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'
12909
12910 # Archives containing C++ object files must be created using
12911 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12912 # necessary to make sure instantiated templates are included
12913 # in the archive.
12914 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12915 ;;
12916 *)
12917 if test "$GXX" = yes; then
12918 if test "$with_gnu_ld" = no; then
12919 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'
12920 else
12921 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'
12922 fi
12923 fi
12924 link_all_deplibs_CXX=yes
12925 ;;
12926 esac
12927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12928 hardcode_libdir_separator_CXX=:
12929 inherit_rpath_CXX=yes
12930 ;;
12931
12932 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12933 case $cc_basename in
12934 KCC*)
12935 # Kuck and Associates, Inc. (KAI) C++ Compiler
12936
12937 # KCC will only create a shared library if the output file
12938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12939 # to its proper name (with version) after linking.
12940 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'
12941 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'
12942 # Commands to make compiler produce verbose output that lists
12943 # what "hidden" libraries, object files and flags are used when
12944 # linking a shared library.
12945 #
12946 # There doesn't appear to be a way to prevent this compiler from
12947 # explicitly linking system object files so we need to strip them
12948 # from the output so that they don't get included in the library
12949 # dependencies.
12950 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"'
12951
12952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12953 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12954
12955 # Archives containing C++ object files must be created using
12956 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12957 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12958 ;;
12959 icpc* | ecpc* )
12960 # Intel C++
12961 with_gnu_ld=yes
12962 # version 8.0 and above of icpc choke on multiply defined symbols
12963 # if we add $predep_objects and $postdep_objects, however 7.1 and
12964 # earlier do not add the objects themselves.
12965 case `$CC -V 2>&1` in
12966 *"Version 7."*)
12967 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 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'
12969 ;;
12970 *) # Version 8.0 or newer
12971 tmp_idyn=
12972 case $host_cpu in
12973 ia64*) tmp_idyn=' -i_dynamic';;
12974 esac
12975 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12976 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'
12977 ;;
12978 esac
12979 archive_cmds_need_lc_CXX=no
12980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12982 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12983 ;;
12984 pgCC* | pgcpp*)
12985 # Portland Group C++ compiler
12986 case `$CC -V` in
12987 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12988 prelink_cmds_CXX='tpldir=Template.dir~
12989 rm -rf $tpldir~
12990 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12991 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12992 old_archive_cmds_CXX='tpldir=Template.dir~
12993 rm -rf $tpldir~
12994 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12995 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12996 $RANLIB $oldlib'
12997 archive_cmds_CXX='tpldir=Template.dir~
12998 rm -rf $tpldir~
12999 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13000 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13001 archive_expsym_cmds_CXX='tpldir=Template.dir~
13002 rm -rf $tpldir~
13003 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13004 $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'
13005 ;;
13006 *) # Version 6 and above use weak symbols
13007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13008 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'
13009 ;;
13010 esac
13011
13012 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13013 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13014 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'
13015 ;;
13016 cxx*)
13017 # Compaq C++
13018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 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'
13020
13021 runpath_var=LD_RUN_PATH
13022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13023 hardcode_libdir_separator_CXX=:
13024
13025 # Commands to make compiler produce verbose output that lists
13026 # what "hidden" libraries, object files and flags are used when
13027 # linking a shared library.
13028 #
13029 # There doesn't appear to be a way to prevent this compiler from
13030 # explicitly linking system object files so we need to strip them
13031 # from the output so that they don't get included in the library
13032 # dependencies.
13033 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'
13034 ;;
13035 xl* | mpixl* | bgxl*)
13036 # IBM XL 8.0 on PPC, with GNU ld
13037 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13038 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13039 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13040 if test "x$supports_anon_versioning" = xyes; then
13041 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13042 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13043 echo "local: *; };" >> $output_objdir/$libname.ver~
13044 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13045 fi
13046 ;;
13047 *)
13048 case `$CC -V 2>&1 | sed 5q` in
13049 *Sun\ C*)
13050 # Sun C++ 5.9
13051 no_undefined_flag_CXX=' -zdefs'
13052 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 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'
13054 hardcode_libdir_flag_spec_CXX='-R$libdir'
13055 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'
13056 compiler_needs_object_CXX=yes
13057
13058 # Not sure whether something based on
13059 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13060 # would be better.
13061 output_verbose_link_cmd='func_echo_all'
13062
13063 # Archives containing C++ object files must be created using
13064 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13065 # necessary to make sure instantiated templates are included
13066 # in the archive.
13067 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13068 ;;
13069 esac
13070 ;;
13071 esac
13072 ;;
13073
13074 lynxos*)
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13077 ;;
13078
13079 m88k*)
13080 # FIXME: insert proper C++ library support
13081 ld_shlibs_CXX=no
13082 ;;
13083
13084 mvs*)
13085 case $cc_basename in
13086 cxx*)
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13089 ;;
13090 *)
13091 # FIXME: insert proper C++ library support
13092 ld_shlibs_CXX=no
13093 ;;
13094 esac
13095 ;;
13096
13097 netbsd*)
13098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13099 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13100 wlarc=
13101 hardcode_libdir_flag_spec_CXX='-R$libdir'
13102 hardcode_direct_CXX=yes
13103 hardcode_shlibpath_var_CXX=no
13104 fi
13105 # Workaround some broken pre-1.5 toolchains
13106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13107 ;;
13108
13109 *nto* | *qnx*)
13110 ld_shlibs_CXX=yes
13111 ;;
13112
13113 openbsd2*)
13114 # C++ shared libraries are fairly broken
13115 ld_shlibs_CXX=no
13116 ;;
13117
13118 openbsd*)
13119 if test -f /usr/libexec/ld.so; then
13120 hardcode_direct_CXX=yes
13121 hardcode_shlibpath_var_CXX=no
13122 hardcode_direct_absolute_CXX=yes
13123 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13126 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13127 export_dynamic_flag_spec_CXX='${wl}-E'
13128 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13129 fi
13130 output_verbose_link_cmd=func_echo_all
13131 else
13132 ld_shlibs_CXX=no
13133 fi
13134 ;;
13135
13136 osf3* | osf4* | osf5*)
13137 case $cc_basename in
13138 KCC*)
13139 # Kuck and Associates, Inc. (KAI) C++ Compiler
13140
13141 # KCC will only create a shared library if the output file
13142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13143 # to its proper name (with version) after linking.
13144 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'
13145
13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13147 hardcode_libdir_separator_CXX=:
13148
13149 # Archives containing C++ object files must be created using
13150 # the KAI C++ compiler.
13151 case $host in
13152 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13153 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13154 esac
13155 ;;
13156 RCC*)
13157 # Rational C++ 2.4.1
13158 # FIXME: insert proper C++ library support
13159 ld_shlibs_CXX=no
13160 ;;
13161 cxx*)
13162 case $host in
13163 osf3*)
13164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13165 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'
13166 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13167 ;;
13168 *)
13169 allow_undefined_flag_CXX=' -expect_unresolved \*'
13170 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'
13171 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13172 echo "-hidden">> $lib.exp~
13173 $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~
13174 $RM $lib.exp'
13175 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13176 ;;
13177 esac
13178
13179 hardcode_libdir_separator_CXX=:
13180
13181 # Commands to make compiler produce verbose output that lists
13182 # what "hidden" libraries, object files and flags are used when
13183 # linking a shared library.
13184 #
13185 # There doesn't appear to be a way to prevent this compiler from
13186 # explicitly linking system object files so we need to strip them
13187 # from the output so that they don't get included in the library
13188 # dependencies.
13189 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"'
13190 ;;
13191 *)
13192 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13193 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13194 case $host in
13195 osf3*)
13196 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'
13197 ;;
13198 *)
13199 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'
13200 ;;
13201 esac
13202
13203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13204 hardcode_libdir_separator_CXX=:
13205
13206 # Commands to make compiler produce verbose output that lists
13207 # what "hidden" libraries, object files and flags are used when
13208 # linking a shared library.
13209 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13210
13211 else
13212 # FIXME: insert proper C++ library support
13213 ld_shlibs_CXX=no
13214 fi
13215 ;;
13216 esac
13217 ;;
13218
13219 psos*)
13220 # FIXME: insert proper C++ library support
13221 ld_shlibs_CXX=no
13222 ;;
13223
13224 sunos4*)
13225 case $cc_basename in
13226 CC*)
13227 # Sun C++ 4.x
13228 # FIXME: insert proper C++ library support
13229 ld_shlibs_CXX=no
13230 ;;
13231 lcc*)
13232 # Lucid
13233 # FIXME: insert proper C++ library support
13234 ld_shlibs_CXX=no
13235 ;;
13236 *)
13237 # FIXME: insert proper C++ library support
13238 ld_shlibs_CXX=no
13239 ;;
13240 esac
13241 ;;
13242
13243 solaris*)
13244 case $cc_basename in
13245 CC*)
13246 # Sun C++ 4.2, 5.x and Centerline C++
13247 archive_cmds_need_lc_CXX=yes
13248 no_undefined_flag_CXX=' -zdefs'
13249 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13250 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13251 $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'
13252
13253 hardcode_libdir_flag_spec_CXX='-R$libdir'
13254 hardcode_shlibpath_var_CXX=no
13255 case $host_os in
13256 solaris2.[0-5] | solaris2.[0-5].*) ;;
13257 *)
13258 # The compiler driver will combine and reorder linker options,
13259 # but understands `-z linker_flag'.
13260 # Supported since Solaris 2.6 (maybe 2.5.1?)
13261 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13262 ;;
13263 esac
13264 link_all_deplibs_CXX=yes
13265
13266 output_verbose_link_cmd='func_echo_all'
13267
13268 # Archives containing C++ object files must be created using
13269 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13270 # necessary to make sure instantiated templates are included
13271 # in the archive.
13272 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13273 ;;
13274 gcx*)
13275 # Green Hills C++ Compiler
13276 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13277
13278 # The C++ compiler must be used to create the archive.
13279 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13280 ;;
13281 *)
13282 # GNU C++ compiler with Solaris linker
13283 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13284 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13285 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13286 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13287 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13288 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13289
13290 # Commands to make compiler produce verbose output that lists
13291 # what "hidden" libraries, object files and flags are used when
13292 # linking a shared library.
13293 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13294 else
13295 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13296 # platform.
13297 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13298 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13299 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13300
13301 # Commands to make compiler produce verbose output that lists
13302 # what "hidden" libraries, object files and flags are used when
13303 # linking a shared library.
13304 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13305 fi
13306
13307 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13308 case $host_os in
13309 solaris2.[0-5] | solaris2.[0-5].*) ;;
13310 *)
13311 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13312 ;;
13313 esac
13314 fi
13315 ;;
13316 esac
13317 ;;
13318
13319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13320 no_undefined_flag_CXX='${wl}-z,text'
13321 archive_cmds_need_lc_CXX=no
13322 hardcode_shlibpath_var_CXX=no
13323 runpath_var='LD_RUN_PATH'
13324
13325 case $cc_basename in
13326 CC*)
13327 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13328 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 ;;
13330 *)
13331 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13332 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13333 ;;
13334 esac
13335 ;;
13336
13337 sysv5* | sco3.2v5* | sco5v6*)
13338 # Note: We can NOT use -z defs as we might desire, because we do not
13339 # link with -lc, and that would cause any symbols used from libc to
13340 # always be unresolved, which means just about no library would
13341 # ever link correctly. If we're not using GNU ld we use -z text
13342 # though, which does catch some bad symbols but isn't as heavy-handed
13343 # as -z defs.
13344 no_undefined_flag_CXX='${wl}-z,text'
13345 allow_undefined_flag_CXX='${wl}-z,nodefs'
13346 archive_cmds_need_lc_CXX=no
13347 hardcode_shlibpath_var_CXX=no
13348 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13349 hardcode_libdir_separator_CXX=':'
13350 link_all_deplibs_CXX=yes
13351 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13352 runpath_var='LD_RUN_PATH'
13353
13354 case $cc_basename in
13355 CC*)
13356 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13357 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13358 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13359 '"$old_archive_cmds_CXX"
13360 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13361 '"$reload_cmds_CXX"
13362 ;;
13363 *)
13364 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13365 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13366 ;;
13367 esac
13368 ;;
13369
13370 tandem*)
13371 case $cc_basename in
13372 NCC*)
13373 # NonStop-UX NCC 3.20
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13376 ;;
13377 *)
13378 # FIXME: insert proper C++ library support
13379 ld_shlibs_CXX=no
13380 ;;
13381 esac
13382 ;;
13383
13384 vxworks*)
13385 # FIXME: insert proper C++ library support
13386 ld_shlibs_CXX=no
13387 ;;
13388
13389 *)
13390 # FIXME: insert proper C++ library support
13391 ld_shlibs_CXX=no
13392 ;;
13393 esac
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13396$as_echo "$ld_shlibs_CXX" >&6; }
13397 test "$ld_shlibs_CXX" = no && can_build_shared=no
13398
13399 GCC_CXX="$GXX"
13400 LD_CXX="$LD"
13401
13402 ## CAVEAT EMPTOR:
13403 ## There is no encapsulation within the following macros, do not change
13404 ## the running order or otherwise move them around unless you know exactly
13405 ## what you are doing...
13406 # Dependencies to place before and after the object being linked:
13407predep_objects_CXX=
13408postdep_objects_CXX=
13409predeps_CXX=
13410postdeps_CXX=
13411compiler_lib_search_path_CXX=
13412
13413cat > conftest.$ac_ext <<_LT_EOF
13414class Foo
13415{
13416public:
13417 Foo (void) { a = 0; }
13418private:
13419 int a;
13420};
13421_LT_EOF
13422
13423if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13424 (eval $ac_compile) 2>&5
13425 ac_status=$?
13426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13427 test $ac_status = 0; }; then
13428 # Parse the compiler output and extract the necessary
13429 # objects, libraries and library flags.
13430
13431 # Sentinel used to keep track of whether or not we are before
13432 # the conftest object file.
13433 pre_test_object_deps_done=no
13434
13435 for p in `eval "$output_verbose_link_cmd"`; do
13436 case $p in
13437
13438 -L* | -R* | -l*)
13439 # Some compilers place space between "-{L,R}" and the path.
13440 # Remove the space.
13441 if test $p = "-L" ||
13442 test $p = "-R"; then
13443 prev=$p
13444 continue
13445 else
13446 prev=
13447 fi
13448
13449 if test "$pre_test_object_deps_done" = no; then
13450 case $p in
13451 -L* | -R*)
13452 # Internal compiler library paths should come after those
13453 # provided the user. The postdeps already come after the
13454 # user supplied libs so there is no need to process them.
13455 if test -z "$compiler_lib_search_path_CXX"; then
13456 compiler_lib_search_path_CXX="${prev}${p}"
13457 else
13458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13459 fi
13460 ;;
13461 # The "-l" case would never come before the object being
13462 # linked, so don't bother handling this case.
13463 esac
13464 else
13465 if test -z "$postdeps_CXX"; then
13466 postdeps_CXX="${prev}${p}"
13467 else
13468 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13469 fi
13470 fi
13471 ;;
13472
13473 *.$objext)
13474 # This assumes that the test object file only shows up
13475 # once in the compiler output.
13476 if test "$p" = "conftest.$objext"; then
13477 pre_test_object_deps_done=yes
13478 continue
13479 fi
13480
13481 if test "$pre_test_object_deps_done" = no; then
13482 if test -z "$predep_objects_CXX"; then
13483 predep_objects_CXX="$p"
13484 else
13485 predep_objects_CXX="$predep_objects_CXX $p"
13486 fi
13487 else
13488 if test -z "$postdep_objects_CXX"; then
13489 postdep_objects_CXX="$p"
13490 else
13491 postdep_objects_CXX="$postdep_objects_CXX $p"
13492 fi
13493 fi
13494 ;;
13495
13496 *) ;; # Ignore the rest.
13497
13498 esac
13499 done
13500
13501 # Clean up.
13502 rm -f a.out a.exe
13503else
13504 echo "libtool.m4: error: problem compiling CXX test program"
13505fi
13506
13507$RM -f confest.$objext
13508
13509# PORTME: override above test on systems where it is broken
13510case $host_os in
13511interix[3-9]*)
13512 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13513 # hack all around it, let's just trust "g++" to DTRT.
13514 predep_objects_CXX=
13515 postdep_objects_CXX=
13516 postdeps_CXX=
13517 ;;
13518
13519linux*)
13520 case `$CC -V 2>&1 | sed 5q` in
13521 *Sun\ C*)
13522 # Sun C++ 5.9
13523
13524 # The more standards-conforming stlport4 library is
13525 # incompatible with the Cstd library. Avoid specifying
13526 # it if it's in CXXFLAGS. Ignore libCrun as
13527 # -library=stlport4 depends on it.
13528 case " $CXX $CXXFLAGS " in
13529 *" -library=stlport4 "*)
13530 solaris_use_stlport4=yes
13531 ;;
13532 esac
13533
13534 if test "$solaris_use_stlport4" != yes; then
13535 postdeps_CXX='-library=Cstd -library=Crun'
13536 fi
13537 ;;
13538 esac
13539 ;;
13540
13541solaris*)
13542 case $cc_basename in
13543 CC*)
13544 # The more standards-conforming stlport4 library is
13545 # incompatible with the Cstd library. Avoid specifying
13546 # it if it's in CXXFLAGS. Ignore libCrun as
13547 # -library=stlport4 depends on it.
13548 case " $CXX $CXXFLAGS " in
13549 *" -library=stlport4 "*)
13550 solaris_use_stlport4=yes
13551 ;;
13552 esac
13553
13554 # Adding this requires a known-good setup of shared libraries for
13555 # Sun compiler versions before 5.6, else PIC objects from an old
13556 # archive will be linked into the output, leading to subtle bugs.
13557 if test "$solaris_use_stlport4" != yes; then
13558 postdeps_CXX='-library=Cstd -library=Crun'
13559 fi
13560 ;;
13561 esac
13562 ;;
13563esac
13564
13565
13566case " $postdeps_CXX " in
13567*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13568esac
13569 compiler_lib_search_dirs_CXX=
13570if test -n "${compiler_lib_search_path_CXX}"; then
13571 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13572fi
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
13600
13601
13602
13603
13604 lt_prog_compiler_wl_CXX=
13605lt_prog_compiler_pic_CXX=
13606lt_prog_compiler_static_CXX=
13607
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13609$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13610
13611 # C++ specific cases for pic, static, wl, etc.
13612 if test "$GXX" = yes; then
13613 lt_prog_compiler_wl_CXX='-Wl,'
13614 lt_prog_compiler_static_CXX='-static'
13615
13616 case $host_os in
13617 aix*)
13618 # All AIX code is PIC.
13619 if test "$host_cpu" = ia64; then
13620 # AIX 5 now supports IA64 processor
13621 lt_prog_compiler_static_CXX='-Bstatic'
13622 fi
52204357 13623 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13624 ;;
13625
13626 amigaos*)
13627 case $host_cpu in
13628 powerpc)
13629 # see comment about AmigaOS4 .so support
13630 lt_prog_compiler_pic_CXX='-fPIC'
13631 ;;
13632 m68k)
13633 # FIXME: we need at least 68020 code to build shared libraries, but
13634 # adding the `-m68020' flag to GCC prevents building anything better,
13635 # like `-m68040'.
13636 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13637 ;;
13638 esac
13639 ;;
13640
13641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13642 # PIC is the default for these OSes.
13643 ;;
13644 mingw* | cygwin* | os2* | pw32* | cegcc*)
13645 # This hack is so that the source file can tell whether it is being
13646 # built for inclusion in a dll (and should export symbols for example).
13647 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13648 # (--disable-auto-import) libraries
13649 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13650 ;;
13651 darwin* | rhapsody*)
13652 # PIC is the default on this platform
13653 # Common symbols not allowed in MH_DYLIB files
13654 lt_prog_compiler_pic_CXX='-fno-common'
13655 ;;
13656 *djgpp*)
13657 # DJGPP does not support shared libraries at all
13658 lt_prog_compiler_pic_CXX=
13659 ;;
13660 haiku*)
13661 # PIC is the default for Haiku.
13662 # The "-static" flag exists, but is broken.
13663 lt_prog_compiler_static_CXX=
13664 ;;
13665 interix[3-9]*)
13666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13667 # Instead, we relocate shared libraries at runtime.
13668 ;;
13669 sysv4*MP*)
13670 if test -d /usr/nec; then
13671 lt_prog_compiler_pic_CXX=-Kconform_pic
13672 fi
13673 ;;
13674 hpux*)
13675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13677 # sets the default TLS model and affects inlining.
13678 case $host_cpu in
13679 hppa*64*)
13680 ;;
13681 *)
13682 lt_prog_compiler_pic_CXX='-fPIC'
13683 ;;
13684 esac
13685 ;;
13686 *qnx* | *nto*)
13687 # QNX uses GNU C++, but need to define -shared option too, otherwise
13688 # it will coredump.
13689 lt_prog_compiler_pic_CXX='-fPIC -shared'
13690 ;;
13691 *)
13692 lt_prog_compiler_pic_CXX='-fPIC'
13693 ;;
13694 esac
13695 else
13696 case $host_os in
13697 aix[4-9]*)
13698 # All AIX code is PIC.
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 now supports IA64 processor
13701 lt_prog_compiler_static_CXX='-Bstatic'
13702 else
13703 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13704 fi
13705 ;;
13706 chorus*)
13707 case $cc_basename in
13708 cxch68*)
13709 # Green Hills C++ Compiler
13710 # _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"
13711 ;;
13712 esac
13713 ;;
13714 dgux*)
13715 case $cc_basename in
13716 ec++*)
13717 lt_prog_compiler_pic_CXX='-KPIC'
13718 ;;
13719 ghcx*)
13720 # Green Hills C++ Compiler
13721 lt_prog_compiler_pic_CXX='-pic'
13722 ;;
13723 *)
13724 ;;
13725 esac
13726 ;;
13727 freebsd* | dragonfly*)
13728 # FreeBSD uses GNU C++
13729 ;;
13730 hpux9* | hpux10* | hpux11*)
13731 case $cc_basename in
13732 CC*)
13733 lt_prog_compiler_wl_CXX='-Wl,'
13734 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13735 if test "$host_cpu" != ia64; then
13736 lt_prog_compiler_pic_CXX='+Z'
13737 fi
13738 ;;
13739 aCC*)
13740 lt_prog_compiler_wl_CXX='-Wl,'
13741 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13742 case $host_cpu in
13743 hppa*64*|ia64*)
13744 # +Z the default
13745 ;;
13746 *)
13747 lt_prog_compiler_pic_CXX='+Z'
13748 ;;
13749 esac
13750 ;;
13751 *)
13752 ;;
13753 esac
13754 ;;
13755 interix*)
13756 # This is c89, which is MS Visual C++ (no shared libs)
13757 # Anyone wants to do a port?
13758 ;;
13759 irix5* | irix6* | nonstopux*)
13760 case $cc_basename in
13761 CC*)
13762 lt_prog_compiler_wl_CXX='-Wl,'
13763 lt_prog_compiler_static_CXX='-non_shared'
13764 # CC pic flag -KPIC is the default.
13765 ;;
13766 *)
13767 ;;
13768 esac
13769 ;;
13770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13771 case $cc_basename in
13772 KCC*)
13773 # KAI C++ Compiler
13774 lt_prog_compiler_wl_CXX='--backend -Wl,'
13775 lt_prog_compiler_pic_CXX='-fPIC'
13776 ;;
13777 ecpc* )
13778 # old Intel C++ for x86_64 which still supported -KPIC.
13779 lt_prog_compiler_wl_CXX='-Wl,'
13780 lt_prog_compiler_pic_CXX='-KPIC'
13781 lt_prog_compiler_static_CXX='-static'
13782 ;;
13783 icpc* )
13784 # Intel C++, used to be incompatible with GCC.
13785 # ICC 10 doesn't accept -KPIC any more.
13786 lt_prog_compiler_wl_CXX='-Wl,'
13787 lt_prog_compiler_pic_CXX='-fPIC'
13788 lt_prog_compiler_static_CXX='-static'
13789 ;;
13790 pgCC* | pgcpp*)
13791 # Portland Group C++ compiler
13792 lt_prog_compiler_wl_CXX='-Wl,'
13793 lt_prog_compiler_pic_CXX='-fpic'
13794 lt_prog_compiler_static_CXX='-Bstatic'
13795 ;;
13796 cxx*)
13797 # Compaq C++
13798 # Make sure the PIC flag is empty. It appears that all Alpha
13799 # Linux and Compaq Tru64 Unix objects are PIC.
13800 lt_prog_compiler_pic_CXX=
13801 lt_prog_compiler_static_CXX='-non_shared'
13802 ;;
13803 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13804 # IBM XL 8.0, 9.0 on PPC and BlueGene
13805 lt_prog_compiler_wl_CXX='-Wl,'
13806 lt_prog_compiler_pic_CXX='-qpic'
13807 lt_prog_compiler_static_CXX='-qstaticlink'
13808 ;;
13809 *)
13810 case `$CC -V 2>&1 | sed 5q` in
13811 *Sun\ C*)
13812 # Sun C++ 5.9
13813 lt_prog_compiler_pic_CXX='-KPIC'
13814 lt_prog_compiler_static_CXX='-Bstatic'
13815 lt_prog_compiler_wl_CXX='-Qoption ld '
13816 ;;
13817 esac
13818 ;;
13819 esac
13820 ;;
13821 lynxos*)
13822 ;;
13823 m88k*)
13824 ;;
13825 mvs*)
13826 case $cc_basename in
13827 cxx*)
13828 lt_prog_compiler_pic_CXX='-W c,exportall'
13829 ;;
13830 *)
13831 ;;
13832 esac
13833 ;;
13834 netbsd*)
13835 ;;
13836 *qnx* | *nto*)
13837 # QNX uses GNU C++, but need to define -shared option too, otherwise
13838 # it will coredump.
13839 lt_prog_compiler_pic_CXX='-fPIC -shared'
13840 ;;
13841 osf3* | osf4* | osf5*)
13842 case $cc_basename in
13843 KCC*)
13844 lt_prog_compiler_wl_CXX='--backend -Wl,'
13845 ;;
13846 RCC*)
13847 # Rational C++ 2.4.1
13848 lt_prog_compiler_pic_CXX='-pic'
13849 ;;
13850 cxx*)
13851 # Digital/Compaq C++
13852 lt_prog_compiler_wl_CXX='-Wl,'
13853 # Make sure the PIC flag is empty. It appears that all Alpha
13854 # Linux and Compaq Tru64 Unix objects are PIC.
13855 lt_prog_compiler_pic_CXX=
13856 lt_prog_compiler_static_CXX='-non_shared'
13857 ;;
13858 *)
13859 ;;
13860 esac
13861 ;;
13862 psos*)
13863 ;;
13864 solaris*)
13865 case $cc_basename in
13866 CC*)
13867 # Sun C++ 4.2, 5.x and Centerline C++
13868 lt_prog_compiler_pic_CXX='-KPIC'
13869 lt_prog_compiler_static_CXX='-Bstatic'
13870 lt_prog_compiler_wl_CXX='-Qoption ld '
13871 ;;
13872 gcx*)
13873 # Green Hills C++ Compiler
13874 lt_prog_compiler_pic_CXX='-PIC'
13875 ;;
13876 *)
13877 ;;
13878 esac
13879 ;;
13880 sunos4*)
13881 case $cc_basename in
13882 CC*)
13883 # Sun C++ 4.x
13884 lt_prog_compiler_pic_CXX='-pic'
13885 lt_prog_compiler_static_CXX='-Bstatic'
13886 ;;
13887 lcc*)
13888 # Lucid
13889 lt_prog_compiler_pic_CXX='-pic'
13890 ;;
13891 *)
13892 ;;
13893 esac
13894 ;;
13895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13896 case $cc_basename in
13897 CC*)
13898 lt_prog_compiler_wl_CXX='-Wl,'
13899 lt_prog_compiler_pic_CXX='-KPIC'
13900 lt_prog_compiler_static_CXX='-Bstatic'
13901 ;;
13902 esac
13903 ;;
13904 tandem*)
13905 case $cc_basename in
13906 NCC*)
13907 # NonStop-UX NCC 3.20
13908 lt_prog_compiler_pic_CXX='-KPIC'
13909 ;;
13910 *)
13911 ;;
13912 esac
13913 ;;
13914 vxworks*)
13915 ;;
13916 *)
13917 lt_prog_compiler_can_build_shared_CXX=no
13918 ;;
13919 esac
13920 fi
13921
13922case $host_os in
13923 # For platforms which do not support PIC, -DPIC is meaningless:
13924 *djgpp*)
13925 lt_prog_compiler_pic_CXX=
13926 ;;
13927 *)
13928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13929 ;;
13930esac
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13932$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13933
13934
13935
13936#
13937# Check to make sure the PIC flag actually works.
13938#
13939if test -n "$lt_prog_compiler_pic_CXX"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13941$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13942if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13943 $as_echo_n "(cached) " >&6
13944else
13945 lt_cv_prog_compiler_pic_works_CXX=no
13946 ac_outfile=conftest.$ac_objext
13947 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13948 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13949 # Insert the option either (1) after the last *FLAGS variable, or
13950 # (2) before a word containing "conftest.", or (3) at the end.
13951 # Note that $ac_compile itself does not contain backslashes and begins
13952 # with a dollar sign (not a hyphen), so the echo should work correctly.
13953 # The option is referenced via a variable to avoid confusing sed.
13954 lt_compile=`echo "$ac_compile" | $SED \
13955 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13957 -e 's:$: $lt_compiler_flag:'`
13958 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13959 (eval "$lt_compile" 2>conftest.err)
13960 ac_status=$?
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 if (exit $ac_status) && test -s "$ac_outfile"; then
13964 # The compiler can only warn and ignore the option if not recognized
13965 # So say no if there are warnings other than the usual output.
13966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13968 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13969 lt_cv_prog_compiler_pic_works_CXX=yes
13970 fi
13971 fi
13972 $RM conftest*
13973
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13976$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13977
13978if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13979 case $lt_prog_compiler_pic_CXX in
13980 "" | " "*) ;;
13981 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13982 esac
13983else
13984 lt_prog_compiler_pic_CXX=
13985 lt_prog_compiler_can_build_shared_CXX=no
13986fi
13987
13988fi
13989
13990
13991
13992#
13993# Check to make sure the static flag actually works.
13994#
13995wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13997$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13998if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13999 $as_echo_n "(cached) " >&6
14000else
14001 lt_cv_prog_compiler_static_works_CXX=no
14002 save_LDFLAGS="$LDFLAGS"
14003 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14004 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14005 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14006 # The linker can only warn and ignore the option if not recognized
14007 # So say no if there are warnings
14008 if test -s conftest.err; then
14009 # Append any errors to the config.log.
14010 cat conftest.err 1>&5
14011 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14012 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14013 if diff conftest.exp conftest.er2 >/dev/null; then
14014 lt_cv_prog_compiler_static_works_CXX=yes
14015 fi
14016 else
14017 lt_cv_prog_compiler_static_works_CXX=yes
14018 fi
14019 fi
14020 $RM -r conftest*
14021 LDFLAGS="$save_LDFLAGS"
14022
14023fi
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14025$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14026
14027if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14028 :
14029else
14030 lt_prog_compiler_static_CXX=
14031fi
14032
14033
14034
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14037$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14038if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14040else
14041 lt_cv_prog_compiler_c_o_CXX=no
14042 $RM -r conftest 2>/dev/null
14043 mkdir conftest
14044 cd conftest
14045 mkdir out
14046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14047
14048 lt_compiler_flag="-o out/conftest2.$ac_objext"
14049 # Insert the option either (1) after the last *FLAGS variable, or
14050 # (2) before a word containing "conftest.", or (3) at the end.
14051 # Note that $ac_compile itself does not contain backslashes and begins
14052 # with a dollar sign (not a hyphen), so the echo should work correctly.
14053 lt_compile=`echo "$ac_compile" | $SED \
14054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14056 -e 's:$: $lt_compiler_flag:'`
14057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14058 (eval "$lt_compile" 2>out/conftest.err)
14059 ac_status=$?
14060 cat out/conftest.err >&5
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14063 then
14064 # The compiler can only warn and ignore the option if not recognized
14065 # So say no if there are warnings
14066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14069 lt_cv_prog_compiler_c_o_CXX=yes
14070 fi
14071 fi
14072 chmod u+w . 2>&5
14073 $RM conftest*
14074 # SGI C++ compiler will create directory out/ii_files/ for
14075 # template instantiation
14076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14077 $RM out/* && rmdir out
14078 cd ..
14079 $RM -r conftest
14080 $RM conftest*
14081
14082fi
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14084$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14085
14086
14087
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14090if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14091 $as_echo_n "(cached) " >&6
14092else
14093 lt_cv_prog_compiler_c_o_CXX=no
14094 $RM -r conftest 2>/dev/null
14095 mkdir conftest
14096 cd conftest
14097 mkdir out
14098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14099
14100 lt_compiler_flag="-o out/conftest2.$ac_objext"
14101 # Insert the option either (1) after the last *FLAGS variable, or
14102 # (2) before a word containing "conftest.", or (3) at the end.
14103 # Note that $ac_compile itself does not contain backslashes and begins
14104 # with a dollar sign (not a hyphen), so the echo should work correctly.
14105 lt_compile=`echo "$ac_compile" | $SED \
14106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14108 -e 's:$: $lt_compiler_flag:'`
14109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14110 (eval "$lt_compile" 2>out/conftest.err)
14111 ac_status=$?
14112 cat out/conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14115 then
14116 # The compiler can only warn and ignore the option if not recognized
14117 # So say no if there are warnings
14118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14121 lt_cv_prog_compiler_c_o_CXX=yes
14122 fi
14123 fi
14124 chmod u+w . 2>&5
14125 $RM conftest*
14126 # SGI C++ compiler will create directory out/ii_files/ for
14127 # template instantiation
14128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14129 $RM out/* && rmdir out
14130 cd ..
14131 $RM -r conftest
14132 $RM conftest*
14133
14134fi
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14136$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14137
14138
14139
14140
14141hard_links="nottested"
14142if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14143 # do not overwrite the value of need_locks provided by the user
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14145$as_echo_n "checking if we can lock with hard links... " >&6; }
14146 hard_links=yes
14147 $RM conftest*
14148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14149 touch conftest.a
14150 ln conftest.a conftest.b 2>&5 || hard_links=no
14151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14153$as_echo "$hard_links" >&6; }
14154 if test "$hard_links" = no; then
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14156$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14157 need_locks=warn
14158 fi
14159else
14160 need_locks=no
14161fi
14162
14163
14164
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14166$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14167
14168 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14169 case $host_os in
14170 aix[4-9]*)
14171 # If we're using GNU nm, then we don't want the "-C" option.
14172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14173 # Also, AIX nm treats weak defined symbols like other global defined
14174 # symbols, whereas GNU nm marks them as "W".
14175 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14176 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'
14177 else
5c14705f 14178 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
3cb62297
L
14179 fi
14180 ;;
14181 pw32*)
14182 export_symbols_cmds_CXX="$ltdll_cmds"
14183 ;;
14184 cygwin* | mingw* | cegcc*)
14185 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'
14186 ;;
14187 *)
14188 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14189 ;;
14190 esac
14191 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14192
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14194$as_echo "$ld_shlibs_CXX" >&6; }
14195test "$ld_shlibs_CXX" = no && can_build_shared=no
14196
14197with_gnu_ld_CXX=$with_gnu_ld
14198
14199
14200
14201
14202
14203
14204#
14205# Do we need to explicitly link libc?
14206#
14207case "x$archive_cmds_need_lc_CXX" in
14208x|xyes)
14209 # Assume -lc should be added
14210 archive_cmds_need_lc_CXX=yes
14211
14212 if test "$enable_shared" = yes && test "$GCC" = yes; then
14213 case $archive_cmds_CXX in
14214 *'~'*)
14215 # FIXME: we may have to deal with multi-command sequences.
14216 ;;
14217 '$CC '*)
14218 # Test whether the compiler implicitly links with -lc since on some
14219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14220 # to ld, don't add -lc before -lgcc.
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14222$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14223if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225else
14226 $RM conftest*
14227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14230 (eval $ac_compile) 2>&5
14231 ac_status=$?
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; } 2>conftest.err; then
14234 soname=conftest
14235 lib=conftest
14236 libobjs=conftest.$ac_objext
14237 deplibs=
14238 wl=$lt_prog_compiler_wl_CXX
14239 pic_flag=$lt_prog_compiler_pic_CXX
14240 compiler_flags=-v
14241 linker_flags=-v
14242 verstring=
14243 output_objdir=.
14244 libname=conftest
14245 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14246 allow_undefined_flag_CXX=
14247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14248 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14249 ac_status=$?
14250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14251 test $ac_status = 0; }
14252 then
14253 lt_cv_archive_cmds_need_lc_CXX=no
14254 else
14255 lt_cv_archive_cmds_need_lc_CXX=yes
14256 fi
14257 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14258 else
14259 cat conftest.err 1>&5
14260 fi
14261 $RM conftest*
14262
14263fi
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14265$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14266 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14267 ;;
14268 esac
14269 fi
14270 ;;
14271esac
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
14332
14333
14334
14335
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14337$as_echo_n "checking dynamic linker characteristics... " >&6; }
14338
14339library_names_spec=
14340libname_spec='lib$name'
14341soname_spec=
14342shrext_cmds=".so"
14343postinstall_cmds=
14344postuninstall_cmds=
14345finish_cmds=
14346finish_eval=
14347shlibpath_var=
14348shlibpath_overrides_runpath=unknown
14349version_type=none
14350dynamic_linker="$host_os ld.so"
14351sys_lib_dlsearch_path_spec="/lib /usr/lib"
14352need_lib_prefix=unknown
14353hardcode_into_libs=no
14354
14355# when you set need_version to no, make sure it does not cause -set_version
14356# flags to be left without arguments
14357need_version=unknown
14358
14359case $host_os in
14360aix3*)
14361 version_type=linux
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14363 shlibpath_var=LIBPATH
14364
14365 # AIX 3 has no versioning support, so we append a major version to the name.
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 ;;
14368
14369aix[4-9]*)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 hardcode_into_libs=yes
14374 if test "$host_cpu" = ia64; then
14375 # AIX 5 supports IA64
14376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 else
14379 # With GCC up to 2.95.x, collect2 would create an import file
14380 # for dependence libraries. The import file would start with
14381 # the line `#! .'. This would cause the generated library to
14382 # depend on `.', always an invalid library. This was fixed in
14383 # development snapshots of GCC prior to 3.0.
14384 case $host_os in
14385 aix4 | aix4.[01] | aix4.[01].*)
14386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14387 echo ' yes '
14388 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14389 :
14390 else
14391 can_build_shared=no
14392 fi
14393 ;;
14394 esac
14395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14396 # soname into executable. Probably we can add versioning support to
14397 # collect2, so additional links can be useful in future.
14398 if test "$aix_use_runtimelinking" = yes; then
14399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14400 # instead of lib<name>.a to let people know that these are not
14401 # typical AIX shared libraries.
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 else
14404 # We preserve .a as extension for shared libraries through AIX4.2
14405 # and later when we are not doing run time linking.
14406 library_names_spec='${libname}${release}.a $libname.a'
14407 soname_spec='${libname}${release}${shared_ext}$major'
14408 fi
14409 shlibpath_var=LIBPATH
14410 fi
14411 ;;
14412
14413amigaos*)
14414 case $host_cpu in
14415 powerpc)
14416 # Since July 2007 AmigaOS4 officially supports .so libraries.
14417 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14419 ;;
14420 m68k)
14421 library_names_spec='$libname.ixlibrary $libname.a'
14422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14423 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'
14424 ;;
14425 esac
14426 ;;
14427
14428beos*)
14429 library_names_spec='${libname}${shared_ext}'
14430 dynamic_linker="$host_os ld.so"
14431 shlibpath_var=LIBRARY_PATH
14432 ;;
14433
14434bsdi[45]*)
14435 version_type=linux
14436 need_version=no
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14442 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14443 # the default ld.so.conf also contains /usr/contrib/lib and
14444 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14445 # libtool to hard-code these into programs
14446 ;;
14447
14448cygwin* | mingw* | pw32* | cegcc*)
14449 version_type=windows
14450 shrext_cmds=".dll"
14451 need_version=no
14452 need_lib_prefix=no
14453
14454 case $GCC,$host_os in
14455 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14456 library_names_spec='$libname.dll.a'
14457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14458 postinstall_cmds='base_file=`basename \${file}`~
14459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14460 dldir=$destdir/`dirname \$dlpath`~
14461 test -d \$dldir || mkdir -p \$dldir~
14462 $install_prog $dir/$dlname \$dldir/$dlname~
14463 chmod a+x \$dldir/$dlname~
14464 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14465 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14466 fi'
14467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14468 dlpath=$dir/\$dldll~
14469 $RM \$dlpath'
14470 shlibpath_overrides_runpath=yes
14471
14472 case $host_os in
14473 cygwin*)
14474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14476
14477 ;;
14478 mingw* | cegcc*)
14479 # MinGW DLLs use traditional 'lib' prefix
14480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14481 ;;
14482 pw32*)
14483 # pw32 DLLs use 'pw' prefix rather than 'lib'
14484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14485 ;;
14486 esac
14487 ;;
14488
14489 *)
14490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14491 ;;
14492 esac
14493 dynamic_linker='Win32 ld.exe'
14494 # FIXME: first we should search . and the directory the executable is in
14495 shlibpath_var=PATH
14496 ;;
14497
14498darwin* | rhapsody*)
14499 dynamic_linker="$host_os dyld"
14500 version_type=darwin
14501 need_lib_prefix=no
14502 need_version=no
14503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14504 soname_spec='${libname}${release}${major}$shared_ext'
14505 shlibpath_overrides_runpath=yes
14506 shlibpath_var=DYLD_LIBRARY_PATH
14507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14508
14509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14510 ;;
14511
14512dgux*)
14513 version_type=linux
14514 need_lib_prefix=no
14515 need_version=no
14516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14517 soname_spec='${libname}${release}${shared_ext}$major'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 ;;
14520
3cb62297
L
14521freebsd* | dragonfly*)
14522 # DragonFly does not have aout. When/if they implement a new
14523 # versioning mechanism, adjust this.
14524 if test -x /usr/bin/objformat; then
14525 objformat=`/usr/bin/objformat`
14526 else
14527 case $host_os in
6d2920c8 14528 freebsd[23].*) objformat=aout ;;
3cb62297
L
14529 *) objformat=elf ;;
14530 esac
14531 fi
14532 version_type=freebsd-$objformat
14533 case $version_type in
14534 freebsd-elf*)
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14536 need_version=no
14537 need_lib_prefix=no
14538 ;;
14539 freebsd-*)
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14541 need_version=yes
14542 ;;
14543 esac
14544 shlibpath_var=LD_LIBRARY_PATH
14545 case $host_os in
6d2920c8 14546 freebsd2.*)
3cb62297
L
14547 shlibpath_overrides_runpath=yes
14548 ;;
14549 freebsd3.[01]* | freebsdelf3.[01]*)
14550 shlibpath_overrides_runpath=yes
14551 hardcode_into_libs=yes
14552 ;;
14553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14555 shlibpath_overrides_runpath=no
14556 hardcode_into_libs=yes
14557 ;;
14558 *) # from 4.6 on, and DragonFly
14559 shlibpath_overrides_runpath=yes
14560 hardcode_into_libs=yes
14561 ;;
14562 esac
14563 ;;
14564
14565gnu*)
14566 version_type=linux
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 hardcode_into_libs=yes
14573 ;;
14574
14575haiku*)
14576 version_type=linux
14577 need_lib_prefix=no
14578 need_version=no
14579 dynamic_linker="$host_os runtime_loader"
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 shlibpath_var=LIBRARY_PATH
14583 shlibpath_overrides_runpath=yes
14584 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14585 hardcode_into_libs=yes
14586 ;;
14587
14588hpux9* | hpux10* | hpux11*)
14589 # Give a soname corresponding to the major version so that dld.sl refuses to
14590 # link against other versions.
14591 version_type=sunos
14592 need_lib_prefix=no
14593 need_version=no
14594 case $host_cpu in
14595 ia64*)
14596 shrext_cmds='.so'
14597 hardcode_into_libs=yes
14598 dynamic_linker="$host_os dld.so"
14599 shlibpath_var=LD_LIBRARY_PATH
14600 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14602 soname_spec='${libname}${release}${shared_ext}$major'
14603 if test "X$HPUX_IA64_MODE" = X32; then
14604 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14605 else
14606 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14607 fi
14608 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14609 ;;
14610 hppa*64*)
14611 shrext_cmds='.sl'
14612 hardcode_into_libs=yes
14613 dynamic_linker="$host_os dld.sl"
14614 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14620 ;;
14621 *)
14622 shrext_cmds='.sl'
14623 dynamic_linker="$host_os dld.sl"
14624 shlibpath_var=SHLIB_PATH
14625 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 soname_spec='${libname}${release}${shared_ext}$major'
14628 ;;
14629 esac
14630 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14631 postinstall_cmds='chmod 555 $lib'
14632 # or fails outright, so override atomically:
14633 install_override_mode=555
14634 ;;
14635
14636interix[3-9]*)
14637 version_type=linux
14638 need_lib_prefix=no
14639 need_version=no
14640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641 soname_spec='${libname}${release}${shared_ext}$major'
14642 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14646 ;;
14647
14648irix5* | irix6* | nonstopux*)
14649 case $host_os in
14650 nonstopux*) version_type=nonstopux ;;
14651 *)
14652 if test "$lt_cv_prog_gnu_ld" = yes; then
14653 version_type=linux
14654 else
14655 version_type=irix
14656 fi ;;
14657 esac
14658 need_lib_prefix=no
14659 need_version=no
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14662 case $host_os in
14663 irix5* | nonstopux*)
14664 libsuff= shlibsuff=
14665 ;;
14666 *)
14667 case $LD in # libtool.m4 will add one of these switches to LD
14668 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14669 libsuff= shlibsuff= libmagic=32-bit;;
14670 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14671 libsuff=32 shlibsuff=N32 libmagic=N32;;
14672 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14673 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14674 *) libsuff= shlibsuff= libmagic=never-match;;
14675 esac
14676 ;;
14677 esac
14678 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14679 shlibpath_overrides_runpath=no
14680 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14681 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14682 hardcode_into_libs=yes
14683 ;;
14684
14685# No shared lib support for Linux oldld, aout, or coff.
14686linux*oldld* | linux*aout* | linux*coff*)
14687 dynamic_linker=no
14688 ;;
14689
14690# This must be Linux ELF.
14691linux* | k*bsd*-gnu | kopensolaris*-gnu)
14692 version_type=linux
14693 need_lib_prefix=no
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 shlibpath_overrides_runpath=no
14700
14701 # Some binutils ld are patched to set DT_RUNPATH
14702 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14703 $as_echo_n "(cached) " >&6
14704else
14705 lt_cv_shlibpath_overrides_runpath=no
14706 save_LDFLAGS=$LDFLAGS
14707 save_libdir=$libdir
14708 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14709 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711/* end confdefs.h. */
14712
14713int
14714main ()
14715{
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721if ac_fn_cxx_try_link "$LINENO"; then :
14722 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14723 lt_cv_shlibpath_overrides_runpath=yes
14724fi
14725fi
14726rm -f core conftest.err conftest.$ac_objext \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LDFLAGS=$save_LDFLAGS
14729 libdir=$save_libdir
14730
14731fi
14732
14733 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14734
14735 # This implies no fast_install, which is unacceptable.
14736 # Some rework will be needed to allow for fast_install
14737 # before this can be enabled.
14738 hardcode_into_libs=yes
14739
14740 # Append ld.so.conf contents to the search path
14741 if test -f /etc/ld.so.conf; then
14742 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' ' '`
14743 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14744 fi
14745
14746 # We used to test for /lib/ld.so.1 and disable shared libraries on
14747 # powerpc, because MkLinux only supported shared libraries with the
14748 # GNU dynamic linker. Since this was broken with cross compilers,
14749 # most powerpc-linux boxes support dynamic linking these days and
14750 # people can always --disable-shared, the test was removed, and we
14751 # assume the GNU/Linux dynamic linker is in use.
14752 dynamic_linker='GNU/Linux ld.so'
14753 ;;
14754
14755netbsd*)
14756 version_type=sunos
14757 need_lib_prefix=no
14758 need_version=no
14759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14762 dynamic_linker='NetBSD (a.out) ld.so'
14763 else
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 dynamic_linker='NetBSD ld.elf_so'
14767 fi
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=yes
14770 hardcode_into_libs=yes
14771 ;;
14772
14773newsos6)
14774 version_type=linux
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=yes
14778 ;;
14779
14780*nto* | *qnx*)
14781 version_type=qnx
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=no
14788 hardcode_into_libs=yes
14789 dynamic_linker='ldqnx.so'
14790 ;;
14791
14792openbsd*)
14793 version_type=sunos
14794 sys_lib_dlsearch_path_spec="/usr/lib"
14795 need_lib_prefix=no
14796 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14797 case $host_os in
14798 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14799 *) need_version=no ;;
14800 esac
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14805 case $host_os in
14806 openbsd2.[89] | openbsd2.[89].*)
14807 shlibpath_overrides_runpath=no
14808 ;;
14809 *)
14810 shlibpath_overrides_runpath=yes
14811 ;;
14812 esac
14813 else
14814 shlibpath_overrides_runpath=yes
14815 fi
14816 ;;
14817
14818os2*)
14819 libname_spec='$name'
14820 shrext_cmds=".dll"
14821 need_lib_prefix=no
14822 library_names_spec='$libname${shared_ext} $libname.a'
14823 dynamic_linker='OS/2 ld.exe'
14824 shlibpath_var=LIBPATH
14825 ;;
14826
14827osf3* | osf4* | osf5*)
14828 version_type=osf
14829 need_lib_prefix=no
14830 need_version=no
14831 soname_spec='${libname}${release}${shared_ext}$major'
14832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14833 shlibpath_var=LD_LIBRARY_PATH
14834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14835 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14836 ;;
14837
14838rdos*)
14839 dynamic_linker=no
14840 ;;
14841
14842solaris*)
14843 version_type=linux
14844 need_lib_prefix=no
14845 need_version=no
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=yes
14850 hardcode_into_libs=yes
14851 # ldd complains unless libraries are executable
14852 postinstall_cmds='chmod +x $lib'
14853 ;;
14854
14855sunos4*)
14856 version_type=sunos
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14859 shlibpath_var=LD_LIBRARY_PATH
14860 shlibpath_overrides_runpath=yes
14861 if test "$with_gnu_ld" = yes; then
14862 need_lib_prefix=no
14863 fi
14864 need_version=yes
14865 ;;
14866
14867sysv4 | sysv4.3*)
14868 version_type=linux
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14870 soname_spec='${libname}${release}${shared_ext}$major'
14871 shlibpath_var=LD_LIBRARY_PATH
14872 case $host_vendor in
14873 sni)
14874 shlibpath_overrides_runpath=no
14875 need_lib_prefix=no
14876 runpath_var=LD_RUN_PATH
14877 ;;
14878 siemens)
14879 need_lib_prefix=no
14880 ;;
14881 motorola)
14882 need_lib_prefix=no
14883 need_version=no
14884 shlibpath_overrides_runpath=no
14885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14886 ;;
14887 esac
14888 ;;
14889
14890sysv4*MP*)
14891 if test -d /usr/nec ;then
14892 version_type=linux
14893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14894 soname_spec='$libname${shared_ext}.$major'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 fi
14897 ;;
14898
14899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14900 version_type=freebsd-elf
14901 need_lib_prefix=no
14902 need_version=no
14903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 shlibpath_var=LD_LIBRARY_PATH
14906 shlibpath_overrides_runpath=yes
14907 hardcode_into_libs=yes
14908 if test "$with_gnu_ld" = yes; then
14909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14910 else
14911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14912 case $host_os in
14913 sco3.2v5*)
14914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14915 ;;
14916 esac
14917 fi
14918 sys_lib_dlsearch_path_spec='/usr/lib'
14919 ;;
14920
14921tpf*)
14922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=no
14929 hardcode_into_libs=yes
14930 ;;
14931
14932uts4*)
14933 version_type=linux
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 ;;
14938
14939*)
14940 dynamic_linker=no
14941 ;;
14942esac
14943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14944$as_echo "$dynamic_linker" >&6; }
14945test "$dynamic_linker" = no && can_build_shared=no
14946
14947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14948if test "$GCC" = yes; then
14949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14950fi
14951
14952if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14953 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14954fi
14955if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14956 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14957fi
14958
3725885a 14959
ce2cded5 14960
ce2cded5 14961
ce2cded5 14962
d7040cdb 14963
ce2cded5 14964
ce2cded5 14965
ce2cded5 14966
d7040cdb 14967
ce2cded5
L
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
ce2cded5
L
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
b879806f
AM
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14997$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14998hardcode_action_CXX=
14999if test -n "$hardcode_libdir_flag_spec_CXX" ||
15000 test -n "$runpath_var_CXX" ||
15001 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15002
15003 # We can hardcode non-existent directories.
15004 if test "$hardcode_direct_CXX" != no &&
15005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15006 # have to relink, otherwise we might link with an installed library
15007 # when we should be linking with a yet-to-be-installed one
15008 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15009 test "$hardcode_minus_L_CXX" != no; then
15010 # Linking always hardcodes the temporary library directory.
15011 hardcode_action_CXX=relink
15012 else
15013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15014 hardcode_action_CXX=immediate
15015 fi
15016else
15017 # We cannot hardcode anything, or else we can only hardcode existing
15018 # directories.
15019 hardcode_action_CXX=unsupported
15020fi
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15022$as_echo "$hardcode_action_CXX" >&6; }
15023
15024if test "$hardcode_action_CXX" = relink ||
15025 test "$inherit_rpath_CXX" = yes; then
15026 # Fast installation is not supported
15027 enable_fast_install=no
15028elif test "$shlibpath_overrides_runpath" = yes ||
15029 test "$enable_shared" = no; then
15030 # Fast installation is not necessary
15031 enable_fast_install=needless
15032fi
15033
15034
15035
15036
15037
15038
15039
15040 fi # test -n "$compiler"
15041
15042 CC=$lt_save_CC
15043 LDCXX=$LD
15044 LD=$lt_save_LD
15045 GCC=$lt_save_GCC
15046 with_gnu_ld=$lt_save_with_gnu_ld
15047 lt_cv_path_LDCXX=$lt_cv_path_LD
15048 lt_cv_path_LD=$lt_save_path_LD
15049 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15050 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15051fi # test "$_lt_caught_CXX_error" != yes
15052
15053ac_ext=c
15054ac_cpp='$CPP $CPPFLAGS'
15055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15057ac_compiler_gnu=$ac_cv_c_compiler_gnu
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071 ac_config_commands="$ac_config_commands libtool"
15072
15073
15074
15075
15076# Only expand once:
15077
15078
15079
15080# The tests for host and target for $enable_largefile require
15081# canonical names.
15082
15083
15084
15085# As the $enable_largefile decision depends on --enable-plugins we must set it
15086# even in directories otherwise not depending on the $plugins option.
15087
15088
15089 maybe_plugins=no
15090 for ac_header in dlfcn.h
15091do :
15092 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15093"
15094if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
15095 cat >>confdefs.h <<_ACEOF
15096#define HAVE_DLFCN_H 1
15097_ACEOF
15098 maybe_plugins=yes
15099fi
15100
15101done
15102
15103 for ac_header in windows.h
15104do :
15105 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15106"
15107if test "x$ac_cv_header_windows_h" = x""yes; then :
15108 cat >>confdefs.h <<_ACEOF
15109#define HAVE_WINDOWS_H 1
15110_ACEOF
15111 maybe_plugins=yes
15112fi
15113
15114done
15115
15116
15117 # Check whether --enable-plugins was given.
15118if test "${enable_plugins+set}" = set; then :
15119 enableval=$enable_plugins; case "${enableval}" in
15120 no) plugins=no ;;
15121 *) plugins=yes
15122 if test "$maybe_plugins" != "yes" ; then
15123 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
15124 fi ;;
15125 esac
15126else
15127 plugins=$maybe_plugins
15128
15129fi
15130
2974be62
AM
15131 if test "$plugins" = "yes"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15133$as_echo_n "checking for library containing dlopen... " >&6; }
15134if test "${ac_cv_search_dlopen+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15136else
15137 ac_func_search_save_LIBS=$LIBS
15138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139/* end confdefs.h. */
15140
15141/* Override any GCC internal prototype to avoid an error.
15142 Use char because int might match the return type of a GCC
15143 builtin and then its argument prototype would still apply. */
15144#ifdef __cplusplus
15145extern "C"
15146#endif
15147char dlopen ();
15148int
15149main ()
15150{
15151return dlopen ();
15152 ;
15153 return 0;
15154}
15155_ACEOF
15156for ac_lib in '' dl; do
15157 if test -z "$ac_lib"; then
15158 ac_res="none required"
15159 else
15160 ac_res=-l$ac_lib
15161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15162 fi
15163 if ac_fn_c_try_link "$LINENO"; then :
15164 ac_cv_search_dlopen=$ac_res
15165fi
15166rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext
15168 if test "${ac_cv_search_dlopen+set}" = set; then :
15169 break
15170fi
15171done
15172if test "${ac_cv_search_dlopen+set}" = set; then :
15173
15174else
15175 ac_cv_search_dlopen=no
15176fi
15177rm conftest.$ac_ext
15178LIBS=$ac_func_search_save_LIBS
15179fi
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15181$as_echo "$ac_cv_search_dlopen" >&6; }
15182ac_res=$ac_cv_search_dlopen
15183if test "$ac_res" != no; then :
15184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15185
15186fi
15187
15188 fi
b879806f
AM
15189
15190
15191case "${host}" in
15192 sparc-*-solaris*|i[3-7]86-*-solaris*)
15193 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15194 # are mutually exclusive; and without procfs support, the bfd/ elf module
15195 # cannot provide certain routines such as elfcore_write_prpsinfo
15196 # or elfcore_write_prstatus. So unless the user explicitly requested
15197 # large-file support through the --enable-largefile switch, disable
15198 # large-file support in favor of procfs support.
15199 test "${target}" = "${host}" -a "x$plugins" = xno \
15200 && : ${enable_largefile="no"}
15201 ;;
15202esac
15203
15204# Check whether --enable-largefile was given.
15205if test "${enable_largefile+set}" = set; then :
15206 enableval=$enable_largefile;
15207fi
15208
15209if test "$enable_largefile" != no; then
15210
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15212$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15213if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15215else
15216 ac_cv_sys_largefile_CC=no
15217 if test "$GCC" != yes; then
15218 ac_save_CC=$CC
15219 while :; do
15220 # IRIX 6.2 and later do not support large files by default,
15221 # so use the C compiler's -n32 option if that helps.
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223/* end confdefs.h. */
15224#include <sys/types.h>
15225 /* Check that off_t can represent 2**63 - 1 correctly.
15226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15227 since some C++ compilers masquerading as C compilers
15228 incorrectly reject 9223372036854775807. */
15229#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15231 && LARGE_OFF_T % 2147483647 == 1)
15232 ? 1 : -1];
15233int
15234main ()
15235{
15236
15237 ;
15238 return 0;
15239}
15240_ACEOF
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 break
15243fi
15244rm -f core conftest.err conftest.$ac_objext
15245 CC="$CC -n32"
15246 if ac_fn_c_try_compile "$LINENO"; then :
15247 ac_cv_sys_largefile_CC=' -n32'; break
15248fi
15249rm -f core conftest.err conftest.$ac_objext
15250 break
15251 done
15252 CC=$ac_save_CC
15253 rm -f conftest.$ac_ext
15254 fi
15255fi
15256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15257$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15258 if test "$ac_cv_sys_largefile_CC" != no; then
15259 CC=$CC$ac_cv_sys_largefile_CC
15260 fi
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15263$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15264if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15265 $as_echo_n "(cached) " >&6
15266else
15267 while :; do
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h. */
15270#include <sys/types.h>
15271 /* Check that off_t can represent 2**63 - 1 correctly.
15272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15273 since some C++ compilers masquerading as C compilers
15274 incorrectly reject 9223372036854775807. */
15275#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15277 && LARGE_OFF_T % 2147483647 == 1)
15278 ? 1 : -1];
15279int
15280main ()
15281{
15282
15283 ;
15284 return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_compile "$LINENO"; then :
15288 ac_cv_sys_file_offset_bits=no; break
15289fi
15290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15292/* end confdefs.h. */
15293#define _FILE_OFFSET_BITS 64
15294#include <sys/types.h>
15295 /* Check that off_t can represent 2**63 - 1 correctly.
15296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15297 since some C++ compilers masquerading as C compilers
15298 incorrectly reject 9223372036854775807. */
15299#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15301 && LARGE_OFF_T % 2147483647 == 1)
15302 ? 1 : -1];
15303int
15304main ()
15305{
15306
15307 ;
15308 return 0;
15309}
15310_ACEOF
15311if ac_fn_c_try_compile "$LINENO"; then :
15312 ac_cv_sys_file_offset_bits=64; break
15313fi
15314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15315 ac_cv_sys_file_offset_bits=unknown
15316 break
15317done
15318fi
15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15320$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15321case $ac_cv_sys_file_offset_bits in #(
15322 no | unknown) ;;
15323 *)
15324cat >>confdefs.h <<_ACEOF
15325#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15326_ACEOF
15327;;
15328esac
15329rm -rf conftest*
15330 if test $ac_cv_sys_file_offset_bits = unknown; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15332$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15333if test "${ac_cv_sys_large_files+set}" = set; then :
15334 $as_echo_n "(cached) " >&6
15335else
15336 while :; do
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h. */
15339#include <sys/types.h>
15340 /* Check that off_t can represent 2**63 - 1 correctly.
15341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15342 since some C++ compilers masquerading as C compilers
15343 incorrectly reject 9223372036854775807. */
15344#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15346 && LARGE_OFF_T % 2147483647 == 1)
15347 ? 1 : -1];
15348int
15349main ()
15350{
15351
15352 ;
15353 return 0;
15354}
15355_ACEOF
15356if ac_fn_c_try_compile "$LINENO"; then :
15357 ac_cv_sys_large_files=no; break
15358fi
15359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361/* end confdefs.h. */
15362#define _LARGE_FILES 1
15363#include <sys/types.h>
15364 /* Check that off_t can represent 2**63 - 1 correctly.
15365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15366 since some C++ compilers masquerading as C compilers
15367 incorrectly reject 9223372036854775807. */
15368#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15370 && LARGE_OFF_T % 2147483647 == 1)
15371 ? 1 : -1];
15372int
15373main ()
15374{
15375
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380if ac_fn_c_try_compile "$LINENO"; then :
15381 ac_cv_sys_large_files=1; break
15382fi
15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 ac_cv_sys_large_files=unknown
15385 break
15386done
15387fi
15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15389$as_echo "$ac_cv_sys_large_files" >&6; }
15390case $ac_cv_sys_large_files in #(
15391 no | unknown) ;;
15392 *)
15393cat >>confdefs.h <<_ACEOF
15394#define _LARGE_FILES $ac_cv_sys_large_files
15395_ACEOF
15396;;
15397esac
15398rm -rf conftest*
15399 fi
15400fi
15401
15402
15403
15404
15405# Check whether --with-lib-path was given.
15406if test "${with_lib_path+set}" = set; then :
15407 withval=$with_lib_path; LIB_PATH=$withval
15408fi
15409
15410# Check whether --enable-targets was given.
15411if test "${enable_targets+set}" = set; then :
15412 enableval=$enable_targets; case "${enableval}" in
15413 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
15414 ;;
15415 no) enable_targets= ;;
15416 *) enable_targets=$enableval ;;
15417esac
15418fi
15419# Check whether --enable-64-bit-bfd was given.
15420if test "${enable_64_bit_bfd+set}" = set; then :
15421 enableval=$enable_64_bit_bfd; case "${enableval}" in
15422 yes) want64=true ;;
15423 no) want64=false ;;
15424 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
15425esac
15426else
15427 want64=false
15428fi
15429
15430
15431# Check whether --with-sysroot was given.
15432if test "${with_sysroot+set}" = set; then :
15433 withval=$with_sysroot;
15434 case ${with_sysroot} in
15435 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15436 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15437 esac
15438
15439 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15440 use_sysroot=yes
15441
15442 if test "x$prefix" = xNONE; then
15443 test_prefix=/usr/local
15444 else
15445 test_prefix=$prefix
15446 fi
15447 if test "x$exec_prefix" = xNONE; then
15448 test_exec_prefix=$test_prefix
15449 else
15450 test_exec_prefix=$exec_prefix
15451 fi
15452 case ${TARGET_SYSTEM_ROOT} in
15453 "${test_prefix}"|"${test_prefix}/"*|\
15454 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15455 '${prefix}'|'${prefix}/'*|\
15456 '${exec_prefix}'|'${exec_prefix}/'*)
15457 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15458 TARGET_SYSTEM_ROOT_DEFINE="$t"
15459 ;;
15460 esac
15461
15462else
15463
15464 use_sysroot=no
15465 TARGET_SYSTEM_ROOT=
15466 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15467
15468fi
15469
15470
15471
15472
15473
15474# Check whether --enable-gold was given.
15475if test "${enable_gold+set}" = set; then :
15476 enableval=$enable_gold; case "${enableval}" in
15477 default)
15478 install_as_default=no
15479 installed_linker=ld.bfd
15480 ;;
15481 yes|no)
15482 install_as_default=yes
15483 installed_linker=ld.bfd
15484 ;;
15485 *)
15486 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
15487 ;;
15488 esac
15489else
15490 install_as_default=yes
15491 installed_linker=ld.bfd
15492fi
15493
15494
15495
15496
15497# Check whether --enable-got was given.
15498if test "${enable_got+set}" = set; then :
15499 enableval=$enable_got; case "${enableval}" in
15500 target | single | negative | multigot) got_handling=$enableval ;;
15501 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15502esac
15503else
15504 got_handling=target
15505fi
15506
15507
15508case "${got_handling}" in
15509 target)
15510
15511$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15512 ;;
15513 single)
15514
15515$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15516 ;;
15517 negative)
15518
15519$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15520 ;;
15521 multigot)
15522
15523$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15524 ;;
15525 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15526esac
15527
6c3bc0f8
NC
15528# PR gas/19109
15529# Decide the default method for compressing debug sections.
15530ac_default_compressed_debug_sections=unset
15531# Provide a configure time option to override our default.
15532# Check whether --enable-compressed_debug_sections was given.
15533if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15534 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15535 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15536 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15537esac
15538fi
15539
b879806f
AM
15540
15541# Set the 'development' global.
15542. $srcdir/../bfd/development.sh
15543
9780e045 15544# Default set of GCC warnings to enable.
b879806f 15545GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15546
15547# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549/* end confdefs.h. */
15550__GNUC__
15551_ACEOF
15552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15553 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
ce2cded5 15554
3cb62297 15555else
b879806f 15556 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15557fi
b879806f 15558rm -f conftest*
ce2cded5 15559
ce2cded5 15560
9780e045
NC
15561# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563/* end confdefs.h. */
15564__GNUC__
15565_ACEOF
15566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15567 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
15568
15569else
15570 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15571fi
15572rm -f conftest*
15573
15574
6757cf57
TS
15575# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15576WARN_WRITE_STRINGS=""
15577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578/* end confdefs.h. */
15579__GNUC__
15580_ACEOF
15581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15582 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
15583
15584else
15585 WARN_WRITE_STRINGS="-Wwrite-strings"
15586fi
15587rm -f conftest*
15588
9780e045 15589
b879806f
AM
15590# Check whether --enable-werror was given.
15591if test "${enable_werror+set}" = set; then :
15592 enableval=$enable_werror; case "${enableval}" in
15593 yes | y) ERROR_ON_WARNING="yes" ;;
15594 no | n) ERROR_ON_WARNING="no" ;;
15595 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15596 esac
15597fi
ce2cded5
L
15598
15599
b879806f
AM
15600# Disable -Wformat by default when using gcc on mingw
15601case "${host}" in
15602 *-*-mingw32*)
15603 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15604 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
15605 fi
15606 ;;
15607 *) ;;
15608esac
ce2cded5 15609
b879806f
AM
15610# Enable -Werror by default when using gcc. Turn it off for releases.
15611if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15612 ERROR_ON_WARNING=yes
15613fi
d7040cdb 15614
b879806f
AM
15615NO_WERROR=
15616if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 15617 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
b879806f
AM
15618 NO_WERROR="-Wno-error"
15619fi
3cb62297 15620
b879806f
AM
15621if test "${GCC}" = yes ; then
15622 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15623fi
67310ccd 15624
b879806f
AM
15625# Check whether --enable-build-warnings was given.
15626if test "${enable_build_warnings+set}" = set; then :
15627 enableval=$enable_build_warnings; case "${enableval}" in
15628 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
15629 no) if test "${GCC}" = yes ; then
15630 WARN_CFLAGS="-w"
15631 fi;;
15632 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15633 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
15634 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15635 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
15636 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15637esac
15638fi
67310ccd 15639
d7040cdb 15640
b879806f
AM
15641if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15642 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15643fi
d7040cdb 15644
d7040cdb 15645
d7040cdb 15646
d7040cdb 15647
ce2cded5
L
15648
15649
6757cf57 15650
b879806f
AM
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15652$as_echo_n "checking for LC_MESSAGES... " >&6; }
15653if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
15654 $as_echo_n "(cached) " >&6
15655else
15656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15657/* end confdefs.h. */
15658#include <locale.h>
15659int
15660main ()
15661{
15662return LC_MESSAGES
15663 ;
15664 return 0;
15665}
15666_ACEOF
15667if ac_fn_c_try_link "$LINENO"; then :
15668 am_cv_val_LC_MESSAGES=yes
15669else
15670 am_cv_val_LC_MESSAGES=no
15671fi
15672rm -f core conftest.err conftest.$ac_objext \
15673 conftest$ac_exeext conftest.$ac_ext
15674fi
15675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15676$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15677 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 15678
b879806f 15679$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 15680
b879806f 15681 fi
ce2cded5 15682
ce2cded5 15683
b879806f 15684ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
15685
15686
b879806f 15687# PR 14072
ce2cded5 15688
ce2cded5 15689
b879806f
AM
15690if test -z "$target" ; then
15691 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
15692fi
15693if test -z "$host" ; then
15694 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
15695fi
d7040cdb 15696
b879806f 15697# host-specific stuff:
d7040cdb 15698
3e4fe8ac 15699ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk"
d7040cdb
SE
15700# If we haven't got the data from the intl directory,
15701# assume NLS is disabled.
15702USE_NLS=no
15703LIBINTL=
15704LIBINTL_DEP=
15705INCINTL=
15706XGETTEXT=
15707GMSGFMT=
15708POSUB=
15709
15710if test -f ../intl/config.intl; then
15711 . ../intl/config.intl
15712fi
81ecdfbb
RW
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15714$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 15715if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717$as_echo "no" >&6; }
d7040cdb 15718else
81ecdfbb
RW
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15720$as_echo "yes" >&6; }
d7040cdb 15721
81ecdfbb 15722$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
15723
15724
81ecdfbb
RW
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15726$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
15727 # Look for .po and .gmo files in the source directory.
15728 CATALOGS=
15729 XLINGUAS=
15730 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15731 # If there aren't any .gmo files the shell will give us the
15732 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15733 # weeded out.
15734 case "$cat" in *\**)
15735 continue;;
15736 esac
15737 # The quadruple backslash is collapsed to a double backslash
15738 # by the backticks, then collapsed again by the double quotes,
15739 # leaving us with one backslash in the sed expression (right
15740 # before the dot that mustn't act as a wildcard).
15741 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15742 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15743 # The user is allowed to set LINGUAS to a list of languages to
15744 # install catalogs for. If it's empty that means "all of them."
15745 if test "x$LINGUAS" = x; then
15746 CATALOGS="$CATALOGS $cat"
15747 XLINGUAS="$XLINGUAS $lang"
15748 else
15749 case "$LINGUAS" in *$lang*)
15750 CATALOGS="$CATALOGS $cat"
15751 XLINGUAS="$XLINGUAS $lang"
15752 ;;
15753 esac
15754 fi
15755 done
15756 LINGUAS="$XLINGUAS"
81ecdfbb
RW
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15758$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
15759
15760
15761 DATADIRNAME=share
15762
15763 INSTOBJEXT=.mo
15764
15765 GENCAT=gencat
15766
15767 CATOBJEXT=.gmo
15768
15769fi
15770
15771 MKINSTALLDIRS=
15772 if test -n "$ac_aux_dir"; then
15773 case "$ac_aux_dir" in
15774 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15775 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15776 esac
15777 fi
15778 if test -z "$MKINSTALLDIRS"; then
15779 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15780 fi
15781
15782
15783
81ecdfbb
RW
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15785$as_echo_n "checking whether NLS is requested... " >&6; }
15786 # Check whether --enable-nls was given.
15787if test "${enable_nls+set}" = set; then :
15788 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
15789else
15790 USE_NLS=yes
81ecdfbb
RW
15791fi
15792
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15794$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
15795
15796
15797
15798
15799
15800
15801# Prepare PATH_SEPARATOR.
15802# The user is always right.
15803if test "${PATH_SEPARATOR+set}" != set; then
15804 echo "#! /bin/sh" >conf$$.sh
15805 echo "exit 0" >>conf$$.sh
15806 chmod +x conf$$.sh
15807 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15808 PATH_SEPARATOR=';'
15809 else
15810 PATH_SEPARATOR=:
15811 fi
15812 rm -f conf$$.sh
15813fi
15814
15815# Find out how to test for executable files. Don't use a zero-byte file,
15816# as systems may use methods other than mode bits to determine executability.
15817cat >conf$$.file <<_ASEOF
15818#! /bin/sh
15819exit 0
15820_ASEOF
15821chmod +x conf$$.file
15822if test -x conf$$.file >/dev/null 2>&1; then
15823 ac_executable_p="test -x"
15824else
15825 ac_executable_p="test -f"
15826fi
15827rm -f conf$$.file
15828
15829# Extract the first word of "msgfmt", so it can be a program name with args.
15830set dummy msgfmt; ac_word=$2
81ecdfbb
RW
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15832$as_echo_n "checking for $ac_word... " >&6; }
15833if test "${ac_cv_path_MSGFMT+set}" = set; then :
15834 $as_echo_n "(cached) " >&6
d7040cdb
SE
15835else
15836 case "$MSGFMT" in
15837 [\\/]* | ?:[\\/]*)
15838 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15839 ;;
15840 *)
15841 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15842 for ac_dir in $PATH; do
15843 IFS="$ac_save_IFS"
15844 test -z "$ac_dir" && ac_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15847 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15848 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15849 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15850 break 2
15851 fi
15852 fi
15853 done
15854 done
15855 IFS="$ac_save_IFS"
15856 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15857 ;;
15858esac
15859fi
15860MSGFMT="$ac_cv_path_MSGFMT"
15861if test "$MSGFMT" != ":"; then
81ecdfbb
RW
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15863$as_echo "$MSGFMT" >&6; }
d7040cdb 15864else
81ecdfbb
RW
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866$as_echo "no" >&6; }
d7040cdb
SE
15867fi
15868
15869 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15870set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15872$as_echo_n "checking for $ac_word... " >&6; }
15873if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15874 $as_echo_n "(cached) " >&6
d7040cdb
SE
15875else
15876 case $GMSGFMT in
15877 [\\/]* | ?:[\\/]*)
15878 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15879 ;;
15880 *)
15881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15882for as_dir in $PATH
15883do
15884 IFS=$as_save_IFS
15885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
15886 for ac_exec_ext in '' $ac_executable_extensions; do
15887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 15888 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
15890 break 2
15891 fi
15892done
81ecdfbb
RW
15893 done
15894IFS=$as_save_IFS
d7040cdb
SE
15895
15896 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15897 ;;
15898esac
15899fi
15900GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 15901if test -n "$GMSGFMT"; then
81ecdfbb
RW
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15903$as_echo "$GMSGFMT" >&6; }
d7040cdb 15904else
81ecdfbb
RW
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15906$as_echo "no" >&6; }
20e95c23 15907fi
42ecbf5e 15908
20e95c23 15909
252b5132 15910
81ecdfbb 15911
d7040cdb
SE
15912# Prepare PATH_SEPARATOR.
15913# The user is always right.
15914if test "${PATH_SEPARATOR+set}" != set; then
15915 echo "#! /bin/sh" >conf$$.sh
15916 echo "exit 0" >>conf$$.sh
15917 chmod +x conf$$.sh
15918 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15919 PATH_SEPARATOR=';'
15920 else
15921 PATH_SEPARATOR=:
15922 fi
15923 rm -f conf$$.sh
20e95c23 15924fi
252b5132 15925
d7040cdb
SE
15926# Find out how to test for executable files. Don't use a zero-byte file,
15927# as systems may use methods other than mode bits to determine executability.
15928cat >conf$$.file <<_ASEOF
15929#! /bin/sh
15930exit 0
15931_ASEOF
15932chmod +x conf$$.file
15933if test -x conf$$.file >/dev/null 2>&1; then
15934 ac_executable_p="test -x"
20e95c23 15935else
d7040cdb
SE
15936 ac_executable_p="test -f"
15937fi
15938rm -f conf$$.file
20e95c23 15939
d7040cdb
SE
15940# Extract the first word of "xgettext", so it can be a program name with args.
15941set dummy xgettext; ac_word=$2
81ecdfbb
RW
15942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15943$as_echo_n "checking for $ac_word... " >&6; }
15944if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15945 $as_echo_n "(cached) " >&6
252b5132 15946else
d7040cdb
SE
15947 case "$XGETTEXT" in
15948 [\\/]* | ?:[\\/]*)
15949 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15950 ;;
15951 *)
15952 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15953 for ac_dir in $PATH; do
15954 IFS="$ac_save_IFS"
15955 test -z "$ac_dir" && ac_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15958 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15959 (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
15960 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15961 break 2
15962 fi
15963 fi
15964 done
15965 done
15966 IFS="$ac_save_IFS"
15967 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15968 ;;
15969esac
252b5132 15970fi
d7040cdb
SE
15971XGETTEXT="$ac_cv_path_XGETTEXT"
15972if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15974$as_echo "$XGETTEXT" >&6; }
d5fbea21 15975else
81ecdfbb
RW
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15977$as_echo "no" >&6; }
d5fbea21
DJ
15978fi
15979
d7040cdb 15980 rm -f messages.po
d5fbea21 15981
20e95c23 15982
d7040cdb
SE
15983# Prepare PATH_SEPARATOR.
15984# The user is always right.
15985if test "${PATH_SEPARATOR+set}" != set; then
15986 echo "#! /bin/sh" >conf$$.sh
15987 echo "exit 0" >>conf$$.sh
15988 chmod +x conf$$.sh
15989 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15990 PATH_SEPARATOR=';'
15991 else
15992 PATH_SEPARATOR=:
15993 fi
15994 rm -f conf$$.sh
15995fi
20e95c23 15996
d7040cdb
SE
15997# Find out how to test for executable files. Don't use a zero-byte file,
15998# as systems may use methods other than mode bits to determine executability.
15999cat >conf$$.file <<_ASEOF
16000#! /bin/sh
16001exit 0
16002_ASEOF
16003chmod +x conf$$.file
16004if test -x conf$$.file >/dev/null 2>&1; then
16005 ac_executable_p="test -x"
16006else
16007 ac_executable_p="test -f"
16008fi
16009rm -f conf$$.file
20e95c23 16010
d7040cdb
SE
16011# Extract the first word of "msgmerge", so it can be a program name with args.
16012set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16014$as_echo_n "checking for $ac_word... " >&6; }
16015if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16016 $as_echo_n "(cached) " >&6
d7040cdb
SE
16017else
16018 case "$MSGMERGE" in
16019 [\\/]* | ?:[\\/]*)
16020 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16021 ;;
16022 *)
16023 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16024 for ac_dir in $PATH; do
16025 IFS="$ac_save_IFS"
16026 test -z "$ac_dir" && ac_dir=.
16027 for ac_exec_ext in '' $ac_executable_extensions; do
16028 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16029 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16030 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16031 break 2
16032 fi
16033 fi
16034 done
16035 done
16036 IFS="$ac_save_IFS"
16037 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16038 ;;
16039esac
16040fi
16041MSGMERGE="$ac_cv_path_MSGMERGE"
16042if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16044$as_echo "$MSGMERGE" >&6; }
d7040cdb 16045else
81ecdfbb
RW
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16047$as_echo "no" >&6; }
d7040cdb 16048fi
20e95c23
DJ
16049
16050
d7040cdb
SE
16051 if test "$GMSGFMT" != ":"; then
16052 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16053 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16054 : ;
16055 else
16056 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16058$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16059 GMSGFMT=":"
16060 fi
16061 fi
20e95c23 16062
d7040cdb
SE
16063 if test "$XGETTEXT" != ":"; then
16064 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16065 (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
16066 : ;
16067 else
81ecdfbb
RW
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16069$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16070 XGETTEXT=":"
16071 fi
16072 rm -f messages.po
20e95c23 16073 fi
42ecbf5e 16074
81ecdfbb 16075 ac_config_commands="$ac_config_commands default-1"
252b5132 16076
42ecbf5e 16077
252b5132 16078
42ecbf5e
DJ
16079
16080
d7040cdb 16081for ac_prog in 'bison -y' byacc
20e95c23 16082do
d7040cdb
SE
16083 # Extract the first word of "$ac_prog", so it can be a program name with args.
16084set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16086$as_echo_n "checking for $ac_word... " >&6; }
16087if test "${ac_cv_prog_YACC+set}" = set; then :
16088 $as_echo_n "(cached) " >&6
20e95c23 16089else
d7040cdb
SE
16090 if test -n "$YACC"; then
16091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16092else
d7040cdb
SE
16093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094for as_dir in $PATH
16095do
16096 IFS=$as_save_IFS
16097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16098 for ac_exec_ext in '' $ac_executable_extensions; do
16099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16100 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16102 break 2
16103 fi
16104done
81ecdfbb
RW
16105 done
16106IFS=$as_save_IFS
42ecbf5e 16107
42ecbf5e 16108fi
e5a52504 16109fi
d7040cdb
SE
16110YACC=$ac_cv_prog_YACC
16111if test -n "$YACC"; then
81ecdfbb
RW
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16113$as_echo "$YACC" >&6; }
42ecbf5e 16114else
81ecdfbb
RW
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116$as_echo "no" >&6; }
42ecbf5e 16117fi
252b5132 16118
81ecdfbb 16119
d7040cdb 16120 test -n "$YACC" && break
42ecbf5e 16121done
d7040cdb 16122test -n "$YACC" || YACC="yacc"
d15b04bd 16123
d7040cdb
SE
16124for ac_prog in flex lex
16125do
16126 # Extract the first word of "$ac_prog", so it can be a program name with args.
16127set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129$as_echo_n "checking for $ac_word... " >&6; }
16130if test "${ac_cv_prog_LEX+set}" = set; then :
16131 $as_echo_n "(cached) " >&6
d15b04bd 16132else
d7040cdb
SE
16133 if test -n "$LEX"; then
16134 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16135else
16136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137for as_dir in $PATH
16138do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d7040cdb 16143 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16145 break 2
16146 fi
16147done
81ecdfbb
RW
16148 done
16149IFS=$as_save_IFS
d7040cdb
SE
16150
16151fi
16152fi
16153LEX=$ac_cv_prog_LEX
16154if test -n "$LEX"; then
81ecdfbb
RW
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16156$as_echo "$LEX" >&6; }
d7040cdb 16157else
81ecdfbb
RW
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159$as_echo "no" >&6; }
d15b04bd 16160fi
e5a52504 16161
81ecdfbb 16162
d7040cdb
SE
16163 test -n "$LEX" && break
16164done
16165test -n "$LEX" || LEX=":"
42ecbf5e 16166
3d961d0d
AM
16167case "$LEX" in
16168 :|*"missing "*) ;;
16169 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16170%%
16171a { ECHO; }
16172b { REJECT; }
16173c { yymore (); }
16174d { yyless (1); }
16175e { yyless (input () != 0); }
16176f { unput (yytext[0]); }
16177. { BEGIN INITIAL; }
16178%%
16179#ifdef YYTEXT_POINTER
16180extern char *yytext;
d7040cdb 16181#endif
42ecbf5e 16182int
81ecdfbb 16183main (void)
42ecbf5e 16184{
81ecdfbb 16185 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16186}
16187_ACEOF
81ecdfbb
RW
16188{ { ac_try="$LEX conftest.l"
16189case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16192esac
16193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16194$as_echo "$ac_try_echo"; } >&5
16195 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16196 ac_status=$?
81ecdfbb
RW
16197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16198 test $ac_status = 0; }
16199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16200$as_echo_n "checking lex output file root... " >&6; }
16201if test "${ac_cv_prog_lex_root+set}" = set; then :
16202 $as_echo_n "(cached) " >&6
42ecbf5e 16203else
42ecbf5e 16204
81ecdfbb
RW
16205if test -f lex.yy.c; then
16206 ac_cv_prog_lex_root=lex.yy
16207elif test -f lexyy.c; then
16208 ac_cv_prog_lex_root=lexyy
16209else
16210 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16211fi
42ecbf5e 16212fi
81ecdfbb
RW
16213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16214$as_echo "$ac_cv_prog_lex_root" >&6; }
16215LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16216
81ecdfbb
RW
16217if test -z "${LEXLIB+set}"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16219$as_echo_n "checking lex library... " >&6; }
16220if test "${ac_cv_lib_lex+set}" = set; then :
16221 $as_echo_n "(cached) " >&6
252b5132 16222else
20e95c23 16223
81ecdfbb
RW
16224 ac_save_LIBS=$LIBS
16225 ac_cv_lib_lex='none needed'
16226 for ac_lib in '' -lfl -ll; do
16227 LIBS="$ac_lib $ac_save_LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229/* end confdefs.h. */
16230`cat $LEX_OUTPUT_ROOT.c`
16231_ACEOF
16232if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_lex=$ac_lib
20e95c23 16234fi
81ecdfbb
RW
16235rm -f core conftest.err conftest.$ac_objext \
16236 conftest$ac_exeext conftest.$ac_ext
16237 test "$ac_cv_lib_lex" != 'none needed' && break
16238 done
16239 LIBS=$ac_save_LIBS
20e95c23
DJ
16240
16241fi
81ecdfbb
RW
16242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16243$as_echo "$ac_cv_lib_lex" >&6; }
16244 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16245fi
20e95c23 16246
20e95c23 16247
81ecdfbb
RW
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16249$as_echo_n "checking whether yytext is a pointer... " >&6; }
16250if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16251 $as_echo_n "(cached) " >&6
d7040cdb
SE
16252else
16253 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16254# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16255# not all implementations provide the %pointer and %array declarations.
16256ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16257ac_save_LIBS=$LIBS
81ecdfbb
RW
16258LIBS="$LEXLIB $ac_save_LIBS"
16259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h. */
16261#define YYTEXT_POINTER 1
d7040cdb 16262`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16263_ACEOF
81ecdfbb 16264if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16265 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16266fi
81ecdfbb
RW
16267rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16269LIBS=$ac_save_LIBS
d7040cdb
SE
16270
16271fi
81ecdfbb
RW
16272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16273$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16274if test $ac_cv_prog_lex_yytext_pointer = yes; then
16275
81ecdfbb 16276$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16277
16278fi
81ecdfbb 16279rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16280 ;;
16281esac
d7040cdb
SE
16282if test "$LEX" = :; then
16283 LEX=${am_missing_run}flex
16284fi
16285
81ecdfbb
RW
16286
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16288$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16289 # Check whether --enable-maintainer-mode was given.
16290if test "${enable_maintainer_mode+set}" = set; then :
16291 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16292else
d7040cdb 16293 USE_MAINTAINER_MODE=no
81ecdfbb 16294fi
d7040cdb 16295
81ecdfbb
RW
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16297$as_echo "$USE_MAINTAINER_MODE" >&6; }
16298 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16299 MAINTAINER_MODE_TRUE=
16300 MAINTAINER_MODE_FALSE='#'
16301else
16302 MAINTAINER_MODE_TRUE='#'
16303 MAINTAINER_MODE_FALSE=
252b5132 16304fi
252b5132 16305
d7040cdb
SE
16306 MAINT=$MAINTAINER_MODE_TRUE
16307
16308
81ecdfbb 16309 if false; then
d7040cdb
SE
16310 GENINSRC_NEVER_TRUE=
16311 GENINSRC_NEVER_FALSE='#'
16312else
16313 GENINSRC_NEVER_TRUE='#'
16314 GENINSRC_NEVER_FALSE=
252b5132
RH
16315fi
16316
81ecdfbb
RW
16317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16318$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16319if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16320 $as_echo_n "(cached) " >&6
eccbf555
AM
16321else
16322 echo abfoo >t1
16323 echo cdfoo >t2
16324 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16325 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16326 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16327 :
16328 else
16329 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16330 fi
16331 fi
16332 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16333 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16334 :
16335 else
16336 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16337 fi
16338 fi
16339 rm t1 t2
16340
16341fi
81ecdfbb
RW
16342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16343$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16344do_compare="$gcc_cv_prog_cmp_skip"
16345
16346
d7040cdb
SE
16347
16348. ${srcdir}/configure.host
16349
16350
16351
16352
252b5132
RH
16353
16354
6738cadc 16355
b27caf75 16356
58797674 16357for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16358do :
16359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16360ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16361eval as_val=\$$as_ac_Header
16362 if test "x$as_val" = x""yes; then :
42ecbf5e 16363 cat >>confdefs.h <<_ACEOF
81ecdfbb 16364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16365_ACEOF
16366
16367fi
16368
252b5132
RH
16369done
16370
5d3236ee
DK
16371for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16372do :
16373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16374ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16375eval as_val=\$$as_ac_Header
16376 if test "x$as_val" = x""yes; then :
16377 cat >>confdefs.h <<_ACEOF
16378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16379_ACEOF
16380
16381fi
16382
16383done
16384
208a4923
NC
16385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16386$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
16387if test "${gcc_cv_header_string+set}" = set; then :
16388 $as_echo_n "(cached) " >&6
16389else
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391/* end confdefs.h. */
16392#include <string.h>
16393#include <strings.h>
16394int
16395main ()
16396{
16397
16398 ;
16399 return 0;
16400}
16401_ACEOF
16402if ac_fn_c_try_compile "$LINENO"; then :
16403 gcc_cv_header_string=yes
16404else
16405 gcc_cv_header_string=no
16406fi
16407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16408fi
16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16410$as_echo "$gcc_cv_header_string" >&6; }
16411if test $gcc_cv_header_string = yes; then
16412
16413$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16414
16415fi
16416
44350750 16417for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16418do :
16419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16420ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16421eval as_val=\$$as_ac_var
16422 if test "x$as_val" = x""yes; then :
42ecbf5e 16423 cat >>confdefs.h <<_ACEOF
81ecdfbb 16424#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16425_ACEOF
252b5132 16426
252b5132
RH
16427fi
16428done
16429
5d3236ee
DK
16430for ac_func in open lseek close
16431do :
16432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16434eval as_val=\$$as_ac_var
16435 if test "x$as_val" = x""yes; then :
16436 cat >>confdefs.h <<_ACEOF
16437#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16438_ACEOF
16439
16440fi
16441done
16442
252b5132 16443ac_header_dirent=no
42ecbf5e 16444for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16445 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16447$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16449 $as_echo_n "(cached) " >&6
16450else
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16452/* end confdefs.h. */
252b5132
RH
16453#include <sys/types.h>
16454#include <$ac_hdr>
42ecbf5e
DJ
16455
16456int
16457main ()
16458{
16459if ((DIR *) 0)
16460return 0;
16461 ;
16462 return 0;
16463}
16464_ACEOF
81ecdfbb 16465if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16466 eval "$as_ac_Header=yes"
16467else
81ecdfbb 16468 eval "$as_ac_Header=no"
42ecbf5e 16469fi
81ecdfbb 16470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16471fi
81ecdfbb
RW
16472eval ac_res=\$$as_ac_Header
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16474$as_echo "$ac_res" >&6; }
16475eval as_val=\$$as_ac_Header
16476 if test "x$as_val" = x""yes; then :
42ecbf5e 16477 cat >>confdefs.h <<_ACEOF
81ecdfbb 16478#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16479_ACEOF
16480
16481ac_header_dirent=$ac_hdr; break
d15b04bd 16482fi
42ecbf5e 16483
d15b04bd
L
16484done
16485# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16486if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16488$as_echo_n "checking for library containing opendir... " >&6; }
16489if test "${ac_cv_search_opendir+set}" = set; then :
16490 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16491else
16492 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16494/* end confdefs.h. */
16495
81ecdfbb
RW
16496/* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16499#ifdef __cplusplus
16500extern "C"
16501#endif
42ecbf5e
DJ
16502char opendir ();
16503int
16504main ()
16505{
81ecdfbb 16506return opendir ();
42ecbf5e
DJ
16507 ;
16508 return 0;
16509}
16510_ACEOF
81ecdfbb
RW
16511for ac_lib in '' dir; do
16512 if test -z "$ac_lib"; then
16513 ac_res="none required"
16514 else
16515 ac_res=-l$ac_lib
42ecbf5e 16516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16517 fi
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 ac_cv_search_opendir=$ac_res
16520fi
16521rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext
16523 if test "${ac_cv_search_opendir+set}" = set; then :
16524 break
16525fi
16526done
16527if test "${ac_cv_search_opendir+set}" = set; then :
e5a52504 16528
42ecbf5e 16529else
81ecdfbb 16530 ac_cv_search_opendir=no
252b5132 16531fi
81ecdfbb 16532rm conftest.$ac_ext
42ecbf5e
DJ
16533LIBS=$ac_func_search_save_LIBS
16534fi
81ecdfbb
RW
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16536$as_echo "$ac_cv_search_opendir" >&6; }
16537ac_res=$ac_cv_search_opendir
16538if test "$ac_res" != no; then :
16539 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16540
d15b04bd 16541fi
252b5132
RH
16542
16543else
81ecdfbb
RW
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16545$as_echo_n "checking for library containing opendir... " >&6; }
16546if test "${ac_cv_search_opendir+set}" = set; then :
16547 $as_echo_n "(cached) " >&6
252b5132 16548else
42ecbf5e 16549 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16551/* end confdefs.h. */
16552
81ecdfbb
RW
16553/* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16556#ifdef __cplusplus
16557extern "C"
16558#endif
42ecbf5e
DJ
16559char opendir ();
16560int
16561main ()
16562{
81ecdfbb 16563return opendir ();
42ecbf5e
DJ
16564 ;
16565 return 0;
16566}
16567_ACEOF
81ecdfbb
RW
16568for ac_lib in '' x; do
16569 if test -z "$ac_lib"; then
16570 ac_res="none required"
16571 else
16572 ac_res=-l$ac_lib
42ecbf5e 16573 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16574 fi
16575 if ac_fn_c_try_link "$LINENO"; then :
16576 ac_cv_search_opendir=$ac_res
16577fi
16578rm -f core conftest.err conftest.$ac_objext \
16579 conftest$ac_exeext
16580 if test "${ac_cv_search_opendir+set}" = set; then :
16581 break
16582fi
16583done
16584if test "${ac_cv_search_opendir+set}" = set; then :
252b5132 16585
42ecbf5e 16586else
81ecdfbb 16587 ac_cv_search_opendir=no
252b5132 16588fi
81ecdfbb 16589rm conftest.$ac_ext
42ecbf5e 16590LIBS=$ac_func_search_save_LIBS
252b5132 16591fi
81ecdfbb
RW
16592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16593$as_echo "$ac_cv_search_opendir" >&6; }
16594ac_res=$ac_cv_search_opendir
16595if test "$ac_res" != no; then :
16596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16597
d15b04bd 16598fi
252b5132
RH
16599
16600fi
16601
16602
2aec968d
L
16603for ac_header in stdlib.h unistd.h
16604do :
16605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16606ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16607eval as_val=\$$as_ac_Header
16608 if test "x$as_val" = x""yes; then :
16609 cat >>confdefs.h <<_ACEOF
16610#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16611_ACEOF
16612
16613fi
16614
16615done
16616
16617for ac_func in getpagesize
16618do :
16619 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16620if test "x$ac_cv_func_getpagesize" = x""yes; then :
16621 cat >>confdefs.h <<_ACEOF
16622#define HAVE_GETPAGESIZE 1
16623_ACEOF
16624
16625fi
16626done
16627
16628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16629$as_echo_n "checking for working mmap... " >&6; }
16630if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
16631 $as_echo_n "(cached) " >&6
16632else
16633 if test "$cross_compiling" = yes; then :
16634 ac_cv_func_mmap_fixed_mapped=no
16635else
16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16637/* end confdefs.h. */
16638$ac_includes_default
16639/* malloc might have been renamed as rpl_malloc. */
16640#undef malloc
16641
16642/* Thanks to Mike Haertel and Jim Avera for this test.
16643 Here is a matrix of mmap possibilities:
16644 mmap private not fixed
16645 mmap private fixed at somewhere currently unmapped
16646 mmap private fixed at somewhere already mapped
16647 mmap shared not fixed
16648 mmap shared fixed at somewhere currently unmapped
16649 mmap shared fixed at somewhere already mapped
16650 For private mappings, we should verify that changes cannot be read()
16651 back from the file, nor mmap's back from the file at a different
16652 address. (There have been systems where private was not correctly
16653 implemented like the infamous i386 svr4.0, and systems where the
16654 VM page cache was not coherent with the file system buffer cache
16655 like early versions of FreeBSD and possibly contemporary NetBSD.)
16656 For shared mappings, we should conversely verify that changes get
16657 propagated back to all the places they're supposed to be.
16658
16659 Grep wants private fixed already mapped.
16660 The main things grep needs to know about mmap are:
16661 * does it exist and is it safe to write into the mmap'd area
16662 * how to use it (BSD variants) */
16663
16664#include <fcntl.h>
16665#include <sys/mman.h>
16666
16667#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16668char *malloc ();
16669#endif
16670
16671/* This mess was copied from the GNU getpagesize.h. */
16672#ifndef HAVE_GETPAGESIZE
16673/* Assume that all systems that can run configure have sys/param.h. */
16674# ifndef HAVE_SYS_PARAM_H
16675# define HAVE_SYS_PARAM_H 1
16676# endif
16677
16678# ifdef _SC_PAGESIZE
16679# define getpagesize() sysconf(_SC_PAGESIZE)
16680# else /* no _SC_PAGESIZE */
16681# ifdef HAVE_SYS_PARAM_H
16682# include <sys/param.h>
16683# ifdef EXEC_PAGESIZE
16684# define getpagesize() EXEC_PAGESIZE
16685# else /* no EXEC_PAGESIZE */
16686# ifdef NBPG
16687# define getpagesize() NBPG * CLSIZE
16688# ifndef CLSIZE
16689# define CLSIZE 1
16690# endif /* no CLSIZE */
16691# else /* no NBPG */
16692# ifdef NBPC
16693# define getpagesize() NBPC
16694# else /* no NBPC */
16695# ifdef PAGESIZE
16696# define getpagesize() PAGESIZE
16697# endif /* PAGESIZE */
16698# endif /* no NBPC */
16699# endif /* no NBPG */
16700# endif /* no EXEC_PAGESIZE */
16701# else /* no HAVE_SYS_PARAM_H */
16702# define getpagesize() 8192 /* punt totally */
16703# endif /* no HAVE_SYS_PARAM_H */
16704# endif /* no _SC_PAGESIZE */
16705
16706#endif /* no HAVE_GETPAGESIZE */
16707
16708int
16709main ()
16710{
16711 char *data, *data2, *data3;
16712 int i, pagesize;
16713 int fd;
16714
16715 pagesize = getpagesize ();
16716
16717 /* First, make a file with some known garbage in it. */
16718 data = (char *) malloc (pagesize);
16719 if (!data)
16720 return 1;
16721 for (i = 0; i < pagesize; ++i)
16722 *(data + i) = rand ();
16723 umask (0);
16724 fd = creat ("conftest.mmap", 0600);
16725 if (fd < 0)
16726 return 1;
16727 if (write (fd, data, pagesize) != pagesize)
16728 return 1;
16729 close (fd);
16730
16731 /* Next, try to mmap the file at a fixed address which already has
16732 something else allocated at it. If we can, also make sure that
16733 we see the same garbage. */
16734 fd = open ("conftest.mmap", O_RDWR);
16735 if (fd < 0)
16736 return 1;
16737 data2 = (char *) malloc (2 * pagesize);
16738 if (!data2)
16739 return 1;
16740 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16741 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16742 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16743 return 1;
16744 for (i = 0; i < pagesize; ++i)
16745 if (*(data + i) != *(data2 + i))
16746 return 1;
16747
16748 /* Finally, make sure that changes to the mapped area do not
16749 percolate back to the file as seen by read(). (This is a bug on
16750 some variants of i386 svr4.0.) */
16751 for (i = 0; i < pagesize; ++i)
16752 *(data2 + i) = *(data2 + i) + 1;
16753 data3 = (char *) malloc (pagesize);
16754 if (!data3)
16755 return 1;
16756 if (read (fd, data3, pagesize) != pagesize)
16757 return 1;
16758 for (i = 0; i < pagesize; ++i)
16759 if (*(data + i) != *(data3 + i))
16760 return 1;
16761 close (fd);
16762 return 0;
16763}
16764_ACEOF
16765if ac_fn_c_try_run "$LINENO"; then :
16766 ac_cv_func_mmap_fixed_mapped=yes
16767else
16768 ac_cv_func_mmap_fixed_mapped=no
16769fi
16770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16771 conftest.$ac_objext conftest.beam conftest.$ac_ext
16772fi
16773
16774fi
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16776$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16777if test $ac_cv_func_mmap_fixed_mapped = yes; then
16778
16779$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16780
16781fi
16782rm -f conftest.mmap
16783
16784
5d3236ee
DK
16785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16786$as_echo_n "checking for library containing dlopen... " >&6; }
16787if test "${ac_cv_search_dlopen+set}" = set; then :
16788 $as_echo_n "(cached) " >&6
16789else
16790 ac_func_search_save_LIBS=$LIBS
16791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792/* end confdefs.h. */
16793
16794/* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797#ifdef __cplusplus
16798extern "C"
16799#endif
16800char dlopen ();
16801int
16802main ()
16803{
16804return dlopen ();
16805 ;
16806 return 0;
16807}
16808_ACEOF
16809for ac_lib in '' dl; do
16810 if test -z "$ac_lib"; then
16811 ac_res="none required"
16812 else
16813 ac_res=-l$ac_lib
16814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16815 fi
16816 if ac_fn_c_try_link "$LINENO"; then :
16817 ac_cv_search_dlopen=$ac_res
16818fi
16819rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext
16821 if test "${ac_cv_search_dlopen+set}" = set; then :
16822 break
16823fi
16824done
16825if test "${ac_cv_search_dlopen+set}" = set; then :
16826
16827else
16828 ac_cv_search_dlopen=no
16829fi
16830rm conftest.$ac_ext
16831LIBS=$ac_func_search_save_LIBS
16832fi
16833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16834$as_echo "$ac_cv_search_dlopen" >&6; }
16835ac_res=$ac_cv_search_dlopen
16836if test "$ac_res" != no; then :
16837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16838
3917d5d5
DK
16839fi
16840
b879806f 16841 if test x$plugins = xyes; then
5d3236ee
DK
16842 ENABLE_PLUGINS_TRUE=
16843 ENABLE_PLUGINS_FALSE='#'
16844else
16845 ENABLE_PLUGINS_TRUE='#'
16846 ENABLE_PLUGINS_FALSE=
16847fi
16848
16849
02ecc8e9
L
16850# Check whether --enable-initfini-array was given.
16851if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
16852 enableval=$enable_initfini_array; case "${enableval}" in
16853 yes|no) ;;
16854 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
16855 esac
02ecc8e9 16856else
26e3a0c9 16857 enable_initfini_array=yes
02ecc8e9
L
16858fi
16859
16860
16861if test $enable_initfini_array = yes; then
16862
16863$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16864
16865fi
16866
81ecdfbb
RW
16867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16868$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16869if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16870 $as_echo_n "(cached) " >&6
34875e64 16871else
81ecdfbb 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16873/* end confdefs.h. */
34875e64 16874#include <unistd.h>
42ecbf5e
DJ
16875int
16876main ()
16877{
34875e64 16878extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
16879 ;
16880 return 0;
16881}
16882_ACEOF
81ecdfbb 16883if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
16884 ld_cv_decl_getopt_unistd_h=yes
16885else
81ecdfbb 16886 ld_cv_decl_getopt_unistd_h=no
34875e64 16887fi
81ecdfbb 16888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
16889fi
16890
81ecdfbb
RW
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16892$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 16893if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 16894
81ecdfbb 16895$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
16896
16897fi
42ecbf5e 16898
252b5132
RH
16899
16900case "${host}" in
a8100d5b 16901*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16902
81ecdfbb 16903$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
16904 ;;
16905esac
16906
81ecdfbb
RW
16907ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16908if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16909 ac_have_decl=1
252b5132 16910else
81ecdfbb
RW
16911 ac_have_decl=0
16912fi
502bdb00 16913
81ecdfbb
RW
16914cat >>confdefs.h <<_ACEOF
16915#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 16916_ACEOF
81ecdfbb
RW
16917ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16918if test "x$ac_cv_have_decl_free" = x""yes; then :
16919 ac_have_decl=1
252b5132 16920else
81ecdfbb 16921 ac_have_decl=0
252b5132
RH
16922fi
16923
502bdb00 16924cat >>confdefs.h <<_ACEOF
81ecdfbb 16925#define HAVE_DECL_FREE $ac_have_decl
502bdb00 16926_ACEOF
81ecdfbb
RW
16927ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16928if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16929 ac_have_decl=1
16930else
16931 ac_have_decl=0
16932fi
42ecbf5e 16933
81ecdfbb
RW
16934cat >>confdefs.h <<_ACEOF
16935#define HAVE_DECL_SBRK $ac_have_decl
16936_ACEOF
16937ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16938if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16939 ac_have_decl=1
16940else
16941 ac_have_decl=0
16942fi
502bdb00 16943
81ecdfbb
RW
16944cat >>confdefs.h <<_ACEOF
16945#define HAVE_DECL_GETENV $ac_have_decl
16946_ACEOF
16947ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16948if test "x$ac_cv_have_decl_environ" = x""yes; then :
16949 ac_have_decl=1
502bdb00 16950else
81ecdfbb
RW
16951 ac_have_decl=0
16952fi
16953
16954cat >>confdefs.h <<_ACEOF
16955#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16956_ACEOF
252b5132 16957
252b5132 16958
597e2591
ILT
16959# When converting linker scripts into strings for use in emulation
16960# files, use astring.sed if the compiler supports ANSI string
16961# concatenation, or ostring.sed otherwise. This is to support the
16962# broken Microsoft MSVC compiler, which limits the length of string
16963# constants, while still supporting pre-ANSI compilers which do not
16964# support string concatenation.
81ecdfbb
RW
16965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16966$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16967if test "${ld_cv_string_concatenation+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
42ecbf5e 16969else
81ecdfbb 16970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16971/* end confdefs.h. */
81ecdfbb 16972
314e9a4e
L
16973int
16974main ()
16975{
81ecdfbb 16976char *a = "a" "a";
314e9a4e
L
16977 ;
16978 return 0;
16979}
16980_ACEOF
81ecdfbb
RW
16981if ac_fn_c_try_compile "$LINENO"; then :
16982 ld_cv_string_concatenation=yes
314e9a4e 16983else
81ecdfbb 16984 ld_cv_string_concatenation=no
314e9a4e 16985fi
81ecdfbb 16986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 16987fi
81ecdfbb
RW
16988
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16990$as_echo "$ld_cv_string_concatenation" >&6; }
16991if test "$ld_cv_string_concatenation" = "yes"; then
16992 STRINGIFY=astring.sed
16993else
16994 STRINGIFY=ostring.sed
314e9a4e 16995fi
81ecdfbb
RW
16996
16997
16998# target-specific stuff:
16999
17000all_targets=
17001EMUL=
17002all_emuls=
17003all_emul_extras=
17004all_libpath=
17005
17006rm -f tdirs
17007
bf9ef603 17008# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17009# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17010if test x${want64} = xfalse; then
17011 # The cast to long int works around a bug in the HP C Compiler
17012# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17013# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17014# This bug is HP SR number 8606223364.
17015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17016$as_echo_n "checking size of void *... " >&6; }
17017if test "${ac_cv_sizeof_void_p+set}" = set; then :
17018 $as_echo_n "(cached) " >&6
17019else
17020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17021
17022else
17023 if test "$ac_cv_type_void_p" = yes; then
17024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17026{ as_fn_set_status 77
17027as_fn_error "cannot compute sizeof (void *)
17028See \`config.log' for more details." "$LINENO" 5; }; }
17029 else
17030 ac_cv_sizeof_void_p=0
17031 fi
17032fi
17033
17034fi
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17036$as_echo "$ac_cv_sizeof_void_p" >&6; }
17037
17038
17039
17040cat >>confdefs.h <<_ACEOF
17041#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17042_ACEOF
17043
17044
17045 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17046 want64=true
17047 fi
17048fi
17049
c58212ea
L
17050elf_list_options=FALSE
17051elf_shlib_list_options=FALSE
17052elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17053for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17054do
17055 if test "$targ_alias" = "all"; then
17056 all_targets=true
82d8e420
L
17057 elf_list_options=TRUE
17058 elf_shlib_list_options=TRUE
17059 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17060 else
17061 # Canonicalize the secondary target names.
17062 result=`$ac_config_sub $targ_alias 2>/dev/null`
17063 if test -n "$result"; then
17064 targ=$result
17065 else
17066 targ=$targ_alias
17067 fi
17068
17069 . ${srcdir}/configure.tgt
17070
17071 if test "$targ" = "$target"; then
17072 EMUL=$targ_emul
17073 fi
17074
17075 if test x${want64} = xfalse; then
17076 . ${srcdir}/../bfd/config.bfd
17077 fi
17078
17079 if test x${want64} = xtrue; then
17080 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17081 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17082 fi
17083
17084 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17085 case " $all_emuls " in
8c3fff59
AM
17086 *" e${i}.o "*) ;;
17087 *)
17088 all_emuls="$all_emuls e${i}.o"
17089 eval result=\$tdir_$i
17090 test -z "$result" && result=$targ_alias
17091 echo tdir_$i=$result >> tdirs
c58212ea
L
17092 case "${i}" in
17093 *elf*)
17094 elf_list_options=TRUE
68880f31
CLT
17095 ;;
17096 *)
17097 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17098 elf_list_options=TRUE
17099 fi
17100 ;;
17101 esac
17102 if test "$elf_list_options" = "TRUE"; then
c58212ea
L
17103 . ${srcdir}/emulparams/${i}.sh
17104 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17105 elf_shlib_list_options=TRUE
17106 fi
17107 if test x${PLT_UNWIND} = xyes; then
17108 elf_plt_unwind_list_options=TRUE
17109 fi
68880f31 17110 fi
c58212ea 17111 ;;
81ecdfbb
RW
17112 esac
17113 done
17114
17115 for i in $targ_emul $targ_extra_libpath; do
17116 case " $all_libpath " in
17117 *" ${i} "*) ;;
17118 *)
17119 if test -z "$all_libpath"; then
17120 all_libpath=${i}
17121 else
17122 all_libpath="$all_libpath ${i}"
17123 fi
17124 ;;
17125 esac
17126 done
17127
17128 for i in $targ_extra_ofiles; do
17129 case " $all_emul_extras " in
17130 *" ${i} "*) ;;
17131 *)
17132 all_emul_extras="$all_emul_extras ${i}"
17133 ;;
17134 esac
17135 done
5063daf7 17136
81ecdfbb
RW
17137 fi
17138done
17139
621ff761 17140if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17141
17142$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17143
17144fi
17145
81ecdfbb
RW
17146
17147
c58212ea
L
17148
17149
17150
81ecdfbb
RW
17151TDIRS=tdirs
17152
17153
17154if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17155 if test x${want64} = xtrue; then
17156 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17157 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17158 else
17159 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17160 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17161 fi
42ecbf5e
DJ
17162else
17163 EMULATION_OFILES=$all_emuls
17164 EMUL_EXTRA_OFILES=$all_emul_extras
17165fi
17166
17167
17168
17169
17170EMULATION_LIBPATH=$all_libpath
17171
17172
17173if test x${enable_static} = xno; then
17174 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
17175else
17176 TESTBFDLIB="../bfd/.libs/libbfd.a"
17177fi
17178
17179
17180target_vendor=${target_vendor=$host_vendor}
17181case "$target_vendor" in
17182 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17183 *) EXTRA_SHLIB_EXTENSION= ;;
17184esac
17185
17186case "$target_os" in
17187 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17188esac
17189
17190if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17191
17192cat >>confdefs.h <<_ACEOF
17193#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17194_ACEOF
17195
17196fi
17197
108a6f8e
CD
17198
17199
17200
17201
31dd3154 17202
81ecdfbb 17203ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17204
42ecbf5e
DJ
17205cat >confcache <<\_ACEOF
17206# This file is a shell script that caches the results of configure
17207# tests run on this system so they can be shared between configure
17208# scripts and configure runs, see configure's option --config-cache.
17209# It is not useful on other systems. If it contains results you don't
17210# want to keep, you may remove or edit it.
17211#
17212# config.status only pays attention to the cache file if you give it
17213# the --recheck option to rerun configure.
17214#
17215# `ac_cv_env_foo' variables (set or unset) will be overridden when
17216# loading this file, other *unset* `ac_cv_foo' will be assigned the
17217# following values.
17218
17219_ACEOF
17220
17221# The following way of writing the cache mishandles newlines in values,
17222# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17223# So, we kill variables containing newlines.
42ecbf5e
DJ
17224# Ultrix sh set writes to stderr and can't be redirected directly,
17225# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17226(
17227 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17228 eval ac_val=\$$ac_var
17229 case $ac_val in #(
17230 *${as_nl}*)
17231 case $ac_var in #(
17232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17234 esac
17235 case $ac_var in #(
17236 _ | IFS | as_nl) ;; #(
17237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17238 *) { eval $ac_var=; unset $ac_var;} ;;
17239 esac ;;
17240 esac
17241 done
17242
42ecbf5e 17243 (set) 2>&1 |
81ecdfbb
RW
17244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17245 *${as_nl}ac_space=\ *)
17246 # `set' does not quote correctly, so add quotes: double-quote
17247 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17248 sed -n \
17249 "s/'/'\\\\''/g;
17250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17251 ;; #(
42ecbf5e
DJ
17252 *)
17253 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17255 ;;
81ecdfbb
RW
17256 esac |
17257 sort
17258) |
42ecbf5e 17259 sed '
81ecdfbb 17260 /^ac_cv_env_/b end
42ecbf5e 17261 t clear
81ecdfbb 17262 :clear
42ecbf5e
DJ
17263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17264 t end
81ecdfbb
RW
17265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17266 :end' >>confcache
17267if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17268 if test -w "$cache_file"; then
17269 test "x$cache_file" != "x/dev/null" &&
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17271$as_echo "$as_me: updating cache $cache_file" >&6;}
42ecbf5e
DJ
17272 cat confcache >$cache_file
17273 else
81ecdfbb
RW
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17275$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17276 fi
17277fi
17278rm -f confcache
17279
17280test "x$prefix" = xNONE && prefix=$ac_default_prefix
17281# Let make expand exec_prefix.
17282test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17283
42ecbf5e
DJ
17284DEFS=-DHAVE_CONFIG_H
17285
17286ac_libobjs=
17287ac_ltlibobjs=
17288for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17289 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17291 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17293 # will be set to the directory where LIBOBJS objects are built.
17294 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17295 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17296done
17297LIBOBJS=$ac_libobjs
17298
17299LTLIBOBJS=$ac_ltlibobjs
17300
17301
17302if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
81ecdfbb
RW
17303 as_fn_error "conditional \"AMDEP\" was never defined.
17304Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17305fi
17306if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
81ecdfbb
RW
17307 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17308Usually this means the macro was only invoked conditionally." "$LINENO" 5
17309fi
17310 if test -n "$EXEEXT"; then
17311 am__EXEEXT_TRUE=
17312 am__EXEEXT_FALSE='#'
17313else
17314 am__EXEEXT_TRUE='#'
17315 am__EXEEXT_FALSE=
42ecbf5e 17316fi
81ecdfbb 17317
64ac50ac
RW
17318if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17319 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17320Usually this means the macro was only invoked conditionally." "$LINENO" 5
17321fi
3cb62297
L
17322if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17323 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17324Usually this means the macro was only invoked conditionally." "$LINENO" 5
17325fi
42ecbf5e 17326if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
81ecdfbb
RW
17327 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17328Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17329fi
d5fbea21 17330if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
81ecdfbb
RW
17331 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17332Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17333fi
5d3236ee
DK
17334if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17335 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17336Usually this means the macro was only invoked conditionally." "$LINENO" 5
17337fi
42ecbf5e
DJ
17338
17339: ${CONFIG_STATUS=./config.status}
81ecdfbb 17340ac_write_fail=0
42ecbf5e
DJ
17341ac_clean_files_save=$ac_clean_files
17342ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17344$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17345as_write_fail=0
17346cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17347#! $SHELL
17348# Generated by $as_me.
17349# Run this file to recreate the current configuration.
17350# Compiler output produced by configure, useful for debugging
17351# configure, is in config.log if it exists.
17352
17353debug=false
17354ac_cs_recheck=false
17355ac_cs_silent=false
42ecbf5e 17356
81ecdfbb
RW
17357SHELL=\${CONFIG_SHELL-$SHELL}
17358export SHELL
17359_ASEOF
17360cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17361## -------------------- ##
17362## M4sh Initialization. ##
17363## -------------------- ##
42ecbf5e 17364
81ecdfbb
RW
17365# Be more Bourne compatible
17366DUALCASE=1; export DUALCASE # for MKS sh
17367if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17368 emulate sh
17369 NULLCMD=:
81ecdfbb 17370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17371 # is contrary to our usage. Disable this feature.
17372 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17373 setopt NO_GLOB_SUBST
17374else
17375 case `(set -o) 2>/dev/null` in #(
17376 *posix*) :
17377 set -o posix ;; #(
17378 *) :
17379 ;;
17380esac
42ecbf5e 17381fi
42ecbf5e 17382
81ecdfbb
RW
17383
17384as_nl='
17385'
17386export as_nl
17387# Printing a long string crashes Solaris 7 /usr/bin/printf.
17388as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17389as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17390as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17391# Prefer a ksh shell builtin over an external printf program on Solaris,
17392# but without wasting forks for bash or zsh.
17393if test -z "$BASH_VERSION$ZSH_VERSION" \
17394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17395 as_echo='print -r --'
17396 as_echo_n='print -rn --'
17397elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17398 as_echo='printf %s\n'
17399 as_echo_n='printf %s'
17400else
17401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17402 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17403 as_echo_n='/usr/ucb/echo -n'
17404 else
17405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17406 as_echo_n_body='eval
17407 arg=$1;
17408 case $arg in #(
17409 *"$as_nl"*)
17410 expr "X$arg" : "X\\(.*\\)$as_nl";
17411 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17412 esac;
17413 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17414 '
17415 export as_echo_n_body
17416 as_echo_n='sh -c $as_echo_n_body as_echo'
17417 fi
17418 export as_echo_body
17419 as_echo='sh -c $as_echo_body as_echo'
17420fi
17421
17422# The user is always right.
17423if test "${PATH_SEPARATOR+set}" != set; then
17424 PATH_SEPARATOR=:
17425 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17426 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17427 PATH_SEPARATOR=';'
17428 }
42ecbf5e
DJ
17429fi
17430
17431
81ecdfbb
RW
17432# IFS
17433# We need space, tab and new line, in precisely that order. Quoting is
17434# there to prevent editors from complaining about space-tab.
17435# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17436# splitting by setting IFS to empty value.)
17437IFS=" "" $as_nl"
17438
17439# Find who we are. Look in the path if we contain no directory separator.
17440case $0 in #((
17441 *[\\/]* ) as_myself=$0 ;;
17442 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17443for as_dir in $PATH
17444do
17445 IFS=$as_save_IFS
17446 test -z "$as_dir" && as_dir=.
17447 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17448 done
17449IFS=$as_save_IFS
17450
17451 ;;
17452esac
17453# We did not find ourselves, most probably we were run as `sh COMMAND'
17454# in which case we are not to be found in the path.
17455if test "x$as_myself" = x; then
17456 as_myself=$0
17457fi
17458if test ! -f "$as_myself"; then
17459 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17460 exit 1
17461fi
17462
17463# Unset variables that we do not need and which cause bugs (e.g. in
17464# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17465# suppresses any "Segmentation fault" message there. '((' could
17466# trigger a bug in pdksh 5.2.14.
17467for as_var in BASH_ENV ENV MAIL MAILPATH
17468do eval test x\${$as_var+set} = xset \
17469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17470done
42ecbf5e
DJ
17471PS1='$ '
17472PS2='> '
17473PS4='+ '
17474
17475# NLS nuisances.
81ecdfbb
RW
17476LC_ALL=C
17477export LC_ALL
17478LANGUAGE=C
17479export LANGUAGE
17480
17481# CDPATH.
17482(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17483
17484
17485# as_fn_error ERROR [LINENO LOG_FD]
17486# ---------------------------------
17487# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17488# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17489# script with status $?, using 1 if that was 0.
17490as_fn_error ()
17491{
17492 as_status=$?; test $as_status -eq 0 && as_status=1
17493 if test "$3"; then
17494 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17495 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
42ecbf5e 17496 fi
81ecdfbb
RW
17497 $as_echo "$as_me: error: $1" >&2
17498 as_fn_exit $as_status
17499} # as_fn_error
17500
17501
17502# as_fn_set_status STATUS
17503# -----------------------
17504# Set $? to STATUS, without forking.
17505as_fn_set_status ()
17506{
17507 return $1
17508} # as_fn_set_status
17509
17510# as_fn_exit STATUS
17511# -----------------
17512# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17513as_fn_exit ()
17514{
17515 set +e
17516 as_fn_set_status $1
17517 exit $1
17518} # as_fn_exit
17519
17520# as_fn_unset VAR
17521# ---------------
17522# Portably unset VAR.
17523as_fn_unset ()
17524{
17525 { eval $1=; unset $1;}
17526}
17527as_unset=as_fn_unset
17528# as_fn_append VAR VALUE
17529# ----------------------
17530# Append the text in VALUE to the end of the definition contained in VAR. Take
17531# advantage of any shell optimizations that allow amortized linear growth over
17532# repeated appends, instead of the typical quadratic growth present in naive
17533# implementations.
17534if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17535 eval 'as_fn_append ()
17536 {
17537 eval $1+=\$2
17538 }'
17539else
17540 as_fn_append ()
17541 {
17542 eval $1=\$$1\$2
17543 }
17544fi # as_fn_append
17545
17546# as_fn_arith ARG...
17547# ------------------
17548# Perform arithmetic evaluation on the ARGs, and store the result in the
17549# global $as_val. Take advantage of shells that can avoid forks. The arguments
17550# must be portable across $(()) and expr.
17551if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17552 eval 'as_fn_arith ()
17553 {
17554 as_val=$(( $* ))
17555 }'
17556else
17557 as_fn_arith ()
17558 {
17559 as_val=`expr "$@" || test $? -eq 1`
17560 }
17561fi # as_fn_arith
17562
42ecbf5e 17563
81ecdfbb
RW
17564if expr a : '\(a\)' >/dev/null 2>&1 &&
17565 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17566 as_expr=expr
17567else
17568 as_expr=false
17569fi
17570
81ecdfbb 17571if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17572 as_basename=basename
17573else
17574 as_basename=false
17575fi
17576
81ecdfbb
RW
17577if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17578 as_dirname=dirname
17579else
17580 as_dirname=false
17581fi
42ecbf5e 17582
81ecdfbb 17583as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17585 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17586 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17587$as_echo X/"$0" |
17588 sed '/^.*\/\([^/][^/]*\)\/*$/{
17589 s//\1/
17590 q
17591 }
17592 /^X\/\(\/\/\)$/{
17593 s//\1/
17594 q
17595 }
17596 /^X\/\(\/\).*/{
17597 s//\1/
17598 q
17599 }
17600 s/.*/./; q'`
42ecbf5e 17601
42ecbf5e
DJ
17602# Avoid depending upon Character Ranges.
17603as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17605as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17606as_cr_digits='0123456789'
17607as_cr_alnum=$as_cr_Letters$as_cr_digits
17608
81ecdfbb
RW
17609ECHO_C= ECHO_N= ECHO_T=
17610case `echo -n x` in #(((((
17611-n*)
17612 case `echo 'xy\c'` in
17613 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17614 xy) ECHO_C='\c';;
17615 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17616 ECHO_T=' ';;
17617 esac;;
17618*)
17619 ECHO_N='-n';;
42ecbf5e 17620esac
252b5132 17621
81ecdfbb
RW
17622rm -f conf$$ conf$$.exe conf$$.file
17623if test -d conf$$.dir; then
17624 rm -f conf$$.dir/conf$$.file
42ecbf5e 17625else
81ecdfbb
RW
17626 rm -f conf$$.dir
17627 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17628fi
81ecdfbb
RW
17629if (echo >conf$$.file) 2>/dev/null; then
17630 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17631 as_ln_s='ln -s'
81ecdfbb
RW
17632 # ... but there are two gotchas:
17633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17635 # In both cases, we have to default to `cp -p'.
17636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17637 as_ln_s='cp -p'
17638 elif ln conf$$.file conf$$ 2>/dev/null; then
17639 as_ln_s=ln
17640 else
17641 as_ln_s='cp -p'
252b5132 17642 fi
e5a52504 17643else
42ecbf5e 17644 as_ln_s='cp -p'
e5a52504 17645fi
81ecdfbb
RW
17646rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17647rmdir conf$$.dir 2>/dev/null
17648
17649
17650# as_fn_mkdir_p
17651# -------------
17652# Create "$as_dir" as a directory, including parents if necessary.
17653as_fn_mkdir_p ()
17654{
17655
17656 case $as_dir in #(
17657 -*) as_dir=./$as_dir;;
17658 esac
17659 test -d "$as_dir" || eval $as_mkdir_p || {
17660 as_dirs=
17661 while :; do
17662 case $as_dir in #(
17663 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17664 *) as_qdir=$as_dir;;
17665 esac
17666 as_dirs="'$as_qdir' $as_dirs"
17667 as_dir=`$as_dirname -- "$as_dir" ||
17668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17669 X"$as_dir" : 'X\(//\)[^/]' \| \
17670 X"$as_dir" : 'X\(//\)$' \| \
17671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17672$as_echo X"$as_dir" |
17673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\/\)[^/].*/{
17678 s//\1/
17679 q
17680 }
17681 /^X\(\/\/\)$/{
17682 s//\1/
17683 q
17684 }
17685 /^X\(\/\).*/{
17686 s//\1/
17687 q
17688 }
17689 s/.*/./; q'`
17690 test -d "$as_dir" && break
17691 done
17692 test -z "$as_dirs" || eval "mkdir $as_dirs"
17693 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17694
252b5132 17695
81ecdfbb 17696} # as_fn_mkdir_p
42ecbf5e 17697if mkdir -p . 2>/dev/null; then
81ecdfbb 17698 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
17699else
17700 test -d ./-p && rmdir ./-p
17701 as_mkdir_p=false
17702fi
252b5132 17703
81ecdfbb
RW
17704if test -x / >/dev/null 2>&1; then
17705 as_test_x='test -x'
17706else
17707 if ls -dL / >/dev/null 2>&1; then
17708 as_ls_L_option=L
17709 else
17710 as_ls_L_option=
17711 fi
17712 as_test_x='
17713 eval sh -c '\''
17714 if test -d "$1"; then
17715 test -d "$1/.";
17716 else
17717 case $1 in #(
17718 -*)set "./$1";;
17719 esac;
17720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17721 ???[sx]*):;;*)false;;esac;fi
17722 '\'' sh
17723 '
17724fi
17725as_executable_p=$as_test_x
252b5132 17726
42ecbf5e
DJ
17727# Sed expression to map a string onto a valid CPP name.
17728as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 17729
42ecbf5e
DJ
17730# Sed expression to map a string onto a valid variable name.
17731as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 17732
e5a52504 17733
42ecbf5e 17734exec 6>&1
81ecdfbb
RW
17735## ----------------------------------- ##
17736## Main body of $CONFIG_STATUS script. ##
17737## ----------------------------------- ##
17738_ASEOF
17739test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 17740
81ecdfbb
RW
17741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17742# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 17743# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
17744# values after options handling.
17745ac_log="
d8bd95ef 17746This file was extended by ld $as_me 2.26.51, which was
81ecdfbb 17747generated by GNU Autoconf 2.64. Invocation command line was
42ecbf5e
DJ
17748
17749 CONFIG_FILES = $CONFIG_FILES
17750 CONFIG_HEADERS = $CONFIG_HEADERS
17751 CONFIG_LINKS = $CONFIG_LINKS
17752 CONFIG_COMMANDS = $CONFIG_COMMANDS
17753 $ $0 $@
e5a52504 17754
81ecdfbb
RW
17755on `(hostname || uname -n) 2>/dev/null | sed 1q`
17756"
17757
42ecbf5e
DJ
17758_ACEOF
17759
81ecdfbb
RW
17760case $ac_config_files in *"
17761"*) set x $ac_config_files; shift; ac_config_files=$*;;
17762esac
e5a52504 17763
81ecdfbb
RW
17764case $ac_config_headers in *"
17765"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17766esac
42ecbf5e 17767
42ecbf5e 17768
81ecdfbb
RW
17769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17770# Files that config.status was made for.
17771config_files="$ac_config_files"
17772config_headers="$ac_config_headers"
17773config_commands="$ac_config_commands"
42ecbf5e 17774
81ecdfbb 17775_ACEOF
42ecbf5e 17776
81ecdfbb 17777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 17778ac_cs_usage="\
81ecdfbb
RW
17779\`$as_me' instantiates files and other configuration actions
17780from templates according to the current configuration. Unless the files
17781and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 17782
81ecdfbb 17783Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
17784
17785 -h, --help print this help, then exit
81ecdfbb
RW
17786 -V, --version print version number and configuration settings, then exit
17787 -q, --quiet, --silent
17788 do not print progress messages
42ecbf5e
DJ
17789 -d, --debug don't remove temporary files
17790 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
17791 --file=FILE[:TEMPLATE]
17792 instantiate the configuration file FILE
17793 --header=FILE[:TEMPLATE]
17794 instantiate the configuration header FILE
42ecbf5e
DJ
17795
17796Configuration files:
17797$config_files
17798
17799Configuration headers:
17800$config_headers
17801
17802Configuration commands:
17803$config_commands
17804
81ecdfbb 17805Report bugs to the package provider."
42ecbf5e 17806
81ecdfbb
RW
17807_ACEOF
17808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17809ac_cs_version="\\
d8bd95ef 17810ld config.status 2.26.51
81ecdfbb
RW
17811configured by $0, generated by GNU Autoconf 2.64,
17812 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
42ecbf5e 17813
81ecdfbb 17814Copyright (C) 2009 Free Software Foundation, Inc.
42ecbf5e
DJ
17815This config.status script is free software; the Free Software Foundation
17816gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
17817
17818ac_pwd='$ac_pwd'
17819srcdir='$srcdir'
17820INSTALL='$INSTALL'
17821MKDIR_P='$MKDIR_P'
17822AWK='$AWK'
17823test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
17824_ACEOF
17825
81ecdfbb
RW
17826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17827# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
17828ac_need_defaults=:
17829while test $# != 0
17830do
17831 case $1 in
17832 --*=*)
81ecdfbb
RW
17833 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17834 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 17835 ac_shift=:
252b5132 17836 ;;
81ecdfbb 17837 *)
42ecbf5e
DJ
17838 ac_option=$1
17839 ac_optarg=$2
17840 ac_shift=shift
252b5132 17841 ;;
42ecbf5e 17842 esac
252b5132 17843
42ecbf5e
DJ
17844 case $ac_option in
17845 # Handling of the options.
42ecbf5e
DJ
17846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17847 ac_cs_recheck=: ;;
81ecdfbb
RW
17848 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17849 $as_echo "$ac_cs_version"; exit ;;
17850 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
17851 debug=: ;;
17852 --file | --fil | --fi | --f )
17853 $ac_shift
81ecdfbb
RW
17854 case $ac_optarg in
17855 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17856 esac
17857 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
17858 ac_need_defaults=false;;
17859 --header | --heade | --head | --hea )
17860 $ac_shift
81ecdfbb
RW
17861 case $ac_optarg in
17862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17863 esac
17864 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 17865 ac_need_defaults=false;;
81ecdfbb
RW
17866 --he | --h)
17867 # Conflict between --help and --header
17868 as_fn_error "ambiguous option: \`$1'
17869Try \`$0 --help' for more information.";;
17870 --help | --hel | -h )
17871 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
17872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17874 ac_cs_silent=: ;;
252b5132 17875
42ecbf5e 17876 # This is an error.
81ecdfbb
RW
17877 -*) as_fn_error "unrecognized option: \`$1'
17878Try \`$0 --help' for more information." ;;
252b5132 17879
81ecdfbb
RW
17880 *) as_fn_append ac_config_targets " $1"
17881 ac_need_defaults=false ;;
252b5132 17882
42ecbf5e
DJ
17883 esac
17884 shift
17885done
d15b04bd 17886
42ecbf5e 17887ac_configure_extra_args=
e5a52504 17888
42ecbf5e
DJ
17889if $ac_cs_silent; then
17890 exec 6>/dev/null
17891 ac_configure_extra_args="$ac_configure_extra_args --silent"
17892fi
e5a52504 17893
42ecbf5e 17894_ACEOF
81ecdfbb 17895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 17896if \$ac_cs_recheck; then
81ecdfbb
RW
17897 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17898 shift
17899 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17900 CONFIG_SHELL='$SHELL'
17901 export CONFIG_SHELL
17902 exec "\$@"
42ecbf5e
DJ
17903fi
17904
17905_ACEOF
81ecdfbb
RW
17906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17907exec 5>>config.log
17908{
17909 echo
17910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17911## Running $as_me. ##
17912_ASBOX
17913 $as_echo "$ac_log"
17914} >&5
42ecbf5e 17915
81ecdfbb
RW
17916_ACEOF
17917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 17918#
81ecdfbb 17919# INIT-COMMANDS
252b5132 17920#
42ecbf5e 17921AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
17922
17923
17924# The HP-UX ksh and POSIX shell print the target directory to stdout
17925# if CDPATH is set.
17926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17927
17928sed_quote_subst='$sed_quote_subst'
17929double_quote_subst='$double_quote_subst'
17930delay_variable_subst='$delay_variable_subst'
3725885a
RW
17931macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17932macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17933enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17934enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17935pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17936enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17937SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17938ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17939host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17940host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17941host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17942build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17943build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17944build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17945SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17946Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17947GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17948EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17949FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17950LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17951NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17952LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17953max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17954ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17955exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17956lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17957lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17958lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17959reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17960reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17961OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17962deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17963file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17964AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17965AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17966STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17967RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17968old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17969old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17970old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17971lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17972CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17973CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17974compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17975GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17976lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17977lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17978lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17979lt_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"`'
17980objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17981MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17982lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17983lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17984lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17985lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17986lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17987need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17988DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17989NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17990LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17991OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17992OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17993libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17994shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17995extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17996archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17997enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17998export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17999whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18000compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18001old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18002old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18003archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18004archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18005module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18006module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18007with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18008allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18009no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18010hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18011hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18012hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18013hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18014hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18015hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18016hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18017hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18018inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18019link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18020fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18021always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18022export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18023exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18024include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18025prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18026file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18027variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18028need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18029need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18030version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18031runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18032shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18033shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18034libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18035library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18036soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18037install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18038postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18039postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18040finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18041finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18042hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18043sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18044sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18045hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18046enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18047enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18048enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18049old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18050striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18051compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18052predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18053postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18054predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18055postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18056compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18057LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18058reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18059reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18060old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18061compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18062GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18063lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18064lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18065lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18066lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18067lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18068archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18069enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18070export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18071whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18072compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18073old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18074old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18075archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18076archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18077module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18078module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18079with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18080allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18081no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18082hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18083hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18084hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18085hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18086hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18087hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18088hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18089hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18090inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18091link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18092fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18093always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18094export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18095exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18096include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18097prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18098file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18099hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18100compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18101predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18102postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18103predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18104postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18105compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18106
18107LTCC='$LTCC'
18108LTCFLAGS='$LTCFLAGS'
18109compiler='$compiler_DEFAULT'
18110
3725885a
RW
18111# A function that is used when there is no print builtin or printf.
18112func_fallback_echo ()
18113{
18114 eval 'cat <<_LTECHO_EOF
18115\$1
18116_LTECHO_EOF'
18117}
18118
d7040cdb 18119# Quote evaled strings.
3725885a
RW
18120for var in SHELL \
18121ECHO \
18122SED \
d7040cdb
SE
18123GREP \
18124EGREP \
18125FGREP \
18126LD \
18127NM \
18128LN_S \
18129lt_SP2NL \
18130lt_NL2SP \
18131reload_flag \
b214d478 18132OBJDUMP \
d7040cdb
SE
18133deplibs_check_method \
18134file_magic_cmd \
18135AR \
18136AR_FLAGS \
18137STRIP \
18138RANLIB \
18139CC \
18140CFLAGS \
18141compiler \
18142lt_cv_sys_global_symbol_pipe \
18143lt_cv_sys_global_symbol_to_cdecl \
18144lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18145lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18146lt_prog_compiler_no_builtin_flag \
18147lt_prog_compiler_wl \
18148lt_prog_compiler_pic \
18149lt_prog_compiler_static \
18150lt_cv_prog_compiler_c_o \
18151need_locks \
b214d478
SE
18152DSYMUTIL \
18153NMEDIT \
18154LIPO \
18155OTOOL \
18156OTOOL64 \
d7040cdb
SE
18157shrext_cmds \
18158export_dynamic_flag_spec \
18159whole_archive_flag_spec \
18160compiler_needs_object \
18161with_gnu_ld \
18162allow_undefined_flag \
18163no_undefined_flag \
18164hardcode_libdir_flag_spec \
18165hardcode_libdir_flag_spec_ld \
18166hardcode_libdir_separator \
18167fix_srcfile_path \
18168exclude_expsyms \
18169include_expsyms \
18170file_list_spec \
18171variables_saved_for_relink \
18172libname_spec \
18173library_names_spec \
18174soname_spec \
3725885a 18175install_override_mode \
d7040cdb
SE
18176finish_eval \
18177old_striplib \
3cb62297
L
18178striplib \
18179compiler_lib_search_dirs \
18180predep_objects \
18181postdep_objects \
18182predeps \
18183postdeps \
18184compiler_lib_search_path \
18185LD_CXX \
18186reload_flag_CXX \
18187compiler_CXX \
18188lt_prog_compiler_no_builtin_flag_CXX \
18189lt_prog_compiler_wl_CXX \
18190lt_prog_compiler_pic_CXX \
18191lt_prog_compiler_static_CXX \
18192lt_cv_prog_compiler_c_o_CXX \
18193export_dynamic_flag_spec_CXX \
18194whole_archive_flag_spec_CXX \
18195compiler_needs_object_CXX \
18196with_gnu_ld_CXX \
18197allow_undefined_flag_CXX \
18198no_undefined_flag_CXX \
18199hardcode_libdir_flag_spec_CXX \
18200hardcode_libdir_flag_spec_ld_CXX \
18201hardcode_libdir_separator_CXX \
18202fix_srcfile_path_CXX \
18203exclude_expsyms_CXX \
18204include_expsyms_CXX \
18205file_list_spec_CXX \
18206compiler_lib_search_dirs_CXX \
18207predep_objects_CXX \
18208postdep_objects_CXX \
18209predeps_CXX \
18210postdeps_CXX \
18211compiler_lib_search_path_CXX; do
3725885a 18212 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18213 *[\\\\\\\`\\"\\\$]*)
3725885a 18214 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18215 ;;
18216 *)
18217 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18218 ;;
18219 esac
18220done
18221
18222# Double-quote double-evaled strings.
18223for var in reload_cmds \
18224old_postinstall_cmds \
18225old_postuninstall_cmds \
18226old_archive_cmds \
18227extract_expsyms_cmds \
18228old_archive_from_new_cmds \
18229old_archive_from_expsyms_cmds \
18230archive_cmds \
18231archive_expsym_cmds \
18232module_cmds \
18233module_expsym_cmds \
18234export_symbols_cmds \
18235prelink_cmds \
18236postinstall_cmds \
18237postuninstall_cmds \
18238finish_cmds \
18239sys_lib_search_path_spec \
3cb62297
L
18240sys_lib_dlsearch_path_spec \
18241reload_cmds_CXX \
18242old_archive_cmds_CXX \
18243old_archive_from_new_cmds_CXX \
18244old_archive_from_expsyms_cmds_CXX \
18245archive_cmds_CXX \
18246archive_expsym_cmds_CXX \
18247module_cmds_CXX \
18248module_expsym_cmds_CXX \
18249export_symbols_cmds_CXX \
18250prelink_cmds_CXX; do
3725885a 18251 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18252 *[\\\\\\\`\\"\\\$]*)
3725885a 18253 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18254 ;;
18255 *)
18256 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18257 ;;
18258 esac
18259done
18260
d7040cdb
SE
18261ac_aux_dir='$ac_aux_dir'
18262xsi_shell='$xsi_shell'
18263lt_shell_append='$lt_shell_append'
18264
18265# See if we are running on zsh, and set the options which allow our
18266# commands through without removal of \ escapes INIT.
18267if test -n "\${ZSH_VERSION+set}" ; then
18268 setopt NO_GLOB_SUBST
18269fi
18270
18271
18272 PACKAGE='$PACKAGE'
18273 VERSION='$VERSION'
18274 TIMESTAMP='$TIMESTAMP'
18275 RM='$RM'
18276 ofile='$ofile'
18277
18278
18279
3cb62297
L
18280
18281
20e95c23
DJ
18282# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18283 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18284 # from automake.
18285 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18286 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18287 LINGUAS="${LINGUAS-%UNSET%}"
18288
42ecbf5e
DJ
18289
18290_ACEOF
18291
81ecdfbb 18292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18293
81ecdfbb 18294# Handling of arguments.
42ecbf5e 18295for ac_config_target in $ac_config_targets
252b5132 18296do
81ecdfbb
RW
18297 case $ac_config_target in
18298 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb
RW
18301 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18302 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18303 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18304
18305 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18306 esac
18307done
18308
81ecdfbb 18309
42ecbf5e
DJ
18310# If the user did not use the arguments to specify the items to instantiate,
18311# then the envvar interface is used. Set only those that are not.
18312# We use the long form for the default assignment because of an extremely
18313# bizarre bug on SunOS 4.1.3.
18314if $ac_need_defaults; then
18315 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18316 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18317 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18318fi
18319
18320# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18321# simply because there is no reason against having it here, and in addition,
42ecbf5e 18322# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18323# Hook for its removal unless debugging.
18324# Note that there is a small window in which the directory will not be cleaned:
18325# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18326$debug ||
18327{
81ecdfbb
RW
18328 tmp=
18329 trap 'exit_status=$?
18330 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18331' 0
18332 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18333}
42ecbf5e 18334# Create a (secure) tmp directory for tmp files.
e5a52504 18335
42ecbf5e 18336{
81ecdfbb 18337 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42ecbf5e
DJ
18338 test -n "$tmp" && test -d "$tmp"
18339} ||
18340{
81ecdfbb
RW
18341 tmp=./conf$$-$RANDOM
18342 (umask 077 && mkdir "$tmp")
18343} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18344
18345# Set up the scripts for CONFIG_FILES section.
18346# No need to generate them if there are no CONFIG_FILES.
18347# This happens for instance with `./config.status config.h'.
18348if test -n "$CONFIG_FILES"; then
18349
18350if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18351 ac_cs_awk_getline=:
18352 ac_cs_awk_pipe_init=
18353 ac_cs_awk_read_file='
18354 while ((getline aline < (F[key])) > 0)
18355 print(aline)
18356 close(F[key])'
18357 ac_cs_awk_pipe_fini=
18358else
18359 ac_cs_awk_getline=false
18360 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18361 ac_cs_awk_read_file='
18362 print "|#_!!_#|"
18363 print "cat " F[key] " &&"
18364 '$ac_cs_awk_pipe_init
18365 # The final `:' finishes the AND list.
18366 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18367fi
18368ac_cr=`echo X | tr X '\015'`
18369# On cygwin, bash can eat \r inside `` if the user requested igncr.
18370# But we know of no other shell where ac_cr would be empty at this
18371# point, so we can use a bashism as a fallback.
18372if test "x$ac_cr" = x; then
18373 eval ac_cr=\$\'\\r\'
18374fi
18375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18377 ac_cs_awk_cr='\r'
18378else
18379 ac_cs_awk_cr=$ac_cr
18380fi
18381
18382echo 'BEGIN {' >"$tmp/subs1.awk" &&
18383_ACEOF
18384
18385# Create commands to substitute file output variables.
42ecbf5e 18386{
81ecdfbb
RW
18387 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18388 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18389 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18390 echo "_ACAWK" &&
18391 echo "_ACEOF"
18392} >conf$$files.sh &&
18393. ./conf$$files.sh ||
18394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18395rm -f conf$$files.sh
e5a52504 18396
81ecdfbb
RW
18397{
18398 echo "cat >conf$$subs.awk <<_ACEOF" &&
18399 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18400 echo "_ACEOF"
18401} >conf$$subs.sh ||
18402 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18403ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18404ac_delim='%!_!# '
18405for ac_last_try in false false false false false :; do
18406 . ./conf$$subs.sh ||
18407 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18408
18409 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18410 if test $ac_delim_n = $ac_delim_num; then
18411 break
18412 elif $ac_last_try; then
18413 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18414 else
18415 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18416 fi
18417done
18418rm -f conf$$subs.sh
18419
18420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18421cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18422_ACEOF
18423sed -n '
18424h
18425s/^/S["/; s/!.*/"]=/
18426p
18427g
18428s/^[^!]*!//
18429:repl
18430t repl
18431s/'"$ac_delim"'$//
18432t delim
18433:nl
18434h
18435s/\(.\{148\}\).*/\1/
18436t more1
18437s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18438p
18439n
18440b repl
18441:more1
18442s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18443p
18444g
18445s/.\{148\}//
18446t nl
18447:delim
18448h
18449s/\(.\{148\}\).*/\1/
18450t more2
18451s/["\\]/\\&/g; s/^/"/; s/$/"/
18452p
18453b
18454:more2
18455s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18456p
18457g
18458s/.\{148\}//
18459t delim
18460' <conf$$subs.awk | sed '
18461/^[^""]/{
18462 N
18463 s/\n//
18464}
18465' >>$CONFIG_STATUS || ac_write_fail=1
18466rm -f conf$$subs.awk
18467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18468_ACAWK
18469cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18470 for (key in S) S_is_set[key] = 1
18471 FS = "\a"
18472 \$ac_cs_awk_pipe_init
18473}
18474{
18475 line = $ 0
18476 nfields = split(line, field, "@")
18477 substed = 0
18478 len = length(field[1])
18479 for (i = 2; i < nfields; i++) {
18480 key = field[i]
18481 keylen = length(key)
18482 if (S_is_set[key]) {
18483 value = S[key]
18484 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18485 len += length(value) + length(field[++i])
18486 substed = 1
18487 } else
18488 len += 1 + keylen
18489 }
18490 if (nfields == 3 && !substed) {
18491 key = field[2]
18492 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18493 \$ac_cs_awk_read_file
18494 next
18495 }
18496 }
18497 print line
18498}
18499\$ac_cs_awk_pipe_fini
18500_ACAWK
18501_ACEOF
18502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18503if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18504 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18505else
18506 cat
18507fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18508 || as_fn_error "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18509_ACEOF
d15b04bd 18510
81ecdfbb
RW
18511# VPATH may cause trouble with some makes, so we remove $(srcdir),
18512# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18513# trailing colons and then remove the whole line if VPATH becomes empty
18514# (actually we leave an empty line to preserve line numbers).
18515if test "x$srcdir" = x.; then
18516 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18517s/:*\$(srcdir):*/:/
18518s/:*\${srcdir}:*/:/
18519s/:*@srcdir@:*/:/
18520s/^\([^=]*=[ ]*\):*/\1/
18521s/:*$//
18522s/^[^=]*=[ ]*$//
18523}'
18524fi
18525
18526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18527fi # test -n "$CONFIG_FILES"
42ecbf5e 18528
81ecdfbb
RW
18529# Set up the scripts for CONFIG_HEADERS section.
18530# No need to generate them if there are no CONFIG_HEADERS.
18531# This happens for instance with `./config.status Makefile'.
18532if test -n "$CONFIG_HEADERS"; then
18533cat >"$tmp/defines.awk" <<\_ACAWK ||
18534BEGIN {
18535_ACEOF
42ecbf5e 18536
81ecdfbb
RW
18537# Transform confdefs.h into an awk script `defines.awk', embedded as
18538# here-document in config.status, that substitutes the proper values into
18539# config.h.in to produce config.h.
252b5132 18540
81ecdfbb
RW
18541# Create a delimiter string that does not exist in confdefs.h, to ease
18542# handling of long lines.
18543ac_delim='%!_!# '
18544for ac_last_try in false false :; do
18545 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18546 if test -z "$ac_t"; then
18547 break
18548 elif $ac_last_try; then
18549 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18550 else
18551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18552 fi
18553done
18554
18555# For the awk script, D is an array of macro values keyed by name,
18556# likewise P contains macro parameters if any. Preserve backslash
18557# newline sequences.
18558
18559ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18560sed -n '
18561s/.\{148\}/&'"$ac_delim"'/g
18562t rset
18563:rset
18564s/^[ ]*#[ ]*define[ ][ ]*/ /
18565t def
18566d
18567:def
18568s/\\$//
18569t bsnl
18570s/["\\]/\\&/g
18571s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18572D["\1"]=" \3"/p
18573s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18574d
18575:bsnl
18576s/["\\]/\\&/g
18577s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18578D["\1"]=" \3\\\\\\n"\\/p
18579t cont
18580s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18581t cont
18582d
18583:cont
18584n
18585s/.\{148\}/&'"$ac_delim"'/g
18586t clear
18587:clear
18588s/\\$//
18589t bsnlc
18590s/["\\]/\\&/g; s/^/"/; s/$/"/p
18591d
18592:bsnlc
18593s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18594b cont
18595' <confdefs.h | sed '
18596s/'"$ac_delim"'/"\\\
18597"/g' >>$CONFIG_STATUS || ac_write_fail=1
18598
18599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18600 for (key in D) D_is_set[key] = 1
18601 FS = "\a"
18602}
18603/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18604 line = \$ 0
18605 split(line, arg, " ")
18606 if (arg[1] == "#") {
18607 defundef = arg[2]
18608 mac1 = arg[3]
18609 } else {
18610 defundef = substr(arg[1], 2)
18611 mac1 = arg[2]
18612 }
18613 split(mac1, mac2, "(") #)
18614 macro = mac2[1]
18615 prefix = substr(line, 1, index(line, defundef) - 1)
18616 if (D_is_set[macro]) {
18617 # Preserve the white space surrounding the "#".
18618 print prefix "define", macro P[macro] D[macro]
18619 next
18620 } else {
18621 # Replace #undef with comments. This is necessary, for example,
18622 # in the case of _POSIX_SOURCE, which is predefined and required
18623 # on some systems where configure will not decide to define it.
18624 if (defundef == "undef") {
18625 print "/*", prefix defundef, macro, "*/"
18626 next
18627 }
18628 }
18629}
18630{ print }
18631_ACAWK
42ecbf5e 18632_ACEOF
81ecdfbb
RW
18633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18634 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18635fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18636
81ecdfbb
RW
18637
18638eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18639shift
18640for ac_tag
18641do
18642 case $ac_tag in
18643 :[FHLC]) ac_mode=$ac_tag; continue;;
18644 esac
18645 case $ac_mode$ac_tag in
18646 :[FHL]*:*);;
18647 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18648 :[FH]-) ac_tag=-:-;;
18649 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18650 esac
18651 ac_save_IFS=$IFS
18652 IFS=:
18653 set x $ac_tag
18654 IFS=$ac_save_IFS
18655 shift
18656 ac_file=$1
18657 shift
18658
18659 case $ac_mode in
18660 :L) ac_source=$1;;
18661 :[FH])
18662 ac_file_inputs=
18663 for ac_f
18664 do
18665 case $ac_f in
18666 -) ac_f="$tmp/stdin";;
18667 *) # Look for the file first in the build tree, then in the source tree
18668 # (if the path is not absolute). The absolute path cannot be DOS-style,
18669 # because $ac_f cannot contain `:'.
18670 test -f "$ac_f" ||
18671 case $ac_f in
18672 [\\/$]*) false;;
18673 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18674 esac ||
18675 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18676 esac
18677 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18678 as_fn_append ac_file_inputs " '$ac_f'"
18679 done
18680
18681 # Let's still pretend it is `configure' which instantiates (i.e., don't
18682 # use $as_me), people would be surprised to read:
18683 # /* config.h. Generated by config.status. */
18684 configure_input='Generated from '`
18685 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18686 `' by configure.'
18687 if test x"$ac_file" != x-; then
18688 configure_input="$ac_file. $configure_input"
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18690$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18691 fi
81ecdfbb
RW
18692 # Neutralize special characters interpreted by sed in replacement strings.
18693 case $configure_input in #(
18694 *\&* | *\|* | *\\* )
18695 ac_sed_conf_input=`$as_echo "$configure_input" |
18696 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18697 *) ac_sed_conf_input=$configure_input;;
18698 esac
252b5132 18699
81ecdfbb
RW
18700 case $ac_tag in
18701 *:-:* | *:-) cat >"$tmp/stdin" \
18702 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18703 esac
18704 ;;
252b5132
RH
18705 esac
18706
81ecdfbb 18707 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
18708$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18709 X"$ac_file" : 'X\(//\)[^/]' \| \
18710 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
18711 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18712$as_echo X"$ac_file" |
18713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18714 s//\1/
18715 q
18716 }
18717 /^X\(\/\/\)[^/].*/{
18718 s//\1/
18719 q
18720 }
18721 /^X\(\/\/\)$/{
18722 s//\1/
18723 q
18724 }
18725 /^X\(\/\).*/{
18726 s//\1/
18727 q
18728 }
18729 s/.*/./; q'`
18730 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
18731 ac_builddir=.
18732
81ecdfbb
RW
18733case "$ac_dir" in
18734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18735*)
18736 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18737 # A ".." for each directory in $ac_dir_suffix.
18738 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18739 case $ac_top_builddir_sub in
18740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18742 esac ;;
18743esac
18744ac_abs_top_builddir=$ac_pwd
18745ac_abs_builddir=$ac_pwd$ac_dir_suffix
18746# for backward compatibility:
18747ac_top_builddir=$ac_top_build_prefix
252b5132 18748
42ecbf5e 18749case $srcdir in
81ecdfbb 18750 .) # We are building in place.
42ecbf5e 18751 ac_srcdir=.
81ecdfbb
RW
18752 ac_top_srcdir=$ac_top_builddir_sub
18753 ac_abs_top_srcdir=$ac_pwd ;;
18754 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 18755 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
18756 ac_top_srcdir=$srcdir
18757 ac_abs_top_srcdir=$srcdir ;;
18758 *) # Relative name.
18759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18760 ac_top_srcdir=$ac_top_build_prefix$srcdir
18761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 18762esac
81ecdfbb 18763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 18764
252b5132 18765
81ecdfbb
RW
18766 case $ac_mode in
18767 :F)
18768 #
18769 # CONFIG_FILE
18770 #
e5a52504 18771
42ecbf5e
DJ
18772 case $INSTALL in
18773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
18774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18775 esac
18776 ac_MKDIR_P=$MKDIR_P
18777 case $MKDIR_P in
18778 [\\/$]* | ?:[\\/]* ) ;;
18779 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 18780 esac
81ecdfbb 18781_ACEOF
e5a52504 18782
81ecdfbb
RW
18783cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18784# If the template does not know about datarootdir, expand it.
18785# FIXME: This hack should be removed a few years after 2.60.
18786ac_datarootdir_hack=; ac_datarootdir_seen=
18787ac_sed_dataroot='
18788/datarootdir/ {
18789 p
18790 q
18791}
18792/@datadir@/p
18793/@docdir@/p
18794/@infodir@/p
18795/@localedir@/p
18796/@mandir@/p'
18797case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18798*datarootdir*) ac_datarootdir_seen=yes;;
18799*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18801$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18802_ACEOF
18803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18804 ac_datarootdir_hack='
18805 s&@datadir@&$datadir&g
18806 s&@docdir@&$docdir&g
18807 s&@infodir@&$infodir&g
18808 s&@localedir@&$localedir&g
18809 s&@mandir@&$mandir&g
18810 s&\\\${datarootdir}&$datarootdir&g' ;;
18811esac
42ecbf5e 18812_ACEOF
81ecdfbb
RW
18813
18814# Neutralize VPATH when `$srcdir' = `.'.
18815# Shell code in configure.ac might set extrasub.
18816# FIXME: do we really want to maintain this feature?
18817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18818ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
18819$extrasub
18820_ACEOF
81ecdfbb 18821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
18822:t
18823/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
18824s|@configure_input@|$ac_sed_conf_input|;t t
18825s&@top_builddir@&$ac_top_builddir_sub&;t t
18826s&@top_build_prefix@&$ac_top_build_prefix&;t t
18827s&@srcdir@&$ac_srcdir&;t t
18828s&@abs_srcdir@&$ac_abs_srcdir&;t t
18829s&@top_srcdir@&$ac_top_srcdir&;t t
18830s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18831s&@builddir@&$ac_builddir&;t t
18832s&@abs_builddir@&$ac_abs_builddir&;t t
18833s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18834s&@INSTALL@&$ac_INSTALL&;t t
18835s&@MKDIR_P@&$ac_MKDIR_P&;t t
18836$ac_datarootdir_hack
18837"
18838eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18839if $ac_cs_awk_getline; then
18840 $AWK -f "$tmp/subs.awk"
18841else
18842 $AWK -f "$tmp/subs.awk" | $SHELL
18843fi >$tmp/out \
18844 || as_fn_error "could not create $ac_file" "$LINENO" 5
18845
18846test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18847 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18848 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18850which seems to be undefined. Please make sure it is defined." >&5
18851$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18852which seems to be undefined. Please make sure it is defined." >&2;}
18853
18854 rm -f "$tmp/stdin"
42ecbf5e 18855 case $ac_file in
81ecdfbb
RW
18856 -) cat "$tmp/out" && rm -f "$tmp/out";;
18857 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18858 esac \
18859 || as_fn_error "could not create $ac_file" "$LINENO" 5
18860 ;;
18861 :H)
18862 #
18863 # CONFIG_HEADER
18864 #
42ecbf5e 18865 if test x"$ac_file" != x-; then
81ecdfbb
RW
18866 {
18867 $as_echo "/* $configure_input */" \
18868 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18869 } >"$tmp/config.h" \
18870 || as_fn_error "could not create $ac_file" "$LINENO" 5
18871 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18873$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 18874 else
81ecdfbb
RW
18875 rm -f "$ac_file"
18876 mv "$tmp/config.h" "$ac_file" \
18877 || as_fn_error "could not create $ac_file" "$LINENO" 5
252b5132 18878 fi
42ecbf5e 18879 else
81ecdfbb
RW
18880 $as_echo "/* $configure_input */" \
18881 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18882 || as_fn_error "could not create -" "$LINENO" 5
e5a52504 18883 fi
81ecdfbb
RW
18884# Compute "$ac_file"'s index in $config_headers.
18885_am_arg="$ac_file"
42ecbf5e
DJ
18886_am_stamp_count=1
18887for _am_header in $config_headers :; do
18888 case $_am_header in
81ecdfbb 18889 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
18890 break ;;
18891 * )
18892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18893 esac
18894done
81ecdfbb
RW
18895echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18896$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897 X"$_am_arg" : 'X\(//\)[^/]' \| \
18898 X"$_am_arg" : 'X\(//\)$' \| \
18899 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18900$as_echo X"$_am_arg" |
18901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\(\/\/\)[^/].*/{
18906 s//\1/
18907 q
18908 }
18909 /^X\(\/\/\)$/{
18910 s//\1/
18911 q
18912 }
18913 /^X\(\/\).*/{
18914 s//\1/
18915 q
18916 }
18917 s/.*/./; q'`/stamp-h$_am_stamp_count
18918 ;;
42ecbf5e 18919
81ecdfbb
RW
18920 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18921$as_echo "$as_me: executing $ac_file commands" >&6;}
18922 ;;
18923 esac
42ecbf5e
DJ
18924
18925
81ecdfbb
RW
18926 case $ac_file$ac_mode in
18927 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18928 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18929 # are listed without --file. Let's play safe and only enable the eval
18930 # if we detect the quoting.
18931 case $CONFIG_FILES in
18932 *\'*) eval set x "$CONFIG_FILES" ;;
18933 *) set x $CONFIG_FILES ;;
18934 esac
18935 shift
18936 for mf
18937 do
18938 # Strip MF so we end up with the name of the file.
18939 mf=`echo "$mf" | sed -e 's/:.*$//'`
18940 # Check whether this is an Automake generated Makefile or not.
18941 # We used to match only the files named `Makefile.in', but
18942 # some people rename them; so instead we look at the file content.
18943 # Grep'ing the first line is not enough: some people post-process
18944 # each Makefile.in and add a new line on top of each file to say so.
18945 # Grep'ing the whole file is not good either: AIX grep has a line
18946 # limit of 2048, but all sed's we know have understand at least 4000.
18947 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18948 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
18949$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18950 X"$mf" : 'X\(//\)[^/]' \| \
18951 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
18952 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18953$as_echo X"$mf" |
18954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18955 s//\1/
18956 q
18957 }
18958 /^X\(\/\/\)[^/].*/{
18959 s//\1/
18960 q
18961 }
18962 /^X\(\/\/\)$/{
18963 s//\1/
18964 q
18965 }
18966 /^X\(\/\).*/{
18967 s//\1/
18968 q
18969 }
18970 s/.*/./; q'`
18971 else
18972 continue
18973 fi
18974 # Extract the definition of DEPDIR, am__include, and am__quote
18975 # from the Makefile without running `make'.
18976 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18977 test -z "$DEPDIR" && continue
18978 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18979 test -z "am__include" && continue
18980 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18981 # When using ansi2knr, U may be empty or an underscore; expand it
18982 U=`sed -n 's/^U = //p' < "$mf"`
18983 # Find all dependency output files, they are included files with
18984 # $(DEPDIR) in their names. We invoke sed twice because it is the
18985 # simplest approach to changing $(DEPDIR) to its actual value in the
18986 # expansion.
18987 for file in `sed -n "
18988 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18989 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18990 # Make sure the directory exists.
18991 test -f "$dirpart/$file" && continue
18992 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
18993$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$file" : 'X\(//\)[^/]' \| \
18995 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
18996 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18997$as_echo X"$file" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)[^/].*/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\/\)$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\).*/{
19011 s//\1/
19012 q
19013 }
19014 s/.*/./; q'`
19015 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19016 # echo "creating $dirpart/$file"
19017 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19018 done
42ecbf5e 19019 done
81ecdfbb 19020}
d7040cdb 19021 ;;
81ecdfbb 19022 "libtool":C)
d7040cdb
SE
19023
19024 # See if we are running on zsh, and set the options which allow our
19025 # commands through without removal of \ escapes.
19026 if test -n "${ZSH_VERSION+set}" ; then
19027 setopt NO_GLOB_SUBST
19028 fi
19029
19030 cfgfile="${ofile}T"
19031 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19032 $RM "$cfgfile"
19033
19034 cat <<_LT_EOF >> "$cfgfile"
19035#! $SHELL
19036
19037# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19038# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19039# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19040# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19041#
b214d478 19042# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19043# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19044# Written by Gordon Matzigkeit, 1996
d7040cdb 19045#
b214d478 19046# This file is part of GNU Libtool.
d7040cdb 19047#
b214d478
SE
19048# GNU Libtool is free software; you can redistribute it and/or
19049# modify it under the terms of the GNU General Public License as
19050# published by the Free Software Foundation; either version 2 of
19051# the License, or (at your option) any later version.
d7040cdb 19052#
b214d478
SE
19053# As a special exception to the GNU General Public License,
19054# if you distribute this file as part of a program or library that
19055# is built using GNU Libtool, you may include this file under the
19056# same distribution terms that you use for the rest of that program.
d7040cdb 19057#
b214d478
SE
19058# GNU Libtool is distributed in the hope that it will be useful,
19059# but WITHOUT ANY WARRANTY; without even the implied warranty of
19060# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19061# GNU General Public License for more details.
d7040cdb 19062#
b214d478
SE
19063# You should have received a copy of the GNU General Public License
19064# along with GNU Libtool; see the file COPYING. If not, a copy
19065# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19066# obtained by writing to the Free Software Foundation, Inc.,
19067# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19068
19069
19070# The names of the tagged configurations supported by this script.
3cb62297 19071available_tags="CXX "
d7040cdb
SE
19072
19073# ### BEGIN LIBTOOL CONFIG
19074
19075# Which release of libtool.m4 was used?
19076macro_version=$macro_version
19077macro_revision=$macro_revision
19078
19079# Whether or not to build shared libraries.
19080build_libtool_libs=$enable_shared
19081
19082# Whether or not to build static libraries.
19083build_old_libs=$enable_static
19084
19085# What type of objects to build.
19086pic_mode=$pic_mode
19087
19088# Whether or not to optimize for fast installation.
19089fast_install=$enable_fast_install
19090
3725885a
RW
19091# Shell to use when invoking shell scripts.
19092SHELL=$lt_SHELL
19093
19094# An echo program that protects backslashes.
19095ECHO=$lt_ECHO
19096
d7040cdb
SE
19097# The host system.
19098host_alias=$host_alias
19099host=$host
19100host_os=$host_os
19101
19102# The build system.
19103build_alias=$build_alias
19104build=$build
19105build_os=$build_os
19106
19107# A sed program that does not truncate output.
19108SED=$lt_SED
19109
19110# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19111Xsed="\$SED -e 1s/^X//"
19112
19113# A grep program that handles long lines.
19114GREP=$lt_GREP
19115
19116# An ERE matcher.
19117EGREP=$lt_EGREP
19118
19119# A literal string matcher.
19120FGREP=$lt_FGREP
19121
19122# A BSD- or MS-compatible name lister.
19123NM=$lt_NM
19124
19125# Whether we need soft or hard links.
19126LN_S=$lt_LN_S
19127
19128# What is the maximum length of a command?
19129max_cmd_len=$max_cmd_len
19130
19131# Object file suffix (normally "o").
19132objext=$ac_objext
19133
19134# Executable file suffix (normally "").
19135exeext=$exeext
19136
19137# whether the shell understands "unset".
19138lt_unset=$lt_unset
19139
19140# turn spaces into newlines.
19141SP2NL=$lt_lt_SP2NL
19142
19143# turn newlines into spaces.
19144NL2SP=$lt_lt_NL2SP
19145
b214d478
SE
19146# An object symbol dumper.
19147OBJDUMP=$lt_OBJDUMP
19148
d7040cdb
SE
19149# Method to check whether dependent libraries are shared objects.
19150deplibs_check_method=$lt_deplibs_check_method
19151
19152# Command to use when deplibs_check_method == "file_magic".
19153file_magic_cmd=$lt_file_magic_cmd
19154
19155# The archiver.
19156AR=$lt_AR
19157AR_FLAGS=$lt_AR_FLAGS
19158
19159# A symbol stripping program.
19160STRIP=$lt_STRIP
19161
19162# Commands used to install an old-style archive.
19163RANLIB=$lt_RANLIB
19164old_postinstall_cmds=$lt_old_postinstall_cmds
19165old_postuninstall_cmds=$lt_old_postuninstall_cmds
19166
3725885a
RW
19167# Whether to use a lock for old archive extraction.
19168lock_old_archive_extraction=$lock_old_archive_extraction
19169
d7040cdb
SE
19170# A C compiler.
19171LTCC=$lt_CC
19172
19173# LTCC compiler flags.
19174LTCFLAGS=$lt_CFLAGS
19175
19176# Take the output of nm and produce a listing of raw symbols and C names.
19177global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19178
19179# Transform the output of nm in a proper C declaration.
19180global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19181
19182# Transform the output of nm in a C name address pair.
19183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19184
b214d478
SE
19185# Transform the output of nm in a C name address pair when lib prefix is needed.
19186global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19187
d7040cdb
SE
19188# The name of the directory that contains temporary libtool files.
19189objdir=$objdir
19190
d7040cdb
SE
19191# Used to examine libraries when file_magic_cmd begins with "file".
19192MAGIC_CMD=$MAGIC_CMD
19193
19194# Must we lock files when doing compilation?
19195need_locks=$lt_need_locks
19196
b214d478
SE
19197# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19198DSYMUTIL=$lt_DSYMUTIL
19199
19200# Tool to change global to local symbols on Mac OS X.
19201NMEDIT=$lt_NMEDIT
19202
19203# Tool to manipulate fat objects and archives on Mac OS X.
19204LIPO=$lt_LIPO
19205
19206# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19207OTOOL=$lt_OTOOL
19208
19209# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19210OTOOL64=$lt_OTOOL64
19211
d7040cdb
SE
19212# Old archive suffix (normally "a").
19213libext=$libext
19214
19215# Shared library suffix (normally ".so").
19216shrext_cmds=$lt_shrext_cmds
19217
19218# The commands to extract the exported symbol list from a shared archive.
19219extract_expsyms_cmds=$lt_extract_expsyms_cmds
19220
19221# Variables whose values should be saved in libtool wrapper scripts and
19222# restored at link time.
19223variables_saved_for_relink=$lt_variables_saved_for_relink
19224
19225# Do we need the "lib" prefix for modules?
19226need_lib_prefix=$need_lib_prefix
19227
19228# Do we need a version for libraries?
19229need_version=$need_version
19230
19231# Library versioning type.
19232version_type=$version_type
19233
19234# Shared library runtime path variable.
19235runpath_var=$runpath_var
19236
19237# Shared library path variable.
19238shlibpath_var=$shlibpath_var
19239
19240# Is shlibpath searched before the hard-coded library search path?
19241shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19242
19243# Format of library name prefix.
19244libname_spec=$lt_libname_spec
19245
19246# List of archive names. First name is the real one, the rest are links.
19247# The last name is the one that the linker finds with -lNAME
19248library_names_spec=$lt_library_names_spec
19249
19250# The coded name of the library, if different from the real name.
19251soname_spec=$lt_soname_spec
19252
3725885a
RW
19253# Permission mode override for installation of shared libraries.
19254install_override_mode=$lt_install_override_mode
19255
d7040cdb
SE
19256# Command to use after installation of a shared archive.
19257postinstall_cmds=$lt_postinstall_cmds
19258
19259# Command to use after uninstallation of a shared archive.
19260postuninstall_cmds=$lt_postuninstall_cmds
19261
19262# Commands used to finish a libtool library installation in a directory.
19263finish_cmds=$lt_finish_cmds
19264
19265# As "finish_cmds", except a single script fragment to be evaled but
19266# not shown.
19267finish_eval=$lt_finish_eval
19268
19269# Whether we should hardcode library paths into libraries.
19270hardcode_into_libs=$hardcode_into_libs
19271
19272# Compile-time system search path for libraries.
19273sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19274
19275# Run-time system search path for libraries.
19276sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19277
19278# Whether dlopen is supported.
19279dlopen_support=$enable_dlopen
19280
19281# Whether dlopen of programs is supported.
19282dlopen_self=$enable_dlopen_self
19283
19284# Whether dlopen of statically linked programs is supported.
19285dlopen_self_static=$enable_dlopen_self_static
19286
19287# Commands to strip libraries.
19288old_striplib=$lt_old_striplib
19289striplib=$lt_striplib
19290
19291
19292# The linker used to build libraries.
19293LD=$lt_LD
19294
3725885a
RW
19295# How to create reloadable object files.
19296reload_flag=$lt_reload_flag
19297reload_cmds=$lt_reload_cmds
19298
d7040cdb
SE
19299# Commands used to build an old-style archive.
19300old_archive_cmds=$lt_old_archive_cmds
19301
19302# A language specific compiler.
19303CC=$lt_compiler
19304
19305# Is the compiler the GNU compiler?
19306with_gcc=$GCC
19307
19308# Compiler flag to turn off builtin functions.
19309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19310
19311# How to pass a linker flag through the compiler.
19312wl=$lt_lt_prog_compiler_wl
19313
19314# Additional compiler flags for building library objects.
19315pic_flag=$lt_lt_prog_compiler_pic
19316
19317# Compiler flag to prevent dynamic linking.
19318link_static_flag=$lt_lt_prog_compiler_static
19319
19320# Does compiler simultaneously support -c and -o options?
19321compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19322
19323# Whether or not to add -lc for building shared libraries.
19324build_libtool_need_lc=$archive_cmds_need_lc
19325
19326# Whether or not to disallow shared libs when runtime libs are static.
19327allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19328
19329# Compiler flag to allow reflexive dlopens.
19330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19331
19332# Compiler flag to generate shared objects directly from archives.
19333whole_archive_flag_spec=$lt_whole_archive_flag_spec
19334
19335# Whether the compiler copes with passing no objects directly.
19336compiler_needs_object=$lt_compiler_needs_object
19337
19338# Create an old-style archive from a shared archive.
19339old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19340
19341# Create a temporary old-style archive to link instead of a shared archive.
19342old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19343
19344# Commands used to build a shared archive.
19345archive_cmds=$lt_archive_cmds
19346archive_expsym_cmds=$lt_archive_expsym_cmds
19347
19348# Commands used to build a loadable module if different from building
19349# a shared archive.
19350module_cmds=$lt_module_cmds
19351module_expsym_cmds=$lt_module_expsym_cmds
19352
19353# Whether we are building with GNU ld or not.
19354with_gnu_ld=$lt_with_gnu_ld
19355
19356# Flag that allows shared libraries with undefined symbols to be built.
19357allow_undefined_flag=$lt_allow_undefined_flag
19358
19359# Flag that enforces no undefined symbols.
19360no_undefined_flag=$lt_no_undefined_flag
19361
19362# Flag to hardcode \$libdir into a binary during linking.
19363# This must work even if \$libdir does not exist
19364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19365
19366# If ld is used when linking, flag to hardcode \$libdir into a binary
19367# during linking. This must work even if \$libdir does not exist.
19368hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19369
19370# Whether we need a single "-rpath" flag with a separated argument.
19371hardcode_libdir_separator=$lt_hardcode_libdir_separator
19372
19373# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19374# DIR into the resulting binary.
19375hardcode_direct=$hardcode_direct
19376
19377# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19378# DIR into the resulting binary and the resulting library dependency is
19379# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19380# library is relocated.
19381hardcode_direct_absolute=$hardcode_direct_absolute
19382
19383# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19384# into the resulting binary.
19385hardcode_minus_L=$hardcode_minus_L
19386
19387# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19388# into the resulting binary.
19389hardcode_shlibpath_var=$hardcode_shlibpath_var
19390
19391# Set to "yes" if building a shared library automatically hardcodes DIR
19392# into the library and all subsequent libraries and executables linked
19393# against it.
19394hardcode_automatic=$hardcode_automatic
19395
19396# Set to yes if linker adds runtime paths of dependent libraries
19397# to runtime path list.
19398inherit_rpath=$inherit_rpath
19399
19400# Whether libtool must link a program against all its dependency libraries.
19401link_all_deplibs=$link_all_deplibs
19402
19403# Fix the shell variable \$srcfile for the compiler.
19404fix_srcfile_path=$lt_fix_srcfile_path
19405
19406# Set to "yes" if exported symbols are required.
19407always_export_symbols=$always_export_symbols
19408
19409# The commands to list exported symbols.
19410export_symbols_cmds=$lt_export_symbols_cmds
19411
19412# Symbols that should not be listed in the preloaded symbols.
19413exclude_expsyms=$lt_exclude_expsyms
19414
19415# Symbols that must always be exported.
19416include_expsyms=$lt_include_expsyms
19417
19418# Commands necessary for linking programs (against libraries) with templates.
19419prelink_cmds=$lt_prelink_cmds
19420
19421# Specify filename containing input files.
19422file_list_spec=$lt_file_list_spec
19423
19424# How to hardcode a shared library path into an executable.
19425hardcode_action=$hardcode_action
19426
3cb62297
L
19427# The directories searched by this compiler when creating a shared library.
19428compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19429
19430# Dependencies to place before and after the objects being linked to
19431# create a shared library.
19432predep_objects=$lt_predep_objects
19433postdep_objects=$lt_postdep_objects
19434predeps=$lt_predeps
19435postdeps=$lt_postdeps
19436
19437# The library search path used internally by the compiler when linking
19438# a shared library.
19439compiler_lib_search_path=$lt_compiler_lib_search_path
19440
d7040cdb
SE
19441# ### END LIBTOOL CONFIG
19442
19443_LT_EOF
19444
19445 case $host_os in
19446 aix3*)
19447 cat <<\_LT_EOF >> "$cfgfile"
19448# AIX sometimes has problems with the GCC collect2 program. For some
19449# reason, if we set the COLLECT_NAMES environment variable, the problems
19450# vanish in a puff of smoke.
19451if test "X${COLLECT_NAMES+set}" != Xset; then
19452 COLLECT_NAMES=
19453 export COLLECT_NAMES
19454fi
19455_LT_EOF
19456 ;;
19457 esac
19458
19459
19460ltmain="$ac_aux_dir/ltmain.sh"
19461
19462
19463 # We use sed instead of cat because bash on DJGPP gets confused if
19464 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19465 # text mode, it properly converts lines to CR/LF. This bash problem
19466 # is reportedly fixed, but why not run on old versions too?
19467 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19468 || (rm -f "$cfgfile"; exit 1)
19469
19470 case $xsi_shell in
19471 yes)
19472 cat << \_LT_EOF >> "$cfgfile"
b214d478 19473
d7040cdb
SE
19474# func_dirname file append nondir_replacement
19475# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19476# otherwise set result to NONDIR_REPLACEMENT.
19477func_dirname ()
19478{
19479 case ${1} in
19480 */*) func_dirname_result="${1%/*}${2}" ;;
19481 * ) func_dirname_result="${3}" ;;
19482 esac
19483}
19484
19485# func_basename file
19486func_basename ()
19487{
19488 func_basename_result="${1##*/}"
19489}
19490
b214d478
SE
19491# func_dirname_and_basename file append nondir_replacement
19492# perform func_basename and func_dirname in a single function
19493# call:
19494# dirname: Compute the dirname of FILE. If nonempty,
19495# add APPEND to the result, otherwise set result
19496# to NONDIR_REPLACEMENT.
19497# value returned in "$func_dirname_result"
19498# basename: Compute filename of FILE.
19499# value retuned in "$func_basename_result"
19500# Implementation must be kept synchronized with func_dirname
19501# and func_basename. For efficiency, we do not delegate to
19502# those functions but instead duplicate the functionality here.
19503func_dirname_and_basename ()
19504{
19505 case ${1} in
19506 */*) func_dirname_result="${1%/*}${2}" ;;
19507 * ) func_dirname_result="${3}" ;;
19508 esac
19509 func_basename_result="${1##*/}"
19510}
19511
d7040cdb
SE
19512# func_stripname prefix suffix name
19513# strip PREFIX and SUFFIX off of NAME.
19514# PREFIX and SUFFIX must not contain globbing or regex special
19515# characters, hashes, percent signs, but SUFFIX may contain a leading
19516# dot (in which case that matches only a dot).
19517func_stripname ()
19518{
19519 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19520 # positional parameters, so assign one to ordinary parameter first.
19521 func_stripname_result=${3}
19522 func_stripname_result=${func_stripname_result#"${1}"}
19523 func_stripname_result=${func_stripname_result%"${2}"}
19524}
19525
19526# func_opt_split
19527func_opt_split ()
19528{
19529 func_opt_split_opt=${1%%=*}
19530 func_opt_split_arg=${1#*=}
19531}
19532
19533# func_lo2o object
19534func_lo2o ()
19535{
19536 case ${1} in
19537 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19538 *) func_lo2o_result=${1} ;;
19539 esac
19540}
b214d478
SE
19541
19542# func_xform libobj-or-source
19543func_xform ()
19544{
19545 func_xform_result=${1%.*}.lo
19546}
19547
19548# func_arith arithmetic-term...
19549func_arith ()
19550{
19551 func_arith_result=$(( $* ))
19552}
19553
19554# func_len string
19555# STRING may not start with a hyphen.
19556func_len ()
19557{
19558 func_len_result=${#1}
19559}
19560
d7040cdb
SE
19561_LT_EOF
19562 ;;
19563 *) # Bourne compatible functions.
19564 cat << \_LT_EOF >> "$cfgfile"
b214d478 19565
d7040cdb
SE
19566# func_dirname file append nondir_replacement
19567# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19568# otherwise set result to NONDIR_REPLACEMENT.
19569func_dirname ()
19570{
19571 # Extract subdirectory from the argument.
3725885a 19572 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19573 if test "X$func_dirname_result" = "X${1}"; then
19574 func_dirname_result="${3}"
19575 else
19576 func_dirname_result="$func_dirname_result${2}"
19577 fi
19578}
19579
19580# func_basename file
19581func_basename ()
19582{
3725885a 19583 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19584}
19585
b214d478 19586
d7040cdb
SE
19587# func_stripname prefix suffix name
19588# strip PREFIX and SUFFIX off of NAME.
19589# PREFIX and SUFFIX must not contain globbing or regex special
19590# characters, hashes, percent signs, but SUFFIX may contain a leading
19591# dot (in which case that matches only a dot).
19592# func_strip_suffix prefix name
19593func_stripname ()
19594{
19595 case ${2} in
3725885a
RW
19596 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19597 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19598 esac
19599}
19600
19601# sed scripts:
19602my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19603my_sed_long_arg='1s/^-[^=]*=//'
19604
19605# func_opt_split
19606func_opt_split ()
19607{
3725885a
RW
19608 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19609 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19610}
19611
19612# func_lo2o object
19613func_lo2o ()
19614{
3725885a 19615 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19616}
b214d478
SE
19617
19618# func_xform libobj-or-source
19619func_xform ()
19620{
3725885a 19621 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19622}
19623
19624# func_arith arithmetic-term...
19625func_arith ()
19626{
19627 func_arith_result=`expr "$@"`
19628}
19629
19630# func_len string
19631# STRING may not start with a hyphen.
19632func_len ()
19633{
19634 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19635}
19636
d7040cdb
SE
19637_LT_EOF
19638esac
19639
19640case $lt_shell_append in
19641 yes)
19642 cat << \_LT_EOF >> "$cfgfile"
19643
19644# func_append var value
19645# Append VALUE to the end of shell variable VAR.
19646func_append ()
19647{
19648 eval "$1+=\$2"
19649}
19650_LT_EOF
19651 ;;
19652 *)
19653 cat << \_LT_EOF >> "$cfgfile"
19654
19655# func_append var value
19656# Append VALUE to the end of shell variable VAR.
19657func_append ()
19658{
19659 eval "$1=\$$1\$2"
19660}
b214d478 19661
d7040cdb
SE
19662_LT_EOF
19663 ;;
19664 esac
19665
19666
19667 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19668 || (rm -f "$cfgfile"; exit 1)
19669
19670 mv -f "$cfgfile" "$ofile" ||
19671 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19672 chmod +x "$ofile"
19673
3cb62297
L
19674
19675 cat <<_LT_EOF >> "$ofile"
19676
19677# ### BEGIN LIBTOOL TAG CONFIG: CXX
19678
19679# The linker used to build libraries.
19680LD=$lt_LD_CXX
19681
19682# How to create reloadable object files.
19683reload_flag=$lt_reload_flag_CXX
19684reload_cmds=$lt_reload_cmds_CXX
19685
19686# Commands used to build an old-style archive.
19687old_archive_cmds=$lt_old_archive_cmds_CXX
19688
19689# A language specific compiler.
19690CC=$lt_compiler_CXX
19691
19692# Is the compiler the GNU compiler?
19693with_gcc=$GCC_CXX
19694
19695# Compiler flag to turn off builtin functions.
19696no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19697
19698# How to pass a linker flag through the compiler.
19699wl=$lt_lt_prog_compiler_wl_CXX
19700
19701# Additional compiler flags for building library objects.
19702pic_flag=$lt_lt_prog_compiler_pic_CXX
19703
19704# Compiler flag to prevent dynamic linking.
19705link_static_flag=$lt_lt_prog_compiler_static_CXX
19706
19707# Does compiler simultaneously support -c and -o options?
19708compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19709
19710# Whether or not to add -lc for building shared libraries.
19711build_libtool_need_lc=$archive_cmds_need_lc_CXX
19712
19713# Whether or not to disallow shared libs when runtime libs are static.
19714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19715
19716# Compiler flag to allow reflexive dlopens.
19717export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19718
19719# Compiler flag to generate shared objects directly from archives.
19720whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19721
19722# Whether the compiler copes with passing no objects directly.
19723compiler_needs_object=$lt_compiler_needs_object_CXX
19724
19725# Create an old-style archive from a shared archive.
19726old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19727
19728# Create a temporary old-style archive to link instead of a shared archive.
19729old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19730
19731# Commands used to build a shared archive.
19732archive_cmds=$lt_archive_cmds_CXX
19733archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19734
19735# Commands used to build a loadable module if different from building
19736# a shared archive.
19737module_cmds=$lt_module_cmds_CXX
19738module_expsym_cmds=$lt_module_expsym_cmds_CXX
19739
19740# Whether we are building with GNU ld or not.
19741with_gnu_ld=$lt_with_gnu_ld_CXX
19742
19743# Flag that allows shared libraries with undefined symbols to be built.
19744allow_undefined_flag=$lt_allow_undefined_flag_CXX
19745
19746# Flag that enforces no undefined symbols.
19747no_undefined_flag=$lt_no_undefined_flag_CXX
19748
19749# Flag to hardcode \$libdir into a binary during linking.
19750# This must work even if \$libdir does not exist
19751hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19752
19753# If ld is used when linking, flag to hardcode \$libdir into a binary
19754# during linking. This must work even if \$libdir does not exist.
19755hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19756
19757# Whether we need a single "-rpath" flag with a separated argument.
19758hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19759
19760# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19761# DIR into the resulting binary.
19762hardcode_direct=$hardcode_direct_CXX
19763
19764# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19765# DIR into the resulting binary and the resulting library dependency is
19766# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19767# library is relocated.
19768hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19769
19770# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19771# into the resulting binary.
19772hardcode_minus_L=$hardcode_minus_L_CXX
19773
19774# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19775# into the resulting binary.
19776hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19777
19778# Set to "yes" if building a shared library automatically hardcodes DIR
19779# into the library and all subsequent libraries and executables linked
19780# against it.
19781hardcode_automatic=$hardcode_automatic_CXX
19782
19783# Set to yes if linker adds runtime paths of dependent libraries
19784# to runtime path list.
19785inherit_rpath=$inherit_rpath_CXX
19786
19787# Whether libtool must link a program against all its dependency libraries.
19788link_all_deplibs=$link_all_deplibs_CXX
19789
19790# Fix the shell variable \$srcfile for the compiler.
19791fix_srcfile_path=$lt_fix_srcfile_path_CXX
19792
19793# Set to "yes" if exported symbols are required.
19794always_export_symbols=$always_export_symbols_CXX
19795
19796# The commands to list exported symbols.
19797export_symbols_cmds=$lt_export_symbols_cmds_CXX
19798
19799# Symbols that should not be listed in the preloaded symbols.
19800exclude_expsyms=$lt_exclude_expsyms_CXX
19801
19802# Symbols that must always be exported.
19803include_expsyms=$lt_include_expsyms_CXX
19804
19805# Commands necessary for linking programs (against libraries) with templates.
19806prelink_cmds=$lt_prelink_cmds_CXX
19807
19808# Specify filename containing input files.
19809file_list_spec=$lt_file_list_spec_CXX
19810
19811# How to hardcode a shared library path into an executable.
19812hardcode_action=$hardcode_action_CXX
19813
19814# The directories searched by this compiler when creating a shared library.
19815compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19816
19817# Dependencies to place before and after the objects being linked to
19818# create a shared library.
19819predep_objects=$lt_predep_objects_CXX
19820postdep_objects=$lt_postdep_objects_CXX
19821predeps=$lt_predeps_CXX
19822postdeps=$lt_postdeps_CXX
19823
19824# The library search path used internally by the compiler when linking
19825# a shared library.
19826compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19827
19828# ### END LIBTOOL TAG CONFIG: CXX
19829_LT_EOF
19830
42ecbf5e 19831 ;;
81ecdfbb 19832 "default-1":C)
20e95c23
DJ
19833 for ac_file in $CONFIG_FILES; do
19834 # Support "outfile[:infile[:infile...]]"
19835 case "$ac_file" in
19836 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19837 esac
19838 # PO directories have a Makefile.in generated from Makefile.in.in.
19839 case "$ac_file" in */Makefile.in)
19840 # Adjust a relative srcdir.
19841 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 19842 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
19843 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19844 # In autoconf-2.13 it is called $ac_given_srcdir.
19845 # In autoconf-2.50 it is called $srcdir.
19846 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19847 case "$ac_given_srcdir" in
19848 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19849 /*) top_srcdir="$ac_given_srcdir" ;;
19850 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19851 esac
19852 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19853 rm -f "$ac_dir/POTFILES"
19854 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19855 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19856 POMAKEFILEDEPS="POTFILES.in"
19857 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19858 # on $ac_dir but don't depend on user-specified configuration
19859 # parameters.
19860 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19861 # The LINGUAS file contains the set of available languages.
19862 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 19863 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
20e95c23
DJ
19864 fi
19865 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19866 # Hide the ALL_LINGUAS assigment from automake.
19867 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19868 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19869 else
37a42ee9 19870 # The set of available languages was given in configure.ac.
20e95c23
DJ
19871 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19872 fi
19873 case "$ac_given_srcdir" in
19874 .) srcdirpre= ;;
19875 *) srcdirpre='$(srcdir)/' ;;
19876 esac
19877 POFILES=
19878 GMOFILES=
19879 UPDATEPOFILES=
19880 DUMMYPOFILES=
19881 for lang in $ALL_LINGUAS; do
19882 POFILES="$POFILES $srcdirpre$lang.po"
19883 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19884 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19885 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19886 done
19887 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19888 # environment variable.
19889 INST_LINGUAS=
19890 if test -n "$ALL_LINGUAS"; then
19891 for presentlang in $ALL_LINGUAS; do
19892 useit=no
19893 if test "%UNSET%" != "$LINGUAS"; then
19894 desiredlanguages="$LINGUAS"
19895 else
19896 desiredlanguages="$ALL_LINGUAS"
19897 fi
19898 for desiredlang in $desiredlanguages; do
19899 # Use the presentlang catalog if desiredlang is
19900 # a. equal to presentlang, or
19901 # b. a variant of presentlang (because in this case,
19902 # presentlang can be used as a fallback for messages
19903 # which are not translated in the desiredlang catalog).
19904 case "$desiredlang" in
19905 "$presentlang"*) useit=yes;;
19906 esac
19907 done
19908 if test $useit = yes; then
19909 INST_LINGUAS="$INST_LINGUAS $presentlang"
19910 fi
19911 done
19912 fi
19913 CATALOGS=
19914 if test -n "$INST_LINGUAS"; then
19915 for lang in $INST_LINGUAS; do
19916 CATALOGS="$CATALOGS $lang.gmo"
19917 done
19918 fi
19919 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19920 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"
19921 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19922 if test -f "$f"; then
19923 case "$f" in
19924 *.orig | *.bak | *~) ;;
19925 *) cat "$f" >> "$ac_dir/Makefile" ;;
19926 esac
19927 fi
19928 done
19929 fi
19930 ;;
19931 esac
19932 done ;;
81ecdfbb 19933
42ecbf5e 19934 esac
81ecdfbb 19935done # for ac_tag
42ecbf5e 19936
42ecbf5e 19937
81ecdfbb 19938as_fn_exit 0
42ecbf5e 19939_ACEOF
42ecbf5e
DJ
19940ac_clean_files=$ac_clean_files_save
19941
81ecdfbb
RW
19942test $ac_write_fail = 0 ||
19943 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19944
42ecbf5e
DJ
19945
19946# configure is writing to config.log, and then calls config.status.
19947# config.status does its own redirection, appending to config.log.
19948# Unfortunately, on DOS this fails, as config.log is still kept open
19949# by configure, so config.status won't be able to write to it; its
19950# output is simply discarded. So we exec the FD to /dev/null,
19951# effectively closing config.log, so it can be properly (re)opened and
19952# appended to by config.status. When coming back to configure, we
19953# need to make the FD available again.
19954if test "$no_create" != yes; then
19955 ac_cs_success=:
19956 ac_config_status_args=
19957 test "$silent" = yes &&
19958 ac_config_status_args="$ac_config_status_args --quiet"
19959 exec 5>/dev/null
19960 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19961 exec 5>>config.log
19962 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19963 # would make configure fail if this is the last instruction.
81ecdfbb
RW
19964 $ac_cs_success || as_fn_exit $?
19965fi
19966if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19968$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 19969fi
252b5132 19970
This page took 1.792766 seconds and 4 git commands to generate.