gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
1b1bb2c6 3# Generated by GNU Autoconf 2.69 for ld 2.34.50.
d0ac1c44
SM
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
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.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
42ecbf5e
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
3725885a
RW
199test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
81ecdfbb
RW
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42ecbf5e 219do
81ecdfbb
RW
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
81ecdfbb
RW
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
42ecbf5e 274 else
81ecdfbb
RW
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
42ecbf5e 279 fi
81ecdfbb
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
81ecdfbb
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
42ecbf5e 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
429 as_expr=expr
430else
431 as_expr=false
432fi
433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
435 as_basename=basename
436else
437 as_basename=false
438fi
439
81ecdfbb
RW
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
42ecbf5e 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
42ecbf5e 464
42ecbf5e
DJ
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
42ecbf5e 472
81ecdfbb
RW
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
42ecbf5e 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
42ecbf5e 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
42ecbf5e 490 t loop
81ecdfbb 491 s/-\n.*//
42ecbf5e 492 ' >$as_me.lineno &&
81ecdfbb
RW
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
42ecbf5e 495
d0ac1c44
SM
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
42ecbf5e
DJ
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
42ecbf5e
DJ
504 # Exit status is that of the last command.
505 exit
506}
507
81ecdfbb
RW
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
42ecbf5e
DJ
519esac
520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
42ecbf5e 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
42ecbf5e 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 530 as_ln_s='ln -s'
81ecdfbb
RW
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 534 # In both cases, we have to default to `cp -pR'.
81ecdfbb 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 536 as_ln_s='cp -pR'
81ecdfbb
RW
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
d0ac1c44 540 as_ln_s='cp -pR'
42ecbf5e 541 fi
42ecbf5e 542else
d0ac1c44 543 as_ln_s='cp -pR'
42ecbf5e 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
42ecbf5e
DJ
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
42ecbf5e
DJ
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
d7040cdb
SE
564SHELL=${CONFIG_SHELL-/bin/sh}
565
d7040cdb 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
81ecdfbb 569
42ecbf5e 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
42ecbf5e
DJ
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
42ecbf5e
DJ
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
42ecbf5e 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
42ecbf5e
DJ
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
42ecbf5e
DJ
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='ld'
589PACKAGE_TARNAME='ld'
1b1bb2c6
NC
590PACKAGE_VERSION='2.34.50'
591PACKAGE_STRING='ld 2.34.50'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
42ecbf5e
DJ
594
595ac_unique_file="ldmain.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
42ecbf5e
DJ
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
42ecbf5e
DJ
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
42ecbf5e
DJ
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
42ecbf5e
DJ
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
42ecbf5e
DJ
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
42ecbf5e
DJ
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
42ecbf5e 623# include <inttypes.h>
42ecbf5e 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
42ecbf5e
DJ
629# include <unistd.h>
630#endif"
631
d0ac1c44 632ac_header_list=
81ecdfbb
RW
633ac_subst_vars='am__EXEEXT_FALSE
634am__EXEEXT_TRUE
635LTLIBOBJS
636LIBOBJS
87279e3c 637TESTCTFLIB
81ecdfbb
RW
638TESTBFDLIB
639EMULATION_LIBPATH
640LIB_PATH
641EMUL_EXTRA_OFILES
642EMULATION_OFILES
50ff67e6 643TDIRS
81ecdfbb 644EMUL
c58212ea
L
645elf_plt_unwind_list_options
646elf_shlib_list_options
647elf_list_options
81ecdfbb 648STRINGIFY
1ff6de03
NA
649zlibinc
650zlibdir
02ecc8e9 651enable_initfini_array
5d3236ee
DK
652ENABLE_PLUGINS_FALSE
653ENABLE_PLUGINS_TRUE
81ecdfbb 654NATIVE_LIB_DIRS
81ecdfbb
RW
655HDEFINES
656do_compare
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
81ecdfbb
RW
659LEXLIB
660LEX_OUTPUT_ROOT
661LEX
662YFLAGS
663YACC
664MSGMERGE
665MSGFMT
666MKINSTALLDIRS
667CATOBJEXT
668GENCAT
669INSTOBJEXT
670DATADIRNAME
671CATALOGS
672POSUB
673GMSGFMT
674XGETTEXT
675INCINTL
676LIBINTL_DEP
677LIBINTL
678USE_NLS
6757cf57 679WARN_WRITE_STRINGS
b879806f 680NO_WERROR
c5da1932 681WARN_CFLAGS_FOR_BUILD
b879806f
AM
682WARN_CFLAGS
683installed_linker
684install_as_default
685TARGET_SYSTEM_ROOT_DEFINE
686TARGET_SYSTEM_ROOT
687use_sysroot
3cb62297 688CXXCPP
81ecdfbb
RW
689OTOOL64
690OTOOL
691LIPO
692NMEDIT
693DSYMUTIL
81ecdfbb
RW
694RANLIB
695AR
696OBJDUMP
697LN_S
698NM
699ac_ct_DUMPBIN
700DUMPBIN
701LD
702FGREP
703SED
704LIBTOOL
b879806f 705EGREP
b879806f 706CPP
68880f31 707GREP
3cb62297
L
708am__fastdepCXX_FALSE
709am__fastdepCXX_TRUE
710CXXDEPMODE
711ac_ct_CXX
712CXXFLAGS
713CXX
64ac50ac
RW
714MAINT
715MAINTAINER_MODE_FALSE
716MAINTAINER_MODE_TRUE
d0ac1c44
SM
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
81ecdfbb
RW
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
6eb7d830 724am__nodep
81ecdfbb
RW
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
728am__quote
729am__include
730DEPDIR
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754OBJEXT
755EXEEXT
756ac_ct_CC
757CPPFLAGS
758LDFLAGS
759CFLAGS
760CC
761target_os
762target_vendor
763target_cpu
764target
765host_os
766host_vendor
767host_cpu
768host
769build_os
770build_vendor
771build_cpu
772build
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_URL
804PACKAGE_BUGREPORT
805PACKAGE_STRING
806PACKAGE_VERSION
807PACKAGE_TARNAME
808PACKAGE_NAME
809PATH_SEPARATOR
810SHELL'
50ff67e6 811ac_subst_files=''
81ecdfbb
RW
812ac_user_opts='
813enable_option_checking
814enable_dependency_tracking
d0ac1c44 815enable_silent_rules
64ac50ac 816enable_maintainer_mode
b879806f
AM
817enable_shared
818enable_static
819with_pic
820enable_fast_install
821with_gnu_ld
822enable_libtool_lock
823enable_plugins
824enable_largefile
81ecdfbb
RW
825with_lib_path
826enable_targets
827enable_64_bit_bfd
828with_sysroot
4fda8867 829enable_gold
81ecdfbb 830enable_got
6c3bc0f8 831enable_compressed_debug_sections
6734f10a 832enable_new_dtags
647e4d46 833enable_relro
b32632c4 834enable_textrel_check
f6aec96d 835enable_separate_code
2760f24c 836enable_default_hash_style
81ecdfbb
RW
837enable_werror
838enable_build_warnings
81ecdfbb 839enable_nls
02ecc8e9 840enable_initfini_array
1ff6de03 841with_system_zlib
81ecdfbb
RW
842'
843 ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
3cb62297
L
851CXX
852CXXFLAGS
853CCC
b879806f 854CPP
3cb62297 855CXXCPP
81ecdfbb
RW
856YACC
857YFLAGS'
858
252b5132
RH
859
860# Initialize some variables set by options.
42ecbf5e
DJ
861ac_init_help=
862ac_init_version=false
81ecdfbb
RW
863ac_unrecognized_opts=
864ac_unrecognized_sep=
252b5132
RH
865# The variables have the same names as the options, with
866# dashes changed to underlines.
42ecbf5e 867cache_file=/dev/null
252b5132 868exec_prefix=NONE
252b5132 869no_create=
252b5132
RH
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
252b5132
RH
878verbose=
879x_includes=NONE
880x_libraries=NONE
42ecbf5e
DJ
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 887# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
252b5132
RH
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
252b5132
RH
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
2e98a7bd 898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
252b5132 907
252b5132 908ac_prev=
81ecdfbb 909ac_dashdash=
252b5132
RH
910for ac_option
911do
252b5132
RH
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
81ecdfbb 914 eval $ac_prev=\$ac_option
252b5132
RH
915 ac_prev=
916 continue
917 fi
918
81ecdfbb 919 case $ac_option in
d0ac1c44
SM
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
81ecdfbb 923 esac
252b5132
RH
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
81ecdfbb
RW
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
252b5132
RH
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 934 bindir=$ac_optarg ;;
252b5132
RH
935
936 -build | --build | --buil | --bui | --bu)
42ecbf5e 937 ac_prev=build_alias ;;
252b5132 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 939 build_alias=$ac_optarg ;;
252b5132
RH
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
252b5132 950
81ecdfbb 951 -datadir | --datadir | --datadi | --datad)
252b5132 952 ac_prev=datadir ;;
81ecdfbb 953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 954 datadir=$ac_optarg ;;
252b5132 955
81ecdfbb
RW
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
252b5132 963 -disable-* | --disable-*)
81ecdfbb 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 965 # Reject names that are not valid shell variable names.
81ecdfbb 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 967 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972"enable_$ac_useropt"
973"*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
252b5132
RH
988
989 -enable-* | --enable-*)
81ecdfbb 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 991 # Reject names that are not valid shell variable names.
81ecdfbb 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 993 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
252b5132 1002 esac
81ecdfbb 1003 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1012 exec_prefix=$ac_optarg ;;
252b5132
RH
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
42ecbf5e
DJ
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
252b5132
RH
1024
1025 -host | --host | --hos | --ho)
42ecbf5e 1026 ac_prev=host_alias ;;
252b5132 1027 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1028 host_alias=$ac_optarg ;;
252b5132 1029
81ecdfbb
RW
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
252b5132
RH
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1041 includedir=$ac_optarg ;;
252b5132
RH
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1046 infodir=$ac_optarg ;;
252b5132
RH
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1051 libdir=$ac_optarg ;;
252b5132
RH
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1058 libexecdir=$ac_optarg ;;
252b5132 1059
81ecdfbb
RW
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
252b5132 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1066 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1070 localstatedir=$ac_optarg ;;
252b5132
RH
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1075 mandir=$ac_optarg ;;
252b5132
RH
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1082 | --no-cr | --no-c | -n)
252b5132
RH
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1096 oldincludedir=$ac_optarg ;;
252b5132
RH
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1101 prefix=$ac_optarg ;;
252b5132
RH
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1108 program_prefix=$ac_optarg ;;
252b5132
RH
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1115 program_suffix=$ac_optarg ;;
252b5132
RH
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1132 program_transform_name=$ac_optarg ;;
252b5132 1133
81ecdfbb
RW
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
252b5132
RH
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
42ecbf5e 1152 sbindir=$ac_optarg ;;
252b5132
RH
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
42ecbf5e 1163 sharedstatedir=$ac_optarg ;;
252b5132
RH
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
42ecbf5e 1168 site=$ac_optarg ;;
85fbca6a 1169
252b5132
RH
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1173 srcdir=$ac_optarg ;;
252b5132
RH
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1180 sysconfdir=$ac_optarg ;;
252b5132
RH
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1183 ac_prev=target_alias ;;
252b5132 1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1185 target_alias=$ac_optarg ;;
252b5132
RH
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
42ecbf5e
DJ
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
252b5132
RH
1192
1193 -with-* | --with-*)
81ecdfbb 1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1195 # Reject names that are not valid shell variable names.
81ecdfbb 1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1197 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
252b5132 1206 esac
81ecdfbb 1207 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1208
1209 -without-* | --without-*)
81ecdfbb 1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1211 # Reject names that are not valid shell variable names.
81ecdfbb 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1213 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
252b5132
RH
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1234 x_includes=$ac_optarg ;;
252b5132
RH
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1241 x_libraries=$ac_optarg ;;
252b5132 1242
d0ac1c44
SM
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
252b5132
RH
1245 ;;
1246
42ecbf5e
DJ
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1253 esac
1254 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1255 export $ac_envvar ;;
1256
252b5132 1257 *)
42ecbf5e 1258 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
42ecbf5e 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1270 as_fn_error $? "missing argument to $ac_option"
252b5132 1271fi
252b5132 1272
81ecdfbb
RW
1273if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
d0ac1c44 1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1278 esac
81ecdfbb 1279fi
252b5132 1280
81ecdfbb
RW
1281# Check all directory arguments for consistency.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
e0b2a78c 1285 libdir localedir mandir
252b5132 1286do
81ecdfbb
RW
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
42ecbf5e 1295 case $ac_val in
81ecdfbb
RW
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1298 esac
d0ac1c44 1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1300done
1301
42ecbf5e
DJ
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
42ecbf5e
DJ
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
e5a52504 1317
42ecbf5e
DJ
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
252b5132 1322
252b5132 1323
81ecdfbb
RW
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1327 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1329 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1330
1331
252b5132
RH
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
81ecdfbb
RW
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
252b5132 1359 srcdir=$ac_confdir
81ecdfbb 1360 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
81ecdfbb
RW
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
d0ac1c44 1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
252b5132 1390
42ecbf5e
DJ
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1b1bb2c6 1398\`configure' configures ld 2.34.50 to adapt to many kinds of systems.
252b5132 1399
42ecbf5e 1400Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1401
42ecbf5e
DJ
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1404
42ecbf5e 1405Defaults for the options are specified in brackets.
ac48eca1 1406
42ecbf5e
DJ
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
d0ac1c44 1412 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
42ecbf5e
DJ
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1420 [$ac_default_prefix]
42ecbf5e 1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1422 [PREFIX]
ac48eca1 1423
42ecbf5e
DJ
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
ac48eca1 1428
42ecbf5e 1429For better control, use the options below.
ac48eca1 1430
42ecbf5e 1431Fine tuning of the installation directories:
81ecdfbb
RW
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1446 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1451_ACEOF
ac48eca1 1452
42ecbf5e 1453 cat <<\_ACEOF
252b5132 1454
42ecbf5e
DJ
1455Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1459
42ecbf5e
DJ
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464_ACEOF
252b5132 1465fi
252b5132 1466
42ecbf5e 1467if test -n "$ac_init_help"; then
2e98a7bd 1468 case $ac_init_help in
1b1bb2c6 1469 short | recursive ) echo "Configuration of ld 2.34.50:";;
2e98a7bd 1470 esac
42ecbf5e 1471 cat <<\_ACEOF
e5a52504 1472
42ecbf5e 1473Optional Features:
81ecdfbb 1474 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful (and
1485 sometimes confusing) to the casual installer
b879806f
AM
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-plugins Enable support for plugins
1492 --disable-largefile omit support for large files
ce2cded5
L
1493 --enable-targets alternative target configurations
1494 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1495 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1496 --enable-got=<type> GOT handling scheme (target, single, negative,
1497 multigot)
4894d80b
L
1498 --enable-compressed-debug-sections={all,ld,none}
1499 compress debug sections by default]
6734f10a 1500 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1501 --enable-relro enable -z relro in ELF linker by default
b32632c4
L
1502 --enable-textrel-check=[yes|no|warning|error]
1503 enable DT_TEXTREL check in ELF linker
f6aec96d 1504 --enable-separate-code enable -z separate-code in ELF linker by default
2760f24c
RG
1505 --enable-default-hash-style={sysv,gnu,both}
1506 use this default hash style
ce2cded5
L
1507 --enable-werror treat compile warnings as errors
1508 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1509 --disable-nls do not use Native Language Support
26e3a0c9 1510 --disable-initfini-array do not use .init_array/.fini_array sections
42ecbf5e
DJ
1511
1512Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1518 --with-lib-path=dir1:dir2... set default LIB_PATH
1519 --with-sysroot=DIR Search for usr/lib et al within DIR.
1ff6de03 1520 --with-system-zlib use installed libz
42ecbf5e
DJ
1521
1522Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
81ecdfbb 1527 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1528 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1529 you have headers in a nonstandard directory <include dir>
3cb62297
L
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
b879806f 1532 CPP C preprocessor
3cb62297 1533 CXXCPP C++ preprocessor
d0ac1c44
SM
1534 YACC The `Yet Another Compiler Compiler' implementation to use.
1535 Defaults to the first program found out of: `bison -y', `byacc',
1536 `yacc'.
81ecdfbb
RW
1537 YFLAGS The list of arguments that will be passed by default to $YACC.
1538 This script will default YFLAGS to the empty string to avoid a
1539 default value of `-d' given by some make applications.
42ecbf5e
DJ
1540
1541Use these variables to override the choices made by `configure' or to help
1542it to find libraries and programs with nonstandard names/locations.
1543
81ecdfbb 1544Report bugs to the package provider.
42ecbf5e 1545_ACEOF
81ecdfbb 1546ac_status=$?
42ecbf5e
DJ
1547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
42ecbf5e 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
42ecbf5e
DJ
1555 ac_builddir=.
1556
81ecdfbb
RW
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1572
1573case $srcdir in
81ecdfbb 1574 .) # We are building in place.
42ecbf5e 1575 ac_srcdir=.
81ecdfbb
RW
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1579 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1586esac
81ecdfbb
RW
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1597 else
81ecdfbb
RW
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1601 done
a2d91340
AC
1602fi
1603
81ecdfbb 1604test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1605if $ac_init_version; then
1606 cat <<\_ACEOF
1b1bb2c6 1607ld configure 2.34.50
d0ac1c44 1608generated by GNU Autoconf 2.69
a2d91340 1609
d0ac1c44 1610Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1611This configure script is free software; the Free Software Foundation
1612gives unlimited permission to copy, distribute and modify it.
1613_ACEOF
81ecdfbb 1614 exit
42ecbf5e 1615fi
a2d91340 1616
81ecdfbb
RW
1617## ------------------------ ##
1618## Autoconf initialization. ##
1619## ------------------------ ##
a2d91340 1620
81ecdfbb
RW
1621# ac_fn_c_try_compile LINENO
1622# --------------------------
1623# Try to compile conftest.$ac_ext, and return whether this succeeded.
1624ac_fn_c_try_compile ()
1625{
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1629case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632esac
1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634$as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1647 ac_retval=0
1648else
1649 $as_echo "$as_me: failed program was:" >&5
1650sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1651
81ecdfbb
RW
1652 ac_retval=1
1653fi
d0ac1c44
SM
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
81ecdfbb
RW
1656
1657} # ac_fn_c_try_compile
1658
1659# ac_fn_c_try_link LINENO
1660# -----------------------
1661# Try to link conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_link ()
42ecbf5e 1663{
81ecdfbb
RW
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1667case "(($ac_try" in
1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1670esac
1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672$as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1674 ac_status=$?
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1679 fi
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
d0ac1c44 1686 test -x conftest$ac_exeext
81ecdfbb
RW
1687 }; then :
1688 ac_retval=0
1689else
1690 $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
42ecbf5e 1692
81ecdfbb
RW
1693 ac_retval=1
1694fi
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
42ecbf5e 1702
81ecdfbb 1703} # ac_fn_c_try_link
42ecbf5e 1704
b879806f
AM
1705# ac_fn_cxx_try_compile LINENO
1706# ----------------------------
1707# Try to compile conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_cxx_try_compile ()
81ecdfbb
RW
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1711 rm -f conftest.$ac_objext
1712 if { { ac_try="$ac_compile"
81ecdfbb
RW
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
b879806f 1719 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1727 test $ac_status = 0; } && {
1728 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1729 test ! -s conftest.err
b879806f 1730 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
b879806f 1736 ac_retval=1
81ecdfbb 1737fi
d0ac1c44
SM
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
81ecdfbb 1740
b879806f 1741} # ac_fn_cxx_try_compile
81ecdfbb 1742
b879806f
AM
1743# ac_fn_c_try_cpp LINENO
1744# ----------------------
1745# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_cpp ()
3cb62297
L
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1750case "(($ac_try" in
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
b879806f 1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1757 ac_status=$?
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1762 fi
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1764 test $ac_status = 0; } > conftest.i && {
b879806f 1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1766 test ! -s conftest.err
b879806f 1767 }; then :
3cb62297
L
1768 ac_retval=0
1769else
1770 $as_echo "$as_me: failed program was:" >&5
1771sed 's/^/| /' conftest.$ac_ext >&5
1772
b879806f 1773 ac_retval=1
3cb62297 1774fi
d0ac1c44
SM
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
3cb62297 1777
b879806f 1778} # ac_fn_c_try_cpp
3cb62297 1779
81ecdfbb
RW
1780# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1783# the include files in INCLUDES and setting the cache variable VAR
1784# accordingly.
1785ac_fn_c_check_header_mongrel ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1788 if eval \${$3+:} false; then :
81ecdfbb
RW
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1791if eval \${$3+:} false; then :
81ecdfbb
RW
1792 $as_echo_n "(cached) " >&6
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797else
1798 # Is the header compilable?
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1800$as_echo_n "checking $2 usability... " >&6; }
1801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h. */
1803$4
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807 ac_header_compiler=yes
1808else
1809 ac_header_compiler=no
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1813$as_echo "$ac_header_compiler" >&6; }
1814
1815# Is the header present?
1816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1817$as_echo_n "checking $2 presence... " >&6; }
1818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819/* end confdefs.h. */
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_cpp "$LINENO"; then :
1823 ac_header_preproc=yes
1824else
1825 ac_header_preproc=no
1826fi
d0ac1c44 1827rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1829$as_echo "$ac_header_preproc" >&6; }
1830
1831# So? What about this header?
1832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1833 yes:no: )
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1835$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ;;
1839 no:yes:* )
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1841$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1843$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1845$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1847$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850 ;;
1851esac
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1854if eval \${$3+:} false; then :
81ecdfbb
RW
1855 $as_echo_n "(cached) " >&6
1856else
1857 eval "$3=\$ac_header_compiler"
1858fi
1859eval ac_res=\$$3
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862fi
d0ac1c44 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1864
1865} # ac_fn_c_check_header_mongrel
1866
1867# ac_fn_c_try_run LINENO
1868# ----------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1870# that executables *can* be run.
1871ac_fn_c_try_run ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>&5
1882 ac_status=$?
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1885 { { case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_try") 2>&5
1892 ac_status=$?
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; }; }; then :
1895 ac_retval=0
1896else
1897 $as_echo "$as_me: program exited with status $ac_status" >&5
1898 $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=$ac_status
1902fi
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
81ecdfbb
RW
1906
1907} # ac_fn_c_try_run
1908
1909# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910# -------------------------------------------------------
1911# Tests whether HEADER exists and can be compiled using the include files in
1912# INCLUDES, setting the cache variable VAR accordingly.
1913ac_fn_c_check_header_compile ()
1914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1918if eval \${$3+:} false; then :
81ecdfbb
RW
1919 $as_echo_n "(cached) " >&6
1920else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922/* end confdefs.h. */
1923$4
1924#include <$2>
1925_ACEOF
1926if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$3=yes"
1928else
1929 eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
d0ac1c44 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1937
1938} # ac_fn_c_check_header_compile
1939
1940# ac_fn_c_check_func LINENO FUNC VAR
1941# ----------------------------------
1942# Tests whether FUNC exists, setting the cache variable VAR accordingly
1943ac_fn_c_check_func ()
1944{
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1948if eval \${$3+:} false; then :
81ecdfbb
RW
1949 $as_echo_n "(cached) " >&6
1950else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1955#define $2 innocuous_$2
1956
1957/* System header to define __stub macros and hopefully few prototypes,
1958 which can conflict with char $2 (); below.
1959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1960 <limits.h> exists even on freestanding compilers. */
1961
1962#ifdef __STDC__
1963# include <limits.h>
1964#else
1965# include <assert.h>
1966#endif
1967
1968#undef $2
1969
1970/* Override any GCC internal prototype to avoid an error.
1971 Use char because int might match the return type of a GCC
1972 builtin and then its argument prototype would still apply. */
1973#ifdef __cplusplus
1974extern "C"
1975#endif
1976char $2 ();
1977/* The GNU C library defines this for functions which it implements
1978 to always fail with ENOSYS. Some functions are actually named
1979 something starting with __ and the normal name is an alias. */
1980#if defined __stub_$2 || defined __stub___$2
1981choke me
1982#endif
1983
1984int
1985main ()
1986{
1987return $2 ();
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_link "$LINENO"; then :
1993 eval "$3=yes"
1994else
1995 eval "$3=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext \
1998 conftest$ac_exeext conftest.$ac_ext
1999fi
2000eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
d0ac1c44 2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2004
2005} # ac_fn_c_check_func
2006
3cb62297
L
2007# ac_fn_cxx_try_cpp LINENO
2008# ------------------------
2009# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2010ac_fn_cxx_try_cpp ()
2011{
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { { ac_try="$ac_cpp conftest.$ac_ext"
2014case "(($ac_try" in
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016 *) ac_try_echo=$ac_try;;
2017esac
2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019$as_echo "$ac_try_echo"; } >&5
2020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2021 ac_status=$?
2022 if test -s conftest.err; then
2023 grep -v '^ *+' conftest.err >conftest.er1
2024 cat conftest.er1 >&5
2025 mv -f conftest.er1 conftest.err
2026 fi
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2028 test $ac_status = 0; } > conftest.i && {
3cb62297
L
2029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2030 test ! -s conftest.err
2031 }; then :
2032 ac_retval=0
2033else
2034 $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1
2038fi
d0ac1c44
SM
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status $ac_retval
3cb62297
L
2041
2042} # ac_fn_cxx_try_cpp
2043
2044# ac_fn_cxx_try_link LINENO
2045# -------------------------
2046# Try to link conftest.$ac_ext, and return whether this succeeded.
2047ac_fn_cxx_try_link ()
2048{
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 rm -f conftest.$ac_objext conftest$ac_exeext
2051 if { { ac_try="$ac_link"
2052case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>conftest.err
2059 ac_status=$?
2060 if test -s conftest.err; then
2061 grep -v '^ *+' conftest.err >conftest.er1
2062 cat conftest.er1 >&5
2063 mv -f conftest.er1 conftest.err
2064 fi
2065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2066 test $ac_status = 0; } && {
2067 test -z "$ac_cxx_werror_flag" ||
2068 test ! -s conftest.err
2069 } && test -s conftest$ac_exeext && {
2070 test "$cross_compiling" = yes ||
d0ac1c44 2071 test -x conftest$ac_exeext
3cb62297
L
2072 }; then :
2073 ac_retval=0
2074else
2075 $as_echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=1
2079fi
2080 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2081 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2082 # interfere with the next link command; also delete a directory that is
2083 # left behind by Apple's compiler. We do this before executing the actions.
2084 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2085 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086 as_fn_set_status $ac_retval
3cb62297
L
2087
2088} # ac_fn_cxx_try_link
2089
d0ac1c44
SM
2090# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2091# ---------------------------------------------
2092# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2093# accordingly.
81ecdfbb
RW
2094ac_fn_c_check_decl ()
2095{
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2097 as_decl_name=`echo $2|sed 's/ *(.*//'`
2098 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2100$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2101if eval \${$3+:} false; then :
81ecdfbb
RW
2102 $as_echo_n "(cached) " >&6
2103else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h. */
2106$4
2107int
2108main ()
2109{
360cfc9c
AM
2110#ifndef $as_decl_name
2111#ifdef __cplusplus
2112 (void) $as_decl_use;
2113#else
2114 (void) $as_decl_name;
2115#endif
81ecdfbb
RW
2116#endif
2117
2118 ;
2119 return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
2123 eval "$3=yes"
2124else
2125 eval "$3=no"
2126fi
2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128fi
2129eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
d0ac1c44 2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2133
2134} # ac_fn_c_check_decl
2135
2136# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2137# --------------------------------------------
2138# Tries to find the compile-time value of EXPR in a program that includes
2139# INCLUDES, setting VAR accordingly. Returns whether the value could be
2140# computed
2141ac_fn_c_compute_int ()
2142{
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 if test "$cross_compiling" = yes; then
2145 # Depending upon the size, compute the lo and hi bounds.
2146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h. */
2148$4
2149int
2150main ()
2151{
2152static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
2153test_array [0] = 0;
2154return test_array [0];
81ecdfbb
RW
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161 ac_lo=0 ac_mid=0
2162 while :; do
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h. */
2165$4
2166int
2167main ()
2168{
2169static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2170test_array [0] = 0;
2171return test_array [0];
81ecdfbb
RW
2172
2173 ;
2174 return 0;
2175}
2176_ACEOF
2177if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=$ac_mid; break
2179else
2180 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2181 if test $ac_lo -le $ac_mid; then
2182 ac_lo= ac_hi=
2183 break
2184 fi
2185 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 done
2189else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h. */
2192$4
2193int
2194main ()
2195{
2196static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2197test_array [0] = 0;
2198return test_array [0];
81ecdfbb
RW
2199
2200 ;
2201 return 0;
2202}
2203_ACEOF
2204if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_hi=-1 ac_mid=-1
2206 while :; do
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208/* end confdefs.h. */
2209$4
2210int
2211main ()
2212{
2213static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2214test_array [0] = 0;
2215return test_array [0];
81ecdfbb
RW
2216
2217 ;
2218 return 0;
2219}
2220_ACEOF
2221if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_lo=$ac_mid; break
2223else
2224 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2225 if test $ac_mid -le $ac_hi; then
2226 ac_lo= ac_hi=
2227 break
2228 fi
2229 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233else
2234 ac_lo= ac_hi=
2235fi
2236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237fi
2238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239# Binary search between lo and hi bounds.
2240while test "x$ac_lo" != "x$ac_hi"; do
2241 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244$4
2245int
2246main ()
2247{
2248static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2249test_array [0] = 0;
2250return test_array [0];
81ecdfbb
RW
2251
2252 ;
2253 return 0;
2254}
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_hi=$ac_mid
2258else
2259 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2260fi
2261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262done
2263case $ac_lo in #((
2264?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2265'') ac_retval=1 ;;
2266esac
2267 else
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h. */
2270$4
2271static long int longval () { return $2; }
2272static unsigned long int ulongval () { return $2; }
2273#include <stdio.h>
2274#include <stdlib.h>
2275int
2276main ()
2277{
2278
2279 FILE *f = fopen ("conftest.val", "w");
2280 if (! f)
2281 return 1;
2282 if (($2) < 0)
2283 {
2284 long int i = longval ();
2285 if (i != ($2))
2286 return 1;
2287 fprintf (f, "%ld", i);
2288 }
2289 else
2290 {
2291 unsigned long int i = ulongval ();
2292 if (i != ($2))
2293 return 1;
2294 fprintf (f, "%lu", i);
2295 }
2296 /* Do not output a trailing newline, as this causes \r\n confusion
2297 on some platforms. */
2298 return ferror (f) || fclose (f) != 0;
2299
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304if ac_fn_c_try_run "$LINENO"; then :
2305 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2306else
2307 ac_retval=1
2308fi
2309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2310 conftest.$ac_objext conftest.beam conftest.$ac_ext
2311rm -f conftest.val
2312
2313 fi
d0ac1c44
SM
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
81ecdfbb
RW
2316
2317} # ac_fn_c_compute_int
2318cat >config.log <<_ACEOF
2319This file contains any messages produced by compilers while
2320running configure, to aid debugging if configure makes a mistake.
2321
1b1bb2c6 2322It was created by ld $as_me 2.34.50, which was
d0ac1c44 2323generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2324
2325 $ $0 $@
2326
2327_ACEOF
2328exec 5>>config.log
2329{
2330cat <<_ASUNAME
2331## --------- ##
2332## Platform. ##
2333## --------- ##
2334
2335hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339uname -v = `(uname -v) 2>/dev/null || echo unknown`
2340
2341/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2343
2344/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2348/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2351
2352_ASUNAME
2353
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2359 $as_echo "PATH: $as_dir"
2360 done
2361IFS=$as_save_IFS
252b5132 2362
42ecbf5e 2363} >&5
5d64ca4e 2364
42ecbf5e 2365cat >&5 <<_ACEOF
5d64ca4e 2366
5d64ca4e 2367
42ecbf5e
DJ
2368## ----------- ##
2369## Core tests. ##
2370## ----------- ##
5d64ca4e 2371
42ecbf5e 2372_ACEOF
2469cfa2 2373
42ecbf5e
DJ
2374
2375# Keep a trace of the command line.
2376# Strip out --no-create and --no-recursion so they do not pile up.
2377# Strip out --silent because we don't want to record it for future runs.
2378# Also quote any args containing shell meta-characters.
2379# Make two passes to allow for proper duplicate-argument suppression.
2380ac_configure_args=
2381ac_configure_args0=
2382ac_configure_args1=
42ecbf5e
DJ
2383ac_must_keep_next=false
2384for ac_pass in 1 2
2385do
2386 for ac_arg
2387 do
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
81ecdfbb
RW
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2395 esac
2396 case $ac_pass in
81ecdfbb 2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2398 2)
81ecdfbb 2399 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2411 ;;
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2414 fi
81ecdfbb 2415 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2416 ;;
2417 esac
2418 done
2419done
81ecdfbb
RW
2420{ ac_configure_args0=; unset ac_configure_args0;}
2421{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2422
2423# When interrupted or exit'd, cleanup temporary files, and complete
2424# config.log. We remove comments because anyway the quotes in there
2425# would cause problems or look ugly.
81ecdfbb
RW
2426# WARNING: Use '\'' to represent an apostrophe within the trap.
2427# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2428trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2430 {
2431 echo
2432
d0ac1c44 2433 $as_echo "## ---------------- ##
42ecbf5e 2434## Cache variables. ##
d0ac1c44 2435## ---------------- ##"
42ecbf5e
DJ
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2438(
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
42ecbf5e 2454 (set) 2>&1 |
81ecdfbb
RW
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
42ecbf5e 2457 sed -n \
81ecdfbb
RW
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
42ecbf5e 2461 *)
81ecdfbb 2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2463 ;;
81ecdfbb
RW
2464 esac |
2465 sort
2466)
42ecbf5e
DJ
2467 echo
2468
d0ac1c44 2469 $as_echo "## ----------------- ##
42ecbf5e 2470## Output variables. ##
d0ac1c44 2471## ----------------- ##"
42ecbf5e
DJ
2472 echo
2473 for ac_var in $ac_subst_vars
2474 do
81ecdfbb
RW
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2480 done | sort
2481 echo
2482
2483 if test -n "$ac_subst_files"; then
d0ac1c44 2484 $as_echo "## ------------------- ##
81ecdfbb 2485## File substitutions. ##
d0ac1c44 2486## ------------------- ##"
42ecbf5e
DJ
2487 echo
2488 for ac_var in $ac_subst_files
2489 do
81ecdfbb
RW
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2495 done | sort
2496 echo
2497 fi
2498
2499 if test -s confdefs.h; then
d0ac1c44 2500 $as_echo "## ----------- ##
42ecbf5e 2501## confdefs.h. ##
d0ac1c44 2502## ----------- ##"
42ecbf5e 2503 echo
81ecdfbb 2504 cat confdefs.h
42ecbf5e
DJ
2505 echo
2506 fi
2507 test "$ac_signal" != 0 &&
81ecdfbb
RW
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2510 } >&5
81ecdfbb
RW
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2513 exit $exit_status
81ecdfbb 2514' 0
42ecbf5e 2515for ac_signal in 1 2 13 15; do
81ecdfbb 2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2517done
2518ac_signal=0
2519
2520# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2521rm -f -r conftest* confdefs.h
2522
2523$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2524
2525# Predefined preprocessor variables.
2526
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_NAME "$PACKAGE_NAME"
2529_ACEOF
2530
42ecbf5e
DJ
2531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533_ACEOF
2534
42ecbf5e
DJ
2535cat >>confdefs.h <<_ACEOF
2536#define PACKAGE_VERSION "$PACKAGE_VERSION"
2537_ACEOF
2538
42ecbf5e
DJ
2539cat >>confdefs.h <<_ACEOF
2540#define PACKAGE_STRING "$PACKAGE_STRING"
2541_ACEOF
2542
42ecbf5e
DJ
2543cat >>confdefs.h <<_ACEOF
2544#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545_ACEOF
2546
81ecdfbb
RW
2547cat >>confdefs.h <<_ACEOF
2548#define PACKAGE_URL "$PACKAGE_URL"
2549_ACEOF
2550
42ecbf5e
DJ
2551
2552# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2553# Prefer an explicitly selected file to automatically selected ones.
2554ac_site_file1=NONE
2555ac_site_file2=NONE
2556if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
81ecdfbb
RW
2563elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2569fi
2570for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2571do
2572 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2576 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580as_fn_error $? "failed to load site script $ac_site_file
2581See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2582 fi
2583done
2584
2585if test -r "$cache_file"; then
d0ac1c44
SM
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2591 case $cache_file in
81ecdfbb
RW
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
42ecbf5e
DJ
2594 esac
2595 fi
2596else
81ecdfbb
RW
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2599 >$cache_file
2600fi
2601
d0ac1c44
SM
2602as_fn_append ac_header_list " stdlib.h"
2603as_fn_append ac_header_list " unistd.h"
2604as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2605# Check that the precious variables saved in the cache have kept the same
2606# value.
2607ac_cache_corrupted=false
81ecdfbb 2608for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2609 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2610 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2611 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2612 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2613 case $ac_old_set,$ac_new_set in
2614 set,)
81ecdfbb
RW
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2616$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2617 ac_cache_corrupted=: ;;
2618 ,set)
81ecdfbb
RW
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2620$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2621 ac_cache_corrupted=: ;;
2622 ,);;
2623 *)
2624 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2625 # differences in whitespace do not lead to failure.
2626 ac_old_val_w=`echo x $ac_old_val`
2627 ac_new_val_w=`echo x $ac_new_val`
2628 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2630$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2631 ac_cache_corrupted=:
2632 else
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2634$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2635 eval $ac_var=\$ac_old_val
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2638$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2640$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2641 fi;;
2642 esac
2643 # Pass precious variables to config.status.
2644 if test "$ac_new_set" = set; then
2645 case $ac_new_val in
81ecdfbb 2646 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2647 *) ac_arg=$ac_var=$ac_new_val ;;
2648 esac
2649 case " $ac_configure_args " in
2650 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2651 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2652 esac
2653 fi
2654done
2655if $ac_cache_corrupted; then
81ecdfbb
RW
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2659$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2660 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2661fi
81ecdfbb
RW
2662## -------------------- ##
2663## Main body of script. ##
2664## -------------------- ##
42ecbf5e
DJ
2665
2666ac_ext=c
2667ac_cpp='$CPP $CPPFLAGS'
2668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
2672
2673
42ecbf5e 2674
da594c4a 2675
42ecbf5e
DJ
2676
2677
2678ac_aux_dir=
81ecdfbb 2679for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2680 if test -f "$ac_dir/install-sh"; then
2681 ac_aux_dir=$ac_dir
2682 ac_install_sh="$ac_aux_dir/install-sh -c"
2683 break
2684 elif test -f "$ac_dir/install.sh"; then
2685 ac_aux_dir=$ac_dir
2686 ac_install_sh="$ac_aux_dir/install.sh -c"
2687 break
2688 elif test -f "$ac_dir/shtool"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/shtool install -c"
2691 break
2692 fi
42ecbf5e
DJ
2693done
2694if test -z "$ac_aux_dir"; then
d0ac1c44 2695 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2696fi
81ecdfbb
RW
2697
2698# These three variables are undocumented and unsupported,
2699# and are intended to be withdrawn in a future Autoconf release.
2700# They can cause serious problems if a builder's source tree is in a directory
2701# whose full name contains unusual characters.
2702ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2703ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2704ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2705
42ecbf5e
DJ
2706
2707# Make sure we can run config.sub.
81ecdfbb 2708$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2709 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2712$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2713if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2714 $as_echo_n "(cached) " >&6
2715else
2716 ac_build_alias=$build_alias
2717test "x$ac_build_alias" = x &&
2718 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2719test "x$ac_build_alias" = x &&
d0ac1c44 2720 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2721ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2722 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2723
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2726$as_echo "$ac_cv_build" >&6; }
2727case $ac_cv_build in
2728*-*-*) ;;
d0ac1c44 2729*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2730esac
42ecbf5e 2731build=$ac_cv_build
81ecdfbb
RW
2732ac_save_IFS=$IFS; IFS='-'
2733set x $ac_cv_build
2734shift
2735build_cpu=$1
2736build_vendor=$2
2737shift; shift
2738# Remember, the first character of IFS is used to create $*,
2739# except with old shells:
2740build_os=$*
2741IFS=$ac_save_IFS
2742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2743
2744
81ecdfbb
RW
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2746$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2747if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2748 $as_echo_n "(cached) " >&6
2749else
2750 if test "x$host_alias" = x; then
2751 ac_cv_host=$ac_cv_build
42ecbf5e 2752else
81ecdfbb 2753 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2754 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2755fi
42ecbf5e
DJ
2756
2757fi
81ecdfbb
RW
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2759$as_echo "$ac_cv_host" >&6; }
2760case $ac_cv_host in
2761*-*-*) ;;
d0ac1c44 2762*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2763esac
42ecbf5e 2764host=$ac_cv_host
81ecdfbb
RW
2765ac_save_IFS=$IFS; IFS='-'
2766set x $ac_cv_host
2767shift
2768host_cpu=$1
2769host_vendor=$2
2770shift; shift
2771# Remember, the first character of IFS is used to create $*,
2772# except with old shells:
2773host_os=$*
2774IFS=$ac_save_IFS
2775case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2776
2777
81ecdfbb
RW
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2779$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2780if ${ac_cv_target+:} false; then :
81ecdfbb 2781 $as_echo_n "(cached) " >&6
42ecbf5e 2782else
81ecdfbb
RW
2783 if test "x$target_alias" = x; then
2784 ac_cv_target=$ac_cv_host
2785else
2786 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2788fi
42ecbf5e
DJ
2789
2790fi
81ecdfbb
RW
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2792$as_echo "$ac_cv_target" >&6; }
2793case $ac_cv_target in
2794*-*-*) ;;
d0ac1c44 2795*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2796esac
42ecbf5e 2797target=$ac_cv_target
81ecdfbb
RW
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_target
2800shift
2801target_cpu=$1
2802target_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806target_os=$*
2807IFS=$ac_save_IFS
2808case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2809
2810
2811# The aliases save the names the user supplied, while $host etc.
2812# will get canonicalized.
2813test -n "$target_alias" &&
2814 test "$program_prefix$program_suffix$program_transform_name" = \
2815 NONENONEs,x,x, &&
2816 program_prefix=${target_alias}-
02ecc8e9 2817
d0ac1c44
SM
2818# Expand $ac_aux_dir to an absolute path.
2819am_aux_dir=`cd "$ac_aux_dir" && pwd`
2820
42ecbf5e
DJ
2821ac_ext=c
2822ac_cpp='$CPP $CPPFLAGS'
2823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2825ac_compiler_gnu=$ac_cv_c_compiler_gnu
2826if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2828set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2831if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2832 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2833else
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC="$CC" # Let the user override the test.
2836else
2837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838for as_dir in $PATH
2839do
2840 IFS=$as_save_IFS
2841 test -z "$as_dir" && as_dir=.
81ecdfbb 2842 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2846 break 2
2847 fi
2848done
81ecdfbb
RW
2849 done
2850IFS=$as_save_IFS
42ecbf5e
DJ
2851
2852fi
2853fi
2854CC=$ac_cv_prog_CC
2855if test -n "$CC"; then
81ecdfbb
RW
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857$as_echo "$CC" >&6; }
42ecbf5e 2858else
81ecdfbb
RW
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860$as_echo "no" >&6; }
42ecbf5e
DJ
2861fi
2862
81ecdfbb 2863
42ecbf5e
DJ
2864fi
2865if test -z "$ac_cv_prog_CC"; then
2866 ac_ct_CC=$CC
2867 # Extract the first word of "gcc", so it can be a program name with args.
2868set dummy gcc; ac_word=$2
81ecdfbb
RW
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2871if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2872 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2873else
2874 if test -n "$ac_ct_CC"; then
2875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
81ecdfbb 2882 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2884 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2886 break 2
2887 fi
2888done
81ecdfbb
RW
2889 done
2890IFS=$as_save_IFS
42ecbf5e
DJ
2891
2892fi
2893fi
2894ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 2898else
81ecdfbb
RW
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
42ecbf5e
DJ
2901fi
2902
81ecdfbb
RW
2903 if test "x$ac_ct_CC" = x; then
2904 CC=""
2905 else
2906 case $cross_compiling:$ac_tool_warned in
2907yes:)
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2910ac_tool_warned=yes ;;
2911esac
2912 CC=$ac_ct_CC
2913 fi
42ecbf5e
DJ
2914else
2915 CC="$ac_cv_prog_CC"
2916fi
2917
2918if test -z "$CC"; then
81ecdfbb
RW
2919 if test -n "$ac_tool_prefix"; then
2920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
42ecbf5e 2921set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2924if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2925 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2926else
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
81ecdfbb 2935 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 2937 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2939 break 2
2940 fi
2941done
81ecdfbb
RW
2942 done
2943IFS=$as_save_IFS
42ecbf5e
DJ
2944
2945fi
2946fi
2947CC=$ac_cv_prog_CC
2948if test -n "$CC"; then
81ecdfbb
RW
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950$as_echo "$CC" >&6; }
42ecbf5e 2951else
81ecdfbb
RW
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
42ecbf5e
DJ
2954fi
2955
42ecbf5e 2956
81ecdfbb 2957 fi
42ecbf5e
DJ
2958fi
2959if test -z "$CC"; then
2960 # Extract the first word of "cc", so it can be a program name with args.
2961set dummy cc; ac_word=$2
81ecdfbb
RW
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2964if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2965 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
2966else
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2969else
2970 ac_prog_rejected=no
2971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972for as_dir in $PATH
2973do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
81ecdfbb 2976 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e
DJ
2978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2979 ac_prog_rejected=yes
2980 continue
2981 fi
2982 ac_cv_prog_CC="cc"
81ecdfbb 2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
2984 break 2
2985 fi
2986done
81ecdfbb
RW
2987 done
2988IFS=$as_save_IFS
42ecbf5e
DJ
2989
2990if test $ac_prog_rejected = yes; then
2991 # We found a bogon in the path, so make sure we never use it.
2992 set dummy $ac_cv_prog_CC
2993 shift
2994 if test $# != 0; then
2995 # We chose a different compiler from the bogus one.
2996 # However, it has the same basename, so the bogon will be chosen
2997 # first if we set CC to just the basename; use the full file name.
2998 shift
2999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3000 fi
3001fi
3002fi
3003fi
3004CC=$ac_cv_prog_CC
3005if test -n "$CC"; then
81ecdfbb
RW
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3007$as_echo "$CC" >&6; }
42ecbf5e 3008else
81ecdfbb
RW
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010$as_echo "no" >&6; }
42ecbf5e
DJ
3011fi
3012
81ecdfbb 3013
42ecbf5e
DJ
3014fi
3015if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
81ecdfbb 3017 for ac_prog in cl.exe
42ecbf5e
DJ
3018 do
3019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3023if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3024 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3025else
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
81ecdfbb 3034 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3038 break 2
3039 fi
3040done
81ecdfbb
RW
3041 done
3042IFS=$as_save_IFS
42ecbf5e
DJ
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
81ecdfbb
RW
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049$as_echo "$CC" >&6; }
42ecbf5e 3050else
81ecdfbb
RW
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
42ecbf5e
DJ
3053fi
3054
81ecdfbb 3055
42ecbf5e
DJ
3056 test -n "$CC" && break
3057 done
3058fi
3059if test -z "$CC"; then
3060 ac_ct_CC=$CC
81ecdfbb 3061 for ac_prog in cl.exe
42ecbf5e
DJ
3062do
3063 # Extract the first word of "$ac_prog", so it can be a program name with args.
3064set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3067if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 3068 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3069else
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
81ecdfbb 3078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3080 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3082 break 2
3083 fi
3084done
81ecdfbb
RW
3085 done
3086IFS=$as_save_IFS
42ecbf5e
DJ
3087
3088fi
3089fi
3090ac_ct_CC=$ac_cv_prog_ac_ct_CC
3091if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3093$as_echo "$ac_ct_CC" >&6; }
42ecbf5e 3094else
81ecdfbb
RW
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
42ecbf5e
DJ
3097fi
3098
81ecdfbb 3099
42ecbf5e
DJ
3100 test -n "$ac_ct_CC" && break
3101done
3102
81ecdfbb
RW
3103 if test "x$ac_ct_CC" = x; then
3104 CC=""
3105 else
3106 case $cross_compiling:$ac_tool_warned in
3107yes:)
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3110ac_tool_warned=yes ;;
3111esac
3112 CC=$ac_ct_CC
3113 fi
42ecbf5e
DJ
3114fi
3115
3116fi
3117
3118
81ecdfbb
RW
3119test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3121as_fn_error $? "no acceptable C compiler found in \$PATH
3122See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
3123
3124# Provide some information about the compiler.
81ecdfbb
RW
3125$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3126set X $ac_compile
3127ac_compiler=$2
3128for ac_option in --version -v -V -qversion; do
3129 { { ac_try="$ac_compiler $ac_option >&5"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
3134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3135$as_echo "$ac_try_echo"; } >&5
3136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
42ecbf5e 3137 ac_status=$?
81ecdfbb
RW
3138 if test -s conftest.err; then
3139 sed '10a\
3140... rest of stderr output deleted ...
3141 10q' conftest.err >conftest.er1
3142 cat conftest.er1 >&5
81ecdfbb 3143 fi
d0ac1c44 3144 rm -f conftest.er1 conftest.err
81ecdfbb
RW
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }
3147done
42ecbf5e 3148
81ecdfbb 3149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3150/* end confdefs.h. */
3151
3152int
3153main ()
3154{
3155
3156 ;
3157 return 0;
3158}
3159_ACEOF
3160ac_clean_files_save=$ac_clean_files
d0ac1c44 3161ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
42ecbf5e
DJ
3162# Try to create an executable without -o first, disregard a.out.
3163# It will help us diagnose broken compilers, and finding out an intuition
3164# of exeext.
d0ac1c44
SM
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3166$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
3167ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3168
3169# The possible output files:
3170ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3171
3172ac_rmfiles=
3173for ac_file in $ac_files
3174do
3175 case $ac_file in
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3177 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178 esac
3179done
3180rm -f $ac_rmfiles
3181
3182if { { ac_try="$ac_link_default"
3183case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186esac
3187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188$as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_link_default") 2>&5
3190 ac_status=$?
3191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3192 test $ac_status = 0; }; then :
3193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3194# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3195# in a Makefile. We should not override ac_cv_exeext if it was cached,
3196# so that the user can short-circuit this test for compilers unknown to
3197# Autoconf.
3198for ac_file in $ac_files ''
42ecbf5e
DJ
3199do
3200 test -f "$ac_file" || continue
3201 case $ac_file in
81ecdfbb 3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
42ecbf5e
DJ
3203 ;;
3204 [ab].out )
3205 # We found the default executable, but exeext='' is most
3206 # certainly right.
3207 break;;
3208 *.* )
81ecdfbb
RW
3209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3210 then :; else
3211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212 fi
3213 # We set ac_cv_exeext here because the later test for it is not
3214 # safe: cross compilers may not add the suffix if given an `-o'
3215 # argument, so we may need to know it at that point already.
3216 # Even if this section looks crufty: it has the advantage of
3217 # actually working.
42ecbf5e
DJ
3218 break;;
3219 * )
3220 break;;
3221 esac
3222done
81ecdfbb
RW
3223test "$ac_cv_exeext" = no && ac_cv_exeext=
3224
42ecbf5e 3225else
81ecdfbb
RW
3226 ac_file=''
3227fi
81ecdfbb 3228if test -z "$ac_file"; then :
d0ac1c44
SM
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
3231$as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
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;}
d0ac1c44
SM
3236as_fn_error 77 "C compiler cannot create executables
3237See \`config.log' for more details" "$LINENO" 5; }
3238else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
42ecbf5e 3241fi
d0ac1c44
SM
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3243$as_echo_n "checking for C compiler default output file name... " >&6; }
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3245$as_echo "$ac_file" >&6; }
42ecbf5e 3246ac_exeext=$ac_cv_exeext
42ecbf5e 3247
d0ac1c44 3248rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
42ecbf5e 3249ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3251$as_echo_n "checking for suffix of executables... " >&6; }
3252if { { ac_try="$ac_link"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link") 2>&5
42ecbf5e 3260 ac_status=$?
81ecdfbb
RW
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
42ecbf5e
DJ
3263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3264# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3265# work properly (i.e., refer to `conftest.exe'), while it won't with
3266# `rm'.
3267for ac_file in conftest.exe conftest conftest.*; do
3268 test -f "$ac_file" || continue
3269 case $ac_file in
81ecdfbb 3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
42ecbf5e 3271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
42ecbf5e
DJ
3272 break;;
3273 * ) break;;
3274 esac
3275done
3276else
81ecdfbb
RW
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3279as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3280See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e 3281fi
d0ac1c44 3282rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3284$as_echo "$ac_cv_exeext" >&6; }
42ecbf5e
DJ
3285
3286rm -f conftest.$ac_ext
3287EXEEXT=$ac_cv_exeext
3288ac_exeext=$EXEEXT
d0ac1c44
SM
3289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290/* end confdefs.h. */
3291#include <stdio.h>
3292int
3293main ()
3294{
3295FILE *f = fopen ("conftest.out", "w");
3296 return ferror (f) || fclose (f) != 0;
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302ac_clean_files="$ac_clean_files conftest.out"
3303# Check that the compiler produces executables we can run. If not, either
3304# the compiler is broken, or we cross compile.
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3306$as_echo_n "checking whether we are cross compiling... " >&6; }
3307if test "$cross_compiling" != yes; then
3308 { { ac_try="$ac_link"
3309case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314$as_echo "$ac_try_echo"; } >&5
3315 (eval "$ac_link") 2>&5
3316 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }
3319 if { ac_try='./conftest$ac_cv_exeext'
3320 { { case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_try") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; }; then
3330 cross_compiling=no
3331 else
3332 if test "$cross_compiling" = maybe; then
3333 cross_compiling=yes
3334 else
3335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337as_fn_error $? "cannot run C compiled programs.
3338If you meant to cross compile, use \`--host'.
3339See \`config.log' for more details" "$LINENO" 5; }
3340 fi
3341 fi
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3344$as_echo "$cross_compiling" >&6; }
3345
3346rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3347ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3349$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3350if ${ac_cv_objext+:} false; then :
81ecdfbb 3351 $as_echo_n "(cached) " >&6
42ecbf5e 3352else
81ecdfbb 3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3354/* end confdefs.h. */
3355
3356int
3357main ()
3358{
3359
3360 ;
3361 return 0;
3362}
3363_ACEOF
3364rm -f conftest.o conftest.obj
81ecdfbb
RW
3365if { { ac_try="$ac_compile"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371$as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_compile") 2>&5
3373 ac_status=$?
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
3376 for ac_file in conftest.o conftest.obj conftest.*; do
3377 test -f "$ac_file" || continue;
42ecbf5e 3378 case $ac_file in
81ecdfbb 3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
42ecbf5e
DJ
3380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381 break;;
3382 esac
3383done
3384else
81ecdfbb 3385 $as_echo "$as_me: failed program was:" >&5
42ecbf5e
DJ
3386sed 's/^/| /' conftest.$ac_ext >&5
3387
81ecdfbb
RW
3388{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3390as_fn_error $? "cannot compute suffix of object files: cannot compile
3391See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e 3392fi
42ecbf5e
DJ
3393rm -f conftest.$ac_cv_objext conftest.$ac_ext
3394fi
81ecdfbb
RW
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3396$as_echo "$ac_cv_objext" >&6; }
42ecbf5e
DJ
3397OBJEXT=$ac_cv_objext
3398ac_objext=$OBJEXT
81ecdfbb
RW
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3400$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3401if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3402 $as_echo_n "(cached) " >&6
42ecbf5e 3403else
81ecdfbb 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3405/* end confdefs.h. */
3406
3407int
3408main ()
3409{
3410#ifndef __GNUC__
3411 choke me
3412#endif
3413
3414 ;
3415 return 0;
3416}
3417_ACEOF
81ecdfbb 3418if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3419 ac_compiler_gnu=yes
3420else
81ecdfbb 3421 ac_compiler_gnu=no
42ecbf5e 3422fi
81ecdfbb 3423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e
DJ
3424ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425
3426fi
81ecdfbb
RW
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3428$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3429if test $ac_compiler_gnu = yes; then
3430 GCC=yes
3431else
3432 GCC=
3433fi
42ecbf5e
DJ
3434ac_test_CFLAGS=${CFLAGS+set}
3435ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3437$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3438if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3439 $as_echo_n "(cached) " >&6
3440else
3441 ac_save_c_werror_flag=$ac_c_werror_flag
3442 ac_c_werror_flag=yes
3443 ac_cv_prog_cc_g=no
3444 CFLAGS="-g"
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3446/* end confdefs.h. */
3447
3448int
3449main ()
3450{
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
81ecdfbb 3456if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
3457 ac_cv_prog_cc_g=yes
3458else
81ecdfbb
RW
3459 CFLAGS=""
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461/* end confdefs.h. */
3462
3463int
3464main ()
3465{
3466
3467 ;
3468 return 0;
3469}
3470_ACEOF
3471if ac_fn_c_try_compile "$LINENO"; then :
3472
3473else
3474 ac_c_werror_flag=$ac_save_c_werror_flag
3475 CFLAGS="-g"
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
3478
3479int
3480main ()
3481{
42ecbf5e 3482
81ecdfbb
RW
3483 ;
3484 return 0;
3485}
3486_ACEOF
3487if ac_fn_c_try_compile "$LINENO"; then :
3488 ac_cv_prog_cc_g=yes
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491fi
3492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 3493fi
81ecdfbb
RW
3494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 ac_c_werror_flag=$ac_save_c_werror_flag
42ecbf5e 3496fi
81ecdfbb
RW
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3498$as_echo "$ac_cv_prog_cc_g" >&6; }
42ecbf5e
DJ
3499if test "$ac_test_CFLAGS" = set; then
3500 CFLAGS=$ac_save_CFLAGS
3501elif test $ac_cv_prog_cc_g = yes; then
3502 if test "$GCC" = yes; then
3503 CFLAGS="-g -O2"
3504 else
3505 CFLAGS="-g"
3506 fi
3507else
3508 if test "$GCC" = yes; then
3509 CFLAGS="-O2"
3510 else
3511 CFLAGS=
3512 fi
3513fi
81ecdfbb
RW
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3515$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3516if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3517 $as_echo_n "(cached) " >&6
42ecbf5e 3518else
81ecdfbb 3519 ac_cv_prog_cc_c89=no
42ecbf5e 3520ac_save_CC=$CC
81ecdfbb 3521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3522/* end confdefs.h. */
3523#include <stdarg.h>
3524#include <stdio.h>
d0ac1c44 3525struct stat;
42ecbf5e
DJ
3526/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3527struct buf { int x; };
3528FILE * (*rcsopen) (struct buf *, struct stat *, int);
3529static char *e (p, i)
3530 char **p;
3531 int i;
3532{
3533 return p[i];
3534}
3535static char *f (char * (*g) (char **, int), char **p, ...)
3536{
3537 char *s;
3538 va_list v;
3539 va_start (v,p);
3540 s = g (p, va_arg (v,int));
3541 va_end (v);
3542 return s;
3543}
3544
3545/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3546 function prototypes and stuff, but not '\xHH' hex character constants.
3547 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3548 as 'x'. The following induces an error, until -std is added to get
42ecbf5e
DJ
3549 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3550 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3551 that's true only with -std. */
42ecbf5e
DJ
3552int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3553
81ecdfbb
RW
3554/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3555 inside strings and character constants. */
3556#define FOO(x) 'x'
3557int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3558
42ecbf5e
DJ
3559int test (int i, double x);
3560struct s1 {int (*f) (int a);};
3561struct s2 {int (*f) (double a);};
3562int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3563int argc;
3564char **argv;
3565int
3566main ()
3567{
3568return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3569 ;
3570 return 0;
3571}
3572_ACEOF
81ecdfbb
RW
3573for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3574 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
42ecbf5e
DJ
3575do
3576 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3577 if ac_fn_c_try_compile "$LINENO"; then :
3578 ac_cv_prog_cc_c89=$ac_arg
42ecbf5e 3579fi
81ecdfbb
RW
3580rm -f core conftest.err conftest.$ac_objext
3581 test "x$ac_cv_prog_cc_c89" != "xno" && break
42ecbf5e 3582done
81ecdfbb 3583rm -f conftest.$ac_ext
42ecbf5e
DJ
3584CC=$ac_save_CC
3585
3586fi
81ecdfbb
RW
3587# AC_CACHE_VAL
3588case "x$ac_cv_prog_cc_c89" in
3589 x)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3591$as_echo "none needed" >&6; } ;;
3592 xno)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3594$as_echo "unsupported" >&6; } ;;
42ecbf5e 3595 *)
81ecdfbb
RW
3596 CC="$CC $ac_cv_prog_cc_c89"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3598$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
42ecbf5e 3599esac
81ecdfbb 3600if test "x$ac_cv_prog_cc_c89" != xno; then :
42ecbf5e 3601
42ecbf5e
DJ
3602fi
3603
42ecbf5e
DJ
3604ac_ext=c
3605ac_cpp='$CPP $CPPFLAGS'
3606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609
d0ac1c44
SM
3610ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3616$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3617if ${am_cv_prog_cc_c_o+:} false; then :
3618 $as_echo_n "(cached) " >&6
3619else
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621/* end confdefs.h. */
3622
3623int
3624main ()
3625{
3626
3627 ;
3628 return 0;
3629}
3630_ACEOF
3631 # Make sure it works both with $CC and with simple cc.
3632 # Following AC_PROG_CC_C_O, we do the test twice because some
3633 # compilers refuse to overwrite an existing .o file with -o,
3634 # though they will create one.
3635 am_cv_prog_cc_c_o=yes
3636 for am_i in 1 2; do
3637 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3638 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } \
3642 && test -f conftest2.$ac_objext; then
3643 : OK
3644 else
3645 am_cv_prog_cc_c_o=no
3646 break
3647 fi
3648 done
3649 rm -f core conftest*
3650 unset am_i
3651fi
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3653$as_echo "$am_cv_prog_cc_c_o" >&6; }
3654if test "$am_cv_prog_cc_c_o" != yes; then
3655 # Losing compiler, so override with the script.
3656 # FIXME: It is wrong to rewrite CC.
3657 # But if we don't then we get into trouble of one sort or another.
3658 # A longer-term fix would be to have automake use am__CC in this case,
3659 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3660 CC="$am_aux_dir/compile $CC"
3661fi
3662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667
3668
42ecbf5e 3669
81ecdfbb
RW
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3671$as_echo_n "checking for library containing strerror... " >&6; }
d0ac1c44 3672if ${ac_cv_search_strerror+:} false; then :
81ecdfbb 3673 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3674else
3675 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
3677/* end confdefs.h. */
3678
81ecdfbb
RW
3679/* Override any GCC internal prototype to avoid an error.
3680 Use char because int might match the return type of a GCC
3681 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
3682#ifdef __cplusplus
3683extern "C"
3684#endif
42ecbf5e
DJ
3685char strerror ();
3686int
3687main ()
3688{
81ecdfbb 3689return strerror ();
42ecbf5e
DJ
3690 ;
3691 return 0;
3692}
3693_ACEOF
81ecdfbb
RW
3694for ac_lib in '' cposix; do
3695 if test -z "$ac_lib"; then
3696 ac_res="none required"
3697 else
3698 ac_res=-l$ac_lib
42ecbf5e 3699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3700 fi
3701 if ac_fn_c_try_link "$LINENO"; then :
3702 ac_cv_search_strerror=$ac_res
3703fi
3704rm -f core conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext
d0ac1c44 3706 if ${ac_cv_search_strerror+:} false; then :
81ecdfbb
RW
3707 break
3708fi
3709done
d0ac1c44 3710if ${ac_cv_search_strerror+:} false; then :
42ecbf5e 3711
42ecbf5e 3712else
81ecdfbb 3713 ac_cv_search_strerror=no
42ecbf5e 3714fi
81ecdfbb 3715rm conftest.$ac_ext
42ecbf5e
DJ
3716LIBS=$ac_func_search_save_LIBS
3717fi
81ecdfbb
RW
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3719$as_echo "$ac_cv_search_strerror" >&6; }
3720ac_res=$ac_cv_search_strerror
3721if test "$ac_res" != no; then :
3722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e
DJ
3723
3724fi
e5a52504
MM
3725
3726
d0ac1c44 3727am__api_version='1.15'
81ecdfbb 3728
e5a52504
MM
3729# Find a good install program. We prefer a C program (faster),
3730# so one script is as good as another. But avoid the broken or
3731# incompatible versions:
3732# SysV /etc/install, /usr/sbin/install
3733# SunOS /usr/etc/install
3734# IRIX /sbin/install
3735# AIX /bin/install
42ecbf5e 3736# AmigaOS /C/install, which installs bootblocks on floppy discs
e5a52504
MM
3737# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3738# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3739# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 3740# OS/2's system install, which has a completely different semantic
e5a52504 3741# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3742# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3744$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5a52504 3745if test -z "$INSTALL"; then
d0ac1c44 3746if ${ac_cv_path_install+:} false; then :
81ecdfbb 3747 $as_echo_n "(cached) " >&6
e5a52504 3748else
42ecbf5e
DJ
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3754 # Account for people who put trailing slashes in PATH elements.
3755case $as_dir/ in #((
3756 ./ | .// | /[cC]/* | \
42ecbf5e 3757 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3758 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
42ecbf5e
DJ
3759 /usr/ucb/* ) ;;
3760 *)
3761 # OSF1 and SCO ODT 3.0 have their own names for install.
3762 # Don't use installbsd from OSF since it installs stuff as root
3763 # by default.
3764 for ac_prog in ginstall scoinst install; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3766 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 3767 if test $ac_prog = install &&
42ecbf5e 3768 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
3769 # AIX install. It has an incompatible calling convention.
3770 :
42ecbf5e
DJ
3771 elif test $ac_prog = install &&
3772 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3773 # program-specific install script used by HP pwplus--don't use.
3774 :
252b5132 3775 else
58c85be7
RW
3776 rm -rf conftest.one conftest.two conftest.dir
3777 echo one > conftest.one
3778 echo two > conftest.two
3779 mkdir conftest.dir
3780 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3781 test -s conftest.one && test -s conftest.two &&
3782 test -s conftest.dir/conftest.one &&
3783 test -s conftest.dir/conftest.two
3784 then
3785 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3786 break 3
3787 fi
252b5132
RH
3788 fi
3789 fi
3790 done
42ecbf5e
DJ
3791 done
3792 ;;
3793esac
81ecdfbb
RW
3794
3795 done
3796IFS=$as_save_IFS
42ecbf5e 3797
58c85be7 3798rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3799
3800fi
3801 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 3802 INSTALL=$ac_cv_path_install
252b5132 3803 else
58c85be7
RW
3804 # As a last resort, use the slow shell script. Don't cache a
3805 # value for INSTALL within a source directory, because that will
252b5132 3806 # break other packages using the cache if that directory is
58c85be7 3807 # removed, or if the value is a relative name.
42ecbf5e 3808 INSTALL=$ac_install_sh
252b5132
RH
3809 fi
3810fi
81ecdfbb
RW
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3812$as_echo "$INSTALL" >&6; }
252b5132
RH
3813
3814# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3815# It thinks the first close brace ends the variable substitution.
3816test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3817
42ecbf5e 3818test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3819
3820test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3821
81ecdfbb
RW
3822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3823$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
3824# Reject unsafe characters in $srcdir or the absolute working directory
3825# name. Accept space and tab only in the latter.
3826am_lf='
3827'
3828case `pwd` in
3829 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 3830 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
3831esac
3832case $srcdir in
3833 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 3834 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
3835esac
3836
d0ac1c44 3837# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
3838# arguments. Must try -L first in case configure is actually a
3839# symlink; some systems play weird games with the mod time of symlinks
3840# (eg FreeBSD returns the mod time of the symlink's containing
3841# directory).
3842if (
d0ac1c44
SM
3843 am_has_slept=no
3844 for am_try in 1 2; do
3845 echo "timestamp, slept: $am_has_slept" > conftest.file
3846 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3847 if test "$*" = "X"; then
3848 # -L didn't work.
3849 set X `ls -t "$srcdir/configure" conftest.file`
3850 fi
3851 if test "$*" != "X $srcdir/configure conftest.file" \
3852 && test "$*" != "X conftest.file $srcdir/configure"; then
3853
3854 # If neither matched, then we have a broken ls. This can happen
3855 # if, for instance, CONFIG_SHELL is bash and it inherits a
3856 # broken ls alias from the environment. This has actually
3857 # happened. Such a system could not be considered "sane".
3858 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3859 alias in your environment" "$LINENO" 5
3860 fi
3861 if test "$2" = conftest.file || test $am_try -eq 2; then
3862 break
3863 fi
3864 # Just in case.
3865 sleep 1
3866 am_has_slept=yes
3867 done
42ecbf5e 3868 test "$2" = conftest.file
252b5132
RH
3869 )
3870then
3871 # Ok.
3872 :
3873else
d0ac1c44 3874 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3875Check your system clock" "$LINENO" 5
252b5132 3876fi
81ecdfbb
RW
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3878$as_echo "yes" >&6; }
d0ac1c44
SM
3879# If we didn't sleep, we still need to ensure time stamps of config.status and
3880# generated files are strictly newer.
3881am_sleep_pid=
3882if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3883 ( sleep 1 ) &
3884 am_sleep_pid=$!
3885fi
3886
3887rm -f conftest.file
3888
252b5132 3889test "$program_prefix" != NONE &&
81ecdfbb 3890 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3891# Use a double $ so make ignores it.
3892test "$program_suffix" != NONE &&
81ecdfbb
RW
3893 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3894# Double any \ or $.
42ecbf5e 3895# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3896ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3897program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 3898
81ecdfbb
RW
3899if test x"${MISSING+set}" != xset; then
3900 case $am_aux_dir in
3901 *\ * | *\ *)
3902 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3903 *)
3904 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3905 esac
3906fi
42ecbf5e 3907# Use eval to expand $SHELL
d0ac1c44
SM
3908if eval "$MISSING --is-lightweight"; then
3909 am_missing_run="$MISSING "
42ecbf5e
DJ
3910else
3911 am_missing_run=
d0ac1c44
SM
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3913$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3914fi
3915
d0ac1c44 3916if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3917 case $am_aux_dir in
3918 *\ * | *\ *)
3919 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3920 *)
3921 install_sh="\${SHELL} $am_aux_dir/install-sh"
3922 esac
3923fi
3924
d0ac1c44
SM
3925# Installed binaries are usually stripped using 'strip' when the user
3926# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3927# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3928# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3929if test "$cross_compiling" != no; then
3930 if test -n "$ac_tool_prefix"; then
3931 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3932set dummy ${ac_tool_prefix}strip; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3935if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$STRIP"; then
3939 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3948 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953 done
3954IFS=$as_save_IFS
3955
3956fi
3957fi
3958STRIP=$ac_cv_prog_STRIP
3959if test -n "$STRIP"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3961$as_echo "$STRIP" >&6; }
3962else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
3966
3967
3968fi
3969if test -z "$ac_cv_prog_STRIP"; then
3970 ac_ct_STRIP=$STRIP
3971 # Extract the first word of "strip", so it can be a program name with args.
3972set dummy strip; ac_word=$2
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3975if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3976 $as_echo_n "(cached) " >&6
3977else
3978 if test -n "$ac_ct_STRIP"; then
3979 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3988 ac_cv_prog_ac_ct_STRIP="strip"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992done
3993 done
3994IFS=$as_save_IFS
3995
3996fi
3997fi
3998ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3999if test -n "$ac_ct_STRIP"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4001$as_echo "$ac_ct_STRIP" >&6; }
4002else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
4005fi
4006
4007 if test "x$ac_ct_STRIP" = x; then
4008 STRIP=":"
4009 else
4010 case $cross_compiling:$ac_tool_warned in
4011yes:)
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4014ac_tool_warned=yes ;;
4015esac
4016 STRIP=$ac_ct_STRIP
4017 fi
4018else
4019 STRIP="$ac_cv_prog_STRIP"
4020fi
4021
4022fi
4023INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4026$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4027if test -z "$MKDIR_P"; then
d0ac1c44 4028 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
4029 $as_echo_n "(cached) " >&6
4030else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_prog in mkdir gmkdir; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4038 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
4039 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4040 'mkdir (GNU coreutils) '* | \
4041 'mkdir (coreutils) '* | \
4042 'mkdir (fileutils) '4.1*)
4043 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4044 break 3;;
4045 esac
4046 done
4047 done
42ecbf5e 4048 done
81ecdfbb
RW
4049IFS=$as_save_IFS
4050
4051fi
4052
d0ac1c44 4053 test -d ./--version && rmdir ./--version
81ecdfbb
RW
4054 if test "${ac_cv_path_mkdir+set}" = set; then
4055 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 4056 else
81ecdfbb
RW
4057 # As a last resort, use the slow shell script. Don't cache a
4058 # value for MKDIR_P within a source directory, because that will
4059 # break other packages using the cache if that directory is
4060 # removed, or if the value is a relative name.
81ecdfbb 4061 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
4062 fi
4063fi
81ecdfbb
RW
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4065$as_echo "$MKDIR_P" >&6; }
4066
42ecbf5e
DJ
4067for ac_prog in gawk mawk nawk awk
4068do
4069 # Extract the first word of "$ac_prog", so it can be a program name with args.
4070set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4073if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 4074 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4075else
4076 if test -n "$AWK"; then
4077 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4078else
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
81ecdfbb 4084 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 4086 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
4088 break 2
4089 fi
4090done
81ecdfbb
RW
4091 done
4092IFS=$as_save_IFS
42ecbf5e
DJ
4093
4094fi
4095fi
4096AWK=$ac_cv_prog_AWK
4097if test -n "$AWK"; then
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4099$as_echo "$AWK" >&6; }
42ecbf5e 4100else
81ecdfbb
RW
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
42ecbf5e 4103fi
252b5132 4104
81ecdfbb 4105
42ecbf5e
DJ
4106 test -n "$AWK" && break
4107done
252b5132 4108
81ecdfbb
RW
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4110$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4111set x ${MAKE-make}
4112ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 4113if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 4114 $as_echo_n "(cached) " >&6
252b5132 4115else
42ecbf5e 4116 cat >conftest.make <<\_ACEOF
81ecdfbb 4117SHELL = /bin/sh
252b5132 4118all:
81ecdfbb 4119 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 4120_ACEOF
d0ac1c44 4121# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
4122case `${MAKE-make} -f conftest.make 2>/dev/null` in
4123 *@@@%%%=?*=@@@%%%*)
4124 eval ac_cv_prog_make_${ac_make}_set=yes;;
4125 *)
4126 eval ac_cv_prog_make_${ac_make}_set=no;;
4127esac
42ecbf5e 4128rm -f conftest.make
252b5132 4129fi
81ecdfbb
RW
4130if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4132$as_echo "yes" >&6; }
252b5132
RH
4133 SET_MAKE=
4134else
81ecdfbb
RW
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
252b5132
RH
4137 SET_MAKE="MAKE=${MAKE-make}"
4138fi
4139
42ecbf5e
DJ
4140rm -rf .tst 2>/dev/null
4141mkdir .tst 2>/dev/null
4142if test -d .tst; then
4143 am__leading_dot=.
4144else
4145 am__leading_dot=_
4146fi
4147rmdir .tst 2>/dev/null
4148
4149DEPDIR="${am__leading_dot}deps"
4150
81ecdfbb 4151ac_config_commands="$ac_config_commands depfiles"
42ecbf5e
DJ
4152
4153
4154am_make=${MAKE-make}
4155cat > confinc << 'END'
4156am__doit:
81ecdfbb 4157 @echo this is the am__doit target
42ecbf5e
DJ
4158.PHONY: am__doit
4159END
4160# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4162$as_echo_n "checking for style of include used by $am_make... " >&6; }
42ecbf5e
DJ
4163am__include="#"
4164am__quote=
4165_am_result=none
4166# First try GNU make style include.
4167echo "include confinc" > confmf
d0ac1c44 4168# Ignore all kinds of additional output from 'make'.
81ecdfbb
RW
4169case `$am_make -s -f confmf 2> /dev/null` in #(
4170*the\ am__doit\ target*)
4171 am__include=include
4172 am__quote=
4173 _am_result=GNU
4174 ;;
4175esac
42ecbf5e
DJ
4176# Now try BSD make style include.
4177if test "$am__include" = "#"; then
4178 echo '.include "confinc"' > confmf
81ecdfbb
RW
4179 case `$am_make -s -f confmf 2> /dev/null` in #(
4180 *the\ am__doit\ target*)
4181 am__include=.include
4182 am__quote="\""
4183 _am_result=BSD
4184 ;;
4185 esac
42ecbf5e
DJ
4186fi
4187
4188
81ecdfbb
RW
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4190$as_echo "$_am_result" >&6; }
42ecbf5e
DJ
4191rm -f confinc confmf
4192
81ecdfbb
RW
4193# Check whether --enable-dependency-tracking was given.
4194if test "${enable_dependency_tracking+set}" = set; then :
4195 enableval=$enable_dependency_tracking;
4196fi
42ecbf5e 4197
42ecbf5e
DJ
4198if test "x$enable_dependency_tracking" != xno; then
4199 am_depcomp="$ac_aux_dir/depcomp"
4200 AMDEPBACKSLASH='\'
6eb7d830 4201 am__nodep='_no'
42ecbf5e 4202fi
81ecdfbb 4203 if test "x$enable_dependency_tracking" != xno; then
42ecbf5e
DJ
4204 AMDEP_TRUE=
4205 AMDEP_FALSE='#'
4206else
4207 AMDEP_TRUE='#'
4208 AMDEP_FALSE=
4209fi
4210
e5a52504 4211
d0ac1c44
SM
4212# Check whether --enable-silent-rules was given.
4213if test "${enable_silent_rules+set}" = set; then :
4214 enableval=$enable_silent_rules;
4215fi
4216
4217case $enable_silent_rules in # (((
4218 yes) AM_DEFAULT_VERBOSITY=0;;
4219 no) AM_DEFAULT_VERBOSITY=1;;
4220 *) AM_DEFAULT_VERBOSITY=1;;
4221esac
4222am_make=${MAKE-make}
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4224$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4225if ${am_cv_make_support_nested_variables+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if $as_echo 'TRUE=$(BAR$(V))
4229BAR0=false
4230BAR1=true
4231V=1
4232am__doit:
4233 @$(TRUE)
4234.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4235 am_cv_make_support_nested_variables=yes
4236else
4237 am_cv_make_support_nested_variables=no
4238fi
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4241$as_echo "$am_cv_make_support_nested_variables" >&6; }
4242if test $am_cv_make_support_nested_variables = yes; then
4243 AM_V='$(V)'
4244 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4245else
4246 AM_V=$AM_DEFAULT_VERBOSITY
4247 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4248fi
4249AM_BACKSLASH='\'
4250
81ecdfbb
RW
4251if test "`cd $srcdir && pwd`" != "`pwd`"; then
4252 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4253 # is not polluted with repeated "-I."
4254 am__isrc=' -I$(srcdir)'
4255 # test to see if srcdir already configured
4256 if test -f $srcdir/config.status; then
d0ac1c44 4257 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 4258 fi
42ecbf5e 4259fi
252b5132 4260
42ecbf5e
DJ
4261# test whether we have cygpath
4262if test -z "$CYGPATH_W"; then
4263 if (cygpath --version) >/dev/null 2>/dev/null; then
4264 CYGPATH_W='cygpath -w'
4265 else
4266 CYGPATH_W=echo
4267 fi
252b5132 4268fi
42ecbf5e
DJ
4269
4270
4271# Define the identity of the package.
2e98a7bd 4272 PACKAGE='ld'
1b1bb2c6 4273 VERSION='2.34.50'
42ecbf5e
DJ
4274
4275
4276cat >>confdefs.h <<_ACEOF
e5a52504 4277#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
4278_ACEOF
4279
252b5132 4280
42ecbf5e 4281cat >>confdefs.h <<_ACEOF
e5a52504 4282#define VERSION "$VERSION"
42ecbf5e
DJ
4283_ACEOF
4284
4285# Some tools Automake needs.
4286
4287ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4288
4289
4290AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4291
4292
4293AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4294
4295
4296AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4297
e5a52504 4298
42ecbf5e 4299MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 4300
d0ac1c44
SM
4301# For better backward compatibility. To be removed once Automake 1.9.x
4302# dies out for good. For more background, see:
4303# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4304# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4305mkdir_p='$(MKDIR_P)'
4306
4307# We need awk for the "check" target (and possibly the TAP driver). The
4308# system "awk" is bad on some platforms.
6eb7d830
AM
4309# Always define AMTAR for backward compatibility. Yes, it's still used
4310# in the wild :-( We should find a proper way to deprecate it ...
4311AMTAR='$${TAR-tar}'
42ecbf5e 4312
d0ac1c44
SM
4313
4314# We'll loop over all known methods to create a tar archive until one works.
4315_am_tools='gnutar pax cpio none'
4316
6eb7d830 4317am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
42ecbf5e
DJ
4318
4319
4320
4321
d0ac1c44 4322
42ecbf5e
DJ
4323depcc="$CC" am_compiler_list=
4324
81ecdfbb
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4327if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 4328 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
4329else
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4334 # making a dummy file named 'D' -- because '-MD' means "put the output
4335 # in D".
6eb7d830 4336 rm -rf conftest.dir
42ecbf5e
DJ
4337 mkdir conftest.dir
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4341 cd conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4347 # directory.
4348 mkdir sub
4349
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 fi
81ecdfbb
RW
4354 am__universal=false
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 esac
4358
42ecbf5e
DJ
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4363 #
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4367 : > sub/conftest.c
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4371 # Solaris 10 /bin/sh.
4372 echo '/* dummy */' > sub/conftst$i.h
42ecbf5e
DJ
4373 done
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
d0ac1c44 4376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
81ecdfbb 4377 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4378 # handle '-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs.
81ecdfbb
RW
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
42ecbf5e 4382 case $depmode in
81ecdfbb
RW
4383 gcc)
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4386 ;;
42ecbf5e 4387 nosideeffect)
d0ac1c44
SM
4388 # After this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested.
42ecbf5e
DJ
4390 if test "x$enable_dependency_tracking" = xyes; then
4391 continue
4392 else
4393 break
4394 fi
4395 ;;
6eb7d830 4396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4397 # This compiler won't grok '-c -o', but also, the minuso test has
81ecdfbb
RW
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4401 am__minus_obj=
4402 ;;
42ecbf5e
DJ
4403 none) break ;;
4404 esac
42ecbf5e 4405 if depmode=$depmode \
81ecdfbb 4406 source=sub/conftest.c object=$am__obj \
42ecbf5e 4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
42ecbf5e 4409 >/dev/null 2>conftest.err &&
81ecdfbb 4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e 4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
42ecbf5e
DJ
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4424 break
4425 fi
4426 fi
4427 done
2469cfa2 4428
42ecbf5e
DJ
4429 cd ..
4430 rm -rf conftest.dir
2469cfa2 4431else
42ecbf5e
DJ
4432 am_cv_CC_dependencies_compiler_type=none
4433fi
4434
2469cfa2 4435fi
81ecdfbb
RW
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4437$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
42ecbf5e
DJ
4438CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
81ecdfbb 4440 if
42ecbf5e
DJ
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_TRUE=
4444 am__fastdepCC_FALSE='#'
2469cfa2 4445else
42ecbf5e
DJ
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
2469cfa2 4448fi
2469cfa2 4449
2469cfa2 4450
e5a52504 4451
d0ac1c44
SM
4452# POSIX will say in a future version that running "rm -f" with no argument
4453# is OK; and we want to be able to make that assumption in our Makefile
4454# recipes. So use an aggressive probe to check that the usage we want is
4455# actually supported "in the wild" to an acceptable degree.
4456# See automake bug#10828.
4457# To make any issue more visible, cause the running configure to be aborted
4458# by default if the 'rm' program in use doesn't match our expectations; the
4459# user can still override this though.
4460if rm -f && rm -fr && rm -rf; then : OK; else
4461 cat >&2 <<'END'
4462Oops!
4463
4464Your 'rm' program seems unable to run without file operands specified
4465on the command line, even when the '-f' option is present. This is contrary
4466to the behaviour of most rm programs out there, and not conforming with
4467the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4468
4469Please tell bug-automake@gnu.org about your system, including the value
4470of your $PATH and any error possibly output before this message. This
4471can help us improve future automake versions.
4472
4473END
4474 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4475 echo 'Configuration will proceed anyway, since you have set the' >&2
4476 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4477 echo >&2
4478 else
4479 cat >&2 <<'END'
4480Aborting the configuration process, to ensure you take notice of the issue.
4481
4482You can download and install GNU coreutils to get an 'rm' implementation
4483that behaves properly: <http://www.gnu.org/software/coreutils/>.
4484
4485If you want to complete the configuration process using your problematic
4486'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4487to "yes", and re-run configure.
4488
4489END
4490 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4491 fi
4492fi
4493
42ecbf5e 4494
64ac50ac
RW
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4496$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4497 # Check whether --enable-maintainer-mode was given.
4498if test "${enable_maintainer_mode+set}" = set; then :
4499 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4500else
4501 USE_MAINTAINER_MODE=no
4502fi
4503
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4505$as_echo "$USE_MAINTAINER_MODE" >&6; }
4506 if test $USE_MAINTAINER_MODE = yes; then
4507 MAINTAINER_MODE_TRUE=
4508 MAINTAINER_MODE_FALSE='#'
4509else
4510 MAINTAINER_MODE_TRUE='#'
4511 MAINTAINER_MODE_FALSE=
4512fi
4513
4514 MAINT=$MAINTAINER_MODE_TRUE
4515
4516
4517
b879806f
AM
4518ac_ext=c
4519ac_cpp='$CPP $CPPFLAGS'
4520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4525set dummy ${ac_tool_prefix}gcc; ac_word=$2
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4528if ${ac_cv_prog_CC+:} false; then :
b879806f
AM
4529 $as_echo_n "(cached) " >&6
4530else
4531 if test -n "$CC"; then
4532 ac_cv_prog_CC="$CC" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545done
4546 done
4547IFS=$as_save_IFS
d7040cdb 4548
81ecdfbb 4549fi
81ecdfbb 4550fi
b879806f
AM
4551CC=$ac_cv_prog_CC
4552if test -n "$CC"; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4554$as_echo "$CC" >&6; }
2469cfa2 4555else
b879806f
AM
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
81ecdfbb 4558fi
d7040cdb
SE
4559
4560
b879806f
AM
4561fi
4562if test -z "$ac_cv_prog_CC"; then
4563 ac_ct_CC=$CC
4564 # Extract the first word of "gcc", so it can be a program name with args.
4565set dummy gcc; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4568if ${ac_cv_prog_ac_ct_CC+:} false; then :
b879806f 4569 $as_echo_n "(cached) " >&6
e5a52504 4570else
b879806f
AM
4571 if test -n "$ac_ct_CC"; then
4572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4581 ac_cv_prog_ac_ct_CC="gcc"
4582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586 done
4587IFS=$as_save_IFS
d7040cdb 4588
81ecdfbb 4589fi
b879806f
AM
4590fi
4591ac_ct_CC=$ac_cv_prog_ac_ct_CC
4592if test -n "$ac_ct_CC"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4594$as_echo "$ac_ct_CC" >&6; }
4fda8867 4595else
b879806f
AM
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
4fda8867
NC
4598fi
4599
b879806f
AM
4600 if test "x$ac_ct_CC" = x; then
4601 CC=""
4602 else
4603 case $cross_compiling:$ac_tool_warned in
4604yes:)
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4607ac_tool_warned=yes ;;
7fb9f789 4608esac
b879806f
AM
4609 CC=$ac_ct_CC
4610 fi
7fb9f789 4611else
b879806f 4612 CC="$ac_cv_prog_CC"
81ecdfbb
RW
4613fi
4614
b879806f
AM
4615if test -z "$CC"; then
4616 if test -n "$ac_tool_prefix"; then
4617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4618set dummy ${ac_tool_prefix}cc; ac_word=$2
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4621if ${ac_cv_prog_CC+:} false; then :
397841b5
AM
4622 $as_echo_n "(cached) " >&6
4623else
b879806f
AM
4624 if test -n "$CC"; then
4625 ac_cv_prog_CC="$CC" # Let the user override the test.
4626else
4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628for as_dir in $PATH
397841b5 4629do
b879806f
AM
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4634 ac_cv_prog_CC="${ac_tool_prefix}cc"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638done
4639 done
4640IFS=$as_save_IFS
d7040cdb 4641
ce2cded5 4642fi
ce2cded5 4643fi
b879806f
AM
4644CC=$ac_cv_prog_CC
4645if test -n "$CC"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4647$as_echo "$CC" >&6; }
4648else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650$as_echo "no" >&6; }
81ecdfbb
RW
4651fi
4652
d7040cdb 4653
b879806f 4654 fi
ce2cded5 4655fi
b879806f
AM
4656if test -z "$CC"; then
4657 # Extract the first word of "cc", so it can be a program name with args.
4658set dummy cc; ac_word=$2
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4661if ${ac_cv_prog_CC+:} false; then :
b879806f 4662 $as_echo_n "(cached) " >&6
397841b5 4663else
b879806f
AM
4664 if test -n "$CC"; then
4665 ac_cv_prog_CC="$CC" # Let the user override the test.
4666else
4667 ac_prog_rejected=no
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
397841b5 4670do
b879806f
AM
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4676 ac_prog_rejected=yes
4677 continue
4678 fi
4679 ac_cv_prog_CC="cc"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683done
4684 done
4685IFS=$as_save_IFS
d7040cdb 4686
b879806f
AM
4687if test $ac_prog_rejected = yes; then
4688 # We found a bogon in the path, so make sure we never use it.
4689 set dummy $ac_cv_prog_CC
4690 shift
4691 if test $# != 0; then
4692 # We chose a different compiler from the bogus one.
4693 # However, it has the same basename, so the bogon will be chosen
4694 # first if we set CC to just the basename; use the full file name.
4695 shift
4696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4697 fi
397841b5 4698fi
397841b5 4699fi
b879806f
AM
4700fi
4701CC=$ac_cv_prog_CC
4702if test -n "$CC"; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4704$as_echo "$CC" >&6; }
397841b5 4705else
b879806f
AM
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
ce2cded5 4708fi
d7040cdb 4709
397841b5 4710
b879806f
AM
4711fi
4712if test -z "$CC"; then
4713 if test -n "$ac_tool_prefix"; then
4714 for ac_prog in cl.exe
4715 do
4716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4717set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4720if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4721 $as_echo_n "(cached) " >&6
d7040cdb 4722else
b879806f
AM
4723 if test -n "$CC"; then
4724 ac_cv_prog_CC="$CC" # Let the user override the test.
4725else
4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
d7040cdb
SE
4728do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
81ecdfbb 4731 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737done
397841b5
AM
4738 done
4739IFS=$as_save_IFS
d7040cdb 4740
252b5132 4741fi
b879806f
AM
4742fi
4743CC=$ac_cv_prog_CC
4744if test -n "$CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4746$as_echo "$CC" >&6; }
4747else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749$as_echo "no" >&6; }
4750fi
397841b5
AM
4751
4752
b879806f
AM
4753 test -n "$CC" && break
4754 done
4755fi
4756if test -z "$CC"; then
4757 ac_ct_CC=$CC
4758 for ac_prog in cl.exe
4759do
4760 # Extract the first word of "$ac_prog", so it can be a program name with args.
4761set dummy $ac_prog; ac_word=$2
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4764if ${ac_cv_prog_ac_ct_CC+:} false; then :
397841b5
AM
4765 $as_echo_n "(cached) " >&6
4766else
b879806f
AM
4767 if test -n "$ac_ct_CC"; then
4768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4769else
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
397841b5
AM
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
397841b5 4775 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
4777 ac_cv_prog_ac_ct_CC="$ac_prog"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781done
397841b5
AM
4782 done
4783IFS=$as_save_IFS
397841b5 4784
397841b5 4785fi
397841b5 4786fi
b879806f
AM
4787ac_ct_CC=$ac_cv_prog_ac_ct_CC
4788if test -n "$ac_ct_CC"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4790$as_echo "$ac_ct_CC" >&6; }
4791else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793$as_echo "no" >&6; }
397841b5
AM
4794fi
4795
397841b5 4796
b879806f
AM
4797 test -n "$ac_ct_CC" && break
4798done
397841b5 4799
b879806f
AM
4800 if test "x$ac_ct_CC" = x; then
4801 CC=""
4802 else
4803 case $cross_compiling:$ac_tool_warned in
4804yes:)
4805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807ac_tool_warned=yes ;;
397841b5 4808esac
b879806f
AM
4809 CC=$ac_ct_CC
4810 fi
397841b5
AM
4811fi
4812
397841b5
AM
4813fi
4814
4815
b879806f
AM
4816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4818as_fn_error $? "no acceptable C compiler found in \$PATH
4819See \`config.log' for more details" "$LINENO" 5; }
397841b5 4820
b879806f
AM
4821# Provide some information about the compiler.
4822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4823set X $ac_compile
4824ac_compiler=$2
4825for ac_option in --version -v -V -qversion; do
4826 { { ac_try="$ac_compiler $ac_option >&5"
4827case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830esac
4831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4832$as_echo "$ac_try_echo"; } >&5
4833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4834 ac_status=$?
4835 if test -s conftest.err; then
4836 sed '10a\
4837... rest of stderr output deleted ...
4838 10q' conftest.err >conftest.er1
4839 cat conftest.er1 >&5
b879806f 4840 fi
d0ac1c44 4841 rm -f conftest.er1 conftest.err
b879806f
AM
4842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4843 test $ac_status = 0; }
4844done
397841b5 4845
b879806f
AM
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4847$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4848if ${ac_cv_c_compiler_gnu+:} false; then :
44350750
NC
4849 $as_echo_n "(cached) " >&6
4850else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h. */
b879806f 4853
44350750
NC
4854int
4855main ()
4856{
b879806f
AM
4857#ifndef __GNUC__
4858 choke me
4859#endif
4860
4861 ;
44350750
NC
4862 return 0;
4863}
4864_ACEOF
b879806f
AM
4865if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_compiler_gnu=yes
44350750 4867else
b879806f 4868 ac_compiler_gnu=no
44350750 4869fi
b879806f
AM
4870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4871ac_cv_c_compiler_gnu=$ac_compiler_gnu
4872
44350750 4873fi
b879806f
AM
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4875$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4876if test $ac_compiler_gnu = yes; then
4877 GCC=yes
4878else
4879 GCC=
4880fi
4881ac_test_CFLAGS=${CFLAGS+set}
4882ac_save_CFLAGS=$CFLAGS
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4884$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4885if ${ac_cv_prog_cc_g+:} false; then :
b879806f
AM
4886 $as_echo_n "(cached) " >&6
4887else
4888 ac_save_c_werror_flag=$ac_c_werror_flag
4889 ac_c_werror_flag=yes
4890 ac_cv_prog_cc_g=no
4891 CFLAGS="-g"
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893/* end confdefs.h. */
44350750 4894
b879806f
AM
4895int
4896main ()
4897{
44350750 4898
b879806f
AM
4899 ;
4900 return 0;
4901}
4902_ACEOF
4903if ac_fn_c_try_compile "$LINENO"; then :
4904 ac_cv_prog_cc_g=yes
4905else
4906 CFLAGS=""
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908/* end confdefs.h. */
4909
4910int
4911main ()
4912{
44350750 4913
b879806f
AM
4914 ;
4915 return 0;
4916}
4917_ACEOF
4918if ac_fn_c_try_compile "$LINENO"; then :
44350750 4919
b879806f
AM
4920else
4921 ac_c_werror_flag=$ac_save_c_werror_flag
4922 CFLAGS="-g"
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924/* end confdefs.h. */
397841b5 4925
b879806f
AM
4926int
4927main ()
4928{
397841b5 4929
b879806f
AM
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_cv_prog_cc_g=yes
4936fi
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938fi
4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940fi
4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 ac_c_werror_flag=$ac_save_c_werror_flag
4943fi
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4945$as_echo "$ac_cv_prog_cc_g" >&6; }
4946if test "$ac_test_CFLAGS" = set; then
4947 CFLAGS=$ac_save_CFLAGS
4948elif test $ac_cv_prog_cc_g = yes; then
4949 if test "$GCC" = yes; then
4950 CFLAGS="-g -O2"
4951 else
4952 CFLAGS="-g"
4953 fi
4954else
4955 if test "$GCC" = yes; then
4956 CFLAGS="-O2"
4957 else
4958 CFLAGS=
4959 fi
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4962$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4963if ${ac_cv_prog_cc_c89+:} false; then :
b879806f
AM
4964 $as_echo_n "(cached) " >&6
4965else
4966 ac_cv_prog_cc_c89=no
4967ac_save_CC=$CC
4968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h. */
4970#include <stdarg.h>
4971#include <stdio.h>
d0ac1c44 4972struct stat;
b879806f
AM
4973/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4974struct buf { int x; };
4975FILE * (*rcsopen) (struct buf *, struct stat *, int);
4976static char *e (p, i)
4977 char **p;
4978 int i;
4979{
4980 return p[i];
4981}
4982static char *f (char * (*g) (char **, int), char **p, ...)
4983{
4984 char *s;
4985 va_list v;
4986 va_start (v,p);
4987 s = g (p, va_arg (v,int));
4988 va_end (v);
4989 return s;
4990}
df7b86aa 4991
b879806f
AM
4992/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4993 function prototypes and stuff, but not '\xHH' hex character constants.
4994 These don't provoke an error unfortunately, instead are silently treated
4995 as 'x'. The following induces an error, until -std is added to get
4996 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4997 array size at least. It's necessary to write '\x00'==0 to get something
4998 that's true only with -std. */
4999int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 5000
b879806f
AM
5001/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5002 inside strings and character constants. */
5003#define FOO(x) 'x'
5004int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5005
5006int test (int i, double x);
5007struct s1 {int (*f) (int a);};
5008struct s2 {int (*f) (double a);};
5009int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5010int argc;
5011char **argv;
5012int
5013main ()
5014{
5015return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5016 ;
5017 return 0;
5018}
5019_ACEOF
5020for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5021 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5022do
5023 CC="$ac_save_CC $ac_arg"
5024 if ac_fn_c_try_compile "$LINENO"; then :
5025 ac_cv_prog_cc_c89=$ac_arg
397841b5 5026fi
b879806f
AM
5027rm -f core conftest.err conftest.$ac_objext
5028 test "x$ac_cv_prog_cc_c89" != "xno" && break
5029done
5030rm -f conftest.$ac_ext
5031CC=$ac_save_CC
5032
397841b5 5033fi
b879806f
AM
5034# AC_CACHE_VAL
5035case "x$ac_cv_prog_cc_c89" in
5036 x)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5038$as_echo "none needed" >&6; } ;;
5039 xno)
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5041$as_echo "unsupported" >&6; } ;;
5042 *)
5043 CC="$CC $ac_cv_prog_cc_c89"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5045$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5046esac
5047if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 5048
b879806f 5049fi
397841b5
AM
5050
5051ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f 5056
d0ac1c44
SM
5057ac_ext=c
5058ac_cpp='$CPP $CPPFLAGS'
5059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061ac_compiler_gnu=$ac_cv_c_compiler_gnu
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5063$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5064if ${am_cv_prog_cc_c_o+:} false; then :
5065 $as_echo_n "(cached) " >&6
5066else
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068/* end confdefs.h. */
5069
5070int
5071main ()
5072{
5073
5074 ;
5075 return 0;
5076}
5077_ACEOF
5078 # Make sure it works both with $CC and with simple cc.
5079 # Following AC_PROG_CC_C_O, we do the test twice because some
5080 # compilers refuse to overwrite an existing .o file with -o,
5081 # though they will create one.
5082 am_cv_prog_cc_c_o=yes
5083 for am_i in 1 2; do
5084 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5085 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } \
5089 && test -f conftest2.$ac_objext; then
5090 : OK
5091 else
5092 am_cv_prog_cc_c_o=no
5093 break
5094 fi
5095 done
5096 rm -f core conftest*
5097 unset am_i
5098fi
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5100$as_echo "$am_cv_prog_cc_c_o" >&6; }
5101if test "$am_cv_prog_cc_c_o" != yes; then
5102 # Losing compiler, so override with the script.
5103 # FIXME: It is wrong to rewrite CC.
5104 # But if we don't then we get into trouble of one sort or another.
5105 # A longer-term fix would be to have automake use am__CC in this case,
5106 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5107 CC="$am_aux_dir/compile $CC"
5108fi
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
b879806f
AM
5116ac_ext=cpp
5117ac_cpp='$CXXCPP $CPPFLAGS'
5118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5121if test -z "$CXX"; then
5122 if test -n "$CCC"; then
5123 CXX=$CCC
5124 else
5125 if test -n "$ac_tool_prefix"; then
5126 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5127 do
5128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5129set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5132if ${ac_cv_prog_CXX+:} false; then :
397841b5
AM
5133 $as_echo_n "(cached) " >&6
5134else
b879806f
AM
5135 if test -n "$CXX"; then
5136 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 5145 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150 done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
b879806f
AM
5155CXX=$ac_cv_prog_CXX
5156if test -n "$CXX"; then
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5158$as_echo "$CXX" >&6; }
397841b5
AM
5159else
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
b879806f
AM
5165 test -n "$CXX" && break
5166 done
397841b5 5167fi
b879806f
AM
5168if test -z "$CXX"; then
5169 ac_ct_CXX=$CXX
5170 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5171do
5172 # Extract the first word of "$ac_prog", so it can be a program name with args.
5173set dummy $ac_prog; ac_word=$2
397841b5
AM
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5176if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5177 $as_echo_n "(cached) " >&6
252b5132 5178else
b879806f
AM
5179 if test -n "$ac_ct_CXX"; then
5180 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 5181else
ce2cded5
L
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
81ecdfbb 5187 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 5189 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5191 break 2
5192 fi
5193done
81ecdfbb
RW
5194 done
5195IFS=$as_save_IFS
5196
252b5132
RH
5197fi
5198fi
b879806f
AM
5199ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5200if test -n "$ac_ct_CXX"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5202$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 5203else
81ecdfbb
RW
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
d7040cdb
SE
5206fi
5207
81ecdfbb 5208
b879806f 5209 test -n "$ac_ct_CXX" && break
d7040cdb 5210done
d7040cdb 5211
b879806f
AM
5212 if test "x$ac_ct_CXX" = x; then
5213 CXX="g++"
81ecdfbb
RW
5214 else
5215 case $cross_compiling:$ac_tool_warned in
5216yes:)
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219ac_tool_warned=yes ;;
5220esac
b879806f 5221 CXX=$ac_ct_CXX
81ecdfbb 5222 fi
d7040cdb
SE
5223fi
5224
b879806f 5225 fi
d7040cdb 5226fi
ce2cded5 5227# Provide some information about the compiler.
b879806f 5228$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
5229set X $ac_compile
5230ac_compiler=$2
5231for ac_option in --version -v -V -qversion; do
5232 { { ac_try="$ac_compiler $ac_option >&5"
5233case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236esac
5237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5238$as_echo "$ac_try_echo"; } >&5
5239 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 5240 ac_status=$?
81ecdfbb
RW
5241 if test -s conftest.err; then
5242 sed '10a\
5243... rest of stderr output deleted ...
5244 10q' conftest.err >conftest.er1
5245 cat conftest.er1 >&5
81ecdfbb 5246 fi
d0ac1c44 5247 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249 test $ac_status = 0; }
5250done
d7040cdb 5251
b879806f
AM
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5253$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5254if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5255 $as_echo_n "(cached) " >&6
d7040cdb 5256else
81ecdfbb 5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5258/* end confdefs.h. */
d7040cdb 5259
ce2cded5
L
5260int
5261main ()
5262{
5263#ifndef __GNUC__
5264 choke me
5265#endif
5266
5267 ;
5268 return 0;
5269}
5270_ACEOF
b879806f 5271if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 5272 ac_compiler_gnu=yes
d7040cdb 5273else
81ecdfbb 5274 ac_compiler_gnu=no
d7040cdb 5275fi
81ecdfbb 5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5277ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 5278
ce2cded5 5279fi
b879806f
AM
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5281$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 5282if test $ac_compiler_gnu = yes; then
b879806f 5283 GXX=yes
81ecdfbb 5284else
b879806f 5285 GXX=
81ecdfbb 5286fi
b879806f
AM
5287ac_test_CXXFLAGS=${CXXFLAGS+set}
5288ac_save_CXXFLAGS=$CXXFLAGS
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5290$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5291if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5292 $as_echo_n "(cached) " >&6
5293else
b879806f
AM
5294 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5295 ac_cxx_werror_flag=yes
5296 ac_cv_prog_cxx_g=no
5297 CXXFLAGS="-g"
81ecdfbb 5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 5299/* end confdefs.h. */
d7040cdb 5300
ce2cded5
L
5301int
5302main ()
5303{
d7040cdb 5304
ce2cded5
L
5305 ;
5306 return 0;
5307}
5308_ACEOF
b879806f
AM
5309if ac_fn_cxx_try_compile "$LINENO"; then :
5310 ac_cv_prog_cxx_g=yes
ce2cded5 5311else
b879806f 5312 CXXFLAGS=""
81ecdfbb
RW
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314/* end confdefs.h. */
5315
5316int
5317main ()
5318{
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
b879806f 5324if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
5325
5326else
b879806f
AM
5327 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5328 CXXFLAGS="-g"
81ecdfbb
RW
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330/* end confdefs.h. */
5331
5332int
5333main ()
5334{
d7040cdb 5335
81ecdfbb
RW
5336 ;
5337 return 0;
5338}
5339_ACEOF
b879806f
AM
5340if ac_fn_cxx_try_compile "$LINENO"; then :
5341 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
5342fi
5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344fi
5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5346fi
81ecdfbb 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 5348 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 5349fi
b879806f
AM
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5351$as_echo "$ac_cv_prog_cxx_g" >&6; }
5352if test "$ac_test_CXXFLAGS" = set; then
5353 CXXFLAGS=$ac_save_CXXFLAGS
5354elif test $ac_cv_prog_cxx_g = yes; then
5355 if test "$GXX" = yes; then
5356 CXXFLAGS="-g -O2"
ce2cded5 5357 else
b879806f 5358 CXXFLAGS="-g"
ce2cded5 5359 fi
d7040cdb 5360else
b879806f
AM
5361 if test "$GXX" = yes; then
5362 CXXFLAGS="-O2"
ce2cded5 5363 else
b879806f 5364 CXXFLAGS=
ce2cded5 5365 fi
d7040cdb 5366fi
b879806f
AM
5367ac_ext=c
5368ac_cpp='$CPP $CPPFLAGS'
5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373depcc="$CXX" am_compiler_list=
5374
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5376$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 5377if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
81ecdfbb 5378 $as_echo_n "(cached) " >&6
d7040cdb 5379else
b879806f
AM
5380 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5381 # We make a subdir and do the tests there. Otherwise we can end up
5382 # making bogus files that we don't know about and never remove. For
5383 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
5384 # making a dummy file named 'D' -- because '-MD' means "put the output
5385 # in D".
6eb7d830 5386 rm -rf conftest.dir
b879806f
AM
5387 mkdir conftest.dir
5388 # Copy depcomp to subdir because otherwise we won't find it if we're
5389 # using a relative directory.
5390 cp "$am_depcomp" conftest.dir
5391 cd conftest.dir
5392 # We will build objects and dependencies in a subdirectory because
5393 # it helps to detect inapplicable dependency modes. For instance
5394 # both Tru64's cc and ICC support -MD to output dependencies as a
5395 # side effect of compilation, but ICC will put the dependencies in
5396 # the current directory while Tru64 will put them in the object
5397 # directory.
5398 mkdir sub
d7040cdb 5399
b879806f
AM
5400 am_cv_CXX_dependencies_compiler_type=none
5401 if test "$am_compiler_list" = ""; then
5402 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5403 fi
5404 am__universal=false
5405 case " $depcc " in #(
5406 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5407 esac
d7040cdb 5408
b879806f
AM
5409 for depmode in $am_compiler_list; do
5410 # Setup a source with many dependencies, because some compilers
5411 # like to wrap large dependency lists on column 80 (with \), and
5412 # we should not choose a depcomp mode which is confused by this.
5413 #
5414 # We need to recreate these files for each test, as the compiler may
5415 # overwrite some of them when testing with obscure command lines.
5416 # This happens at least with the AIX C compiler.
5417 : > sub/conftest.c
5418 for i in 1 2 3 4 5 6; do
5419 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
5420 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5421 # Solaris 10 /bin/sh.
5422 echo '/* dummy */' > sub/conftst$i.h
b879806f
AM
5423 done
5424 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 5425
d0ac1c44 5426 # We check with '-c' and '-o' for the sake of the "dashmstdout"
b879806f 5427 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
5428 # handle '-M -o', and we need to detect this. Also, some Intel
5429 # versions had trouble with output in subdirs.
b879806f
AM
5430 am__obj=sub/conftest.${OBJEXT-o}
5431 am__minus_obj="-o $am__obj"
5432 case $depmode in
5433 gcc)
5434 # This depmode causes a compiler race in universal mode.
5435 test "$am__universal" = false || continue
5436 ;;
5437 nosideeffect)
d0ac1c44
SM
5438 # After this tag, mechanisms are not by side-effect, so they'll
5439 # only be used when explicitly requested.
b879806f
AM
5440 if test "x$enable_dependency_tracking" = xyes; then
5441 continue
5442 else
5443 break
5444 fi
5445 ;;
6eb7d830 5446 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 5447 # This compiler won't grok '-c -o', but also, the minuso test has
b879806f
AM
5448 # not run yet. These depmodes are late enough in the game, and
5449 # so weak that their functioning should not be impacted.
5450 am__obj=conftest.${OBJEXT-o}
5451 am__minus_obj=
5452 ;;
5453 none) break ;;
5454 esac
5455 if depmode=$depmode \
5456 source=sub/conftest.c object=$am__obj \
5457 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5458 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5459 >/dev/null 2>conftest.err &&
5460 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5461 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5462 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5463 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5464 # icc doesn't choke on unknown options, it will just issue warnings
5465 # or remarks (even with -Werror). So we grep stderr for any message
5466 # that says an option was ignored or not supported.
5467 # When given -MP, icc 7.0 and 7.1 complain thusly:
5468 # icc: Command line warning: ignoring option '-M'; no argument required
5469 # The diagnosis changed in icc 8.0:
5470 # icc: Command line remark: option '-MP' not supported
5471 if (grep 'ignoring option' conftest.err ||
5472 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5473 am_cv_CXX_dependencies_compiler_type=$depmode
5474 break
5475 fi
5476 fi
5477 done
5478
5479 cd ..
5480 rm -rf conftest.dir
5481else
5482 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 5483fi
d7040cdb 5484
ce2cded5 5485fi
b879806f
AM
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5487$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5488CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 5489
b879806f
AM
5490 if
5491 test "x$enable_dependency_tracking" != xno \
5492 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5493 am__fastdepCXX_TRUE=
5494 am__fastdepCXX_FALSE='#'
5495else
5496 am__fastdepCXX_TRUE='#'
5497 am__fastdepCXX_FALSE=
ce2cded5 5498fi
d7040cdb 5499
b879806f 5500
68880f31
CLT
5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5502$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 5503if ${ac_cv_path_GREP+:} false; then :
68880f31
CLT
5504 $as_echo_n "(cached) " >&6
5505else
5506 if test -z "$GREP"; then
5507 ac_path_GREP_found=false
5508 # Loop through the user's path and test for each of PROGNAME-LIST
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_prog in grep ggrep; do
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5517 as_fn_executable_p "$ac_path_GREP" || continue
68880f31
CLT
5518# Check for GNU ac_path_GREP and select it if it is found.
5519 # Check for GNU $ac_path_GREP
5520case `"$ac_path_GREP" --version 2>&1` in
5521*GNU*)
5522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5523*)
5524 ac_count=0
5525 $as_echo_n 0123456789 >"conftest.in"
5526 while :
5527 do
5528 cat "conftest.in" "conftest.in" >"conftest.tmp"
5529 mv "conftest.tmp" "conftest.in"
5530 cp "conftest.in" "conftest.nl"
5531 $as_echo 'GREP' >> "conftest.nl"
5532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5534 as_fn_arith $ac_count + 1 && ac_count=$as_val
5535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5536 # Best one so far, save it but keep looking for a better one
5537 ac_cv_path_GREP="$ac_path_GREP"
5538 ac_path_GREP_max=$ac_count
5539 fi
5540 # 10*(2^10) chars as input seems more than enough
5541 test $ac_count -gt 10 && break
5542 done
5543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5544esac
5545
5546 $ac_path_GREP_found && break 3
5547 done
5548 done
5549 done
5550IFS=$as_save_IFS
5551 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5552 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
68880f31
CLT
5553 fi
5554else
5555 ac_cv_path_GREP=$GREP
5556fi
5557
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5560$as_echo "$ac_cv_path_GREP" >&6; }
5561 GREP="$ac_cv_path_GREP"
5562
5563
ce2cded5
L
5564ac_ext=c
5565ac_cpp='$CPP $CPPFLAGS'
5566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5570$as_echo_n "checking how to run the C preprocessor... " >&6; }
5571# On Suns, sometimes $CPP names a directory.
5572if test -n "$CPP" && test -d "$CPP"; then
5573 CPP=
7357c5b6 5574fi
b879806f 5575if test -z "$CPP"; then
d0ac1c44 5576 if ${ac_cv_prog_CPP+:} false; then :
3cb62297
L
5577 $as_echo_n "(cached) " >&6
5578else
b879806f
AM
5579 # Double quotes because CPP needs to be expanded
5580 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5581 do
5582 ac_preproc_ok=false
5583for ac_c_preproc_warn_flag in '' yes
3cb62297 5584do
b879806f
AM
5585 # Use a header file that comes with gcc, so configuring glibc
5586 # with a fresh cross-compiler works.
5587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5588 # <limits.h> exists even on freestanding compilers.
5589 # On the NeXT, cc -E runs the code through the compiler's parser,
5590 # not just through cpp. "Syntax error" is here to catch this case.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h. */
5593#ifdef __STDC__
5594# include <limits.h>
5595#else
5596# include <assert.h>
5597#endif
5598 Syntax error
5599_ACEOF
5600if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5601
3cb62297 5602else
b879806f
AM
5603 # Broken: fails on valid input.
5604continue
7357c5b6 5605fi
d0ac1c44 5606rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5607
b879806f
AM
5608 # OK, works on sane cases. Now check whether nonexistent headers
5609 # can be detected and how.
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611/* end confdefs.h. */
5612#include <ac_nonexistent.h>
5613_ACEOF
5614if ac_fn_c_try_cpp "$LINENO"; then :
5615 # Broken: success on invalid input.
5616continue
5617else
5618 # Passes both tests.
5619ac_preproc_ok=:
5620break
5621fi
d0ac1c44 5622rm -f conftest.err conftest.i conftest.$ac_ext
42ecbf5e 5623
3cb62297 5624done
b879806f 5625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5626rm -f conftest.i conftest.err conftest.$ac_ext
b879806f
AM
5627if $ac_preproc_ok; then :
5628 break
7357c5b6 5629fi
ac48eca1 5630
b879806f
AM
5631 done
5632 ac_cv_prog_CPP=$CPP
d7040cdb 5633
b879806f
AM
5634fi
5635 CPP=$ac_cv_prog_CPP
7357c5b6 5636else
b879806f
AM
5637 ac_cv_prog_CPP=$CPP
5638fi
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5640$as_echo "$CPP" >&6; }
5641ac_preproc_ok=false
5642for ac_c_preproc_warn_flag in '' yes
5643do
5644 # Use a header file that comes with gcc, so configuring glibc
5645 # with a fresh cross-compiler works.
5646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647 # <limits.h> exists even on freestanding compilers.
5648 # On the NeXT, cc -E runs the code through the compiler's parser,
5649 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5651/* end confdefs.h. */
b879806f
AM
5652#ifdef __STDC__
5653# include <limits.h>
5654#else
5655# include <assert.h>
3cb62297 5656#endif
b879806f 5657 Syntax error
7357c5b6 5658_ACEOF
b879806f
AM
5659if ac_fn_c_try_cpp "$LINENO"; then :
5660
81ecdfbb 5661else
b879806f
AM
5662 # Broken: fails on valid input.
5663continue
7357c5b6 5664fi
d0ac1c44 5665rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb 5666
b879806f
AM
5667 # OK, works on sane cases. Now check whether nonexistent headers
5668 # can be detected and how.
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h. */
5671#include <ac_nonexistent.h>
5672_ACEOF
5673if ac_fn_c_try_cpp "$LINENO"; then :
5674 # Broken: success on invalid input.
5675continue
3cb62297 5676else
b879806f
AM
5677 # Passes both tests.
5678ac_preproc_ok=:
5679break
7357c5b6 5680fi
d0ac1c44 5681rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5682
b879806f
AM
5683done
5684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5685rm -f conftest.i conftest.err conftest.$ac_ext
b879806f 5686if $ac_preproc_ok; then :
252b5132 5687
3cb62297 5688else
b879806f
AM
5689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5691as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5692See \`config.log' for more details" "$LINENO" 5; }
b879806f 5693fi
42ecbf5e 5694
b879806f
AM
5695ac_ext=c
5696ac_cpp='$CPP $CPPFLAGS'
5697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5700
5701
b879806f
AM
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5703$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5704if ${ac_cv_path_EGREP+:} false; then :
b879806f
AM
5705 $as_echo_n "(cached) " >&6
5706else
5707 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5708 then ac_cv_path_EGREP="$GREP -E"
5709 else
5710 if test -z "$EGREP"; then
5711 ac_path_EGREP_found=false
5712 # Loop through the user's path and test for each of PROGNAME-LIST
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715do
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_prog in egrep; do
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5721 as_fn_executable_p "$ac_path_EGREP" || continue
b879806f
AM
5722# Check for GNU ac_path_EGREP and select it if it is found.
5723 # Check for GNU $ac_path_EGREP
5724case `"$ac_path_EGREP" --version 2>&1` in
5725*GNU*)
5726 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5727*)
5728 ac_count=0
5729 $as_echo_n 0123456789 >"conftest.in"
5730 while :
5731 do
5732 cat "conftest.in" "conftest.in" >"conftest.tmp"
5733 mv "conftest.tmp" "conftest.in"
5734 cp "conftest.in" "conftest.nl"
5735 $as_echo 'EGREP' >> "conftest.nl"
5736 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5738 as_fn_arith $ac_count + 1 && ac_count=$as_val
5739 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5740 # Best one so far, save it but keep looking for a better one
5741 ac_cv_path_EGREP="$ac_path_EGREP"
5742 ac_path_EGREP_max=$ac_count
5743 fi
5744 # 10*(2^10) chars as input seems more than enough
5745 test $ac_count -gt 10 && break
5746 done
5747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748esac
5749
5750 $ac_path_EGREP_found && break 3
5751 done
5752 done
5753 done
5754IFS=$as_save_IFS
5755 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5756 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b879806f
AM
5757 fi
5758else
5759 ac_cv_path_EGREP=$EGREP
5760fi
5761
5762 fi
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5765$as_echo "$ac_cv_path_EGREP" >&6; }
5766 EGREP="$ac_cv_path_EGREP"
5767
5768
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5770$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5771if ${ac_cv_header_stdc+:} false; then :
b879806f
AM
5772 $as_echo_n "(cached) " >&6
5773else
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5775/* end confdefs.h. */
b879806f
AM
5776#include <stdlib.h>
5777#include <stdarg.h>
5778#include <string.h>
5779#include <float.h>
42ecbf5e 5780
3cb62297
L
5781int
5782main ()
5783{
42ecbf5e 5784
3cb62297
L
5785 ;
5786 return 0;
5787}
5788_ACEOF
b879806f
AM
5789if ac_fn_c_try_compile "$LINENO"; then :
5790 ac_cv_header_stdc=yes
5791else
5792 ac_cv_header_stdc=no
3cb62297
L
5793fi
5794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5795
5796if test $ac_cv_header_stdc = yes; then
5797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799/* end confdefs.h. */
5800#include <string.h>
5801
5802_ACEOF
5803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804 $EGREP "memchr" >/dev/null 2>&1; then :
5805
5806else
5807 ac_cv_header_stdc=no
3cb62297 5808fi
b879806f
AM
5809rm -f conftest*
5810
3cb62297 5811fi
b879806f
AM
5812
5813if test $ac_cv_header_stdc = yes; then
5814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h. */
5817#include <stdlib.h>
5818
5819_ACEOF
5820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5821 $EGREP "free" >/dev/null 2>&1; then :
5822
ce2cded5 5823else
b879806f 5824 ac_cv_header_stdc=no
ce2cded5 5825fi
b879806f 5826rm -f conftest*
42ecbf5e 5827
b879806f 5828fi
e5a52504 5829
b879806f
AM
5830if test $ac_cv_header_stdc = yes; then
5831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5832 if test "$cross_compiling" = yes; then :
5833 :
3cb62297 5834else
b879806f
AM
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h. */
5837#include <ctype.h>
5838#include <stdlib.h>
5839#if ((' ' & 0x0FF) == 0x020)
5840# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5841# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5842#else
5843# define ISLOWER(c) \
5844 (('a' <= (c) && (c) <= 'i') \
5845 || ('j' <= (c) && (c) <= 'r') \
5846 || ('s' <= (c) && (c) <= 'z'))
5847# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5848#endif
3cb62297
L
5849
5850#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5851int
5852main ()
5853{
5854 int i;
5855 for (i = 0; i < 256; i++)
5856 if (XOR (islower (i), ISLOWER (i))
5857 || toupper (i) != TOUPPER (i))
5858 return 2;
5859 return 0;
5860}
5861_ACEOF
5862if ac_fn_c_try_run "$LINENO"; then :
5863
5864else
5865 ac_cv_header_stdc=no
5866fi
5867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5868 conftest.$ac_objext conftest.beam conftest.$ac_ext
5869fi
5870
5871fi
5872fi
5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5874$as_echo "$ac_cv_header_stdc" >&6; }
5875if test $ac_cv_header_stdc = yes; then
5876
5877$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5878
5879fi
5880
5881# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5882for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5883 inttypes.h stdint.h unistd.h
5884do :
5885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5887"
d0ac1c44 5888if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3cb62297
L
5889 cat >>confdefs.h <<_ACEOF
5890#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5891_ACEOF
5892
5893fi
5894
5895done
5896
5897
5898
5899 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5900if test "x$ac_cv_header_minix_config_h" = xyes; then :
3cb62297
L
5901 MINIX=yes
5902else
5903 MINIX=
5904fi
5905
5906
5907 if test "$MINIX" = yes; then
5908
5909$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5910
5911
5912$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5913
5914
5915$as_echo "#define _MINIX 1" >>confdefs.h
5916
5917 fi
5918
5919
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5921$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5922if ${ac_cv_safe_to_define___extensions__+:} false; then :
3cb62297
L
5923 $as_echo_n "(cached) " >&6
5924else
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h. */
5927
d0ac1c44
SM
5928# define __EXTENSIONS__ 1
5929 $ac_includes_default
3cb62297
L
5930int
5931main ()
5932{
5933
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938if ac_fn_c_try_compile "$LINENO"; then :
5939 ac_cv_safe_to_define___extensions__=yes
5940else
5941 ac_cv_safe_to_define___extensions__=no
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944fi
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5946$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5947 test $ac_cv_safe_to_define___extensions__ = yes &&
5948 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5949
5950 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5951
5952 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5953
5954 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5955
5956 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5957
5958
5959
5960
5961
3cb62297 5962
b879806f
AM
5963case `pwd` in
5964 *\ * | *\ *)
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5966$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5967esac
3cb62297
L
5968
5969
da2f07f1 5970
b879806f
AM
5971macro_version='2.2.7a'
5972macro_revision='1.3134'
d7040cdb 5973
d7040cdb
SE
5974
5975
d7040cdb 5976
d7040cdb 5977
42ecbf5e 5978
d7040cdb 5979
252b5132 5980
252b5132 5981
252b5132 5982
252b5132
RH
5983
5984
ce2cded5 5985
b214d478 5986ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5987
3725885a
RW
5988# Backslashify metacharacters that are still active within
5989# double-quoted strings.
5990sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5991
5992# Same as above, but do not quote variable references.
5993double_quote_subst='s/\(["`\\]\)/\\\1/g'
5994
5995# Sed substitution to delay expansion of an escaped shell variable in a
5996# double_quote_subst'ed string.
5997delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5998
5999# Sed substitution to delay expansion of an escaped single quote.
6000delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6001
6002# Sed substitution to avoid accidental globbing in evaled expressions
6003no_glob_subst='s/\*/\\\*/g'
6004
6005ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6006ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6007ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6008
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6010$as_echo_n "checking how to print strings... " >&6; }
6011# Test print first, because it will be a builtin if present.
6012if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6013 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6014 ECHO='print -r --'
6015elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6016 ECHO='printf %s\n'
6017else
6018 # Use this function as a fallback that always works.
6019 func_fallback_echo ()
6020 {
6021 eval 'cat <<_LTECHO_EOF
6022$1
6023_LTECHO_EOF'
6024 }
6025 ECHO='func_fallback_echo'
6026fi
6027
6028# func_echo_all arg...
6029# Invoke $ECHO with all args, space-separated.
6030func_echo_all ()
6031{
6032 $ECHO ""
6033}
6034
6035case "$ECHO" in
6036 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6037$as_echo "printf" >&6; } ;;
6038 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6039$as_echo "print -r" >&6; } ;;
6040 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6041$as_echo "cat" >&6; } ;;
6042esac
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
81ecdfbb
RW
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6058$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 6059if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
6060 $as_echo_n "(cached) " >&6
6061else
6062 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6063 for ac_i in 1 2 3 4 5 6 7; do
6064 ac_script="$ac_script$as_nl$ac_script"
6065 done
6066 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6067 { ac_script=; unset ac_script;}
6068 if test -z "$SED"; then
6069 ac_path_SED_found=false
6070 # Loop through the user's path and test for each of PROGNAME-LIST
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
6072for as_dir in $PATH
6073do
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
81ecdfbb 6076 for ac_prog in sed gsed; do
7357c5b6 6077 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 6078 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 6079 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
6080# Check for GNU ac_path_SED and select it if it is found.
6081 # Check for GNU $ac_path_SED
6082case `"$ac_path_SED" --version 2>&1` in
6083*GNU*)
6084 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6085*)
6086 ac_count=0
6087 $as_echo_n 0123456789 >"conftest.in"
6088 while :
6089 do
6090 cat "conftest.in" "conftest.in" >"conftest.tmp"
6091 mv "conftest.tmp" "conftest.in"
6092 cp "conftest.in" "conftest.nl"
6093 $as_echo '' >> "conftest.nl"
6094 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6096 as_fn_arith $ac_count + 1 && ac_count=$as_val
6097 if test $ac_count -gt ${ac_path_SED_max-0}; then
6098 # Best one so far, save it but keep looking for a better one
6099 ac_cv_path_SED="$ac_path_SED"
6100 ac_path_SED_max=$ac_count
6101 fi
6102 # 10*(2^10) chars as input seems more than enough
6103 test $ac_count -gt 10 && break
6104 done
6105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6106esac
6107
6108 $ac_path_SED_found && break 3
7357c5b6
AM
6109 done
6110 done
81ecdfbb 6111 done
7357c5b6 6112IFS=$as_save_IFS
81ecdfbb 6113 if test -z "$ac_cv_path_SED"; then
d0ac1c44 6114 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 6115 fi
81ecdfbb
RW
6116else
6117 ac_cv_path_SED=$SED
7357c5b6 6118fi
20e95c23 6119
81ecdfbb
RW
6120fi
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6122$as_echo "$ac_cv_path_SED" >&6; }
6123 SED="$ac_cv_path_SED"
6124 rm -f conftest.sed
20e95c23 6125
7357c5b6
AM
6126test -z "$SED" && SED=sed
6127Xsed="$SED -e 1s/^X//"
20e95c23
DJ
6128
6129
6130
6131
6132
6133
20e95c23 6134
20e95c23 6135
d7040cdb 6136
d7040cdb 6137
7357c5b6 6138
81ecdfbb
RW
6139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6140$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 6141if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 6142 $as_echo_n "(cached) " >&6
7357c5b6 6143else
81ecdfbb
RW
6144 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6145 then ac_cv_path_FGREP="$GREP -F"
6146 else
6147 if test -z "$FGREP"; then
6148 ac_path_FGREP_found=false
6149 # Loop through the user's path and test for each of PROGNAME-LIST
6150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_prog in fgrep; do
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 6158 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
6159# Check for GNU ac_path_FGREP and select it if it is found.
6160 # Check for GNU $ac_path_FGREP
6161case `"$ac_path_FGREP" --version 2>&1` in
6162*GNU*)
6163 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6164*)
6165 ac_count=0
6166 $as_echo_n 0123456789 >"conftest.in"
6167 while :
6168 do
6169 cat "conftest.in" "conftest.in" >"conftest.tmp"
6170 mv "conftest.tmp" "conftest.in"
6171 cp "conftest.in" "conftest.nl"
6172 $as_echo 'FGREP' >> "conftest.nl"
6173 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6175 as_fn_arith $ac_count + 1 && ac_count=$as_val
6176 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6177 # Best one so far, save it but keep looking for a better one
6178 ac_cv_path_FGREP="$ac_path_FGREP"
6179 ac_path_FGREP_max=$ac_count
7357c5b6 6180 fi
81ecdfbb
RW
6181 # 10*(2^10) chars as input seems more than enough
6182 test $ac_count -gt 10 && break
6183 done
6184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6185esac
6186
6187 $ac_path_FGREP_found && break 3
6188 done
6189 done
6190 done
6191IFS=$as_save_IFS
6192 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 6193 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
6194 fi
6195else
6196 ac_cv_path_FGREP=$FGREP
6197fi
6198
6199 fi
20e95c23 6200fi
81ecdfbb
RW
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6202$as_echo "$ac_cv_path_FGREP" >&6; }
6203 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
6204
6205
6206test -z "$GREP" && GREP=grep
6207
d7040cdb
SE
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
20e95c23 6219
ce2cded5 6220
d7040cdb 6221
7357c5b6
AM
6222
6223
6224
6225
81ecdfbb
RW
6226# Check whether --with-gnu-ld was given.
6227if test "${with_gnu_ld+set}" = set; then :
6228 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
6229else
6230 with_gnu_ld=no
81ecdfbb
RW
6231fi
6232
7357c5b6
AM
6233ac_prog=ld
6234if test "$GCC" = yes; then
6235 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6237$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
6238 case $host in
6239 *-*-mingw*)
6240 # gcc leaves a trailing carriage return which upsets mingw
6241 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6242 *)
6243 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6244 esac
6245 case $ac_prog in
6246 # Accept absolute paths.
6247 [\\/]* | ?:[\\/]*)
6248 re_direlt='/[^/][^/]*/\.\./'
6249 # Canonicalize the pathname of ld
6250 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6251 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6252 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6253 done
6254 test -z "$LD" && LD="$ac_prog"
6255 ;;
6256 "")
6257 # If it fails, then pretend we aren't using GCC.
6258 ac_prog=ld
6259 ;;
6260 *)
6261 # If it is relative, then search for the first ld in PATH.
6262 with_gnu_ld=unknown
6263 ;;
6264 esac
6265elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6267$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 6268else
81ecdfbb
RW
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6270$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 6271fi
d0ac1c44 6272if ${lt_cv_path_LD+:} false; then :
81ecdfbb 6273 $as_echo_n "(cached) " >&6
ce2cded5 6274else
7357c5b6
AM
6275 if test -z "$LD"; then
6276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6277 for ac_dir in $PATH; do
6278 IFS="$lt_save_ifs"
6279 test -z "$ac_dir" && ac_dir=.
6280 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6281 lt_cv_path_LD="$ac_dir/$ac_prog"
6282 # Check to see if the program is GNU ld. I'd rather use --version,
6283 # but apparently some variants of GNU ld only accept -v.
6284 # Break only if it was the GNU/non-GNU ld that we prefer.
6285 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6286 *GNU* | *'with BFD'*)
6287 test "$with_gnu_ld" != no && break
6288 ;;
6289 *)
6290 test "$with_gnu_ld" != yes && break
6291 ;;
6292 esac
6293 fi
6294 done
6295 IFS="$lt_save_ifs"
ce2cded5 6296else
7357c5b6 6297 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
6298fi
6299fi
7357c5b6
AM
6300
6301LD="$lt_cv_path_LD"
6302if test -n "$LD"; then
81ecdfbb
RW
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6304$as_echo "$LD" >&6; }
ce2cded5 6305else
81ecdfbb
RW
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
ce2cded5 6308fi
d0ac1c44 6309test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6311$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 6312if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 6313 $as_echo_n "(cached) " >&6
ce2cded5 6314else
7357c5b6
AM
6315 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6316case `$LD -v 2>&1 </dev/null` in
6317*GNU* | *'with BFD'*)
6318 lt_cv_prog_gnu_ld=yes
6319 ;;
6320*)
6321 lt_cv_prog_gnu_ld=no
6322 ;;
6323esac
ce2cded5 6324fi
81ecdfbb
RW
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6326$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 6327with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
6328
6329
6330
6331
6332
6333
6334
6335
6336
81ecdfbb
RW
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6338$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 6339if ${lt_cv_path_NM+:} false; then :
81ecdfbb 6340 $as_echo_n "(cached) " >&6
ce2cded5 6341else
7357c5b6
AM
6342 if test -n "$NM"; then
6343 # Let the user override the test.
6344 lt_cv_path_NM="$NM"
ce2cded5 6345else
7357c5b6
AM
6346 lt_nm_to_check="${ac_tool_prefix}nm"
6347 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6348 lt_nm_to_check="$lt_nm_to_check nm"
20e95c23 6349 fi
7357c5b6
AM
6350 for lt_tmp_nm in $lt_nm_to_check; do
6351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6352 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6353 IFS="$lt_save_ifs"
6354 test -z "$ac_dir" && ac_dir=.
6355 tmp_nm="$ac_dir/$lt_tmp_nm"
6356 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6357 # Check to see if the nm accepts a BSD-compat flag.
6358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6359 # nm: unknown option "B" ignored
6360 # Tru64's nm complains that /dev/null is an invalid object file
6361 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6362 */dev/null* | *'Invalid file or object type'*)
6363 lt_cv_path_NM="$tmp_nm -B"
6364 break
6365 ;;
6366 *)
6367 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6368 */dev/null*)
6369 lt_cv_path_NM="$tmp_nm -p"
6370 break
6371 ;;
6372 *)
6373 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6374 continue # so that we can try to find one that supports BSD flags
6375 ;;
6376 esac
6377 ;;
6378 esac
6379 fi
6380 done
6381 IFS="$lt_save_ifs"
6382 done
6383 : ${lt_cv_path_NM=no}
ce2cded5
L
6384fi
6385fi
81ecdfbb
RW
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6387$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
6388if test "$lt_cv_path_NM" != "no"; then
6389 NM="$lt_cv_path_NM"
ce2cded5 6390else
7357c5b6 6391 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
6392 if test -n "$DUMPBIN"; then :
6393 # Let the user override the test.
6394 else
6395 if test -n "$ac_tool_prefix"; then
6396 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6397 do
6398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6402if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 6403 $as_echo_n "(cached) " >&6
20e95c23 6404else
7357c5b6
AM
6405 if test -n "$DUMPBIN"; then
6406 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6407else
6408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409for as_dir in $PATH
6410do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
81ecdfbb 6413 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6415 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6417 break 2
6418 fi
6419done
81ecdfbb
RW
6420 done
6421IFS=$as_save_IFS
d7040cdb 6422
20e95c23 6423fi
ce2cded5 6424fi
7357c5b6
AM
6425DUMPBIN=$ac_cv_prog_DUMPBIN
6426if test -n "$DUMPBIN"; then
81ecdfbb
RW
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6428$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6429else
81ecdfbb
RW
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431$as_echo "no" >&6; }
42ecbf5e
DJ
6432fi
6433
81ecdfbb 6434
7357c5b6
AM
6435 test -n "$DUMPBIN" && break
6436 done
ce2cded5 6437fi
7357c5b6
AM
6438if test -z "$DUMPBIN"; then
6439 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6440 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6441do
6442 # Extract the first word of "$ac_prog", so it can be a program name with args.
6443set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6446if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 6447 $as_echo_n "(cached) " >&6
42ecbf5e 6448else
7357c5b6
AM
6449 if test -n "$ac_ct_DUMPBIN"; then
6450 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
81ecdfbb 6457 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6459 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6461 break 2
6462 fi
6463done
81ecdfbb
RW
6464 done
6465IFS=$as_save_IFS
d7040cdb 6466
ce2cded5
L
6467fi
6468fi
7357c5b6
AM
6469ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6470if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6472$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6473else
81ecdfbb
RW
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
ce2cded5 6476fi
d7040cdb 6477
81ecdfbb 6478
7357c5b6 6479 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6480done
d7040cdb 6481
81ecdfbb
RW
6482 if test "x$ac_ct_DUMPBIN" = x; then
6483 DUMPBIN=":"
6484 else
6485 case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491 DUMPBIN=$ac_ct_DUMPBIN
6492 fi
ce2cded5 6493fi
7357c5b6 6494
3725885a
RW
6495 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6496 *COFF*)
6497 DUMPBIN="$DUMPBIN -symbols"
6498 ;;
6499 *)
6500 DUMPBIN=:
6501 ;;
6502 esac
6503 fi
7357c5b6
AM
6504
6505 if test "$DUMPBIN" != ":"; then
6506 NM="$DUMPBIN"
6507 fi
ce2cded5 6508fi
7357c5b6
AM
6509test -z "$NM" && NM=nm
6510
6511
6512
6513
6514
6515
81ecdfbb
RW
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6517$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6518if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 6519 $as_echo_n "(cached) " >&6
20e95c23 6520else
7357c5b6
AM
6521 lt_cv_nm_interface="BSD nm"
6522 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6523 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6524 (eval "$ac_compile" 2>conftest.err)
6525 cat conftest.err >&5
3725885a 6526 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6527 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6528 cat conftest.err >&5
3725885a 6529 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6530 cat conftest.out >&5
6531 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6532 lt_cv_nm_interface="MS dumpbin"
6533 fi
6534 rm -f conftest*
20e95c23 6535fi
81ecdfbb
RW
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6537$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6538
81ecdfbb
RW
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6540$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6541LN_S=$as_ln_s
6542if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6544$as_echo "yes" >&6; }
ce2cded5 6545else
81ecdfbb
RW
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6547$as_echo "no, using $LN_S" >&6; }
d7040cdb 6548fi
20e95c23 6549
7357c5b6 6550# find the maximum length of command line arguments
81ecdfbb
RW
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6552$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6553if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 6554 $as_echo_n "(cached) " >&6
7357c5b6
AM
6555else
6556 i=0
6557 teststring="ABCD"
20e95c23 6558
7357c5b6
AM
6559 case $build_os in
6560 msdosdjgpp*)
6561 # On DJGPP, this test can blow up pretty badly due to problems in libc
6562 # (any single argument exceeding 2000 bytes causes a buffer overrun
6563 # during glob expansion). Even if it were fixed, the result of this
6564 # check would be larger than it should be.
6565 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6566 ;;
20e95c23 6567
7357c5b6
AM
6568 gnu*)
6569 # Under GNU Hurd, this test is not required because there is
6570 # no limit to the length of command line arguments.
6571 # Libtool will interpret -1 as no limit whatsoever
6572 lt_cv_sys_max_cmd_len=-1;
6573 ;;
20e95c23 6574
b214d478 6575 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6576 # On Win9x/ME, this test blows up -- it succeeds, but takes
6577 # about 5 minutes as the teststring grows exponentially.
6578 # Worse, since 9x/ME are not pre-emptively multitasking,
6579 # you end up with a "frozen" computer, even though with patience
6580 # the test eventually succeeds (with a max line length of 256k).
6581 # Instead, let's just punt: use the minimum linelength reported by
6582 # all of the supported platforms: 8192 (on NT/2K/XP).
6583 lt_cv_sys_max_cmd_len=8192;
6584 ;;
20e95c23 6585
3725885a
RW
6586 mint*)
6587 # On MiNT this can take a long time and run out of memory.
6588 lt_cv_sys_max_cmd_len=8192;
6589 ;;
6590
7357c5b6
AM
6591 amigaos*)
6592 # On AmigaOS with pdksh, this test takes hours, literally.
6593 # So we just punt and use a minimum line length of 8192.
6594 lt_cv_sys_max_cmd_len=8192;
6595 ;;
20e95c23 6596
7357c5b6
AM
6597 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6598 # This has been around since 386BSD, at least. Likely further.
6599 if test -x /sbin/sysctl; then
6600 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6601 elif test -x /usr/sbin/sysctl; then
6602 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6603 else
6604 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6605 fi
6606 # And add a safety zone
6607 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6608 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6609 ;;
d7040cdb 6610
7357c5b6
AM
6611 interix*)
6612 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6613 lt_cv_sys_max_cmd_len=196608
6614 ;;
d7040cdb 6615
7357c5b6
AM
6616 osf*)
6617 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6618 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6619 # nice to cause kernel panics so lets avoid the loop below.
6620 # First set a reasonable default.
6621 lt_cv_sys_max_cmd_len=16384
6622 #
6623 if test -x /sbin/sysconfig; then
6624 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6625 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6626 esac
6627 fi
6628 ;;
6629 sco3.2v5*)
6630 lt_cv_sys_max_cmd_len=102400
6631 ;;
6632 sysv5* | sco5v6* | sysv4.2uw2*)
6633 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6634 if test -n "$kargmax"; then
6635 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6636 else
6637 lt_cv_sys_max_cmd_len=32768
6638 fi
ce2cded5
L
6639 ;;
6640 *)
b214d478
SE
6641 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6642 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6643 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6645 else
6646 # Make teststring a little bigger before we do anything with it.
6647 # a 1K string should be a reasonable start.
6648 for i in 1 2 3 4 5 6 7 8 ; do
6649 teststring=$teststring$teststring
6650 done
6651 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6652 # If test is not a shell built-in, we'll probably end up computing a
6653 # maximum length that is only half of the actual maximum length, but
6654 # we can't tell.
3725885a
RW
6655 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6656 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6657 test $i != 17 # 1/2 MB should be enough
6658 do
6659 i=`expr $i + 1`
6660 teststring=$teststring$teststring
6661 done
6662 # Only check the string length outside the loop.
6663 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6664 teststring=
6665 # Add a significant safety factor because C++ compilers can tack on
6666 # massive amounts of additional arguments before passing them to the
6667 # linker. It appears as though 1/2 is a usable value.
6668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6669 fi
ce2cded5
L
6670 ;;
6671 esac
d7040cdb 6672
7357c5b6 6673fi
d7040cdb 6674
7357c5b6 6675if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6677$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6678else
81ecdfbb
RW
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6680$as_echo "none" >&6; }
7357c5b6
AM
6681fi
6682max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6683
6684
6685
6686
6687
d7040cdb 6688
7357c5b6
AM
6689: ${CP="cp -f"}
6690: ${MV="mv -f"}
6691: ${RM="rm -f"}
d7040cdb 6692
81ecdfbb
RW
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6694$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6695# Try some XSI features
6696xsi_shell=no
6697( _lt_dummy="a/b/c"
6698 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6699 = c,a/b,, \
6700 && eval 'test $(( 1 + 1 )) -eq 2 \
6701 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6702 && xsi_shell=yes
81ecdfbb
RW
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6704$as_echo "$xsi_shell" >&6; }
d7040cdb 6705
d7040cdb 6706
81ecdfbb
RW
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6708$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6709lt_shell_append=no
6710( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6711 >/dev/null 2>&1 \
6712 && lt_shell_append=yes
81ecdfbb
RW
6713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6714$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6715
6716
7357c5b6
AM
6717if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6718 lt_unset=unset
6719else
6720 lt_unset=false
6721fi
d7040cdb 6722
d7040cdb 6723
d7040cdb 6724
d7040cdb 6725
d7040cdb 6726
7357c5b6
AM
6727# test EBCDIC or ASCII
6728case `echo X|tr X '\101'` in
6729 A) # ASCII based system
6730 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6731 lt_SP2NL='tr \040 \012'
6732 lt_NL2SP='tr \015\012 \040\040'
6733 ;;
6734 *) # EBCDIC based system
6735 lt_SP2NL='tr \100 \n'
6736 lt_NL2SP='tr \r\n \100\100'
6737 ;;
6738esac
42ecbf5e 6739
d7040cdb
SE
6740
6741
6742
6743
6744
6745
d7040cdb 6746
d7040cdb 6747
81ecdfbb
RW
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6749$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6750if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6751 $as_echo_n "(cached) " >&6
7357c5b6
AM
6752else
6753 lt_cv_ld_reload_flag='-r'
6754fi
81ecdfbb
RW
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6756$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6757reload_flag=$lt_cv_ld_reload_flag
6758case $reload_flag in
6759"" | " "*) ;;
6760*) reload_flag=" $reload_flag" ;;
6761esac
6762reload_cmds='$LD$reload_flag -o $output$reload_objs'
6763case $host_os in
6764 darwin*)
6765 if test "$GCC" = yes; then
6766 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6767 else
6768 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6769 fi
6770 ;;
6771esac
d7040cdb 6772
d7040cdb 6773
d7040cdb 6774
d7040cdb 6775
d7040cdb 6776
d7040cdb 6777
d7040cdb 6778
d7040cdb 6779
d7040cdb 6780
b214d478
SE
6781if test -n "$ac_tool_prefix"; then
6782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6783set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6786if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6787 $as_echo_n "(cached) " >&6
b214d478
SE
6788else
6789 if test -n "$OBJDUMP"; then
6790 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6791else
6792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793for as_dir in $PATH
6794do
6795 IFS=$as_save_IFS
6796 test -z "$as_dir" && as_dir=.
81ecdfbb 6797 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6799 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6801 break 2
6802 fi
6803done
81ecdfbb
RW
6804 done
6805IFS=$as_save_IFS
b214d478
SE
6806
6807fi
6808fi
6809OBJDUMP=$ac_cv_prog_OBJDUMP
6810if test -n "$OBJDUMP"; then
81ecdfbb
RW
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6812$as_echo "$OBJDUMP" >&6; }
b214d478 6813else
81ecdfbb
RW
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815$as_echo "no" >&6; }
b214d478
SE
6816fi
6817
81ecdfbb 6818
b214d478
SE
6819fi
6820if test -z "$ac_cv_prog_OBJDUMP"; then
6821 ac_ct_OBJDUMP=$OBJDUMP
6822 # Extract the first word of "objdump", so it can be a program name with args.
6823set dummy objdump; ac_word=$2
81ecdfbb
RW
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6826if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6827 $as_echo_n "(cached) " >&6
b214d478
SE
6828else
6829 if test -n "$ac_ct_OBJDUMP"; then
6830 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
81ecdfbb 6837 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6839 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6841 break 2
6842 fi
6843done
81ecdfbb
RW
6844 done
6845IFS=$as_save_IFS
b214d478 6846
b214d478
SE
6847fi
6848fi
6849ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6850if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6852$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6853else
81ecdfbb
RW
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
b214d478
SE
6856fi
6857
81ecdfbb
RW
6858 if test "x$ac_ct_OBJDUMP" = x; then
6859 OBJDUMP="false"
6860 else
6861 case $cross_compiling:$ac_tool_warned in
6862yes:)
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6865ac_tool_warned=yes ;;
6866esac
6867 OBJDUMP=$ac_ct_OBJDUMP
6868 fi
b214d478
SE
6869else
6870 OBJDUMP="$ac_cv_prog_OBJDUMP"
6871fi
6872
6873test -z "$OBJDUMP" && OBJDUMP=objdump
6874
6875
6876
6877
6878
6879
6880
6881
d7040cdb 6882
81ecdfbb
RW
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6884$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6885if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6886 $as_echo_n "(cached) " >&6
ce2cded5 6887else
7357c5b6
AM
6888 lt_cv_file_magic_cmd='$MAGIC_CMD'
6889lt_cv_file_magic_test_file=
6890lt_cv_deplibs_check_method='unknown'
6891# Need to set the preceding variable on all platforms that support
6892# interlibrary dependencies.
6893# 'none' -- dependencies not supported.
6894# `unknown' -- same as none, but documents that we really don't know.
6895# 'pass_all' -- all dependencies passed with no checks.
6896# 'test_compile' -- check by making test program.
6897# 'file_magic [[regex]]' -- check by looking for files in library path
6898# which responds to the $file_magic_cmd with a given extended regex.
6899# If you have `file' or equivalent on your system and you're not sure
6900# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6901
ce2cded5 6902case $host_os in
7357c5b6
AM
6903aix[4-9]*)
6904 lt_cv_deplibs_check_method=pass_all
ce2cded5 6905 ;;
7357c5b6
AM
6906
6907beos*)
6908 lt_cv_deplibs_check_method=pass_all
ce2cded5 6909 ;;
7357c5b6
AM
6910
6911bsdi[45]*)
6912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6913 lt_cv_file_magic_cmd='/usr/bin/file -L'
6914 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6915 ;;
7357c5b6
AM
6916
6917cygwin*)
6918 # func_win32_libid is a shell function defined in ltmain.sh
6919 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6920 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6921 ;;
7357c5b6
AM
6922
6923mingw* | pw32*)
6924 # Base MSYS/MinGW do not provide the 'file' command needed by
6925 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6926 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6927 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6928 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6930 lt_cv_file_magic_cmd='func_win32_libid'
6931 else
6932 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6933 lt_cv_file_magic_cmd='$OBJDUMP -f'
6934 fi
ce2cded5 6935 ;;
7357c5b6 6936
3725885a 6937cegcc*)
b214d478
SE
6938 # use the weaker test based on 'objdump'. See mingw*.
6939 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6940 lt_cv_file_magic_cmd='$OBJDUMP -f'
6941 ;;
6942
7357c5b6
AM
6943darwin* | rhapsody*)
6944 lt_cv_deplibs_check_method=pass_all
ce2cded5 6945 ;;
7357c5b6
AM
6946
6947freebsd* | dragonfly*)
6948 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6949 case $host_cpu in
6950 i*86 )
6951 # Not sure whether the presence of OpenBSD here was a mistake.
6952 # Let's accept both of them until this is cleared up.
6953 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6954 lt_cv_file_magic_cmd=/usr/bin/file
6955 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6956 ;;
6957 esac
6958 else
6959 lt_cv_deplibs_check_method=pass_all
6960 fi
ce2cded5 6961 ;;
7357c5b6
AM
6962
6963gnu*)
6964 lt_cv_deplibs_check_method=pass_all
ce2cded5 6965 ;;
7357c5b6 6966
3725885a
RW
6967haiku*)
6968 lt_cv_deplibs_check_method=pass_all
6969 ;;
6970
7357c5b6
AM
6971hpux10.20* | hpux11*)
6972 lt_cv_file_magic_cmd=/usr/bin/file
6973 case $host_cpu in
6974 ia64*)
6975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6976 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6977 ;;
6978 hppa*64*)
3725885a 6979 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
6980 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6981 ;;
6982 *)
3725885a 6983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6984 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6985 ;;
6986 esac
ce2cded5 6987 ;;
d7040cdb 6988
7357c5b6
AM
6989interix[3-9]*)
6990 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6992 ;;
d7040cdb 6993
7357c5b6
AM
6994irix5* | irix6* | nonstopux*)
6995 case $LD in
6996 *-32|*"-32 ") libmagic=32-bit;;
6997 *-n32|*"-n32 ") libmagic=N32;;
6998 *-64|*"-64 ") libmagic=64-bit;;
6999 *) libmagic=never-match;;
7000 esac
7001 lt_cv_deplibs_check_method=pass_all
7002 ;;
d7040cdb 7003
7357c5b6 7004# This must be Linux ELF.
58e24671 7005linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
7006 lt_cv_deplibs_check_method=pass_all
7007 ;;
d7040cdb 7008
7357c5b6
AM
7009netbsd*)
7010 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7012 else
7013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7014 fi
ce2cded5 7015 ;;
d7040cdb 7016
7357c5b6
AM
7017newos6*)
7018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7019 lt_cv_file_magic_cmd=/usr/bin/file
7020 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7021 ;;
d7040cdb 7022
7357c5b6
AM
7023*nto* | *qnx*)
7024 lt_cv_deplibs_check_method=pass_all
7025 ;;
d7040cdb 7026
7357c5b6
AM
7027openbsd*)
7028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 7030 else
7357c5b6 7031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 7032 fi
7357c5b6 7033 ;;
d7040cdb 7034
7357c5b6
AM
7035osf3* | osf4* | osf5*)
7036 lt_cv_deplibs_check_method=pass_all
7037 ;;
d7040cdb 7038
7357c5b6
AM
7039rdos*)
7040 lt_cv_deplibs_check_method=pass_all
7041 ;;
d7040cdb 7042
7357c5b6
AM
7043solaris*)
7044 lt_cv_deplibs_check_method=pass_all
7045 ;;
d7040cdb 7046
7357c5b6
AM
7047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7048 lt_cv_deplibs_check_method=pass_all
7049 ;;
d7040cdb 7050
7357c5b6
AM
7051sysv4 | sysv4.3*)
7052 case $host_vendor in
7053 motorola)
7054 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]'
7055 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7056 ;;
7057 ncr)
7058 lt_cv_deplibs_check_method=pass_all
7059 ;;
7060 sequent)
7061 lt_cv_file_magic_cmd='/bin/file'
7062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7063 ;;
7064 sni)
7065 lt_cv_file_magic_cmd='/bin/file'
7066 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7067 lt_cv_file_magic_test_file=/lib/libc.so
7068 ;;
7069 siemens)
7070 lt_cv_deplibs_check_method=pass_all
7071 ;;
7072 pc)
7073 lt_cv_deplibs_check_method=pass_all
7074 ;;
7075 esac
7076 ;;
d7040cdb 7077
7357c5b6
AM
7078tpf*)
7079 lt_cv_deplibs_check_method=pass_all
7080 ;;
7081esac
d7040cdb 7082
7357c5b6 7083fi
81ecdfbb
RW
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7085$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
7086file_magic_cmd=$lt_cv_file_magic_cmd
7087deplibs_check_method=$lt_cv_deplibs_check_method
7088test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
7089
7090
7091
7357c5b6
AM
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7103set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7106if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 7107 $as_echo_n "(cached) " >&6
7357c5b6
AM
7108else
7109 if test -n "$AR"; then
7110 ac_cv_prog_AR="$AR" # Let the user override the test.
7111else
7112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113for as_dir in $PATH
7114do
7115 IFS=$as_save_IFS
7116 test -z "$as_dir" && as_dir=.
81ecdfbb 7117 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7119 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7121 break 2
ce2cded5
L
7122 fi
7123done
81ecdfbb
RW
7124 done
7125IFS=$as_save_IFS
d7040cdb 7126
42ecbf5e 7127fi
ce2cded5 7128fi
7357c5b6
AM
7129AR=$ac_cv_prog_AR
7130if test -n "$AR"; then
81ecdfbb
RW
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7132$as_echo "$AR" >&6; }
42ecbf5e 7133else
81ecdfbb
RW
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135$as_echo "no" >&6; }
42ecbf5e
DJ
7136fi
7137
81ecdfbb 7138
7357c5b6
AM
7139fi
7140if test -z "$ac_cv_prog_AR"; then
7141 ac_ct_AR=$AR
7142 # Extract the first word of "ar", so it can be a program name with args.
7143set dummy ar; ac_word=$2
81ecdfbb
RW
7144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7146if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 7147 $as_echo_n "(cached) " >&6
7357c5b6
AM
7148else
7149 if test -n "$ac_ct_AR"; then
7150 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7151else
7152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153for as_dir in $PATH
7154do
7155 IFS=$as_save_IFS
7156 test -z "$as_dir" && as_dir=.
81ecdfbb 7157 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7159 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7161 break 2
7162 fi
7163done
81ecdfbb
RW
7164 done
7165IFS=$as_save_IFS
42ecbf5e 7166
7357c5b6
AM
7167fi
7168fi
7169ac_ct_AR=$ac_cv_prog_ac_ct_AR
7170if test -n "$ac_ct_AR"; then
81ecdfbb
RW
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7172$as_echo "$ac_ct_AR" >&6; }
7357c5b6 7173else
81ecdfbb
RW
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175$as_echo "no" >&6; }
7357c5b6 7176fi
d7040cdb 7177
81ecdfbb
RW
7178 if test "x$ac_ct_AR" = x; then
7179 AR="false"
7180 else
7181 case $cross_compiling:$ac_tool_warned in
7182yes:)
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185ac_tool_warned=yes ;;
7186esac
7187 AR=$ac_ct_AR
7188 fi
7357c5b6
AM
7189else
7190 AR="$ac_cv_prog_AR"
7191fi
d7040cdb 7192
7357c5b6
AM
7193test -z "$AR" && AR=ar
7194test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
7195
7196
7197
20e95c23 7198
d7040cdb 7199
d7040cdb
SE
7200
7201
7202
7203
7204
7205
7357c5b6
AM
7206if test -n "$ac_tool_prefix"; then
7207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7208set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7211if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 7212 $as_echo_n "(cached) " >&6
7357c5b6
AM
7213else
7214 if test -n "$STRIP"; then
7215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
81ecdfbb 7222 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7226 break 2
ce2cded5 7227 fi
7357c5b6 7228done
81ecdfbb
RW
7229 done
7230IFS=$as_save_IFS
d7040cdb 7231
7357c5b6
AM
7232fi
7233fi
7234STRIP=$ac_cv_prog_STRIP
7235if test -n "$STRIP"; then
81ecdfbb
RW
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7237$as_echo "$STRIP" >&6; }
7357c5b6 7238else
81ecdfbb
RW
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240$as_echo "no" >&6; }
7357c5b6
AM
7241fi
7242
81ecdfbb 7243
7357c5b6
AM
7244fi
7245if test -z "$ac_cv_prog_STRIP"; then
7246 ac_ct_STRIP=$STRIP
7247 # Extract the first word of "strip", so it can be a program name with args.
7248set dummy strip; ac_word=$2
81ecdfbb
RW
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7251if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 7252 $as_echo_n "(cached) " >&6
7357c5b6
AM
7253else
7254 if test -n "$ac_ct_STRIP"; then
7255 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7256else
7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258for as_dir in $PATH
7259do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
81ecdfbb 7262 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7264 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7266 break 2
ce2cded5 7267 fi
7357c5b6 7268done
81ecdfbb
RW
7269 done
7270IFS=$as_save_IFS
d7040cdb 7271
7357c5b6
AM
7272fi
7273fi
7274ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7275if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7277$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 7278else
81ecdfbb
RW
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280$as_echo "no" >&6; }
7357c5b6 7281fi
d7040cdb 7282
81ecdfbb
RW
7283 if test "x$ac_ct_STRIP" = x; then
7284 STRIP=":"
7285 else
7286 case $cross_compiling:$ac_tool_warned in
7287yes:)
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7290ac_tool_warned=yes ;;
7291esac
7292 STRIP=$ac_ct_STRIP
7293 fi
7357c5b6
AM
7294else
7295 STRIP="$ac_cv_prog_STRIP"
7296fi
d7040cdb 7297
7357c5b6 7298test -z "$STRIP" && STRIP=:
d7040cdb 7299
d7040cdb
SE
7300
7301
7302
d7040cdb 7303
7357c5b6
AM
7304
7305if test -n "$ac_tool_prefix"; then
7306 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7307set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7310if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 7311 $as_echo_n "(cached) " >&6
ce2cded5 7312else
7357c5b6
AM
7313 if test -n "$RANLIB"; then
7314 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
ce2cded5 7318do
7357c5b6
AM
7319 IFS=$as_save_IFS
7320 test -z "$as_dir" && as_dir=.
81ecdfbb 7321 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7323 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 7325 break 2
ce2cded5 7326 fi
7357c5b6 7327done
81ecdfbb
RW
7328 done
7329IFS=$as_save_IFS
7357c5b6 7330
ce2cded5 7331fi
7357c5b6
AM
7332fi
7333RANLIB=$ac_cv_prog_RANLIB
7334if test -n "$RANLIB"; then
81ecdfbb
RW
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7336$as_echo "$RANLIB" >&6; }
ce2cded5 7337else
81ecdfbb
RW
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
ce2cded5 7340fi
d7040cdb 7341
81ecdfbb 7342
7357c5b6
AM
7343fi
7344if test -z "$ac_cv_prog_RANLIB"; then
7345 ac_ct_RANLIB=$RANLIB
7346 # Extract the first word of "ranlib", so it can be a program name with args.
7347set dummy ranlib; ac_word=$2
81ecdfbb
RW
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7350if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 7351 $as_echo_n "(cached) " >&6
ce2cded5 7352else
7357c5b6
AM
7353 if test -n "$ac_ct_RANLIB"; then
7354 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7355else
7356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
81ecdfbb 7361 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 7363 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
7365 break 2
7366 fi
7367done
81ecdfbb
RW
7368 done
7369IFS=$as_save_IFS
7357c5b6 7370
ce2cded5 7371fi
7357c5b6
AM
7372fi
7373ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7374if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7376$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7377else
81ecdfbb
RW
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379$as_echo "no" >&6; }
ce2cded5 7380fi
d7040cdb 7381
81ecdfbb
RW
7382 if test "x$ac_ct_RANLIB" = x; then
7383 RANLIB=":"
7384 else
7385 case $cross_compiling:$ac_tool_warned in
7386yes:)
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7389ac_tool_warned=yes ;;
7390esac
7391 RANLIB=$ac_ct_RANLIB
7392 fi
7357c5b6
AM
7393else
7394 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7395fi
d7040cdb 7396
7357c5b6 7397test -z "$RANLIB" && RANLIB=:
d7040cdb 7398
7357c5b6
AM
7399
7400
7401
7402
7403
7404# Determine commands to create old-style static archives.
b214d478 7405old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7406old_postinstall_cmds='chmod 644 $oldlib'
7407old_postuninstall_cmds=
7408
7409if test -n "$RANLIB"; then
7410 case $host_os in
7411 openbsd*)
7412 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7413 ;;
7414 *)
7415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7416 ;;
7417 esac
7418 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7419fi
7357c5b6 7420
3725885a
RW
7421case $host_os in
7422 darwin*)
7423 lock_old_archive_extraction=yes ;;
7424 *)
7425 lock_old_archive_extraction=no ;;
7426esac
7427
7428
7429
7430
7431
7432
7357c5b6
AM
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466# If no C compiler was specified, use CC.
7467LTCC=${LTCC-"$CC"}
7468
7469# If no C compiler flags were specified, use CFLAGS.
7470LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7471
7472# Allow CC to be a program name with arguments.
7473compiler=$CC
7474
7475
7476# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7478$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7479if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 7480 $as_echo_n "(cached) " >&6
ce2cded5 7481else
d7040cdb 7482
7357c5b6
AM
7483# These are sane defaults that work on at least a few old systems.
7484# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7485
7357c5b6
AM
7486# Character class describing NM global symbol codes.
7487symcode='[BCDEGRST]'
7488
7489# Regexp to match symbols that can be accessed directly from C.
7490sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7491
7492# Define system-specific variables.
7493case $host_os in
7494aix*)
7495 symcode='[BCDT]'
7496 ;;
b214d478 7497cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7498 symcode='[ABCDGISTW]'
7499 ;;
7500hpux*)
7501 if test "$host_cpu" = ia64; then
7502 symcode='[ABCDEGRST]'
ce2cded5 7503 fi
7357c5b6
AM
7504 ;;
7505irix* | nonstopux*)
7506 symcode='[BCDEGRST]'
7507 ;;
7508osf*)
7509 symcode='[BCDEGQRST]'
7510 ;;
7511solaris*)
7512 symcode='[BDRT]'
7513 ;;
7514sco3.2v5*)
7515 symcode='[DT]'
7516 ;;
7517sysv4.2uw2*)
7518 symcode='[DT]'
7519 ;;
7520sysv5* | sco5v6* | unixware* | OpenUNIX*)
7521 symcode='[ABDT]'
7522 ;;
7523sysv4)
7524 symcode='[DFNSTU]'
7525 ;;
7526esac
d7040cdb 7527
7357c5b6
AM
7528# If we're using GNU nm, then use its standard symbol codes.
7529case `$NM -V 2>&1` in
7530*GNU* | *'with BFD'*)
7531 symcode='[ABCDGIRSTW]' ;;
7532esac
d7040cdb 7533
7357c5b6
AM
7534# Transform an extracted symbol line into a proper C declaration.
7535# Some systems (esp. on ia64) link data and code symbols differently,
7536# so use this general approach.
7537lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7538
7539# Transform an extracted symbol line into symbol name and symbol address
7540lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7541lt_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
7542
7543# Handle CRLF in mingw tool chain
7544opt_cr=
7545case $build_os in
7546mingw*)
7547 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7548 ;;
7549esac
d7040cdb 7550
7357c5b6
AM
7551# Try without a prefix underscore, then with it.
7552for ac_symprfx in "" "_"; do
d7040cdb 7553
7357c5b6
AM
7554 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7555 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7556
7357c5b6
AM
7557 # Write the raw and C identifiers.
7558 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7559 # Fake it for dumpbin and say T for any non-static function
7560 # and D for any global variable.
7561 # Also find C++ and __fastcall symbols from MSVC++,
7562 # which start with @ or ?.
7563 lt_cv_sys_global_symbol_pipe="$AWK '"\
7564" {last_section=section; section=\$ 3};"\
7565" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7566" \$ 0!~/External *\|/{next};"\
7567" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7568" {if(hide[section]) next};"\
7569" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7570" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7571" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7572" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7573" ' prfx=^$ac_symprfx"
7574 else
7575 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7576 fi
d7040cdb 7577
7357c5b6
AM
7578 # Check to see that the pipe works correctly.
7579 pipe_works=no
d7040cdb 7580
7357c5b6
AM
7581 rm -f conftest*
7582 cat > conftest.$ac_ext <<_LT_EOF
7583#ifdef __cplusplus
7584extern "C" {
7585#endif
7586char nm_test_var;
7587void nm_test_func(void);
7588void nm_test_func(void){}
7589#ifdef __cplusplus
20e95c23 7590}
7357c5b6
AM
7591#endif
7592int main(){nm_test_var='a';nm_test_func();return(0);}
7593_LT_EOF
7594
81ecdfbb 7595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7596 (eval $ac_compile) 2>&5
20e95c23 7597 ac_status=$?
81ecdfbb
RW
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
7357c5b6
AM
7600 # Now try to grab the symbols.
7601 nlist=conftest.nm
3725885a
RW
7602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7603 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7604 ac_status=$?
81ecdfbb
RW
7605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7606 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7607 # Try sorting and uniquifying the output.
7608 if sort "$nlist" | uniq > "$nlist"T; then
7609 mv -f "$nlist"T "$nlist"
7610 else
7611 rm -f "$nlist"T
7612 fi
d7040cdb 7613
7357c5b6
AM
7614 # Make sure that we snagged all the symbols we need.
7615 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7616 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7617 cat <<_LT_EOF > conftest.$ac_ext
7618#ifdef __cplusplus
7619extern "C" {
7620#endif
ce2cded5 7621
7357c5b6
AM
7622_LT_EOF
7623 # Now generate the symbol file.
7624 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7625
7357c5b6 7626 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7627
7357c5b6
AM
7628/* The mapping between symbol names and symbols. */
7629const struct {
7630 const char *name;
7631 void *address;
7632}
7633lt__PROGRAM__LTX_preloaded_symbols[] =
7634{
7635 { "@PROGRAM@", (void *) 0 },
7636_LT_EOF
7637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7638 cat <<\_LT_EOF >> conftest.$ac_ext
7639 {0, (void *) 0}
7640};
d7040cdb 7641
7357c5b6
AM
7642/* This works around a problem in FreeBSD linker */
7643#ifdef FREEBSD_WORKAROUND
7644static const void *lt_preloaded_setup() {
7645 return lt__PROGRAM__LTX_preloaded_symbols;
7646}
ce2cded5 7647#endif
42ecbf5e 7648
7357c5b6 7649#ifdef __cplusplus
ce2cded5 7650}
7357c5b6
AM
7651#endif
7652_LT_EOF
7653 # Now try linking the two files.
7654 mv conftest.$ac_objext conftstm.$ac_objext
7655 lt_save_LIBS="$LIBS"
7656 lt_save_CFLAGS="$CFLAGS"
7657 LIBS="conftstm.$ac_objext"
7658 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7660 (eval $ac_link) 2>&5
7661 ac_status=$?
81ecdfbb
RW
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7664 pipe_works=yes
7665 fi
7666 LIBS="$lt_save_LIBS"
7667 CFLAGS="$lt_save_CFLAGS"
7668 else
7669 echo "cannot find nm_test_func in $nlist" >&5
7670 fi
7671 else
7672 echo "cannot find nm_test_var in $nlist" >&5
7673 fi
7674 else
7675 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7676 fi
7677 else
7678 echo "$progname: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7680 fi
b214d478 7681 rm -rf conftest* conftst*
7357c5b6
AM
7682
7683 # Do not use the global_symbol_pipe unless it works.
7684 if test "$pipe_works" = yes; then
7685 break
7686 else
7687 lt_cv_sys_global_symbol_pipe=
7688 fi
7689done
42ecbf5e 7690
ce2cded5 7691fi
7357c5b6
AM
7692
7693if test -z "$lt_cv_sys_global_symbol_pipe"; then
7694 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7695fi
7357c5b6 7696if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7698$as_echo "failed" >&6; }
7357c5b6 7699else
81ecdfbb
RW
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7701$as_echo "ok" >&6; }
ce2cded5 7702fi
e5a52504 7703
d7040cdb 7704
e5a52504 7705
d7040cdb 7706
d7040cdb 7707
d7040cdb 7708
d7040cdb 7709
d7040cdb 7710
d7040cdb 7711
d7040cdb 7712
d7040cdb 7713
d7040cdb 7714
7357c5b6
AM
7715
7716
7717
b214d478
SE
7718
7719
7720
7721
7722
7357c5b6
AM
7723
7724
81ecdfbb
RW
7725# Check whether --enable-libtool-lock was given.
7726if test "${enable_libtool_lock+set}" = set; then :
7727 enableval=$enable_libtool_lock;
7728fi
7357c5b6 7729
7357c5b6
AM
7730test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7731
7732# Some flags need to be propagated to the compiler or linker for good
7733# libtool support.
7734case $host in
7735ia64-*-hpux*)
7736 # Find out which ABI we are using.
7737 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7739 (eval $ac_compile) 2>&5
7740 ac_status=$?
81ecdfbb
RW
7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7742 test $ac_status = 0; }; then
7357c5b6
AM
7743 case `/usr/bin/file conftest.$ac_objext` in
7744 *ELF-32*)
7745 HPUX_IA64_MODE="32"
7746 ;;
7747 *ELF-64*)
7748 HPUX_IA64_MODE="64"
7749 ;;
7750 esac
7751 fi
7752 rm -rf conftest*
7753 ;;
7754*-*-irix6*)
7755 # Find out which ABI we are using.
3725885a 7756 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7758 (eval $ac_compile) 2>&5
7759 ac_status=$?
81ecdfbb
RW
7760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7761 test $ac_status = 0; }; then
7357c5b6
AM
7762 if test "$lt_cv_prog_gnu_ld" = yes; then
7763 case `/usr/bin/file conftest.$ac_objext` in
7764 *32-bit*)
7765 LD="${LD-ld} -melf32bsmip"
7766 ;;
7767 *N32*)
7768 LD="${LD-ld} -melf32bmipn32"
7769 ;;
7770 *64-bit*)
7771 LD="${LD-ld} -melf64bmip"
7772 ;;
7773 esac
7774 else
7775 case `/usr/bin/file conftest.$ac_objext` in
7776 *32-bit*)
7777 LD="${LD-ld} -32"
7778 ;;
7779 *N32*)
7780 LD="${LD-ld} -n32"
7781 ;;
7782 *64-bit*)
7783 LD="${LD-ld} -64"
7784 ;;
7785 esac
7786 fi
7787 fi
7788 rm -rf conftest*
7789 ;;
7790
cc9afea3 7791x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7792s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7793 # Find out which ABI we are using.
7794 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7796 (eval $ac_compile) 2>&5
7797 ac_status=$?
81ecdfbb
RW
7798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7799 test $ac_status = 0; }; then
7357c5b6
AM
7800 case `/usr/bin/file conftest.o` in
7801 *32-bit*)
7802 case $host in
7803 x86_64-*kfreebsd*-gnu)
7804 LD="${LD-ld} -m elf_i386_fbsd"
7805 ;;
7806 x86_64-*linux*)
6d2920c8
L
7807 case `/usr/bin/file conftest.o` in
7808 *x86-64*)
7809 LD="${LD-ld} -m elf32_x86_64"
7810 ;;
7811 *)
7812 LD="${LD-ld} -m elf_i386"
7813 ;;
7814 esac
7357c5b6 7815 ;;
cc9afea3
AM
7816 powerpc64le-*linux*)
7817 LD="${LD-ld} -m elf32lppclinux"
7818 ;;
7819 powerpc64-*linux*)
7357c5b6
AM
7820 LD="${LD-ld} -m elf32ppclinux"
7821 ;;
7822 s390x-*linux*)
7823 LD="${LD-ld} -m elf_s390"
7824 ;;
7825 sparc64-*linux*)
7826 LD="${LD-ld} -m elf32_sparc"
7827 ;;
7828 esac
7829 ;;
7830 *64-bit*)
7831 case $host in
7832 x86_64-*kfreebsd*-gnu)
7833 LD="${LD-ld} -m elf_x86_64_fbsd"
7834 ;;
7835 x86_64-*linux*)
7836 LD="${LD-ld} -m elf_x86_64"
7837 ;;
cc9afea3
AM
7838 powerpcle-*linux*)
7839 LD="${LD-ld} -m elf64lppc"
7840 ;;
7841 powerpc-*linux*)
7357c5b6
AM
7842 LD="${LD-ld} -m elf64ppc"
7843 ;;
7844 s390*-*linux*|s390*-*tpf*)
7845 LD="${LD-ld} -m elf64_s390"
7846 ;;
7847 sparc*-*linux*)
7848 LD="${LD-ld} -m elf64_sparc"
7849 ;;
7850 esac
7851 ;;
7852 esac
7853 fi
7854 rm -rf conftest*
7855 ;;
7856
7857*-*-sco3.2v5*)
7858 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7859 SAVE_CFLAGS="$CFLAGS"
7860 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7862$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7863if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7864 $as_echo_n "(cached) " >&6
ce2cded5 7865else
7357c5b6
AM
7866 ac_ext=c
7867ac_cpp='$CPP $CPPFLAGS'
7868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7870ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871
81ecdfbb 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7873/* end confdefs.h. */
d7040cdb 7874
7357c5b6
AM
7875int
7876main ()
7877{
7878
7879 ;
7880 return 0;
7881}
ce2cded5 7882_ACEOF
81ecdfbb 7883if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7884 lt_cv_cc_needs_belf=yes
ce2cded5 7885else
81ecdfbb 7886 lt_cv_cc_needs_belf=no
ce2cded5 7887fi
81ecdfbb
RW
7888rm -f core conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7890 ac_ext=c
7891ac_cpp='$CPP $CPPFLAGS'
7892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7894ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7895
b214d478 7896fi
81ecdfbb
RW
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7898$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7901 CFLAGS="$SAVE_CFLAGS"
7902 fi
7903 ;;
7904sparc*-*solaris*)
7905 # Find out which ABI we are using.
7906 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7908 (eval $ac_compile) 2>&5
7909 ac_status=$?
81ecdfbb
RW
7910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911 test $ac_status = 0; }; then
b214d478
SE
7912 case `/usr/bin/file conftest.o` in
7913 *64-bit*)
7914 case $lt_cv_prog_gnu_ld in
7915 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7916 *)
7917 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7918 LD="${LD-ld} -64"
7919 fi
7920 ;;
7921 esac
7922 ;;
7923 esac
7924 fi
7925 rm -rf conftest*
7926 ;;
7927esac
7928
7929need_locks="$enable_libtool_lock"
7930
7931
7932 case $host_os in
7933 rhapsody* | darwin*)
7934 if test -n "$ac_tool_prefix"; then
7935 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7936set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7939if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7940 $as_echo_n "(cached) " >&6
b214d478
SE
7941else
7942 if test -n "$DSYMUTIL"; then
7943 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7944else
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
81ecdfbb 7950 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7952 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7954 break 2
7955 fi
7956done
81ecdfbb
RW
7957 done
7958IFS=$as_save_IFS
b214d478
SE
7959
7960fi
7961fi
7962DSYMUTIL=$ac_cv_prog_DSYMUTIL
7963if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7965$as_echo "$DSYMUTIL" >&6; }
b214d478 7966else
81ecdfbb
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
b214d478
SE
7969fi
7970
81ecdfbb 7971
b214d478
SE
7972fi
7973if test -z "$ac_cv_prog_DSYMUTIL"; then
7974 ac_ct_DSYMUTIL=$DSYMUTIL
7975 # Extract the first word of "dsymutil", so it can be a program name with args.
7976set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7979if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7980 $as_echo_n "(cached) " >&6
b214d478
SE
7981else
7982 if test -n "$ac_ct_DSYMUTIL"; then
7983 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988 IFS=$as_save_IFS
7989 test -z "$as_dir" && as_dir=.
81ecdfbb 7990 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7992 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7994 break 2
7995 fi
7996done
81ecdfbb
RW
7997 done
7998IFS=$as_save_IFS
b214d478 7999
b214d478
SE
8000fi
8001fi
8002ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8003if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8005$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 8006else
81ecdfbb
RW
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
b214d478
SE
8009fi
8010
81ecdfbb
RW
8011 if test "x$ac_ct_DSYMUTIL" = x; then
8012 DSYMUTIL=":"
8013 else
8014 case $cross_compiling:$ac_tool_warned in
8015yes:)
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8018ac_tool_warned=yes ;;
8019esac
8020 DSYMUTIL=$ac_ct_DSYMUTIL
8021 fi
b214d478
SE
8022else
8023 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8024fi
8025
8026 if test -n "$ac_tool_prefix"; then
8027 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8028set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8031if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 8032 $as_echo_n "(cached) " >&6
b214d478
SE
8033else
8034 if test -n "$NMEDIT"; then
8035 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8036else
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
81ecdfbb 8042 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8044 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8046 break 2
8047 fi
8048done
81ecdfbb
RW
8049 done
8050IFS=$as_save_IFS
b214d478
SE
8051
8052fi
8053fi
8054NMEDIT=$ac_cv_prog_NMEDIT
8055if test -n "$NMEDIT"; then
81ecdfbb
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8057$as_echo "$NMEDIT" >&6; }
b214d478 8058else
81ecdfbb
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060$as_echo "no" >&6; }
b214d478
SE
8061fi
8062
81ecdfbb 8063
b214d478
SE
8064fi
8065if test -z "$ac_cv_prog_NMEDIT"; then
8066 ac_ct_NMEDIT=$NMEDIT
8067 # Extract the first word of "nmedit", so it can be a program name with args.
8068set dummy nmedit; ac_word=$2
81ecdfbb
RW
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8071if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 8072 $as_echo_n "(cached) " >&6
b214d478
SE
8073else
8074 if test -n "$ac_ct_NMEDIT"; then
8075 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
81ecdfbb 8082 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8084 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8086 break 2
8087 fi
8088done
81ecdfbb
RW
8089 done
8090IFS=$as_save_IFS
b214d478 8091
b214d478
SE
8092fi
8093fi
8094ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8095if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8097$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 8098else
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
b214d478
SE
8101fi
8102
81ecdfbb
RW
8103 if test "x$ac_ct_NMEDIT" = x; then
8104 NMEDIT=":"
8105 else
8106 case $cross_compiling:$ac_tool_warned in
8107yes:)
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8110ac_tool_warned=yes ;;
8111esac
8112 NMEDIT=$ac_ct_NMEDIT
8113 fi
b214d478
SE
8114else
8115 NMEDIT="$ac_cv_prog_NMEDIT"
8116fi
8117
8118 if test -n "$ac_tool_prefix"; then
8119 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8120set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8123if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 8124 $as_echo_n "(cached) " >&6
b214d478
SE
8125else
8126 if test -n "$LIPO"; then
8127 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8128else
8129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
81ecdfbb 8134 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8136 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 8137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8138 break 2
8139 fi
8140done
81ecdfbb
RW
8141 done
8142IFS=$as_save_IFS
b214d478
SE
8143
8144fi
8145fi
8146LIPO=$ac_cv_prog_LIPO
8147if test -n "$LIPO"; then
81ecdfbb
RW
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8149$as_echo "$LIPO" >&6; }
b214d478 8150else
81ecdfbb
RW
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152$as_echo "no" >&6; }
b214d478
SE
8153fi
8154
81ecdfbb 8155
b214d478
SE
8156fi
8157if test -z "$ac_cv_prog_LIPO"; then
8158 ac_ct_LIPO=$LIPO
8159 # Extract the first word of "lipo", so it can be a program name with args.
8160set dummy lipo; ac_word=$2
81ecdfbb
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8163if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 8164 $as_echo_n "(cached) " >&6
b214d478
SE
8165else
8166 if test -n "$ac_ct_LIPO"; then
8167 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8168else
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
81ecdfbb 8174 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8176 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8178 break 2
8179 fi
8180done
81ecdfbb
RW
8181 done
8182IFS=$as_save_IFS
b214d478 8183
b214d478
SE
8184fi
8185fi
8186ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8187if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8189$as_echo "$ac_ct_LIPO" >&6; }
b214d478 8190else
81ecdfbb
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
b214d478
SE
8193fi
8194
81ecdfbb
RW
8195 if test "x$ac_ct_LIPO" = x; then
8196 LIPO=":"
8197 else
8198 case $cross_compiling:$ac_tool_warned in
8199yes:)
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8202ac_tool_warned=yes ;;
8203esac
8204 LIPO=$ac_ct_LIPO
8205 fi
b214d478
SE
8206else
8207 LIPO="$ac_cv_prog_LIPO"
8208fi
8209
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8212set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8215if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 8216 $as_echo_n "(cached) " >&6
b214d478
SE
8217else
8218 if test -n "$OTOOL"; then
8219 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8220else
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
81ecdfbb 8226 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8228 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8230 break 2
8231 fi
8232done
81ecdfbb
RW
8233 done
8234IFS=$as_save_IFS
b214d478
SE
8235
8236fi
8237fi
8238OTOOL=$ac_cv_prog_OTOOL
8239if test -n "$OTOOL"; then
81ecdfbb
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8241$as_echo "$OTOOL" >&6; }
b214d478 8242else
81ecdfbb
RW
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
b214d478
SE
8245fi
8246
81ecdfbb 8247
b214d478
SE
8248fi
8249if test -z "$ac_cv_prog_OTOOL"; then
8250 ac_ct_OTOOL=$OTOOL
8251 # Extract the first word of "otool", so it can be a program name with args.
8252set dummy otool; ac_word=$2
81ecdfbb
RW
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8255if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 8256 $as_echo_n "(cached) " >&6
b214d478
SE
8257else
8258 if test -n "$ac_ct_OTOOL"; then
8259 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8260else
8261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262for as_dir in $PATH
8263do
8264 IFS=$as_save_IFS
8265 test -z "$as_dir" && as_dir=.
81ecdfbb 8266 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8268 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8270 break 2
8271 fi
8272done
81ecdfbb
RW
8273 done
8274IFS=$as_save_IFS
b214d478 8275
b214d478
SE
8276fi
8277fi
8278ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8279if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8281$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 8282else
81ecdfbb
RW
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284$as_echo "no" >&6; }
b214d478
SE
8285fi
8286
81ecdfbb
RW
8287 if test "x$ac_ct_OTOOL" = x; then
8288 OTOOL=":"
8289 else
8290 case $cross_compiling:$ac_tool_warned in
8291yes:)
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294ac_tool_warned=yes ;;
8295esac
8296 OTOOL=$ac_ct_OTOOL
8297 fi
b214d478
SE
8298else
8299 OTOOL="$ac_cv_prog_OTOOL"
8300fi
8301
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8304set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8307if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 8308 $as_echo_n "(cached) " >&6
b214d478
SE
8309else
8310 if test -n "$OTOOL64"; then
8311 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8312else
8313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314for as_dir in $PATH
8315do
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
81ecdfbb 8318 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8320 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8322 break 2
8323 fi
8324done
81ecdfbb
RW
8325 done
8326IFS=$as_save_IFS
b214d478
SE
8327
8328fi
8329fi
8330OTOOL64=$ac_cv_prog_OTOOL64
8331if test -n "$OTOOL64"; then
81ecdfbb
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8333$as_echo "$OTOOL64" >&6; }
b214d478 8334else
81ecdfbb
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
b214d478
SE
8337fi
8338
81ecdfbb 8339
b214d478
SE
8340fi
8341if test -z "$ac_cv_prog_OTOOL64"; then
8342 ac_ct_OTOOL64=$OTOOL64
8343 # Extract the first word of "otool64", so it can be a program name with args.
8344set dummy otool64; ac_word=$2
81ecdfbb
RW
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 8347if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 8348 $as_echo_n "(cached) " >&6
b214d478
SE
8349else
8350 if test -n "$ac_ct_OTOOL64"; then
8351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8352else
8353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8354for as_dir in $PATH
8355do
8356 IFS=$as_save_IFS
8357 test -z "$as_dir" && as_dir=.
81ecdfbb 8358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 8359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 8360 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 8361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
8362 break 2
8363 fi
8364done
81ecdfbb
RW
8365 done
8366IFS=$as_save_IFS
b214d478 8367
b214d478
SE
8368fi
8369fi
8370ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8371if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8373$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8374else
81ecdfbb
RW
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
b214d478
SE
8377fi
8378
81ecdfbb
RW
8379 if test "x$ac_ct_OTOOL64" = x; then
8380 OTOOL64=":"
8381 else
8382 case $cross_compiling:$ac_tool_warned in
8383yes:)
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8386ac_tool_warned=yes ;;
8387esac
8388 OTOOL64=$ac_ct_OTOOL64
8389 fi
b214d478
SE
8390else
8391 OTOOL64="$ac_cv_prog_OTOOL64"
8392fi
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
81ecdfbb
RW
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8421$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8422if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 8423 $as_echo_n "(cached) " >&6
b214d478
SE
8424else
8425 lt_cv_apple_cc_single_mod=no
8426 if test -z "${LT_MULTI_MODULE}"; then
8427 # By default we will add the -single_module flag. You can override
8428 # by either setting the environment variable LT_MULTI_MODULE
8429 # non-empty at configure time, or by adding -multi_module to the
8430 # link flags.
8431 rm -rf libconftest.dylib*
8432 echo "int foo(void){return 1;}" > conftest.c
8433 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8434-dynamiclib -Wl,-single_module conftest.c" >&5
8435 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8436 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8437 _lt_result=$?
8438 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8439 lt_cv_apple_cc_single_mod=yes
8440 else
8441 cat conftest.err >&5
8442 fi
8443 rm -rf libconftest.dylib*
8444 rm -f conftest.*
8445 fi
8446fi
81ecdfbb
RW
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8448$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8450$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8451if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 8452 $as_echo_n "(cached) " >&6
b214d478
SE
8453else
8454 lt_cv_ld_exported_symbols_list=no
8455 save_LDFLAGS=$LDFLAGS
8456 echo "_main" > conftest.sym
8457 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8459/* end confdefs.h. */
8460
8461int
8462main ()
8463{
8464
8465 ;
8466 return 0;
8467}
8468_ACEOF
81ecdfbb 8469if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8470 lt_cv_ld_exported_symbols_list=yes
8471else
81ecdfbb 8472 lt_cv_ld_exported_symbols_list=no
b214d478 8473fi
81ecdfbb
RW
8474rm -f core conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8476 LDFLAGS="$save_LDFLAGS"
8477
8478fi
81ecdfbb
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8480$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8482$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8483if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
8484 $as_echo_n "(cached) " >&6
8485else
8486 lt_cv_ld_force_load=no
8487 cat > conftest.c << _LT_EOF
8488int forced_loaded() { return 2;}
8489_LT_EOF
8490 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8491 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8492 echo "$AR cru libconftest.a conftest.o" >&5
8493 $AR cru libconftest.a conftest.o 2>&5
8494 cat > conftest.c << _LT_EOF
8495int main() { return 0;}
8496_LT_EOF
8497 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8498 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8499 _lt_result=$?
8500 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8501 lt_cv_ld_force_load=yes
8502 else
8503 cat conftest.err >&5
8504 fi
8505 rm -f conftest.err libconftest.a conftest conftest.c
8506 rm -rf conftest.dSYM
8507
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8510$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8511 case $host_os in
8512 rhapsody* | darwin1.[012])
8513 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8514 darwin1.*)
8515 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8516 darwin*) # darwin 5.x on
8517 # if running on 10.5 or later, the deployment target defaults
8518 # to the OS version, if on x86, and 10.4, the deployment
8519 # target defaults to 10.4. Don't you love it?
8520 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8521 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8522 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8523 10.[012][,.]*)
b214d478
SE
8524 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8525 10.*)
8526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8527 esac
8528 ;;
8529 esac
8530 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8531 _lt_dar_single_mod='$single_module'
8532 fi
8533 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8534 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8535 else
8536 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8537 fi
3725885a 8538 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8539 _lt_dsymutil='~$DSYMUTIL $lib || :'
8540 else
8541 _lt_dsymutil=
8542 fi
8543 ;;
8544 esac
8545
b214d478 8546for ac_header in dlfcn.h
81ecdfbb
RW
8547do :
8548 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8549"
d0ac1c44 8550if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b214d478 8551 cat >>confdefs.h <<_ACEOF
81ecdfbb 8552#define HAVE_DLFCN_H 1
b214d478
SE
8553_ACEOF
8554
8555fi
8556
8557done
8558
8559
8560
3725885a
RW
8561
8562
3cb62297 8563
b214d478
SE
8564# Set options
8565
8566
8567
8568 enable_dlopen=no
8569
8570
8571 enable_win32_dll=no
8572
8573
81ecdfbb
RW
8574 # Check whether --enable-shared was given.
8575if test "${enable_shared+set}" = set; then :
8576 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8577 case $enableval in
8578 yes) enable_shared=yes ;;
8579 no) enable_shared=no ;;
8580 *)
8581 enable_shared=no
8582 # Look at the argument we got. We use all the common list separators.
8583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8584 for pkg in $enableval; do
8585 IFS="$lt_save_ifs"
8586 if test "X$pkg" = "X$p"; then
8587 enable_shared=yes
8588 fi
8589 done
8590 IFS="$lt_save_ifs"
8591 ;;
8592 esac
8593else
8594 enable_shared=yes
81ecdfbb 8595fi
b214d478
SE
8596
8597
8598
8599
8600
8601
8602
8603
81ecdfbb
RW
8604
8605 # Check whether --enable-static was given.
8606if test "${enable_static+set}" = set; then :
8607 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8608 case $enableval in
8609 yes) enable_static=yes ;;
8610 no) enable_static=no ;;
8611 *)
8612 enable_static=no
8613 # Look at the argument we got. We use all the common list separators.
8614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615 for pkg in $enableval; do
8616 IFS="$lt_save_ifs"
8617 if test "X$pkg" = "X$p"; then
8618 enable_static=yes
8619 fi
8620 done
8621 IFS="$lt_save_ifs"
8622 ;;
8623 esac
8624else
8625 enable_static=yes
81ecdfbb 8626fi
b214d478
SE
8627
8628
8629
8630
8631
8632
8633
8634
8635
81ecdfbb
RW
8636
8637# Check whether --with-pic was given.
8638if test "${with_pic+set}" = set; then :
8639 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8640else
8641 pic_mode=default
81ecdfbb
RW
8642fi
8643
b214d478
SE
8644
8645test -z "$pic_mode" && pic_mode=default
8646
8647
8648
8649
8650
8651
8652
81ecdfbb
RW
8653 # Check whether --enable-fast-install was given.
8654if test "${enable_fast_install+set}" = set; then :
8655 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8656 case $enableval in
8657 yes) enable_fast_install=yes ;;
8658 no) enable_fast_install=no ;;
8659 *)
8660 enable_fast_install=no
8661 # Look at the argument we got. We use all the common list separators.
8662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8663 for pkg in $enableval; do
8664 IFS="$lt_save_ifs"
8665 if test "X$pkg" = "X$p"; then
8666 enable_fast_install=yes
8667 fi
8668 done
8669 IFS="$lt_save_ifs"
7357c5b6
AM
8670 ;;
8671 esac
b214d478
SE
8672else
8673 enable_fast_install=yes
81ecdfbb
RW
8674fi
8675
ce2cded5 8676
ce2cded5
L
8677
8678
ce2cded5 8679
42ecbf5e 8680
d7040cdb 8681
d7040cdb 8682
d7040cdb 8683
d7040cdb 8684
d7040cdb 8685
ce2cded5
L
8686# This can be used to rebuild libtool when needed
8687LIBTOOL_DEPS="$ltmain"
d7040cdb 8688
ce2cded5
L
8689# Always use our own libtool.
8690LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8691
d7040cdb 8692
d7040cdb 8693
d7040cdb 8694
d7040cdb 8695
d7040cdb 8696
d7040cdb 8697
d7040cdb 8698
d7040cdb 8699
d7040cdb 8700
d7040cdb 8701
d7040cdb 8702
d7040cdb 8703
d7040cdb 8704
d7040cdb 8705
d7040cdb 8706
d7040cdb
SE
8707
8708
8709
8710
8711
8712
8713
3725885a 8714
d7040cdb
SE
8715
8716
ce2cded5 8717test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8718
8719
8720
8721
8722
8723
d7040cdb
SE
8724
8725
8726
8727
8728
8729
8730
8731
ce2cded5
L
8732if test -n "${ZSH_VERSION+set}" ; then
8733 setopt NO_GLOB_SUBST
8734fi
d7040cdb 8735
81ecdfbb
RW
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8737$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8738if ${lt_cv_objdir+:} false; then :
81ecdfbb 8739 $as_echo_n "(cached) " >&6
ce2cded5
L
8740else
8741 rm -f .libs 2>/dev/null
8742mkdir .libs 2>/dev/null
8743if test -d .libs; then
8744 lt_cv_objdir=.libs
8745else
8746 # MS-DOS does not allow filenames that begin with a dot.
8747 lt_cv_objdir=_libs
8748fi
8749rmdir .libs 2>/dev/null
8750fi
81ecdfbb
RW
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8752$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8753objdir=$lt_cv_objdir
d7040cdb
SE
8754
8755
8756
8757
8758
ce2cded5
L
8759cat >>confdefs.h <<_ACEOF
8760#define LT_OBJDIR "$lt_cv_objdir/"
8761_ACEOF
d7040cdb
SE
8762
8763
8764
8765
ce2cded5
L
8766case $host_os in
8767aix3*)
8768 # AIX sometimes has problems with the GCC collect2 program. For some
8769 # reason, if we set the COLLECT_NAMES environment variable, the problems
8770 # vanish in a puff of smoke.
8771 if test "X${COLLECT_NAMES+set}" != Xset; then
8772 COLLECT_NAMES=
8773 export COLLECT_NAMES
8774 fi
8775 ;;
8776esac
d7040cdb 8777
ce2cded5
L
8778# Global variables:
8779ofile=libtool
8780can_build_shared=yes
d7040cdb 8781
ce2cded5
L
8782# All known linkers require a `.a' archive for static linking (except MSVC,
8783# which needs '.lib').
8784libext=a
d7040cdb 8785
ce2cded5 8786with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8787
ce2cded5
L
8788old_CC="$CC"
8789old_CFLAGS="$CFLAGS"
d7040cdb 8790
ce2cded5
L
8791# Set sane defaults for various variables
8792test -z "$CC" && CC=cc
8793test -z "$LTCC" && LTCC=$CC
8794test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8795test -z "$LD" && LD=ld
8796test -z "$ac_objext" && ac_objext=o
d7040cdb 8797
ce2cded5
L
8798for cc_temp in $compiler""; do
8799 case $cc_temp in
8800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8802 \-*) ;;
8803 *) break;;
8804 esac
8805done
3725885a 8806cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8807
8808
ce2cded5
L
8809# Only perform the check for file, if the check method requires it
8810test -z "$MAGIC_CMD" && MAGIC_CMD=file
8811case $deplibs_check_method in
8812file_magic*)
8813 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8815$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8816if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8817 $as_echo_n "(cached) " >&6
ce2cded5
L
8818else
8819 case $MAGIC_CMD in
8820[\\/*] | ?:[\\/]*)
8821 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8822 ;;
8823*)
8824 lt_save_MAGIC_CMD="$MAGIC_CMD"
8825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8826 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8827 for ac_dir in $ac_dummy; do
8828 IFS="$lt_save_ifs"
8829 test -z "$ac_dir" && ac_dir=.
8830 if test -f $ac_dir/${ac_tool_prefix}file; then
8831 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8832 if test -n "$file_magic_test_file"; then
8833 case $deplibs_check_method in
8834 "file_magic "*)
8835 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8837 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8838 $EGREP "$file_magic_regex" > /dev/null; then
8839 :
8840 else
8841 cat <<_LT_EOF 1>&2
d7040cdb 8842
ce2cded5
L
8843*** Warning: the command libtool uses to detect shared libraries,
8844*** $file_magic_cmd, produces output that libtool cannot recognize.
8845*** The result is that libtool may fail to recognize shared libraries
8846*** as such. This will affect the creation of libtool libraries that
8847*** depend on shared libraries, but programs linked with such libtool
8848*** libraries will work regardless of this problem. Nevertheless, you
8849*** may want to report the problem to your system manager and/or to
8850*** bug-libtool@gnu.org
d7040cdb 8851
ce2cded5
L
8852_LT_EOF
8853 fi ;;
8854 esac
8855 fi
8856 break
8857 fi
8858 done
8859 IFS="$lt_save_ifs"
8860 MAGIC_CMD="$lt_save_MAGIC_CMD"
8861 ;;
8862esac
8863fi
d7040cdb 8864
ce2cded5
L
8865MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8866if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8868$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8869else
81ecdfbb
RW
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
ce2cded5 8872fi
d7040cdb
SE
8873
8874
8875
8876
8877
ce2cded5
L
8878if test -z "$lt_cv_path_MAGIC_CMD"; then
8879 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8881$as_echo_n "checking for file... " >&6; }
d0ac1c44 8882if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8883 $as_echo_n "(cached) " >&6
ce2cded5
L
8884else
8885 case $MAGIC_CMD in
8886[\\/*] | ?:[\\/]*)
8887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8888 ;;
8889*)
8890 lt_save_MAGIC_CMD="$MAGIC_CMD"
8891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8893 for ac_dir in $ac_dummy; do
8894 IFS="$lt_save_ifs"
8895 test -z "$ac_dir" && ac_dir=.
8896 if test -f $ac_dir/file; then
8897 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8898 if test -n "$file_magic_test_file"; then
8899 case $deplibs_check_method in
8900 "file_magic "*)
8901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8904 $EGREP "$file_magic_regex" > /dev/null; then
8905 :
8906 else
8907 cat <<_LT_EOF 1>&2
d7040cdb 8908
ce2cded5
L
8909*** Warning: the command libtool uses to detect shared libraries,
8910*** $file_magic_cmd, produces output that libtool cannot recognize.
8911*** The result is that libtool may fail to recognize shared libraries
8912*** as such. This will affect the creation of libtool libraries that
8913*** depend on shared libraries, but programs linked with such libtool
8914*** libraries will work regardless of this problem. Nevertheless, you
8915*** may want to report the problem to your system manager and/or to
8916*** bug-libtool@gnu.org
d7040cdb 8917
ce2cded5
L
8918_LT_EOF
8919 fi ;;
8920 esac
8921 fi
8922 break
8923 fi
8924 done
8925 IFS="$lt_save_ifs"
8926 MAGIC_CMD="$lt_save_MAGIC_CMD"
8927 ;;
8928esac
8929fi
d7040cdb 8930
ce2cded5
L
8931MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8932if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8934$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8935else
81ecdfbb
RW
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937$as_echo "no" >&6; }
ce2cded5 8938fi
d7040cdb
SE
8939
8940
ce2cded5
L
8941 else
8942 MAGIC_CMD=:
8943 fi
8944fi
d7040cdb 8945
ce2cded5
L
8946 fi
8947 ;;
8948esac
d7040cdb 8949
ce2cded5 8950# Use C for the default configuration in the libtool script
d7040cdb 8951
ce2cded5
L
8952lt_save_CC="$CC"
8953ac_ext=c
8954ac_cpp='$CPP $CPPFLAGS'
8955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8958
8959
ce2cded5
L
8960# Source file extension for C test sources.
8961ac_ext=c
d7040cdb 8962
ce2cded5
L
8963# Object file extension for compiled C test sources.
8964objext=o
8965objext=$objext
d7040cdb 8966
ce2cded5
L
8967# Code to be used in simple compile tests
8968lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8969
ce2cded5
L
8970# Code to be used in simple link tests
8971lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8972
8973
8974
8975
8976
8977
8978
ce2cded5
L
8979# If no C compiler was specified, use CC.
8980LTCC=${LTCC-"$CC"}
d7040cdb 8981
ce2cded5
L
8982# If no C compiler flags were specified, use CFLAGS.
8983LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8984
ce2cded5
L
8985# Allow CC to be a program name with arguments.
8986compiler=$CC
d7040cdb 8987
ce2cded5
L
8988# Save the default compiler, since it gets overwritten when the other
8989# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8990compiler_DEFAULT=$CC
d7040cdb 8991
ce2cded5
L
8992# save warnings/boilerplate of simple test code
8993ac_outfile=conftest.$ac_objext
8994echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8995eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8996_lt_compiler_boilerplate=`cat conftest.err`
8997$RM conftest*
d7040cdb 8998
ce2cded5
L
8999ac_outfile=conftest.$ac_objext
9000echo "$lt_simple_link_test_code" >conftest.$ac_ext
9001eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9002_lt_linker_boilerplate=`cat conftest.err`
b214d478 9003$RM -r conftest*
d7040cdb
SE
9004
9005
ce2cded5
L
9006## CAVEAT EMPTOR:
9007## There is no encapsulation within the following macros, do not change
9008## the running order or otherwise move them around unless you know exactly
9009## what you are doing...
9010if test -n "$compiler"; then
d7040cdb 9011
ce2cded5 9012lt_prog_compiler_no_builtin_flag=
d7040cdb 9013
ce2cded5 9014if test "$GCC" = yes; then
3725885a
RW
9015 case $cc_basename in
9016 nvcc*)
9017 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9018 *)
9019 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9020 esac
d7040cdb 9021
81ecdfbb
RW
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9023$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 9024if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 9025 $as_echo_n "(cached) " >&6
ce2cded5
L
9026else
9027 lt_cv_prog_compiler_rtti_exceptions=no
9028 ac_outfile=conftest.$ac_objext
9029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030 lt_compiler_flag="-fno-rtti -fno-exceptions"
9031 # Insert the option either (1) after the last *FLAGS variable, or
9032 # (2) before a word containing "conftest.", or (3) at the end.
9033 # Note that $ac_compile itself does not contain backslashes and begins
9034 # with a dollar sign (not a hyphen), so the echo should work correctly.
9035 # The option is referenced via a variable to avoid confusing sed.
9036 lt_compile=`echo "$ac_compile" | $SED \
9037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9039 -e 's:$: $lt_compiler_flag:'`
3725885a 9040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9041 (eval "$lt_compile" 2>conftest.err)
9042 ac_status=$?
9043 cat conftest.err >&5
3725885a 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9045 if (exit $ac_status) && test -s "$ac_outfile"; then
9046 # The compiler can only warn and ignore the option if not recognized
9047 # So say no if there are warnings other than the usual output.
3725885a 9048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9050 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9051 lt_cv_prog_compiler_rtti_exceptions=yes
9052 fi
9053 fi
9054 $RM conftest*
d7040cdb 9055
ce2cded5 9056fi
81ecdfbb
RW
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9058$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 9059
ce2cded5
L
9060if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9061 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9062else
9063 :
9064fi
d7040cdb 9065
ce2cded5 9066fi
d7040cdb
SE
9067
9068
9069
9070
9071
9072
ce2cded5
L
9073 lt_prog_compiler_wl=
9074lt_prog_compiler_pic=
9075lt_prog_compiler_static=
d7040cdb 9076
81ecdfbb
RW
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9078$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 9079
ce2cded5
L
9080 if test "$GCC" = yes; then
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_static='-static'
d7040cdb 9083
ce2cded5
L
9084 case $host_os in
9085 aix*)
9086 # All AIX code is PIC.
9087 if test "$host_cpu" = ia64; then
9088 # AIX 5 now supports IA64 processor
9089 lt_prog_compiler_static='-Bstatic'
9090 fi
52204357 9091 lt_prog_compiler_pic='-fPIC'
ce2cded5 9092 ;;
d7040cdb 9093
ce2cded5 9094 amigaos*)
b214d478
SE
9095 case $host_cpu in
9096 powerpc)
9097 # see comment about AmigaOS4 .so support
9098 lt_prog_compiler_pic='-fPIC'
9099 ;;
9100 m68k)
9101 # FIXME: we need at least 68020 code to build shared libraries, but
9102 # adding the `-m68020' flag to GCC prevents building anything better,
9103 # like `-m68040'.
9104 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9105 ;;
9106 esac
ce2cded5 9107 ;;
d7040cdb 9108
ce2cded5
L
9109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9110 # PIC is the default for these OSes.
9111 ;;
d7040cdb 9112
b214d478 9113 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9114 # This hack is so that the source file can tell whether it is being
9115 # built for inclusion in a dll (and should export symbols for example).
9116 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9117 # (--disable-auto-import) libraries
9118 lt_prog_compiler_pic='-DDLL_EXPORT'
9119 ;;
d7040cdb 9120
ce2cded5
L
9121 darwin* | rhapsody*)
9122 # PIC is the default on this platform
9123 # Common symbols not allowed in MH_DYLIB files
9124 lt_prog_compiler_pic='-fno-common'
9125 ;;
d7040cdb 9126
3725885a
RW
9127 haiku*)
9128 # PIC is the default for Haiku.
9129 # The "-static" flag exists, but is broken.
9130 lt_prog_compiler_static=
9131 ;;
9132
ce2cded5 9133 hpux*)
b214d478
SE
9134 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9135 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9136 # sets the default TLS model and affects inlining.
ce2cded5 9137 case $host_cpu in
b214d478 9138 hppa*64*)
ce2cded5
L
9139 # +Z the default
9140 ;;
9141 *)
9142 lt_prog_compiler_pic='-fPIC'
9143 ;;
9144 esac
9145 ;;
d7040cdb 9146
ce2cded5
L
9147 interix[3-9]*)
9148 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9149 # Instead, we relocate shared libraries at runtime.
9150 ;;
d7040cdb 9151
ce2cded5
L
9152 msdosdjgpp*)
9153 # Just because we use GCC doesn't mean we suddenly get shared libraries
9154 # on systems that don't support them.
9155 lt_prog_compiler_can_build_shared=no
9156 enable_shared=no
9157 ;;
d7040cdb 9158
ce2cded5
L
9159 *nto* | *qnx*)
9160 # QNX uses GNU C++, but need to define -shared option too, otherwise
9161 # it will coredump.
9162 lt_prog_compiler_pic='-fPIC -shared'
9163 ;;
d7040cdb 9164
ce2cded5
L
9165 sysv4*MP*)
9166 if test -d /usr/nec; then
9167 lt_prog_compiler_pic=-Kconform_pic
9168 fi
9169 ;;
d7040cdb 9170
ce2cded5
L
9171 *)
9172 lt_prog_compiler_pic='-fPIC'
9173 ;;
9174 esac
3725885a
RW
9175
9176 case $cc_basename in
9177 nvcc*) # Cuda Compiler Driver 2.2
9178 lt_prog_compiler_wl='-Xlinker '
9179 lt_prog_compiler_pic='-Xcompiler -fPIC'
9180 ;;
9181 esac
ce2cded5
L
9182 else
9183 # PORTME Check for flag to pass linker flags through the system compiler.
9184 case $host_os in
9185 aix*)
9186 lt_prog_compiler_wl='-Wl,'
9187 if test "$host_cpu" = ia64; then
9188 # AIX 5 now supports IA64 processor
9189 lt_prog_compiler_static='-Bstatic'
9190 else
9191 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9192 fi
9193 ;;
d7040cdb 9194
b214d478 9195 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
9196 # This hack is so that the source file can tell whether it is being
9197 # built for inclusion in a dll (and should export symbols for example).
9198 lt_prog_compiler_pic='-DDLL_EXPORT'
9199 ;;
d7040cdb 9200
ce2cded5
L
9201 hpux9* | hpux10* | hpux11*)
9202 lt_prog_compiler_wl='-Wl,'
9203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9204 # not for PA HP-UX.
9205 case $host_cpu in
9206 hppa*64*|ia64*)
9207 # +Z the default
9208 ;;
9209 *)
9210 lt_prog_compiler_pic='+Z'
9211 ;;
9212 esac
9213 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9214 lt_prog_compiler_static='${wl}-a ${wl}archive'
9215 ;;
d7040cdb 9216
ce2cded5
L
9217 irix5* | irix6* | nonstopux*)
9218 lt_prog_compiler_wl='-Wl,'
9219 # PIC (with -KPIC) is the default.
9220 lt_prog_compiler_static='-non_shared'
9221 ;;
d7040cdb 9222
58e24671 9223 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 9224 case $cc_basename in
b214d478
SE
9225 # old Intel for x86_64 which still supported -KPIC.
9226 ecc*)
ce2cded5
L
9227 lt_prog_compiler_wl='-Wl,'
9228 lt_prog_compiler_pic='-KPIC'
9229 lt_prog_compiler_static='-static'
9230 ;;
b214d478
SE
9231 # icc used to be incompatible with GCC.
9232 # ICC 10 doesn't accept -KPIC any more.
9233 icc* | ifort*)
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-fPIC'
9236 lt_prog_compiler_static='-static'
9237 ;;
9238 # Lahey Fortran 8.1.
9239 lf95*)
9240 lt_prog_compiler_wl='-Wl,'
9241 lt_prog_compiler_pic='--shared'
9242 lt_prog_compiler_static='--static'
9243 ;;
3725885a 9244 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
9245 # Portland Group compilers (*not* the Pentium gcc compiler,
9246 # which looks to be a dead project)
9247 lt_prog_compiler_wl='-Wl,'
9248 lt_prog_compiler_pic='-fpic'
9249 lt_prog_compiler_static='-Bstatic'
9250 ;;
9251 ccc*)
9252 lt_prog_compiler_wl='-Wl,'
9253 # All Alpha code is PIC.
9254 lt_prog_compiler_static='-non_shared'
9255 ;;
3725885a
RW
9256 xl* | bgxl* | bgf* | mpixl*)
9257 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-qpic'
9260 lt_prog_compiler_static='-qstaticlink'
9261 ;;
ce2cded5
L
9262 *)
9263 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
9264 *Sun\ F* | *Sun*Fortran*)
9265 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
9266 lt_prog_compiler_pic='-KPIC'
9267 lt_prog_compiler_static='-Bstatic'
3725885a 9268 lt_prog_compiler_wl=''
ce2cded5 9269 ;;
3725885a
RW
9270 *Sun\ C*)
9271 # Sun C 5.9
ce2cded5
L
9272 lt_prog_compiler_pic='-KPIC'
9273 lt_prog_compiler_static='-Bstatic'
3725885a 9274 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
9275 ;;
9276 esac
9277 ;;
9278 esac
9279 ;;
d7040cdb 9280
ce2cded5
L
9281 newsos6)
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 ;;
d7040cdb 9285
ce2cded5
L
9286 *nto* | *qnx*)
9287 # QNX uses GNU C++, but need to define -shared option too, otherwise
9288 # it will coredump.
9289 lt_prog_compiler_pic='-fPIC -shared'
9290 ;;
d7040cdb 9291
ce2cded5
L
9292 osf3* | osf4* | osf5*)
9293 lt_prog_compiler_wl='-Wl,'
9294 # All OSF/1 code is PIC.
9295 lt_prog_compiler_static='-non_shared'
9296 ;;
d7040cdb 9297
ce2cded5
L
9298 rdos*)
9299 lt_prog_compiler_static='-non_shared'
9300 ;;
d7040cdb 9301
ce2cded5
L
9302 solaris*)
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 case $cc_basename in
9306 f77* | f90* | f95*)
9307 lt_prog_compiler_wl='-Qoption ld ';;
9308 *)
9309 lt_prog_compiler_wl='-Wl,';;
9310 esac
9311 ;;
d7040cdb 9312
ce2cded5
L
9313 sunos4*)
9314 lt_prog_compiler_wl='-Qoption ld '
9315 lt_prog_compiler_pic='-PIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 ;;
d7040cdb 9318
ce2cded5
L
9319 sysv4 | sysv4.2uw2* | sysv4.3*)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='-KPIC'
9322 lt_prog_compiler_static='-Bstatic'
9323 ;;
d7040cdb 9324
ce2cded5
L
9325 sysv4*MP*)
9326 if test -d /usr/nec ;then
9327 lt_prog_compiler_pic='-Kconform_pic'
9328 lt_prog_compiler_static='-Bstatic'
9329 fi
9330 ;;
d7040cdb 9331
ce2cded5
L
9332 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9333 lt_prog_compiler_wl='-Wl,'
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 ;;
d7040cdb 9337
ce2cded5
L
9338 unicos*)
9339 lt_prog_compiler_wl='-Wl,'
9340 lt_prog_compiler_can_build_shared=no
9341 ;;
d7040cdb 9342
ce2cded5
L
9343 uts4*)
9344 lt_prog_compiler_pic='-pic'
9345 lt_prog_compiler_static='-Bstatic'
9346 ;;
d7040cdb 9347
ce2cded5
L
9348 *)
9349 lt_prog_compiler_can_build_shared=no
9350 ;;
9351 esac
9352 fi
d7040cdb 9353
ce2cded5
L
9354case $host_os in
9355 # For platforms which do not support PIC, -DPIC is meaningless:
9356 *djgpp*)
9357 lt_prog_compiler_pic=
9358 ;;
9359 *)
9360 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9361 ;;
9362esac
81ecdfbb
RW
9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9364$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
9365
9366
9367
9368
9369
9370
ce2cded5
L
9371#
9372# Check to make sure the PIC flag actually works.
9373#
9374if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9376$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 9377if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 9378 $as_echo_n "(cached) " >&6
ce2cded5 9379else
b214d478 9380 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9381 ac_outfile=conftest.$ac_objext
9382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9383 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9384 # Insert the option either (1) after the last *FLAGS variable, or
9385 # (2) before a word containing "conftest.", or (3) at the end.
9386 # Note that $ac_compile itself does not contain backslashes and begins
9387 # with a dollar sign (not a hyphen), so the echo should work correctly.
9388 # The option is referenced via a variable to avoid confusing sed.
9389 lt_compile=`echo "$ac_compile" | $SED \
9390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9392 -e 's:$: $lt_compiler_flag:'`
3725885a 9393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9394 (eval "$lt_compile" 2>conftest.err)
9395 ac_status=$?
9396 cat conftest.err >&5
3725885a 9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9398 if (exit $ac_status) && test -s "$ac_outfile"; then
9399 # The compiler can only warn and ignore the option if not recognized
9400 # So say no if there are warnings other than the usual output.
3725885a 9401 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9403 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9404 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9405 fi
9406 fi
9407 $RM conftest*
d7040cdb 9408
ce2cded5 9409fi
81ecdfbb
RW
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9411$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9412
b214d478 9413if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9414 case $lt_prog_compiler_pic in
9415 "" | " "*) ;;
9416 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9417 esac
9418else
9419 lt_prog_compiler_pic=
9420 lt_prog_compiler_can_build_shared=no
9421fi
9422
9423fi
d7040cdb
SE
9424
9425
9426
9427
9428
9429
ce2cded5
L
9430#
9431# Check to make sure the static flag actually works.
9432#
9433wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9435$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 9436if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 9437 $as_echo_n "(cached) " >&6
ce2cded5 9438else
b214d478 9439 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9440 save_LDFLAGS="$LDFLAGS"
9441 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9444 # The linker can only warn and ignore the option if not recognized
9445 # So say no if there are warnings
9446 if test -s conftest.err; then
9447 # Append any errors to the config.log.
9448 cat conftest.err 1>&5
3725885a 9449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9452 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9453 fi
9454 else
b214d478 9455 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9456 fi
9457 fi
b214d478 9458 $RM -r conftest*
ce2cded5 9459 LDFLAGS="$save_LDFLAGS"
d7040cdb 9460
ce2cded5 9461fi
81ecdfbb
RW
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9463$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9464
b214d478 9465if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9466 :
9467else
9468 lt_prog_compiler_static=
9469fi
d7040cdb
SE
9470
9471
9472
9473
9474
9475
9476
81ecdfbb
RW
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9479if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9480 $as_echo_n "(cached) " >&6
ce2cded5
L
9481else
9482 lt_cv_prog_compiler_c_o=no
9483 $RM -r conftest 2>/dev/null
9484 mkdir conftest
9485 cd conftest
9486 mkdir out
9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9488
ce2cded5
L
9489 lt_compiler_flag="-o out/conftest2.$ac_objext"
9490 # Insert the option either (1) after the last *FLAGS variable, or
9491 # (2) before a word containing "conftest.", or (3) at the end.
9492 # Note that $ac_compile itself does not contain backslashes and begins
9493 # with a dollar sign (not a hyphen), so the echo should work correctly.
9494 lt_compile=`echo "$ac_compile" | $SED \
9495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9497 -e 's:$: $lt_compiler_flag:'`
3725885a 9498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9499 (eval "$lt_compile" 2>out/conftest.err)
9500 ac_status=$?
9501 cat out/conftest.err >&5
3725885a 9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9504 then
9505 # The compiler can only warn and ignore the option if not recognized
9506 # So say no if there are warnings
3725885a 9507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9510 lt_cv_prog_compiler_c_o=yes
9511 fi
9512 fi
9513 chmod u+w . 2>&5
9514 $RM conftest*
9515 # SGI C++ compiler will create directory out/ii_files/ for
9516 # template instantiation
9517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9518 $RM out/* && rmdir out
9519 cd ..
9520 $RM -r conftest
9521 $RM conftest*
d7040cdb 9522
ce2cded5 9523fi
81ecdfbb
RW
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9525$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9526
9527
9528
9529
9530
9531
81ecdfbb
RW
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9534if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9535 $as_echo_n "(cached) " >&6
ce2cded5
L
9536else
9537 lt_cv_prog_compiler_c_o=no
9538 $RM -r conftest 2>/dev/null
9539 mkdir conftest
9540 cd conftest
9541 mkdir out
9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9543
ce2cded5
L
9544 lt_compiler_flag="-o out/conftest2.$ac_objext"
9545 # Insert the option either (1) after the last *FLAGS variable, or
9546 # (2) before a word containing "conftest.", or (3) at the end.
9547 # Note that $ac_compile itself does not contain backslashes and begins
9548 # with a dollar sign (not a hyphen), so the echo should work correctly.
9549 lt_compile=`echo "$ac_compile" | $SED \
9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552 -e 's:$: $lt_compiler_flag:'`
3725885a 9553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9554 (eval "$lt_compile" 2>out/conftest.err)
9555 ac_status=$?
9556 cat out/conftest.err >&5
3725885a 9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9559 then
9560 # The compiler can only warn and ignore the option if not recognized
9561 # So say no if there are warnings
3725885a 9562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9565 lt_cv_prog_compiler_c_o=yes
9566 fi
9567 fi
9568 chmod u+w . 2>&5
9569 $RM conftest*
9570 # SGI C++ compiler will create directory out/ii_files/ for
9571 # template instantiation
9572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9573 $RM out/* && rmdir out
9574 cd ..
9575 $RM -r conftest
9576 $RM conftest*
9577
9578fi
81ecdfbb
RW
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9580$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9581
9582
9583
9584
9585hard_links="nottested"
9586if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9587 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9589$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9590 hard_links=yes
9591 $RM conftest*
9592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9593 touch conftest.a
9594 ln conftest.a conftest.b 2>&5 || hard_links=no
9595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9597$as_echo "$hard_links" >&6; }
ce2cded5 9598 if test "$hard_links" = no; then
81ecdfbb
RW
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9600$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9601 need_locks=warn
d7040cdb 9602 fi
d7040cdb 9603else
ce2cded5 9604 need_locks=no
d7040cdb 9605fi
d7040cdb 9606
d7040cdb 9607
d7040cdb 9608
d7040cdb 9609
d7040cdb 9610
d7040cdb 9611
81ecdfbb
RW
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9614
ce2cded5
L
9615 runpath_var=
9616 allow_undefined_flag=
9617 always_export_symbols=no
9618 archive_cmds=
9619 archive_expsym_cmds=
9620 compiler_needs_object=no
9621 enable_shared_with_static_runtimes=no
9622 export_dynamic_flag_spec=
9623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9624 hardcode_automatic=no
9625 hardcode_direct=no
9626 hardcode_direct_absolute=no
9627 hardcode_libdir_flag_spec=
9628 hardcode_libdir_flag_spec_ld=
9629 hardcode_libdir_separator=
9630 hardcode_minus_L=no
9631 hardcode_shlibpath_var=unsupported
9632 inherit_rpath=no
9633 link_all_deplibs=unknown
9634 module_cmds=
9635 module_expsym_cmds=
9636 old_archive_from_new_cmds=
9637 old_archive_from_expsyms_cmds=
9638 thread_safe_flag_spec=
9639 whole_archive_flag_spec=
9640 # include_expsyms should be a list of space-separated symbols to be *always*
9641 # included in the symbol list
9642 include_expsyms=
9643 # exclude_expsyms can be an extended regexp of symbols to exclude
9644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9646 # as well as any symbol that contains `d'.
b214d478 9647 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9649 # platforms (ab)use it in PIC code, but their linkers get confused if
9650 # the symbol is explicitly referenced. Since portable code cannot
9651 # rely on this symbol name, it's probably fine to never include it in
9652 # preloaded symbol tables.
b214d478 9653 # Exclude shared library initialization/finalization symbols.
ce2cded5 9654 extract_expsyms_cmds=
d7040cdb 9655
ce2cded5 9656 case $host_os in
b214d478 9657 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9658 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9659 # When not using gcc, we currently assume that we are using
9660 # Microsoft Visual C++.
9661 if test "$GCC" != yes; then
9662 with_gnu_ld=no
9663 fi
d7040cdb 9664 ;;
ce2cded5
L
9665 interix*)
9666 # we just hope/assume this is gcc and not c89 (= MSVC++)
9667 with_gnu_ld=yes
9668 ;;
9669 openbsd*)
9670 with_gnu_ld=no
d7040cdb
SE
9671 ;;
9672 esac
d7040cdb 9673
ce2cded5 9674 ld_shlibs=yes
3725885a
RW
9675
9676 # On some targets, GNU ld is compatible enough with the native linker
9677 # that we're better off using the native interface for both.
9678 lt_use_gnu_ld_interface=no
ce2cded5 9679 if test "$with_gnu_ld" = yes; then
3725885a
RW
9680 case $host_os in
9681 aix*)
9682 # The AIX port of GNU ld has always aspired to compatibility
9683 # with the native linker. However, as the warning in the GNU ld
9684 # block says, versions before 2.19.5* couldn't really create working
9685 # shared libraries, regardless of the interface used.
9686 case `$LD -v 2>&1` in
9687 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9688 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9689 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9690 *)
9691 lt_use_gnu_ld_interface=yes
9692 ;;
9693 esac
9694 ;;
9695 *)
9696 lt_use_gnu_ld_interface=yes
9697 ;;
9698 esac
9699 fi
9700
9701 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9702 # If archive_cmds runs LD, not CC, wlarc should be empty
9703 wlarc='${wl}'
d7040cdb 9704
ce2cded5
L
9705 # Set some defaults for GNU ld with shared library support. These
9706 # are reset later if shared libraries are not supported. Putting them
9707 # here allows them to be overridden if necessary.
9708 runpath_var=LD_RUN_PATH
9709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710 export_dynamic_flag_spec='${wl}--export-dynamic'
9711 # ancient GNU ld didn't support --whole-archive et. al.
9712 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9713 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9714 else
9715 whole_archive_flag_spec=
9716 fi
9717 supports_anon_versioning=no
9718 case `$LD -v 2>&1` in
3725885a 9719 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9720 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9721 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9722 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9723 *\ 2.11.*) ;; # other 2.11 versions
9724 *) supports_anon_versioning=yes ;;
9725 esac
d7040cdb 9726
ce2cded5
L
9727 # See if GNU ld supports shared libraries.
9728 case $host_os in
50e7d84b 9729 aix[3-9]*)
ce2cded5
L
9730 # On AIX/PPC, the GNU linker is very broken
9731 if test "$host_cpu" != ia64; then
9732 ld_shlibs=no
9733 cat <<_LT_EOF 1>&2
d7040cdb 9734
3725885a 9735*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9736*** to be unable to reliably create shared libraries on AIX.
9737*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9738*** really care for shared libraries, you may want to install binutils
9739*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9740*** You will then need to restart the configuration process.
d7040cdb 9741
ce2cded5
L
9742_LT_EOF
9743 fi
d7040cdb 9744 ;;
d7040cdb 9745
ce2cded5 9746 amigaos*)
b214d478
SE
9747 case $host_cpu in
9748 powerpc)
9749 # see comment about AmigaOS4 .so support
9750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds=''
9752 ;;
9753 m68k)
9754 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)'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_minus_L=yes
9757 ;;
9758 esac
ce2cded5 9759 ;;
d7040cdb 9760
ce2cded5
L
9761 beos*)
9762 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9763 allow_undefined_flag=unsupported
9764 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9765 # support --undefined. This deserves some investigation. FIXME
9766 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 else
9768 ld_shlibs=no
9769 fi
9770 ;;
d7040cdb 9771
b214d478 9772 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9773 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9774 # as there is no search path for DLLs.
9775 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9776 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9777 allow_undefined_flag=unsupported
9778 always_export_symbols=no
9779 enable_shared_with_static_runtimes=yes
9780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9781
9782 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9784 # If the export-symbols file already is a .def file (1st line
9785 # is EXPORTS), use it as is; otherwise, prepend...
9786 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9787 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9788 else
ce2cded5
L
9789 echo EXPORTS > $output_objdir/$soname.def;
9790 cat $export_symbols >> $output_objdir/$soname.def;
9791 fi~
9792 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9793 else
9794 ld_shlibs=no
9795 fi
9796 ;;
d7040cdb 9797
3725885a
RW
9798 haiku*)
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 link_all_deplibs=yes
9801 ;;
9802
ce2cded5
L
9803 interix[3-9]*)
9804 hardcode_direct=no
9805 hardcode_shlibpath_var=no
9806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9807 export_dynamic_flag_spec='${wl}-E'
9808 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9809 # Instead, shared libraries are loaded at an image base (0x10000000 by
9810 # default) and relocated if they conflict, which is a slow very memory
9811 # consuming and fragmenting process. To avoid this, we pick a random,
9812 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9813 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9814 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9815 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'
9816 ;;
d7040cdb 9817
58e24671 9818 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9819 tmp_diet=no
9820 if test "$host_os" = linux-dietlibc; then
9821 case $cc_basename in
9822 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9823 esac
9824 fi
9825 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9826 && test "$tmp_diet" = no
9827 then
6e733cce 9828 tmp_addflag=' $pic_flag'
b214d478 9829 tmp_sharedflag='-shared'
ce2cded5
L
9830 case $cc_basename,$host_cpu in
9831 pgcc*) # Portland Group C compiler
3725885a 9832 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
9833 tmp_addflag=' $pic_flag'
9834 ;;
3725885a
RW
9835 pgf77* | pgf90* | pgf95* | pgfortran*)
9836 # Portland Group f77 and f90 compilers
9837 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
9838 tmp_addflag=' $pic_flag -Mnomain' ;;
9839 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9840 tmp_addflag=' -i_dynamic' ;;
9841 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9842 tmp_addflag=' -i_dynamic -nofor_main' ;;
9843 ifc* | ifort*) # Intel Fortran compiler
9844 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9845 lf95*) # Lahey Fortran 8.1
9846 whole_archive_flag_spec=
9847 tmp_sharedflag='--shared' ;;
3725885a 9848 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9849 tmp_sharedflag='-qmkshrobj'
9850 tmp_addflag= ;;
3725885a
RW
9851 nvcc*) # Cuda Compiler Driver 2.2
9852 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'
9853 compiler_needs_object=yes
9854 ;;
ce2cded5
L
9855 esac
9856 case `$CC -V 2>&1 | sed 5q` in
9857 *Sun\ C*) # Sun C 5.9
3725885a 9858 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
9859 compiler_needs_object=yes
9860 tmp_sharedflag='-G' ;;
9861 *Sun\ F*) # Sun Fortran 8.3
9862 tmp_sharedflag='-G' ;;
ce2cded5
L
9863 esac
9864 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9865
ce2cded5
L
9866 if test "x$supports_anon_versioning" = xyes; then
9867 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9869 echo "local: *; };" >> $output_objdir/$libname.ver~
9870 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9871 fi
b214d478
SE
9872
9873 case $cc_basename in
3725885a 9874 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9875 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9876 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9877 hardcode_libdir_flag_spec=
9878 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9879 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9880 if test "x$supports_anon_versioning" = xyes; then
9881 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9883 echo "local: *; };" >> $output_objdir/$libname.ver~
9884 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9885 fi
9886 ;;
9887 esac
ce2cded5
L
9888 else
9889 ld_shlibs=no
9890 fi
9891 ;;
d7040cdb 9892
ce2cded5
L
9893 netbsd*)
9894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9895 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9896 wlarc=
9897 else
9898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9900 fi
9901 ;;
9902
9903 solaris*)
9904 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9905 ld_shlibs=no
9906 cat <<_LT_EOF 1>&2
9907
9908*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9909*** create shared libraries on Solaris systems. Therefore, libtool
9910*** is disabling shared libraries support. We urge you to upgrade GNU
9911*** binutils to release 2.9.1 or newer. Another option is to modify
9912*** your PATH or compiler configuration so that the native linker is
9913*** used, and then restart.
9914
9915_LT_EOF
9916 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9918 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9919 else
9920 ld_shlibs=no
9921 fi
9922 ;;
9923
9924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9925 case `$LD -v 2>&1` in
9926 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9927 ld_shlibs=no
9928 cat <<_LT_EOF 1>&2
9929
9930*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9931*** reliably create shared libraries on SCO systems. Therefore, libtool
9932*** is disabling shared libraries support. We urge you to upgrade GNU
9933*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9934*** your PATH or compiler configuration so that the native linker is
9935*** used, and then restart.
9936
9937_LT_EOF
9938 ;;
9939 *)
9940 # For security reasons, it is highly recommended that you always
9941 # use absolute paths for naming shared libraries, and exclude the
9942 # DT_RUNPATH tag from executables and libraries. But doing so
9943 # requires that you compile everything twice, which is a pain.
9944 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9948 else
9949 ld_shlibs=no
9950 fi
9951 ;;
9952 esac
9953 ;;
9954
9955 sunos4*)
9956 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9957 wlarc=
9958 hardcode_direct=yes
9959 hardcode_shlibpath_var=no
9960 ;;
9961
9962 *)
9963 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9966 else
9967 ld_shlibs=no
9968 fi
9969 ;;
9970 esac
9971
9972 if test "$ld_shlibs" = no; then
9973 runpath_var=
9974 hardcode_libdir_flag_spec=
9975 export_dynamic_flag_spec=
9976 whole_archive_flag_spec=
9977 fi
9978 else
9979 # PORTME fill in a description of your system's linker (not GNU ld)
9980 case $host_os in
9981 aix3*)
9982 allow_undefined_flag=unsupported
9983 always_export_symbols=yes
9984 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'
9985 # Note: this linker hardcodes the directories in LIBPATH if there
9986 # are no directories specified by -L.
9987 hardcode_minus_L=yes
9988 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9989 # Neither direct hardcoding nor static linking is supported with a
9990 # broken collect2.
9991 hardcode_direct=unsupported
9992 fi
9993 ;;
9994
50e7d84b 9995 aix[4-9]*)
ce2cded5
L
9996 if test "$host_cpu" = ia64; then
9997 # On IA64, the linker does run time linking by default, so we don't
9998 # have to do anything special.
9999 aix_use_runtimelinking=no
10000 exp_sym_flag='-Bexport'
10001 no_entry_flag=""
10002 else
10003 # If we're using GNU nm, then we don't want the "-C" option.
10004 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
10005 # Also, AIX nm treats weak defined symbols like other global
10006 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 10007 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 10008 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 10009 else
5c14705f 10010 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
10011 fi
10012 aix_use_runtimelinking=no
10013
10014 # Test if we are trying to use run time linking or normal
10015 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10016 # need to do runtime linking.
50e7d84b 10017 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
10018 for ld_flag in $LDFLAGS; do
10019 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10020 aix_use_runtimelinking=yes
10021 break
10022 fi
10023 done
10024 ;;
10025 esac
10026
10027 exp_sym_flag='-bexport'
10028 no_entry_flag='-bnoentry'
10029 fi
10030
10031 # When large executables or shared objects are built, AIX ld can
10032 # have problems creating the table of contents. If linking a library
10033 # or program results in "error TOC overflow" add -mminimal-toc to
10034 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10035 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10036
10037 archive_cmds=''
10038 hardcode_direct=yes
10039 hardcode_direct_absolute=yes
10040 hardcode_libdir_separator=':'
10041 link_all_deplibs=yes
10042 file_list_spec='${wl}-f,'
10043
10044 if test "$GCC" = yes; then
10045 case $host_os in aix4.[012]|aix4.[012].*)
10046 # We only want to do this on AIX 4.2 and lower, the check
10047 # below for broken collect2 doesn't work under 4.3+
10048 collect2name=`${CC} -print-prog-name=collect2`
10049 if test -f "$collect2name" &&
10050 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10051 then
10052 # We have reworked collect2
10053 :
10054 else
10055 # We have old collect2
10056 hardcode_direct=unsupported
10057 # It fails to find uninstalled libraries when the uninstalled
10058 # path is not listed in the libpath. Setting hardcode_minus_L
10059 # to unsupported forces relinking
10060 hardcode_minus_L=yes
10061 hardcode_libdir_flag_spec='-L$libdir'
10062 hardcode_libdir_separator=
10063 fi
10064 ;;
10065 esac
10066 shared_flag='-shared'
10067 if test "$aix_use_runtimelinking" = yes; then
10068 shared_flag="$shared_flag "'${wl}-G'
10069 fi
10070 else
10071 # not using gcc
10072 if test "$host_cpu" = ia64; then
10073 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10074 # chokes on -Wl,-G. The following line is correct:
10075 shared_flag='-G'
10076 else
10077 if test "$aix_use_runtimelinking" = yes; then
10078 shared_flag='${wl}-G'
10079 else
10080 shared_flag='${wl}-bM:SRE'
10081 fi
10082 fi
10083 fi
10084
b214d478 10085 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
10086 # It seems that -bexpall does not export symbols beginning with
10087 # underscore (_), so it is better to generate a list of symbols to export.
10088 always_export_symbols=yes
10089 if test "$aix_use_runtimelinking" = yes; then
10090 # Warning - without using the other runtime loading flags (-brtl),
10091 # -berok will link without error, but may produce a broken library.
10092 allow_undefined_flag='-berok'
10093 # Determine the default libpath from the value encoded in an
10094 # empty executable.
81ecdfbb 10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
10096/* end confdefs.h. */
10097
10098int
10099main ()
10100{
10101
10102 ;
10103 return 0;
10104}
10105_ACEOF
81ecdfbb 10106if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10107
ce2cded5
L
10108lt_aix_libpath_sed='
10109 /Import File Strings/,/^$/ {
10110 /^0/ {
10111 s/^0 *\(.*\)$/\1/
10112 p
10113 }
10114 }'
10115aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10116# Check for a 64-bit object if we didn't find anything.
10117if test -z "$aix_libpath"; then
10118 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10119fi
d7040cdb 10120fi
81ecdfbb
RW
10121rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10123if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10124
ce2cded5 10125 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 10126 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
10127 else
10128 if test "$host_cpu" = ia64; then
10129 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10130 allow_undefined_flag="-z nodefs"
10131 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"
10132 else
10133 # Determine the default libpath from the value encoded in an
10134 # empty executable.
81ecdfbb 10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 10136/* end confdefs.h. */
d7040cdb 10137
ce2cded5
L
10138int
10139main ()
10140{
d7040cdb 10141
ce2cded5
L
10142 ;
10143 return 0;
10144}
10145_ACEOF
81ecdfbb 10146if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 10147
ce2cded5
L
10148lt_aix_libpath_sed='
10149 /Import File Strings/,/^$/ {
10150 /^0/ {
10151 s/^0 *\(.*\)$/\1/
10152 p
10153 }
10154 }'
10155aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156# Check for a 64-bit object if we didn't find anything.
10157if test -z "$aix_libpath"; then
10158 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10159fi
ce2cded5 10160fi
81ecdfbb
RW
10161rm -f core conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
ce2cded5 10163if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 10164
ce2cded5
L
10165 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10166 # Warning - without using the other run time loading flags,
10167 # -berok will link without error, but may produce a broken library.
10168 no_undefined_flag=' ${wl}-bernotok'
10169 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
10170 if test "$with_gnu_ld" = yes; then
10171 # We only use this code for GNU lds that support --whole-archive.
10172 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10173 else
10174 # Exported symbols can be pulled into shared objects from archives
10175 whole_archive_flag_spec='$convenience'
10176 fi
ce2cded5
L
10177 archive_cmds_need_lc=yes
10178 # This is similar to how AIX traditionally builds its shared libraries.
10179 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'
10180 fi
10181 fi
10182 ;;
d7040cdb 10183
ce2cded5 10184 amigaos*)
b214d478
SE
10185 case $host_cpu in
10186 powerpc)
10187 # see comment about AmigaOS4 .so support
10188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10189 archive_expsym_cmds=''
10190 ;;
10191 m68k)
10192 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)'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_minus_L=yes
10195 ;;
10196 esac
ce2cded5
L
10197 ;;
10198
10199 bsdi[45]*)
10200 export_dynamic_flag_spec=-rdynamic
10201 ;;
10202
b214d478 10203 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10204 # When not using gcc, we currently assume that we are using
10205 # Microsoft Visual C++.
10206 # hardcode_libdir_flag_spec is actually meaningless, as there is
10207 # no search path for DLLs.
10208 hardcode_libdir_flag_spec=' '
10209 allow_undefined_flag=unsupported
10210 # Tell ltmain to make .lib files, not .a files.
10211 libext=lib
10212 # Tell ltmain to make .dll files, not .so files.
10213 shrext_cmds=".dll"
10214 # FIXME: Setting linknames here is a bad hack.
3725885a 10215 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
10216 # The linker will automatically build a .lib file if we build a DLL.
10217 old_archive_from_new_cmds='true'
10218 # FIXME: Should let the user specify the lib program.
10219 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10220 fix_srcfile_path='`cygpath -w "$srcfile"`'
10221 enable_shared_with_static_runtimes=yes
10222 ;;
10223
10224 darwin* | rhapsody*)
d7040cdb 10225
b214d478
SE
10226
10227 archive_cmds_need_lc=no
10228 hardcode_direct=no
10229 hardcode_automatic=yes
10230 hardcode_shlibpath_var=unsupported
3725885a
RW
10231 if test "$lt_cv_ld_force_load" = "yes"; then
10232 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\"`'
10233 else
10234 whole_archive_flag_spec=''
10235 fi
b214d478
SE
10236 link_all_deplibs=yes
10237 allow_undefined_flag="$_lt_dar_allow_undefined"
10238 case $cc_basename in
10239 ifort*) _lt_dar_can_shared=yes ;;
10240 *) _lt_dar_can_shared=$GCC ;;
10241 esac
10242 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 10243 output_verbose_link_cmd=func_echo_all
b214d478
SE
10244 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10245 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10246 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}"
10247 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}"
10248
10249 else
10250 ld_shlibs=no
10251 fi
10252
ce2cded5 10253 ;;
d7040cdb 10254
ce2cded5
L
10255 dgux*)
10256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 hardcode_shlibpath_var=no
10259 ;;
d7040cdb 10260
ce2cded5
L
10261 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10262 # support. Future versions do this automatically, but an explicit c++rt0.o
10263 # does not break anything, and helps significantly (at the cost of a little
10264 # extra space).
10265 freebsd2.2*)
10266 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10267 hardcode_libdir_flag_spec='-R$libdir'
10268 hardcode_direct=yes
10269 hardcode_shlibpath_var=no
d7040cdb 10270 ;;
d7040cdb 10271
ce2cded5 10272 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 10273 freebsd2.*)
ce2cded5
L
10274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10275 hardcode_direct=yes
10276 hardcode_minus_L=yes
10277 hardcode_shlibpath_var=no
10278 ;;
d7040cdb 10279
ce2cded5
L
10280 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10281 freebsd* | dragonfly*)
10282 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10283 hardcode_libdir_flag_spec='-R$libdir'
10284 hardcode_direct=yes
10285 hardcode_shlibpath_var=no
10286 ;;
d7040cdb 10287
ce2cded5
L
10288 hpux9*)
10289 if test "$GCC" = yes; then
10290 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'
10291 else
10292 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'
10293 fi
10294 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10295 hardcode_libdir_separator=:
10296 hardcode_direct=yes
d7040cdb 10297
ce2cded5
L
10298 # hardcode_minus_L: Not really in the search PATH,
10299 # but as the default location of the library.
10300 hardcode_minus_L=yes
10301 export_dynamic_flag_spec='${wl}-E'
10302 ;;
d7040cdb 10303
ce2cded5 10304 hpux10*)
3725885a 10305 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10306 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10307 else
10308 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10309 fi
10310 if test "$with_gnu_ld" = no; then
10311 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10312 hardcode_libdir_flag_spec_ld='+b $libdir'
10313 hardcode_libdir_separator=:
10314 hardcode_direct=yes
10315 hardcode_direct_absolute=yes
10316 export_dynamic_flag_spec='${wl}-E'
10317 # hardcode_minus_L: Not really in the search PATH,
10318 # but as the default location of the library.
10319 hardcode_minus_L=yes
10320 fi
10321 ;;
d7040cdb 10322
ce2cded5 10323 hpux11*)
3725885a 10324 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
10325 case $host_cpu in
10326 hppa*64*)
10327 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 ;;
10329 ia64*)
b214d478 10330 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
10331 ;;
10332 *)
10333 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10334 ;;
10335 esac
10336 else
10337 case $host_cpu in
10338 hppa*64*)
10339 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10340 ;;
10341 ia64*)
10342 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10343 ;;
10344 *)
3725885a
RW
10345
10346 # Older versions of the 11.00 compiler do not understand -b yet
10347 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10349$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 10350if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
10351 $as_echo_n "(cached) " >&6
10352else
10353 lt_cv_prog_compiler__b=no
10354 save_LDFLAGS="$LDFLAGS"
10355 LDFLAGS="$LDFLAGS -b"
10356 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10358 # The linker can only warn and ignore the option if not recognized
10359 # So say no if there are warnings
10360 if test -s conftest.err; then
10361 # Append any errors to the config.log.
10362 cat conftest.err 1>&5
10363 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10365 if diff conftest.exp conftest.er2 >/dev/null; then
10366 lt_cv_prog_compiler__b=yes
10367 fi
10368 else
10369 lt_cv_prog_compiler__b=yes
10370 fi
10371 fi
10372 $RM -r conftest*
10373 LDFLAGS="$save_LDFLAGS"
10374
10375fi
10376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10377$as_echo "$lt_cv_prog_compiler__b" >&6; }
10378
10379if test x"$lt_cv_prog_compiler__b" = xyes; then
10380 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10381else
10382 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10383fi
10384
ce2cded5
L
10385 ;;
10386 esac
10387 fi
10388 if test "$with_gnu_ld" = no; then
10389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10390 hardcode_libdir_separator=:
d7040cdb 10391
ce2cded5
L
10392 case $host_cpu in
10393 hppa*64*|ia64*)
10394 hardcode_direct=no
10395 hardcode_shlibpath_var=no
10396 ;;
10397 *)
10398 hardcode_direct=yes
10399 hardcode_direct_absolute=yes
10400 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10401
ce2cded5
L
10402 # hardcode_minus_L: Not really in the search PATH,
10403 # but as the default location of the library.
10404 hardcode_minus_L=yes
10405 ;;
10406 esac
10407 fi
10408 ;;
d7040cdb 10409
ce2cded5
L
10410 irix5* | irix6* | nonstopux*)
10411 if test "$GCC" = yes; then
3725885a 10412 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
10413 # Try to use the -exported_symbol ld option, if it does not
10414 # work, assume that -exports_file does not work either and
10415 # implicitly export all symbols.
10416 save_LDFLAGS="$LDFLAGS"
10417 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h. */
ce2cded5
L
10420int foo(void) {}
10421_ACEOF
81ecdfbb 10422if ac_fn_c_try_link "$LINENO"; then :
3725885a 10423 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 10424
ce2cded5 10425fi
81ecdfbb
RW
10426rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10428 LDFLAGS="$save_LDFLAGS"
10429 else
3725885a
RW
10430 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'
10431 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
10432 fi
10433 archive_cmds_need_lc='no'
10434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10435 hardcode_libdir_separator=:
10436 inherit_rpath=yes
10437 link_all_deplibs=yes
10438 ;;
d7040cdb 10439
ce2cded5
L
10440 netbsd*)
10441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10443 else
10444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10445 fi
10446 hardcode_libdir_flag_spec='-R$libdir'
10447 hardcode_direct=yes
10448 hardcode_shlibpath_var=no
10449 ;;
d7040cdb 10450
ce2cded5
L
10451 newsos6)
10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453 hardcode_direct=yes
10454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10455 hardcode_libdir_separator=:
10456 hardcode_shlibpath_var=no
10457 ;;
d7040cdb 10458
ce2cded5
L
10459 *nto* | *qnx*)
10460 ;;
d7040cdb 10461
ce2cded5 10462 openbsd*)
b214d478
SE
10463 if test -f /usr/libexec/ld.so; then
10464 hardcode_direct=yes
10465 hardcode_shlibpath_var=no
10466 hardcode_direct_absolute=yes
10467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10470 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10471 export_dynamic_flag_spec='${wl}-E'
10472 else
10473 case $host_os in
10474 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10475 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10476 hardcode_libdir_flag_spec='-R$libdir'
10477 ;;
10478 *)
10479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10481 ;;
10482 esac
10483 fi
10484 else
10485 ld_shlibs=no
ce2cded5
L
10486 fi
10487 ;;
d7040cdb 10488
ce2cded5
L
10489 os2*)
10490 hardcode_libdir_flag_spec='-L$libdir'
10491 hardcode_minus_L=yes
10492 allow_undefined_flag=unsupported
3725885a 10493 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
10494 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10495 ;;
d7040cdb 10496
ce2cded5
L
10497 osf3*)
10498 if test "$GCC" = yes; then
10499 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10500 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
10501 else
10502 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10503 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
10504 fi
10505 archive_cmds_need_lc='no'
10506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10507 hardcode_libdir_separator=:
10508 ;;
d7040cdb 10509
ce2cded5
L
10510 osf4* | osf5*) # as osf3* with the addition of -msym flag
10511 if test "$GCC" = yes; then
10512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10513 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
10514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10515 else
10516 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10517 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 10518 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 10519 $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 10520
ce2cded5
L
10521 # Both c and cxx compiler support -rpath directly
10522 hardcode_libdir_flag_spec='-rpath $libdir'
10523 fi
10524 archive_cmds_need_lc='no'
10525 hardcode_libdir_separator=:
10526 ;;
d7040cdb 10527
ce2cded5
L
10528 solaris*)
10529 no_undefined_flag=' -z defs'
10530 if test "$GCC" = yes; then
10531 wlarc='${wl}'
10532 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10535 else
10536 case `$CC -V 2>&1` in
10537 *"Compilers 5.0"*)
10538 wlarc=''
10539 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10541 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10542 ;;
10543 *)
10544 wlarc='${wl}'
10545 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10548 ;;
10549 esac
10550 fi
10551 hardcode_libdir_flag_spec='-R$libdir'
10552 hardcode_shlibpath_var=no
10553 case $host_os in
10554 solaris2.[0-5] | solaris2.[0-5].*) ;;
10555 *)
10556 # The compiler driver will combine and reorder linker options,
10557 # but understands `-z linker_flag'. GCC discards it without `$wl',
10558 # but is careful enough not to reorder.
10559 # Supported since Solaris 2.6 (maybe 2.5.1?)
10560 if test "$GCC" = yes; then
10561 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10562 else
10563 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10564 fi
10565 ;;
10566 esac
10567 link_all_deplibs=yes
10568 ;;
d7040cdb 10569
ce2cded5
L
10570 sunos4*)
10571 if test "x$host_vendor" = xsequent; then
10572 # Use $CC to link under sequent, because it throws in some extra .o
10573 # files that make .init and .fini sections work.
10574 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10575 else
10576 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10577 fi
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_direct=yes
10580 hardcode_minus_L=yes
10581 hardcode_shlibpath_var=no
10582 ;;
d7040cdb 10583
ce2cded5
L
10584 sysv4)
10585 case $host_vendor in
10586 sni)
10587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10588 hardcode_direct=yes # is this really true???
10589 ;;
10590 siemens)
10591 ## LD is ld it makes a PLAMLIB
10592 ## CC just makes a GrossModule.
10593 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10594 reload_cmds='$CC -r -o $output$reload_objs'
10595 hardcode_direct=no
10596 ;;
10597 motorola)
10598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10600 ;;
10601 esac
10602 runpath_var='LD_RUN_PATH'
10603 hardcode_shlibpath_var=no
10604 ;;
d7040cdb 10605
ce2cded5
L
10606 sysv4.3*)
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_shlibpath_var=no
10609 export_dynamic_flag_spec='-Bexport'
10610 ;;
d7040cdb 10611
ce2cded5
L
10612 sysv4*MP*)
10613 if test -d /usr/nec; then
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_shlibpath_var=no
10616 runpath_var=LD_RUN_PATH
10617 hardcode_runpath_var=yes
10618 ld_shlibs=yes
10619 fi
10620 ;;
d7040cdb 10621
ce2cded5
L
10622 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10623 no_undefined_flag='${wl}-z,text'
10624 archive_cmds_need_lc=no
10625 hardcode_shlibpath_var=no
10626 runpath_var='LD_RUN_PATH'
d7040cdb 10627
ce2cded5
L
10628 if test "$GCC" = yes; then
10629 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631 else
10632 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 fi
10635 ;;
d7040cdb 10636
ce2cded5
L
10637 sysv5* | sco3.2v5* | sco5v6*)
10638 # Note: We can NOT use -z defs as we might desire, because we do not
10639 # link with -lc, and that would cause any symbols used from libc to
10640 # always be unresolved, which means just about no library would
10641 # ever link correctly. If we're not using GNU ld we use -z text
10642 # though, which does catch some bad symbols but isn't as heavy-handed
10643 # as -z defs.
10644 no_undefined_flag='${wl}-z,text'
10645 allow_undefined_flag='${wl}-z,nodefs'
10646 archive_cmds_need_lc=no
10647 hardcode_shlibpath_var=no
10648 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10649 hardcode_libdir_separator=':'
10650 link_all_deplibs=yes
10651 export_dynamic_flag_spec='${wl}-Bexport'
10652 runpath_var='LD_RUN_PATH'
d7040cdb 10653
ce2cded5
L
10654 if test "$GCC" = yes; then
10655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 fi
10661 ;;
d7040cdb 10662
ce2cded5
L
10663 uts4*)
10664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_libdir_flag_spec='-L$libdir'
10666 hardcode_shlibpath_var=no
10667 ;;
d7040cdb 10668
ce2cded5
L
10669 *)
10670 ld_shlibs=no
10671 ;;
10672 esac
d7040cdb 10673
ce2cded5
L
10674 if test x$host_vendor = xsni; then
10675 case $host in
10676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10677 export_dynamic_flag_spec='${wl}-Blargedynsym'
10678 ;;
10679 esac
10680 fi
10681 fi
d7040cdb 10682
81ecdfbb
RW
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10684$as_echo "$ld_shlibs" >&6; }
ce2cded5 10685test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10686
ce2cded5 10687with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
ce2cded5
L
10703#
10704# Do we need to explicitly link libc?
10705#
10706case "x$archive_cmds_need_lc" in
10707x|xyes)
10708 # Assume -lc should be added
10709 archive_cmds_need_lc=yes
d7040cdb 10710
ce2cded5
L
10711 if test "$enable_shared" = yes && test "$GCC" = yes; then
10712 case $archive_cmds in
10713 *'~'*)
10714 # FIXME: we may have to deal with multi-command sequences.
10715 ;;
10716 '$CC '*)
10717 # Test whether the compiler implicitly links with -lc since on some
10718 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10719 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10721$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10722if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10723 $as_echo_n "(cached) " >&6
39144654
RW
10724else
10725 $RM conftest*
10726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10727
81ecdfbb 10728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10729 (eval $ac_compile) 2>&5
10730 ac_status=$?
81ecdfbb
RW
10731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10732 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10733 soname=conftest
10734 lib=conftest
10735 libobjs=conftest.$ac_objext
10736 deplibs=
10737 wl=$lt_prog_compiler_wl
10738 pic_flag=$lt_prog_compiler_pic
10739 compiler_flags=-v
10740 linker_flags=-v
10741 verstring=
10742 output_objdir=.
10743 libname=conftest
10744 lt_save_allow_undefined_flag=$allow_undefined_flag
10745 allow_undefined_flag=
81ecdfbb 10746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10747 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10748 ac_status=$?
81ecdfbb
RW
10749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750 test $ac_status = 0; }
39144654
RW
10751 then
10752 lt_cv_archive_cmds_need_lc=no
10753 else
10754 lt_cv_archive_cmds_need_lc=yes
10755 fi
10756 allow_undefined_flag=$lt_save_allow_undefined_flag
10757 else
10758 cat conftest.err 1>&5
10759 fi
10760 $RM conftest*
10761
10762fi
81ecdfbb
RW
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10764$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10765 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10766 ;;
10767 esac
10768 fi
10769 ;;
10770esac
d7040cdb
SE
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
d7040cdb 10798
d7040cdb 10799
d7040cdb
SE
10800
10801
10802
10803
10804
10805
d7040cdb 10806
d7040cdb 10807
d7040cdb 10808
d7040cdb 10809
d7040cdb 10810
d7040cdb 10811
d7040cdb 10812
d7040cdb 10813
d7040cdb 10814
d7040cdb 10815
d7040cdb 10816
d7040cdb 10817
d7040cdb 10818
d7040cdb 10819
d7040cdb 10820
d7040cdb 10821
d7040cdb 10822
d7040cdb 10823
d7040cdb 10824
d7040cdb 10825
d7040cdb 10826
d7040cdb 10827
d7040cdb 10828
d7040cdb 10829
d7040cdb 10830
d7040cdb 10831
d7040cdb 10832
d7040cdb 10833
ce2cded5
L
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
81ecdfbb
RW
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10929$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10930
10931if test "$GCC" = yes; then
ce2cded5
L
10932 case $host_os in
10933 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10934 *) lt_awk_arg="/^libraries:/" ;;
10935 esac
3725885a
RW
10936 case $host_os in
10937 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10938 *) lt_sed_strip_eq="s,=/,/,g" ;;
10939 esac
10940 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10941 case $lt_search_path_spec in
10942 *\;*)
ce2cded5
L
10943 # if the path contains ";" then we assume it to be the separator
10944 # otherwise default to the standard path separator (i.e. ":") - it is
10945 # assumed that no part of a normal pathname contains ";" but that should
10946 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10947 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10948 ;;
10949 *)
10950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10951 ;;
10952 esac
ce2cded5
L
10953 # Ok, now we have the path, separated by spaces, we can step through it
10954 # and add multilib dir if necessary.
10955 lt_tmp_lt_search_path_spec=
10956 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10957 for lt_sys_path in $lt_search_path_spec; do
10958 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10959 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10960 else
10961 test -d "$lt_sys_path" && \
10962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10963 fi
10964 done
3725885a 10965 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10966BEGIN {RS=" "; FS="/|\n";} {
10967 lt_foo="";
10968 lt_count=0;
10969 for (lt_i = NF; lt_i > 0; lt_i--) {
10970 if ($lt_i != "" && $lt_i != ".") {
10971 if ($lt_i == "..") {
10972 lt_count++;
10973 } else {
10974 if (lt_count == 0) {
10975 lt_foo="/" $lt_i lt_foo;
10976 } else {
10977 lt_count--;
10978 }
10979 }
10980 }
10981 }
10982 if (lt_foo != "") { lt_freq[lt_foo]++; }
10983 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10984}'`
3725885a
RW
10985 # AWK program above erroneously prepends '/' to C:/dos/paths
10986 # for these hosts.
10987 case $host_os in
10988 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10989 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10990 esac
10991 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10992else
ce2cded5
L
10993 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10994fi
10995library_names_spec=
10996libname_spec='lib$name'
10997soname_spec=
10998shrext_cmds=".so"
10999postinstall_cmds=
11000postuninstall_cmds=
11001finish_cmds=
11002finish_eval=
11003shlibpath_var=
11004shlibpath_overrides_runpath=unknown
11005version_type=none
11006dynamic_linker="$host_os ld.so"
11007sys_lib_dlsearch_path_spec="/lib /usr/lib"
11008need_lib_prefix=unknown
11009hardcode_into_libs=no
11010
11011# when you set need_version to no, make sure it does not cause -set_version
11012# flags to be left without arguments
11013need_version=unknown
11014
11015case $host_os in
11016aix3*)
11017 version_type=linux
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11019 shlibpath_var=LIBPATH
11020
11021 # AIX 3 has no versioning support, so we append a major version to the name.
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 ;;
11024
50e7d84b 11025aix[4-9]*)
ce2cded5
L
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 hardcode_into_libs=yes
11030 if test "$host_cpu" = ia64; then
11031 # AIX 5 supports IA64
11032 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 else
11035 # With GCC up to 2.95.x, collect2 would create an import file
11036 # for dependence libraries. The import file would start with
11037 # the line `#! .'. This would cause the generated library to
11038 # depend on `.', always an invalid library. This was fixed in
11039 # development snapshots of GCC prior to 3.0.
11040 case $host_os in
11041 aix4 | aix4.[01] | aix4.[01].*)
11042 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11043 echo ' yes '
11044 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11045 :
11046 else
11047 can_build_shared=no
11048 fi
11049 ;;
11050 esac
11051 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11052 # soname into executable. Probably we can add versioning support to
11053 # collect2, so additional links can be useful in future.
11054 if test "$aix_use_runtimelinking" = yes; then
11055 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11056 # instead of lib<name>.a to let people know that these are not
11057 # typical AIX shared libraries.
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 else
11060 # We preserve .a as extension for shared libraries through AIX4.2
11061 # and later when we are not doing run time linking.
11062 library_names_spec='${libname}${release}.a $libname.a'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 fi
11065 shlibpath_var=LIBPATH
11066 fi
11067 ;;
11068
11069amigaos*)
b214d478
SE
11070 case $host_cpu in
11071 powerpc)
11072 # Since July 2007 AmigaOS4 officially supports .so libraries.
11073 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 ;;
11076 m68k)
ce2cded5
L
11077 library_names_spec='$libname.ixlibrary $libname.a'
11078 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 11079 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
11080 ;;
11081 esac
ce2cded5
L
11082 ;;
11083
11084beos*)
11085 library_names_spec='${libname}${shared_ext}'
11086 dynamic_linker="$host_os ld.so"
11087 shlibpath_var=LIBRARY_PATH
11088 ;;
11089
11090bsdi[45]*)
11091 version_type=linux
11092 need_version=no
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11098 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11099 # the default ld.so.conf also contains /usr/contrib/lib and
11100 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11101 # libtool to hard-code these into programs
11102 ;;
11103
b214d478 11104cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
11105 version_type=windows
11106 shrext_cmds=".dll"
11107 need_version=no
11108 need_lib_prefix=no
11109
b214d478
SE
11110 case $GCC,$host_os in
11111 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
11112 library_names_spec='$libname.dll.a'
11113 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11114 postinstall_cmds='base_file=`basename \${file}`~
11115 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11116 dldir=$destdir/`dirname \$dlpath`~
11117 test -d \$dldir || mkdir -p \$dldir~
11118 $install_prog $dir/$dlname \$dldir/$dlname~
11119 chmod a+x \$dldir/$dlname~
11120 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11121 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11122 fi'
11123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11124 dlpath=$dir/\$dldll~
11125 $RM \$dlpath'
11126 shlibpath_overrides_runpath=yes
11127
11128 case $host_os in
11129 cygwin*)
11130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11131 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
11132
11133 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 11134 ;;
b214d478 11135 mingw* | cegcc*)
ce2cded5
L
11136 # MinGW DLLs use traditional 'lib' prefix
11137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
11138 ;;
11139 pw32*)
11140 # pw32 DLLs use 'pw' prefix rather than 'lib'
11141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11142 ;;
11143 esac
11144 ;;
11145
11146 *)
11147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11148 ;;
11149 esac
11150 dynamic_linker='Win32 ld.exe'
11151 # FIXME: first we should search . and the directory the executable is in
11152 shlibpath_var=PATH
11153 ;;
11154
11155darwin* | rhapsody*)
11156 dynamic_linker="$host_os dyld"
11157 version_type=darwin
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11161 soname_spec='${libname}${release}${major}$shared_ext'
11162 shlibpath_overrides_runpath=yes
11163 shlibpath_var=DYLD_LIBRARY_PATH
11164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11165
11166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11168 ;;
11169
11170dgux*)
11171 version_type=linux
11172 need_lib_prefix=no
11173 need_version=no
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11175 soname_spec='${libname}${release}${shared_ext}$major'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 ;;
11178
ce2cded5
L
11179freebsd* | dragonfly*)
11180 # DragonFly does not have aout. When/if they implement a new
11181 # versioning mechanism, adjust this.
11182 if test -x /usr/bin/objformat; then
11183 objformat=`/usr/bin/objformat`
11184 else
11185 case $host_os in
6d2920c8 11186 freebsd[23].*) objformat=aout ;;
ce2cded5
L
11187 *) objformat=elf ;;
11188 esac
11189 fi
11190 version_type=freebsd-$objformat
11191 case $version_type in
11192 freebsd-elf*)
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11194 need_version=no
11195 need_lib_prefix=no
11196 ;;
11197 freebsd-*)
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11199 need_version=yes
11200 ;;
11201 esac
11202 shlibpath_var=LD_LIBRARY_PATH
11203 case $host_os in
6d2920c8 11204 freebsd2.*)
ce2cded5
L
11205 shlibpath_overrides_runpath=yes
11206 ;;
11207 freebsd3.[01]* | freebsdelf3.[01]*)
11208 shlibpath_overrides_runpath=yes
11209 hardcode_into_libs=yes
11210 ;;
11211 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11212 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 ;;
11216 *) # from 4.6 on, and DragonFly
11217 shlibpath_overrides_runpath=yes
11218 hardcode_into_libs=yes
11219 ;;
11220 esac
11221 ;;
11222
11223gnu*)
11224 version_type=linux
11225 need_lib_prefix=no
11226 need_version=no
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 hardcode_into_libs=yes
11231 ;;
11232
3725885a
RW
11233haiku*)
11234 version_type=linux
11235 need_lib_prefix=no
11236 need_version=no
11237 dynamic_linker="$host_os runtime_loader"
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11243 hardcode_into_libs=yes
11244 ;;
11245
ce2cded5
L
11246hpux9* | hpux10* | hpux11*)
11247 # Give a soname corresponding to the major version so that dld.sl refuses to
11248 # link against other versions.
11249 version_type=sunos
11250 need_lib_prefix=no
11251 need_version=no
11252 case $host_cpu in
11253 ia64*)
11254 shrext_cmds='.so'
11255 hardcode_into_libs=yes
11256 dynamic_linker="$host_os dld.so"
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 if test "X$HPUX_IA64_MODE" = X32; then
11262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11263 else
11264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11265 fi
11266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11267 ;;
11268 hppa*64*)
11269 shrext_cmds='.sl'
11270 hardcode_into_libs=yes
11271 dynamic_linker="$host_os dld.sl"
11272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11278 ;;
11279 *)
11280 shrext_cmds='.sl'
11281 dynamic_linker="$host_os dld.sl"
11282 shlibpath_var=SHLIB_PATH
11283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 ;;
11287 esac
3725885a 11288 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 11289 postinstall_cmds='chmod 555 $lib'
3725885a
RW
11290 # or fails outright, so override atomically:
11291 install_override_mode=555
ce2cded5
L
11292 ;;
11293
11294interix[3-9]*)
11295 version_type=linux
11296 need_lib_prefix=no
11297 need_version=no
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 shlibpath_overrides_runpath=no
11303 hardcode_into_libs=yes
11304 ;;
11305
11306irix5* | irix6* | nonstopux*)
11307 case $host_os in
11308 nonstopux*) version_type=nonstopux ;;
11309 *)
11310 if test "$lt_cv_prog_gnu_ld" = yes; then
11311 version_type=linux
11312 else
11313 version_type=irix
11314 fi ;;
11315 esac
11316 need_lib_prefix=no
11317 need_version=no
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11320 case $host_os in
11321 irix5* | nonstopux*)
11322 libsuff= shlibsuff=
11323 ;;
11324 *)
11325 case $LD in # libtool.m4 will add one of these switches to LD
11326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11327 libsuff= shlibsuff= libmagic=32-bit;;
11328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11329 libsuff=32 shlibsuff=N32 libmagic=N32;;
11330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11332 *) libsuff= shlibsuff= libmagic=never-match;;
11333 esac
11334 ;;
11335 esac
11336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11337 shlibpath_overrides_runpath=no
11338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11340 hardcode_into_libs=yes
11341 ;;
11342
11343# No shared lib support for Linux oldld, aout, or coff.
11344linux*oldld* | linux*aout* | linux*coff*)
11345 dynamic_linker=no
11346 ;;
11347
11348# This must be Linux ELF.
58e24671 11349linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
11350 version_type=linux
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=no
39144654 11358
ce2cded5 11359 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 11360 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 11361 $as_echo_n "(cached) " >&6
39144654
RW
11362else
11363 lt_cv_shlibpath_overrides_runpath=no
11364 save_LDFLAGS=$LDFLAGS
11365 save_libdir=$libdir
11366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11369/* end confdefs.h. */
11370
d7040cdb
SE
11371int
11372main ()
11373{
ce2cded5 11374
d7040cdb
SE
11375 ;
11376 return 0;
11377}
11378_ACEOF
81ecdfbb
RW
11379if ac_fn_c_try_link "$LINENO"; then :
11380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11381 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11382fi
d7040cdb 11383fi
81ecdfbb
RW
11384rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11386 LDFLAGS=$save_LDFLAGS
11387 libdir=$save_libdir
11388
11389fi
11390
11391 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11392
ce2cded5
L
11393 # This implies no fast_install, which is unacceptable.
11394 # Some rework will be needed to allow for fast_install
11395 # before this can be enabled.
11396 hardcode_into_libs=yes
d7040cdb 11397
ce2cded5
L
11398 # Append ld.so.conf contents to the search path
11399 if test -f /etc/ld.so.conf; then
3725885a 11400 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
11401 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11402 fi
d7040cdb 11403
ce2cded5
L
11404 # We used to test for /lib/ld.so.1 and disable shared libraries on
11405 # powerpc, because MkLinux only supported shared libraries with the
11406 # GNU dynamic linker. Since this was broken with cross compilers,
11407 # most powerpc-linux boxes support dynamic linking these days and
11408 # people can always --disable-shared, the test was removed, and we
11409 # assume the GNU/Linux dynamic linker is in use.
11410 dynamic_linker='GNU/Linux ld.so'
11411 ;;
d7040cdb 11412
ce2cded5
L
11413netbsd*)
11414 version_type=sunos
11415 need_lib_prefix=no
11416 need_version=no
11417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11420 dynamic_linker='NetBSD (a.out) ld.so'
11421 else
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11423 soname_spec='${libname}${release}${shared_ext}$major'
11424 dynamic_linker='NetBSD ld.elf_so'
11425 fi
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=yes
11428 hardcode_into_libs=yes
11429 ;;
d7040cdb 11430
ce2cded5
L
11431newsos6)
11432 version_type=linux
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 shlibpath_overrides_runpath=yes
11436 ;;
d7040cdb 11437
ce2cded5
L
11438*nto* | *qnx*)
11439 version_type=qnx
11440 need_lib_prefix=no
11441 need_version=no
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 shlibpath_var=LD_LIBRARY_PATH
11445 shlibpath_overrides_runpath=no
11446 hardcode_into_libs=yes
11447 dynamic_linker='ldqnx.so'
11448 ;;
d7040cdb 11449
ce2cded5
L
11450openbsd*)
11451 version_type=sunos
11452 sys_lib_dlsearch_path_spec="/usr/lib"
11453 need_lib_prefix=no
11454 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11455 case $host_os in
11456 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11457 *) need_version=no ;;
11458 esac
11459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11461 shlibpath_var=LD_LIBRARY_PATH
11462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11463 case $host_os in
11464 openbsd2.[89] | openbsd2.[89].*)
11465 shlibpath_overrides_runpath=no
11466 ;;
11467 *)
11468 shlibpath_overrides_runpath=yes
11469 ;;
11470 esac
11471 else
11472 shlibpath_overrides_runpath=yes
11473 fi
11474 ;;
d7040cdb 11475
ce2cded5
L
11476os2*)
11477 libname_spec='$name'
11478 shrext_cmds=".dll"
11479 need_lib_prefix=no
11480 library_names_spec='$libname${shared_ext} $libname.a'
11481 dynamic_linker='OS/2 ld.exe'
11482 shlibpath_var=LIBPATH
11483 ;;
d7040cdb 11484
ce2cded5
L
11485osf3* | osf4* | osf5*)
11486 version_type=osf
11487 need_lib_prefix=no
11488 need_version=no
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 shlibpath_var=LD_LIBRARY_PATH
11492 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11493 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11494 ;;
d7040cdb 11495
ce2cded5
L
11496rdos*)
11497 dynamic_linker=no
11498 ;;
d7040cdb 11499
ce2cded5
L
11500solaris*)
11501 version_type=linux
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11509 # ldd complains unless libraries are executable
11510 postinstall_cmds='chmod +x $lib'
11511 ;;
d7040cdb 11512
ce2cded5
L
11513sunos4*)
11514 version_type=sunos
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11517 shlibpath_var=LD_LIBRARY_PATH
11518 shlibpath_overrides_runpath=yes
11519 if test "$with_gnu_ld" = yes; then
11520 need_lib_prefix=no
11521 fi
11522 need_version=yes
11523 ;;
d7040cdb 11524
ce2cded5
L
11525sysv4 | sysv4.3*)
11526 version_type=linux
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 soname_spec='${libname}${release}${shared_ext}$major'
11529 shlibpath_var=LD_LIBRARY_PATH
11530 case $host_vendor in
11531 sni)
11532 shlibpath_overrides_runpath=no
11533 need_lib_prefix=no
11534 runpath_var=LD_RUN_PATH
11535 ;;
11536 siemens)
11537 need_lib_prefix=no
11538 ;;
11539 motorola)
11540 need_lib_prefix=no
11541 need_version=no
11542 shlibpath_overrides_runpath=no
11543 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11544 ;;
11545 esac
11546 ;;
d7040cdb 11547
ce2cded5
L
11548sysv4*MP*)
11549 if test -d /usr/nec ;then
11550 version_type=linux
11551 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11552 soname_spec='$libname${shared_ext}.$major'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 fi
11555 ;;
d7040cdb 11556
ce2cded5
L
11557sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11558 version_type=freebsd-elf
11559 need_lib_prefix=no
11560 need_version=no
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 shlibpath_var=LD_LIBRARY_PATH
11564 shlibpath_overrides_runpath=yes
11565 hardcode_into_libs=yes
11566 if test "$with_gnu_ld" = yes; then
11567 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11568 else
11569 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11570 case $host_os in
11571 sco3.2v5*)
11572 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11573 ;;
11574 esac
11575 fi
11576 sys_lib_dlsearch_path_spec='/usr/lib'
11577 ;;
d7040cdb 11578
ce2cded5
L
11579tpf*)
11580 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11581 version_type=linux
11582 need_lib_prefix=no
11583 need_version=no
b214d478 11584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11585 shlibpath_var=LD_LIBRARY_PATH
11586 shlibpath_overrides_runpath=no
11587 hardcode_into_libs=yes
11588 ;;
d7040cdb 11589
ce2cded5
L
11590uts4*)
11591 version_type=linux
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 ;;
d7040cdb 11596
ce2cded5
L
11597*)
11598 dynamic_linker=no
11599 ;;
11600esac
81ecdfbb
RW
11601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11602$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11603test "$dynamic_linker" = no && can_build_shared=no
11604
11605variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11606if test "$GCC" = yes; then
11607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11608fi
11609
b214d478
SE
11610if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11611 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11612fi
11613if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11614 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11615fi
11616
d7040cdb
SE
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
d7040cdb 11628
d7040cdb 11629
d7040cdb 11630
d7040cdb 11631
d7040cdb
SE
11632
11633
11634
11635
d7040cdb 11636
d7040cdb
SE
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
d7040cdb
SE
11650
11651
11652
11653
d7040cdb
SE
11654
11655
11656
11657
d7040cdb 11658
d7040cdb 11659
d7040cdb 11660
d7040cdb 11661
d7040cdb 11662
d7040cdb 11663
d7040cdb 11664
d7040cdb
SE
11665
11666
11667
11668
11669
d7040cdb 11670
d7040cdb 11671
d7040cdb 11672
d7040cdb 11673
d7040cdb 11674
d7040cdb 11675
d7040cdb
SE
11676
11677
11678
11679
11680
d7040cdb
SE
11681
11682
d7040cdb 11683
d7040cdb 11684
d7040cdb 11685
d7040cdb 11686
ce2cded5
L
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
3725885a
RW
11697
11698
11699
11700
11701
ce2cded5
L
11702
11703
11704
11705
11706
11707
81ecdfbb
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11709$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11710hardcode_action=
11711if test -n "$hardcode_libdir_flag_spec" ||
11712 test -n "$runpath_var" ||
11713 test "X$hardcode_automatic" = "Xyes" ; then
11714
11715 # We can hardcode non-existent directories.
11716 if test "$hardcode_direct" != no &&
11717 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11718 # have to relink, otherwise we might link with an installed library
11719 # when we should be linking with a yet-to-be-installed one
11720 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11721 test "$hardcode_minus_L" != no; then
11722 # Linking always hardcodes the temporary library directory.
11723 hardcode_action=relink
11724 else
11725 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11726 hardcode_action=immediate
d7040cdb 11727 fi
d7040cdb 11728else
ce2cded5
L
11729 # We cannot hardcode anything, or else we can only hardcode existing
11730 # directories.
11731 hardcode_action=unsupported
d7040cdb 11732fi
81ecdfbb
RW
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11734$as_echo "$hardcode_action" >&6; }
d7040cdb 11735
ce2cded5
L
11736if test "$hardcode_action" = relink ||
11737 test "$inherit_rpath" = yes; then
11738 # Fast installation is not supported
11739 enable_fast_install=no
11740elif test "$shlibpath_overrides_runpath" = yes ||
11741 test "$enable_shared" = no; then
11742 # Fast installation is not necessary
11743 enable_fast_install=needless
d7040cdb
SE
11744fi
11745
d7040cdb 11746
d7040cdb 11747
d7040cdb 11748
d7040cdb 11749
d7040cdb 11750
ce2cded5
L
11751 if test "x$enable_dlopen" != xyes; then
11752 enable_dlopen=unknown
11753 enable_dlopen_self=unknown
11754 enable_dlopen_self_static=unknown
d7040cdb 11755else
ce2cded5
L
11756 lt_cv_dlopen=no
11757 lt_cv_dlopen_libs=
d7040cdb 11758
ce2cded5
L
11759 case $host_os in
11760 beos*)
11761 lt_cv_dlopen="load_add_on"
11762 lt_cv_dlopen_libs=
11763 lt_cv_dlopen_self=yes
11764 ;;
d7040cdb 11765
b214d478 11766 mingw* | pw32* | cegcc*)
ce2cded5
L
11767 lt_cv_dlopen="LoadLibrary"
11768 lt_cv_dlopen_libs=
11769 ;;
11770
11771 cygwin*)
11772 lt_cv_dlopen="dlopen"
11773 lt_cv_dlopen_libs=
11774 ;;
11775
11776 darwin*)
11777 # if libdl is installed we need to link against it
81ecdfbb
RW
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11779$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11780if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11781 $as_echo_n "(cached) " >&6
d7040cdb 11782else
ce2cded5
L
11783 ac_check_lib_save_LIBS=$LIBS
11784LIBS="-ldl $LIBS"
81ecdfbb 11785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11786/* end confdefs.h. */
11787
81ecdfbb
RW
11788/* Override any GCC internal prototype to avoid an error.
11789 Use char because int might match the return type of a GCC
11790 builtin and then its argument prototype would still apply. */
ce2cded5
L
11791#ifdef __cplusplus
11792extern "C"
11793#endif
ce2cded5
L
11794char dlopen ();
11795int
11796main ()
11797{
81ecdfbb 11798return dlopen ();
ce2cded5
L
11799 ;
11800 return 0;
11801}
11802_ACEOF
81ecdfbb 11803if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11804 ac_cv_lib_dl_dlopen=yes
11805else
81ecdfbb 11806 ac_cv_lib_dl_dlopen=no
d7040cdb 11807fi
81ecdfbb
RW
11808rm -f core conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11810LIBS=$ac_check_lib_save_LIBS
d7040cdb 11811fi
81ecdfbb
RW
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11813$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11814if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11816else
d7040cdb 11817
ce2cded5
L
11818 lt_cv_dlopen="dyld"
11819 lt_cv_dlopen_libs=
11820 lt_cv_dlopen_self=yes
11821
d7040cdb 11822fi
ce2cded5
L
11823
11824 ;;
11825
11826 *)
81ecdfbb 11827 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11828if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11829 lt_cv_dlopen="shl_load"
11830else
81ecdfbb
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11832$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11833if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11834 $as_echo_n "(cached) " >&6
ce2cded5
L
11835else
11836 ac_check_lib_save_LIBS=$LIBS
11837LIBS="-ldld $LIBS"
81ecdfbb 11838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11839/* end confdefs.h. */
d7040cdb 11840
81ecdfbb
RW
11841/* Override any GCC internal prototype to avoid an error.
11842 Use char because int might match the return type of a GCC
11843 builtin and then its argument prototype would still apply. */
ce2cded5
L
11844#ifdef __cplusplus
11845extern "C"
11846#endif
ce2cded5
L
11847char shl_load ();
11848int
11849main ()
11850{
81ecdfbb 11851return shl_load ();
ce2cded5
L
11852 ;
11853 return 0;
11854}
11855_ACEOF
81ecdfbb 11856if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11857 ac_cv_lib_dld_shl_load=yes
11858else
81ecdfbb 11859 ac_cv_lib_dld_shl_load=no
ce2cded5 11860fi
81ecdfbb
RW
11861rm -f core conftest.err conftest.$ac_objext \
11862 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11863LIBS=$ac_check_lib_save_LIBS
11864fi
81ecdfbb
RW
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11866$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11867if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b214d478 11868 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11869else
81ecdfbb 11870 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11871if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11872 lt_cv_dlopen="dlopen"
11873else
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11875$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11876if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11877 $as_echo_n "(cached) " >&6
d7040cdb 11878else
ce2cded5
L
11879 ac_check_lib_save_LIBS=$LIBS
11880LIBS="-ldl $LIBS"
81ecdfbb 11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11882/* end confdefs.h. */
11883
81ecdfbb
RW
11884/* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
ce2cded5
L
11887#ifdef __cplusplus
11888extern "C"
11889#endif
ce2cded5 11890char dlopen ();
d7040cdb
SE
11891int
11892main ()
11893{
81ecdfbb 11894return dlopen ();
d7040cdb
SE
11895 ;
11896 return 0;
11897}
11898_ACEOF
81ecdfbb 11899if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11900 ac_cv_lib_dl_dlopen=yes
d7040cdb 11901else
81ecdfbb 11902 ac_cv_lib_dl_dlopen=no
d7040cdb 11903fi
81ecdfbb
RW
11904rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11906LIBS=$ac_check_lib_save_LIBS
d7040cdb 11907fi
81ecdfbb
RW
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11909$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11910if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11911 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11912else
81ecdfbb
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11914$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11915if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11916 $as_echo_n "(cached) " >&6
d7040cdb 11917else
ce2cded5
L
11918 ac_check_lib_save_LIBS=$LIBS
11919LIBS="-lsvld $LIBS"
81ecdfbb 11920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11921/* end confdefs.h. */
d7040cdb 11922
81ecdfbb
RW
11923/* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
ce2cded5
L
11926#ifdef __cplusplus
11927extern "C"
11928#endif
ce2cded5 11929char dlopen ();
d7040cdb
SE
11930int
11931main ()
11932{
81ecdfbb 11933return dlopen ();
d7040cdb
SE
11934 ;
11935 return 0;
11936}
11937_ACEOF
81ecdfbb 11938if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11939 ac_cv_lib_svld_dlopen=yes
d7040cdb 11940else
81ecdfbb 11941 ac_cv_lib_svld_dlopen=no
d7040cdb 11942fi
81ecdfbb
RW
11943rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11945LIBS=$ac_check_lib_save_LIBS
d7040cdb 11946fi
81ecdfbb
RW
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11948$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11949if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11951else
81ecdfbb
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11953$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11954if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11955 $as_echo_n "(cached) " >&6
ce2cded5
L
11956else
11957 ac_check_lib_save_LIBS=$LIBS
11958LIBS="-ldld $LIBS"
81ecdfbb 11959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11960/* end confdefs.h. */
11961
81ecdfbb
RW
11962/* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
ce2cded5
L
11965#ifdef __cplusplus
11966extern "C"
11967#endif
ce2cded5 11968char dld_link ();
d7040cdb
SE
11969int
11970main ()
11971{
81ecdfbb 11972return dld_link ();
d7040cdb
SE
11973 ;
11974 return 0;
11975}
11976_ACEOF
81ecdfbb 11977if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11978 ac_cv_lib_dld_dld_link=yes
d7040cdb 11979else
81ecdfbb 11980 ac_cv_lib_dld_dld_link=no
d7040cdb 11981fi
81ecdfbb
RW
11982rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11984LIBS=$ac_check_lib_save_LIBS
11985fi
81ecdfbb
RW
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11987$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11988if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b214d478 11989 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11990fi
11991
11992
11993fi
11994
11995
11996fi
11997
11998
11999fi
12000
12001
12002fi
12003
12004
12005fi
12006
12007 ;;
12008 esac
12009
12010 if test "x$lt_cv_dlopen" != xno; then
12011 enable_dlopen=yes
12012 else
12013 enable_dlopen=no
12014 fi
12015
12016 case $lt_cv_dlopen in
12017 dlopen)
12018 save_CPPFLAGS="$CPPFLAGS"
12019 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12020
12021 save_LDFLAGS="$LDFLAGS"
12022 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12023
12024 save_LIBS="$LIBS"
12025 LIBS="$lt_cv_dlopen_libs $LIBS"
12026
81ecdfbb
RW
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12028$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 12029if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 12030 $as_echo_n "(cached) " >&6
ce2cded5
L
12031else
12032 if test "$cross_compiling" = yes; then :
12033 lt_cv_dlopen_self=cross
12034else
12035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12036 lt_status=$lt_dlunknown
12037 cat > conftest.$ac_ext <<_LT_EOF
b32632c4 12038#line 12038 "configure"
ce2cded5
L
12039#include "confdefs.h"
12040
12041#if HAVE_DLFCN_H
12042#include <dlfcn.h>
12043#endif
12044
12045#include <stdio.h>
12046
12047#ifdef RTLD_GLOBAL
12048# define LT_DLGLOBAL RTLD_GLOBAL
12049#else
12050# ifdef DL_GLOBAL
12051# define LT_DLGLOBAL DL_GLOBAL
12052# else
12053# define LT_DLGLOBAL 0
12054# endif
12055#endif
12056
12057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12058 find out it does not work in some platform. */
12059#ifndef LT_DLLAZY_OR_NOW
12060# ifdef RTLD_LAZY
12061# define LT_DLLAZY_OR_NOW RTLD_LAZY
12062# else
12063# ifdef DL_LAZY
12064# define LT_DLLAZY_OR_NOW DL_LAZY
12065# else
12066# ifdef RTLD_NOW
12067# define LT_DLLAZY_OR_NOW RTLD_NOW
12068# else
12069# ifdef DL_NOW
12070# define LT_DLLAZY_OR_NOW DL_NOW
12071# else
12072# define LT_DLLAZY_OR_NOW 0
12073# endif
12074# endif
12075# endif
12076# endif
12077#endif
12078
3725885a
RW
12079/* When -fvisbility=hidden is used, assume the code has been annotated
12080 correspondingly for the symbols needed. */
12081#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12082void fnord () __attribute__((visibility("default")));
12083#endif
12084
12085void fnord () { int i=42; }
ce2cded5 12086int main ()
d7040cdb 12087{
ce2cded5
L
12088 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12089 int status = $lt_dlunknown;
12090
12091 if (self)
12092 {
12093 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
12094 else
12095 {
12096 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12097 else puts (dlerror ());
12098 }
ce2cded5
L
12099 /* dlclose (self); */
12100 }
12101 else
12102 puts (dlerror ());
12103
b214d478 12104 return status;
d7040cdb 12105}
ce2cded5 12106_LT_EOF
81ecdfbb 12107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 12108 (eval $ac_link) 2>&5
d7040cdb 12109 ac_status=$?
81ecdfbb
RW
12110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
12112 (./conftest; exit; ) >&5 2>/dev/null
12113 lt_status=$?
12114 case x$lt_status in
12115 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12116 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12117 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12118 esac
12119 else :
12120 # compilation failed
12121 lt_cv_dlopen_self=no
12122 fi
12123fi
12124rm -fr conftest*
12125
12126
12127fi
81ecdfbb
RW
12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12129$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
12130
12131 if test "x$lt_cv_dlopen_self" = xyes; then
12132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12134$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 12135if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 12136 $as_echo_n "(cached) " >&6
ce2cded5
L
12137else
12138 if test "$cross_compiling" = yes; then :
12139 lt_cv_dlopen_self_static=cross
12140else
12141 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12142 lt_status=$lt_dlunknown
12143 cat > conftest.$ac_ext <<_LT_EOF
b32632c4 12144#line 12144 "configure"
ce2cded5
L
12145#include "confdefs.h"
12146
12147#if HAVE_DLFCN_H
12148#include <dlfcn.h>
12149#endif
12150
12151#include <stdio.h>
12152
12153#ifdef RTLD_GLOBAL
12154# define LT_DLGLOBAL RTLD_GLOBAL
12155#else
12156# ifdef DL_GLOBAL
12157# define LT_DLGLOBAL DL_GLOBAL
12158# else
12159# define LT_DLGLOBAL 0
12160# endif
12161#endif
12162
12163/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12164 find out it does not work in some platform. */
12165#ifndef LT_DLLAZY_OR_NOW
12166# ifdef RTLD_LAZY
12167# define LT_DLLAZY_OR_NOW RTLD_LAZY
12168# else
12169# ifdef DL_LAZY
12170# define LT_DLLAZY_OR_NOW DL_LAZY
12171# else
12172# ifdef RTLD_NOW
12173# define LT_DLLAZY_OR_NOW RTLD_NOW
12174# else
12175# ifdef DL_NOW
12176# define LT_DLLAZY_OR_NOW DL_NOW
12177# else
12178# define LT_DLLAZY_OR_NOW 0
12179# endif
12180# endif
12181# endif
12182# endif
12183#endif
12184
3cb62297
L
12185/* When -fvisbility=hidden is used, assume the code has been annotated
12186 correspondingly for the symbols needed. */
12187#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12188void fnord () __attribute__((visibility("default")));
12189#endif
12190
12191void fnord () { int i=42; }
12192int main ()
12193{
12194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12195 int status = $lt_dlunknown;
12196
12197 if (self)
12198 {
12199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12200 else
12201 {
12202 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12203 else puts (dlerror ());
12204 }
12205 /* dlclose (self); */
12206 }
12207 else
12208 puts (dlerror ());
12209
12210 return status;
12211}
12212_LT_EOF
12213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12214 (eval $ac_link) 2>&5
12215 ac_status=$?
12216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12217 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12218 (./conftest; exit; ) >&5 2>/dev/null
12219 lt_status=$?
12220 case x$lt_status in
12221 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12222 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12223 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12224 esac
12225 else :
12226 # compilation failed
12227 lt_cv_dlopen_self_static=no
12228 fi
12229fi
12230rm -fr conftest*
12231
12232
12233fi
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12235$as_echo "$lt_cv_dlopen_self_static" >&6; }
12236 fi
12237
12238 CPPFLAGS="$save_CPPFLAGS"
12239 LDFLAGS="$save_LDFLAGS"
12240 LIBS="$save_LIBS"
12241 ;;
12242 esac
12243
12244 case $lt_cv_dlopen_self in
12245 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12246 *) enable_dlopen_self=unknown ;;
12247 esac
12248
12249 case $lt_cv_dlopen_self_static in
12250 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12251 *) enable_dlopen_self_static=unknown ;;
12252 esac
12253fi
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271striplib=
12272old_striplib=
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12274$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12275if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12276 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12277 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279$as_echo "yes" >&6; }
12280else
12281# FIXME - insert some real tests, host_os isn't really good enough
12282 case $host_os in
12283 darwin*)
12284 if test -n "$STRIP" ; then
12285 striplib="$STRIP -x"
12286 old_striplib="$STRIP -S"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12288$as_echo "yes" >&6; }
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
12292 fi
12293 ;;
12294 *)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
12297 ;;
12298 esac
12299fi
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312 # Report which library types will actually be built
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12314$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12316$as_echo "$can_build_shared" >&6; }
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12319$as_echo_n "checking whether to build shared libraries... " >&6; }
12320 test "$can_build_shared" = "no" && enable_shared=no
12321
12322 # On AIX, shared libraries and static libraries use the same namespace, and
12323 # are all built from PIC.
12324 case $host_os in
12325 aix3*)
12326 test "$enable_shared" = yes && enable_static=no
12327 if test -n "$RANLIB"; then
12328 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12329 postinstall_cmds='$RANLIB $lib'
12330 fi
12331 ;;
12332
12333 aix[4-9]*)
12334 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12335 test "$enable_shared" = yes && enable_static=no
12336 fi
12337 ;;
12338 esac
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12340$as_echo "$enable_shared" >&6; }
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12343$as_echo_n "checking whether to build static libraries... " >&6; }
12344 # Make sure either enable_shared or enable_static is yes.
12345 test "$enable_shared" = yes || enable_static=yes
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12347$as_echo "$enable_static" >&6; }
12348
12349
12350
12351
12352fi
12353ac_ext=c
12354ac_cpp='$CPP $CPPFLAGS'
12355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12357ac_compiler_gnu=$ac_cv_c_compiler_gnu
12358
12359CC="$lt_save_CC"
12360
12361 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12362 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12363 (test "X$CXX" != "Xg++"))) ; then
12364 ac_ext=cpp
12365ac_cpp='$CXXCPP $CPPFLAGS'
12366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12370$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12371if test -z "$CXXCPP"; then
d0ac1c44 12372 if ${ac_cv_prog_CXXCPP+:} false; then :
3cb62297
L
12373 $as_echo_n "(cached) " >&6
12374else
12375 # Double quotes because CXXCPP needs to be expanded
12376 for CXXCPP in "$CXX -E" "/lib/cpp"
12377 do
12378 ac_preproc_ok=false
12379for ac_cxx_preproc_warn_flag in '' yes
12380do
12381 # Use a header file that comes with gcc, so configuring glibc
12382 # with a fresh cross-compiler works.
12383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 # <limits.h> exists even on freestanding compilers.
12385 # On the NeXT, cc -E runs the code through the compiler's parser,
12386 # not just through cpp. "Syntax error" is here to catch this case.
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h. */
12389#ifdef __STDC__
12390# include <limits.h>
12391#else
12392# include <assert.h>
12393#endif
12394 Syntax error
12395_ACEOF
12396if ac_fn_cxx_try_cpp "$LINENO"; then :
12397
12398else
12399 # Broken: fails on valid input.
12400continue
12401fi
d0ac1c44 12402rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12403
12404 # OK, works on sane cases. Now check whether nonexistent headers
12405 # can be detected and how.
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407/* end confdefs.h. */
12408#include <ac_nonexistent.h>
12409_ACEOF
12410if ac_fn_cxx_try_cpp "$LINENO"; then :
12411 # Broken: success on invalid input.
12412continue
12413else
12414 # Passes both tests.
12415ac_preproc_ok=:
12416break
12417fi
d0ac1c44 12418rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12419
12420done
12421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12422rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12423if $ac_preproc_ok; then :
12424 break
12425fi
12426
12427 done
12428 ac_cv_prog_CXXCPP=$CXXCPP
12429
12430fi
12431 CXXCPP=$ac_cv_prog_CXXCPP
12432else
12433 ac_cv_prog_CXXCPP=$CXXCPP
12434fi
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12436$as_echo "$CXXCPP" >&6; }
12437ac_preproc_ok=false
12438for ac_cxx_preproc_warn_flag in '' yes
12439do
12440 # Use a header file that comes with gcc, so configuring glibc
12441 # with a fresh cross-compiler works.
12442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12443 # <limits.h> exists even on freestanding compilers.
12444 # On the NeXT, cc -E runs the code through the compiler's parser,
12445 # not just through cpp. "Syntax error" is here to catch this case.
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h. */
12448#ifdef __STDC__
12449# include <limits.h>
12450#else
12451# include <assert.h>
12452#endif
12453 Syntax error
12454_ACEOF
12455if ac_fn_cxx_try_cpp "$LINENO"; then :
12456
12457else
12458 # Broken: fails on valid input.
12459continue
12460fi
d0ac1c44 12461rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12462
12463 # OK, works on sane cases. Now check whether nonexistent headers
12464 # can be detected and how.
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466/* end confdefs.h. */
12467#include <ac_nonexistent.h>
12468_ACEOF
12469if ac_fn_cxx_try_cpp "$LINENO"; then :
12470 # Broken: success on invalid input.
12471continue
12472else
12473 # Passes both tests.
12474ac_preproc_ok=:
12475break
12476fi
d0ac1c44 12477rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12478
12479done
12480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12481rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12482if $ac_preproc_ok; then :
12483
12484else
12485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12487as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12488See \`config.log' for more details" "$LINENO" 5; }
3cb62297
L
12489fi
12490
12491ac_ext=c
12492ac_cpp='$CPP $CPPFLAGS'
12493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496
12497else
12498 _lt_caught_CXX_error=yes
12499fi
12500
12501ac_ext=cpp
12502ac_cpp='$CXXCPP $CPPFLAGS'
12503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12506
12507archive_cmds_need_lc_CXX=no
12508allow_undefined_flag_CXX=
12509always_export_symbols_CXX=no
12510archive_expsym_cmds_CXX=
12511compiler_needs_object_CXX=no
12512export_dynamic_flag_spec_CXX=
12513hardcode_direct_CXX=no
12514hardcode_direct_absolute_CXX=no
12515hardcode_libdir_flag_spec_CXX=
12516hardcode_libdir_flag_spec_ld_CXX=
12517hardcode_libdir_separator_CXX=
12518hardcode_minus_L_CXX=no
12519hardcode_shlibpath_var_CXX=unsupported
12520hardcode_automatic_CXX=no
12521inherit_rpath_CXX=no
12522module_cmds_CXX=
12523module_expsym_cmds_CXX=
12524link_all_deplibs_CXX=unknown
12525old_archive_cmds_CXX=$old_archive_cmds
12526reload_flag_CXX=$reload_flag
12527reload_cmds_CXX=$reload_cmds
12528no_undefined_flag_CXX=
12529whole_archive_flag_spec_CXX=
12530enable_shared_with_static_runtimes_CXX=no
12531
12532# Source file extension for C++ test sources.
12533ac_ext=cpp
12534
12535# Object file extension for compiled C++ test sources.
12536objext=o
12537objext_CXX=$objext
12538
12539# No sense in running all these tests if we already determined that
12540# the CXX compiler isn't working. Some variables (like enable_shared)
12541# are currently assumed to apply to all compilers on this platform,
12542# and will be corrupted by setting them based on a non-working compiler.
12543if test "$_lt_caught_CXX_error" != yes; then
12544 # Code to be used in simple compile tests
12545 lt_simple_compile_test_code="int some_variable = 0;"
12546
12547 # Code to be used in simple link tests
12548 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12549
12550 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12551
12552
12553
12554
12555
12556
12557# If no C compiler was specified, use CC.
12558LTCC=${LTCC-"$CC"}
12559
12560# If no C compiler flags were specified, use CFLAGS.
12561LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12562
12563# Allow CC to be a program name with arguments.
12564compiler=$CC
12565
12566
12567 # save warnings/boilerplate of simple test code
12568 ac_outfile=conftest.$ac_objext
12569echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12570eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12571_lt_compiler_boilerplate=`cat conftest.err`
12572$RM conftest*
12573
12574 ac_outfile=conftest.$ac_objext
12575echo "$lt_simple_link_test_code" >conftest.$ac_ext
12576eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12577_lt_linker_boilerplate=`cat conftest.err`
12578$RM -r conftest*
12579
12580
12581 # Allow CC to be a program name with arguments.
12582 lt_save_CC=$CC
12583 lt_save_LD=$LD
12584 lt_save_GCC=$GCC
12585 GCC=$GXX
12586 lt_save_with_gnu_ld=$with_gnu_ld
12587 lt_save_path_LD=$lt_cv_path_LD
12588 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12589 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12590 else
12591 $as_unset lt_cv_prog_gnu_ld
12592 fi
12593 if test -n "${lt_cv_path_LDCXX+set}"; then
12594 lt_cv_path_LD=$lt_cv_path_LDCXX
12595 else
12596 $as_unset lt_cv_path_LD
12597 fi
12598 test -z "${LDCXX+set}" || LD=$LDCXX
12599 CC=${CXX-"c++"}
12600 compiler=$CC
12601 compiler_CXX=$CC
12602 for cc_temp in $compiler""; do
12603 case $cc_temp in
12604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12606 \-*) ;;
12607 *) break;;
12608 esac
12609done
12610cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12611
12612
12613 if test -n "$compiler"; then
12614 # We don't want -fno-exception when compiling C++ code, so set the
12615 # no_builtin_flag separately
12616 if test "$GXX" = yes; then
12617 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12618 else
12619 lt_prog_compiler_no_builtin_flag_CXX=
12620 fi
12621
12622 if test "$GXX" = yes; then
12623 # Set up default GNU C++ configuration
12624
12625
12626
12627# Check whether --with-gnu-ld was given.
12628if test "${with_gnu_ld+set}" = set; then :
12629 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12630else
12631 with_gnu_ld=no
12632fi
12633
12634ac_prog=ld
12635if test "$GCC" = yes; then
12636 # Check if gcc -print-prog-name=ld gives a path.
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12638$as_echo_n "checking for ld used by $CC... " >&6; }
12639 case $host in
12640 *-*-mingw*)
12641 # gcc leaves a trailing carriage return which upsets mingw
12642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12643 *)
12644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12645 esac
12646 case $ac_prog in
12647 # Accept absolute paths.
12648 [\\/]* | ?:[\\/]*)
12649 re_direlt='/[^/][^/]*/\.\./'
12650 # Canonicalize the pathname of ld
12651 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12652 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12653 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12654 done
12655 test -z "$LD" && LD="$ac_prog"
12656 ;;
12657 "")
12658 # If it fails, then pretend we aren't using GCC.
12659 ac_prog=ld
12660 ;;
12661 *)
12662 # If it is relative, then search for the first ld in PATH.
12663 with_gnu_ld=unknown
12664 ;;
12665 esac
12666elif test "$with_gnu_ld" = yes; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12668$as_echo_n "checking for GNU ld... " >&6; }
12669else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12671$as_echo_n "checking for non-GNU ld... " >&6; }
12672fi
d0ac1c44 12673if ${lt_cv_path_LD+:} false; then :
3cb62297
L
12674 $as_echo_n "(cached) " >&6
12675else
12676 if test -z "$LD"; then
12677 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12678 for ac_dir in $PATH; do
12679 IFS="$lt_save_ifs"
12680 test -z "$ac_dir" && ac_dir=.
12681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12682 lt_cv_path_LD="$ac_dir/$ac_prog"
12683 # Check to see if the program is GNU ld. I'd rather use --version,
12684 # but apparently some variants of GNU ld only accept -v.
12685 # Break only if it was the GNU/non-GNU ld that we prefer.
12686 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12687 *GNU* | *'with BFD'*)
12688 test "$with_gnu_ld" != no && break
12689 ;;
12690 *)
12691 test "$with_gnu_ld" != yes && break
12692 ;;
12693 esac
12694 fi
12695 done
12696 IFS="$lt_save_ifs"
12697else
12698 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12699fi
12700fi
12701
12702LD="$lt_cv_path_LD"
12703if test -n "$LD"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12705$as_echo "$LD" >&6; }
12706else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
12709fi
d0ac1c44 12710test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3cb62297
L
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12712$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 12713if ${lt_cv_prog_gnu_ld+:} false; then :
3cb62297
L
12714 $as_echo_n "(cached) " >&6
12715else
12716 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12717case `$LD -v 2>&1 </dev/null` in
12718*GNU* | *'with BFD'*)
12719 lt_cv_prog_gnu_ld=yes
12720 ;;
12721*)
12722 lt_cv_prog_gnu_ld=no
12723 ;;
12724esac
12725fi
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12727$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12728with_gnu_ld=$lt_cv_prog_gnu_ld
12729
12730
12731
12732
12733
12734
12735
12736 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12737 # archiving commands below assume that GNU ld is being used.
12738 if test "$with_gnu_ld" = yes; then
6e733cce
L
12739 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12740 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
12741
12742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12743 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12744
12745 # If archive_cmds runs LD, not CC, wlarc should be empty
12746 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12747 # investigate it a little bit more. (MM)
12748 wlarc='${wl}'
12749
12750 # ancient GNU ld didn't support --whole-archive et. al.
12751 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12752 $GREP 'no-whole-archive' > /dev/null; then
12753 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12754 else
12755 whole_archive_flag_spec_CXX=
12756 fi
12757 else
12758 with_gnu_ld=no
12759 wlarc=
12760
12761 # A generic and very simple default shared library creation
12762 # command for GNU C++ for the case where it uses the native
12763 # linker, instead of GNU ld. If possible, this setting should
12764 # overridden to take advantage of the native linker features on
12765 # the platform it is being used on.
12766 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12767 fi
12768
12769 # Commands to make compiler produce verbose output that lists
12770 # what "hidden" libraries, object files and flags are used when
12771 # linking a shared library.
12772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12773
12774 else
12775 GXX=no
12776 with_gnu_ld=no
12777 wlarc=
12778 fi
12779
12780 # PORTME: fill in a description of your system's C++ link characteristics
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12782$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12783 ld_shlibs_CXX=yes
12784 case $host_os in
12785 aix3*)
12786 # FIXME: insert proper C++ library support
12787 ld_shlibs_CXX=no
12788 ;;
12789 aix[4-9]*)
12790 if test "$host_cpu" = ia64; then
12791 # On IA64, the linker does run time linking by default, so we don't
12792 # have to do anything special.
12793 aix_use_runtimelinking=no
12794 exp_sym_flag='-Bexport'
12795 no_entry_flag=""
12796 else
12797 aix_use_runtimelinking=no
12798
12799 # Test if we are trying to use run time linking or normal
12800 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12801 # need to do runtime linking.
12802 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12803 for ld_flag in $LDFLAGS; do
12804 case $ld_flag in
12805 *-brtl*)
12806 aix_use_runtimelinking=yes
12807 break
12808 ;;
12809 esac
12810 done
12811 ;;
12812 esac
12813
12814 exp_sym_flag='-bexport'
12815 no_entry_flag='-bnoentry'
12816 fi
12817
12818 # When large executables or shared objects are built, AIX ld can
12819 # have problems creating the table of contents. If linking a library
12820 # or program results in "error TOC overflow" add -mminimal-toc to
12821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12823
12824 archive_cmds_CXX=''
12825 hardcode_direct_CXX=yes
12826 hardcode_direct_absolute_CXX=yes
12827 hardcode_libdir_separator_CXX=':'
12828 link_all_deplibs_CXX=yes
12829 file_list_spec_CXX='${wl}-f,'
12830
12831 if test "$GXX" = yes; then
12832 case $host_os in aix4.[012]|aix4.[012].*)
12833 # We only want to do this on AIX 4.2 and lower, the check
12834 # below for broken collect2 doesn't work under 4.3+
12835 collect2name=`${CC} -print-prog-name=collect2`
12836 if test -f "$collect2name" &&
12837 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12838 then
12839 # We have reworked collect2
12840 :
12841 else
12842 # We have old collect2
12843 hardcode_direct_CXX=unsupported
12844 # It fails to find uninstalled libraries when the uninstalled
12845 # path is not listed in the libpath. Setting hardcode_minus_L
12846 # to unsupported forces relinking
12847 hardcode_minus_L_CXX=yes
12848 hardcode_libdir_flag_spec_CXX='-L$libdir'
12849 hardcode_libdir_separator_CXX=
12850 fi
12851 esac
12852 shared_flag='-shared'
12853 if test "$aix_use_runtimelinking" = yes; then
12854 shared_flag="$shared_flag "'${wl}-G'
12855 fi
12856 else
12857 # not using gcc
12858 if test "$host_cpu" = ia64; then
12859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12860 # chokes on -Wl,-G. The following line is correct:
12861 shared_flag='-G'
12862 else
12863 if test "$aix_use_runtimelinking" = yes; then
12864 shared_flag='${wl}-G'
12865 else
12866 shared_flag='${wl}-bM:SRE'
12867 fi
12868 fi
12869 fi
12870
12871 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12872 # It seems that -bexpall does not export symbols beginning with
12873 # underscore (_), so it is better to generate a list of symbols to
12874 # export.
12875 always_export_symbols_CXX=yes
12876 if test "$aix_use_runtimelinking" = yes; then
12877 # Warning - without using the other runtime loading flags (-brtl),
12878 # -berok will link without error, but may produce a broken library.
12879 allow_undefined_flag_CXX='-berok'
12880 # Determine the default libpath from the value encoded in an empty
12881 # executable.
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h. */
12884
12885int
12886main ()
12887{
12888
12889 ;
12890 return 0;
12891}
12892_ACEOF
12893if ac_fn_cxx_try_link "$LINENO"; then :
12894
12895lt_aix_libpath_sed='
12896 /Import File Strings/,/^$/ {
12897 /^0/ {
12898 s/^0 *\(.*\)$/\1/
12899 p
12900 }
12901 }'
12902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12903# Check for a 64-bit object if we didn't find anything.
12904if test -z "$aix_libpath"; then
12905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12906fi
12907fi
12908rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12911
12912 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12913
12914 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"
12915 else
12916 if test "$host_cpu" = ia64; then
12917 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12918 allow_undefined_flag_CXX="-z nodefs"
12919 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"
12920 else
12921 # Determine the default libpath from the value encoded in an
12922 # empty executable.
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924/* end confdefs.h. */
12925
12926int
12927main ()
12928{
12929
12930 ;
12931 return 0;
12932}
12933_ACEOF
12934if ac_fn_cxx_try_link "$LINENO"; then :
12935
12936lt_aix_libpath_sed='
12937 /Import File Strings/,/^$/ {
12938 /^0/ {
12939 s/^0 *\(.*\)$/\1/
12940 p
12941 }
12942 }'
12943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12944# Check for a 64-bit object if we didn't find anything.
12945if test -z "$aix_libpath"; then
12946 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12947fi
12948fi
12949rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12952
12953 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12954 # Warning - without using the other run time loading flags,
12955 # -berok will link without error, but may produce a broken library.
12956 no_undefined_flag_CXX=' ${wl}-bernotok'
12957 allow_undefined_flag_CXX=' ${wl}-berok'
12958 if test "$with_gnu_ld" = yes; then
12959 # We only use this code for GNU lds that support --whole-archive.
12960 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12961 else
12962 # Exported symbols can be pulled into shared objects from archives
12963 whole_archive_flag_spec_CXX='$convenience'
12964 fi
12965 archive_cmds_need_lc_CXX=yes
12966 # This is similar to how AIX traditionally builds its shared
12967 # libraries.
12968 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'
12969 fi
12970 fi
12971 ;;
12972
12973 beos*)
12974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12975 allow_undefined_flag_CXX=unsupported
12976 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12977 # support --undefined. This deserves some investigation. FIXME
12978 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12979 else
12980 ld_shlibs_CXX=no
12981 fi
12982 ;;
12983
12984 chorus*)
12985 case $cc_basename in
12986 *)
12987 # FIXME: insert proper C++ library support
12988 ld_shlibs_CXX=no
12989 ;;
12990 esac
12991 ;;
12992
12993 cygwin* | mingw* | pw32* | cegcc*)
12994 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12995 # as there is no search path for DLLs.
12996 hardcode_libdir_flag_spec_CXX='-L$libdir'
12997 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12998 allow_undefined_flag_CXX=unsupported
12999 always_export_symbols_CXX=no
13000 enable_shared_with_static_runtimes_CXX=yes
13001
13002 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13003 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'
13004 # If the export-symbols file already is a .def file (1st line
13005 # is EXPORTS), use it as is; otherwise, prepend...
13006 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13007 cp $export_symbols $output_objdir/$soname.def;
13008 else
13009 echo EXPORTS > $output_objdir/$soname.def;
13010 cat $export_symbols >> $output_objdir/$soname.def;
13011 fi~
13012 $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'
13013 else
13014 ld_shlibs_CXX=no
13015 fi
13016 ;;
13017 darwin* | rhapsody*)
13018
13019
13020 archive_cmds_need_lc_CXX=no
13021 hardcode_direct_CXX=no
13022 hardcode_automatic_CXX=yes
13023 hardcode_shlibpath_var_CXX=unsupported
13024 if test "$lt_cv_ld_force_load" = "yes"; then
13025 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\"`'
13026 else
13027 whole_archive_flag_spec_CXX=''
13028 fi
13029 link_all_deplibs_CXX=yes
13030 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13031 case $cc_basename in
13032 ifort*) _lt_dar_can_shared=yes ;;
13033 *) _lt_dar_can_shared=$GCC ;;
13034 esac
13035 if test "$_lt_dar_can_shared" = "yes"; then
13036 output_verbose_link_cmd=func_echo_all
13037 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}"
13038 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13039 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}"
13040 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}"
13041 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13042 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}"
13043 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}"
13044 fi
13045
13046 else
13047 ld_shlibs_CXX=no
13048 fi
13049
13050 ;;
13051
13052 dgux*)
13053 case $cc_basename in
13054 ec++*)
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13057 ;;
13058 ghcx*)
13059 # Green Hills C++ Compiler
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13062 ;;
13063 *)
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13066 ;;
13067 esac
13068 ;;
13069
6d2920c8 13070 freebsd2.*)
3cb62297
L
13071 # C++ shared libraries reported to be fairly broken before
13072 # switch to ELF
13073 ld_shlibs_CXX=no
13074 ;;
13075
13076 freebsd-elf*)
13077 archive_cmds_need_lc_CXX=no
13078 ;;
13079
13080 freebsd* | dragonfly*)
13081 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13082 # conventions
13083 ld_shlibs_CXX=yes
13084 ;;
13085
13086 gnu*)
13087 ;;
13088
13089 haiku*)
13090 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 link_all_deplibs_CXX=yes
13092 ;;
13093
13094 hpux9*)
13095 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13096 hardcode_libdir_separator_CXX=:
13097 export_dynamic_flag_spec_CXX='${wl}-E'
13098 hardcode_direct_CXX=yes
13099 hardcode_minus_L_CXX=yes # Not in the search PATH,
13100 # but as the default
13101 # location of the library.
13102
13103 case $cc_basename in
13104 CC*)
13105 # FIXME: insert proper C++ library support
13106 ld_shlibs_CXX=no
13107 ;;
13108 aCC*)
13109 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'
13110 # Commands to make compiler produce verbose output that lists
13111 # what "hidden" libraries, object files and flags are used when
13112 # linking a shared library.
13113 #
13114 # There doesn't appear to be a way to prevent this compiler from
13115 # explicitly linking system object files so we need to strip them
13116 # from the output so that they don't get included in the library
13117 # dependencies.
13118 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"'
13119 ;;
13120 *)
13121 if test "$GXX" = yes; then
13122 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'
13123 else
13124 # FIXME: insert proper C++ library support
13125 ld_shlibs_CXX=no
13126 fi
13127 ;;
13128 esac
13129 ;;
13130
13131 hpux10*|hpux11*)
13132 if test $with_gnu_ld = no; then
13133 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13134 hardcode_libdir_separator_CXX=:
13135
13136 case $host_cpu in
13137 hppa*64*|ia64*)
13138 ;;
13139 *)
13140 export_dynamic_flag_spec_CXX='${wl}-E'
13141 ;;
13142 esac
13143 fi
13144 case $host_cpu in
13145 hppa*64*|ia64*)
13146 hardcode_direct_CXX=no
13147 hardcode_shlibpath_var_CXX=no
13148 ;;
13149 *)
13150 hardcode_direct_CXX=yes
13151 hardcode_direct_absolute_CXX=yes
13152 hardcode_minus_L_CXX=yes # Not in the search PATH,
13153 # but as the default
13154 # location of the library.
13155 ;;
13156 esac
13157
13158 case $cc_basename in
13159 CC*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13162 ;;
13163 aCC*)
13164 case $host_cpu in
13165 hppa*64*)
13166 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13167 ;;
13168 ia64*)
13169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13170 ;;
13171 *)
13172 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13173 ;;
13174 esac
13175 # Commands to make compiler produce verbose output that lists
13176 # what "hidden" libraries, object files and flags are used when
13177 # linking a shared library.
13178 #
13179 # There doesn't appear to be a way to prevent this compiler from
13180 # explicitly linking system object files so we need to strip them
13181 # from the output so that they don't get included in the library
13182 # dependencies.
13183 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"'
13184 ;;
13185 *)
13186 if test "$GXX" = yes; then
13187 if test $with_gnu_ld = no; then
13188 case $host_cpu in
13189 hppa*64*)
13190 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13191 ;;
13192 ia64*)
13193 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13194 ;;
13195 *)
13196 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'
13197 ;;
13198 esac
13199 fi
13200 else
13201 # FIXME: insert proper C++ library support
13202 ld_shlibs_CXX=no
13203 fi
13204 ;;
13205 esac
13206 ;;
13207
13208 interix[3-9]*)
13209 hardcode_direct_CXX=no
13210 hardcode_shlibpath_var_CXX=no
13211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13212 export_dynamic_flag_spec_CXX='${wl}-E'
13213 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13214 # Instead, shared libraries are loaded at an image base (0x10000000 by
13215 # default) and relocated if they conflict, which is a slow very memory
13216 # consuming and fragmenting process. To avoid this, we pick a random,
13217 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13218 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13219 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'
13220 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'
13221 ;;
13222 irix5* | irix6*)
13223 case $cc_basename in
13224 CC*)
13225 # SGI C++
13226 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'
13227
13228 # Archives containing C++ object files must be created using
13229 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13230 # necessary to make sure instantiated templates are included
13231 # in the archive.
13232 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13233 ;;
13234 *)
13235 if test "$GXX" = yes; then
13236 if test "$with_gnu_ld" = no; then
13237 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'
13238 else
13239 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'
13240 fi
13241 fi
13242 link_all_deplibs_CXX=yes
13243 ;;
13244 esac
13245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13246 hardcode_libdir_separator_CXX=:
13247 inherit_rpath_CXX=yes
13248 ;;
13249
13250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13251 case $cc_basename in
13252 KCC*)
13253 # Kuck and Associates, Inc. (KAI) C++ Compiler
13254
13255 # KCC will only create a shared library if the output file
13256 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13257 # to its proper name (with version) after linking.
13258 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'
13259 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'
13260 # Commands to make compiler produce verbose output that lists
13261 # what "hidden" libraries, object files and flags are used when
13262 # linking a shared library.
13263 #
13264 # There doesn't appear to be a way to prevent this compiler from
13265 # explicitly linking system object files so we need to strip them
13266 # from the output so that they don't get included in the library
13267 # dependencies.
13268 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"'
13269
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13272
13273 # Archives containing C++ object files must be created using
13274 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13275 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13276 ;;
13277 icpc* | ecpc* )
13278 # Intel C++
13279 with_gnu_ld=yes
13280 # version 8.0 and above of icpc choke on multiply defined symbols
13281 # if we add $predep_objects and $postdep_objects, however 7.1 and
13282 # earlier do not add the objects themselves.
13283 case `$CC -V 2>&1` in
13284 *"Version 7."*)
13285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13286 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'
13287 ;;
13288 *) # Version 8.0 or newer
13289 tmp_idyn=
13290 case $host_cpu in
13291 ia64*) tmp_idyn=' -i_dynamic';;
13292 esac
13293 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13294 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'
13295 ;;
13296 esac
13297 archive_cmds_need_lc_CXX=no
13298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13299 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13300 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13301 ;;
13302 pgCC* | pgcpp*)
13303 # Portland Group C++ compiler
13304 case `$CC -V` in
13305 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13306 prelink_cmds_CXX='tpldir=Template.dir~
13307 rm -rf $tpldir~
13308 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13309 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13310 old_archive_cmds_CXX='tpldir=Template.dir~
13311 rm -rf $tpldir~
13312 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13313 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13314 $RANLIB $oldlib'
13315 archive_cmds_CXX='tpldir=Template.dir~
13316 rm -rf $tpldir~
13317 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13318 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13319 archive_expsym_cmds_CXX='tpldir=Template.dir~
13320 rm -rf $tpldir~
13321 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13322 $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'
13323 ;;
13324 *) # Version 6 and above use weak symbols
13325 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13326 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'
13327 ;;
13328 esac
13329
13330 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13331 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13332 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'
13333 ;;
13334 cxx*)
13335 # Compaq C++
13336 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13337 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'
13338
13339 runpath_var=LD_RUN_PATH
13340 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13341 hardcode_libdir_separator_CXX=:
13342
13343 # Commands to make compiler produce verbose output that lists
13344 # what "hidden" libraries, object files and flags are used when
13345 # linking a shared library.
13346 #
13347 # There doesn't appear to be a way to prevent this compiler from
13348 # explicitly linking system object files so we need to strip them
13349 # from the output so that they don't get included in the library
13350 # dependencies.
13351 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'
13352 ;;
13353 xl* | mpixl* | bgxl*)
13354 # IBM XL 8.0 on PPC, with GNU ld
13355 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13356 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13357 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13358 if test "x$supports_anon_versioning" = xyes; then
13359 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13361 echo "local: *; };" >> $output_objdir/$libname.ver~
13362 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13363 fi
13364 ;;
13365 *)
13366 case `$CC -V 2>&1 | sed 5q` in
13367 *Sun\ C*)
13368 # Sun C++ 5.9
13369 no_undefined_flag_CXX=' -zdefs'
13370 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13371 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'
13372 hardcode_libdir_flag_spec_CXX='-R$libdir'
13373 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'
13374 compiler_needs_object_CXX=yes
13375
13376 # Not sure whether something based on
13377 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13378 # would be better.
13379 output_verbose_link_cmd='func_echo_all'
13380
13381 # Archives containing C++ object files must be created using
13382 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13383 # necessary to make sure instantiated templates are included
13384 # in the archive.
13385 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13386 ;;
13387 esac
13388 ;;
13389 esac
13390 ;;
13391
13392 lynxos*)
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13395 ;;
13396
13397 m88k*)
13398 # FIXME: insert proper C++ library support
13399 ld_shlibs_CXX=no
13400 ;;
13401
13402 mvs*)
13403 case $cc_basename in
13404 cxx*)
13405 # FIXME: insert proper C++ library support
13406 ld_shlibs_CXX=no
13407 ;;
13408 *)
13409 # FIXME: insert proper C++ library support
13410 ld_shlibs_CXX=no
13411 ;;
13412 esac
13413 ;;
13414
13415 netbsd*)
13416 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13417 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13418 wlarc=
13419 hardcode_libdir_flag_spec_CXX='-R$libdir'
13420 hardcode_direct_CXX=yes
13421 hardcode_shlibpath_var_CXX=no
13422 fi
13423 # Workaround some broken pre-1.5 toolchains
13424 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13425 ;;
13426
13427 *nto* | *qnx*)
13428 ld_shlibs_CXX=yes
13429 ;;
13430
13431 openbsd2*)
13432 # C++ shared libraries are fairly broken
13433 ld_shlibs_CXX=no
13434 ;;
13435
13436 openbsd*)
13437 if test -f /usr/libexec/ld.so; then
13438 hardcode_direct_CXX=yes
13439 hardcode_shlibpath_var_CXX=no
13440 hardcode_direct_absolute_CXX=yes
13441 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13444 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13445 export_dynamic_flag_spec_CXX='${wl}-E'
13446 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13447 fi
13448 output_verbose_link_cmd=func_echo_all
13449 else
13450 ld_shlibs_CXX=no
13451 fi
13452 ;;
13453
13454 osf3* | osf4* | osf5*)
13455 case $cc_basename in
13456 KCC*)
13457 # Kuck and Associates, Inc. (KAI) C++ Compiler
13458
13459 # KCC will only create a shared library if the output file
13460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13461 # to its proper name (with version) after linking.
13462 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'
13463
13464 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13465 hardcode_libdir_separator_CXX=:
13466
13467 # Archives containing C++ object files must be created using
13468 # the KAI C++ compiler.
13469 case $host in
13470 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13471 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13472 esac
13473 ;;
13474 RCC*)
13475 # Rational C++ 2.4.1
13476 # FIXME: insert proper C++ library support
13477 ld_shlibs_CXX=no
13478 ;;
13479 cxx*)
13480 case $host in
13481 osf3*)
13482 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13483 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'
13484 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13485 ;;
13486 *)
13487 allow_undefined_flag_CXX=' -expect_unresolved \*'
13488 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'
13489 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13490 echo "-hidden">> $lib.exp~
13491 $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~
13492 $RM $lib.exp'
13493 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13494 ;;
13495 esac
13496
13497 hardcode_libdir_separator_CXX=:
13498
13499 # Commands to make compiler produce verbose output that lists
13500 # what "hidden" libraries, object files and flags are used when
13501 # linking a shared library.
13502 #
13503 # There doesn't appear to be a way to prevent this compiler from
13504 # explicitly linking system object files so we need to strip them
13505 # from the output so that they don't get included in the library
13506 # dependencies.
13507 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"'
13508 ;;
13509 *)
13510 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13511 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13512 case $host in
13513 osf3*)
13514 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'
13515 ;;
13516 *)
13517 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'
13518 ;;
13519 esac
13520
13521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13522 hardcode_libdir_separator_CXX=:
13523
13524 # Commands to make compiler produce verbose output that lists
13525 # what "hidden" libraries, object files and flags are used when
13526 # linking a shared library.
13527 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13528
13529 else
13530 # FIXME: insert proper C++ library support
13531 ld_shlibs_CXX=no
13532 fi
13533 ;;
13534 esac
13535 ;;
13536
13537 psos*)
13538 # FIXME: insert proper C++ library support
13539 ld_shlibs_CXX=no
13540 ;;
13541
13542 sunos4*)
13543 case $cc_basename in
13544 CC*)
13545 # Sun C++ 4.x
13546 # FIXME: insert proper C++ library support
13547 ld_shlibs_CXX=no
13548 ;;
13549 lcc*)
13550 # Lucid
13551 # FIXME: insert proper C++ library support
13552 ld_shlibs_CXX=no
13553 ;;
13554 *)
13555 # FIXME: insert proper C++ library support
13556 ld_shlibs_CXX=no
13557 ;;
13558 esac
13559 ;;
13560
13561 solaris*)
13562 case $cc_basename in
13563 CC*)
13564 # Sun C++ 4.2, 5.x and Centerline C++
13565 archive_cmds_need_lc_CXX=yes
13566 no_undefined_flag_CXX=' -zdefs'
13567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13568 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13569 $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'
13570
13571 hardcode_libdir_flag_spec_CXX='-R$libdir'
13572 hardcode_shlibpath_var_CXX=no
13573 case $host_os in
13574 solaris2.[0-5] | solaris2.[0-5].*) ;;
13575 *)
13576 # The compiler driver will combine and reorder linker options,
13577 # but understands `-z linker_flag'.
13578 # Supported since Solaris 2.6 (maybe 2.5.1?)
13579 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13580 ;;
13581 esac
13582 link_all_deplibs_CXX=yes
13583
13584 output_verbose_link_cmd='func_echo_all'
13585
13586 # Archives containing C++ object files must be created using
13587 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13588 # necessary to make sure instantiated templates are included
13589 # in the archive.
13590 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13591 ;;
13592 gcx*)
13593 # Green Hills C++ Compiler
13594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13595
13596 # The C++ compiler must be used to create the archive.
13597 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13598 ;;
13599 *)
13600 # GNU C++ compiler with Solaris linker
13601 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13602 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13603 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13604 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13605 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13606 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13607
13608 # Commands to make compiler produce verbose output that lists
13609 # what "hidden" libraries, object files and flags are used when
13610 # linking a shared library.
13611 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13612 else
13613 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13614 # platform.
13615 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13616 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13617 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13618
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13622 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13623 fi
13624
13625 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13626 case $host_os in
13627 solaris2.[0-5] | solaris2.[0-5].*) ;;
13628 *)
13629 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13630 ;;
13631 esac
13632 fi
13633 ;;
13634 esac
13635 ;;
13636
13637 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13638 no_undefined_flag_CXX='${wl}-z,text'
13639 archive_cmds_need_lc_CXX=no
13640 hardcode_shlibpath_var_CXX=no
13641 runpath_var='LD_RUN_PATH'
13642
13643 case $cc_basename in
13644 CC*)
13645 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647 ;;
13648 *)
13649 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 ;;
13652 esac
13653 ;;
13654
13655 sysv5* | sco3.2v5* | sco5v6*)
13656 # Note: We can NOT use -z defs as we might desire, because we do not
13657 # link with -lc, and that would cause any symbols used from libc to
13658 # always be unresolved, which means just about no library would
13659 # ever link correctly. If we're not using GNU ld we use -z text
13660 # though, which does catch some bad symbols but isn't as heavy-handed
13661 # as -z defs.
13662 no_undefined_flag_CXX='${wl}-z,text'
13663 allow_undefined_flag_CXX='${wl}-z,nodefs'
13664 archive_cmds_need_lc_CXX=no
13665 hardcode_shlibpath_var_CXX=no
13666 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13667 hardcode_libdir_separator_CXX=':'
13668 link_all_deplibs_CXX=yes
13669 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13670 runpath_var='LD_RUN_PATH'
13671
13672 case $cc_basename in
13673 CC*)
13674 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13677 '"$old_archive_cmds_CXX"
13678 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13679 '"$reload_cmds_CXX"
13680 ;;
13681 *)
13682 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13684 ;;
13685 esac
13686 ;;
13687
13688 tandem*)
13689 case $cc_basename in
13690 NCC*)
13691 # NonStop-UX NCC 3.20
13692 # FIXME: insert proper C++ library support
13693 ld_shlibs_CXX=no
13694 ;;
13695 *)
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13698 ;;
13699 esac
13700 ;;
13701
13702 vxworks*)
13703 # FIXME: insert proper C++ library support
13704 ld_shlibs_CXX=no
13705 ;;
13706
13707 *)
13708 # FIXME: insert proper C++ library support
13709 ld_shlibs_CXX=no
13710 ;;
13711 esac
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13714$as_echo "$ld_shlibs_CXX" >&6; }
13715 test "$ld_shlibs_CXX" = no && can_build_shared=no
13716
13717 GCC_CXX="$GXX"
13718 LD_CXX="$LD"
13719
13720 ## CAVEAT EMPTOR:
13721 ## There is no encapsulation within the following macros, do not change
13722 ## the running order or otherwise move them around unless you know exactly
13723 ## what you are doing...
13724 # Dependencies to place before and after the object being linked:
13725predep_objects_CXX=
13726postdep_objects_CXX=
13727predeps_CXX=
13728postdeps_CXX=
13729compiler_lib_search_path_CXX=
13730
13731cat > conftest.$ac_ext <<_LT_EOF
13732class Foo
13733{
13734public:
13735 Foo (void) { a = 0; }
13736private:
13737 int a;
13738};
13739_LT_EOF
13740
13741if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13742 (eval $ac_compile) 2>&5
13743 ac_status=$?
13744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13745 test $ac_status = 0; }; then
13746 # Parse the compiler output and extract the necessary
13747 # objects, libraries and library flags.
13748
13749 # Sentinel used to keep track of whether or not we are before
13750 # the conftest object file.
13751 pre_test_object_deps_done=no
13752
13753 for p in `eval "$output_verbose_link_cmd"`; do
13754 case $p in
13755
13756 -L* | -R* | -l*)
13757 # Some compilers place space between "-{L,R}" and the path.
13758 # Remove the space.
13759 if test $p = "-L" ||
13760 test $p = "-R"; then
13761 prev=$p
13762 continue
13763 else
13764 prev=
13765 fi
13766
13767 if test "$pre_test_object_deps_done" = no; then
13768 case $p in
13769 -L* | -R*)
13770 # Internal compiler library paths should come after those
13771 # provided the user. The postdeps already come after the
13772 # user supplied libs so there is no need to process them.
13773 if test -z "$compiler_lib_search_path_CXX"; then
13774 compiler_lib_search_path_CXX="${prev}${p}"
13775 else
13776 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13777 fi
13778 ;;
13779 # The "-l" case would never come before the object being
13780 # linked, so don't bother handling this case.
13781 esac
13782 else
13783 if test -z "$postdeps_CXX"; then
13784 postdeps_CXX="${prev}${p}"
13785 else
13786 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13787 fi
13788 fi
13789 ;;
13790
13791 *.$objext)
13792 # This assumes that the test object file only shows up
13793 # once in the compiler output.
13794 if test "$p" = "conftest.$objext"; then
13795 pre_test_object_deps_done=yes
13796 continue
13797 fi
13798
13799 if test "$pre_test_object_deps_done" = no; then
13800 if test -z "$predep_objects_CXX"; then
13801 predep_objects_CXX="$p"
13802 else
13803 predep_objects_CXX="$predep_objects_CXX $p"
13804 fi
13805 else
13806 if test -z "$postdep_objects_CXX"; then
13807 postdep_objects_CXX="$p"
13808 else
13809 postdep_objects_CXX="$postdep_objects_CXX $p"
13810 fi
13811 fi
13812 ;;
13813
13814 *) ;; # Ignore the rest.
13815
13816 esac
13817 done
13818
13819 # Clean up.
13820 rm -f a.out a.exe
13821else
13822 echo "libtool.m4: error: problem compiling CXX test program"
13823fi
13824
13825$RM -f confest.$objext
13826
13827# PORTME: override above test on systems where it is broken
13828case $host_os in
13829interix[3-9]*)
13830 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13831 # hack all around it, let's just trust "g++" to DTRT.
13832 predep_objects_CXX=
13833 postdep_objects_CXX=
13834 postdeps_CXX=
13835 ;;
13836
13837linux*)
13838 case `$CC -V 2>&1 | sed 5q` in
13839 *Sun\ C*)
13840 # Sun C++ 5.9
13841
13842 # The more standards-conforming stlport4 library is
13843 # incompatible with the Cstd library. Avoid specifying
13844 # it if it's in CXXFLAGS. Ignore libCrun as
13845 # -library=stlport4 depends on it.
13846 case " $CXX $CXXFLAGS " in
13847 *" -library=stlport4 "*)
13848 solaris_use_stlport4=yes
13849 ;;
13850 esac
13851
13852 if test "$solaris_use_stlport4" != yes; then
13853 postdeps_CXX='-library=Cstd -library=Crun'
13854 fi
13855 ;;
13856 esac
13857 ;;
13858
13859solaris*)
13860 case $cc_basename in
13861 CC*)
13862 # The more standards-conforming stlport4 library is
13863 # incompatible with the Cstd library. Avoid specifying
13864 # it if it's in CXXFLAGS. Ignore libCrun as
13865 # -library=stlport4 depends on it.
13866 case " $CXX $CXXFLAGS " in
13867 *" -library=stlport4 "*)
13868 solaris_use_stlport4=yes
13869 ;;
13870 esac
13871
13872 # Adding this requires a known-good setup of shared libraries for
13873 # Sun compiler versions before 5.6, else PIC objects from an old
13874 # archive will be linked into the output, leading to subtle bugs.
13875 if test "$solaris_use_stlport4" != yes; then
13876 postdeps_CXX='-library=Cstd -library=Crun'
13877 fi
13878 ;;
13879 esac
13880 ;;
13881esac
13882
13883
13884case " $postdeps_CXX " in
13885*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13886esac
13887 compiler_lib_search_dirs_CXX=
13888if test -n "${compiler_lib_search_path_CXX}"; then
13889 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13890fi
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922 lt_prog_compiler_wl_CXX=
13923lt_prog_compiler_pic_CXX=
13924lt_prog_compiler_static_CXX=
13925
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13927$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13928
13929 # C++ specific cases for pic, static, wl, etc.
13930 if test "$GXX" = yes; then
13931 lt_prog_compiler_wl_CXX='-Wl,'
13932 lt_prog_compiler_static_CXX='-static'
13933
13934 case $host_os in
13935 aix*)
13936 # All AIX code is PIC.
13937 if test "$host_cpu" = ia64; then
13938 # AIX 5 now supports IA64 processor
13939 lt_prog_compiler_static_CXX='-Bstatic'
13940 fi
52204357 13941 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13942 ;;
13943
13944 amigaos*)
13945 case $host_cpu in
13946 powerpc)
13947 # see comment about AmigaOS4 .so support
13948 lt_prog_compiler_pic_CXX='-fPIC'
13949 ;;
13950 m68k)
13951 # FIXME: we need at least 68020 code to build shared libraries, but
13952 # adding the `-m68020' flag to GCC prevents building anything better,
13953 # like `-m68040'.
13954 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13955 ;;
13956 esac
13957 ;;
13958
13959 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13960 # PIC is the default for these OSes.
13961 ;;
13962 mingw* | cygwin* | os2* | pw32* | cegcc*)
13963 # This hack is so that the source file can tell whether it is being
13964 # built for inclusion in a dll (and should export symbols for example).
13965 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13966 # (--disable-auto-import) libraries
13967 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13968 ;;
13969 darwin* | rhapsody*)
13970 # PIC is the default on this platform
13971 # Common symbols not allowed in MH_DYLIB files
13972 lt_prog_compiler_pic_CXX='-fno-common'
13973 ;;
13974 *djgpp*)
13975 # DJGPP does not support shared libraries at all
13976 lt_prog_compiler_pic_CXX=
13977 ;;
13978 haiku*)
13979 # PIC is the default for Haiku.
13980 # The "-static" flag exists, but is broken.
13981 lt_prog_compiler_static_CXX=
13982 ;;
13983 interix[3-9]*)
13984 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13985 # Instead, we relocate shared libraries at runtime.
13986 ;;
13987 sysv4*MP*)
13988 if test -d /usr/nec; then
13989 lt_prog_compiler_pic_CXX=-Kconform_pic
13990 fi
13991 ;;
13992 hpux*)
13993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13995 # sets the default TLS model and affects inlining.
13996 case $host_cpu in
13997 hppa*64*)
13998 ;;
13999 *)
14000 lt_prog_compiler_pic_CXX='-fPIC'
14001 ;;
14002 esac
14003 ;;
14004 *qnx* | *nto*)
14005 # QNX uses GNU C++, but need to define -shared option too, otherwise
14006 # it will coredump.
14007 lt_prog_compiler_pic_CXX='-fPIC -shared'
14008 ;;
14009 *)
14010 lt_prog_compiler_pic_CXX='-fPIC'
14011 ;;
14012 esac
14013 else
14014 case $host_os in
14015 aix[4-9]*)
14016 # All AIX code is PIC.
14017 if test "$host_cpu" = ia64; then
14018 # AIX 5 now supports IA64 processor
14019 lt_prog_compiler_static_CXX='-Bstatic'
14020 else
14021 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14022 fi
14023 ;;
14024 chorus*)
14025 case $cc_basename in
14026 cxch68*)
14027 # Green Hills C++ Compiler
14028 # _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"
14029 ;;
14030 esac
14031 ;;
14032 dgux*)
14033 case $cc_basename in
14034 ec++*)
14035 lt_prog_compiler_pic_CXX='-KPIC'
14036 ;;
14037 ghcx*)
14038 # Green Hills C++ Compiler
14039 lt_prog_compiler_pic_CXX='-pic'
14040 ;;
14041 *)
14042 ;;
14043 esac
14044 ;;
14045 freebsd* | dragonfly*)
14046 # FreeBSD uses GNU C++
14047 ;;
14048 hpux9* | hpux10* | hpux11*)
14049 case $cc_basename in
14050 CC*)
14051 lt_prog_compiler_wl_CXX='-Wl,'
14052 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14053 if test "$host_cpu" != ia64; then
14054 lt_prog_compiler_pic_CXX='+Z'
14055 fi
14056 ;;
14057 aCC*)
14058 lt_prog_compiler_wl_CXX='-Wl,'
14059 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14060 case $host_cpu in
14061 hppa*64*|ia64*)
14062 # +Z the default
14063 ;;
14064 *)
14065 lt_prog_compiler_pic_CXX='+Z'
14066 ;;
14067 esac
14068 ;;
14069 *)
14070 ;;
14071 esac
14072 ;;
14073 interix*)
14074 # This is c89, which is MS Visual C++ (no shared libs)
14075 # Anyone wants to do a port?
14076 ;;
14077 irix5* | irix6* | nonstopux*)
14078 case $cc_basename in
14079 CC*)
14080 lt_prog_compiler_wl_CXX='-Wl,'
14081 lt_prog_compiler_static_CXX='-non_shared'
14082 # CC pic flag -KPIC is the default.
14083 ;;
14084 *)
14085 ;;
14086 esac
14087 ;;
14088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14089 case $cc_basename in
14090 KCC*)
14091 # KAI C++ Compiler
14092 lt_prog_compiler_wl_CXX='--backend -Wl,'
14093 lt_prog_compiler_pic_CXX='-fPIC'
14094 ;;
14095 ecpc* )
14096 # old Intel C++ for x86_64 which still supported -KPIC.
14097 lt_prog_compiler_wl_CXX='-Wl,'
14098 lt_prog_compiler_pic_CXX='-KPIC'
14099 lt_prog_compiler_static_CXX='-static'
14100 ;;
14101 icpc* )
14102 # Intel C++, used to be incompatible with GCC.
14103 # ICC 10 doesn't accept -KPIC any more.
14104 lt_prog_compiler_wl_CXX='-Wl,'
14105 lt_prog_compiler_pic_CXX='-fPIC'
14106 lt_prog_compiler_static_CXX='-static'
14107 ;;
14108 pgCC* | pgcpp*)
14109 # Portland Group C++ compiler
14110 lt_prog_compiler_wl_CXX='-Wl,'
14111 lt_prog_compiler_pic_CXX='-fpic'
14112 lt_prog_compiler_static_CXX='-Bstatic'
14113 ;;
14114 cxx*)
14115 # Compaq C++
14116 # Make sure the PIC flag is empty. It appears that all Alpha
14117 # Linux and Compaq Tru64 Unix objects are PIC.
14118 lt_prog_compiler_pic_CXX=
14119 lt_prog_compiler_static_CXX='-non_shared'
14120 ;;
14121 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14122 # IBM XL 8.0, 9.0 on PPC and BlueGene
14123 lt_prog_compiler_wl_CXX='-Wl,'
14124 lt_prog_compiler_pic_CXX='-qpic'
14125 lt_prog_compiler_static_CXX='-qstaticlink'
14126 ;;
14127 *)
14128 case `$CC -V 2>&1 | sed 5q` in
14129 *Sun\ C*)
14130 # Sun C++ 5.9
14131 lt_prog_compiler_pic_CXX='-KPIC'
14132 lt_prog_compiler_static_CXX='-Bstatic'
14133 lt_prog_compiler_wl_CXX='-Qoption ld '
14134 ;;
14135 esac
14136 ;;
14137 esac
14138 ;;
14139 lynxos*)
14140 ;;
14141 m88k*)
14142 ;;
14143 mvs*)
14144 case $cc_basename in
14145 cxx*)
14146 lt_prog_compiler_pic_CXX='-W c,exportall'
14147 ;;
14148 *)
14149 ;;
14150 esac
14151 ;;
14152 netbsd*)
14153 ;;
14154 *qnx* | *nto*)
14155 # QNX uses GNU C++, but need to define -shared option too, otherwise
14156 # it will coredump.
14157 lt_prog_compiler_pic_CXX='-fPIC -shared'
14158 ;;
14159 osf3* | osf4* | osf5*)
14160 case $cc_basename in
14161 KCC*)
14162 lt_prog_compiler_wl_CXX='--backend -Wl,'
14163 ;;
14164 RCC*)
14165 # Rational C++ 2.4.1
14166 lt_prog_compiler_pic_CXX='-pic'
14167 ;;
14168 cxx*)
14169 # Digital/Compaq C++
14170 lt_prog_compiler_wl_CXX='-Wl,'
14171 # Make sure the PIC flag is empty. It appears that all Alpha
14172 # Linux and Compaq Tru64 Unix objects are PIC.
14173 lt_prog_compiler_pic_CXX=
14174 lt_prog_compiler_static_CXX='-non_shared'
14175 ;;
14176 *)
14177 ;;
14178 esac
14179 ;;
14180 psos*)
14181 ;;
14182 solaris*)
14183 case $cc_basename in
14184 CC*)
14185 # Sun C++ 4.2, 5.x and Centerline C++
14186 lt_prog_compiler_pic_CXX='-KPIC'
14187 lt_prog_compiler_static_CXX='-Bstatic'
14188 lt_prog_compiler_wl_CXX='-Qoption ld '
14189 ;;
14190 gcx*)
14191 # Green Hills C++ Compiler
14192 lt_prog_compiler_pic_CXX='-PIC'
14193 ;;
14194 *)
14195 ;;
14196 esac
14197 ;;
14198 sunos4*)
14199 case $cc_basename in
14200 CC*)
14201 # Sun C++ 4.x
14202 lt_prog_compiler_pic_CXX='-pic'
14203 lt_prog_compiler_static_CXX='-Bstatic'
14204 ;;
14205 lcc*)
14206 # Lucid
14207 lt_prog_compiler_pic_CXX='-pic'
14208 ;;
14209 *)
14210 ;;
14211 esac
14212 ;;
14213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14214 case $cc_basename in
14215 CC*)
14216 lt_prog_compiler_wl_CXX='-Wl,'
14217 lt_prog_compiler_pic_CXX='-KPIC'
14218 lt_prog_compiler_static_CXX='-Bstatic'
14219 ;;
14220 esac
14221 ;;
14222 tandem*)
14223 case $cc_basename in
14224 NCC*)
14225 # NonStop-UX NCC 3.20
14226 lt_prog_compiler_pic_CXX='-KPIC'
14227 ;;
14228 *)
14229 ;;
14230 esac
14231 ;;
14232 vxworks*)
14233 ;;
14234 *)
14235 lt_prog_compiler_can_build_shared_CXX=no
14236 ;;
14237 esac
14238 fi
14239
14240case $host_os in
14241 # For platforms which do not support PIC, -DPIC is meaningless:
14242 *djgpp*)
14243 lt_prog_compiler_pic_CXX=
14244 ;;
14245 *)
14246 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14247 ;;
14248esac
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14250$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14251
14252
14253
14254#
14255# Check to make sure the PIC flag actually works.
14256#
14257if test -n "$lt_prog_compiler_pic_CXX"; then
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14259$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
d0ac1c44 14260if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
3cb62297
L
14261 $as_echo_n "(cached) " >&6
14262else
14263 lt_cv_prog_compiler_pic_works_CXX=no
14264 ac_outfile=conftest.$ac_objext
14265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14266 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14267 # Insert the option either (1) after the last *FLAGS variable, or
14268 # (2) before a word containing "conftest.", or (3) at the end.
14269 # Note that $ac_compile itself does not contain backslashes and begins
14270 # with a dollar sign (not a hyphen), so the echo should work correctly.
14271 # The option is referenced via a variable to avoid confusing sed.
14272 lt_compile=`echo "$ac_compile" | $SED \
14273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14275 -e 's:$: $lt_compiler_flag:'`
14276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14277 (eval "$lt_compile" 2>conftest.err)
14278 ac_status=$?
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 if (exit $ac_status) && test -s "$ac_outfile"; then
14282 # The compiler can only warn and ignore the option if not recognized
14283 # So say no if there are warnings other than the usual output.
14284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14287 lt_cv_prog_compiler_pic_works_CXX=yes
14288 fi
14289 fi
14290 $RM conftest*
14291
14292fi
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14294$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14295
14296if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14297 case $lt_prog_compiler_pic_CXX in
14298 "" | " "*) ;;
14299 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14300 esac
14301else
14302 lt_prog_compiler_pic_CXX=
14303 lt_prog_compiler_can_build_shared_CXX=no
14304fi
14305
14306fi
14307
14308
14309
14310#
14311# Check to make sure the static flag actually works.
14312#
14313wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14315$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 14316if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
3cb62297
L
14317 $as_echo_n "(cached) " >&6
14318else
14319 lt_cv_prog_compiler_static_works_CXX=no
14320 save_LDFLAGS="$LDFLAGS"
14321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14322 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14324 # The linker can only warn and ignore the option if not recognized
14325 # So say no if there are warnings
14326 if test -s conftest.err; then
14327 # Append any errors to the config.log.
14328 cat conftest.err 1>&5
14329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14331 if diff conftest.exp conftest.er2 >/dev/null; then
14332 lt_cv_prog_compiler_static_works_CXX=yes
14333 fi
14334 else
14335 lt_cv_prog_compiler_static_works_CXX=yes
14336 fi
14337 fi
14338 $RM -r conftest*
14339 LDFLAGS="$save_LDFLAGS"
14340
14341fi
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14343$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14344
14345if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14346 :
14347else
14348 lt_prog_compiler_static_CXX=
14349fi
14350
14351
14352
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14355$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14356if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14357 $as_echo_n "(cached) " >&6
14358else
14359 lt_cv_prog_compiler_c_o_CXX=no
14360 $RM -r conftest 2>/dev/null
14361 mkdir conftest
14362 cd conftest
14363 mkdir out
14364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14365
14366 lt_compiler_flag="-o out/conftest2.$ac_objext"
14367 # Insert the option either (1) after the last *FLAGS variable, or
14368 # (2) before a word containing "conftest.", or (3) at the end.
14369 # Note that $ac_compile itself does not contain backslashes and begins
14370 # with a dollar sign (not a hyphen), so the echo should work correctly.
14371 lt_compile=`echo "$ac_compile" | $SED \
14372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14374 -e 's:$: $lt_compiler_flag:'`
14375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14376 (eval "$lt_compile" 2>out/conftest.err)
14377 ac_status=$?
14378 cat out/conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14381 then
14382 # The compiler can only warn and ignore the option if not recognized
14383 # So say no if there are warnings
14384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14387 lt_cv_prog_compiler_c_o_CXX=yes
14388 fi
14389 fi
14390 chmod u+w . 2>&5
14391 $RM conftest*
14392 # SGI C++ compiler will create directory out/ii_files/ for
14393 # template instantiation
14394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14395 $RM out/* && rmdir out
14396 cd ..
14397 $RM -r conftest
14398 $RM conftest*
14399
14400fi
14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14402$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14403
14404
14405
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14407$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14408if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14409 $as_echo_n "(cached) " >&6
14410else
14411 lt_cv_prog_compiler_c_o_CXX=no
14412 $RM -r conftest 2>/dev/null
14413 mkdir conftest
14414 cd conftest
14415 mkdir out
14416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14417
14418 lt_compiler_flag="-o out/conftest2.$ac_objext"
14419 # Insert the option either (1) after the last *FLAGS variable, or
14420 # (2) before a word containing "conftest.", or (3) at the end.
14421 # Note that $ac_compile itself does not contain backslashes and begins
14422 # with a dollar sign (not a hyphen), so the echo should work correctly.
14423 lt_compile=`echo "$ac_compile" | $SED \
14424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14426 -e 's:$: $lt_compiler_flag:'`
14427 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14428 (eval "$lt_compile" 2>out/conftest.err)
14429 ac_status=$?
14430 cat out/conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14433 then
14434 # The compiler can only warn and ignore the option if not recognized
14435 # So say no if there are warnings
14436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14437 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14438 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14439 lt_cv_prog_compiler_c_o_CXX=yes
14440 fi
14441 fi
14442 chmod u+w . 2>&5
14443 $RM conftest*
14444 # SGI C++ compiler will create directory out/ii_files/ for
14445 # template instantiation
14446 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14447 $RM out/* && rmdir out
14448 cd ..
14449 $RM -r conftest
14450 $RM conftest*
14451
14452fi
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14454$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14455
14456
14457
14458
14459hard_links="nottested"
14460if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14461 # do not overwrite the value of need_locks provided by the user
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14463$as_echo_n "checking if we can lock with hard links... " >&6; }
14464 hard_links=yes
14465 $RM conftest*
14466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14467 touch conftest.a
14468 ln conftest.a conftest.b 2>&5 || hard_links=no
14469 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14471$as_echo "$hard_links" >&6; }
14472 if test "$hard_links" = no; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14474$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14475 need_locks=warn
14476 fi
14477else
14478 need_locks=no
14479fi
14480
14481
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14484$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14485
14486 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14487 case $host_os in
14488 aix[4-9]*)
14489 # If we're using GNU nm, then we don't want the "-C" option.
14490 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14491 # Also, AIX nm treats weak defined symbols like other global defined
14492 # symbols, whereas GNU nm marks them as "W".
14493 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14494 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'
14495 else
5c14705f 14496 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
14497 fi
14498 ;;
14499 pw32*)
14500 export_symbols_cmds_CXX="$ltdll_cmds"
14501 ;;
14502 cygwin* | mingw* | cegcc*)
14503 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'
14504 ;;
14505 *)
14506 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14507 ;;
14508 esac
14509 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14510
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14512$as_echo "$ld_shlibs_CXX" >&6; }
14513test "$ld_shlibs_CXX" = no && can_build_shared=no
14514
14515with_gnu_ld_CXX=$with_gnu_ld
14516
14517
14518
14519
14520
14521
14522#
14523# Do we need to explicitly link libc?
14524#
14525case "x$archive_cmds_need_lc_CXX" in
14526x|xyes)
14527 # Assume -lc should be added
14528 archive_cmds_need_lc_CXX=yes
14529
14530 if test "$enable_shared" = yes && test "$GCC" = yes; then
14531 case $archive_cmds_CXX in
14532 *'~'*)
14533 # FIXME: we may have to deal with multi-command sequences.
14534 ;;
14535 '$CC '*)
14536 # Test whether the compiler implicitly links with -lc since on some
14537 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14538 # to ld, don't add -lc before -lgcc.
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14540$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 14541if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
3cb62297
L
14542 $as_echo_n "(cached) " >&6
14543else
14544 $RM conftest*
14545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14546
14547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14548 (eval $ac_compile) 2>&5
14549 ac_status=$?
14550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14551 test $ac_status = 0; } 2>conftest.err; then
14552 soname=conftest
14553 lib=conftest
14554 libobjs=conftest.$ac_objext
14555 deplibs=
14556 wl=$lt_prog_compiler_wl_CXX
14557 pic_flag=$lt_prog_compiler_pic_CXX
14558 compiler_flags=-v
14559 linker_flags=-v
14560 verstring=
14561 output_objdir=.
14562 libname=conftest
14563 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14564 allow_undefined_flag_CXX=
14565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14566 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14567 ac_status=$?
14568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569 test $ac_status = 0; }
14570 then
14571 lt_cv_archive_cmds_need_lc_CXX=no
14572 else
14573 lt_cv_archive_cmds_need_lc_CXX=yes
14574 fi
14575 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14576 else
14577 cat conftest.err 1>&5
14578 fi
14579 $RM conftest*
14580
14581fi
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14583$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14584 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14585 ;;
14586 esac
14587 fi
14588 ;;
14589esac
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14655$as_echo_n "checking dynamic linker characteristics... " >&6; }
14656
14657library_names_spec=
14658libname_spec='lib$name'
14659soname_spec=
14660shrext_cmds=".so"
14661postinstall_cmds=
14662postuninstall_cmds=
14663finish_cmds=
14664finish_eval=
14665shlibpath_var=
14666shlibpath_overrides_runpath=unknown
14667version_type=none
14668dynamic_linker="$host_os ld.so"
14669sys_lib_dlsearch_path_spec="/lib /usr/lib"
14670need_lib_prefix=unknown
14671hardcode_into_libs=no
14672
14673# when you set need_version to no, make sure it does not cause -set_version
14674# flags to be left without arguments
14675need_version=unknown
14676
14677case $host_os in
14678aix3*)
14679 version_type=linux
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14681 shlibpath_var=LIBPATH
14682
14683 # AIX 3 has no versioning support, so we append a major version to the name.
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 ;;
14686
14687aix[4-9]*)
14688 version_type=linux
14689 need_lib_prefix=no
14690 need_version=no
14691 hardcode_into_libs=yes
14692 if test "$host_cpu" = ia64; then
14693 # AIX 5 supports IA64
14694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 else
14697 # With GCC up to 2.95.x, collect2 would create an import file
14698 # for dependence libraries. The import file would start with
14699 # the line `#! .'. This would cause the generated library to
14700 # depend on `.', always an invalid library. This was fixed in
14701 # development snapshots of GCC prior to 3.0.
14702 case $host_os in
14703 aix4 | aix4.[01] | aix4.[01].*)
14704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14705 echo ' yes '
14706 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14707 :
14708 else
14709 can_build_shared=no
14710 fi
14711 ;;
14712 esac
14713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14714 # soname into executable. Probably we can add versioning support to
14715 # collect2, so additional links can be useful in future.
14716 if test "$aix_use_runtimelinking" = yes; then
14717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14718 # instead of lib<name>.a to let people know that these are not
14719 # typical AIX shared libraries.
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 else
14722 # We preserve .a as extension for shared libraries through AIX4.2
14723 # and later when we are not doing run time linking.
14724 library_names_spec='${libname}${release}.a $libname.a'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 fi
14727 shlibpath_var=LIBPATH
14728 fi
14729 ;;
14730
14731amigaos*)
14732 case $host_cpu in
14733 powerpc)
14734 # Since July 2007 AmigaOS4 officially supports .so libraries.
14735 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737 ;;
14738 m68k)
14739 library_names_spec='$libname.ixlibrary $libname.a'
14740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14741 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'
14742 ;;
14743 esac
14744 ;;
14745
14746beos*)
14747 library_names_spec='${libname}${shared_ext}'
14748 dynamic_linker="$host_os ld.so"
14749 shlibpath_var=LIBRARY_PATH
14750 ;;
14751
14752bsdi[45]*)
14753 version_type=linux
14754 need_version=no
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14758 shlibpath_var=LD_LIBRARY_PATH
14759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14761 # the default ld.so.conf also contains /usr/contrib/lib and
14762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14763 # libtool to hard-code these into programs
14764 ;;
14765
14766cygwin* | mingw* | pw32* | cegcc*)
14767 version_type=windows
14768 shrext_cmds=".dll"
14769 need_version=no
14770 need_lib_prefix=no
14771
14772 case $GCC,$host_os in
14773 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14774 library_names_spec='$libname.dll.a'
14775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14776 postinstall_cmds='base_file=`basename \${file}`~
14777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14778 dldir=$destdir/`dirname \$dlpath`~
14779 test -d \$dldir || mkdir -p \$dldir~
14780 $install_prog $dir/$dlname \$dldir/$dlname~
14781 chmod a+x \$dldir/$dlname~
14782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14784 fi'
14785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14786 dlpath=$dir/\$dldll~
14787 $RM \$dlpath'
14788 shlibpath_overrides_runpath=yes
14789
14790 case $host_os in
14791 cygwin*)
14792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14794
14795 ;;
14796 mingw* | cegcc*)
14797 # MinGW DLLs use traditional 'lib' prefix
14798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14799 ;;
14800 pw32*)
14801 # pw32 DLLs use 'pw' prefix rather than 'lib'
14802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14803 ;;
14804 esac
14805 ;;
14806
14807 *)
14808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14809 ;;
14810 esac
14811 dynamic_linker='Win32 ld.exe'
14812 # FIXME: first we should search . and the directory the executable is in
14813 shlibpath_var=PATH
14814 ;;
14815
14816darwin* | rhapsody*)
14817 dynamic_linker="$host_os dyld"
14818 version_type=darwin
14819 need_lib_prefix=no
14820 need_version=no
14821 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14822 soname_spec='${libname}${release}${major}$shared_ext'
14823 shlibpath_overrides_runpath=yes
14824 shlibpath_var=DYLD_LIBRARY_PATH
14825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14826
14827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14828 ;;
14829
14830dgux*)
14831 version_type=linux
14832 need_lib_prefix=no
14833 need_version=no
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 shlibpath_var=LD_LIBRARY_PATH
14837 ;;
14838
3cb62297
L
14839freebsd* | dragonfly*)
14840 # DragonFly does not have aout. When/if they implement a new
14841 # versioning mechanism, adjust this.
14842 if test -x /usr/bin/objformat; then
14843 objformat=`/usr/bin/objformat`
14844 else
14845 case $host_os in
6d2920c8 14846 freebsd[23].*) objformat=aout ;;
3cb62297
L
14847 *) objformat=elf ;;
14848 esac
14849 fi
14850 version_type=freebsd-$objformat
14851 case $version_type in
14852 freebsd-elf*)
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14854 need_version=no
14855 need_lib_prefix=no
14856 ;;
14857 freebsd-*)
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14859 need_version=yes
14860 ;;
14861 esac
14862 shlibpath_var=LD_LIBRARY_PATH
14863 case $host_os in
6d2920c8 14864 freebsd2.*)
3cb62297
L
14865 shlibpath_overrides_runpath=yes
14866 ;;
14867 freebsd3.[01]* | freebsdelf3.[01]*)
14868 shlibpath_overrides_runpath=yes
14869 hardcode_into_libs=yes
14870 ;;
14871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14873 shlibpath_overrides_runpath=no
14874 hardcode_into_libs=yes
14875 ;;
14876 *) # from 4.6 on, and DragonFly
14877 shlibpath_overrides_runpath=yes
14878 hardcode_into_libs=yes
14879 ;;
14880 esac
14881 ;;
14882
14883gnu*)
14884 version_type=linux
14885 need_lib_prefix=no
14886 need_version=no
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14889 shlibpath_var=LD_LIBRARY_PATH
14890 hardcode_into_libs=yes
14891 ;;
14892
14893haiku*)
14894 version_type=linux
14895 need_lib_prefix=no
14896 need_version=no
14897 dynamic_linker="$host_os runtime_loader"
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LIBRARY_PATH
14901 shlibpath_overrides_runpath=yes
14902 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14903 hardcode_into_libs=yes
14904 ;;
14905
14906hpux9* | hpux10* | hpux11*)
14907 # Give a soname corresponding to the major version so that dld.sl refuses to
14908 # link against other versions.
14909 version_type=sunos
14910 need_lib_prefix=no
14911 need_version=no
14912 case $host_cpu in
14913 ia64*)
14914 shrext_cmds='.so'
14915 hardcode_into_libs=yes
14916 dynamic_linker="$host_os dld.so"
14917 shlibpath_var=LD_LIBRARY_PATH
14918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14920 soname_spec='${libname}${release}${shared_ext}$major'
14921 if test "X$HPUX_IA64_MODE" = X32; then
14922 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14923 else
14924 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14925 fi
14926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14927 ;;
14928 hppa*64*)
14929 shrext_cmds='.sl'
14930 hardcode_into_libs=yes
14931 dynamic_linker="$host_os dld.sl"
14932 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14937 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14938 ;;
14939 *)
14940 shrext_cmds='.sl'
14941 dynamic_linker="$host_os dld.sl"
14942 shlibpath_var=SHLIB_PATH
14943 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 ;;
14947 esac
14948 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14949 postinstall_cmds='chmod 555 $lib'
14950 # or fails outright, so override atomically:
14951 install_override_mode=555
14952 ;;
14953
14954interix[3-9]*)
14955 version_type=linux
14956 need_lib_prefix=no
14957 need_version=no
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 shlibpath_overrides_runpath=no
14963 hardcode_into_libs=yes
14964 ;;
14965
14966irix5* | irix6* | nonstopux*)
14967 case $host_os in
14968 nonstopux*) version_type=nonstopux ;;
14969 *)
14970 if test "$lt_cv_prog_gnu_ld" = yes; then
14971 version_type=linux
14972 else
14973 version_type=irix
14974 fi ;;
14975 esac
14976 need_lib_prefix=no
14977 need_version=no
14978 soname_spec='${libname}${release}${shared_ext}$major'
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14980 case $host_os in
14981 irix5* | nonstopux*)
14982 libsuff= shlibsuff=
14983 ;;
14984 *)
14985 case $LD in # libtool.m4 will add one of these switches to LD
14986 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14987 libsuff= shlibsuff= libmagic=32-bit;;
14988 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14989 libsuff=32 shlibsuff=N32 libmagic=N32;;
14990 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14991 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14992 *) libsuff= shlibsuff= libmagic=never-match;;
14993 esac
14994 ;;
14995 esac
14996 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14997 shlibpath_overrides_runpath=no
14998 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14999 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15000 hardcode_into_libs=yes
15001 ;;
15002
15003# No shared lib support for Linux oldld, aout, or coff.
15004linux*oldld* | linux*aout* | linux*coff*)
15005 dynamic_linker=no
15006 ;;
15007
15008# This must be Linux ELF.
15009linux* | k*bsd*-gnu | kopensolaris*-gnu)
15010 version_type=linux
15011 need_lib_prefix=no
15012 need_version=no
15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15014 soname_spec='${libname}${release}${shared_ext}$major'
15015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 shlibpath_overrides_runpath=no
15018
15019 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 15020 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
3cb62297
L
15021 $as_echo_n "(cached) " >&6
15022else
15023 lt_cv_shlibpath_overrides_runpath=no
15024 save_LDFLAGS=$LDFLAGS
15025 save_libdir=$libdir
15026 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15027 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15029/* end confdefs.h. */
15030
15031int
15032main ()
15033{
15034
15035 ;
15036 return 0;
15037}
15038_ACEOF
15039if ac_fn_cxx_try_link "$LINENO"; then :
15040 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15041 lt_cv_shlibpath_overrides_runpath=yes
15042fi
15043fi
15044rm -f core conftest.err conftest.$ac_objext \
15045 conftest$ac_exeext conftest.$ac_ext
15046 LDFLAGS=$save_LDFLAGS
15047 libdir=$save_libdir
15048
15049fi
15050
15051 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15052
15053 # This implies no fast_install, which is unacceptable.
15054 # Some rework will be needed to allow for fast_install
15055 # before this can be enabled.
15056 hardcode_into_libs=yes
15057
15058 # Append ld.so.conf contents to the search path
15059 if test -f /etc/ld.so.conf; then
15060 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' ' '`
15061 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15062 fi
15063
15064 # We used to test for /lib/ld.so.1 and disable shared libraries on
15065 # powerpc, because MkLinux only supported shared libraries with the
15066 # GNU dynamic linker. Since this was broken with cross compilers,
15067 # most powerpc-linux boxes support dynamic linking these days and
15068 # people can always --disable-shared, the test was removed, and we
15069 # assume the GNU/Linux dynamic linker is in use.
15070 dynamic_linker='GNU/Linux ld.so'
15071 ;;
15072
15073netbsd*)
15074 version_type=sunos
15075 need_lib_prefix=no
15076 need_version=no
15077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15080 dynamic_linker='NetBSD (a.out) ld.so'
15081 else
15082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15083 soname_spec='${libname}${release}${shared_ext}$major'
15084 dynamic_linker='NetBSD ld.elf_so'
15085 fi
15086 shlibpath_var=LD_LIBRARY_PATH
15087 shlibpath_overrides_runpath=yes
15088 hardcode_into_libs=yes
15089 ;;
15090
15091newsos6)
15092 version_type=linux
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=yes
15096 ;;
15097
15098*nto* | *qnx*)
15099 version_type=qnx
15100 need_lib_prefix=no
15101 need_version=no
15102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15103 soname_spec='${libname}${release}${shared_ext}$major'
15104 shlibpath_var=LD_LIBRARY_PATH
15105 shlibpath_overrides_runpath=no
15106 hardcode_into_libs=yes
15107 dynamic_linker='ldqnx.so'
15108 ;;
15109
15110openbsd*)
15111 version_type=sunos
15112 sys_lib_dlsearch_path_spec="/usr/lib"
15113 need_lib_prefix=no
15114 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15115 case $host_os in
15116 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15117 *) need_version=no ;;
15118 esac
15119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15121 shlibpath_var=LD_LIBRARY_PATH
15122 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15123 case $host_os in
15124 openbsd2.[89] | openbsd2.[89].*)
15125 shlibpath_overrides_runpath=no
15126 ;;
15127 *)
15128 shlibpath_overrides_runpath=yes
15129 ;;
15130 esac
15131 else
15132 shlibpath_overrides_runpath=yes
15133 fi
15134 ;;
15135
15136os2*)
15137 libname_spec='$name'
15138 shrext_cmds=".dll"
15139 need_lib_prefix=no
15140 library_names_spec='$libname${shared_ext} $libname.a'
15141 dynamic_linker='OS/2 ld.exe'
15142 shlibpath_var=LIBPATH
15143 ;;
15144
15145osf3* | osf4* | osf5*)
15146 version_type=osf
15147 need_lib_prefix=no
15148 need_version=no
15149 soname_spec='${libname}${release}${shared_ext}$major'
15150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15153 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15154 ;;
15155
15156rdos*)
15157 dynamic_linker=no
15158 ;;
15159
15160solaris*)
15161 version_type=linux
15162 need_lib_prefix=no
15163 need_version=no
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=yes
15168 hardcode_into_libs=yes
15169 # ldd complains unless libraries are executable
15170 postinstall_cmds='chmod +x $lib'
15171 ;;
15172
15173sunos4*)
15174 version_type=sunos
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=yes
15179 if test "$with_gnu_ld" = yes; then
15180 need_lib_prefix=no
15181 fi
15182 need_version=yes
15183 ;;
15184
15185sysv4 | sysv4.3*)
15186 version_type=linux
15187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 shlibpath_var=LD_LIBRARY_PATH
15190 case $host_vendor in
15191 sni)
15192 shlibpath_overrides_runpath=no
15193 need_lib_prefix=no
15194 runpath_var=LD_RUN_PATH
15195 ;;
15196 siemens)
15197 need_lib_prefix=no
15198 ;;
15199 motorola)
15200 need_lib_prefix=no
15201 need_version=no
15202 shlibpath_overrides_runpath=no
15203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15204 ;;
15205 esac
15206 ;;
15207
15208sysv4*MP*)
15209 if test -d /usr/nec ;then
15210 version_type=linux
15211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15212 soname_spec='$libname${shared_ext}.$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15214 fi
15215 ;;
15216
15217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15218 version_type=freebsd-elf
15219 need_lib_prefix=no
15220 need_version=no
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15222 soname_spec='${libname}${release}${shared_ext}$major'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 shlibpath_overrides_runpath=yes
15225 hardcode_into_libs=yes
15226 if test "$with_gnu_ld" = yes; then
15227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15228 else
15229 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15230 case $host_os in
15231 sco3.2v5*)
15232 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15233 ;;
15234 esac
15235 fi
15236 sys_lib_dlsearch_path_spec='/usr/lib'
15237 ;;
15238
15239tpf*)
15240 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15241 version_type=linux
15242 need_lib_prefix=no
15243 need_version=no
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245 shlibpath_var=LD_LIBRARY_PATH
15246 shlibpath_overrides_runpath=no
15247 hardcode_into_libs=yes
15248 ;;
15249
15250uts4*)
15251 version_type=linux
15252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253 soname_spec='${libname}${release}${shared_ext}$major'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 ;;
15256
15257*)
15258 dynamic_linker=no
15259 ;;
15260esac
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15262$as_echo "$dynamic_linker" >&6; }
15263test "$dynamic_linker" = no && can_build_shared=no
15264
15265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15266if test "$GCC" = yes; then
15267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15268fi
15269
15270if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15271 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15272fi
15273if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15274 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15275fi
15276
3725885a 15277
ce2cded5 15278
ce2cded5 15279
ce2cded5 15280
d7040cdb 15281
ce2cded5 15282
ce2cded5 15283
ce2cded5 15284
d7040cdb 15285
ce2cded5
L
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
ce2cded5
L
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
b879806f
AM
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15315$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15316hardcode_action_CXX=
15317if test -n "$hardcode_libdir_flag_spec_CXX" ||
15318 test -n "$runpath_var_CXX" ||
15319 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15320
15321 # We can hardcode non-existent directories.
15322 if test "$hardcode_direct_CXX" != no &&
15323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15324 # have to relink, otherwise we might link with an installed library
15325 # when we should be linking with a yet-to-be-installed one
15326 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15327 test "$hardcode_minus_L_CXX" != no; then
15328 # Linking always hardcodes the temporary library directory.
15329 hardcode_action_CXX=relink
15330 else
15331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15332 hardcode_action_CXX=immediate
15333 fi
15334else
15335 # We cannot hardcode anything, or else we can only hardcode existing
15336 # directories.
15337 hardcode_action_CXX=unsupported
15338fi
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15340$as_echo "$hardcode_action_CXX" >&6; }
15341
15342if test "$hardcode_action_CXX" = relink ||
15343 test "$inherit_rpath_CXX" = yes; then
15344 # Fast installation is not supported
15345 enable_fast_install=no
15346elif test "$shlibpath_overrides_runpath" = yes ||
15347 test "$enable_shared" = no; then
15348 # Fast installation is not necessary
15349 enable_fast_install=needless
15350fi
15351
15352
15353
15354
15355
15356
15357
15358 fi # test -n "$compiler"
15359
15360 CC=$lt_save_CC
15361 LDCXX=$LD
15362 LD=$lt_save_LD
15363 GCC=$lt_save_GCC
15364 with_gnu_ld=$lt_save_with_gnu_ld
15365 lt_cv_path_LDCXX=$lt_cv_path_LD
15366 lt_cv_path_LD=$lt_save_path_LD
15367 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15368 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15369fi # test "$_lt_caught_CXX_error" != yes
15370
15371ac_ext=c
15372ac_cpp='$CPP $CPPFLAGS'
15373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15375ac_compiler_gnu=$ac_cv_c_compiler_gnu
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389 ac_config_commands="$ac_config_commands libtool"
15390
15391
15392
15393
15394# Only expand once:
15395
15396
15397
15398# The tests for host and target for $enable_largefile require
15399# canonical names.
15400
15401
15402
15403# As the $enable_largefile decision depends on --enable-plugins we must set it
15404# even in directories otherwise not depending on the $plugins option.
15405
15406
15407 maybe_plugins=no
15408 for ac_header in dlfcn.h
15409do :
15410 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15411"
d0ac1c44 15412if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
15413 cat >>confdefs.h <<_ACEOF
15414#define HAVE_DLFCN_H 1
15415_ACEOF
15416 maybe_plugins=yes
15417fi
15418
15419done
15420
15421 for ac_header in windows.h
15422do :
15423 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15424"
d0ac1c44 15425if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
15426 cat >>confdefs.h <<_ACEOF
15427#define HAVE_WINDOWS_H 1
15428_ACEOF
15429 maybe_plugins=yes
15430fi
15431
15432done
15433
15434
15435 # Check whether --enable-plugins was given.
15436if test "${enable_plugins+set}" = set; then :
15437 enableval=$enable_plugins; case "${enableval}" in
15438 no) plugins=no ;;
15439 *) plugins=yes
15440 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 15441 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
15442 fi ;;
15443 esac
15444else
15445 plugins=$maybe_plugins
15446
15447fi
15448
2974be62 15449 if test "$plugins" = "yes"; then
3cba8b6c
L
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15451$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 15452if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15453 $as_echo_n "(cached) " >&6
15454else
15455 ac_func_search_save_LIBS=$LIBS
15456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h. */
15458
15459/* Override any GCC internal prototype to avoid an error.
15460 Use char because int might match the return type of a GCC
15461 builtin and then its argument prototype would still apply. */
15462#ifdef __cplusplus
15463extern "C"
15464#endif
3cba8b6c 15465char dlsym ();
2974be62
AM
15466int
15467main ()
15468{
3cba8b6c 15469return dlsym ();
2974be62
AM
15470 ;
15471 return 0;
15472}
15473_ACEOF
15474for ac_lib in '' dl; do
15475 if test -z "$ac_lib"; then
15476 ac_res="none required"
15477 else
15478 ac_res=-l$ac_lib
15479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15480 fi
15481 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 15482 ac_cv_search_dlsym=$ac_res
2974be62
AM
15483fi
15484rm -f core conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext
d0ac1c44 15486 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15487 break
15488fi
15489done
d0ac1c44 15490if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15491
15492else
3cba8b6c 15493 ac_cv_search_dlsym=no
2974be62
AM
15494fi
15495rm conftest.$ac_ext
15496LIBS=$ac_func_search_save_LIBS
15497fi
3cba8b6c
L
15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15499$as_echo "$ac_cv_search_dlsym" >&6; }
15500ac_res=$ac_cv_search_dlsym
2974be62
AM
15501if test "$ac_res" != no; then :
15502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15503
15504fi
15505
15506 fi
b879806f
AM
15507
15508
15509case "${host}" in
15510 sparc-*-solaris*|i[3-7]86-*-solaris*)
15511 # On native 32bit sparc and ia32 solaris, large-file and procfs support
15512 # are mutually exclusive; and without procfs support, the bfd/ elf module
15513 # cannot provide certain routines such as elfcore_write_prpsinfo
15514 # or elfcore_write_prstatus. So unless the user explicitly requested
15515 # large-file support through the --enable-largefile switch, disable
15516 # large-file support in favor of procfs support.
15517 test "${target}" = "${host}" -a "x$plugins" = xno \
15518 && : ${enable_largefile="no"}
15519 ;;
15520esac
15521
15522# Check whether --enable-largefile was given.
15523if test "${enable_largefile+set}" = set; then :
15524 enableval=$enable_largefile;
15525fi
15526
15527if test "$enable_largefile" != no; then
15528
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15530$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 15531if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
15532 $as_echo_n "(cached) " >&6
15533else
15534 ac_cv_sys_largefile_CC=no
15535 if test "$GCC" != yes; then
15536 ac_save_CC=$CC
15537 while :; do
15538 # IRIX 6.2 and later do not support large files by default,
15539 # so use the C compiler's -n32 option if that helps.
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541/* end confdefs.h. */
15542#include <sys/types.h>
15543 /* Check that off_t can represent 2**63 - 1 correctly.
15544 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15545 since some C++ compilers masquerading as C compilers
15546 incorrectly reject 9223372036854775807. */
e0b2a78c 15547#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15548 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15549 && LARGE_OFF_T % 2147483647 == 1)
15550 ? 1 : -1];
15551int
15552main ()
15553{
15554
15555 ;
15556 return 0;
15557}
15558_ACEOF
15559 if ac_fn_c_try_compile "$LINENO"; then :
15560 break
15561fi
15562rm -f core conftest.err conftest.$ac_objext
15563 CC="$CC -n32"
15564 if ac_fn_c_try_compile "$LINENO"; then :
15565 ac_cv_sys_largefile_CC=' -n32'; break
15566fi
15567rm -f core conftest.err conftest.$ac_objext
15568 break
15569 done
15570 CC=$ac_save_CC
15571 rm -f conftest.$ac_ext
15572 fi
15573fi
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15575$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15576 if test "$ac_cv_sys_largefile_CC" != no; then
15577 CC=$CC$ac_cv_sys_largefile_CC
15578 fi
15579
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15581$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 15582if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
15583 $as_echo_n "(cached) " >&6
15584else
15585 while :; do
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h. */
15588#include <sys/types.h>
15589 /* Check that off_t can represent 2**63 - 1 correctly.
15590 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15591 since some C++ compilers masquerading as C compilers
15592 incorrectly reject 9223372036854775807. */
e0b2a78c 15593#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15595 && LARGE_OFF_T % 2147483647 == 1)
15596 ? 1 : -1];
15597int
15598main ()
15599{
15600
15601 ;
15602 return 0;
15603}
15604_ACEOF
15605if ac_fn_c_try_compile "$LINENO"; then :
15606 ac_cv_sys_file_offset_bits=no; break
15607fi
15608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h. */
15611#define _FILE_OFFSET_BITS 64
15612#include <sys/types.h>
15613 /* Check that off_t can represent 2**63 - 1 correctly.
15614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15615 since some C++ compilers masquerading as C compilers
15616 incorrectly reject 9223372036854775807. */
e0b2a78c 15617#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15619 && LARGE_OFF_T % 2147483647 == 1)
15620 ? 1 : -1];
15621int
15622main ()
15623{
15624
15625 ;
15626 return 0;
15627}
15628_ACEOF
15629if ac_fn_c_try_compile "$LINENO"; then :
15630 ac_cv_sys_file_offset_bits=64; break
15631fi
15632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15633 ac_cv_sys_file_offset_bits=unknown
15634 break
15635done
15636fi
15637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15638$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15639case $ac_cv_sys_file_offset_bits in #(
15640 no | unknown) ;;
15641 *)
15642cat >>confdefs.h <<_ACEOF
15643#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15644_ACEOF
15645;;
15646esac
15647rm -rf conftest*
15648 if test $ac_cv_sys_file_offset_bits = unknown; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15650$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 15651if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
15652 $as_echo_n "(cached) " >&6
15653else
15654 while :; do
15655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656/* end confdefs.h. */
15657#include <sys/types.h>
15658 /* Check that off_t can represent 2**63 - 1 correctly.
15659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15660 since some C++ compilers masquerading as C compilers
15661 incorrectly reject 9223372036854775807. */
e0b2a78c 15662#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15664 && LARGE_OFF_T % 2147483647 == 1)
15665 ? 1 : -1];
15666int
15667main ()
15668{
15669
15670 ;
15671 return 0;
15672}
15673_ACEOF
15674if ac_fn_c_try_compile "$LINENO"; then :
15675 ac_cv_sys_large_files=no; break
15676fi
15677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679/* end confdefs.h. */
15680#define _LARGE_FILES 1
15681#include <sys/types.h>
15682 /* Check that off_t can represent 2**63 - 1 correctly.
15683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15684 since some C++ compilers masquerading as C compilers
15685 incorrectly reject 9223372036854775807. */
e0b2a78c 15686#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15688 && LARGE_OFF_T % 2147483647 == 1)
15689 ? 1 : -1];
15690int
15691main ()
15692{
15693
15694 ;
15695 return 0;
15696}
15697_ACEOF
15698if ac_fn_c_try_compile "$LINENO"; then :
15699 ac_cv_sys_large_files=1; break
15700fi
15701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15702 ac_cv_sys_large_files=unknown
15703 break
15704done
15705fi
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15707$as_echo "$ac_cv_sys_large_files" >&6; }
15708case $ac_cv_sys_large_files in #(
15709 no | unknown) ;;
15710 *)
15711cat >>confdefs.h <<_ACEOF
15712#define _LARGE_FILES $ac_cv_sys_large_files
15713_ACEOF
15714;;
15715esac
15716rm -rf conftest*
15717 fi
d0ac1c44
SM
15718
15719
b879806f
AM
15720fi
15721
15722
15723
15724
15725# Check whether --with-lib-path was given.
15726if test "${with_lib_path+set}" = set; then :
15727 withval=$with_lib_path; LIB_PATH=$withval
15728fi
15729
15730# Check whether --enable-targets was given.
15731if test "${enable_targets+set}" = set; then :
15732 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 15733 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15734 ;;
b879806f
AM
15735 no) enable_targets= ;;
15736 *) enable_targets=$enableval ;;
15737esac
15738fi
15739# Check whether --enable-64-bit-bfd was given.
15740if test "${enable_64_bit_bfd+set}" = set; then :
15741 enableval=$enable_64_bit_bfd; case "${enableval}" in
15742 yes) want64=true ;;
15743 no) want64=false ;;
d0ac1c44 15744 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
b879806f
AM
15745esac
15746else
15747 want64=false
15748fi
15749
15750
15751# Check whether --with-sysroot was given.
15752if test "${with_sysroot+set}" = set; then :
15753 withval=$with_sysroot;
15754 case ${with_sysroot} in
15755 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15756 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15757 esac
15758
15759 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15760 use_sysroot=yes
15761
15762 if test "x$prefix" = xNONE; then
15763 test_prefix=/usr/local
15764 else
15765 test_prefix=$prefix
15766 fi
15767 if test "x$exec_prefix" = xNONE; then
15768 test_exec_prefix=$test_prefix
15769 else
15770 test_exec_prefix=$exec_prefix
15771 fi
15772 case ${TARGET_SYSTEM_ROOT} in
15773 "${test_prefix}"|"${test_prefix}/"*|\
15774 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15775 '${prefix}'|'${prefix}/'*|\
15776 '${exec_prefix}'|'${exec_prefix}/'*)
15777 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15778 TARGET_SYSTEM_ROOT_DEFINE="$t"
15779 ;;
15780 esac
15781
15782else
15783
15784 use_sysroot=no
15785 TARGET_SYSTEM_ROOT=
15786 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15787
15788fi
15789
15790
15791
15792
15793
15794# Check whether --enable-gold was given.
15795if test "${enable_gold+set}" = set; then :
15796 enableval=$enable_gold; case "${enableval}" in
15797 default)
15798 install_as_default=no
15799 installed_linker=ld.bfd
15800 ;;
15801 yes|no)
15802 install_as_default=yes
15803 installed_linker=ld.bfd
15804 ;;
15805 *)
d0ac1c44 15806 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
b879806f
AM
15807 ;;
15808 esac
15809else
15810 install_as_default=yes
15811 installed_linker=ld.bfd
15812fi
15813
15814
15815
15816
15817# Check whether --enable-got was given.
15818if test "${enable_got+set}" = set; then :
15819 enableval=$enable_got; case "${enableval}" in
15820 target | single | negative | multigot) got_handling=$enableval ;;
d0ac1c44 15821 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15822esac
15823else
15824 got_handling=target
15825fi
15826
15827
15828case "${got_handling}" in
15829 target)
15830
15831$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15832 ;;
15833 single)
15834
15835$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15836 ;;
15837 negative)
15838
15839$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15840 ;;
15841 multigot)
15842
15843$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15844 ;;
d0ac1c44 15845 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15846esac
15847
6c3bc0f8
NC
15848# PR gas/19109
15849# Decide the default method for compressing debug sections.
15850ac_default_compressed_debug_sections=unset
15851# Provide a configure time option to override our default.
15852# Check whether --enable-compressed_debug_sections was given.
15853if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15854 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15855 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15856 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15857esac
15858fi
15859
6734f10a
SB
15860# Decide setting DT_RUNPATH instead of DT_RPATH by default
15861ac_default_new_dtags=unset
15862# Provide a configure time option to override our default.
15863# Check whether --enable-new_dtags was given.
15864if test "${enable_new_dtags+set}" = set; then :
15865 enableval=$enable_new_dtags; case "${enableval}" in
15866 yes) ac_default_new_dtags=1 ;;
15867 no) ac_default_new_dtags=0 ;;
15868esac
15869fi
15870
647e4d46
L
15871# Decide if -z relro should be enabled in ELF linker by default.
15872ac_default_ld_z_relro=unset
15873# Provide a configure time option to override our default.
15874# Check whether --enable-relro was given.
15875if test "${enable_relro+set}" = set; then :
15876 enableval=$enable_relro; case "${enableval}" in
15877 yes) ac_default_ld_z_relro=1 ;;
15878 no) ac_default_ld_z_relro=0 ;;
15879esac
15880fi
15881
b32632c4
L
15882# Decide if DT_TEXTREL check should be enabled in ELF linker.
15883ac_default_ld_textrel_check=unset
15884# Check whether --enable-textrel-check was given.
15885if test "${enable_textrel_check+set}" = set; then :
15886 enableval=$enable_textrel_check; case "${enableval}" in
15887 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15888esac
15889fi
15890
15891
f6aec96d
L
15892# Decide if -z separate-code should be enabled in ELF linker by default.
15893ac_default_ld_z_separate_code=unset
15894# Check whether --enable-separate-code was given.
15895if test "${enable_separate_code+set}" = set; then :
15896 enableval=$enable_separate_code; case "${enableval}" in
15897 yes) ac_default_ld_z_separate_code=1 ;;
15898 no) ac_default_ld_z_separate_code=0 ;;
15899esac
15900fi
15901
15902
2760f24c
RG
15903# Decide which "--hash-style" to use by default
15904# Provide a configure time option to override our default.
15905# Check whether --enable-default-hash-style was given.
15906if test "${enable_default_hash_style+set}" = set; then :
15907 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15908 sysv | gnu | both) ;;
d0ac1c44 15909 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
2760f24c
RG
15910esac
15911else
15912 case "${target}" in
15913 # Enable gnu hash only on GNU targets, but not mips
15914 mips*-*-*) enable_default_hash_style=sysv ;;
15915 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15916 *) enable_default_hash_style=sysv ;;
15917esac
15918fi
15919
15920
15921case "${enable_default_hash_style}" in
15922 sysv | both) ac_default_emit_sysv_hash=1 ;;
15923 *) ac_default_emit_sysv_hash=0 ;;
15924esac
15925
15926case "${enable_default_hash_style}" in
15927 gnu | both) ac_default_emit_gnu_hash=1 ;;
15928 *) ac_default_emit_gnu_hash=0 ;;
15929esac
15930
b879806f
AM
15931
15932# Set the 'development' global.
15933. $srcdir/../bfd/development.sh
15934
c5da1932
VZ
15935# Set acp_cpp_for_build variable
15936ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15937
9780e045 15938# Default set of GCC warnings to enable.
b879806f 15939GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15940GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15941
15942# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h. */
15945__GNUC__
15946_ACEOF
15947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15948 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
ce2cded5 15949
3cb62297 15950else
b879806f 15951 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15952fi
b879806f 15953rm -f conftest*
ce2cded5 15954
ce2cded5 15955
9780e045
NC
15956# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958/* end confdefs.h. */
15959__GNUC__
15960_ACEOF
15961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15962 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
15963
15964else
15965 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15966fi
15967rm -f conftest*
15968
15969
6757cf57
TS
15970# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15971WARN_WRITE_STRINGS=""
15972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973/* end confdefs.h. */
15974__GNUC__
15975_ACEOF
15976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15977 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
15978
15979else
15980 WARN_WRITE_STRINGS="-Wwrite-strings"
15981fi
15982rm -f conftest*
15983
9780e045 15984
96fe4562 15985# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
15986
15987# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989/* end confdefs.h. */
15990__GNUC__
15991_ACEOF
15992if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15993 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15994
15995else
15996 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15997fi
15998rm -f conftest*
15999
16000
16001# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16003/* end confdefs.h. */
16004__GNUC__
16005_ACEOF
16006if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 16007 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
16008
16009else
16010 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16011fi
16012rm -f conftest*
16013
16014
b879806f
AM
16015# Check whether --enable-werror was given.
16016if test "${enable_werror+set}" = set; then :
16017 enableval=$enable_werror; case "${enableval}" in
16018 yes | y) ERROR_ON_WARNING="yes" ;;
16019 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 16020 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
b879806f
AM
16021 esac
16022fi
ce2cded5
L
16023
16024
b879806f
AM
16025# Disable -Wformat by default when using gcc on mingw
16026case "${host}" in
16027 *-*-mingw32*)
16028 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16029 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 16030 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
16031 fi
16032 ;;
16033 *) ;;
16034esac
ce2cded5 16035
b879806f
AM
16036# Enable -Werror by default when using gcc. Turn it off for releases.
16037if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16038 ERROR_ON_WARNING=yes
16039fi
d7040cdb 16040
b879806f
AM
16041NO_WERROR=
16042if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 16043 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 16044 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
16045 NO_WERROR="-Wno-error"
16046fi
3cb62297 16047
b879806f
AM
16048if test "${GCC}" = yes ; then
16049 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 16050 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 16051fi
67310ccd 16052
b879806f
AM
16053# Check whether --enable-build-warnings was given.
16054if test "${enable_build_warnings+set}" = set; then :
16055 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
16056 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16057 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
16058 no) if test "${GCC}" = yes ; then
16059 WARN_CFLAGS="-w"
c5da1932 16060 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
16061 fi;;
16062 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16063 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16064 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 16065 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16066 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16067 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16068 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16069 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
16070esac
16071fi
67310ccd 16072
d7040cdb 16073
b879806f
AM
16074if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16075 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16076fi
d7040cdb 16077
d7040cdb 16078
d7040cdb 16079
d7040cdb 16080
ce2cded5
L
16081
16082
6757cf57 16083
c5da1932 16084
b879806f
AM
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16086$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 16087if ${am_cv_val_LC_MESSAGES+:} false; then :
b879806f
AM
16088 $as_echo_n "(cached) " >&6
16089else
16090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091/* end confdefs.h. */
16092#include <locale.h>
16093int
16094main ()
16095{
16096return LC_MESSAGES
16097 ;
16098 return 0;
16099}
16100_ACEOF
16101if ac_fn_c_try_link "$LINENO"; then :
16102 am_cv_val_LC_MESSAGES=yes
16103else
16104 am_cv_val_LC_MESSAGES=no
16105fi
16106rm -f core conftest.err conftest.$ac_objext \
16107 conftest$ac_exeext conftest.$ac_ext
16108fi
16109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16110$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16111 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 16112
b879806f 16113$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 16114
b879806f 16115 fi
ce2cded5 16116
ce2cded5 16117
b879806f 16118ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
16119
16120
b879806f 16121# PR 14072
ce2cded5 16122
ce2cded5 16123
b879806f 16124if test -z "$target" ; then
d0ac1c44 16125 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
b879806f
AM
16126fi
16127if test -z "$host" ; then
d0ac1c44 16128 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
b879806f 16129fi
d7040cdb 16130
b879806f 16131# host-specific stuff:
d7040cdb 16132
e184813f 16133ALL_LINGUAS="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
d7040cdb
SE
16134# If we haven't got the data from the intl directory,
16135# assume NLS is disabled.
16136USE_NLS=no
16137LIBINTL=
16138LIBINTL_DEP=
16139INCINTL=
16140XGETTEXT=
16141GMSGFMT=
16142POSUB=
16143
16144if test -f ../intl/config.intl; then
16145 . ../intl/config.intl
16146fi
81ecdfbb
RW
16147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16148$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 16149if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151$as_echo "no" >&6; }
d7040cdb 16152else
81ecdfbb
RW
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16154$as_echo "yes" >&6; }
d7040cdb 16155
81ecdfbb 16156$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
16157
16158
81ecdfbb
RW
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16160$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
16161 # Look for .po and .gmo files in the source directory.
16162 CATALOGS=
16163 XLINGUAS=
16164 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16165 # If there aren't any .gmo files the shell will give us the
16166 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16167 # weeded out.
16168 case "$cat" in *\**)
16169 continue;;
16170 esac
16171 # The quadruple backslash is collapsed to a double backslash
16172 # by the backticks, then collapsed again by the double quotes,
16173 # leaving us with one backslash in the sed expression (right
16174 # before the dot that mustn't act as a wildcard).
16175 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16176 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16177 # The user is allowed to set LINGUAS to a list of languages to
16178 # install catalogs for. If it's empty that means "all of them."
16179 if test "x$LINGUAS" = x; then
16180 CATALOGS="$CATALOGS $cat"
16181 XLINGUAS="$XLINGUAS $lang"
16182 else
16183 case "$LINGUAS" in *$lang*)
16184 CATALOGS="$CATALOGS $cat"
16185 XLINGUAS="$XLINGUAS $lang"
16186 ;;
16187 esac
16188 fi
16189 done
16190 LINGUAS="$XLINGUAS"
81ecdfbb
RW
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16192$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
16193
16194
16195 DATADIRNAME=share
16196
16197 INSTOBJEXT=.mo
16198
16199 GENCAT=gencat
16200
16201 CATOBJEXT=.gmo
16202
16203fi
16204
16205 MKINSTALLDIRS=
16206 if test -n "$ac_aux_dir"; then
16207 case "$ac_aux_dir" in
16208 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16209 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16210 esac
16211 fi
16212 if test -z "$MKINSTALLDIRS"; then
16213 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16214 fi
16215
16216
16217
81ecdfbb
RW
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16219$as_echo_n "checking whether NLS is requested... " >&6; }
16220 # Check whether --enable-nls was given.
16221if test "${enable_nls+set}" = set; then :
16222 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
16223else
16224 USE_NLS=yes
81ecdfbb
RW
16225fi
16226
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16228$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
16229
16230
16231
16232
16233
16234
16235# Prepare PATH_SEPARATOR.
16236# The user is always right.
16237if test "${PATH_SEPARATOR+set}" != set; then
16238 echo "#! /bin/sh" >conf$$.sh
16239 echo "exit 0" >>conf$$.sh
16240 chmod +x conf$$.sh
16241 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16242 PATH_SEPARATOR=';'
16243 else
16244 PATH_SEPARATOR=:
16245 fi
16246 rm -f conf$$.sh
16247fi
16248
16249# Find out how to test for executable files. Don't use a zero-byte file,
16250# as systems may use methods other than mode bits to determine executability.
16251cat >conf$$.file <<_ASEOF
16252#! /bin/sh
16253exit 0
16254_ASEOF
16255chmod +x conf$$.file
16256if test -x conf$$.file >/dev/null 2>&1; then
16257 ac_executable_p="test -x"
16258else
16259 ac_executable_p="test -f"
16260fi
16261rm -f conf$$.file
16262
16263# Extract the first word of "msgfmt", so it can be a program name with args.
16264set dummy msgfmt; ac_word=$2
81ecdfbb
RW
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16266$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16267if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 16268 $as_echo_n "(cached) " >&6
d7040cdb
SE
16269else
16270 case "$MSGFMT" in
16271 [\\/]* | ?:[\\/]*)
16272 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16273 ;;
16274 *)
16275 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16276 for ac_dir in $PATH; do
16277 IFS="$ac_save_IFS"
16278 test -z "$ac_dir" && ac_dir=.
16279 for ac_exec_ext in '' $ac_executable_extensions; do
16280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16281 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16282 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16283 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16284 break 2
16285 fi
16286 fi
16287 done
16288 done
16289 IFS="$ac_save_IFS"
16290 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16291 ;;
16292esac
16293fi
16294MSGFMT="$ac_cv_path_MSGFMT"
16295if test "$MSGFMT" != ":"; then
81ecdfbb
RW
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16297$as_echo "$MSGFMT" >&6; }
d7040cdb 16298else
81ecdfbb
RW
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300$as_echo "no" >&6; }
d7040cdb
SE
16301fi
16302
16303 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16304set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
16305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16307if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 16308 $as_echo_n "(cached) " >&6
d7040cdb
SE
16309else
16310 case $GMSGFMT in
16311 [\\/]* | ?:[\\/]*)
16312 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16313 ;;
16314 *)
16315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16316for as_dir in $PATH
16317do
16318 IFS=$as_save_IFS
16319 test -z "$as_dir" && as_dir=.
81ecdfbb 16320 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16322 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16324 break 2
16325 fi
16326done
81ecdfbb
RW
16327 done
16328IFS=$as_save_IFS
d7040cdb
SE
16329
16330 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16331 ;;
16332esac
16333fi
16334GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16335if test -n "$GMSGFMT"; then
81ecdfbb
RW
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16337$as_echo "$GMSGFMT" >&6; }
d7040cdb 16338else
81ecdfbb
RW
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340$as_echo "no" >&6; }
20e95c23 16341fi
42ecbf5e 16342
20e95c23 16343
252b5132 16344
81ecdfbb 16345
d7040cdb
SE
16346# Prepare PATH_SEPARATOR.
16347# The user is always right.
16348if test "${PATH_SEPARATOR+set}" != set; then
16349 echo "#! /bin/sh" >conf$$.sh
16350 echo "exit 0" >>conf$$.sh
16351 chmod +x conf$$.sh
16352 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16353 PATH_SEPARATOR=';'
16354 else
16355 PATH_SEPARATOR=:
16356 fi
16357 rm -f conf$$.sh
20e95c23 16358fi
252b5132 16359
d7040cdb
SE
16360# Find out how to test for executable files. Don't use a zero-byte file,
16361# as systems may use methods other than mode bits to determine executability.
16362cat >conf$$.file <<_ASEOF
16363#! /bin/sh
16364exit 0
16365_ASEOF
16366chmod +x conf$$.file
16367if test -x conf$$.file >/dev/null 2>&1; then
16368 ac_executable_p="test -x"
20e95c23 16369else
d7040cdb
SE
16370 ac_executable_p="test -f"
16371fi
16372rm -f conf$$.file
20e95c23 16373
d7040cdb
SE
16374# Extract the first word of "xgettext", so it can be a program name with args.
16375set dummy xgettext; ac_word=$2
81ecdfbb
RW
16376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16377$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16378if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 16379 $as_echo_n "(cached) " >&6
252b5132 16380else
d7040cdb
SE
16381 case "$XGETTEXT" in
16382 [\\/]* | ?:[\\/]*)
16383 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16384 ;;
16385 *)
16386 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16387 for ac_dir in $PATH; do
16388 IFS="$ac_save_IFS"
16389 test -z "$ac_dir" && ac_dir=.
16390 for ac_exec_ext in '' $ac_executable_extensions; do
16391 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16392 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16393 (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
16394 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16395 break 2
16396 fi
16397 fi
16398 done
16399 done
16400 IFS="$ac_save_IFS"
16401 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16402 ;;
16403esac
252b5132 16404fi
d7040cdb
SE
16405XGETTEXT="$ac_cv_path_XGETTEXT"
16406if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16408$as_echo "$XGETTEXT" >&6; }
d5fbea21 16409else
81ecdfbb
RW
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16411$as_echo "no" >&6; }
d5fbea21
DJ
16412fi
16413
d7040cdb 16414 rm -f messages.po
d5fbea21 16415
20e95c23 16416
d7040cdb
SE
16417# Prepare PATH_SEPARATOR.
16418# The user is always right.
16419if test "${PATH_SEPARATOR+set}" != set; then
16420 echo "#! /bin/sh" >conf$$.sh
16421 echo "exit 0" >>conf$$.sh
16422 chmod +x conf$$.sh
16423 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16424 PATH_SEPARATOR=';'
16425 else
16426 PATH_SEPARATOR=:
16427 fi
16428 rm -f conf$$.sh
16429fi
20e95c23 16430
d7040cdb
SE
16431# Find out how to test for executable files. Don't use a zero-byte file,
16432# as systems may use methods other than mode bits to determine executability.
16433cat >conf$$.file <<_ASEOF
16434#! /bin/sh
16435exit 0
16436_ASEOF
16437chmod +x conf$$.file
16438if test -x conf$$.file >/dev/null 2>&1; then
16439 ac_executable_p="test -x"
16440else
16441 ac_executable_p="test -f"
16442fi
16443rm -f conf$$.file
20e95c23 16444
d7040cdb
SE
16445# Extract the first word of "msgmerge", so it can be a program name with args.
16446set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16448$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16449if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 16450 $as_echo_n "(cached) " >&6
d7040cdb
SE
16451else
16452 case "$MSGMERGE" in
16453 [\\/]* | ?:[\\/]*)
16454 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16455 ;;
16456 *)
16457 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16458 for ac_dir in $PATH; do
16459 IFS="$ac_save_IFS"
16460 test -z "$ac_dir" && ac_dir=.
16461 for ac_exec_ext in '' $ac_executable_extensions; do
16462 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16463 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16464 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16465 break 2
16466 fi
16467 fi
16468 done
16469 done
16470 IFS="$ac_save_IFS"
16471 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16472 ;;
16473esac
16474fi
16475MSGMERGE="$ac_cv_path_MSGMERGE"
16476if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16478$as_echo "$MSGMERGE" >&6; }
d7040cdb 16479else
81ecdfbb
RW
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481$as_echo "no" >&6; }
d7040cdb 16482fi
20e95c23
DJ
16483
16484
d7040cdb
SE
16485 if test "$GMSGFMT" != ":"; then
16486 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16487 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16488 : ;
16489 else
16490 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16492$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16493 GMSGFMT=":"
16494 fi
16495 fi
20e95c23 16496
d7040cdb
SE
16497 if test "$XGETTEXT" != ":"; then
16498 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16499 (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
16500 : ;
16501 else
81ecdfbb
RW
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16503$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16504 XGETTEXT=":"
16505 fi
16506 rm -f messages.po
20e95c23 16507 fi
42ecbf5e 16508
81ecdfbb 16509 ac_config_commands="$ac_config_commands default-1"
252b5132 16510
42ecbf5e 16511
252b5132 16512
42ecbf5e
DJ
16513
16514
d7040cdb 16515for ac_prog in 'bison -y' byacc
20e95c23 16516do
d7040cdb
SE
16517 # Extract the first word of "$ac_prog", so it can be a program name with args.
16518set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16520$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16521if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 16522 $as_echo_n "(cached) " >&6
20e95c23 16523else
d7040cdb
SE
16524 if test -n "$YACC"; then
16525 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16526else
d7040cdb
SE
16527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16528for as_dir in $PATH
16529do
16530 IFS=$as_save_IFS
16531 test -z "$as_dir" && as_dir=.
81ecdfbb 16532 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16534 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16536 break 2
16537 fi
16538done
81ecdfbb
RW
16539 done
16540IFS=$as_save_IFS
42ecbf5e 16541
42ecbf5e 16542fi
e5a52504 16543fi
d7040cdb
SE
16544YACC=$ac_cv_prog_YACC
16545if test -n "$YACC"; then
81ecdfbb
RW
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16547$as_echo "$YACC" >&6; }
42ecbf5e 16548else
81ecdfbb
RW
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16550$as_echo "no" >&6; }
42ecbf5e 16551fi
252b5132 16552
81ecdfbb 16553
d7040cdb 16554 test -n "$YACC" && break
42ecbf5e 16555done
d7040cdb 16556test -n "$YACC" || YACC="yacc"
d15b04bd 16557
d7040cdb
SE
16558for ac_prog in flex lex
16559do
16560 # Extract the first word of "$ac_prog", so it can be a program name with args.
16561set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16563$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16564if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 16565 $as_echo_n "(cached) " >&6
d15b04bd 16566else
d7040cdb
SE
16567 if test -n "$LEX"; then
16568 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16569else
16570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16571for as_dir in $PATH
16572do
16573 IFS=$as_save_IFS
16574 test -z "$as_dir" && as_dir=.
81ecdfbb 16575 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16577 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16579 break 2
16580 fi
16581done
81ecdfbb
RW
16582 done
16583IFS=$as_save_IFS
d7040cdb
SE
16584
16585fi
16586fi
16587LEX=$ac_cv_prog_LEX
16588if test -n "$LEX"; then
81ecdfbb
RW
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16590$as_echo "$LEX" >&6; }
d7040cdb 16591else
81ecdfbb
RW
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593$as_echo "no" >&6; }
d15b04bd 16594fi
e5a52504 16595
81ecdfbb 16596
d7040cdb
SE
16597 test -n "$LEX" && break
16598done
16599test -n "$LEX" || LEX=":"
42ecbf5e 16600
3d961d0d
AM
16601case "$LEX" in
16602 :|*"missing "*) ;;
16603 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16604%%
16605a { ECHO; }
16606b { REJECT; }
16607c { yymore (); }
16608d { yyless (1); }
d0ac1c44
SM
16609e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16610 yyless ((input () != 0)); }
81ecdfbb
RW
16611f { unput (yytext[0]); }
16612. { BEGIN INITIAL; }
16613%%
16614#ifdef YYTEXT_POINTER
16615extern char *yytext;
d7040cdb 16616#endif
42ecbf5e 16617int
81ecdfbb 16618main (void)
42ecbf5e 16619{
81ecdfbb 16620 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16621}
16622_ACEOF
81ecdfbb
RW
16623{ { ac_try="$LEX conftest.l"
16624case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627esac
16628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16629$as_echo "$ac_try_echo"; } >&5
16630 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16631 ac_status=$?
81ecdfbb
RW
16632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16633 test $ac_status = 0; }
16634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16635$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 16636if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 16637 $as_echo_n "(cached) " >&6
42ecbf5e 16638else
42ecbf5e 16639
81ecdfbb
RW
16640if test -f lex.yy.c; then
16641 ac_cv_prog_lex_root=lex.yy
16642elif test -f lexyy.c; then
16643 ac_cv_prog_lex_root=lexyy
16644else
d0ac1c44 16645 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16646fi
42ecbf5e 16647fi
81ecdfbb
RW
16648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16649$as_echo "$ac_cv_prog_lex_root" >&6; }
16650LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16651
81ecdfbb
RW
16652if test -z "${LEXLIB+set}"; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16654$as_echo_n "checking lex library... " >&6; }
d0ac1c44 16655if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 16656 $as_echo_n "(cached) " >&6
252b5132 16657else
20e95c23 16658
81ecdfbb
RW
16659 ac_save_LIBS=$LIBS
16660 ac_cv_lib_lex='none needed'
16661 for ac_lib in '' -lfl -ll; do
16662 LIBS="$ac_lib $ac_save_LIBS"
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664/* end confdefs.h. */
16665`cat $LEX_OUTPUT_ROOT.c`
16666_ACEOF
16667if ac_fn_c_try_link "$LINENO"; then :
16668 ac_cv_lib_lex=$ac_lib
20e95c23 16669fi
81ecdfbb
RW
16670rm -f core conftest.err conftest.$ac_objext \
16671 conftest$ac_exeext conftest.$ac_ext
16672 test "$ac_cv_lib_lex" != 'none needed' && break
16673 done
16674 LIBS=$ac_save_LIBS
20e95c23
DJ
16675
16676fi
81ecdfbb
RW
16677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16678$as_echo "$ac_cv_lib_lex" >&6; }
16679 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16680fi
20e95c23 16681
20e95c23 16682
81ecdfbb
RW
16683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16684$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 16685if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 16686 $as_echo_n "(cached) " >&6
d7040cdb
SE
16687else
16688 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16689# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16690# not all implementations provide the %pointer and %array declarations.
16691ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16692ac_save_LIBS=$LIBS
81ecdfbb
RW
16693LIBS="$LEXLIB $ac_save_LIBS"
16694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16695/* end confdefs.h. */
d0ac1c44
SM
16696
16697 #define YYTEXT_POINTER 1
d7040cdb 16698`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16699_ACEOF
81ecdfbb 16700if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16701 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16702fi
81ecdfbb
RW
16703rm -f core conftest.err conftest.$ac_objext \
16704 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16705LIBS=$ac_save_LIBS
d7040cdb
SE
16706
16707fi
81ecdfbb
RW
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16709$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16710if test $ac_cv_prog_lex_yytext_pointer = yes; then
16711
81ecdfbb 16712$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16713
16714fi
81ecdfbb 16715rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16716 ;;
16717esac
d7040cdb
SE
16718if test "$LEX" = :; then
16719 LEX=${am_missing_run}flex
16720fi
16721
81ecdfbb
RW
16722
16723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16724$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16725 # Check whether --enable-maintainer-mode was given.
16726if test "${enable_maintainer_mode+set}" = set; then :
16727 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16728else
d7040cdb 16729 USE_MAINTAINER_MODE=no
81ecdfbb 16730fi
d7040cdb 16731
81ecdfbb
RW
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16733$as_echo "$USE_MAINTAINER_MODE" >&6; }
16734 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16735 MAINTAINER_MODE_TRUE=
16736 MAINTAINER_MODE_FALSE='#'
16737else
16738 MAINTAINER_MODE_TRUE='#'
16739 MAINTAINER_MODE_FALSE=
252b5132 16740fi
252b5132 16741
d7040cdb
SE
16742 MAINT=$MAINTAINER_MODE_TRUE
16743
16744
81ecdfbb 16745 if false; then
d7040cdb
SE
16746 GENINSRC_NEVER_TRUE=
16747 GENINSRC_NEVER_FALSE='#'
16748else
16749 GENINSRC_NEVER_TRUE='#'
16750 GENINSRC_NEVER_FALSE=
252b5132
RH
16751fi
16752
81ecdfbb
RW
16753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16754$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 16755if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 16756 $as_echo_n "(cached) " >&6
eccbf555
AM
16757else
16758 echo abfoo >t1
16759 echo cdfoo >t2
da17fe9d 16760 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16761 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16762 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16763 :
16764 else
16765 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16766 fi
16767 fi
16768 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16769 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16770 :
16771 else
16772 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16773 fi
16774 fi
16775 rm t1 t2
16776
16777fi
81ecdfbb
RW
16778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16779$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16780do_compare="$gcc_cv_prog_cmp_skip"
16781
16782
d7040cdb
SE
16783
16784. ${srcdir}/configure.host
16785
16786
16787
16788
58797674 16789for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h
81ecdfbb
RW
16790do :
16791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16793if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42ecbf5e 16794 cat >>confdefs.h <<_ACEOF
81ecdfbb 16795#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42ecbf5e
DJ
16796_ACEOF
16797
16798fi
16799
252b5132
RH
16800done
16801
5d3236ee
DK
16802for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16803do :
16804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5d3236ee
DK
16807 cat >>confdefs.h <<_ACEOF
16808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16809_ACEOF
16810
16811fi
16812
16813done
16814
208a4923
NC
16815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
16816$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
d0ac1c44 16817if ${gcc_cv_header_string+:} false; then :
208a4923
NC
16818 $as_echo_n "(cached) " >&6
16819else
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h. */
16822#include <string.h>
16823#include <strings.h>
16824int
16825main ()
16826{
16827
16828 ;
16829 return 0;
16830}
16831_ACEOF
16832if ac_fn_c_try_compile "$LINENO"; then :
16833 gcc_cv_header_string=yes
16834else
16835 gcc_cv_header_string=no
16836fi
16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16838fi
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
16840$as_echo "$gcc_cv_header_string" >&6; }
16841if test $gcc_cv_header_string = yes; then
16842
16843$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
16844
16845fi
16846
44350750 16847for ac_func in glob mkstemp realpath sbrk setlocale waitpid
81ecdfbb
RW
16848do :
16849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16851if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42ecbf5e 16852 cat >>confdefs.h <<_ACEOF
81ecdfbb 16853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16854_ACEOF
252b5132 16855
252b5132
RH
16856fi
16857done
16858
88ba72a2 16859for ac_func in open lseek close
5d3236ee
DK
16860do :
16861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16862ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16863if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5d3236ee
DK
16864 cat >>confdefs.h <<_ACEOF
16865#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16866_ACEOF
16867
16868fi
16869done
16870
252b5132 16871ac_header_dirent=no
42ecbf5e 16872for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
81ecdfbb
RW
16873 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16875$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0ac1c44 16876if eval \${$as_ac_Header+:} false; then :
81ecdfbb
RW
16877 $as_echo_n "(cached) " >&6
16878else
16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 16880/* end confdefs.h. */
252b5132
RH
16881#include <sys/types.h>
16882#include <$ac_hdr>
42ecbf5e
DJ
16883
16884int
16885main ()
16886{
16887if ((DIR *) 0)
16888return 0;
16889 ;
16890 return 0;
16891}
16892_ACEOF
81ecdfbb 16893if ac_fn_c_try_compile "$LINENO"; then :
42ecbf5e
DJ
16894 eval "$as_ac_Header=yes"
16895else
81ecdfbb 16896 eval "$as_ac_Header=no"
42ecbf5e 16897fi
81ecdfbb 16898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42ecbf5e 16899fi
81ecdfbb
RW
16900eval ac_res=\$$as_ac_Header
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16902$as_echo "$ac_res" >&6; }
d0ac1c44 16903if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
42ecbf5e 16904 cat >>confdefs.h <<_ACEOF
81ecdfbb 16905#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
42ecbf5e
DJ
16906_ACEOF
16907
16908ac_header_dirent=$ac_hdr; break
d15b04bd 16909fi
42ecbf5e 16910
d15b04bd
L
16911done
16912# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16913if test $ac_header_dirent = dirent.h; then
81ecdfbb
RW
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16915$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 16916if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 16917 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
16918else
16919 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16921/* end confdefs.h. */
16922
81ecdfbb
RW
16923/* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16926#ifdef __cplusplus
16927extern "C"
16928#endif
42ecbf5e
DJ
16929char opendir ();
16930int
16931main ()
16932{
81ecdfbb 16933return opendir ();
42ecbf5e
DJ
16934 ;
16935 return 0;
16936}
16937_ACEOF
81ecdfbb
RW
16938for ac_lib in '' dir; do
16939 if test -z "$ac_lib"; then
16940 ac_res="none required"
16941 else
16942 ac_res=-l$ac_lib
42ecbf5e 16943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
16944 fi
16945 if ac_fn_c_try_link "$LINENO"; then :
16946 ac_cv_search_opendir=$ac_res
16947fi
16948rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext
d0ac1c44 16950 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
16951 break
16952fi
16953done
d0ac1c44 16954if ${ac_cv_search_opendir+:} false; then :
e5a52504 16955
42ecbf5e 16956else
81ecdfbb 16957 ac_cv_search_opendir=no
252b5132 16958fi
81ecdfbb 16959rm conftest.$ac_ext
42ecbf5e
DJ
16960LIBS=$ac_func_search_save_LIBS
16961fi
81ecdfbb
RW
16962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16963$as_echo "$ac_cv_search_opendir" >&6; }
16964ac_res=$ac_cv_search_opendir
16965if test "$ac_res" != no; then :
16966 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 16967
d15b04bd 16968fi
252b5132
RH
16969
16970else
81ecdfbb
RW
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16972$as_echo_n "checking for library containing opendir... " >&6; }
d0ac1c44 16973if ${ac_cv_search_opendir+:} false; then :
81ecdfbb 16974 $as_echo_n "(cached) " >&6
252b5132 16975else
42ecbf5e 16976 ac_func_search_save_LIBS=$LIBS
81ecdfbb 16977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e
DJ
16978/* end confdefs.h. */
16979
81ecdfbb
RW
16980/* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
42ecbf5e
DJ
16983#ifdef __cplusplus
16984extern "C"
16985#endif
42ecbf5e
DJ
16986char opendir ();
16987int
16988main ()
16989{
81ecdfbb 16990return opendir ();
42ecbf5e
DJ
16991 ;
16992 return 0;
16993}
16994_ACEOF
81ecdfbb
RW
16995for ac_lib in '' x; do
16996 if test -z "$ac_lib"; then
16997 ac_res="none required"
16998 else
16999 ac_res=-l$ac_lib
42ecbf5e 17000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
17001 fi
17002 if ac_fn_c_try_link "$LINENO"; then :
17003 ac_cv_search_opendir=$ac_res
17004fi
17005rm -f core conftest.err conftest.$ac_objext \
17006 conftest$ac_exeext
d0ac1c44 17007 if ${ac_cv_search_opendir+:} false; then :
81ecdfbb
RW
17008 break
17009fi
17010done
d0ac1c44 17011if ${ac_cv_search_opendir+:} false; then :
252b5132 17012
42ecbf5e 17013else
81ecdfbb 17014 ac_cv_search_opendir=no
252b5132 17015fi
81ecdfbb 17016rm conftest.$ac_ext
42ecbf5e 17017LIBS=$ac_func_search_save_LIBS
252b5132 17018fi
81ecdfbb
RW
17019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17020$as_echo "$ac_cv_search_opendir" >&6; }
17021ac_res=$ac_cv_search_opendir
17022if test "$ac_res" != no; then :
17023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
42ecbf5e 17024
d15b04bd 17025fi
252b5132
RH
17026
17027fi
17028
17029
d0ac1c44
SM
17030
17031
17032
17033 for ac_header in $ac_header_list
2aec968d
L
17034do :
17035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0ac1c44
SM
17036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17037"
17038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2aec968d
L
17039 cat >>confdefs.h <<_ACEOF
17040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17041_ACEOF
17042
17043fi
17044
17045done
17046
d0ac1c44
SM
17047
17048
17049
17050
17051
17052
17053
2aec968d
L
17054for ac_func in getpagesize
17055do :
17056 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d0ac1c44 17057if test "x$ac_cv_func_getpagesize" = xyes; then :
2aec968d
L
17058 cat >>confdefs.h <<_ACEOF
17059#define HAVE_GETPAGESIZE 1
17060_ACEOF
17061
17062fi
17063done
17064
17065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
17066$as_echo_n "checking for working mmap... " >&6; }
d0ac1c44 17067if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
2aec968d
L
17068 $as_echo_n "(cached) " >&6
17069else
17070 if test "$cross_compiling" = yes; then :
17071 ac_cv_func_mmap_fixed_mapped=no
17072else
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h. */
17075$ac_includes_default
17076/* malloc might have been renamed as rpl_malloc. */
17077#undef malloc
17078
17079/* Thanks to Mike Haertel and Jim Avera for this test.
17080 Here is a matrix of mmap possibilities:
17081 mmap private not fixed
17082 mmap private fixed at somewhere currently unmapped
17083 mmap private fixed at somewhere already mapped
17084 mmap shared not fixed
17085 mmap shared fixed at somewhere currently unmapped
17086 mmap shared fixed at somewhere already mapped
17087 For private mappings, we should verify that changes cannot be read()
17088 back from the file, nor mmap's back from the file at a different
17089 address. (There have been systems where private was not correctly
17090 implemented like the infamous i386 svr4.0, and systems where the
17091 VM page cache was not coherent with the file system buffer cache
17092 like early versions of FreeBSD and possibly contemporary NetBSD.)
17093 For shared mappings, we should conversely verify that changes get
17094 propagated back to all the places they're supposed to be.
17095
17096 Grep wants private fixed already mapped.
17097 The main things grep needs to know about mmap are:
17098 * does it exist and is it safe to write into the mmap'd area
17099 * how to use it (BSD variants) */
17100
17101#include <fcntl.h>
17102#include <sys/mman.h>
17103
17104#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
17105char *malloc ();
17106#endif
17107
17108/* This mess was copied from the GNU getpagesize.h. */
17109#ifndef HAVE_GETPAGESIZE
2aec968d
L
17110# ifdef _SC_PAGESIZE
17111# define getpagesize() sysconf(_SC_PAGESIZE)
17112# else /* no _SC_PAGESIZE */
17113# ifdef HAVE_SYS_PARAM_H
17114# include <sys/param.h>
17115# ifdef EXEC_PAGESIZE
17116# define getpagesize() EXEC_PAGESIZE
17117# else /* no EXEC_PAGESIZE */
17118# ifdef NBPG
17119# define getpagesize() NBPG * CLSIZE
17120# ifndef CLSIZE
17121# define CLSIZE 1
17122# endif /* no CLSIZE */
17123# else /* no NBPG */
17124# ifdef NBPC
17125# define getpagesize() NBPC
17126# else /* no NBPC */
17127# ifdef PAGESIZE
17128# define getpagesize() PAGESIZE
17129# endif /* PAGESIZE */
17130# endif /* no NBPC */
17131# endif /* no NBPG */
17132# endif /* no EXEC_PAGESIZE */
17133# else /* no HAVE_SYS_PARAM_H */
17134# define getpagesize() 8192 /* punt totally */
17135# endif /* no HAVE_SYS_PARAM_H */
17136# endif /* no _SC_PAGESIZE */
17137
17138#endif /* no HAVE_GETPAGESIZE */
17139
17140int
17141main ()
17142{
17143 char *data, *data2, *data3;
d0ac1c44 17144 const char *cdata2;
2aec968d 17145 int i, pagesize;
d0ac1c44 17146 int fd, fd2;
2aec968d
L
17147
17148 pagesize = getpagesize ();
17149
17150 /* First, make a file with some known garbage in it. */
17151 data = (char *) malloc (pagesize);
17152 if (!data)
17153 return 1;
17154 for (i = 0; i < pagesize; ++i)
17155 *(data + i) = rand ();
17156 umask (0);
17157 fd = creat ("conftest.mmap", 0600);
17158 if (fd < 0)
d0ac1c44 17159 return 2;
2aec968d 17160 if (write (fd, data, pagesize) != pagesize)
d0ac1c44 17161 return 3;
2aec968d
L
17162 close (fd);
17163
d0ac1c44
SM
17164 /* Next, check that the tail of a page is zero-filled. File must have
17165 non-zero length, otherwise we risk SIGBUS for entire page. */
17166 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
17167 if (fd2 < 0)
17168 return 4;
17169 cdata2 = "";
17170 if (write (fd2, cdata2, 1) != 1)
17171 return 5;
17172 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
17173 if (data2 == MAP_FAILED)
17174 return 6;
17175 for (i = 0; i < pagesize; ++i)
17176 if (*(data2 + i))
17177 return 7;
17178 close (fd2);
17179 if (munmap (data2, pagesize))
17180 return 8;
17181
2aec968d
L
17182 /* Next, try to mmap the file at a fixed address which already has
17183 something else allocated at it. If we can, also make sure that
17184 we see the same garbage. */
17185 fd = open ("conftest.mmap", O_RDWR);
17186 if (fd < 0)
d0ac1c44 17187 return 9;
2aec968d
L
17188 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17189 MAP_PRIVATE | MAP_FIXED, fd, 0L))
d0ac1c44 17190 return 10;
2aec968d
L
17191 for (i = 0; i < pagesize; ++i)
17192 if (*(data + i) != *(data2 + i))
d0ac1c44 17193 return 11;
2aec968d
L
17194
17195 /* Finally, make sure that changes to the mapped area do not
17196 percolate back to the file as seen by read(). (This is a bug on
17197 some variants of i386 svr4.0.) */
17198 for (i = 0; i < pagesize; ++i)
17199 *(data2 + i) = *(data2 + i) + 1;
17200 data3 = (char *) malloc (pagesize);
17201 if (!data3)
d0ac1c44 17202 return 12;
2aec968d 17203 if (read (fd, data3, pagesize) != pagesize)
d0ac1c44 17204 return 13;
2aec968d
L
17205 for (i = 0; i < pagesize; ++i)
17206 if (*(data + i) != *(data3 + i))
d0ac1c44 17207 return 14;
2aec968d
L
17208 close (fd);
17209 return 0;
17210}
17211_ACEOF
17212if ac_fn_c_try_run "$LINENO"; then :
17213 ac_cv_func_mmap_fixed_mapped=yes
17214else
17215 ac_cv_func_mmap_fixed_mapped=no
17216fi
17217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17218 conftest.$ac_objext conftest.beam conftest.$ac_ext
17219fi
17220
17221fi
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
17223$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
17224if test $ac_cv_func_mmap_fixed_mapped = yes; then
17225
17226$as_echo "#define HAVE_MMAP 1" >>confdefs.h
17227
17228fi
d0ac1c44 17229rm -f conftest.mmap conftest.txt
2aec968d
L
17230
17231
5d3236ee
DK
17232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17233$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 17234if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17235 $as_echo_n "(cached) " >&6
17236else
17237 ac_func_search_save_LIBS=$LIBS
17238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239/* end confdefs.h. */
17240
17241/* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17244#ifdef __cplusplus
17245extern "C"
17246#endif
17247char dlopen ();
17248int
17249main ()
17250{
17251return dlopen ();
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256for ac_lib in '' dl; do
17257 if test -z "$ac_lib"; then
17258 ac_res="none required"
17259 else
17260 ac_res=-l$ac_lib
17261 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17262 fi
17263 if ac_fn_c_try_link "$LINENO"; then :
17264 ac_cv_search_dlopen=$ac_res
17265fi
17266rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext
d0ac1c44 17268 if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17269 break
17270fi
17271done
d0ac1c44 17272if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17273
17274else
17275 ac_cv_search_dlopen=no
17276fi
17277rm conftest.$ac_ext
17278LIBS=$ac_func_search_save_LIBS
17279fi
17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17281$as_echo "$ac_cv_search_dlopen" >&6; }
17282ac_res=$ac_cv_search_dlopen
17283if test "$ac_res" != no; then :
17284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17285
3917d5d5
DK
17286fi
17287
b879806f 17288 if test x$plugins = xyes; then
5d3236ee
DK
17289 ENABLE_PLUGINS_TRUE=
17290 ENABLE_PLUGINS_FALSE='#'
17291else
17292 ENABLE_PLUGINS_TRUE='#'
17293 ENABLE_PLUGINS_FALSE=
17294fi
17295
17296
02ecc8e9
L
17297# Check whether --enable-initfini-array was given.
17298if test "${enable_initfini_array+set}" = set; then :
26e3a0c9
AM
17299 enableval=$enable_initfini_array; case "${enableval}" in
17300 yes|no) ;;
d0ac1c44 17301 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
26e3a0c9 17302 esac
02ecc8e9 17303else
26e3a0c9 17304 enable_initfini_array=yes
02ecc8e9
L
17305fi
17306
17307
17308if test $enable_initfini_array = yes; then
17309
17310$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
17311
17312fi
17313
81ecdfbb
RW
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17315$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 17316if ${ld_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 17317 $as_echo_n "(cached) " >&6
34875e64 17318else
81ecdfbb 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17320/* end confdefs.h. */
34875e64 17321#include <unistd.h>
42ecbf5e
DJ
17322int
17323main ()
17324{
34875e64 17325extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
17326 ;
17327 return 0;
17328}
17329_ACEOF
81ecdfbb 17330if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
17331 ld_cv_decl_getopt_unistd_h=yes
17332else
81ecdfbb 17333 ld_cv_decl_getopt_unistd_h=no
34875e64 17334fi
81ecdfbb 17335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
17336fi
17337
81ecdfbb
RW
17338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17339$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 17340if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 17341
81ecdfbb 17342$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
17343
17344fi
42ecbf5e 17345
252b5132
RH
17346
17347case "${host}" in
a8100d5b 17348*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 17349
81ecdfbb 17350$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
252b5132
RH
17351 ;;
17352esac
17353
81ecdfbb 17354ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
d0ac1c44 17355if test "x$ac_cv_have_decl_strstr" = xyes; then :
81ecdfbb 17356 ac_have_decl=1
252b5132 17357else
81ecdfbb
RW
17358 ac_have_decl=0
17359fi
502bdb00 17360
81ecdfbb
RW
17361cat >>confdefs.h <<_ACEOF
17362#define HAVE_DECL_STRSTR $ac_have_decl
42ecbf5e 17363_ACEOF
81ecdfbb 17364ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
d0ac1c44 17365if test "x$ac_cv_have_decl_free" = xyes; then :
81ecdfbb 17366 ac_have_decl=1
252b5132 17367else
81ecdfbb 17368 ac_have_decl=0
252b5132
RH
17369fi
17370
502bdb00 17371cat >>confdefs.h <<_ACEOF
81ecdfbb 17372#define HAVE_DECL_FREE $ac_have_decl
502bdb00 17373_ACEOF
81ecdfbb 17374ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
d0ac1c44 17375if test "x$ac_cv_have_decl_sbrk" = xyes; then :
81ecdfbb
RW
17376 ac_have_decl=1
17377else
17378 ac_have_decl=0
17379fi
42ecbf5e 17380
81ecdfbb
RW
17381cat >>confdefs.h <<_ACEOF
17382#define HAVE_DECL_SBRK $ac_have_decl
17383_ACEOF
17384ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d0ac1c44 17385if test "x$ac_cv_have_decl_getenv" = xyes; then :
81ecdfbb
RW
17386 ac_have_decl=1
17387else
17388 ac_have_decl=0
17389fi
502bdb00 17390
81ecdfbb
RW
17391cat >>confdefs.h <<_ACEOF
17392#define HAVE_DECL_GETENV $ac_have_decl
17393_ACEOF
17394ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
d0ac1c44 17395if test "x$ac_cv_have_decl_environ" = xyes; then :
81ecdfbb 17396 ac_have_decl=1
502bdb00 17397else
81ecdfbb
RW
17398 ac_have_decl=0
17399fi
17400
17401cat >>confdefs.h <<_ACEOF
17402#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 17403_ACEOF
252b5132 17404
252b5132 17405
1ff6de03
NA
17406# Link in zlib if we can. This allows us to read and write
17407# compressed CTF sections.
17408
17409 # Use the system's zlib library.
17410 zlibdir="-L\$(top_builddir)/../zlib"
17411 zlibinc="-I\$(top_srcdir)/../zlib"
17412
17413# Check whether --with-system-zlib was given.
17414if test "${with_system_zlib+set}" = set; then :
17415 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17416 zlibdir=
17417 zlibinc=
17418 fi
17419
17420fi
17421
17422
17423
17424
17425
597e2591
ILT
17426# When converting linker scripts into strings for use in emulation
17427# files, use astring.sed if the compiler supports ANSI string
17428# concatenation, or ostring.sed otherwise. This is to support the
17429# broken Microsoft MSVC compiler, which limits the length of string
17430# constants, while still supporting pre-ANSI compilers which do not
17431# support string concatenation.
81ecdfbb
RW
17432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17433$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
d0ac1c44 17434if ${ld_cv_string_concatenation+:} false; then :
81ecdfbb 17435 $as_echo_n "(cached) " >&6
42ecbf5e 17436else
81ecdfbb 17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17438/* end confdefs.h. */
81ecdfbb 17439
314e9a4e
L
17440int
17441main ()
17442{
81ecdfbb 17443char *a = "a" "a";
314e9a4e
L
17444 ;
17445 return 0;
17446}
17447_ACEOF
81ecdfbb
RW
17448if ac_fn_c_try_compile "$LINENO"; then :
17449 ld_cv_string_concatenation=yes
314e9a4e 17450else
81ecdfbb 17451 ld_cv_string_concatenation=no
314e9a4e 17452fi
81ecdfbb 17453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17454fi
81ecdfbb
RW
17455
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17457$as_echo "$ld_cv_string_concatenation" >&6; }
17458if test "$ld_cv_string_concatenation" = "yes"; then
17459 STRINGIFY=astring.sed
17460else
17461 STRINGIFY=ostring.sed
314e9a4e 17462fi
81ecdfbb
RW
17463
17464
17465# target-specific stuff:
17466
17467all_targets=
17468EMUL=
17469all_emuls=
17470all_emul_extras=
17471all_libpath=
50ff67e6 17472TDIRS=
81ecdfbb 17473
bf9ef603 17474# If the host is 64-bit, then we enable 64-bit targets by default.
1110793a 17475# This is consistent with what ../bfd/configure.ac does.
bf9ef603
RM
17476if test x${want64} = xfalse; then
17477 # The cast to long int works around a bug in the HP C Compiler
17478# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17479# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17480# This bug is HP SR number 8606223364.
17481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17482$as_echo_n "checking size of void *... " >&6; }
d0ac1c44 17483if ${ac_cv_sizeof_void_p+:} false; then :
bf9ef603
RM
17484 $as_echo_n "(cached) " >&6
17485else
17486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
17487
17488else
17489 if test "$ac_cv_type_void_p" = yes; then
17490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
17492as_fn_error 77 "cannot compute sizeof (void *)
17493See \`config.log' for more details" "$LINENO" 5; }
bf9ef603
RM
17494 else
17495 ac_cv_sizeof_void_p=0
17496 fi
17497fi
17498
17499fi
17500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17501$as_echo "$ac_cv_sizeof_void_p" >&6; }
17502
17503
17504
17505cat >>confdefs.h <<_ACEOF
17506#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17507_ACEOF
17508
17509
17510 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
17511 want64=true
17512 fi
17513fi
17514
c58212ea
L
17515elf_list_options=FALSE
17516elf_shlib_list_options=FALSE
17517elf_plt_unwind_list_options=FALSE
81ecdfbb
RW
17518for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17519do
17520 if test "$targ_alias" = "all"; then
17521 all_targets=true
82d8e420
L
17522 elf_list_options=TRUE
17523 elf_shlib_list_options=TRUE
17524 elf_plt_unwind_list_options=TRUE
81ecdfbb
RW
17525 else
17526 # Canonicalize the secondary target names.
17527 result=`$ac_config_sub $targ_alias 2>/dev/null`
17528 if test -n "$result"; then
17529 targ=$result
17530 else
17531 targ=$targ_alias
17532 fi
17533
17534 . ${srcdir}/configure.tgt
17535
17536 if test "$targ" = "$target"; then
17537 EMUL=$targ_emul
17538 fi
17539
17540 if test x${want64} = xfalse; then
17541 . ${srcdir}/../bfd/config.bfd
17542 fi
17543
17544 if test x${want64} = xtrue; then
17545 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17546 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17547 fi
17548
17549 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17550 case " $all_emuls " in
8c3fff59
AM
17551 *" e${i}.o "*) ;;
17552 *)
17553 all_emuls="$all_emuls e${i}.o"
17554 eval result=\$tdir_$i
17555 test -z "$result" && result=$targ_alias
50ff67e6
AM
17556 TDIRS="$TDIRS
17557tdir_$i=$result"
c58212ea
L
17558 case "${i}" in
17559 *elf*)
17560 elf_list_options=TRUE
68880f31
CLT
17561 ;;
17562 *)
075a2b89 17563 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
68880f31
CLT
17564 elf_list_options=TRUE
17565 fi
17566 ;;
17567 esac
17568 if test "$elf_list_options" = "TRUE"; then
c40e31a1
AM
17569 source_sh()
17570 {
17571 . $1
17572 }
17573 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea
L
17574 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17575 elf_shlib_list_options=TRUE
17576 fi
17577 if test x${PLT_UNWIND} = xyes; then
17578 elf_plt_unwind_list_options=TRUE
17579 fi
68880f31 17580 fi
c58212ea 17581 ;;
81ecdfbb
RW
17582 esac
17583 done
17584
17585 for i in $targ_emul $targ_extra_libpath; do
17586 case " $all_libpath " in
17587 *" ${i} "*) ;;
17588 *)
17589 if test -z "$all_libpath"; then
17590 all_libpath=${i}
17591 else
17592 all_libpath="$all_libpath ${i}"
17593 fi
17594 ;;
17595 esac
17596 done
17597
17598 for i in $targ_extra_ofiles; do
17599 case " $all_emul_extras " in
17600 *" ${i} "*) ;;
17601 *)
17602 all_emul_extras="$all_emul_extras ${i}"
17603 ;;
17604 esac
17605 done
5063daf7 17606
81ecdfbb
RW
17607 fi
17608done
17609
621ff761 17610if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17611
17612$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17613
17614fi
17615
6734f10a
SB
17616if test "${ac_default_new_dtags}" = unset; then
17617 ac_default_new_dtags=0
17618fi
17619
17620cat >>confdefs.h <<_ACEOF
17621#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17622_ACEOF
17623
17624
647e4d46
L
17625if test "${ac_default_ld_z_relro}" = unset; then
17626 ac_default_ld_z_relro=0
17627fi
17628
17629cat >>confdefs.h <<_ACEOF
17630#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17631_ACEOF
17632
17633
b32632c4
L
17634ac_default_ld_textrel_check_warning=0
17635case "${ac_default_ld_textrel_check}" in
17636 unset|no)
17637 ac_default_ld_textrel_check=textrel_check_none
17638 ;;
17639 yes|warning)
17640 ac_default_ld_textrel_check=textrel_check_warning
17641 ac_default_ld_textrel_check_warning=1
17642 ;;
17643 error)
17644 ac_default_ld_textrel_check=textrel_check_error
17645 ;;
17646esac
17647
17648cat >>confdefs.h <<_ACEOF
17649#define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17650_ACEOF
17651
17652
17653cat >>confdefs.h <<_ACEOF
17654#define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17655_ACEOF
17656
17657
f6aec96d
L
17658if test "${ac_default_ld_z_separate_code}" = unset; then
17659 ac_default_ld_z_separate_code=0
17660fi
17661
17662cat >>confdefs.h <<_ACEOF
17663#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17664_ACEOF
17665
17666
81ecdfbb 17667
2760f24c
RG
17668cat >>confdefs.h <<_ACEOF
17669#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17670_ACEOF
17671
17672
17673
17674cat >>confdefs.h <<_ACEOF
17675#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17676_ACEOF
17677
17678
17679
81ecdfbb 17680
c58212ea
L
17681
17682
17683
50ff67e6 17684
81ecdfbb
RW
17685
17686
17687if test x${all_targets} = xtrue; then
42ecbf5e
DJ
17688 if test x${want64} = xtrue; then
17689 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17690 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17691 else
17692 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17693 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17694 fi
42ecbf5e
DJ
17695else
17696 EMULATION_OFILES=$all_emuls
17697 EMUL_EXTRA_OFILES=$all_emul_extras
17698fi
17699
17700
17701
17702
17703EMULATION_LIBPATH=$all_libpath
17704
17705
17706if test x${enable_static} = xno; then
9165f454 17707 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 17708 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
42ecbf5e
DJ
17709else
17710 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 17711 TESTCTFLIB="../libctf/.libs/libctf.a"
42ecbf5e
DJ
17712fi
17713
17714
87279e3c 17715
42ecbf5e
DJ
17716target_vendor=${target_vendor=$host_vendor}
17717case "$target_vendor" in
17718 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17719 *) EXTRA_SHLIB_EXTENSION= ;;
17720esac
17721
17722case "$target_os" in
17723 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17724esac
17725
17726if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17727
17728cat >>confdefs.h <<_ACEOF
17729#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17730_ACEOF
17731
17732fi
17733
33589acb
AM
17734ac_config_commands="$ac_config_commands default"
17735
17736
108a6f8e
CD
17737
17738
17739
17740
31dd3154 17741
81ecdfbb 17742ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17743
42ecbf5e
DJ
17744cat >confcache <<\_ACEOF
17745# This file is a shell script that caches the results of configure
17746# tests run on this system so they can be shared between configure
17747# scripts and configure runs, see configure's option --config-cache.
17748# It is not useful on other systems. If it contains results you don't
17749# want to keep, you may remove or edit it.
17750#
17751# config.status only pays attention to the cache file if you give it
17752# the --recheck option to rerun configure.
17753#
17754# `ac_cv_env_foo' variables (set or unset) will be overridden when
17755# loading this file, other *unset* `ac_cv_foo' will be assigned the
17756# following values.
17757
17758_ACEOF
17759
17760# The following way of writing the cache mishandles newlines in values,
17761# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17762# So, we kill variables containing newlines.
42ecbf5e
DJ
17763# Ultrix sh set writes to stderr and can't be redirected directly,
17764# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17765(
17766 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17767 eval ac_val=\$$ac_var
17768 case $ac_val in #(
17769 *${as_nl}*)
17770 case $ac_var in #(
17771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17772$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17773 esac
17774 case $ac_var in #(
17775 _ | IFS | as_nl) ;; #(
17776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17777 *) { eval $ac_var=; unset $ac_var;} ;;
17778 esac ;;
17779 esac
17780 done
17781
42ecbf5e 17782 (set) 2>&1 |
81ecdfbb
RW
17783 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17784 *${as_nl}ac_space=\ *)
17785 # `set' does not quote correctly, so add quotes: double-quote
17786 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17787 sed -n \
17788 "s/'/'\\\\''/g;
17789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17790 ;; #(
42ecbf5e
DJ
17791 *)
17792 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17794 ;;
81ecdfbb
RW
17795 esac |
17796 sort
17797) |
42ecbf5e 17798 sed '
81ecdfbb 17799 /^ac_cv_env_/b end
42ecbf5e 17800 t clear
81ecdfbb 17801 :clear
42ecbf5e
DJ
17802 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17803 t end
81ecdfbb
RW
17804 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17805 :end' >>confcache
17806if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17807 if test -w "$cache_file"; then
d0ac1c44 17808 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17810$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
17811 if test ! -f "$cache_file" || test -h "$cache_file"; then
17812 cat confcache >"$cache_file"
17813 else
17814 case $cache_file in #(
17815 */* | ?:*)
17816 mv -f confcache "$cache_file"$$ &&
17817 mv -f "$cache_file"$$ "$cache_file" ;; #(
17818 *)
17819 mv -f confcache "$cache_file" ;;
17820 esac
17821 fi
17822 fi
42ecbf5e 17823 else
81ecdfbb
RW
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17825$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17826 fi
17827fi
17828rm -f confcache
17829
17830test "x$prefix" = xNONE && prefix=$ac_default_prefix
17831# Let make expand exec_prefix.
17832test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17833
42ecbf5e
DJ
17834DEFS=-DHAVE_CONFIG_H
17835
17836ac_libobjs=
17837ac_ltlibobjs=
d0ac1c44 17838U=
42ecbf5e
DJ
17839for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17840 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17841 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17842 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17843 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17844 # will be set to the directory where LIBOBJS objects are built.
17845 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17846 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17847done
17848LIBOBJS=$ac_libobjs
17849
17850LTLIBOBJS=$ac_ltlibobjs
17851
17852
d0ac1c44
SM
17853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17854$as_echo_n "checking that generated files are newer than configure... " >&6; }
17855 if test -n "$am_sleep_pid"; then
17856 # Hide warnings about reused PIDs.
17857 wait $am_sleep_pid 2>/dev/null
17858 fi
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17860$as_echo "done" >&6; }
42ecbf5e 17861if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 17862 as_fn_error $? "conditional \"AMDEP\" was never defined.
81ecdfbb 17863Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e
DJ
17864fi
17865if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 17866 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb
RW
17867Usually this means the macro was only invoked conditionally." "$LINENO" 5
17868fi
17869 if test -n "$EXEEXT"; then
17870 am__EXEEXT_TRUE=
17871 am__EXEEXT_FALSE='#'
17872else
17873 am__EXEEXT_TRUE='#'
17874 am__EXEEXT_FALSE=
42ecbf5e 17875fi
81ecdfbb 17876
64ac50ac 17877if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17878 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
64ac50ac
RW
17879Usually this means the macro was only invoked conditionally." "$LINENO" 5
17880fi
3cb62297 17881if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 17882 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
3cb62297
L
17883Usually this means the macro was only invoked conditionally." "$LINENO" 5
17884fi
42ecbf5e 17885if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17886 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 17887Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17888fi
d5fbea21 17889if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 17890 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 17891Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17892fi
5d3236ee 17893if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
d0ac1c44 17894 as_fn_error $? "conditional \"ENABLE_PLUGINS\" was never defined.
5d3236ee
DK
17895Usually this means the macro was only invoked conditionally." "$LINENO" 5
17896fi
42ecbf5e 17897
d0ac1c44 17898: "${CONFIG_STATUS=./config.status}"
81ecdfbb 17899ac_write_fail=0
42ecbf5e
DJ
17900ac_clean_files_save=$ac_clean_files
17901ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17902{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17903$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17904as_write_fail=0
17905cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17906#! $SHELL
17907# Generated by $as_me.
17908# Run this file to recreate the current configuration.
17909# Compiler output produced by configure, useful for debugging
17910# configure, is in config.log if it exists.
17911
17912debug=false
17913ac_cs_recheck=false
17914ac_cs_silent=false
42ecbf5e 17915
81ecdfbb
RW
17916SHELL=\${CONFIG_SHELL-$SHELL}
17917export SHELL
17918_ASEOF
17919cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17920## -------------------- ##
17921## M4sh Initialization. ##
17922## -------------------- ##
42ecbf5e 17923
81ecdfbb
RW
17924# Be more Bourne compatible
17925DUALCASE=1; export DUALCASE # for MKS sh
17926if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17927 emulate sh
17928 NULLCMD=:
81ecdfbb 17929 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17930 # is contrary to our usage. Disable this feature.
17931 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17932 setopt NO_GLOB_SUBST
17933else
17934 case `(set -o) 2>/dev/null` in #(
17935 *posix*) :
17936 set -o posix ;; #(
17937 *) :
17938 ;;
17939esac
42ecbf5e 17940fi
42ecbf5e 17941
81ecdfbb
RW
17942
17943as_nl='
17944'
17945export as_nl
17946# Printing a long string crashes Solaris 7 /usr/bin/printf.
17947as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17948as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17949as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17950# Prefer a ksh shell builtin over an external printf program on Solaris,
17951# but without wasting forks for bash or zsh.
17952if test -z "$BASH_VERSION$ZSH_VERSION" \
17953 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17954 as_echo='print -r --'
17955 as_echo_n='print -rn --'
17956elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17957 as_echo='printf %s\n'
17958 as_echo_n='printf %s'
17959else
17960 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17961 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17962 as_echo_n='/usr/ucb/echo -n'
17963 else
17964 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17965 as_echo_n_body='eval
17966 arg=$1;
17967 case $arg in #(
17968 *"$as_nl"*)
17969 expr "X$arg" : "X\\(.*\\)$as_nl";
17970 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17971 esac;
17972 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17973 '
17974 export as_echo_n_body
17975 as_echo_n='sh -c $as_echo_n_body as_echo'
17976 fi
17977 export as_echo_body
17978 as_echo='sh -c $as_echo_body as_echo'
17979fi
17980
17981# The user is always right.
17982if test "${PATH_SEPARATOR+set}" != set; then
17983 PATH_SEPARATOR=:
17984 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17985 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17986 PATH_SEPARATOR=';'
17987 }
42ecbf5e
DJ
17988fi
17989
17990
81ecdfbb
RW
17991# IFS
17992# We need space, tab and new line, in precisely that order. Quoting is
17993# there to prevent editors from complaining about space-tab.
17994# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17995# splitting by setting IFS to empty value.)
17996IFS=" "" $as_nl"
17997
17998# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 17999as_myself=
81ecdfbb
RW
18000case $0 in #((
18001 *[\\/]* ) as_myself=$0 ;;
18002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18003for as_dir in $PATH
18004do
18005 IFS=$as_save_IFS
18006 test -z "$as_dir" && as_dir=.
18007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18008 done
18009IFS=$as_save_IFS
18010
18011 ;;
18012esac
18013# We did not find ourselves, most probably we were run as `sh COMMAND'
18014# in which case we are not to be found in the path.
18015if test "x$as_myself" = x; then
18016 as_myself=$0
18017fi
18018if test ! -f "$as_myself"; then
18019 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18020 exit 1
18021fi
18022
18023# Unset variables that we do not need and which cause bugs (e.g. in
18024# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18025# suppresses any "Segmentation fault" message there. '((' could
18026# trigger a bug in pdksh 5.2.14.
18027for as_var in BASH_ENV ENV MAIL MAILPATH
18028do eval test x\${$as_var+set} = xset \
18029 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18030done
42ecbf5e
DJ
18031PS1='$ '
18032PS2='> '
18033PS4='+ '
18034
18035# NLS nuisances.
81ecdfbb
RW
18036LC_ALL=C
18037export LC_ALL
18038LANGUAGE=C
18039export LANGUAGE
18040
18041# CDPATH.
18042(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18043
18044
d0ac1c44
SM
18045# as_fn_error STATUS ERROR [LINENO LOG_FD]
18046# ----------------------------------------
81ecdfbb
RW
18047# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18048# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 18049# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
18050as_fn_error ()
18051{
d0ac1c44
SM
18052 as_status=$1; test $as_status -eq 0 && as_status=1
18053 if test "$4"; then
18054 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18055 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 18056 fi
d0ac1c44 18057 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
18058 as_fn_exit $as_status
18059} # as_fn_error
18060
18061
18062# as_fn_set_status STATUS
18063# -----------------------
18064# Set $? to STATUS, without forking.
18065as_fn_set_status ()
18066{
18067 return $1
18068} # as_fn_set_status
18069
18070# as_fn_exit STATUS
18071# -----------------
18072# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18073as_fn_exit ()
18074{
18075 set +e
18076 as_fn_set_status $1
18077 exit $1
18078} # as_fn_exit
18079
18080# as_fn_unset VAR
18081# ---------------
18082# Portably unset VAR.
18083as_fn_unset ()
18084{
18085 { eval $1=; unset $1;}
18086}
18087as_unset=as_fn_unset
18088# as_fn_append VAR VALUE
18089# ----------------------
18090# Append the text in VALUE to the end of the definition contained in VAR. Take
18091# advantage of any shell optimizations that allow amortized linear growth over
18092# repeated appends, instead of the typical quadratic growth present in naive
18093# implementations.
18094if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18095 eval 'as_fn_append ()
18096 {
18097 eval $1+=\$2
18098 }'
18099else
18100 as_fn_append ()
18101 {
18102 eval $1=\$$1\$2
18103 }
18104fi # as_fn_append
18105
18106# as_fn_arith ARG...
18107# ------------------
18108# Perform arithmetic evaluation on the ARGs, and store the result in the
18109# global $as_val. Take advantage of shells that can avoid forks. The arguments
18110# must be portable across $(()) and expr.
18111if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18112 eval 'as_fn_arith ()
18113 {
18114 as_val=$(( $* ))
18115 }'
18116else
18117 as_fn_arith ()
18118 {
18119 as_val=`expr "$@" || test $? -eq 1`
18120 }
18121fi # as_fn_arith
18122
42ecbf5e 18123
81ecdfbb
RW
18124if expr a : '\(a\)' >/dev/null 2>&1 &&
18125 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
18126 as_expr=expr
18127else
18128 as_expr=false
18129fi
18130
81ecdfbb 18131if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
18132 as_basename=basename
18133else
18134 as_basename=false
18135fi
18136
81ecdfbb
RW
18137if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18138 as_dirname=dirname
18139else
18140 as_dirname=false
18141fi
42ecbf5e 18142
81ecdfbb 18143as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
18144$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18145 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
18146 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18147$as_echo X/"$0" |
18148 sed '/^.*\/\([^/][^/]*\)\/*$/{
18149 s//\1/
18150 q
18151 }
18152 /^X\/\(\/\/\)$/{
18153 s//\1/
18154 q
18155 }
18156 /^X\/\(\/\).*/{
18157 s//\1/
18158 q
18159 }
18160 s/.*/./; q'`
42ecbf5e 18161
42ecbf5e
DJ
18162# Avoid depending upon Character Ranges.
18163as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18164as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18165as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18166as_cr_digits='0123456789'
18167as_cr_alnum=$as_cr_Letters$as_cr_digits
18168
81ecdfbb
RW
18169ECHO_C= ECHO_N= ECHO_T=
18170case `echo -n x` in #(((((
18171-n*)
18172 case `echo 'xy\c'` in
18173 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18174 xy) ECHO_C='\c';;
18175 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18176 ECHO_T=' ';;
18177 esac;;
18178*)
18179 ECHO_N='-n';;
42ecbf5e 18180esac
252b5132 18181
81ecdfbb
RW
18182rm -f conf$$ conf$$.exe conf$$.file
18183if test -d conf$$.dir; then
18184 rm -f conf$$.dir/conf$$.file
42ecbf5e 18185else
81ecdfbb
RW
18186 rm -f conf$$.dir
18187 mkdir conf$$.dir 2>/dev/null
42ecbf5e 18188fi
81ecdfbb
RW
18189if (echo >conf$$.file) 2>/dev/null; then
18190 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 18191 as_ln_s='ln -s'
81ecdfbb
RW
18192 # ... but there are two gotchas:
18193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 18195 # In both cases, we have to default to `cp -pR'.
81ecdfbb 18196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 18197 as_ln_s='cp -pR'
81ecdfbb
RW
18198 elif ln conf$$.file conf$$ 2>/dev/null; then
18199 as_ln_s=ln
18200 else
d0ac1c44 18201 as_ln_s='cp -pR'
252b5132 18202 fi
e5a52504 18203else
d0ac1c44 18204 as_ln_s='cp -pR'
e5a52504 18205fi
81ecdfbb
RW
18206rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18207rmdir conf$$.dir 2>/dev/null
18208
18209
18210# as_fn_mkdir_p
18211# -------------
18212# Create "$as_dir" as a directory, including parents if necessary.
18213as_fn_mkdir_p ()
18214{
18215
18216 case $as_dir in #(
18217 -*) as_dir=./$as_dir;;
18218 esac
18219 test -d "$as_dir" || eval $as_mkdir_p || {
18220 as_dirs=
18221 while :; do
18222 case $as_dir in #(
18223 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18224 *) as_qdir=$as_dir;;
18225 esac
18226 as_dirs="'$as_qdir' $as_dirs"
18227 as_dir=`$as_dirname -- "$as_dir" ||
18228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18229 X"$as_dir" : 'X\(//\)[^/]' \| \
18230 X"$as_dir" : 'X\(//\)$' \| \
18231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18232$as_echo X"$as_dir" |
18233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18234 s//\1/
18235 q
18236 }
18237 /^X\(\/\/\)[^/].*/{
18238 s//\1/
18239 q
18240 }
18241 /^X\(\/\/\)$/{
18242 s//\1/
18243 q
18244 }
18245 /^X\(\/\).*/{
18246 s//\1/
18247 q
18248 }
18249 s/.*/./; q'`
18250 test -d "$as_dir" && break
18251 done
18252 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 18253 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 18254
252b5132 18255
81ecdfbb 18256} # as_fn_mkdir_p
42ecbf5e 18257if mkdir -p . 2>/dev/null; then
81ecdfbb 18258 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
18259else
18260 test -d ./-p && rmdir ./-p
18261 as_mkdir_p=false
18262fi
252b5132 18263
d0ac1c44
SM
18264
18265# as_fn_executable_p FILE
18266# -----------------------
18267# Test if FILE is an executable regular file.
18268as_fn_executable_p ()
18269{
18270 test -f "$1" && test -x "$1"
18271} # as_fn_executable_p
18272as_test_x='test -x'
18273as_executable_p=as_fn_executable_p
252b5132 18274
42ecbf5e
DJ
18275# Sed expression to map a string onto a valid CPP name.
18276as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 18277
42ecbf5e
DJ
18278# Sed expression to map a string onto a valid variable name.
18279as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 18280
e5a52504 18281
42ecbf5e 18282exec 6>&1
81ecdfbb
RW
18283## ----------------------------------- ##
18284## Main body of $CONFIG_STATUS script. ##
18285## ----------------------------------- ##
18286_ASEOF
18287test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 18288
81ecdfbb
RW
18289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18290# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 18291# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
18292# values after options handling.
18293ac_log="
1b1bb2c6 18294This file was extended by ld $as_me 2.34.50, which was
d0ac1c44 18295generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
18296
18297 CONFIG_FILES = $CONFIG_FILES
18298 CONFIG_HEADERS = $CONFIG_HEADERS
18299 CONFIG_LINKS = $CONFIG_LINKS
18300 CONFIG_COMMANDS = $CONFIG_COMMANDS
18301 $ $0 $@
e5a52504 18302
81ecdfbb
RW
18303on `(hostname || uname -n) 2>/dev/null | sed 1q`
18304"
18305
42ecbf5e
DJ
18306_ACEOF
18307
81ecdfbb
RW
18308case $ac_config_files in *"
18309"*) set x $ac_config_files; shift; ac_config_files=$*;;
18310esac
e5a52504 18311
81ecdfbb
RW
18312case $ac_config_headers in *"
18313"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18314esac
42ecbf5e 18315
42ecbf5e 18316
81ecdfbb
RW
18317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18318# Files that config.status was made for.
18319config_files="$ac_config_files"
18320config_headers="$ac_config_headers"
18321config_commands="$ac_config_commands"
42ecbf5e 18322
81ecdfbb 18323_ACEOF
42ecbf5e 18324
81ecdfbb 18325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18326ac_cs_usage="\
81ecdfbb
RW
18327\`$as_me' instantiates files and other configuration actions
18328from templates according to the current configuration. Unless the files
18329and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 18330
81ecdfbb 18331Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
18332
18333 -h, --help print this help, then exit
81ecdfbb 18334 -V, --version print version number and configuration settings, then exit
d0ac1c44 18335 --config print configuration, then exit
81ecdfbb
RW
18336 -q, --quiet, --silent
18337 do not print progress messages
42ecbf5e
DJ
18338 -d, --debug don't remove temporary files
18339 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
18340 --file=FILE[:TEMPLATE]
18341 instantiate the configuration file FILE
18342 --header=FILE[:TEMPLATE]
18343 instantiate the configuration header FILE
42ecbf5e
DJ
18344
18345Configuration files:
18346$config_files
18347
18348Configuration headers:
18349$config_headers
18350
18351Configuration commands:
18352$config_commands
18353
81ecdfbb 18354Report bugs to the package provider."
42ecbf5e 18355
81ecdfbb
RW
18356_ACEOF
18357cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18358ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 18359ac_cs_version="\\
1b1bb2c6 18360ld config.status 2.34.50
d0ac1c44
SM
18361configured by $0, generated by GNU Autoconf 2.69,
18362 with options \\"\$ac_cs_config\\"
42ecbf5e 18363
d0ac1c44 18364Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
18365This config.status script is free software; the Free Software Foundation
18366gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
18367
18368ac_pwd='$ac_pwd'
18369srcdir='$srcdir'
18370INSTALL='$INSTALL'
18371MKDIR_P='$MKDIR_P'
18372AWK='$AWK'
18373test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
18374_ACEOF
18375
81ecdfbb
RW
18376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18377# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
18378ac_need_defaults=:
18379while test $# != 0
18380do
18381 case $1 in
d0ac1c44 18382 --*=?*)
81ecdfbb
RW
18383 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18384 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 18385 ac_shift=:
252b5132 18386 ;;
d0ac1c44
SM
18387 --*=)
18388 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18389 ac_optarg=
18390 ac_shift=:
18391 ;;
81ecdfbb 18392 *)
42ecbf5e
DJ
18393 ac_option=$1
18394 ac_optarg=$2
18395 ac_shift=shift
252b5132 18396 ;;
42ecbf5e 18397 esac
252b5132 18398
42ecbf5e
DJ
18399 case $ac_option in
18400 # Handling of the options.
42ecbf5e
DJ
18401 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18402 ac_cs_recheck=: ;;
81ecdfbb
RW
18403 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18404 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
18405 --config | --confi | --conf | --con | --co | --c )
18406 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 18407 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
18408 debug=: ;;
18409 --file | --fil | --fi | --f )
18410 $ac_shift
81ecdfbb
RW
18411 case $ac_optarg in
18412 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 18413 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
18414 esac
18415 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
18416 ac_need_defaults=false;;
18417 --header | --heade | --head | --hea )
18418 $ac_shift
81ecdfbb
RW
18419 case $ac_optarg in
18420 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18421 esac
18422 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 18423 ac_need_defaults=false;;
81ecdfbb
RW
18424 --he | --h)
18425 # Conflict between --help and --header
d0ac1c44 18426 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
18427Try \`$0 --help' for more information.";;
18428 --help | --hel | -h )
18429 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
18430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18432 ac_cs_silent=: ;;
252b5132 18433
42ecbf5e 18434 # This is an error.
d0ac1c44 18435 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 18436Try \`$0 --help' for more information." ;;
252b5132 18437
81ecdfbb
RW
18438 *) as_fn_append ac_config_targets " $1"
18439 ac_need_defaults=false ;;
252b5132 18440
42ecbf5e
DJ
18441 esac
18442 shift
18443done
d15b04bd 18444
42ecbf5e 18445ac_configure_extra_args=
e5a52504 18446
42ecbf5e
DJ
18447if $ac_cs_silent; then
18448 exec 6>/dev/null
18449 ac_configure_extra_args="$ac_configure_extra_args --silent"
18450fi
e5a52504 18451
42ecbf5e 18452_ACEOF
81ecdfbb 18453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 18454if \$ac_cs_recheck; then
d0ac1c44 18455 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
18456 shift
18457 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18458 CONFIG_SHELL='$SHELL'
18459 export CONFIG_SHELL
18460 exec "\$@"
42ecbf5e
DJ
18461fi
18462
18463_ACEOF
81ecdfbb
RW
18464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18465exec 5>>config.log
18466{
18467 echo
18468 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18469## Running $as_me. ##
18470_ASBOX
18471 $as_echo "$ac_log"
18472} >&5
42ecbf5e 18473
81ecdfbb
RW
18474_ACEOF
18475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 18476#
81ecdfbb 18477# INIT-COMMANDS
252b5132 18478#
42ecbf5e 18479AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
18480
18481
18482# The HP-UX ksh and POSIX shell print the target directory to stdout
18483# if CDPATH is set.
18484(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18485
18486sed_quote_subst='$sed_quote_subst'
18487double_quote_subst='$double_quote_subst'
18488delay_variable_subst='$delay_variable_subst'
3725885a
RW
18489macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18490macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18491enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18492enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18493pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18494enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18495SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18496ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18497host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18498host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18499host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18500build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18501build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18502build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18503SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18504Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18505GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18506EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18507FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18508LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18509NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18510LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18511max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18512ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18513exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18514lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18515lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18516lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18517reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18518reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18519OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18520deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18521file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18522AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18523AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18524STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18525RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18526old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18527old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18528old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18529lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18530CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18531CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18532compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18533GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18534lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18535lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18536lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18537lt_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"`'
18538objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18539MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18540lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18541lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18542lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18543lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18544lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18545need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18546DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18547NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18548LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18549OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18550OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18551libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18552shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18553extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18554archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18555enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18556export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18557whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18558compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18559old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18560old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18561archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18562archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18563module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18564module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18565with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18566allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18567no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18568hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18569hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18570hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18571hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18572hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18573hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18574hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18575hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18576inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18577link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18578fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18579always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18580export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18581exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18582include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18583prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18584file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18585variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18586need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18587need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18588version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18589runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18590shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18591shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18592libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18593library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18594soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18595install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18596postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18597postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18598finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18599finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18600hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18601sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18602sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18603hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18604enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18605enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18606enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18607old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18608striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18609compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18610predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18611postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18612predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18613postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18614compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18615LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18616reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18617reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18618old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18619compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18620GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18621lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18622lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18623lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18624lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18625lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18626archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18627enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18628export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18629whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18630compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18631old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18632old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18633archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18634archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18635module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18636module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18637with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18638allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18639no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18640hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18641hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18642hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18643hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18644hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18645hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18646hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18647hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18648inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18649link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18650fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18651always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18652export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18653exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18654include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18655prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18656file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18657hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18658compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18659predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18660postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18661predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18662postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18663compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18664
18665LTCC='$LTCC'
18666LTCFLAGS='$LTCFLAGS'
18667compiler='$compiler_DEFAULT'
18668
3725885a
RW
18669# A function that is used when there is no print builtin or printf.
18670func_fallback_echo ()
18671{
18672 eval 'cat <<_LTECHO_EOF
18673\$1
18674_LTECHO_EOF'
18675}
18676
d7040cdb 18677# Quote evaled strings.
3725885a
RW
18678for var in SHELL \
18679ECHO \
18680SED \
d7040cdb
SE
18681GREP \
18682EGREP \
18683FGREP \
18684LD \
18685NM \
18686LN_S \
18687lt_SP2NL \
18688lt_NL2SP \
18689reload_flag \
b214d478 18690OBJDUMP \
d7040cdb
SE
18691deplibs_check_method \
18692file_magic_cmd \
18693AR \
18694AR_FLAGS \
18695STRIP \
18696RANLIB \
18697CC \
18698CFLAGS \
18699compiler \
18700lt_cv_sys_global_symbol_pipe \
18701lt_cv_sys_global_symbol_to_cdecl \
18702lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18704lt_prog_compiler_no_builtin_flag \
18705lt_prog_compiler_wl \
18706lt_prog_compiler_pic \
18707lt_prog_compiler_static \
18708lt_cv_prog_compiler_c_o \
18709need_locks \
b214d478
SE
18710DSYMUTIL \
18711NMEDIT \
18712LIPO \
18713OTOOL \
18714OTOOL64 \
d7040cdb
SE
18715shrext_cmds \
18716export_dynamic_flag_spec \
18717whole_archive_flag_spec \
18718compiler_needs_object \
18719with_gnu_ld \
18720allow_undefined_flag \
18721no_undefined_flag \
18722hardcode_libdir_flag_spec \
18723hardcode_libdir_flag_spec_ld \
18724hardcode_libdir_separator \
18725fix_srcfile_path \
18726exclude_expsyms \
18727include_expsyms \
18728file_list_spec \
18729variables_saved_for_relink \
18730libname_spec \
18731library_names_spec \
18732soname_spec \
3725885a 18733install_override_mode \
d7040cdb
SE
18734finish_eval \
18735old_striplib \
3cb62297
L
18736striplib \
18737compiler_lib_search_dirs \
18738predep_objects \
18739postdep_objects \
18740predeps \
18741postdeps \
18742compiler_lib_search_path \
18743LD_CXX \
18744reload_flag_CXX \
18745compiler_CXX \
18746lt_prog_compiler_no_builtin_flag_CXX \
18747lt_prog_compiler_wl_CXX \
18748lt_prog_compiler_pic_CXX \
18749lt_prog_compiler_static_CXX \
18750lt_cv_prog_compiler_c_o_CXX \
18751export_dynamic_flag_spec_CXX \
18752whole_archive_flag_spec_CXX \
18753compiler_needs_object_CXX \
18754with_gnu_ld_CXX \
18755allow_undefined_flag_CXX \
18756no_undefined_flag_CXX \
18757hardcode_libdir_flag_spec_CXX \
18758hardcode_libdir_flag_spec_ld_CXX \
18759hardcode_libdir_separator_CXX \
18760fix_srcfile_path_CXX \
18761exclude_expsyms_CXX \
18762include_expsyms_CXX \
18763file_list_spec_CXX \
18764compiler_lib_search_dirs_CXX \
18765predep_objects_CXX \
18766postdep_objects_CXX \
18767predeps_CXX \
18768postdeps_CXX \
18769compiler_lib_search_path_CXX; do
3725885a 18770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18771 *[\\\\\\\`\\"\\\$]*)
3725885a 18772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18773 ;;
18774 *)
18775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18776 ;;
18777 esac
18778done
18779
18780# Double-quote double-evaled strings.
18781for var in reload_cmds \
18782old_postinstall_cmds \
18783old_postuninstall_cmds \
18784old_archive_cmds \
18785extract_expsyms_cmds \
18786old_archive_from_new_cmds \
18787old_archive_from_expsyms_cmds \
18788archive_cmds \
18789archive_expsym_cmds \
18790module_cmds \
18791module_expsym_cmds \
18792export_symbols_cmds \
18793prelink_cmds \
18794postinstall_cmds \
18795postuninstall_cmds \
18796finish_cmds \
18797sys_lib_search_path_spec \
3cb62297
L
18798sys_lib_dlsearch_path_spec \
18799reload_cmds_CXX \
18800old_archive_cmds_CXX \
18801old_archive_from_new_cmds_CXX \
18802old_archive_from_expsyms_cmds_CXX \
18803archive_cmds_CXX \
18804archive_expsym_cmds_CXX \
18805module_cmds_CXX \
18806module_expsym_cmds_CXX \
18807export_symbols_cmds_CXX \
18808prelink_cmds_CXX; do
3725885a 18809 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18810 *[\\\\\\\`\\"\\\$]*)
3725885a 18811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18812 ;;
18813 *)
18814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18815 ;;
18816 esac
18817done
18818
d7040cdb
SE
18819ac_aux_dir='$ac_aux_dir'
18820xsi_shell='$xsi_shell'
18821lt_shell_append='$lt_shell_append'
18822
18823# See if we are running on zsh, and set the options which allow our
18824# commands through without removal of \ escapes INIT.
18825if test -n "\${ZSH_VERSION+set}" ; then
18826 setopt NO_GLOB_SUBST
18827fi
18828
18829
18830 PACKAGE='$PACKAGE'
18831 VERSION='$VERSION'
18832 TIMESTAMP='$TIMESTAMP'
18833 RM='$RM'
18834 ofile='$ofile'
18835
18836
18837
3cb62297
L
18838
18839
20e95c23
DJ
18840# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18841 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18842 # from automake.
18843 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18844 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18845 LINGUAS="${LINGUAS-%UNSET%}"
18846
42ecbf5e 18847
33589acb 18848
42ecbf5e
DJ
18849_ACEOF
18850
81ecdfbb 18851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18852
81ecdfbb 18853# Handling of arguments.
42ecbf5e 18854for ac_config_target in $ac_config_targets
252b5132 18855do
81ecdfbb
RW
18856 case $ac_config_target in
18857 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18858 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18859 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 18860 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33589acb 18861 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
18862 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18863 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18864
d0ac1c44 18865 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18866 esac
18867done
18868
81ecdfbb 18869
42ecbf5e
DJ
18870# If the user did not use the arguments to specify the items to instantiate,
18871# then the envvar interface is used. Set only those that are not.
18872# We use the long form for the default assignment because of an extremely
18873# bizarre bug on SunOS 4.1.3.
18874if $ac_need_defaults; then
18875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18877 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18878fi
18879
18880# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18881# simply because there is no reason against having it here, and in addition,
42ecbf5e 18882# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18883# Hook for its removal unless debugging.
18884# Note that there is a small window in which the directory will not be cleaned:
18885# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18886$debug ||
18887{
d0ac1c44 18888 tmp= ac_tmp=
81ecdfbb 18889 trap 'exit_status=$?
d0ac1c44
SM
18890 : "${ac_tmp:=$tmp}"
18891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
18892' 0
18893 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18894}
42ecbf5e 18895# Create a (secure) tmp directory for tmp files.
e5a52504 18896
42ecbf5e 18897{
81ecdfbb 18898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 18899 test -d "$tmp"
42ecbf5e
DJ
18900} ||
18901{
81ecdfbb
RW
18902 tmp=./conf$$-$RANDOM
18903 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
18904} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18905ac_tmp=$tmp
81ecdfbb
RW
18906
18907# Set up the scripts for CONFIG_FILES section.
18908# No need to generate them if there are no CONFIG_FILES.
18909# This happens for instance with `./config.status config.h'.
18910if test -n "$CONFIG_FILES"; then
18911
50ff67e6 18912
81ecdfbb
RW
18913ac_cr=`echo X | tr X '\015'`
18914# On cygwin, bash can eat \r inside `` if the user requested igncr.
18915# But we know of no other shell where ac_cr would be empty at this
18916# point, so we can use a bashism as a fallback.
18917if test "x$ac_cr" = x; then
18918 eval ac_cr=\$\'\\r\'
18919fi
18920ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18921if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 18922 ac_cs_awk_cr='\\r'
81ecdfbb
RW
18923else
18924 ac_cs_awk_cr=$ac_cr
18925fi
18926
d0ac1c44 18927echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
18928_ACEOF
18929
e5a52504 18930
81ecdfbb
RW
18931{
18932 echo "cat >conf$$subs.awk <<_ACEOF" &&
18933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18934 echo "_ACEOF"
18935} >conf$$subs.sh ||
d0ac1c44
SM
18936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18937ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
18938ac_delim='%!_!# '
18939for ac_last_try in false false false false false :; do
18940 . ./conf$$subs.sh ||
d0ac1c44 18941 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18942
18943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18944 if test $ac_delim_n = $ac_delim_num; then
18945 break
18946 elif $ac_last_try; then
d0ac1c44 18947 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18948 else
18949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18950 fi
18951done
18952rm -f conf$$subs.sh
18953
18954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18955cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
18956_ACEOF
18957sed -n '
18958h
18959s/^/S["/; s/!.*/"]=/
18960p
18961g
18962s/^[^!]*!//
18963:repl
18964t repl
18965s/'"$ac_delim"'$//
18966t delim
18967:nl
18968h
d0ac1c44 18969s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18970t more1
18971s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18972p
18973n
18974b repl
18975:more1
18976s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18977p
18978g
18979s/.\{148\}//
18980t nl
18981:delim
18982h
d0ac1c44 18983s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18984t more2
18985s/["\\]/\\&/g; s/^/"/; s/$/"/
18986p
18987b
18988:more2
18989s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18990p
18991g
18992s/.\{148\}//
18993t delim
18994' <conf$$subs.awk | sed '
18995/^[^""]/{
18996 N
18997 s/\n//
18998}
18999' >>$CONFIG_STATUS || ac_write_fail=1
19000rm -f conf$$subs.awk
19001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19002_ACAWK
d0ac1c44 19003cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
19004 for (key in S) S_is_set[key] = 1
19005 FS = "\a"
50ff67e6 19006
81ecdfbb
RW
19007}
19008{
19009 line = $ 0
19010 nfields = split(line, field, "@")
19011 substed = 0
19012 len = length(field[1])
19013 for (i = 2; i < nfields; i++) {
19014 key = field[i]
19015 keylen = length(key)
19016 if (S_is_set[key]) {
19017 value = S[key]
19018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19019 len += length(value) + length(field[++i])
19020 substed = 1
19021 } else
19022 len += 1 + keylen
19023 }
50ff67e6 19024
81ecdfbb
RW
19025 print line
19026}
50ff67e6 19027
81ecdfbb
RW
19028_ACAWK
19029_ACEOF
19030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19031if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19033else
19034 cat
d0ac1c44
SM
19035fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19036 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e 19037_ACEOF
d15b04bd 19038
d0ac1c44
SM
19039# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19040# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19041# trailing colons and then remove the whole line if VPATH becomes empty
19042# (actually we leave an empty line to preserve line numbers).
19043if test "x$srcdir" = x.; then
d0ac1c44
SM
19044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19045h
19046s///
19047s/^/:/
19048s/[ ]*$/:/
19049s/:\$(srcdir):/:/g
19050s/:\${srcdir}:/:/g
19051s/:@srcdir@:/:/g
19052s/^:*//
81ecdfbb 19053s/:*$//
d0ac1c44
SM
19054x
19055s/\(=[ ]*\).*/\1/
19056G
19057s/\n//
81ecdfbb
RW
19058s/^[^=]*=[ ]*$//
19059}'
19060fi
19061
19062cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19063fi # test -n "$CONFIG_FILES"
42ecbf5e 19064
81ecdfbb
RW
19065# Set up the scripts for CONFIG_HEADERS section.
19066# No need to generate them if there are no CONFIG_HEADERS.
19067# This happens for instance with `./config.status Makefile'.
19068if test -n "$CONFIG_HEADERS"; then
d0ac1c44 19069cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
19070BEGIN {
19071_ACEOF
42ecbf5e 19072
81ecdfbb
RW
19073# Transform confdefs.h into an awk script `defines.awk', embedded as
19074# here-document in config.status, that substitutes the proper values into
19075# config.h.in to produce config.h.
252b5132 19076
81ecdfbb
RW
19077# Create a delimiter string that does not exist in confdefs.h, to ease
19078# handling of long lines.
19079ac_delim='%!_!# '
19080for ac_last_try in false false :; do
d0ac1c44
SM
19081 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19082 if test -z "$ac_tt"; then
81ecdfbb
RW
19083 break
19084 elif $ac_last_try; then
d0ac1c44 19085 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
19086 else
19087 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19088 fi
19089done
19090
19091# For the awk script, D is an array of macro values keyed by name,
19092# likewise P contains macro parameters if any. Preserve backslash
19093# newline sequences.
19094
19095ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19096sed -n '
19097s/.\{148\}/&'"$ac_delim"'/g
19098t rset
19099:rset
19100s/^[ ]*#[ ]*define[ ][ ]*/ /
19101t def
19102d
19103:def
19104s/\\$//
19105t bsnl
19106s/["\\]/\\&/g
19107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19108D["\1"]=" \3"/p
19109s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19110d
19111:bsnl
19112s/["\\]/\\&/g
19113s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19114D["\1"]=" \3\\\\\\n"\\/p
19115t cont
19116s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19117t cont
19118d
19119:cont
19120n
19121s/.\{148\}/&'"$ac_delim"'/g
19122t clear
19123:clear
19124s/\\$//
19125t bsnlc
19126s/["\\]/\\&/g; s/^/"/; s/$/"/p
19127d
19128:bsnlc
19129s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19130b cont
19131' <confdefs.h | sed '
19132s/'"$ac_delim"'/"\\\
19133"/g' >>$CONFIG_STATUS || ac_write_fail=1
19134
19135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19136 for (key in D) D_is_set[key] = 1
19137 FS = "\a"
19138}
19139/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19140 line = \$ 0
19141 split(line, arg, " ")
19142 if (arg[1] == "#") {
19143 defundef = arg[2]
19144 mac1 = arg[3]
19145 } else {
19146 defundef = substr(arg[1], 2)
19147 mac1 = arg[2]
19148 }
19149 split(mac1, mac2, "(") #)
19150 macro = mac2[1]
19151 prefix = substr(line, 1, index(line, defundef) - 1)
19152 if (D_is_set[macro]) {
19153 # Preserve the white space surrounding the "#".
19154 print prefix "define", macro P[macro] D[macro]
19155 next
19156 } else {
19157 # Replace #undef with comments. This is necessary, for example,
19158 # in the case of _POSIX_SOURCE, which is predefined and required
19159 # on some systems where configure will not decide to define it.
19160 if (defundef == "undef") {
19161 print "/*", prefix defundef, macro, "*/"
19162 next
19163 }
19164 }
19165}
19166{ print }
19167_ACAWK
42ecbf5e 19168_ACEOF
81ecdfbb 19169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 19170 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 19171fi # test -n "$CONFIG_HEADERS"
42ecbf5e 19172
81ecdfbb
RW
19173
19174eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19175shift
19176for ac_tag
19177do
19178 case $ac_tag in
19179 :[FHLC]) ac_mode=$ac_tag; continue;;
19180 esac
19181 case $ac_mode$ac_tag in
19182 :[FHL]*:*);;
d0ac1c44 19183 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19184 :[FH]-) ac_tag=-:-;;
19185 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19186 esac
19187 ac_save_IFS=$IFS
19188 IFS=:
19189 set x $ac_tag
19190 IFS=$ac_save_IFS
19191 shift
19192 ac_file=$1
19193 shift
19194
19195 case $ac_mode in
19196 :L) ac_source=$1;;
19197 :[FH])
19198 ac_file_inputs=
19199 for ac_f
19200 do
19201 case $ac_f in
d0ac1c44 19202 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19203 *) # Look for the file first in the build tree, then in the source tree
19204 # (if the path is not absolute). The absolute path cannot be DOS-style,
19205 # because $ac_f cannot contain `:'.
19206 test -f "$ac_f" ||
19207 case $ac_f in
19208 [\\/$]*) false;;
19209 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19210 esac ||
d0ac1c44 19211 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19212 esac
19213 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19214 as_fn_append ac_file_inputs " '$ac_f'"
19215 done
19216
19217 # Let's still pretend it is `configure' which instantiates (i.e., don't
19218 # use $as_me), people would be surprised to read:
19219 # /* config.h. Generated by config.status. */
19220 configure_input='Generated from '`
19221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19222 `' by configure.'
19223 if test x"$ac_file" != x-; then
19224 configure_input="$ac_file. $configure_input"
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19226$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 19227 fi
81ecdfbb
RW
19228 # Neutralize special characters interpreted by sed in replacement strings.
19229 case $configure_input in #(
19230 *\&* | *\|* | *\\* )
19231 ac_sed_conf_input=`$as_echo "$configure_input" |
19232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19233 *) ac_sed_conf_input=$configure_input;;
19234 esac
252b5132 19235
81ecdfbb 19236 case $ac_tag in
d0ac1c44
SM
19237 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19238 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19239 esac
19240 ;;
252b5132
RH
19241 esac
19242
81ecdfbb 19243 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
19244$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19245 X"$ac_file" : 'X\(//\)[^/]' \| \
19246 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19248$as_echo X"$ac_file" |
19249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19250 s//\1/
19251 q
19252 }
19253 /^X\(\/\/\)[^/].*/{
19254 s//\1/
19255 q
19256 }
19257 /^X\(\/\/\)$/{
19258 s//\1/
19259 q
19260 }
19261 /^X\(\/\).*/{
19262 s//\1/
19263 q
19264 }
19265 s/.*/./; q'`
19266 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
19267 ac_builddir=.
19268
81ecdfbb
RW
19269case "$ac_dir" in
19270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19271*)
19272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19273 # A ".." for each directory in $ac_dir_suffix.
19274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19275 case $ac_top_builddir_sub in
19276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19278 esac ;;
19279esac
19280ac_abs_top_builddir=$ac_pwd
19281ac_abs_builddir=$ac_pwd$ac_dir_suffix
19282# for backward compatibility:
19283ac_top_builddir=$ac_top_build_prefix
252b5132 19284
42ecbf5e 19285case $srcdir in
81ecdfbb 19286 .) # We are building in place.
42ecbf5e 19287 ac_srcdir=.
81ecdfbb
RW
19288 ac_top_srcdir=$ac_top_builddir_sub
19289 ac_abs_top_srcdir=$ac_pwd ;;
19290 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 19291 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19292 ac_top_srcdir=$srcdir
19293 ac_abs_top_srcdir=$srcdir ;;
19294 *) # Relative name.
19295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19296 ac_top_srcdir=$ac_top_build_prefix$srcdir
19297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 19298esac
81ecdfbb 19299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 19300
252b5132 19301
81ecdfbb
RW
19302 case $ac_mode in
19303 :F)
19304 #
19305 # CONFIG_FILE
19306 #
e5a52504 19307
42ecbf5e
DJ
19308 case $INSTALL in
19309 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
19310 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19311 esac
19312 ac_MKDIR_P=$MKDIR_P
19313 case $MKDIR_P in
19314 [\\/$]* | ?:[\\/]* ) ;;
19315 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 19316 esac
81ecdfbb 19317_ACEOF
e5a52504 19318
81ecdfbb
RW
19319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19320# If the template does not know about datarootdir, expand it.
19321# FIXME: This hack should be removed a few years after 2.60.
19322ac_datarootdir_hack=; ac_datarootdir_seen=
19323ac_sed_dataroot='
19324/datarootdir/ {
19325 p
19326 q
19327}
19328/@datadir@/p
19329/@docdir@/p
19330/@infodir@/p
19331/@localedir@/p
19332/@mandir@/p'
19333case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19334*datarootdir*) ac_datarootdir_seen=yes;;
19335*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19337$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19338_ACEOF
19339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340 ac_datarootdir_hack='
19341 s&@datadir@&$datadir&g
19342 s&@docdir@&$docdir&g
19343 s&@infodir@&$infodir&g
19344 s&@localedir@&$localedir&g
19345 s&@mandir@&$mandir&g
19346 s&\\\${datarootdir}&$datarootdir&g' ;;
19347esac
42ecbf5e 19348_ACEOF
81ecdfbb
RW
19349
19350# Neutralize VPATH when `$srcdir' = `.'.
19351# Shell code in configure.ac might set extrasub.
19352# FIXME: do we really want to maintain this feature?
19353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19354ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
19355$extrasub
19356_ACEOF
81ecdfbb 19357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
19358:t
19359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19360s|@configure_input@|$ac_sed_conf_input|;t t
19361s&@top_builddir@&$ac_top_builddir_sub&;t t
19362s&@top_build_prefix@&$ac_top_build_prefix&;t t
19363s&@srcdir@&$ac_srcdir&;t t
19364s&@abs_srcdir@&$ac_abs_srcdir&;t t
19365s&@top_srcdir@&$ac_top_srcdir&;t t
19366s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19367s&@builddir@&$ac_builddir&;t t
19368s&@abs_builddir@&$ac_abs_builddir&;t t
19369s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19370s&@INSTALL@&$ac_INSTALL&;t t
19371s&@MKDIR_P@&$ac_MKDIR_P&;t t
19372$ac_datarootdir_hack
19373"
50ff67e6 19374eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
d0ac1c44 19375 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19376
19377test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19378 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19379 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19380 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19382which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19383$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19384which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19385
d0ac1c44 19386 rm -f "$ac_tmp/stdin"
42ecbf5e 19387 case $ac_file in
d0ac1c44
SM
19388 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19389 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19390 esac \
d0ac1c44 19391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19392 ;;
19393 :H)
19394 #
19395 # CONFIG_HEADER
19396 #
42ecbf5e 19397 if test x"$ac_file" != x-; then
81ecdfbb
RW
19398 {
19399 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19401 } >"$ac_tmp/config.h" \
19402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19403 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19405$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 19406 else
81ecdfbb 19407 rm -f "$ac_file"
d0ac1c44
SM
19408 mv "$ac_tmp/config.h" "$ac_file" \
19409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 19410 fi
42ecbf5e 19411 else
81ecdfbb 19412 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19413 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19414 || as_fn_error $? "could not create -" "$LINENO" 5
e5a52504 19415 fi
81ecdfbb
RW
19416# Compute "$ac_file"'s index in $config_headers.
19417_am_arg="$ac_file"
42ecbf5e
DJ
19418_am_stamp_count=1
19419for _am_header in $config_headers :; do
19420 case $_am_header in
81ecdfbb 19421 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
19422 break ;;
19423 * )
19424 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19425 esac
19426done
81ecdfbb
RW
19427echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19428$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19429 X"$_am_arg" : 'X\(//\)[^/]' \| \
19430 X"$_am_arg" : 'X\(//\)$' \| \
19431 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19432$as_echo X"$_am_arg" |
19433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19434 s//\1/
19435 q
19436 }
19437 /^X\(\/\/\)[^/].*/{
19438 s//\1/
19439 q
19440 }
19441 /^X\(\/\/\)$/{
19442 s//\1/
19443 q
19444 }
19445 /^X\(\/\).*/{
19446 s//\1/
19447 q
19448 }
19449 s/.*/./; q'`/stamp-h$_am_stamp_count
19450 ;;
42ecbf5e 19451
81ecdfbb
RW
19452 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19453$as_echo "$as_me: executing $ac_file commands" >&6;}
19454 ;;
19455 esac
42ecbf5e
DJ
19456
19457
81ecdfbb
RW
19458 case $ac_file$ac_mode in
19459 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 19460 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
19461 # are listed without --file. Let's play safe and only enable the eval
19462 # if we detect the quoting.
19463 case $CONFIG_FILES in
19464 *\'*) eval set x "$CONFIG_FILES" ;;
19465 *) set x $CONFIG_FILES ;;
19466 esac
19467 shift
19468 for mf
19469 do
19470 # Strip MF so we end up with the name of the file.
19471 mf=`echo "$mf" | sed -e 's/:.*$//'`
19472 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 19473 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
19474 # some people rename them; so instead we look at the file content.
19475 # Grep'ing the first line is not enough: some people post-process
19476 # each Makefile.in and add a new line on top of each file to say so.
19477 # Grep'ing the whole file is not good either: AIX grep has a line
19478 # limit of 2048, but all sed's we know have understand at least 4000.
19479 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19480 dirpart=`$as_dirname -- "$mf" ||
42ecbf5e
DJ
19481$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19482 X"$mf" : 'X\(//\)[^/]' \| \
19483 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
19484 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19485$as_echo X"$mf" |
19486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19487 s//\1/
19488 q
19489 }
19490 /^X\(\/\/\)[^/].*/{
19491 s//\1/
19492 q
19493 }
19494 /^X\(\/\/\)$/{
19495 s//\1/
19496 q
19497 }
19498 /^X\(\/\).*/{
19499 s//\1/
19500 q
19501 }
19502 s/.*/./; q'`
19503 else
19504 continue
19505 fi
19506 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 19507 # from the Makefile without running 'make'.
81ecdfbb
RW
19508 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19509 test -z "$DEPDIR" && continue
19510 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 19511 test -z "$am__include" && continue
81ecdfbb 19512 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
19513 # Find all dependency output files, they are included files with
19514 # $(DEPDIR) in their names. We invoke sed twice because it is the
19515 # simplest approach to changing $(DEPDIR) to its actual value in the
19516 # expansion.
19517 for file in `sed -n "
19518 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 19519 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
19520 # Make sure the directory exists.
19521 test -f "$dirpart/$file" && continue
19522 fdir=`$as_dirname -- "$file" ||
42ecbf5e
DJ
19523$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19524 X"$file" : 'X\(//\)[^/]' \| \
19525 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
19526 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19527$as_echo X"$file" |
19528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19529 s//\1/
19530 q
19531 }
19532 /^X\(\/\/\)[^/].*/{
19533 s//\1/
19534 q
19535 }
19536 /^X\(\/\/\)$/{
19537 s//\1/
19538 q
19539 }
19540 /^X\(\/\).*/{
19541 s//\1/
19542 q
19543 }
19544 s/.*/./; q'`
19545 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19546 # echo "creating $dirpart/$file"
19547 echo '# dummy' > "$dirpart/$file"
42ecbf5e 19548 done
42ecbf5e 19549 done
81ecdfbb 19550}
d7040cdb 19551 ;;
81ecdfbb 19552 "libtool":C)
d7040cdb
SE
19553
19554 # See if we are running on zsh, and set the options which allow our
19555 # commands through without removal of \ escapes.
19556 if test -n "${ZSH_VERSION+set}" ; then
19557 setopt NO_GLOB_SUBST
19558 fi
19559
19560 cfgfile="${ofile}T"
19561 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19562 $RM "$cfgfile"
19563
19564 cat <<_LT_EOF >> "$cfgfile"
19565#! $SHELL
19566
19567# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19568# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19569# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19570# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19571#
b214d478 19572# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19573# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19574# Written by Gordon Matzigkeit, 1996
d7040cdb 19575#
b214d478 19576# This file is part of GNU Libtool.
d7040cdb 19577#
b214d478
SE
19578# GNU Libtool is free software; you can redistribute it and/or
19579# modify it under the terms of the GNU General Public License as
19580# published by the Free Software Foundation; either version 2 of
19581# the License, or (at your option) any later version.
d7040cdb 19582#
b214d478
SE
19583# As a special exception to the GNU General Public License,
19584# if you distribute this file as part of a program or library that
19585# is built using GNU Libtool, you may include this file under the
19586# same distribution terms that you use for the rest of that program.
d7040cdb 19587#
b214d478
SE
19588# GNU Libtool is distributed in the hope that it will be useful,
19589# but WITHOUT ANY WARRANTY; without even the implied warranty of
19590# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19591# GNU General Public License for more details.
d7040cdb 19592#
b214d478
SE
19593# You should have received a copy of the GNU General Public License
19594# along with GNU Libtool; see the file COPYING. If not, a copy
19595# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19596# obtained by writing to the Free Software Foundation, Inc.,
19597# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19598
19599
19600# The names of the tagged configurations supported by this script.
3cb62297 19601available_tags="CXX "
d7040cdb
SE
19602
19603# ### BEGIN LIBTOOL CONFIG
19604
19605# Which release of libtool.m4 was used?
19606macro_version=$macro_version
19607macro_revision=$macro_revision
19608
19609# Whether or not to build shared libraries.
19610build_libtool_libs=$enable_shared
19611
19612# Whether or not to build static libraries.
19613build_old_libs=$enable_static
19614
19615# What type of objects to build.
19616pic_mode=$pic_mode
19617
19618# Whether or not to optimize for fast installation.
19619fast_install=$enable_fast_install
19620
3725885a
RW
19621# Shell to use when invoking shell scripts.
19622SHELL=$lt_SHELL
19623
19624# An echo program that protects backslashes.
19625ECHO=$lt_ECHO
19626
d7040cdb
SE
19627# The host system.
19628host_alias=$host_alias
19629host=$host
19630host_os=$host_os
19631
19632# The build system.
19633build_alias=$build_alias
19634build=$build
19635build_os=$build_os
19636
19637# A sed program that does not truncate output.
19638SED=$lt_SED
19639
19640# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19641Xsed="\$SED -e 1s/^X//"
19642
19643# A grep program that handles long lines.
19644GREP=$lt_GREP
19645
19646# An ERE matcher.
19647EGREP=$lt_EGREP
19648
19649# A literal string matcher.
19650FGREP=$lt_FGREP
19651
19652# A BSD- or MS-compatible name lister.
19653NM=$lt_NM
19654
19655# Whether we need soft or hard links.
19656LN_S=$lt_LN_S
19657
19658# What is the maximum length of a command?
19659max_cmd_len=$max_cmd_len
19660
19661# Object file suffix (normally "o").
19662objext=$ac_objext
19663
19664# Executable file suffix (normally "").
19665exeext=$exeext
19666
19667# whether the shell understands "unset".
19668lt_unset=$lt_unset
19669
19670# turn spaces into newlines.
19671SP2NL=$lt_lt_SP2NL
19672
19673# turn newlines into spaces.
19674NL2SP=$lt_lt_NL2SP
19675
b214d478
SE
19676# An object symbol dumper.
19677OBJDUMP=$lt_OBJDUMP
19678
d7040cdb
SE
19679# Method to check whether dependent libraries are shared objects.
19680deplibs_check_method=$lt_deplibs_check_method
19681
19682# Command to use when deplibs_check_method == "file_magic".
19683file_magic_cmd=$lt_file_magic_cmd
19684
19685# The archiver.
19686AR=$lt_AR
19687AR_FLAGS=$lt_AR_FLAGS
19688
19689# A symbol stripping program.
19690STRIP=$lt_STRIP
19691
19692# Commands used to install an old-style archive.
19693RANLIB=$lt_RANLIB
19694old_postinstall_cmds=$lt_old_postinstall_cmds
19695old_postuninstall_cmds=$lt_old_postuninstall_cmds
19696
3725885a
RW
19697# Whether to use a lock for old archive extraction.
19698lock_old_archive_extraction=$lock_old_archive_extraction
19699
d7040cdb
SE
19700# A C compiler.
19701LTCC=$lt_CC
19702
19703# LTCC compiler flags.
19704LTCFLAGS=$lt_CFLAGS
19705
19706# Take the output of nm and produce a listing of raw symbols and C names.
19707global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19708
19709# Transform the output of nm in a proper C declaration.
19710global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19711
19712# Transform the output of nm in a C name address pair.
19713global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19714
b214d478
SE
19715# Transform the output of nm in a C name address pair when lib prefix is needed.
19716global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19717
d7040cdb
SE
19718# The name of the directory that contains temporary libtool files.
19719objdir=$objdir
19720
d7040cdb
SE
19721# Used to examine libraries when file_magic_cmd begins with "file".
19722MAGIC_CMD=$MAGIC_CMD
19723
19724# Must we lock files when doing compilation?
19725need_locks=$lt_need_locks
19726
b214d478
SE
19727# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19728DSYMUTIL=$lt_DSYMUTIL
19729
19730# Tool to change global to local symbols on Mac OS X.
19731NMEDIT=$lt_NMEDIT
19732
19733# Tool to manipulate fat objects and archives on Mac OS X.
19734LIPO=$lt_LIPO
19735
19736# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19737OTOOL=$lt_OTOOL
19738
19739# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19740OTOOL64=$lt_OTOOL64
19741
d7040cdb
SE
19742# Old archive suffix (normally "a").
19743libext=$libext
19744
19745# Shared library suffix (normally ".so").
19746shrext_cmds=$lt_shrext_cmds
19747
19748# The commands to extract the exported symbol list from a shared archive.
19749extract_expsyms_cmds=$lt_extract_expsyms_cmds
19750
19751# Variables whose values should be saved in libtool wrapper scripts and
19752# restored at link time.
19753variables_saved_for_relink=$lt_variables_saved_for_relink
19754
19755# Do we need the "lib" prefix for modules?
19756need_lib_prefix=$need_lib_prefix
19757
19758# Do we need a version for libraries?
19759need_version=$need_version
19760
19761# Library versioning type.
19762version_type=$version_type
19763
19764# Shared library runtime path variable.
19765runpath_var=$runpath_var
19766
19767# Shared library path variable.
19768shlibpath_var=$shlibpath_var
19769
19770# Is shlibpath searched before the hard-coded library search path?
19771shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19772
19773# Format of library name prefix.
19774libname_spec=$lt_libname_spec
19775
19776# List of archive names. First name is the real one, the rest are links.
19777# The last name is the one that the linker finds with -lNAME
19778library_names_spec=$lt_library_names_spec
19779
19780# The coded name of the library, if different from the real name.
19781soname_spec=$lt_soname_spec
19782
3725885a
RW
19783# Permission mode override for installation of shared libraries.
19784install_override_mode=$lt_install_override_mode
19785
d7040cdb
SE
19786# Command to use after installation of a shared archive.
19787postinstall_cmds=$lt_postinstall_cmds
19788
19789# Command to use after uninstallation of a shared archive.
19790postuninstall_cmds=$lt_postuninstall_cmds
19791
19792# Commands used to finish a libtool library installation in a directory.
19793finish_cmds=$lt_finish_cmds
19794
19795# As "finish_cmds", except a single script fragment to be evaled but
19796# not shown.
19797finish_eval=$lt_finish_eval
19798
19799# Whether we should hardcode library paths into libraries.
19800hardcode_into_libs=$hardcode_into_libs
19801
19802# Compile-time system search path for libraries.
19803sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19804
19805# Run-time system search path for libraries.
19806sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19807
19808# Whether dlopen is supported.
19809dlopen_support=$enable_dlopen
19810
19811# Whether dlopen of programs is supported.
19812dlopen_self=$enable_dlopen_self
19813
19814# Whether dlopen of statically linked programs is supported.
19815dlopen_self_static=$enable_dlopen_self_static
19816
19817# Commands to strip libraries.
19818old_striplib=$lt_old_striplib
19819striplib=$lt_striplib
19820
19821
19822# The linker used to build libraries.
19823LD=$lt_LD
19824
3725885a
RW
19825# How to create reloadable object files.
19826reload_flag=$lt_reload_flag
19827reload_cmds=$lt_reload_cmds
19828
d7040cdb
SE
19829# Commands used to build an old-style archive.
19830old_archive_cmds=$lt_old_archive_cmds
19831
19832# A language specific compiler.
19833CC=$lt_compiler
19834
19835# Is the compiler the GNU compiler?
19836with_gcc=$GCC
19837
19838# Compiler flag to turn off builtin functions.
19839no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19840
19841# How to pass a linker flag through the compiler.
19842wl=$lt_lt_prog_compiler_wl
19843
19844# Additional compiler flags for building library objects.
19845pic_flag=$lt_lt_prog_compiler_pic
19846
19847# Compiler flag to prevent dynamic linking.
19848link_static_flag=$lt_lt_prog_compiler_static
19849
19850# Does compiler simultaneously support -c and -o options?
19851compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19852
19853# Whether or not to add -lc for building shared libraries.
19854build_libtool_need_lc=$archive_cmds_need_lc
19855
19856# Whether or not to disallow shared libs when runtime libs are static.
19857allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19858
19859# Compiler flag to allow reflexive dlopens.
19860export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19861
19862# Compiler flag to generate shared objects directly from archives.
19863whole_archive_flag_spec=$lt_whole_archive_flag_spec
19864
19865# Whether the compiler copes with passing no objects directly.
19866compiler_needs_object=$lt_compiler_needs_object
19867
19868# Create an old-style archive from a shared archive.
19869old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19870
19871# Create a temporary old-style archive to link instead of a shared archive.
19872old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19873
19874# Commands used to build a shared archive.
19875archive_cmds=$lt_archive_cmds
19876archive_expsym_cmds=$lt_archive_expsym_cmds
19877
19878# Commands used to build a loadable module if different from building
19879# a shared archive.
19880module_cmds=$lt_module_cmds
19881module_expsym_cmds=$lt_module_expsym_cmds
19882
19883# Whether we are building with GNU ld or not.
19884with_gnu_ld=$lt_with_gnu_ld
19885
19886# Flag that allows shared libraries with undefined symbols to be built.
19887allow_undefined_flag=$lt_allow_undefined_flag
19888
19889# Flag that enforces no undefined symbols.
19890no_undefined_flag=$lt_no_undefined_flag
19891
19892# Flag to hardcode \$libdir into a binary during linking.
19893# This must work even if \$libdir does not exist
19894hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19895
19896# If ld is used when linking, flag to hardcode \$libdir into a binary
19897# during linking. This must work even if \$libdir does not exist.
19898hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19899
19900# Whether we need a single "-rpath" flag with a separated argument.
19901hardcode_libdir_separator=$lt_hardcode_libdir_separator
19902
19903# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19904# DIR into the resulting binary.
19905hardcode_direct=$hardcode_direct
19906
19907# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19908# DIR into the resulting binary and the resulting library dependency is
19909# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19910# library is relocated.
19911hardcode_direct_absolute=$hardcode_direct_absolute
19912
19913# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19914# into the resulting binary.
19915hardcode_minus_L=$hardcode_minus_L
19916
19917# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19918# into the resulting binary.
19919hardcode_shlibpath_var=$hardcode_shlibpath_var
19920
19921# Set to "yes" if building a shared library automatically hardcodes DIR
19922# into the library and all subsequent libraries and executables linked
19923# against it.
19924hardcode_automatic=$hardcode_automatic
19925
19926# Set to yes if linker adds runtime paths of dependent libraries
19927# to runtime path list.
19928inherit_rpath=$inherit_rpath
19929
19930# Whether libtool must link a program against all its dependency libraries.
19931link_all_deplibs=$link_all_deplibs
19932
19933# Fix the shell variable \$srcfile for the compiler.
19934fix_srcfile_path=$lt_fix_srcfile_path
19935
19936# Set to "yes" if exported symbols are required.
19937always_export_symbols=$always_export_symbols
19938
19939# The commands to list exported symbols.
19940export_symbols_cmds=$lt_export_symbols_cmds
19941
19942# Symbols that should not be listed in the preloaded symbols.
19943exclude_expsyms=$lt_exclude_expsyms
19944
19945# Symbols that must always be exported.
19946include_expsyms=$lt_include_expsyms
19947
19948# Commands necessary for linking programs (against libraries) with templates.
19949prelink_cmds=$lt_prelink_cmds
19950
19951# Specify filename containing input files.
19952file_list_spec=$lt_file_list_spec
19953
19954# How to hardcode a shared library path into an executable.
19955hardcode_action=$hardcode_action
19956
3cb62297
L
19957# The directories searched by this compiler when creating a shared library.
19958compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19959
19960# Dependencies to place before and after the objects being linked to
19961# create a shared library.
19962predep_objects=$lt_predep_objects
19963postdep_objects=$lt_postdep_objects
19964predeps=$lt_predeps
19965postdeps=$lt_postdeps
19966
19967# The library search path used internally by the compiler when linking
19968# a shared library.
19969compiler_lib_search_path=$lt_compiler_lib_search_path
19970
d7040cdb
SE
19971# ### END LIBTOOL CONFIG
19972
19973_LT_EOF
19974
19975 case $host_os in
19976 aix3*)
19977 cat <<\_LT_EOF >> "$cfgfile"
19978# AIX sometimes has problems with the GCC collect2 program. For some
19979# reason, if we set the COLLECT_NAMES environment variable, the problems
19980# vanish in a puff of smoke.
19981if test "X${COLLECT_NAMES+set}" != Xset; then
19982 COLLECT_NAMES=
19983 export COLLECT_NAMES
19984fi
19985_LT_EOF
19986 ;;
19987 esac
19988
19989
19990ltmain="$ac_aux_dir/ltmain.sh"
19991
19992
19993 # We use sed instead of cat because bash on DJGPP gets confused if
19994 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19995 # text mode, it properly converts lines to CR/LF. This bash problem
19996 # is reportedly fixed, but why not run on old versions too?
19997 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19998 || (rm -f "$cfgfile"; exit 1)
19999
20000 case $xsi_shell in
20001 yes)
20002 cat << \_LT_EOF >> "$cfgfile"
b214d478 20003
d7040cdb
SE
20004# func_dirname file append nondir_replacement
20005# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20006# otherwise set result to NONDIR_REPLACEMENT.
20007func_dirname ()
20008{
20009 case ${1} in
20010 */*) func_dirname_result="${1%/*}${2}" ;;
20011 * ) func_dirname_result="${3}" ;;
20012 esac
20013}
20014
20015# func_basename file
20016func_basename ()
20017{
20018 func_basename_result="${1##*/}"
20019}
20020
b214d478
SE
20021# func_dirname_and_basename file append nondir_replacement
20022# perform func_basename and func_dirname in a single function
20023# call:
20024# dirname: Compute the dirname of FILE. If nonempty,
20025# add APPEND to the result, otherwise set result
20026# to NONDIR_REPLACEMENT.
20027# value returned in "$func_dirname_result"
20028# basename: Compute filename of FILE.
20029# value retuned in "$func_basename_result"
20030# Implementation must be kept synchronized with func_dirname
20031# and func_basename. For efficiency, we do not delegate to
20032# those functions but instead duplicate the functionality here.
20033func_dirname_and_basename ()
20034{
20035 case ${1} in
20036 */*) func_dirname_result="${1%/*}${2}" ;;
20037 * ) func_dirname_result="${3}" ;;
20038 esac
20039 func_basename_result="${1##*/}"
20040}
20041
d7040cdb
SE
20042# func_stripname prefix suffix name
20043# strip PREFIX and SUFFIX off of NAME.
20044# PREFIX and SUFFIX must not contain globbing or regex special
20045# characters, hashes, percent signs, but SUFFIX may contain a leading
20046# dot (in which case that matches only a dot).
20047func_stripname ()
20048{
20049 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20050 # positional parameters, so assign one to ordinary parameter first.
20051 func_stripname_result=${3}
20052 func_stripname_result=${func_stripname_result#"${1}"}
20053 func_stripname_result=${func_stripname_result%"${2}"}
20054}
20055
20056# func_opt_split
20057func_opt_split ()
20058{
20059 func_opt_split_opt=${1%%=*}
20060 func_opt_split_arg=${1#*=}
20061}
20062
20063# func_lo2o object
20064func_lo2o ()
20065{
20066 case ${1} in
20067 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20068 *) func_lo2o_result=${1} ;;
20069 esac
20070}
b214d478
SE
20071
20072# func_xform libobj-or-source
20073func_xform ()
20074{
20075 func_xform_result=${1%.*}.lo
20076}
20077
20078# func_arith arithmetic-term...
20079func_arith ()
20080{
20081 func_arith_result=$(( $* ))
20082}
20083
20084# func_len string
20085# STRING may not start with a hyphen.
20086func_len ()
20087{
20088 func_len_result=${#1}
20089}
20090
d7040cdb
SE
20091_LT_EOF
20092 ;;
20093 *) # Bourne compatible functions.
20094 cat << \_LT_EOF >> "$cfgfile"
b214d478 20095
d7040cdb
SE
20096# func_dirname file append nondir_replacement
20097# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20098# otherwise set result to NONDIR_REPLACEMENT.
20099func_dirname ()
20100{
20101 # Extract subdirectory from the argument.
3725885a 20102 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
20103 if test "X$func_dirname_result" = "X${1}"; then
20104 func_dirname_result="${3}"
20105 else
20106 func_dirname_result="$func_dirname_result${2}"
20107 fi
20108}
20109
20110# func_basename file
20111func_basename ()
20112{
3725885a 20113 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
20114}
20115
b214d478 20116
d7040cdb
SE
20117# func_stripname prefix suffix name
20118# strip PREFIX and SUFFIX off of NAME.
20119# PREFIX and SUFFIX must not contain globbing or regex special
20120# characters, hashes, percent signs, but SUFFIX may contain a leading
20121# dot (in which case that matches only a dot).
20122# func_strip_suffix prefix name
20123func_stripname ()
20124{
20125 case ${2} in
3725885a
RW
20126 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20127 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
20128 esac
20129}
20130
20131# sed scripts:
20132my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20133my_sed_long_arg='1s/^-[^=]*=//'
20134
20135# func_opt_split
20136func_opt_split ()
20137{
3725885a
RW
20138 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20139 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
20140}
20141
20142# func_lo2o object
20143func_lo2o ()
20144{
3725885a 20145 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 20146}
b214d478
SE
20147
20148# func_xform libobj-or-source
20149func_xform ()
20150{
3725885a 20151 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
20152}
20153
20154# func_arith arithmetic-term...
20155func_arith ()
20156{
20157 func_arith_result=`expr "$@"`
20158}
20159
20160# func_len string
20161# STRING may not start with a hyphen.
20162func_len ()
20163{
20164 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20165}
20166
d7040cdb
SE
20167_LT_EOF
20168esac
20169
20170case $lt_shell_append in
20171 yes)
20172 cat << \_LT_EOF >> "$cfgfile"
20173
20174# func_append var value
20175# Append VALUE to the end of shell variable VAR.
20176func_append ()
20177{
20178 eval "$1+=\$2"
20179}
20180_LT_EOF
20181 ;;
20182 *)
20183 cat << \_LT_EOF >> "$cfgfile"
20184
20185# func_append var value
20186# Append VALUE to the end of shell variable VAR.
20187func_append ()
20188{
20189 eval "$1=\$$1\$2"
20190}
b214d478 20191
d7040cdb
SE
20192_LT_EOF
20193 ;;
20194 esac
20195
20196
20197 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20198 || (rm -f "$cfgfile"; exit 1)
20199
20200 mv -f "$cfgfile" "$ofile" ||
20201 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20202 chmod +x "$ofile"
20203
3cb62297
L
20204
20205 cat <<_LT_EOF >> "$ofile"
20206
20207# ### BEGIN LIBTOOL TAG CONFIG: CXX
20208
20209# The linker used to build libraries.
20210LD=$lt_LD_CXX
20211
20212# How to create reloadable object files.
20213reload_flag=$lt_reload_flag_CXX
20214reload_cmds=$lt_reload_cmds_CXX
20215
20216# Commands used to build an old-style archive.
20217old_archive_cmds=$lt_old_archive_cmds_CXX
20218
20219# A language specific compiler.
20220CC=$lt_compiler_CXX
20221
20222# Is the compiler the GNU compiler?
20223with_gcc=$GCC_CXX
20224
20225# Compiler flag to turn off builtin functions.
20226no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20227
20228# How to pass a linker flag through the compiler.
20229wl=$lt_lt_prog_compiler_wl_CXX
20230
20231# Additional compiler flags for building library objects.
20232pic_flag=$lt_lt_prog_compiler_pic_CXX
20233
20234# Compiler flag to prevent dynamic linking.
20235link_static_flag=$lt_lt_prog_compiler_static_CXX
20236
20237# Does compiler simultaneously support -c and -o options?
20238compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20239
20240# Whether or not to add -lc for building shared libraries.
20241build_libtool_need_lc=$archive_cmds_need_lc_CXX
20242
20243# Whether or not to disallow shared libs when runtime libs are static.
20244allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20245
20246# Compiler flag to allow reflexive dlopens.
20247export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20248
20249# Compiler flag to generate shared objects directly from archives.
20250whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20251
20252# Whether the compiler copes with passing no objects directly.
20253compiler_needs_object=$lt_compiler_needs_object_CXX
20254
20255# Create an old-style archive from a shared archive.
20256old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20257
20258# Create a temporary old-style archive to link instead of a shared archive.
20259old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20260
20261# Commands used to build a shared archive.
20262archive_cmds=$lt_archive_cmds_CXX
20263archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20264
20265# Commands used to build a loadable module if different from building
20266# a shared archive.
20267module_cmds=$lt_module_cmds_CXX
20268module_expsym_cmds=$lt_module_expsym_cmds_CXX
20269
20270# Whether we are building with GNU ld or not.
20271with_gnu_ld=$lt_with_gnu_ld_CXX
20272
20273# Flag that allows shared libraries with undefined symbols to be built.
20274allow_undefined_flag=$lt_allow_undefined_flag_CXX
20275
20276# Flag that enforces no undefined symbols.
20277no_undefined_flag=$lt_no_undefined_flag_CXX
20278
20279# Flag to hardcode \$libdir into a binary during linking.
20280# This must work even if \$libdir does not exist
20281hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20282
20283# If ld is used when linking, flag to hardcode \$libdir into a binary
20284# during linking. This must work even if \$libdir does not exist.
20285hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20286
20287# Whether we need a single "-rpath" flag with a separated argument.
20288hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20289
20290# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20291# DIR into the resulting binary.
20292hardcode_direct=$hardcode_direct_CXX
20293
20294# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20295# DIR into the resulting binary and the resulting library dependency is
20296# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20297# library is relocated.
20298hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20299
20300# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20301# into the resulting binary.
20302hardcode_minus_L=$hardcode_minus_L_CXX
20303
20304# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20305# into the resulting binary.
20306hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20307
20308# Set to "yes" if building a shared library automatically hardcodes DIR
20309# into the library and all subsequent libraries and executables linked
20310# against it.
20311hardcode_automatic=$hardcode_automatic_CXX
20312
20313# Set to yes if linker adds runtime paths of dependent libraries
20314# to runtime path list.
20315inherit_rpath=$inherit_rpath_CXX
20316
20317# Whether libtool must link a program against all its dependency libraries.
20318link_all_deplibs=$link_all_deplibs_CXX
20319
20320# Fix the shell variable \$srcfile for the compiler.
20321fix_srcfile_path=$lt_fix_srcfile_path_CXX
20322
20323# Set to "yes" if exported symbols are required.
20324always_export_symbols=$always_export_symbols_CXX
20325
20326# The commands to list exported symbols.
20327export_symbols_cmds=$lt_export_symbols_cmds_CXX
20328
20329# Symbols that should not be listed in the preloaded symbols.
20330exclude_expsyms=$lt_exclude_expsyms_CXX
20331
20332# Symbols that must always be exported.
20333include_expsyms=$lt_include_expsyms_CXX
20334
20335# Commands necessary for linking programs (against libraries) with templates.
20336prelink_cmds=$lt_prelink_cmds_CXX
20337
20338# Specify filename containing input files.
20339file_list_spec=$lt_file_list_spec_CXX
20340
20341# How to hardcode a shared library path into an executable.
20342hardcode_action=$hardcode_action_CXX
20343
20344# The directories searched by this compiler when creating a shared library.
20345compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20346
20347# Dependencies to place before and after the objects being linked to
20348# create a shared library.
20349predep_objects=$lt_predep_objects_CXX
20350postdep_objects=$lt_postdep_objects_CXX
20351predeps=$lt_predeps_CXX
20352postdeps=$lt_postdeps_CXX
20353
20354# The library search path used internally by the compiler when linking
20355# a shared library.
20356compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20357
20358# ### END LIBTOOL TAG CONFIG: CXX
20359_LT_EOF
20360
42ecbf5e 20361 ;;
81ecdfbb 20362 "default-1":C)
20e95c23
DJ
20363 for ac_file in $CONFIG_FILES; do
20364 # Support "outfile[:infile[:infile...]]"
20365 case "$ac_file" in
20366 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20367 esac
20368 # PO directories have a Makefile.in generated from Makefile.in.in.
20369 case "$ac_file" in */Makefile.in)
20370 # Adjust a relative srcdir.
20371 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 20372 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
20373 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20374 # In autoconf-2.13 it is called $ac_given_srcdir.
20375 # In autoconf-2.50 it is called $srcdir.
20376 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20377 case "$ac_given_srcdir" in
20378 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20379 /*) top_srcdir="$ac_given_srcdir" ;;
20380 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20381 esac
20382 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20383 rm -f "$ac_dir/POTFILES"
20384 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20385 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20386 POMAKEFILEDEPS="POTFILES.in"
20387 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20388 # on $ac_dir but don't depend on user-specified configuration
20389 # parameters.
20390 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20391 # The LINGUAS file contains the set of available languages.
20392 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 20393 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
20394 fi
20395 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20396 # Hide the ALL_LINGUAS assigment from automake.
20397 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20398 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20399 else
37a42ee9 20400 # The set of available languages was given in configure.ac.
20e95c23
DJ
20401 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20402 fi
20403 case "$ac_given_srcdir" in
20404 .) srcdirpre= ;;
20405 *) srcdirpre='$(srcdir)/' ;;
20406 esac
20407 POFILES=
20408 GMOFILES=
20409 UPDATEPOFILES=
20410 DUMMYPOFILES=
20411 for lang in $ALL_LINGUAS; do
20412 POFILES="$POFILES $srcdirpre$lang.po"
20413 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20414 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20415 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20416 done
20417 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20418 # environment variable.
20419 INST_LINGUAS=
20420 if test -n "$ALL_LINGUAS"; then
20421 for presentlang in $ALL_LINGUAS; do
20422 useit=no
20423 if test "%UNSET%" != "$LINGUAS"; then
20424 desiredlanguages="$LINGUAS"
20425 else
20426 desiredlanguages="$ALL_LINGUAS"
20427 fi
20428 for desiredlang in $desiredlanguages; do
20429 # Use the presentlang catalog if desiredlang is
20430 # a. equal to presentlang, or
20431 # b. a variant of presentlang (because in this case,
20432 # presentlang can be used as a fallback for messages
20433 # which are not translated in the desiredlang catalog).
20434 case "$desiredlang" in
20435 "$presentlang"*) useit=yes;;
20436 esac
20437 done
20438 if test $useit = yes; then
20439 INST_LINGUAS="$INST_LINGUAS $presentlang"
20440 fi
20441 done
20442 fi
20443 CATALOGS=
20444 if test -n "$INST_LINGUAS"; then
20445 for lang in $INST_LINGUAS; do
20446 CATALOGS="$CATALOGS $lang.gmo"
20447 done
20448 fi
20449 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20450 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"
20451 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20452 if test -f "$f"; then
20453 case "$f" in
20454 *.orig | *.bak | *~) ;;
20455 *) cat "$f" >> "$ac_dir/Makefile" ;;
20456 esac
20457 fi
20458 done
20459 fi
20460 ;;
20461 esac
20462 done ;;
33589acb
AM
20463 "default":C)
20464case "$srcdir" in
20465 .) srcdirpre= ;;
20466 *) srcdirpre='$(srcdir)/' ;;
20467esac
20468POFILES=
20469GMOFILES=
20470for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20471 if test $lang != dummy; then
20472 POFILES="$POFILES $srcdirpre$lang.po"
20473 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20474 fi
20475done
20476sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20477 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20478 -e "s,@POFILES@,$POFILES," \
20479 -e "s,@GMOFILES@,$GMOFILES," \
20480 po/Makefile.in > po/Makefile ;;
81ecdfbb 20481
42ecbf5e 20482 esac
81ecdfbb 20483done # for ac_tag
42ecbf5e 20484
42ecbf5e 20485
81ecdfbb 20486as_fn_exit 0
42ecbf5e 20487_ACEOF
42ecbf5e
DJ
20488ac_clean_files=$ac_clean_files_save
20489
81ecdfbb 20490test $ac_write_fail = 0 ||
d0ac1c44 20491 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20492
42ecbf5e
DJ
20493
20494# configure is writing to config.log, and then calls config.status.
20495# config.status does its own redirection, appending to config.log.
20496# Unfortunately, on DOS this fails, as config.log is still kept open
20497# by configure, so config.status won't be able to write to it; its
20498# output is simply discarded. So we exec the FD to /dev/null,
20499# effectively closing config.log, so it can be properly (re)opened and
20500# appended to by config.status. When coming back to configure, we
20501# need to make the FD available again.
20502if test "$no_create" != yes; then
20503 ac_cs_success=:
20504 ac_config_status_args=
20505 test "$silent" = yes &&
20506 ac_config_status_args="$ac_config_status_args --quiet"
20507 exec 5>/dev/null
20508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20509 exec 5>>config.log
20510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20511 # would make configure fail if this is the last instruction.
d0ac1c44 20512 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20513fi
20514if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20516$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20517fi
252b5132 20518
This page took 2.441405 seconds and 4 git commands to generate.