]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
refactor usage of compressed_debug_section_type
[thirdparty/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
631ec08c 3# Generated by GNU Autoconf 2.69 for ld 2.39.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'
631ec08c
NC
590PACKAGE_VERSION='2.39.50'
591PACKAGE_STRING='ld 2.39.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
2cac01e3
FS
649ZSTD_LIBS
650ZSTD_CFLAGS
1ff6de03
NA
651zlibinc
652zlibdir
81ecdfbb 653NATIVE_LIB_DIRS
81ecdfbb
RW
654HDEFINES
655do_compare
656GENINSRC_NEVER_FALSE
657GENINSRC_NEVER_TRUE
81ecdfbb
RW
658LEXLIB
659LEX_OUTPUT_ROOT
660LEX
661YFLAGS
662YACC
663MSGMERGE
664MSGFMT
665MKINSTALLDIRS
666CATOBJEXT
667GENCAT
668INSTOBJEXT
669DATADIRNAME
670CATALOGS
671POSUB
672GMSGFMT
673XGETTEXT
674INCINTL
675LIBINTL_DEP
676LIBINTL
677USE_NLS
6757cf57 678WARN_WRITE_STRINGS
b879806f 679NO_WERROR
c5da1932 680WARN_CFLAGS_FOR_BUILD
b879806f 681WARN_CFLAGS
9e2bb0cb
LB
682JANSSON_LIBS
683JANSSON_CFLAGS
7cdfc346 684enable_libctf
094e34f2
NA
685ENABLE_LIBCTF_FALSE
686ENABLE_LIBCTF_TRUE
c774eab1 687enable_initfini_array
b879806f
AM
688installed_linker
689install_as_default
690TARGET_SYSTEM_ROOT_DEFINE
691TARGET_SYSTEM_ROOT
692use_sysroot
1d5269c9
MF
693ENABLE_BFD_64_BIT_FALSE
694ENABLE_BFD_64_BIT_TRUE
c8693053 695LARGEFILE_CPPFLAGS
3cb62297 696CXXCPP
81ecdfbb
RW
697OTOOL64
698OTOOL
699LIPO
700NMEDIT
701DSYMUTIL
81ecdfbb
RW
702RANLIB
703AR
704OBJDUMP
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711SED
712LIBTOOL
2cac01e3
FS
713PKG_CONFIG_LIBDIR
714PKG_CONFIG_PATH
715PKG_CONFIG
b879806f 716EGREP
b879806f 717CPP
68880f31 718GREP
3cb62297
L
719am__fastdepCXX_FALSE
720am__fastdepCXX_TRUE
721CXXDEPMODE
722ac_ct_CXX
723CXXFLAGS
724CXX
81ecdfbb
RW
725am__fastdepCC_FALSE
726am__fastdepCC_TRUE
727CCDEPMODE
6eb7d830 728am__nodep
81ecdfbb
RW
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
5bbe6ec5 732am__quote
81ecdfbb
RW
733am__include
734DEPDIR
c774eab1
AM
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742MAINT
743MAINTAINER_MODE_FALSE
744MAINTAINER_MODE_TRUE
745AM_BACKSLASH
746AM_DEFAULT_VERBOSITY
747AM_DEFAULT_V
748AM_V
81ecdfbb
RW
749am__untar
750am__tar
751AMTAR
752am__leading_dot
753SET_MAKE
754AWK
755mkdir_p
756MKDIR_P
757INSTALL_STRIP_PROGRAM
758STRIP
759install_sh
760MAKEINFO
761AUTOHEADER
762AUTOMAKE
763AUTOCONF
764ACLOCAL
765VERSION
766PACKAGE
767CYGPATH_W
768am__isrc
769INSTALL_DATA
770INSTALL_SCRIPT
771INSTALL_PROGRAM
81ecdfbb
RW
772target_os
773target_vendor
774target_cpu
775target
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_URL
815PACKAGE_BUGREPORT
816PACKAGE_STRING
817PACKAGE_VERSION
818PACKAGE_TARNAME
819PACKAGE_NAME
820PATH_SEPARATOR
5bbe6ec5 821SHELL'
50ff67e6 822ac_subst_files=''
81ecdfbb
RW
823ac_user_opts='
824enable_option_checking
d0ac1c44 825enable_silent_rules
64ac50ac 826enable_maintainer_mode
c774eab1 827enable_dependency_tracking
b879806f
AM
828enable_shared
829enable_static
830with_pic
831enable_fast_install
832with_gnu_ld
833enable_libtool_lock
834enable_plugins
835enable_largefile
43e05cd4 836enable_checking
81ecdfbb
RW
837with_lib_path
838enable_targets
839enable_64_bit_bfd
840with_sysroot
4fda8867 841enable_gold
81ecdfbb 842enable_got
6c3bc0f8 843enable_compressed_debug_sections
6734f10a 844enable_new_dtags
647e4d46 845enable_relro
b32632c4 846enable_textrel_check
f6aec96d 847enable_separate_code
ba951afb
NC
848enable_warn_execstack
849enable_warn_rwx_segments
850enable_default_execstack
23ae20f5 851enable_error_handling_script
2760f24c 852enable_default_hash_style
c774eab1 853enable_initfini_array
094e34f2 854enable_libctf
9e2bb0cb 855enable_jansson
81ecdfbb
RW
856enable_werror
857enable_build_warnings
81ecdfbb 858enable_nls
1ff6de03 859with_system_zlib
2cac01e3 860with_zstd
81ecdfbb
RW
861'
862 ac_precious_vars='build_alias
863host_alias
864target_alias
865CC
866CFLAGS
867LDFLAGS
868LIBS
869CPPFLAGS
3cb62297
L
870CXX
871CXXFLAGS
872CCC
b879806f 873CPP
9e2bb0cb
LB
874PKG_CONFIG
875PKG_CONFIG_PATH
876PKG_CONFIG_LIBDIR
2cac01e3 877CXXCPP
9e2bb0cb
LB
878JANSSON_CFLAGS
879JANSSON_LIBS
81ecdfbb 880YACC
2cac01e3
FS
881YFLAGS
882ZSTD_CFLAGS
883ZSTD_LIBS'
81ecdfbb 884
252b5132
RH
885
886# Initialize some variables set by options.
42ecbf5e
DJ
887ac_init_help=
888ac_init_version=false
81ecdfbb
RW
889ac_unrecognized_opts=
890ac_unrecognized_sep=
252b5132
RH
891# The variables have the same names as the options, with
892# dashes changed to underlines.
42ecbf5e 893cache_file=/dev/null
252b5132 894exec_prefix=NONE
252b5132 895no_create=
252b5132
RH
896no_recursion=
897prefix=NONE
898program_prefix=NONE
899program_suffix=NONE
900program_transform_name=s,x,x,
901silent=
902site=
903srcdir=
252b5132
RH
904verbose=
905x_includes=NONE
906x_libraries=NONE
42ecbf5e
DJ
907
908# Installation directory options.
909# These are left unexpanded so users can "make install exec_prefix=/foo"
910# and all the variables that are supposed to be based on exec_prefix
911# by default will actually change.
912# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 913# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
914bindir='${exec_prefix}/bin'
915sbindir='${exec_prefix}/sbin'
916libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
917datarootdir='${prefix}/share'
918datadir='${datarootdir}'
252b5132
RH
919sysconfdir='${prefix}/etc'
920sharedstatedir='${prefix}/com'
921localstatedir='${prefix}/var'
252b5132
RH
922includedir='${prefix}/include'
923oldincludedir='/usr/include'
2e98a7bd 924docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
925infodir='${datarootdir}/info'
926htmldir='${docdir}'
927dvidir='${docdir}'
928pdfdir='${docdir}'
929psdir='${docdir}'
930libdir='${exec_prefix}/lib'
931localedir='${datarootdir}/locale'
932mandir='${datarootdir}/man'
252b5132 933
252b5132 934ac_prev=
81ecdfbb 935ac_dashdash=
252b5132
RH
936for ac_option
937do
252b5132
RH
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
81ecdfbb 940 eval $ac_prev=\$ac_option
252b5132
RH
941 ac_prev=
942 continue
943 fi
944
81ecdfbb 945 case $ac_option in
d0ac1c44
SM
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947 *=) ac_optarg= ;;
948 *) ac_optarg=yes ;;
81ecdfbb 949 esac
252b5132
RH
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
81ecdfbb
RW
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
252b5132
RH
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 960 bindir=$ac_optarg ;;
252b5132
RH
961
962 -build | --build | --buil | --bui | --bu)
42ecbf5e 963 ac_prev=build_alias ;;
252b5132 964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 965 build_alias=$ac_optarg ;;
252b5132
RH
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
252b5132 976
81ecdfbb 977 -datadir | --datadir | --datadi | --datad)
252b5132 978 ac_prev=datadir ;;
81ecdfbb 979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 980 datadir=$ac_optarg ;;
252b5132 981
81ecdfbb
RW
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
252b5132 989 -disable-* | --disable-*)
81ecdfbb 990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
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--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
252b5132
RH
1014
1015 -enable-* | --enable-*)
81ecdfbb 1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1017 # Reject names that are not valid shell variable names.
81ecdfbb 1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1019 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
252b5132 1028 esac
81ecdfbb 1029 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1038 exec_prefix=$ac_optarg ;;
252b5132
RH
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
42ecbf5e
DJ
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
252b5132
RH
1050
1051 -host | --host | --hos | --ho)
42ecbf5e 1052 ac_prev=host_alias ;;
252b5132 1053 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1054 host_alias=$ac_optarg ;;
252b5132 1055
81ecdfbb
RW
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
252b5132
RH
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1067 includedir=$ac_optarg ;;
252b5132
RH
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1072 infodir=$ac_optarg ;;
252b5132
RH
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1077 libdir=$ac_optarg ;;
252b5132
RH
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1084 libexecdir=$ac_optarg ;;
252b5132 1085
81ecdfbb
RW
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
252b5132 1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1092 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1096 localstatedir=$ac_optarg ;;
252b5132
RH
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1101 mandir=$ac_optarg ;;
252b5132
RH
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1108 | --no-cr | --no-c | -n)
252b5132
RH
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1122 oldincludedir=$ac_optarg ;;
252b5132
RH
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1127 prefix=$ac_optarg ;;
252b5132
RH
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1134 program_prefix=$ac_optarg ;;
252b5132
RH
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1141 program_suffix=$ac_optarg ;;
252b5132
RH
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1158 program_transform_name=$ac_optarg ;;
252b5132 1159
81ecdfbb
RW
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
252b5132
RH
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
42ecbf5e 1178 sbindir=$ac_optarg ;;
252b5132
RH
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
42ecbf5e 1189 sharedstatedir=$ac_optarg ;;
252b5132
RH
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
42ecbf5e 1194 site=$ac_optarg ;;
85fbca6a 1195
252b5132
RH
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1199 srcdir=$ac_optarg ;;
252b5132
RH
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1206 sysconfdir=$ac_optarg ;;
252b5132
RH
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1209 ac_prev=target_alias ;;
252b5132 1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1211 target_alias=$ac_optarg ;;
252b5132
RH
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
42ecbf5e
DJ
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
252b5132
RH
1218
1219 -with-* | --with-*)
81ecdfbb 1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1221 # Reject names that are not valid shell variable names.
81ecdfbb 1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1223 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
252b5132 1232 esac
81ecdfbb 1233 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1234
1235 -without-* | --without-*)
81ecdfbb 1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1237 # Reject names that are not valid shell variable names.
81ecdfbb 1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1239 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244"with_$ac_useropt"
1245"*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
252b5132
RH
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1260 x_includes=$ac_optarg ;;
252b5132
RH
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1267 x_libraries=$ac_optarg ;;
252b5132 1268
d0ac1c44
SM
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270Try \`$0 --help' for more information"
252b5132
RH
1271 ;;
1272
42ecbf5e
DJ
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1279 esac
1280 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1281 export $ac_envvar ;;
1282
252b5132 1283 *)
42ecbf5e 1284 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1288 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1289 ;;
1290
1291 esac
1292done
1293
1294if test -n "$ac_prev"; then
42ecbf5e 1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1296 as_fn_error $? "missing argument to $ac_option"
252b5132 1297fi
252b5132 1298
81ecdfbb
RW
1299if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
d0ac1c44 1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1304 esac
81ecdfbb 1305fi
252b5132 1306
81ecdfbb
RW
1307# Check all directory arguments for consistency.
1308for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
31b0378d 1311 libdir localedir mandir
252b5132 1312do
81ecdfbb
RW
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
42ecbf5e 1321 case $ac_val in
81ecdfbb
RW
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1324 esac
d0ac1c44 1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1326done
1327
42ecbf5e
DJ
1328# There might be people who depend on the old broken behavior: `$host'
1329# used to hold the argument of --host etc.
1330# FIXME: To remove some day.
1331build=$build_alias
1332host=$host_alias
1333target=$target_alias
1334
1335# FIXME: To remove some day.
1336if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
42ecbf5e
DJ
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
e5a52504 1343
42ecbf5e
DJ
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
252b5132 1348
252b5132 1349
81ecdfbb
RW
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1353 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1355 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1356
1357
252b5132
RH
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
81ecdfbb
RW
1361 # Try the directory containing this script, then the parent directory.
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
252b5132 1385 srcdir=$ac_confdir
81ecdfbb 1386 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
81ecdfbb
RW
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1395fi
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
d0ac1c44 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
252b5132 1416
42ecbf5e
DJ
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
631ec08c 1424\`configure' configures ld 2.39.50 to adapt to many kinds of systems.
252b5132 1425
42ecbf5e 1426Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1427
42ecbf5e
DJ
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1430
42ecbf5e 1431Defaults for the options are specified in brackets.
ac48eca1 1432
42ecbf5e
DJ
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
d0ac1c44 1438 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
42ecbf5e
DJ
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1446 [$ac_default_prefix]
42ecbf5e 1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1448 [PREFIX]
ac48eca1 1449
42ecbf5e
DJ
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
ac48eca1 1454
42ecbf5e 1455For better control, use the options below.
ac48eca1 1456
42ecbf5e 1457Fine tuning of the installation directories:
81ecdfbb
RW
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1472 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1477_ACEOF
ac48eca1 1478
42ecbf5e 1479 cat <<\_ACEOF
252b5132 1480
42ecbf5e
DJ
1481Program names:
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1485
42ecbf5e
DJ
1486System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 --target=TARGET configure for building compilers for TARGET [HOST]
1490_ACEOF
252b5132 1491fi
252b5132 1492
42ecbf5e 1493if test -n "$ac_init_help"; then
2e98a7bd 1494 case $ac_init_help in
631ec08c 1495 short | recursive ) echo "Configuration of ld 2.39.50:";;
2e98a7bd 1496 esac
42ecbf5e 1497 cat <<\_ACEOF
e5a52504 1498
42ecbf5e 1499Optional Features:
81ecdfbb 1500 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --enable-maintainer-mode
1506 enable make rules and dependencies not useful (and
1507 sometimes confusing) to the casual installer
c774eab1
AM
1508 --enable-dependency-tracking
1509 do not reject slow dependency extractors
1510 --disable-dependency-tracking
1511 speeds up one-time build
b879806f
AM
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1517 --enable-plugins Enable support for plugins
1518 --disable-largefile omit support for large files
43e05cd4 1519 --enable-checking enable run-time checks
ce2cded5
L
1520 --enable-targets alternative target configurations
1521 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1522 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1523 --enable-got=<type> GOT handling scheme (target, single, negative,
1524 multigot)
4894d80b
L
1525 --enable-compressed-debug-sections={all,ld,none}
1526 compress debug sections by default]
6734f10a 1527 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1528 --enable-relro enable -z relro in ELF linker by default
b32632c4
L
1529 --enable-textrel-check=[yes|no|warning|error]
1530 enable DT_TEXTREL check in ELF linker
f6aec96d 1531 --enable-separate-code enable -z separate-code in ELF linker by default
ba951afb
NC
1532 --enable-warn-execstack enable warnings when creating an executable stack
1533 --enable-warn-rwx-segments
1534 enable warnings when creating segements with RWX
1535 permissions
1536 --enable-default-execstack
1537 create an executable stack if an input file is
1538 missing a .note.GNU-stack section
23ae20f5
NC
1539 --enable-error-handling-script
1540 enable/disable support for the
1541 --error-handling-script option
2760f24c
RG
1542 --enable-default-hash-style={sysv,gnu,both}
1543 use this default hash style
c774eab1 1544 --disable-initfini-array do not use .init_array/.fini_array sections
094e34f2 1545 --enable-libctf Handle .ctf type-info sections [default=yes]
9e2bb0cb 1546 --enable-jansson enable jansson [default=no]
ce2cded5
L
1547 --enable-werror treat compile warnings as errors
1548 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1549 --disable-nls do not use Native Language Support
42ecbf5e
DJ
1550
1551Optional Packages:
1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1554 --with-pic try to use only PIC/non-PIC objects [default=use
1555 both]
1556 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1557 --with-lib-path=dir1:dir2... set default LIB_PATH
1558 --with-sysroot=DIR Search for usr/lib et al within DIR.
1ff6de03 1559 --with-system-zlib use installed libz
2cac01e3
FS
1560 --with-zstd support zstd compressed debug sections
1561 (default=auto)
42ecbf5e
DJ
1562
1563Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
81ecdfbb 1568 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1570 you have headers in a nonstandard directory <include dir>
3cb62297
L
1571 CXX C++ compiler command
1572 CXXFLAGS C++ compiler flags
b879806f 1573 CPP C preprocessor
9e2bb0cb
LB
1574 PKG_CONFIG path to pkg-config utility
1575 PKG_CONFIG_PATH
1576 directories to add to pkg-config's search path
1577 PKG_CONFIG_LIBDIR
1578 path overriding pkg-config's built-in search path
2cac01e3 1579 CXXCPP C++ preprocessor
9e2bb0cb
LB
1580 JANSSON_CFLAGS
1581 C compiler flags for JANSSON, overriding pkg-config
1582 JANSSON_LIBS
1583 linker flags for JANSSON, overriding pkg-config
d0ac1c44
SM
1584 YACC The `Yet Another Compiler Compiler' implementation to use.
1585 Defaults to the first program found out of: `bison -y', `byacc',
1586 `yacc'.
81ecdfbb
RW
1587 YFLAGS The list of arguments that will be passed by default to $YACC.
1588 This script will default YFLAGS to the empty string to avoid a
1589 default value of `-d' given by some make applications.
2cac01e3
FS
1590 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1591 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
42ecbf5e
DJ
1592
1593Use these variables to override the choices made by `configure' or to help
1594it to find libraries and programs with nonstandard names/locations.
1595
81ecdfbb 1596Report bugs to the package provider.
42ecbf5e 1597_ACEOF
81ecdfbb 1598ac_status=$?
42ecbf5e
DJ
1599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
42ecbf5e 1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
42ecbf5e
DJ
1607 ac_builddir=.
1608
81ecdfbb
RW
1609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1624
1625case $srcdir in
81ecdfbb 1626 .) # We are building in place.
42ecbf5e 1627 ac_srcdir=.
81ecdfbb
RW
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1631 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1638esac
81ecdfbb
RW
1639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1649 else
81ecdfbb
RW
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1653 done
a2d91340
AC
1654fi
1655
81ecdfbb 1656test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1657if $ac_init_version; then
1658 cat <<\_ACEOF
631ec08c 1659ld configure 2.39.50
d0ac1c44 1660generated by GNU Autoconf 2.69
a2d91340 1661
d0ac1c44 1662Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
1665_ACEOF
81ecdfbb 1666 exit
42ecbf5e 1667fi
a2d91340 1668
81ecdfbb
RW
1669## ------------------------ ##
1670## Autoconf initialization. ##
1671## ------------------------ ##
a2d91340 1672
81ecdfbb
RW
1673# ac_fn_c_try_compile LINENO
1674# --------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1703
81ecdfbb
RW
1704 ac_retval=1
1705fi
d0ac1c44
SM
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
81ecdfbb
RW
1708
1709} # ac_fn_c_try_compile
1710
b879806f
AM
1711# ac_fn_cxx_try_compile LINENO
1712# ----------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_cxx_try_compile ()
81ecdfbb
RW
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
81ecdfbb
RW
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
b879806f 1725 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1733 test $ac_status = 0; } && {
1734 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1735 test ! -s conftest.err
b879806f 1736 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
b879806f 1742 ac_retval=1
81ecdfbb 1743fi
d0ac1c44
SM
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
81ecdfbb 1746
b879806f 1747} # ac_fn_cxx_try_compile
81ecdfbb 1748
b879806f
AM
1749# ac_fn_c_try_cpp LINENO
1750# ----------------------
1751# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_cpp ()
3cb62297
L
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1755 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1756case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
b879806f 1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1770 test $ac_status = 0; } > conftest.i && {
b879806f 1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1772 test ! -s conftest.err
b879806f 1773 }; then :
3cb62297
L
1774 ac_retval=0
1775else
1776 $as_echo "$as_me: failed program was:" >&5
1777sed 's/^/| /' conftest.$ac_ext >&5
1778
b879806f 1779 ac_retval=1
3cb62297 1780fi
d0ac1c44
SM
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
3cb62297 1783
b879806f 1784} # ac_fn_c_try_cpp
3cb62297 1785
81ecdfbb
RW
1786# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1787# -------------------------------------------------------
1788# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1789# the include files in INCLUDES and setting the cache variable VAR
1790# accordingly.
1791ac_fn_c_check_header_mongrel ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1794 if eval \${$3+:} false; then :
81ecdfbb
RW
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1797if eval \${$3+:} false; then :
81ecdfbb
RW
1798 $as_echo_n "(cached) " >&6
1799fi
1800eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802$as_echo "$ac_res" >&6; }
1803else
1804 # Is the header compilable?
1805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1806$as_echo_n "checking $2 usability... " >&6; }
1807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h. */
1809$4
1810#include <$2>
1811_ACEOF
1812if ac_fn_c_try_compile "$LINENO"; then :
1813 ac_header_compiler=yes
1814else
1815 ac_header_compiler=no
1816fi
1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1819$as_echo "$ac_header_compiler" >&6; }
1820
1821# Is the header present?
1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1823$as_echo_n "checking $2 presence... " >&6; }
1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h. */
1826#include <$2>
1827_ACEOF
1828if ac_fn_c_try_cpp "$LINENO"; then :
1829 ac_header_preproc=yes
1830else
1831 ac_header_preproc=no
1832fi
d0ac1c44 1833rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1835$as_echo "$ac_header_preproc" >&6; }
1836
1837# So? What about this header?
1838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1839 yes:no: )
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1841$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 ;;
1845 no:yes:* )
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1847$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1849$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1851$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1853$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1855$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 ;;
1857esac
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1860if eval \${$3+:} false; then :
81ecdfbb
RW
1861 $as_echo_n "(cached) " >&6
1862else
1863 eval "$3=\$ac_header_compiler"
1864fi
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867$as_echo "$ac_res" >&6; }
1868fi
d0ac1c44 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1870
1871} # ac_fn_c_check_header_mongrel
1872
1873# ac_fn_c_try_run LINENO
1874# ----------------------
1875# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876# that executables *can* be run.
1877ac_fn_c_try_run ()
1878{
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_link"
1881case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884esac
1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886$as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>&5
1888 ac_status=$?
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1891 { { case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894esac
1895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896$as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_try") 2>&5
1898 ac_status=$?
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; }; }; then :
1901 ac_retval=0
1902else
1903 $as_echo "$as_me: program exited with status $ac_status" >&5
1904 $as_echo "$as_me: failed program was:" >&5
1905sed 's/^/| /' conftest.$ac_ext >&5
1906
1907 ac_retval=$ac_status
1908fi
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
81ecdfbb
RW
1912
1913} # ac_fn_c_try_run
1914
1915# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916# -------------------------------------------------------
1917# Tests whether HEADER exists and can be compiled using the include files in
1918# INCLUDES, setting the cache variable VAR accordingly.
1919ac_fn_c_check_header_compile ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1924if eval \${$3+:} false; then :
81ecdfbb
RW
1925 $as_echo_n "(cached) " >&6
1926else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928/* end confdefs.h. */
1929$4
1930#include <$2>
1931_ACEOF
1932if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934else
1935 eval "$3=no"
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
d0ac1c44 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1943
1944} # ac_fn_c_check_header_compile
1945
c774eab1
AM
1946# ac_fn_c_try_link LINENO
1947# -----------------------
1948# Try to link conftest.$ac_ext, and return whether this succeeded.
1949ac_fn_c_try_link ()
1950{
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 rm -f conftest.$ac_objext conftest$ac_exeext
1953 if { { ac_try="$ac_link"
1954case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957esac
1958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959$as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_link") 2>conftest.err
1961 ac_status=$?
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1966 fi
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && {
1969 test -z "$ac_c_werror_flag" ||
1970 test ! -s conftest.err
1971 } && test -s conftest$ac_exeext && {
1972 test "$cross_compiling" = yes ||
1973 test -x conftest$ac_exeext
1974 }; then :
1975 ac_retval=0
1976else
1977 $as_echo "$as_me: failed program was:" >&5
1978sed 's/^/| /' conftest.$ac_ext >&5
1979
1980 ac_retval=1
1981fi
1982 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1983 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1984 # interfere with the next link command; also delete a directory that is
1985 # left behind by Apple's compiler. We do this before executing the actions.
1986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1989
1990} # ac_fn_c_try_link
1991
81ecdfbb
RW
1992# ac_fn_c_check_func LINENO FUNC VAR
1993# ----------------------------------
1994# Tests whether FUNC exists, setting the cache variable VAR accordingly
1995ac_fn_c_check_func ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2000if eval \${$3+:} false; then :
81ecdfbb
RW
2001 $as_echo_n "(cached) " >&6
2002else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007#define $2 innocuous_$2
2008
2009/* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
2013
2014#ifdef __STDC__
2015# include <limits.h>
2016#else
2017# include <assert.h>
2018#endif
2019
2020#undef $2
2021
2022/* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025#ifdef __cplusplus
2026extern "C"
2027#endif
2028char $2 ();
2029/* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032#if defined __stub_$2 || defined __stub___$2
2033choke me
2034#endif
2035
2036int
2037main ()
2038{
2039return $2 ();
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046else
2047 eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
d0ac1c44 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2056
2057} # ac_fn_c_check_func
2058
3cb62297
L
2059# ac_fn_cxx_try_cpp LINENO
2060# ------------------------
2061# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2062ac_fn_cxx_try_cpp ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_cpp conftest.$ac_ext"
2066case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069esac
2070eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071$as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2073 ac_status=$?
2074 if test -s conftest.err; then
2075 grep -v '^ *+' conftest.err >conftest.er1
2076 cat conftest.er1 >&5
2077 mv -f conftest.er1 conftest.err
2078 fi
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2080 test $ac_status = 0; } > conftest.i && {
3cb62297
L
2081 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2082 test ! -s conftest.err
2083 }; then :
2084 ac_retval=0
2085else
2086 $as_echo "$as_me: failed program was:" >&5
2087sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 ac_retval=1
2090fi
d0ac1c44
SM
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 as_fn_set_status $ac_retval
3cb62297
L
2093
2094} # ac_fn_cxx_try_cpp
2095
2096# ac_fn_cxx_try_link LINENO
2097# -------------------------
2098# Try to link conftest.$ac_ext, and return whether this succeeded.
2099ac_fn_cxx_try_link ()
2100{
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 rm -f conftest.$ac_objext conftest$ac_exeext
2103 if { { ac_try="$ac_link"
2104case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107esac
2108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109$as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_link") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2116 fi
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } && {
2119 test -z "$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2121 } && test -s conftest$ac_exeext && {
2122 test "$cross_compiling" = yes ||
d0ac1c44 2123 test -x conftest$ac_exeext
3cb62297
L
2124 }; then :
2125 ac_retval=0
2126else
2127 $as_echo "$as_me: failed program was:" >&5
2128sed 's/^/| /' conftest.$ac_ext >&5
2129
2130 ac_retval=1
2131fi
2132 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2133 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2134 # interfere with the next link command; also delete a directory that is
2135 # left behind by Apple's compiler. We do this before executing the actions.
2136 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
3cb62297
L
2139
2140} # ac_fn_cxx_try_link
2141
81ecdfbb
RW
2142# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2143# --------------------------------------------
2144# Tries to find the compile-time value of EXPR in a program that includes
2145# INCLUDES, setting VAR accordingly. Returns whether the value could be
2146# computed
2147ac_fn_c_compute_int ()
2148{
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h. */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
2159test_array [0] = 0;
2160return test_array [0];
81ecdfbb
RW
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167 ac_lo=0 ac_mid=0
2168 while :; do
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h. */
2171$4
2172int
2173main ()
2174{
2175static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2176test_array [0] = 0;
2177return test_array [0];
81ecdfbb
RW
2178
2179 ;
2180 return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid; break
2185else
2186 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187 if test $ac_lo -le $ac_mid; then
2188 ac_lo= ac_hi=
2189 break
2190 fi
2191 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 done
2195else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$4
2199int
2200main ()
2201{
2202static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2203test_array [0] = 0;
2204return test_array [0];
81ecdfbb
RW
2205
2206 ;
2207 return 0;
2208}
2209_ACEOF
2210if ac_fn_c_try_compile "$LINENO"; then :
2211 ac_hi=-1 ac_mid=-1
2212 while :; do
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214/* end confdefs.h. */
2215$4
2216int
2217main ()
2218{
2219static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2220test_array [0] = 0;
2221return test_array [0];
81ecdfbb
RW
2222
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227if ac_fn_c_try_compile "$LINENO"; then :
2228 ac_lo=$ac_mid; break
2229else
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2232 ac_lo= ac_hi=
2233 break
2234 fi
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 done
2239else
2240 ac_lo= ac_hi=
2241fi
2242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243fi
2244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245# Binary search between lo and hi bounds.
2246while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250$4
2251int
2252main ()
2253{
2254static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2255test_array [0] = 0;
2256return test_array [0];
81ecdfbb
RW
2257
2258 ;
2259 return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_hi=$ac_mid
2264else
2265 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2266fi
2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268done
2269case $ac_lo in #((
2270?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2271'') ac_retval=1 ;;
2272esac
2273 else
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275/* end confdefs.h. */
2276$4
2277static long int longval () { return $2; }
2278static unsigned long int ulongval () { return $2; }
2279#include <stdio.h>
2280#include <stdlib.h>
2281int
2282main ()
2283{
2284
2285 FILE *f = fopen ("conftest.val", "w");
2286 if (! f)
2287 return 1;
2288 if (($2) < 0)
2289 {
2290 long int i = longval ();
2291 if (i != ($2))
2292 return 1;
2293 fprintf (f, "%ld", i);
2294 }
2295 else
2296 {
2297 unsigned long int i = ulongval ();
2298 if (i != ($2))
2299 return 1;
2300 fprintf (f, "%lu", i);
2301 }
2302 /* Do not output a trailing newline, as this causes \r\n confusion
2303 on some platforms. */
2304 return ferror (f) || fclose (f) != 0;
2305
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310if ac_fn_c_try_run "$LINENO"; then :
2311 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2312else
2313 ac_retval=1
2314fi
2315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2316 conftest.$ac_objext conftest.beam conftest.$ac_ext
2317rm -f conftest.val
2318
2319 fi
d0ac1c44
SM
2320 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321 as_fn_set_status $ac_retval
81ecdfbb
RW
2322
2323} # ac_fn_c_compute_int
1d5269c9
MF
2324
2325# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2326# ---------------------------------------------
2327# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2328# accordingly.
2329ac_fn_c_check_decl ()
2330{
2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332 as_decl_name=`echo $2|sed 's/ *(.*//'`
2333 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2335$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2336if eval \${$3+:} false; then :
2337 $as_echo_n "(cached) " >&6
2338else
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340/* end confdefs.h. */
2341$4
2342int
2343main ()
2344{
2345#ifndef $as_decl_name
2346#ifdef __cplusplus
2347 (void) $as_decl_use;
2348#else
2349 (void) $as_decl_name;
2350#endif
2351#endif
2352
2353 ;
2354 return 0;
2355}
2356_ACEOF
2357if ac_fn_c_try_compile "$LINENO"; then :
2358 eval "$3=yes"
2359else
2360 eval "$3=no"
2361fi
2362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363fi
2364eval ac_res=\$$3
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366$as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368
2369} # ac_fn_c_check_decl
81ecdfbb
RW
2370cat >config.log <<_ACEOF
2371This file contains any messages produced by compilers while
2372running configure, to aid debugging if configure makes a mistake.
2373
631ec08c 2374It was created by ld $as_me 2.39.50, which was
d0ac1c44 2375generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2376
2377 $ $0 $@
2378
2379_ACEOF
2380exec 5>>config.log
2381{
2382cat <<_ASUNAME
2383## --------- ##
2384## Platform. ##
2385## --------- ##
2386
2387hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2388uname -m = `(uname -m) 2>/dev/null || echo unknown`
2389uname -r = `(uname -r) 2>/dev/null || echo unknown`
2390uname -s = `(uname -s) 2>/dev/null || echo unknown`
2391uname -v = `(uname -v) 2>/dev/null || echo unknown`
2392
2393/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2394/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2395
2396/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2397/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2398/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2399/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2400/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2401/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2402/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2403
2404_ASUNAME
2405
2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407for as_dir in $PATH
2408do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2411 $as_echo "PATH: $as_dir"
2412 done
2413IFS=$as_save_IFS
252b5132 2414
42ecbf5e 2415} >&5
5d64ca4e 2416
42ecbf5e 2417cat >&5 <<_ACEOF
5d64ca4e 2418
5d64ca4e 2419
42ecbf5e
DJ
2420## ----------- ##
2421## Core tests. ##
2422## ----------- ##
5d64ca4e 2423
42ecbf5e 2424_ACEOF
2469cfa2 2425
42ecbf5e
DJ
2426
2427# Keep a trace of the command line.
2428# Strip out --no-create and --no-recursion so they do not pile up.
2429# Strip out --silent because we don't want to record it for future runs.
2430# Also quote any args containing shell meta-characters.
2431# Make two passes to allow for proper duplicate-argument suppression.
2432ac_configure_args=
2433ac_configure_args0=
2434ac_configure_args1=
42ecbf5e
DJ
2435ac_must_keep_next=false
2436for ac_pass in 1 2
2437do
2438 for ac_arg
2439 do
2440 case $ac_arg in
2441 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2443 | -silent | --silent | --silen | --sile | --sil)
2444 continue ;;
81ecdfbb
RW
2445 *\'*)
2446 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2447 esac
2448 case $ac_pass in
81ecdfbb 2449 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2450 2)
81ecdfbb 2451 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2452 if test $ac_must_keep_next = true; then
2453 ac_must_keep_next=false # Got value, back to normal.
2454 else
2455 case $ac_arg in
2456 *=* | --config-cache | -C | -disable-* | --disable-* \
2457 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2458 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2459 | -with-* | --with-* | -without-* | --without-* | --x)
2460 case "$ac_configure_args0 " in
2461 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2462 esac
2463 ;;
2464 -* ) ac_must_keep_next=true ;;
2465 esac
2466 fi
81ecdfbb 2467 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2468 ;;
2469 esac
2470 done
2471done
81ecdfbb
RW
2472{ ac_configure_args0=; unset ac_configure_args0;}
2473{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2474
2475# When interrupted or exit'd, cleanup temporary files, and complete
2476# config.log. We remove comments because anyway the quotes in there
2477# would cause problems or look ugly.
81ecdfbb
RW
2478# WARNING: Use '\'' to represent an apostrophe within the trap.
2479# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2480trap 'exit_status=$?
2481 # Save into config.log some information that might help in debugging.
2482 {
2483 echo
2484
d0ac1c44 2485 $as_echo "## ---------------- ##
42ecbf5e 2486## Cache variables. ##
d0ac1c44 2487## ---------------- ##"
42ecbf5e
DJ
2488 echo
2489 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2490(
2491 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2492 eval ac_val=\$$ac_var
2493 case $ac_val in #(
2494 *${as_nl}*)
2495 case $ac_var in #(
2496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2497$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2498 esac
2499 case $ac_var in #(
2500 _ | IFS | as_nl) ;; #(
2501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2502 *) { eval $ac_var=; unset $ac_var;} ;;
2503 esac ;;
2504 esac
2505 done
42ecbf5e 2506 (set) 2>&1 |
81ecdfbb
RW
2507 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2508 *${as_nl}ac_space=\ *)
42ecbf5e 2509 sed -n \
81ecdfbb
RW
2510 "s/'\''/'\''\\\\'\'''\''/g;
2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2512 ;; #(
42ecbf5e 2513 *)
81ecdfbb 2514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2515 ;;
81ecdfbb
RW
2516 esac |
2517 sort
2518)
42ecbf5e
DJ
2519 echo
2520
d0ac1c44 2521 $as_echo "## ----------------- ##
42ecbf5e 2522## Output variables. ##
d0ac1c44 2523## ----------------- ##"
42ecbf5e
DJ
2524 echo
2525 for ac_var in $ac_subst_vars
2526 do
81ecdfbb
RW
2527 eval ac_val=\$$ac_var
2528 case $ac_val in
2529 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 esac
2531 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2532 done | sort
2533 echo
2534
2535 if test -n "$ac_subst_files"; then
d0ac1c44 2536 $as_echo "## ------------------- ##
81ecdfbb 2537## File substitutions. ##
d0ac1c44 2538## ------------------- ##"
42ecbf5e
DJ
2539 echo
2540 for ac_var in $ac_subst_files
2541 do
81ecdfbb
RW
2542 eval ac_val=\$$ac_var
2543 case $ac_val in
2544 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2545 esac
2546 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2547 done | sort
2548 echo
2549 fi
2550
2551 if test -s confdefs.h; then
d0ac1c44 2552 $as_echo "## ----------- ##
42ecbf5e 2553## confdefs.h. ##
d0ac1c44 2554## ----------- ##"
42ecbf5e 2555 echo
81ecdfbb 2556 cat confdefs.h
42ecbf5e
DJ
2557 echo
2558 fi
2559 test "$ac_signal" != 0 &&
81ecdfbb
RW
2560 $as_echo "$as_me: caught signal $ac_signal"
2561 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2562 } >&5
81ecdfbb
RW
2563 rm -f core *.core core.conftest.* &&
2564 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2565 exit $exit_status
81ecdfbb 2566' 0
42ecbf5e 2567for ac_signal in 1 2 13 15; do
81ecdfbb 2568 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2569done
2570ac_signal=0
2571
2572# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2573rm -f -r conftest* confdefs.h
2574
2575$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2576
2577# Predefined preprocessor variables.
2578
2579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_NAME "$PACKAGE_NAME"
2581_ACEOF
2582
42ecbf5e
DJ
2583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2585_ACEOF
2586
42ecbf5e
DJ
2587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_VERSION "$PACKAGE_VERSION"
2589_ACEOF
2590
42ecbf5e
DJ
2591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_STRING "$PACKAGE_STRING"
2593_ACEOF
2594
42ecbf5e
DJ
2595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2597_ACEOF
2598
81ecdfbb
RW
2599cat >>confdefs.h <<_ACEOF
2600#define PACKAGE_URL "$PACKAGE_URL"
2601_ACEOF
2602
42ecbf5e
DJ
2603
2604# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2605# Prefer an explicitly selected file to automatically selected ones.
2606ac_site_file1=NONE
2607ac_site_file2=NONE
2608if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2609 # We do not want a PATH search for config.site.
2610 case $CONFIG_SITE in #((
2611 -*) ac_site_file1=./$CONFIG_SITE;;
2612 */*) ac_site_file1=$CONFIG_SITE;;
2613 *) ac_site_file1=./$CONFIG_SITE;;
2614 esac
81ecdfbb
RW
2615elif test "x$prefix" != xNONE; then
2616 ac_site_file1=$prefix/share/config.site
2617 ac_site_file2=$prefix/etc/config.site
2618else
2619 ac_site_file1=$ac_default_prefix/share/config.site
2620 ac_site_file2=$ac_default_prefix/etc/config.site
2621fi
2622for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2623do
2624 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2625 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2627$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2628 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2629 . "$ac_site_file" \
2630 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632as_fn_error $? "failed to load site script $ac_site_file
2633See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2634 fi
2635done
2636
2637if test -r "$cache_file"; then
d0ac1c44
SM
2638 # Some versions of bash will fail to source /dev/null (special files
2639 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2640 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2642$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2643 case $cache_file in
81ecdfbb
RW
2644 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2645 *) . "./$cache_file";;
42ecbf5e
DJ
2646 esac
2647 fi
2648else
81ecdfbb
RW
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2650$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2651 >$cache_file
2652fi
2653
d0ac1c44
SM
2654as_fn_append ac_header_list " stdlib.h"
2655as_fn_append ac_header_list " unistd.h"
2656as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2657# Check that the precious variables saved in the cache have kept the same
2658# value.
2659ac_cache_corrupted=false
81ecdfbb 2660for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2665 case $ac_old_set,$ac_new_set in
2666 set,)
81ecdfbb
RW
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2668$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2669 ac_cache_corrupted=: ;;
2670 ,set)
81ecdfbb
RW
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2672$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2686$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
81ecdfbb 2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2704 esac
2705 fi
2706done
2707if $ac_cache_corrupted; then
81ecdfbb
RW
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2713fi
81ecdfbb
RW
2714## -------------------- ##
2715## Main body of script. ##
2716## -------------------- ##
42ecbf5e
DJ
2717
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723
2724
2725
42ecbf5e 2726
da594c4a 2727
42ecbf5e
DJ
2728
2729
2730ac_aux_dir=
81ecdfbb 2731for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2732 if test -f "$ac_dir/install-sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install-sh -c"
2735 break
2736 elif test -f "$ac_dir/install.sh"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/install.sh -c"
2739 break
2740 elif test -f "$ac_dir/shtool"; then
2741 ac_aux_dir=$ac_dir
2742 ac_install_sh="$ac_aux_dir/shtool install -c"
2743 break
2744 fi
42ecbf5e
DJ
2745done
2746if test -z "$ac_aux_dir"; then
d0ac1c44 2747 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2748fi
81ecdfbb
RW
2749
2750# These three variables are undocumented and unsupported,
2751# and are intended to be withdrawn in a future Autoconf release.
2752# They can cause serious problems if a builder's source tree is in a directory
2753# whose full name contains unusual characters.
2754ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2755ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2756ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2757
42ecbf5e
DJ
2758
2759# Make sure we can run config.sub.
81ecdfbb 2760$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2762
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2765if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2766 $as_echo_n "(cached) " >&6
2767else
2768 ac_build_alias=$build_alias
2769test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771test "x$ac_build_alias" = x &&
d0ac1c44 2772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2773ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2775
2776fi
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778$as_echo "$ac_cv_build" >&6; }
2779case $ac_cv_build in
2780*-*-*) ;;
d0ac1c44 2781*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2782esac
42ecbf5e 2783build=$ac_cv_build
81ecdfbb
RW
2784ac_save_IFS=$IFS; IFS='-'
2785set x $ac_cv_build
2786shift
2787build_cpu=$1
2788build_vendor=$2
2789shift; shift
2790# Remember, the first character of IFS is used to create $*,
2791# except with old shells:
2792build_os=$*
2793IFS=$ac_save_IFS
2794case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2795
2796
81ecdfbb
RW
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2799if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2800 $as_echo_n "(cached) " >&6
2801else
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
42ecbf5e 2804else
81ecdfbb 2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2807fi
42ecbf5e
DJ
2808
2809fi
81ecdfbb
RW
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811$as_echo "$ac_cv_host" >&6; }
2812case $ac_cv_host in
2813*-*-*) ;;
d0ac1c44 2814*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2815esac
42ecbf5e 2816host=$ac_cv_host
81ecdfbb
RW
2817ac_save_IFS=$IFS; IFS='-'
2818set x $ac_cv_host
2819shift
2820host_cpu=$1
2821host_vendor=$2
2822shift; shift
2823# Remember, the first character of IFS is used to create $*,
2824# except with old shells:
2825host_os=$*
2826IFS=$ac_save_IFS
2827case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2828
2829
81ecdfbb
RW
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2831$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2832if ${ac_cv_target+:} false; then :
81ecdfbb 2833 $as_echo_n "(cached) " >&6
42ecbf5e 2834else
81ecdfbb
RW
2835 if test "x$target_alias" = x; then
2836 ac_cv_target=$ac_cv_host
2837else
2838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2840fi
42ecbf5e
DJ
2841
2842fi
81ecdfbb
RW
2843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2844$as_echo "$ac_cv_target" >&6; }
2845case $ac_cv_target in
2846*-*-*) ;;
d0ac1c44 2847*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2848esac
42ecbf5e 2849target=$ac_cv_target
81ecdfbb
RW
2850ac_save_IFS=$IFS; IFS='-'
2851set x $ac_cv_target
2852shift
2853target_cpu=$1
2854target_vendor=$2
2855shift; shift
2856# Remember, the first character of IFS is used to create $*,
2857# except with old shells:
2858target_os=$*
2859IFS=$ac_save_IFS
2860case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2861
2862
2863# The aliases save the names the user supplied, while $host etc.
2864# will get canonicalized.
2865test -n "$target_alias" &&
2866 test "$program_prefix$program_suffix$program_transform_name" = \
2867 NONENONEs,x,x, &&
2868 program_prefix=${target_alias}-
02ecc8e9 2869
d0ac1c44 2870
5bbe6ec5 2871am__api_version='1.15'
c774eab1
AM
2872
2873# Find a good install program. We prefer a C program (faster),
2874# so one script is as good as another. But avoid the broken or
2875# incompatible versions:
2876# SysV /etc/install, /usr/sbin/install
2877# SunOS /usr/etc/install
2878# IRIX /sbin/install
2879# AIX /bin/install
2880# AmigaOS /C/install, which installs bootblocks on floppy discs
2881# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2882# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2883# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2884# OS/2's system install, which has a completely different semantic
2885# ./install, which can be erroneously created by make from ./install.sh.
2886# Reject install programs that cannot install multiple files.
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2888$as_echo_n "checking for a BSD-compatible install... " >&6; }
2889if test -z "$INSTALL"; then
2890if ${ac_cv_path_install+:} false; then :
81ecdfbb 2891 $as_echo_n "(cached) " >&6
42ecbf5e 2892else
c774eab1 2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2894for as_dir in $PATH
2895do
2896 IFS=$as_save_IFS
2897 test -z "$as_dir" && as_dir=.
c774eab1
AM
2898 # Account for people who put trailing slashes in PATH elements.
2899case $as_dir/ in #((
2900 ./ | .// | /[cC]/* | \
2901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2902 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2903 /usr/ucb/* ) ;;
2904 *)
2905 # OSF1 and SCO ODT 3.0 have their own names for install.
2906 # Don't use installbsd from OSF since it installs stuff as root
2907 # by default.
2908 for ac_prog in ginstall scoinst install; do
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2911 if test $ac_prog = install &&
2912 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2913 # AIX install. It has an incompatible calling convention.
2914 :
2915 elif test $ac_prog = install &&
2916 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2917 # program-specific install script used by HP pwplus--don't use.
2918 :
2919 else
2920 rm -rf conftest.one conftest.two conftest.dir
2921 echo one > conftest.one
2922 echo two > conftest.two
2923 mkdir conftest.dir
2924 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2925 test -s conftest.one && test -s conftest.two &&
2926 test -s conftest.dir/conftest.one &&
2927 test -s conftest.dir/conftest.two
2928 then
2929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2930 break 3
2931 fi
2932 fi
2933 fi
2934 done
2935 done
2936 ;;
2937esac
2938
81ecdfbb
RW
2939 done
2940IFS=$as_save_IFS
42ecbf5e 2941
c774eab1
AM
2942rm -rf conftest.one conftest.two conftest.dir
2943
42ecbf5e 2944fi
c774eab1
AM
2945 if test "${ac_cv_path_install+set}" = set; then
2946 INSTALL=$ac_cv_path_install
2947 else
2948 # As a last resort, use the slow shell script. Don't cache a
2949 # value for INSTALL within a source directory, because that will
2950 # break other packages using the cache if that directory is
2951 # removed, or if the value is a relative name.
2952 INSTALL=$ac_install_sh
2953 fi
42ecbf5e 2954fi
c774eab1
AM
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2956$as_echo "$INSTALL" >&6; }
42ecbf5e 2957
c774eab1
AM
2958# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2959# It thinks the first close brace ends the variable substitution.
2960test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 2961
42ecbf5e 2962test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2963
2964test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2965
81ecdfbb
RW
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2967$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2968# Reject unsafe characters in $srcdir or the absolute working directory
2969# name. Accept space and tab only in the latter.
2970am_lf='
2971'
2972case `pwd` in
2973 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 2974 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
2975esac
2976case $srcdir in
2977 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 2978 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
2979esac
2980
d0ac1c44 2981# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
2982# arguments. Must try -L first in case configure is actually a
2983# symlink; some systems play weird games with the mod time of symlinks
2984# (eg FreeBSD returns the mod time of the symlink's containing
2985# directory).
2986if (
d0ac1c44
SM
2987 am_has_slept=no
2988 for am_try in 1 2; do
2989 echo "timestamp, slept: $am_has_slept" > conftest.file
2990 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2991 if test "$*" = "X"; then
2992 # -L didn't work.
2993 set X `ls -t "$srcdir/configure" conftest.file`
2994 fi
2995 if test "$*" != "X $srcdir/configure conftest.file" \
2996 && test "$*" != "X conftest.file $srcdir/configure"; then
2997
2998 # If neither matched, then we have a broken ls. This can happen
2999 # if, for instance, CONFIG_SHELL is bash and it inherits a
3000 # broken ls alias from the environment. This has actually
3001 # happened. Such a system could not be considered "sane".
3002 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3003 alias in your environment" "$LINENO" 5
3004 fi
3005 if test "$2" = conftest.file || test $am_try -eq 2; then
3006 break
3007 fi
3008 # Just in case.
3009 sleep 1
3010 am_has_slept=yes
3011 done
42ecbf5e 3012 test "$2" = conftest.file
252b5132
RH
3013 )
3014then
3015 # Ok.
3016 :
3017else
d0ac1c44 3018 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3019Check your system clock" "$LINENO" 5
252b5132 3020fi
81ecdfbb
RW
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3022$as_echo "yes" >&6; }
d0ac1c44
SM
3023# If we didn't sleep, we still need to ensure time stamps of config.status and
3024# generated files are strictly newer.
3025am_sleep_pid=
3026if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3027 ( sleep 1 ) &
3028 am_sleep_pid=$!
3029fi
3030
3031rm -f conftest.file
3032
252b5132 3033test "$program_prefix" != NONE &&
81ecdfbb 3034 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3035# Use a double $ so make ignores it.
3036test "$program_suffix" != NONE &&
81ecdfbb
RW
3037 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3038# Double any \ or $.
42ecbf5e 3039# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3040ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3041program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 3042
c774eab1
AM
3043# Expand $ac_aux_dir to an absolute path.
3044am_aux_dir=`cd "$ac_aux_dir" && pwd`
3045
81ecdfbb 3046if test x"${MISSING+set}" != xset; then
5bbe6ec5
NC
3047 case $am_aux_dir in
3048 *\ * | *\ *)
3049 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3050 *)
3051 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3052 esac
81ecdfbb 3053fi
42ecbf5e 3054# Use eval to expand $SHELL
d0ac1c44
SM
3055if eval "$MISSING --is-lightweight"; then
3056 am_missing_run="$MISSING "
42ecbf5e
DJ
3057else
3058 am_missing_run=
d0ac1c44
SM
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3060$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3061fi
3062
d0ac1c44 3063if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3064 case $am_aux_dir in
3065 *\ * | *\ *)
3066 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3067 *)
3068 install_sh="\${SHELL} $am_aux_dir/install-sh"
3069 esac
3070fi
3071
d0ac1c44
SM
3072# Installed binaries are usually stripped using 'strip' when the user
3073# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3074# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3075# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3076if test "$cross_compiling" != no; then
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3079set dummy ${ac_tool_prefix}strip; ac_word=$2
3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3082if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3083 $as_echo_n "(cached) " >&6
3084else
3085 if test -n "$STRIP"; then
3086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3095 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099done
3100 done
3101IFS=$as_save_IFS
3102
3103fi
3104fi
3105STRIP=$ac_cv_prog_STRIP
3106if test -n "$STRIP"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3108$as_echo "$STRIP" >&6; }
3109else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111$as_echo "no" >&6; }
3112fi
3113
3114
3115fi
3116if test -z "$ac_cv_prog_STRIP"; then
3117 ac_ct_STRIP=$STRIP
3118 # Extract the first word of "strip", so it can be a program name with args.
3119set dummy strip; ac_word=$2
3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3122if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3123 $as_echo_n "(cached) " >&6
3124else
3125 if test -n "$ac_ct_STRIP"; then
3126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3135 ac_cv_prog_ac_ct_STRIP="strip"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140 done
3141IFS=$as_save_IFS
3142
3143fi
3144fi
3145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3146if test -n "$ac_ct_STRIP"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3148$as_echo "$ac_ct_STRIP" >&6; }
3149else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151$as_echo "no" >&6; }
3152fi
3153
3154 if test "x$ac_ct_STRIP" = x; then
3155 STRIP=":"
3156 else
3157 case $cross_compiling:$ac_tool_warned in
3158yes:)
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161ac_tool_warned=yes ;;
3162esac
3163 STRIP=$ac_ct_STRIP
3164 fi
3165else
3166 STRIP="$ac_cv_prog_STRIP"
3167fi
3168
3169fi
3170INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3171
3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3173$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3174if test -z "$MKDIR_P"; then
d0ac1c44 3175 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3176 $as_echo_n "(cached) " >&6
3177else
3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3180do
3181 IFS=$as_save_IFS
3182 test -z "$as_dir" && as_dir=.
3183 for ac_prog in mkdir gmkdir; do
3184 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3185 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3186 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3187 'mkdir (GNU coreutils) '* | \
3188 'mkdir (coreutils) '* | \
3189 'mkdir (fileutils) '4.1*)
3190 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3191 break 3;;
3192 esac
3193 done
3194 done
42ecbf5e 3195 done
81ecdfbb
RW
3196IFS=$as_save_IFS
3197
3198fi
3199
d0ac1c44 3200 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3201 if test "${ac_cv_path_mkdir+set}" = set; then
3202 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3203 else
81ecdfbb
RW
3204 # As a last resort, use the slow shell script. Don't cache a
3205 # value for MKDIR_P within a source directory, because that will
3206 # break other packages using the cache if that directory is
3207 # removed, or if the value is a relative name.
81ecdfbb 3208 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3209 fi
3210fi
81ecdfbb
RW
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3212$as_echo "$MKDIR_P" >&6; }
3213
42ecbf5e
DJ
3214for ac_prog in gawk mawk nawk awk
3215do
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3220if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 3221 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3222else
3223 if test -n "$AWK"; then
3224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
81ecdfbb 3231 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3233 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3235 break 2
3236 fi
3237done
81ecdfbb
RW
3238 done
3239IFS=$as_save_IFS
42ecbf5e
DJ
3240
3241fi
3242fi
3243AWK=$ac_cv_prog_AWK
3244if test -n "$AWK"; then
81ecdfbb
RW
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3246$as_echo "$AWK" >&6; }
42ecbf5e 3247else
81ecdfbb
RW
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
42ecbf5e 3250fi
252b5132 3251
81ecdfbb 3252
42ecbf5e
DJ
3253 test -n "$AWK" && break
3254done
252b5132 3255
81ecdfbb
RW
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3257$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3258set x ${MAKE-make}
3259ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3260if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3261 $as_echo_n "(cached) " >&6
252b5132 3262else
42ecbf5e 3263 cat >conftest.make <<\_ACEOF
81ecdfbb 3264SHELL = /bin/sh
252b5132 3265all:
81ecdfbb 3266 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3267_ACEOF
d0ac1c44 3268# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3269case `${MAKE-make} -f conftest.make 2>/dev/null` in
3270 *@@@%%%=?*=@@@%%%*)
3271 eval ac_cv_prog_make_${ac_make}_set=yes;;
3272 *)
3273 eval ac_cv_prog_make_${ac_make}_set=no;;
3274esac
42ecbf5e 3275rm -f conftest.make
252b5132 3276fi
81ecdfbb
RW
3277if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279$as_echo "yes" >&6; }
252b5132
RH
3280 SET_MAKE=
3281else
81ecdfbb
RW
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
252b5132
RH
3284 SET_MAKE="MAKE=${MAKE-make}"
3285fi
3286
42ecbf5e
DJ
3287rm -rf .tst 2>/dev/null
3288mkdir .tst 2>/dev/null
3289if test -d .tst; then
3290 am__leading_dot=.
3291else
3292 am__leading_dot=_
3293fi
3294rmdir .tst 2>/dev/null
3295
d0ac1c44
SM
3296# Check whether --enable-silent-rules was given.
3297if test "${enable_silent_rules+set}" = set; then :
3298 enableval=$enable_silent_rules;
3299fi
3300
3301case $enable_silent_rules in # (((
3302 yes) AM_DEFAULT_VERBOSITY=0;;
3303 no) AM_DEFAULT_VERBOSITY=1;;
3304 *) AM_DEFAULT_VERBOSITY=1;;
3305esac
3306am_make=${MAKE-make}
3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3308$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3309if ${am_cv_make_support_nested_variables+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311else
3312 if $as_echo 'TRUE=$(BAR$(V))
3313BAR0=false
3314BAR1=true
3315V=1
3316am__doit:
3317 @$(TRUE)
3318.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3319 am_cv_make_support_nested_variables=yes
3320else
3321 am_cv_make_support_nested_variables=no
3322fi
3323fi
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3325$as_echo "$am_cv_make_support_nested_variables" >&6; }
3326if test $am_cv_make_support_nested_variables = yes; then
3327 AM_V='$(V)'
3328 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3329else
3330 AM_V=$AM_DEFAULT_VERBOSITY
3331 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3332fi
3333AM_BACKSLASH='\'
3334
81ecdfbb
RW
3335if test "`cd $srcdir && pwd`" != "`pwd`"; then
3336 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3337 # is not polluted with repeated "-I."
3338 am__isrc=' -I$(srcdir)'
3339 # test to see if srcdir already configured
3340 if test -f $srcdir/config.status; then
d0ac1c44 3341 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3342 fi
42ecbf5e 3343fi
252b5132 3344
42ecbf5e
DJ
3345# test whether we have cygpath
3346if test -z "$CYGPATH_W"; then
3347 if (cygpath --version) >/dev/null 2>/dev/null; then
3348 CYGPATH_W='cygpath -w'
3349 else
3350 CYGPATH_W=echo
3351 fi
252b5132 3352fi
42ecbf5e
DJ
3353
3354
3355# Define the identity of the package.
2e98a7bd 3356 PACKAGE='ld'
631ec08c 3357 VERSION='2.39.50'
42ecbf5e
DJ
3358
3359
3360cat >>confdefs.h <<_ACEOF
e5a52504 3361#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3362_ACEOF
3363
252b5132 3364
42ecbf5e 3365cat >>confdefs.h <<_ACEOF
e5a52504 3366#define VERSION "$VERSION"
42ecbf5e
DJ
3367_ACEOF
3368
3369# Some tools Automake needs.
3370
3371ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3372
3373
3374AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3375
3376
3377AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3378
3379
3380AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3381
e5a52504 3382
42ecbf5e 3383MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3384
d0ac1c44
SM
3385# For better backward compatibility. To be removed once Automake 1.9.x
3386# dies out for good. For more background, see:
5bbe6ec5
NC
3387# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3388# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
d0ac1c44
SM
3389mkdir_p='$(MKDIR_P)'
3390
3391# We need awk for the "check" target (and possibly the TAP driver). The
3392# system "awk" is bad on some platforms.
6eb7d830
AM
3393# Always define AMTAR for backward compatibility. Yes, it's still used
3394# in the wild :-( We should find a proper way to deprecate it ...
3395AMTAR='$${TAR-tar}'
42ecbf5e 3396
d0ac1c44 3397
c774eab1
AM
3398# We'll loop over all known methods to create a tar archive until one works.
3399_am_tools='gnutar pax cpio none'
3400
3401am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3402
3403
42ecbf5e 3404
2469cfa2 3405
2469cfa2 3406
e5a52504 3407
d0ac1c44
SM
3408# POSIX will say in a future version that running "rm -f" with no argument
3409# is OK; and we want to be able to make that assumption in our Makefile
3410# recipes. So use an aggressive probe to check that the usage we want is
3411# actually supported "in the wild" to an acceptable degree.
3412# See automake bug#10828.
3413# To make any issue more visible, cause the running configure to be aborted
3414# by default if the 'rm' program in use doesn't match our expectations; the
3415# user can still override this though.
3416if rm -f && rm -fr && rm -rf; then : OK; else
3417 cat >&2 <<'END'
3418Oops!
3419
3420Your 'rm' program seems unable to run without file operands specified
3421on the command line, even when the '-f' option is present. This is contrary
3422to the behaviour of most rm programs out there, and not conforming with
3423the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3424
3425Please tell bug-automake@gnu.org about your system, including the value
3426of your $PATH and any error possibly output before this message. This
3427can help us improve future automake versions.
3428
3429END
3430 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3431 echo 'Configuration will proceed anyway, since you have set the' >&2
3432 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3433 echo >&2
3434 else
3435 cat >&2 <<'END'
3436Aborting the configuration process, to ensure you take notice of the issue.
3437
3438You can download and install GNU coreutils to get an 'rm' implementation
5bbe6ec5 3439that behaves properly: <http://www.gnu.org/software/coreutils/>.
d0ac1c44
SM
3440
3441If you want to complete the configuration process using your problematic
3442'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3443to "yes", and re-run configure.
3444
3445END
3446 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3447 fi
3448fi
3449
48b5f33a
MF
3450# Check whether --enable-silent-rules was given.
3451if test "${enable_silent_rules+set}" = set; then :
3452 enableval=$enable_silent_rules;
3453fi
3454
3455case $enable_silent_rules in # (((
3456 yes) AM_DEFAULT_VERBOSITY=0;;
3457 no) AM_DEFAULT_VERBOSITY=1;;
3458 *) AM_DEFAULT_VERBOSITY=0;;
3459esac
3460am_make=${MAKE-make}
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3462$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3463if ${am_cv_make_support_nested_variables+:} false; then :
3464 $as_echo_n "(cached) " >&6
3465else
3466 if $as_echo 'TRUE=$(BAR$(V))
3467BAR0=false
3468BAR1=true
3469V=1
3470am__doit:
3471 @$(TRUE)
3472.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3473 am_cv_make_support_nested_variables=yes
3474else
3475 am_cv_make_support_nested_variables=no
3476fi
3477fi
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3479$as_echo "$am_cv_make_support_nested_variables" >&6; }
3480if test $am_cv_make_support_nested_variables = yes; then
3481 AM_V='$(V)'
3482 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3483else
3484 AM_V=$AM_DEFAULT_VERBOSITY
3485 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3486fi
3487AM_BACKSLASH='\'
3488
42ecbf5e 3489
64ac50ac
RW
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3491$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3492 # Check whether --enable-maintainer-mode was given.
3493if test "${enable_maintainer_mode+set}" = set; then :
3494 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3495else
3496 USE_MAINTAINER_MODE=no
3497fi
3498
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3500$as_echo "$USE_MAINTAINER_MODE" >&6; }
3501 if test $USE_MAINTAINER_MODE = yes; then
3502 MAINTAINER_MODE_TRUE=
3503 MAINTAINER_MODE_FALSE='#'
3504else
3505 MAINTAINER_MODE_TRUE='#'
3506 MAINTAINER_MODE_FALSE=
3507fi
3508
3509 MAINT=$MAINTAINER_MODE_TRUE
3510
3511
3512
b879806f
AM
3513ac_ext=c
3514ac_cpp='$CPP $CPPFLAGS'
3515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3520set dummy ${ac_tool_prefix}gcc; ac_word=$2
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3523if ${ac_cv_prog_CC+:} false; then :
b879806f
AM
3524 $as_echo_n "(cached) " >&6
3525else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528else
3529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530for as_dir in $PATH
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540done
3541 done
3542IFS=$as_save_IFS
d7040cdb 3543
81ecdfbb 3544fi
81ecdfbb 3545fi
b879806f
AM
3546CC=$ac_cv_prog_CC
3547if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549$as_echo "$CC" >&6; }
2469cfa2 3550else
b879806f
AM
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552$as_echo "no" >&6; }
81ecdfbb 3553fi
d7040cdb
SE
3554
3555
b879806f
AM
3556fi
3557if test -z "$ac_cv_prog_CC"; then
3558 ac_ct_CC=$CC
3559 # Extract the first word of "gcc", so it can be a program name with args.
3560set dummy gcc; ac_word=$2
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3563if ${ac_cv_prog_ac_ct_CC+:} false; then :
b879806f 3564 $as_echo_n "(cached) " >&6
e5a52504 3565else
b879806f
AM
3566 if test -n "$ac_ct_CC"; then
3567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3576 ac_cv_prog_ac_ct_CC="gcc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580done
3581 done
3582IFS=$as_save_IFS
d7040cdb 3583
81ecdfbb 3584fi
b879806f
AM
3585fi
3586ac_ct_CC=$ac_cv_prog_ac_ct_CC
3587if test -n "$ac_ct_CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3589$as_echo "$ac_ct_CC" >&6; }
4fda8867 3590else
b879806f
AM
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592$as_echo "no" >&6; }
4fda8867
NC
3593fi
3594
b879806f
AM
3595 if test "x$ac_ct_CC" = x; then
3596 CC=""
3597 else
3598 case $cross_compiling:$ac_tool_warned in
3599yes:)
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3602ac_tool_warned=yes ;;
7fb9f789 3603esac
b879806f
AM
3604 CC=$ac_ct_CC
3605 fi
7fb9f789 3606else
b879806f 3607 CC="$ac_cv_prog_CC"
81ecdfbb
RW
3608fi
3609
b879806f
AM
3610if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3613set dummy ${ac_tool_prefix}cc; ac_word=$2
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3616if ${ac_cv_prog_CC+:} false; then :
397841b5
AM
3617 $as_echo_n "(cached) " >&6
3618else
b879806f
AM
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
397841b5 3624do
b879806f
AM
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3629 ac_cv_prog_CC="${ac_tool_prefix}cc"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633done
3634 done
3635IFS=$as_save_IFS
d7040cdb 3636
ce2cded5 3637fi
ce2cded5 3638fi
b879806f
AM
3639CC=$ac_cv_prog_CC
3640if test -n "$CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3642$as_echo "$CC" >&6; }
3643else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645$as_echo "no" >&6; }
81ecdfbb
RW
3646fi
3647
d7040cdb 3648
b879806f 3649 fi
ce2cded5 3650fi
b879806f
AM
3651if test -z "$CC"; then
3652 # Extract the first word of "cc", so it can be a program name with args.
3653set dummy cc; ac_word=$2
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3656if ${ac_cv_prog_CC+:} false; then :
b879806f 3657 $as_echo_n "(cached) " >&6
397841b5 3658else
b879806f
AM
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661else
3662 ac_prog_rejected=no
3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664for as_dir in $PATH
397841b5 3665do
b879806f
AM
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3671 ac_prog_rejected=yes
3672 continue
3673 fi
3674 ac_cv_prog_CC="cc"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678done
3679 done
3680IFS=$as_save_IFS
d7040cdb 3681
b879806f
AM
3682if test $ac_prog_rejected = yes; then
3683 # We found a bogon in the path, so make sure we never use it.
3684 set dummy $ac_cv_prog_CC
3685 shift
3686 if test $# != 0; then
3687 # We chose a different compiler from the bogus one.
3688 # However, it has the same basename, so the bogon will be chosen
3689 # first if we set CC to just the basename; use the full file name.
3690 shift
3691 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 fi
397841b5 3693fi
397841b5 3694fi
b879806f
AM
3695fi
3696CC=$ac_cv_prog_CC
3697if test -n "$CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699$as_echo "$CC" >&6; }
397841b5 3700else
b879806f
AM
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702$as_echo "no" >&6; }
ce2cded5 3703fi
d7040cdb 3704
397841b5 3705
b879806f
AM
3706fi
3707if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 for ac_prog in cl.exe
3710 do
3711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3715if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3716 $as_echo_n "(cached) " >&6
d7040cdb 3717else
b879806f
AM
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3720else
3721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
d7040cdb
SE
3723do
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
81ecdfbb 3726 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 break 2
3731 fi
3732done
397841b5
AM
3733 done
3734IFS=$as_save_IFS
d7040cdb 3735
252b5132 3736fi
b879806f
AM
3737fi
3738CC=$ac_cv_prog_CC
3739if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741$as_echo "$CC" >&6; }
3742else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744$as_echo "no" >&6; }
3745fi
397841b5
AM
3746
3747
b879806f
AM
3748 test -n "$CC" && break
3749 done
3750fi
3751if test -z "$CC"; then
3752 ac_ct_CC=$CC
3753 for ac_prog in cl.exe
3754do
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756set dummy $ac_prog; ac_word=$2
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3759if ${ac_cv_prog_ac_ct_CC+:} false; then :
397841b5
AM
3760 $as_echo_n "(cached) " >&6
3761else
b879806f
AM
3762 if test -n "$ac_ct_CC"; then
3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764else
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
397841b5
AM
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
397841b5 3770 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3772 ac_cv_prog_ac_ct_CC="$ac_prog"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776done
397841b5
AM
3777 done
3778IFS=$as_save_IFS
397841b5 3779
397841b5 3780fi
397841b5 3781fi
b879806f
AM
3782ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783if test -n "$ac_ct_CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3785$as_echo "$ac_ct_CC" >&6; }
3786else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788$as_echo "no" >&6; }
397841b5
AM
3789fi
3790
397841b5 3791
b879806f
AM
3792 test -n "$ac_ct_CC" && break
3793done
397841b5 3794
b879806f
AM
3795 if test "x$ac_ct_CC" = x; then
3796 CC=""
3797 else
3798 case $cross_compiling:$ac_tool_warned in
3799yes:)
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802ac_tool_warned=yes ;;
397841b5 3803esac
b879806f
AM
3804 CC=$ac_ct_CC
3805 fi
397841b5
AM
3806fi
3807
397841b5
AM
3808fi
3809
3810
b879806f
AM
3811test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3813as_fn_error $? "no acceptable C compiler found in \$PATH
3814See \`config.log' for more details" "$LINENO" 5; }
397841b5 3815
b879806f
AM
3816# Provide some information about the compiler.
3817$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3818set X $ac_compile
3819ac_compiler=$2
3820for ac_option in --version -v -V -qversion; do
3821 { { ac_try="$ac_compiler $ac_option >&5"
3822case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827$as_echo "$ac_try_echo"; } >&5
c774eab1
AM
3828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 ac_status=$?
3830 if test -s conftest.err; then
3831 sed '10a\
3832... rest of stderr output deleted ...
3833 10q' conftest.err >conftest.er1
3834 cat conftest.er1 >&5
3835 fi
3836 rm -f conftest.er1 conftest.err
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }
3839done
3840
3841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h. */
3843
3844int
3845main ()
3846{
3847
3848 ;
3849 return 0;
3850}
3851_ACEOF
3852ac_clean_files_save=$ac_clean_files
3853ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3854# Try to create an executable without -o first, disregard a.out.
3855# It will help us diagnose broken compilers, and finding out an intuition
3856# of exeext.
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3858$as_echo_n "checking whether the C compiler works... " >&6; }
3859ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860
3861# The possible output files:
3862ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863
3864ac_rmfiles=
3865for ac_file in $ac_files
3866do
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3870 esac
3871done
3872rm -f $ac_rmfiles
3873
3874if { { ac_try="$ac_link_default"
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link_default") 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3886# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3887# in a Makefile. We should not override ac_cv_exeext if it was cached,
3888# so that the user can short-circuit this test for compilers unknown to
3889# Autoconf.
3890for ac_file in $ac_files ''
3891do
3892 test -f "$ac_file" || continue
3893 case $ac_file in
3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3895 ;;
3896 [ab].out )
3897 # We found the default executable, but exeext='' is most
3898 # certainly right.
3899 break;;
3900 *.* )
3901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3902 then :; else
3903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 fi
3905 # We set ac_cv_exeext here because the later test for it is not
3906 # safe: cross compilers may not add the suffix if given an `-o'
3907 # argument, so we may need to know it at that point already.
3908 # Even if this section looks crufty: it has the advantage of
3909 # actually working.
3910 break;;
3911 * )
3912 break;;
3913 esac
3914done
3915test "$ac_cv_exeext" = no && ac_cv_exeext=
3916
3917else
3918 ac_file=''
3919fi
3920if test -z "$ac_file"; then :
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
3923$as_echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
3926{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928as_fn_error 77 "C compiler cannot create executables
3929See \`config.log' for more details" "$LINENO" 5; }
3930else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932$as_echo "yes" >&6; }
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3935$as_echo_n "checking for C compiler default output file name... " >&6; }
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937$as_echo "$ac_file" >&6; }
3938ac_exeext=$ac_cv_exeext
3939
3940rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3941ac_clean_files=$ac_clean_files_save
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3943$as_echo_n "checking for suffix of executables... " >&6; }
3944if { { ac_try="$ac_link"
3945case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948esac
3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950$as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3952 ac_status=$?
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3956# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3957# work properly (i.e., refer to `conftest.exe'), while it won't with
3958# `rm'.
3959for ac_file in conftest.exe conftest conftest.*; do
3960 test -f "$ac_file" || continue
3961 case $ac_file in
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3963 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3964 break;;
3965 * ) break;;
3966 esac
3967done
3968else
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3972See \`config.log' for more details" "$LINENO" 5; }
3973fi
3974rm -f conftest conftest$ac_cv_exeext
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3976$as_echo "$ac_cv_exeext" >&6; }
3977
3978rm -f conftest.$ac_ext
3979EXEEXT=$ac_cv_exeext
3980ac_exeext=$EXEEXT
3981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h. */
3983#include <stdio.h>
3984int
3985main ()
3986{
3987FILE *f = fopen ("conftest.out", "w");
3988 return ferror (f) || fclose (f) != 0;
3989
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994ac_clean_files="$ac_clean_files conftest.out"
3995# Check that the compiler produces executables we can run. If not, either
3996# the compiler is broken, or we cross compile.
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3998$as_echo_n "checking whether we are cross compiling... " >&6; }
3999if test "$cross_compiling" != yes; then
4000 { { ac_try="$ac_link"
4001case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004esac
4005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006$as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4011 if { ac_try='./conftest$ac_cv_exeext'
4012 { { case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017$as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; }; then
4022 cross_compiling=no
4023 else
4024 if test "$cross_compiling" = maybe; then
4025 cross_compiling=yes
4026 else
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029as_fn_error $? "cannot run C compiled programs.
4030If you meant to cross compile, use \`--host'.
4031See \`config.log' for more details" "$LINENO" 5; }
4032 fi
4033 fi
4034fi
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4036$as_echo "$cross_compiling" >&6; }
4037
4038rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4039ac_clean_files=$ac_clean_files_save
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4041$as_echo_n "checking for suffix of object files... " >&6; }
4042if ${ac_cv_objext+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h. */
4047
4048int
4049main ()
4050{
4051
4052 ;
4053 return 0;
4054}
4055_ACEOF
4056rm -f conftest.o conftest.obj
4057if { { ac_try="$ac_compile"
4058case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063$as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compile") 2>&5
b879806f 4065 ac_status=$?
b879806f 4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c774eab1
AM
4067 test $ac_status = 0; }; then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073 break;;
4074 esac
b879806f 4075done
c774eab1
AM
4076else
4077 $as_echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
397841b5 4079
c774eab1
AM
4080{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082as_fn_error $? "cannot compute suffix of object files: cannot compile
4083See \`config.log' for more details" "$LINENO" 5; }
4084fi
4085rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086fi
4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4088$as_echo "$ac_cv_objext" >&6; }
4089OBJEXT=$ac_cv_objext
4090ac_objext=$OBJEXT
b879806f
AM
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4092$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4093if ${ac_cv_c_compiler_gnu+:} false; then :
44350750
NC
4094 $as_echo_n "(cached) " >&6
4095else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h. */
b879806f 4098
44350750
NC
4099int
4100main ()
4101{
b879806f
AM
4102#ifndef __GNUC__
4103 choke me
4104#endif
4105
4106 ;
44350750
NC
4107 return 0;
4108}
4109_ACEOF
b879806f
AM
4110if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_compiler_gnu=yes
44350750 4112else
b879806f 4113 ac_compiler_gnu=no
44350750 4114fi
b879806f
AM
4115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116ac_cv_c_compiler_gnu=$ac_compiler_gnu
4117
44350750 4118fi
b879806f
AM
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4120$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4121if test $ac_compiler_gnu = yes; then
4122 GCC=yes
4123else
4124 GCC=
4125fi
4126ac_test_CFLAGS=${CFLAGS+set}
4127ac_save_CFLAGS=$CFLAGS
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4129$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4130if ${ac_cv_prog_cc_g+:} false; then :
b879806f
AM
4131 $as_echo_n "(cached) " >&6
4132else
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 ac_cv_prog_cc_g=no
4136 CFLAGS="-g"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h. */
44350750 4139
b879806f
AM
4140int
4141main ()
4142{
44350750 4143
b879806f
AM
4144 ;
4145 return 0;
4146}
4147_ACEOF
4148if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_cv_prog_cc_g=yes
4150else
4151 CFLAGS=""
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153/* end confdefs.h. */
4154
4155int
4156main ()
4157{
44350750 4158
b879806f
AM
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163if ac_fn_c_try_compile "$LINENO"; then :
44350750 4164
b879806f
AM
4165else
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
397841b5 4170
b879806f
AM
4171int
4172main ()
4173{
397841b5 4174
b879806f
AM
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_g=yes
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183fi
4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190$as_echo "$ac_cv_prog_cc_g" >&6; }
4191if test "$ac_test_CFLAGS" = set; then
4192 CFLAGS=$ac_save_CFLAGS
4193elif test $ac_cv_prog_cc_g = yes; then
4194 if test "$GCC" = yes; then
4195 CFLAGS="-g -O2"
4196 else
4197 CFLAGS="-g"
4198 fi
4199else
4200 if test "$GCC" = yes; then
4201 CFLAGS="-O2"
4202 else
4203 CFLAGS=
4204 fi
4205fi
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4207$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4208if ${ac_cv_prog_cc_c89+:} false; then :
b879806f
AM
4209 $as_echo_n "(cached) " >&6
4210else
4211 ac_cv_prog_cc_c89=no
4212ac_save_CC=$CC
4213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h. */
4215#include <stdarg.h>
4216#include <stdio.h>
d0ac1c44 4217struct stat;
b879806f
AM
4218/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4219struct buf { int x; };
4220FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221static char *e (p, i)
4222 char **p;
4223 int i;
4224{
4225 return p[i];
4226}
4227static char *f (char * (*g) (char **, int), char **p, ...)
4228{
4229 char *s;
4230 va_list v;
4231 va_start (v,p);
4232 s = g (p, va_arg (v,int));
4233 va_end (v);
4234 return s;
4235}
df7b86aa 4236
b879806f
AM
4237/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4238 function prototypes and stuff, but not '\xHH' hex character constants.
4239 These don't provoke an error unfortunately, instead are silently treated
4240 as 'x'. The following induces an error, until -std is added to get
4241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4242 array size at least. It's necessary to write '\x00'==0 to get something
4243 that's true only with -std. */
4244int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4245
b879806f
AM
4246/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4247 inside strings and character constants. */
4248#define FOO(x) 'x'
4249int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4250
4251int test (int i, double x);
4252struct s1 {int (*f) (int a);};
4253struct s2 {int (*f) (double a);};
4254int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4255int argc;
4256char **argv;
4257int
4258main ()
4259{
4260return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4261 ;
4262 return 0;
4263}
4264_ACEOF
4265for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4266 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267do
4268 CC="$ac_save_CC $ac_arg"
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_prog_cc_c89=$ac_arg
397841b5 4271fi
b879806f
AM
4272rm -f core conftest.err conftest.$ac_objext
4273 test "x$ac_cv_prog_cc_c89" != "xno" && break
4274done
4275rm -f conftest.$ac_ext
4276CC=$ac_save_CC
4277
397841b5 4278fi
b879806f
AM
4279# AC_CACHE_VAL
4280case "x$ac_cv_prog_cc_c89" in
4281 x)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4283$as_echo "none needed" >&6; } ;;
4284 xno)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4286$as_echo "unsupported" >&6; } ;;
4287 *)
4288 CC="$CC $ac_cv_prog_cc_c89"
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4290$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4291esac
4292if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4293
b879806f 4294fi
397841b5
AM
4295
4296ac_ext=c
4297ac_cpp='$CPP $CPPFLAGS'
4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f 4301
d0ac1c44
SM
4302ac_ext=c
4303ac_cpp='$CPP $CPPFLAGS'
4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4308$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4309if ${am_cv_prog_cc_c_o+:} false; then :
4310 $as_echo_n "(cached) " >&6
4311else
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313/* end confdefs.h. */
4314
4315int
4316main ()
4317{
4318
4319 ;
4320 return 0;
4321}
4322_ACEOF
4323 # Make sure it works both with $CC and with simple cc.
4324 # Following AC_PROG_CC_C_O, we do the test twice because some
4325 # compilers refuse to overwrite an existing .o file with -o,
4326 # though they will create one.
4327 am_cv_prog_cc_c_o=yes
4328 for am_i in 1 2; do
4329 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4330 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } \
4334 && test -f conftest2.$ac_objext; then
4335 : OK
4336 else
4337 am_cv_prog_cc_c_o=no
4338 break
4339 fi
4340 done
4341 rm -f core conftest*
4342 unset am_i
4343fi
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4345$as_echo "$am_cv_prog_cc_c_o" >&6; }
4346if test "$am_cv_prog_cc_c_o" != yes; then
4347 # Losing compiler, so override with the script.
4348 # FIXME: It is wrong to rewrite CC.
4349 # But if we don't then we get into trouble of one sort or another.
4350 # A longer-term fix would be to have automake use am__CC in this case,
4351 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4352 CC="$am_aux_dir/compile $CC"
4353fi
4354ac_ext=c
4355ac_cpp='$CPP $CPPFLAGS'
4356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4358ac_compiler_gnu=$ac_cv_c_compiler_gnu
4359
c774eab1
AM
4360DEPDIR="${am__leading_dot}deps"
4361
4362ac_config_commands="$ac_config_commands depfiles"
4363
5bbe6ec5
NC
4364
4365am_make=${MAKE-make}
4366cat > confinc << 'END'
c774eab1 4367am__doit:
5bbe6ec5 4368 @echo this is the am__doit target
c774eab1
AM
4369.PHONY: am__doit
4370END
5bbe6ec5
NC
4371# If we don't find an include directive, just comment out the code.
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4373$as_echo_n "checking for style of include used by $am_make... " >&6; }
c774eab1
AM
4374am__include="#"
4375am__quote=
5bbe6ec5
NC
4376_am_result=none
4377# First try GNU make style include.
4378echo "include confinc" > confmf
4379# Ignore all kinds of additional output from 'make'.
4380case `$am_make -s -f confmf 2> /dev/null` in #(
4381*the\ am__doit\ target*)
4382 am__include=include
4383 am__quote=
4384 _am_result=GNU
4385 ;;
631ec08c 4386esac
5bbe6ec5
NC
4387# Now try BSD make style include.
4388if test "$am__include" = "#"; then
4389 echo '.include "confinc"' > confmf
4390 case `$am_make -s -f confmf 2> /dev/null` in #(
4391 *the\ am__doit\ target*)
4392 am__include=.include
4393 am__quote="\""
4394 _am_result=BSD
4395 ;;
4396 esac
4397fi
4398
4399
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4401$as_echo "$_am_result" >&6; }
4402rm -f confinc confmf
c774eab1
AM
4403
4404# Check whether --enable-dependency-tracking was given.
4405if test "${enable_dependency_tracking+set}" = set; then :
4406 enableval=$enable_dependency_tracking;
4407fi
4408
4409if test "x$enable_dependency_tracking" != xno; then
4410 am_depcomp="$ac_aux_dir/depcomp"
4411 AMDEPBACKSLASH='\'
4412 am__nodep='_no'
4413fi
4414 if test "x$enable_dependency_tracking" != xno; then
4415 AMDEP_TRUE=
4416 AMDEP_FALSE='#'
4417else
4418 AMDEP_TRUE='#'
4419 AMDEP_FALSE=
4420fi
4421
4422
4423
4424depcc="$CC" am_compiler_list=
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4427$as_echo_n "checking dependency style of $depcc... " >&6; }
4428if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4432 # We make a subdir and do the tests there. Otherwise we can end up
4433 # making bogus files that we don't know about and never remove. For
4434 # instance it was reported that on HP-UX the gcc test will end up
4435 # making a dummy file named 'D' -- because '-MD' means "put the output
4436 # in D".
4437 rm -rf conftest.dir
4438 mkdir conftest.dir
4439 # Copy depcomp to subdir because otherwise we won't find it if we're
4440 # using a relative directory.
4441 cp "$am_depcomp" conftest.dir
4442 cd conftest.dir
4443 # We will build objects and dependencies in a subdirectory because
4444 # it helps to detect inapplicable dependency modes. For instance
4445 # both Tru64's cc and ICC support -MD to output dependencies as a
4446 # side effect of compilation, but ICC will put the dependencies in
4447 # the current directory while Tru64 will put them in the object
4448 # directory.
4449 mkdir sub
4450
4451 am_cv_CC_dependencies_compiler_type=none
4452 if test "$am_compiler_list" = ""; then
4453 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4454 fi
4455 am__universal=false
4456 case " $depcc " in #(
4457 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4458 esac
4459
4460 for depmode in $am_compiler_list; do
4461 # Setup a source with many dependencies, because some compilers
4462 # like to wrap large dependency lists on column 80 (with \), and
4463 # we should not choose a depcomp mode which is confused by this.
4464 #
4465 # We need to recreate these files for each test, as the compiler may
4466 # overwrite some of them when testing with obscure command lines.
4467 # This happens at least with the AIX C compiler.
4468 : > sub/conftest.c
4469 for i in 1 2 3 4 5 6; do
4470 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4471 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4472 # Solaris 10 /bin/sh.
4473 echo '/* dummy */' > sub/conftst$i.h
4474 done
4475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4476
4477 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4478 # mode. It turns out that the SunPro C++ compiler does not properly
4479 # handle '-M -o', and we need to detect this. Also, some Intel
4480 # versions had trouble with output in subdirs.
4481 am__obj=sub/conftest.${OBJEXT-o}
4482 am__minus_obj="-o $am__obj"
4483 case $depmode in
4484 gcc)
4485 # This depmode causes a compiler race in universal mode.
4486 test "$am__universal" = false || continue
4487 ;;
4488 nosideeffect)
4489 # After this tag, mechanisms are not by side-effect, so they'll
4490 # only be used when explicitly requested.
4491 if test "x$enable_dependency_tracking" = xyes; then
4492 continue
4493 else
4494 break
4495 fi
4496 ;;
4497 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4498 # This compiler won't grok '-c -o', but also, the minuso test has
4499 # not run yet. These depmodes are late enough in the game, and
4500 # so weak that their functioning should not be impacted.
4501 am__obj=conftest.${OBJEXT-o}
4502 am__minus_obj=
4503 ;;
4504 none) break ;;
4505 esac
4506 if depmode=$depmode \
4507 source=sub/conftest.c object=$am__obj \
4508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4509 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4510 >/dev/null 2>conftest.err &&
4511 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4512 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4513 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4514 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4515 # icc doesn't choke on unknown options, it will just issue warnings
4516 # or remarks (even with -Werror). So we grep stderr for any message
4517 # that says an option was ignored or not supported.
4518 # When given -MP, icc 7.0 and 7.1 complain thusly:
4519 # icc: Command line warning: ignoring option '-M'; no argument required
4520 # The diagnosis changed in icc 8.0:
4521 # icc: Command line remark: option '-MP' not supported
4522 if (grep 'ignoring option' conftest.err ||
4523 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4524 am_cv_CC_dependencies_compiler_type=$depmode
4525 break
4526 fi
4527 fi
4528 done
4529
4530 cd ..
4531 rm -rf conftest.dir
4532else
4533 am_cv_CC_dependencies_compiler_type=none
4534fi
4535
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4538$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4539CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4540
4541 if
4542 test "x$enable_dependency_tracking" != xno \
4543 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4544 am__fastdepCC_TRUE=
4545 am__fastdepCC_FALSE='#'
4546else
4547 am__fastdepCC_TRUE='#'
4548 am__fastdepCC_FALSE=
4549fi
4550
d0ac1c44 4551
b879806f
AM
4552ac_ext=cpp
4553ac_cpp='$CXXCPP $CPPFLAGS'
4554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557if test -z "$CXX"; then
4558 if test -n "$CCC"; then
4559 CXX=$CCC
4560 else
4561 if test -n "$ac_tool_prefix"; then
4562 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4563 do
4564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4565set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
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_CXX+:} false; then :
397841b5
AM
4569 $as_echo_n "(cached) " >&6
4570else
b879806f
AM
4571 if test -n "$CXX"; then
4572 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
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 4581 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
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
4588
4589fi
4590fi
b879806f
AM
4591CXX=$ac_cv_prog_CXX
4592if test -n "$CXX"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4594$as_echo "$CXX" >&6; }
397841b5
AM
4595else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597$as_echo "no" >&6; }
4598fi
4599
4600
b879806f
AM
4601 test -n "$CXX" && break
4602 done
397841b5 4603fi
b879806f
AM
4604if test -z "$CXX"; then
4605 ac_ct_CXX=$CXX
4606 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4607do
4608 # Extract the first word of "$ac_prog", so it can be a program name with args.
4609set dummy $ac_prog; ac_word=$2
397841b5
AM
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4612if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4613 $as_echo_n "(cached) " >&6
252b5132 4614else
b879806f
AM
4615 if test -n "$ac_ct_CXX"; then
4616 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4617else
ce2cded5
L
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
81ecdfbb 4623 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 4625 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4627 break 2
4628 fi
4629done
81ecdfbb
RW
4630 done
4631IFS=$as_save_IFS
4632
252b5132
RH
4633fi
4634fi
b879806f
AM
4635ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4636if test -n "$ac_ct_CXX"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4638$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4639else
81ecdfbb
RW
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641$as_echo "no" >&6; }
d7040cdb
SE
4642fi
4643
81ecdfbb 4644
b879806f 4645 test -n "$ac_ct_CXX" && break
d7040cdb 4646done
d7040cdb 4647
b879806f
AM
4648 if test "x$ac_ct_CXX" = x; then
4649 CXX="g++"
81ecdfbb
RW
4650 else
4651 case $cross_compiling:$ac_tool_warned in
4652yes:)
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4655ac_tool_warned=yes ;;
4656esac
b879806f 4657 CXX=$ac_ct_CXX
81ecdfbb 4658 fi
d7040cdb
SE
4659fi
4660
b879806f 4661 fi
d7040cdb 4662fi
ce2cded5 4663# Provide some information about the compiler.
b879806f 4664$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4665set X $ac_compile
4666ac_compiler=$2
4667for ac_option in --version -v -V -qversion; do
4668 { { ac_try="$ac_compiler $ac_option >&5"
4669case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4672esac
4673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4674$as_echo "$ac_try_echo"; } >&5
4675 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4676 ac_status=$?
81ecdfbb
RW
4677 if test -s conftest.err; then
4678 sed '10a\
4679... rest of stderr output deleted ...
4680 10q' conftest.err >conftest.er1
4681 cat conftest.er1 >&5
81ecdfbb 4682 fi
d0ac1c44 4683 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }
4686done
d7040cdb 4687
b879806f
AM
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4689$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4690if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4691 $as_echo_n "(cached) " >&6
d7040cdb 4692else
81ecdfbb 4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4694/* end confdefs.h. */
d7040cdb 4695
ce2cded5
L
4696int
4697main ()
4698{
4699#ifndef __GNUC__
4700 choke me
4701#endif
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
b879806f 4707if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4708 ac_compiler_gnu=yes
d7040cdb 4709else
81ecdfbb 4710 ac_compiler_gnu=no
d7040cdb 4711fi
81ecdfbb 4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4713ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4714
ce2cded5 4715fi
b879806f
AM
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4717$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4718if test $ac_compiler_gnu = yes; then
b879806f 4719 GXX=yes
81ecdfbb 4720else
b879806f 4721 GXX=
81ecdfbb 4722fi
b879806f
AM
4723ac_test_CXXFLAGS=${CXXFLAGS+set}
4724ac_save_CXXFLAGS=$CXXFLAGS
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4726$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4727if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4728 $as_echo_n "(cached) " >&6
4729else
b879806f
AM
4730 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4731 ac_cxx_werror_flag=yes
4732 ac_cv_prog_cxx_g=no
4733 CXXFLAGS="-g"
81ecdfbb 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4735/* end confdefs.h. */
d7040cdb 4736
ce2cded5
L
4737int
4738main ()
4739{
d7040cdb 4740
ce2cded5
L
4741 ;
4742 return 0;
4743}
4744_ACEOF
b879806f
AM
4745if ac_fn_cxx_try_compile "$LINENO"; then :
4746 ac_cv_prog_cxx_g=yes
ce2cded5 4747else
b879806f 4748 CXXFLAGS=""
81ecdfbb
RW
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755
4756 ;
4757 return 0;
4758}
4759_ACEOF
b879806f 4760if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
4761
4762else
b879806f
AM
4763 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4764 CXXFLAGS="-g"
81ecdfbb
RW
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
d7040cdb 4771
81ecdfbb
RW
4772 ;
4773 return 0;
4774}
4775_ACEOF
b879806f
AM
4776if ac_fn_cxx_try_compile "$LINENO"; then :
4777 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
4778fi
4779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4782fi
81ecdfbb 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4784 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 4785fi
b879806f
AM
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4787$as_echo "$ac_cv_prog_cxx_g" >&6; }
4788if test "$ac_test_CXXFLAGS" = set; then
4789 CXXFLAGS=$ac_save_CXXFLAGS
4790elif test $ac_cv_prog_cxx_g = yes; then
4791 if test "$GXX" = yes; then
4792 CXXFLAGS="-g -O2"
ce2cded5 4793 else
b879806f 4794 CXXFLAGS="-g"
ce2cded5 4795 fi
d7040cdb 4796else
b879806f
AM
4797 if test "$GXX" = yes; then
4798 CXXFLAGS="-O2"
ce2cded5 4799 else
b879806f 4800 CXXFLAGS=
ce2cded5 4801 fi
d7040cdb 4802fi
b879806f
AM
4803ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809depcc="$CXX" am_compiler_list=
4810
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4812$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4813if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
81ecdfbb 4814 $as_echo_n "(cached) " >&6
d7040cdb 4815else
b879806f
AM
4816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4817 # We make a subdir and do the tests there. Otherwise we can end up
4818 # making bogus files that we don't know about and never remove. For
4819 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4820 # making a dummy file named 'D' -- because '-MD' means "put the output
4821 # in D".
6eb7d830 4822 rm -rf conftest.dir
b879806f
AM
4823 mkdir conftest.dir
4824 # Copy depcomp to subdir because otherwise we won't find it if we're
4825 # using a relative directory.
4826 cp "$am_depcomp" conftest.dir
4827 cd conftest.dir
4828 # We will build objects and dependencies in a subdirectory because
4829 # it helps to detect inapplicable dependency modes. For instance
4830 # both Tru64's cc and ICC support -MD to output dependencies as a
4831 # side effect of compilation, but ICC will put the dependencies in
4832 # the current directory while Tru64 will put them in the object
4833 # directory.
4834 mkdir sub
d7040cdb 4835
b879806f
AM
4836 am_cv_CXX_dependencies_compiler_type=none
4837 if test "$am_compiler_list" = ""; then
4838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4839 fi
4840 am__universal=false
4841 case " $depcc " in #(
4842 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4843 esac
d7040cdb 4844
b879806f
AM
4845 for depmode in $am_compiler_list; do
4846 # Setup a source with many dependencies, because some compilers
4847 # like to wrap large dependency lists on column 80 (with \), and
4848 # we should not choose a depcomp mode which is confused by this.
4849 #
4850 # We need to recreate these files for each test, as the compiler may
4851 # overwrite some of them when testing with obscure command lines.
4852 # This happens at least with the AIX C compiler.
4853 : > sub/conftest.c
4854 for i in 1 2 3 4 5 6; do
4855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4856 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4857 # Solaris 10 /bin/sh.
4858 echo '/* dummy */' > sub/conftst$i.h
b879806f
AM
4859 done
4860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 4861
d0ac1c44 4862 # We check with '-c' and '-o' for the sake of the "dashmstdout"
b879806f 4863 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4864 # handle '-M -o', and we need to detect this. Also, some Intel
4865 # versions had trouble with output in subdirs.
b879806f
AM
4866 am__obj=sub/conftest.${OBJEXT-o}
4867 am__minus_obj="-o $am__obj"
4868 case $depmode in
4869 gcc)
4870 # This depmode causes a compiler race in universal mode.
4871 test "$am__universal" = false || continue
4872 ;;
4873 nosideeffect)
d0ac1c44
SM
4874 # After this tag, mechanisms are not by side-effect, so they'll
4875 # only be used when explicitly requested.
b879806f
AM
4876 if test "x$enable_dependency_tracking" = xyes; then
4877 continue
4878 else
4879 break
4880 fi
4881 ;;
6eb7d830 4882 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4883 # This compiler won't grok '-c -o', but also, the minuso test has
b879806f
AM
4884 # not run yet. These depmodes are late enough in the game, and
4885 # so weak that their functioning should not be impacted.
4886 am__obj=conftest.${OBJEXT-o}
4887 am__minus_obj=
4888 ;;
4889 none) break ;;
4890 esac
4891 if depmode=$depmode \
4892 source=sub/conftest.c object=$am__obj \
4893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4894 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4895 >/dev/null 2>conftest.err &&
4896 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4897 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4898 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4899 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4900 # icc doesn't choke on unknown options, it will just issue warnings
4901 # or remarks (even with -Werror). So we grep stderr for any message
4902 # that says an option was ignored or not supported.
4903 # When given -MP, icc 7.0 and 7.1 complain thusly:
4904 # icc: Command line warning: ignoring option '-M'; no argument required
4905 # The diagnosis changed in icc 8.0:
4906 # icc: Command line remark: option '-MP' not supported
4907 if (grep 'ignoring option' conftest.err ||
4908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4909 am_cv_CXX_dependencies_compiler_type=$depmode
4910 break
4911 fi
4912 fi
4913 done
4914
4915 cd ..
4916 rm -rf conftest.dir
4917else
4918 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 4919fi
d7040cdb 4920
ce2cded5 4921fi
b879806f
AM
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4923$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4924CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 4925
b879806f
AM
4926 if
4927 test "x$enable_dependency_tracking" != xno \
4928 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4929 am__fastdepCXX_TRUE=
4930 am__fastdepCXX_FALSE='#'
4931else
4932 am__fastdepCXX_TRUE='#'
4933 am__fastdepCXX_FALSE=
ce2cded5 4934fi
d7040cdb 4935
b879806f 4936
68880f31
CLT
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4938$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4939if ${ac_cv_path_GREP+:} false; then :
68880f31
CLT
4940 $as_echo_n "(cached) " >&6
4941else
4942 if test -z "$GREP"; then
4943 ac_path_GREP_found=false
4944 # Loop through the user's path and test for each of PROGNAME-LIST
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4947do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_prog in grep ggrep; do
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4953 as_fn_executable_p "$ac_path_GREP" || continue
68880f31
CLT
4954# Check for GNU ac_path_GREP and select it if it is found.
4955 # Check for GNU $ac_path_GREP
4956case `"$ac_path_GREP" --version 2>&1` in
4957*GNU*)
4958 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4959*)
4960 ac_count=0
4961 $as_echo_n 0123456789 >"conftest.in"
4962 while :
4963 do
4964 cat "conftest.in" "conftest.in" >"conftest.tmp"
4965 mv "conftest.tmp" "conftest.in"
4966 cp "conftest.in" "conftest.nl"
4967 $as_echo 'GREP' >> "conftest.nl"
4968 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4970 as_fn_arith $ac_count + 1 && ac_count=$as_val
4971 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4972 # Best one so far, save it but keep looking for a better one
4973 ac_cv_path_GREP="$ac_path_GREP"
4974 ac_path_GREP_max=$ac_count
4975 fi
4976 # 10*(2^10) chars as input seems more than enough
4977 test $ac_count -gt 10 && break
4978 done
4979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4980esac
4981
4982 $ac_path_GREP_found && break 3
4983 done
4984 done
4985 done
4986IFS=$as_save_IFS
4987 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 4988 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
68880f31
CLT
4989 fi
4990else
4991 ac_cv_path_GREP=$GREP
4992fi
4993
4994fi
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4996$as_echo "$ac_cv_path_GREP" >&6; }
4997 GREP="$ac_cv_path_GREP"
4998
4999
c774eab1 5000
ce2cded5
L
5001ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5007$as_echo_n "checking how to run the C preprocessor... " >&6; }
5008# On Suns, sometimes $CPP names a directory.
5009if test -n "$CPP" && test -d "$CPP"; then
5010 CPP=
7357c5b6 5011fi
b879806f 5012if test -z "$CPP"; then
d0ac1c44 5013 if ${ac_cv_prog_CPP+:} false; then :
3cb62297
L
5014 $as_echo_n "(cached) " >&6
5015else
b879806f
AM
5016 # Double quotes because CPP needs to be expanded
5017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5018 do
5019 ac_preproc_ok=false
5020for ac_c_preproc_warn_flag in '' yes
3cb62297 5021do
b879806f
AM
5022 # Use a header file that comes with gcc, so configuring glibc
5023 # with a fresh cross-compiler works.
5024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 # <limits.h> exists even on freestanding compilers.
5026 # On the NeXT, cc -E runs the code through the compiler's parser,
5027 # not just through cpp. "Syntax error" is here to catch this case.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h. */
5030#ifdef __STDC__
5031# include <limits.h>
5032#else
5033# include <assert.h>
5034#endif
5035 Syntax error
5036_ACEOF
5037if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5038
3cb62297 5039else
b879806f
AM
5040 # Broken: fails on valid input.
5041continue
7357c5b6 5042fi
d0ac1c44 5043rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5044
b879806f
AM
5045 # OK, works on sane cases. Now check whether nonexistent headers
5046 # can be detected and how.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h. */
5049#include <ac_nonexistent.h>
5050_ACEOF
5051if ac_fn_c_try_cpp "$LINENO"; then :
5052 # Broken: success on invalid input.
5053continue
5054else
5055 # Passes both tests.
5056ac_preproc_ok=:
5057break
5058fi
d0ac1c44 5059rm -f conftest.err conftest.i conftest.$ac_ext
42ecbf5e 5060
3cb62297 5061done
b879806f 5062# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5063rm -f conftest.i conftest.err conftest.$ac_ext
b879806f
AM
5064if $ac_preproc_ok; then :
5065 break
7357c5b6 5066fi
ac48eca1 5067
b879806f
AM
5068 done
5069 ac_cv_prog_CPP=$CPP
d7040cdb 5070
b879806f
AM
5071fi
5072 CPP=$ac_cv_prog_CPP
7357c5b6 5073else
b879806f
AM
5074 ac_cv_prog_CPP=$CPP
5075fi
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5077$as_echo "$CPP" >&6; }
5078ac_preproc_ok=false
5079for ac_c_preproc_warn_flag in '' yes
5080do
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5088/* end confdefs.h. */
b879806f
AM
5089#ifdef __STDC__
5090# include <limits.h>
5091#else
5092# include <assert.h>
3cb62297 5093#endif
b879806f 5094 Syntax error
7357c5b6 5095_ACEOF
b879806f
AM
5096if ac_fn_c_try_cpp "$LINENO"; then :
5097
81ecdfbb 5098else
b879806f
AM
5099 # Broken: fails on valid input.
5100continue
7357c5b6 5101fi
d0ac1c44 5102rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb 5103
b879806f
AM
5104 # OK, works on sane cases. Now check whether nonexistent headers
5105 # can be detected and how.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h. */
5108#include <ac_nonexistent.h>
5109_ACEOF
5110if ac_fn_c_try_cpp "$LINENO"; then :
5111 # Broken: success on invalid input.
5112continue
3cb62297 5113else
b879806f
AM
5114 # Passes both tests.
5115ac_preproc_ok=:
5116break
7357c5b6 5117fi
d0ac1c44 5118rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5119
b879806f
AM
5120done
5121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5122rm -f conftest.i conftest.err conftest.$ac_ext
b879806f 5123if $ac_preproc_ok; then :
252b5132 5124
3cb62297 5125else
b879806f
AM
5126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5128as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5129See \`config.log' for more details" "$LINENO" 5; }
b879806f 5130fi
42ecbf5e 5131
b879806f
AM
5132ac_ext=c
5133ac_cpp='$CPP $CPPFLAGS'
5134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5137
5138
b879806f
AM
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5140$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5141if ${ac_cv_path_EGREP+:} false; then :
b879806f
AM
5142 $as_echo_n "(cached) " >&6
5143else
5144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5145 then ac_cv_path_EGREP="$GREP -E"
5146 else
5147 if test -z "$EGREP"; then
5148 ac_path_EGREP_found=false
5149 # Loop through the user's path and test for each of PROGNAME-LIST
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_prog in egrep; do
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5158 as_fn_executable_p "$ac_path_EGREP" || continue
b879806f
AM
5159# Check for GNU ac_path_EGREP and select it if it is found.
5160 # Check for GNU $ac_path_EGREP
5161case `"$ac_path_EGREP" --version 2>&1` in
5162*GNU*)
5163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5164*)
5165 ac_count=0
5166 $as_echo_n 0123456789 >"conftest.in"
5167 while :
5168 do
5169 cat "conftest.in" "conftest.in" >"conftest.tmp"
5170 mv "conftest.tmp" "conftest.in"
5171 cp "conftest.in" "conftest.nl"
5172 $as_echo 'EGREP' >> "conftest.nl"
5173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5175 as_fn_arith $ac_count + 1 && ac_count=$as_val
5176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5177 # Best one so far, save it but keep looking for a better one
5178 ac_cv_path_EGREP="$ac_path_EGREP"
5179 ac_path_EGREP_max=$ac_count
5180 fi
5181 # 10*(2^10) chars as input seems more than enough
5182 test $ac_count -gt 10 && break
5183 done
5184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5185esac
5186
5187 $ac_path_EGREP_found && break 3
5188 done
5189 done
5190 done
5191IFS=$as_save_IFS
5192 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5193 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b879806f
AM
5194 fi
5195else
5196 ac_cv_path_EGREP=$EGREP
5197fi
5198
5199 fi
5200fi
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5202$as_echo "$ac_cv_path_EGREP" >&6; }
5203 EGREP="$ac_cv_path_EGREP"
5204
5205
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5207$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5208if ${ac_cv_header_stdc+:} false; then :
b879806f
AM
5209 $as_echo_n "(cached) " >&6
5210else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5212/* end confdefs.h. */
b879806f
AM
5213#include <stdlib.h>
5214#include <stdarg.h>
5215#include <string.h>
5216#include <float.h>
42ecbf5e 5217
3cb62297
L
5218int
5219main ()
5220{
42ecbf5e 5221
3cb62297
L
5222 ;
5223 return 0;
5224}
5225_ACEOF
b879806f
AM
5226if ac_fn_c_try_compile "$LINENO"; then :
5227 ac_cv_header_stdc=yes
5228else
5229 ac_cv_header_stdc=no
3cb62297
L
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5232
5233if test $ac_cv_header_stdc = yes; then
5234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h. */
5237#include <string.h>
5238
5239_ACEOF
5240if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241 $EGREP "memchr" >/dev/null 2>&1; then :
5242
5243else
5244 ac_cv_header_stdc=no
3cb62297 5245fi
b879806f
AM
5246rm -f conftest*
5247
3cb62297 5248fi
b879806f
AM
5249
5250if test $ac_cv_header_stdc = yes; then
5251 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253/* end confdefs.h. */
5254#include <stdlib.h>
5255
5256_ACEOF
5257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5258 $EGREP "free" >/dev/null 2>&1; then :
5259
ce2cded5 5260else
b879806f 5261 ac_cv_header_stdc=no
ce2cded5 5262fi
b879806f 5263rm -f conftest*
42ecbf5e 5264
b879806f 5265fi
e5a52504 5266
b879806f
AM
5267if test $ac_cv_header_stdc = yes; then
5268 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5269 if test "$cross_compiling" = yes; then :
5270 :
3cb62297 5271else
b879806f
AM
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h. */
5274#include <ctype.h>
5275#include <stdlib.h>
5276#if ((' ' & 0x0FF) == 0x020)
5277# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5278# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279#else
5280# define ISLOWER(c) \
5281 (('a' <= (c) && (c) <= 'i') \
5282 || ('j' <= (c) && (c) <= 'r') \
5283 || ('s' <= (c) && (c) <= 'z'))
5284# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5285#endif
3cb62297
L
5286
5287#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5288int
5289main ()
5290{
5291 int i;
5292 for (i = 0; i < 256; i++)
5293 if (XOR (islower (i), ISLOWER (i))
5294 || toupper (i) != TOUPPER (i))
5295 return 2;
5296 return 0;
5297}
5298_ACEOF
5299if ac_fn_c_try_run "$LINENO"; then :
5300
5301else
5302 ac_cv_header_stdc=no
5303fi
5304rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5305 conftest.$ac_objext conftest.beam conftest.$ac_ext
5306fi
5307
5308fi
5309fi
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5311$as_echo "$ac_cv_header_stdc" >&6; }
5312if test $ac_cv_header_stdc = yes; then
5313
5314$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5315
5316fi
5317
5318# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5319for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5320 inttypes.h stdint.h unistd.h
5321do :
5322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5323ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5324"
d0ac1c44 5325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3cb62297
L
5326 cat >>confdefs.h <<_ACEOF
5327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5328_ACEOF
5329
5330fi
5331
5332done
5333
5334
5335
5336 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5337if test "x$ac_cv_header_minix_config_h" = xyes; then :
3cb62297
L
5338 MINIX=yes
5339else
5340 MINIX=
5341fi
5342
5343
5344 if test "$MINIX" = yes; then
5345
5346$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5347
5348
5349$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5350
5351
5352$as_echo "#define _MINIX 1" >>confdefs.h
5353
5354 fi
5355
5356
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5358$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5359if ${ac_cv_safe_to_define___extensions__+:} false; then :
3cb62297
L
5360 $as_echo_n "(cached) " >&6
5361else
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363/* end confdefs.h. */
5364
d0ac1c44
SM
5365# define __EXTENSIONS__ 1
5366 $ac_includes_default
3cb62297
L
5367int
5368main ()
5369{
5370
5371 ;
5372 return 0;
5373}
5374_ACEOF
5375if ac_fn_c_try_compile "$LINENO"; then :
5376 ac_cv_safe_to_define___extensions__=yes
5377else
5378 ac_cv_safe_to_define___extensions__=no
5379fi
5380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5383$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5384 test $ac_cv_safe_to_define___extensions__ = yes &&
5385 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5386
5387 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5388
5389 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5390
5391 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5392
5393 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5394
5395
5396
5397
5398
3cb62297 5399
2cac01e3
FS
5400
5401
5402
5403
5404
5405
5406if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5409set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
5412if ${ac_cv_path_PKG_CONFIG+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414else
5415 case $PKG_CONFIG in
5416 [\\/]* | ?:[\\/]*)
5417 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5418 ;;
5419 *)
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432 done
5433IFS=$as_save_IFS
5434
5435 ;;
5436esac
5437fi
5438PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5439if test -n "$PKG_CONFIG"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5441$as_echo "$PKG_CONFIG" >&6; }
5442else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446
5447
5448fi
5449if test -z "$ac_cv_path_PKG_CONFIG"; then
5450 ac_pt_PKG_CONFIG=$PKG_CONFIG
5451 # Extract the first word of "pkg-config", so it can be a program name with args.
5452set dummy pkg-config; ac_word=$2
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454$as_echo_n "checking for $ac_word... " >&6; }
5455if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457else
5458 case $ac_pt_PKG_CONFIG in
5459 [\\/]* | ?:[\\/]*)
5460 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5461 ;;
5462 *)
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475 done
5476IFS=$as_save_IFS
5477
5478 ;;
5479esac
5480fi
5481ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5482if test -n "$ac_pt_PKG_CONFIG"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5484$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490 if test "x$ac_pt_PKG_CONFIG" = x; then
5491 PKG_CONFIG=""
5492 else
5493 case $cross_compiling:$ac_tool_warned in
5494yes:)
5495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5497ac_tool_warned=yes ;;
5498esac
5499 PKG_CONFIG=$ac_pt_PKG_CONFIG
5500 fi
5501else
5502 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5503fi
5504
5505fi
5506if test -n "$PKG_CONFIG"; then
5507 _pkg_min_version=0.9.0
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5509$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5510 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512$as_echo "yes" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515$as_echo "no" >&6; }
5516 PKG_CONFIG=""
5517 fi
5518fi
5519
b879806f
AM
5520case `pwd` in
5521 *\ * | *\ *)
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5523$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5524esac
3cb62297
L
5525
5526
da2f07f1 5527
b879806f
AM
5528macro_version='2.2.7a'
5529macro_revision='1.3134'
d7040cdb 5530
d7040cdb
SE
5531
5532
d7040cdb 5533
d7040cdb 5534
42ecbf5e 5535
d7040cdb 5536
252b5132 5537
252b5132 5538
252b5132 5539
252b5132
RH
5540
5541
ce2cded5 5542
b214d478 5543ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5544
3725885a
RW
5545# Backslashify metacharacters that are still active within
5546# double-quoted strings.
5547sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5548
5549# Same as above, but do not quote variable references.
5550double_quote_subst='s/\(["`\\]\)/\\\1/g'
5551
5552# Sed substitution to delay expansion of an escaped shell variable in a
5553# double_quote_subst'ed string.
5554delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5555
5556# Sed substitution to delay expansion of an escaped single quote.
5557delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5558
5559# Sed substitution to avoid accidental globbing in evaled expressions
5560no_glob_subst='s/\*/\\\*/g'
5561
5562ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5563ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5564ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5565
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5567$as_echo_n "checking how to print strings... " >&6; }
5568# Test print first, because it will be a builtin if present.
5569if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5570 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5571 ECHO='print -r --'
5572elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5573 ECHO='printf %s\n'
5574else
5575 # Use this function as a fallback that always works.
5576 func_fallback_echo ()
5577 {
5578 eval 'cat <<_LTECHO_EOF
5579$1
5580_LTECHO_EOF'
5581 }
5582 ECHO='func_fallback_echo'
5583fi
5584
5585# func_echo_all arg...
5586# Invoke $ECHO with all args, space-separated.
5587func_echo_all ()
5588{
5589 $ECHO ""
5590}
5591
5592case "$ECHO" in
5593 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5594$as_echo "printf" >&6; } ;;
5595 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5596$as_echo "print -r" >&6; } ;;
5597 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5598$as_echo "cat" >&6; } ;;
5599esac
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
81ecdfbb
RW
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5615$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5616if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
5617 $as_echo_n "(cached) " >&6
5618else
5619 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5620 for ac_i in 1 2 3 4 5 6 7; do
5621 ac_script="$ac_script$as_nl$ac_script"
5622 done
5623 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5624 { ac_script=; unset ac_script;}
5625 if test -z "$SED"; then
5626 ac_path_SED_found=false
5627 # Loop through the user's path and test for each of PROGNAME-LIST
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
81ecdfbb 5633 for ac_prog in sed gsed; do
7357c5b6 5634 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5635 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5636 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5637# Check for GNU ac_path_SED and select it if it is found.
5638 # Check for GNU $ac_path_SED
5639case `"$ac_path_SED" --version 2>&1` in
5640*GNU*)
5641 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5642*)
5643 ac_count=0
5644 $as_echo_n 0123456789 >"conftest.in"
5645 while :
5646 do
5647 cat "conftest.in" "conftest.in" >"conftest.tmp"
5648 mv "conftest.tmp" "conftest.in"
5649 cp "conftest.in" "conftest.nl"
5650 $as_echo '' >> "conftest.nl"
5651 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5653 as_fn_arith $ac_count + 1 && ac_count=$as_val
5654 if test $ac_count -gt ${ac_path_SED_max-0}; then
5655 # Best one so far, save it but keep looking for a better one
5656 ac_cv_path_SED="$ac_path_SED"
5657 ac_path_SED_max=$ac_count
5658 fi
5659 # 10*(2^10) chars as input seems more than enough
5660 test $ac_count -gt 10 && break
5661 done
5662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5663esac
5664
5665 $ac_path_SED_found && break 3
7357c5b6
AM
5666 done
5667 done
81ecdfbb 5668 done
7357c5b6 5669IFS=$as_save_IFS
81ecdfbb 5670 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5671 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5672 fi
81ecdfbb
RW
5673else
5674 ac_cv_path_SED=$SED
7357c5b6 5675fi
20e95c23 5676
81ecdfbb
RW
5677fi
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5679$as_echo "$ac_cv_path_SED" >&6; }
5680 SED="$ac_cv_path_SED"
5681 rm -f conftest.sed
20e95c23 5682
7357c5b6
AM
5683test -z "$SED" && SED=sed
5684Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5685
5686
5687
5688
5689
5690
20e95c23 5691
20e95c23 5692
d7040cdb 5693
d7040cdb 5694
7357c5b6 5695
81ecdfbb
RW
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5697$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5698if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5699 $as_echo_n "(cached) " >&6
7357c5b6 5700else
81ecdfbb
RW
5701 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5702 then ac_cv_path_FGREP="$GREP -F"
5703 else
5704 if test -z "$FGREP"; then
5705 ac_path_FGREP_found=false
5706 # Loop through the user's path and test for each of PROGNAME-LIST
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_prog in fgrep; do
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5715 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5716# Check for GNU ac_path_FGREP and select it if it is found.
5717 # Check for GNU $ac_path_FGREP
5718case `"$ac_path_FGREP" --version 2>&1` in
5719*GNU*)
5720 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5721*)
5722 ac_count=0
5723 $as_echo_n 0123456789 >"conftest.in"
5724 while :
5725 do
5726 cat "conftest.in" "conftest.in" >"conftest.tmp"
5727 mv "conftest.tmp" "conftest.in"
5728 cp "conftest.in" "conftest.nl"
5729 $as_echo 'FGREP' >> "conftest.nl"
5730 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5732 as_fn_arith $ac_count + 1 && ac_count=$as_val
5733 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5734 # Best one so far, save it but keep looking for a better one
5735 ac_cv_path_FGREP="$ac_path_FGREP"
5736 ac_path_FGREP_max=$ac_count
7357c5b6 5737 fi
81ecdfbb
RW
5738 # 10*(2^10) chars as input seems more than enough
5739 test $ac_count -gt 10 && break
5740 done
5741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742esac
5743
5744 $ac_path_FGREP_found && break 3
5745 done
5746 done
5747 done
5748IFS=$as_save_IFS
5749 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5750 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5751 fi
5752else
5753 ac_cv_path_FGREP=$FGREP
5754fi
5755
5756 fi
20e95c23 5757fi
81ecdfbb
RW
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5759$as_echo "$ac_cv_path_FGREP" >&6; }
5760 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5761
5762
5763test -z "$GREP" && GREP=grep
5764
d7040cdb
SE
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
20e95c23 5776
ce2cded5 5777
d7040cdb 5778
7357c5b6
AM
5779
5780
5781
5782
81ecdfbb
RW
5783# Check whether --with-gnu-ld was given.
5784if test "${with_gnu_ld+set}" = set; then :
5785 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5786else
5787 with_gnu_ld=no
81ecdfbb
RW
5788fi
5789
7357c5b6
AM
5790ac_prog=ld
5791if test "$GCC" = yes; then
5792 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5794$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5795 case $host in
5796 *-*-mingw*)
5797 # gcc leaves a trailing carriage return which upsets mingw
5798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5799 *)
5800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5801 esac
5802 case $ac_prog in
5803 # Accept absolute paths.
5804 [\\/]* | ?:[\\/]*)
5805 re_direlt='/[^/][^/]*/\.\./'
5806 # Canonicalize the pathname of ld
5807 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5808 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5809 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5810 done
5811 test -z "$LD" && LD="$ac_prog"
5812 ;;
5813 "")
5814 # If it fails, then pretend we aren't using GCC.
5815 ac_prog=ld
5816 ;;
5817 *)
5818 # If it is relative, then search for the first ld in PATH.
5819 with_gnu_ld=unknown
5820 ;;
5821 esac
5822elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5824$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5825else
81ecdfbb
RW
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5827$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5828fi
d0ac1c44 5829if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5830 $as_echo_n "(cached) " >&6
ce2cded5 5831else
7357c5b6
AM
5832 if test -z "$LD"; then
5833 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH; do
5835 IFS="$lt_save_ifs"
5836 test -z "$ac_dir" && ac_dir=.
5837 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5838 lt_cv_path_LD="$ac_dir/$ac_prog"
5839 # Check to see if the program is GNU ld. I'd rather use --version,
5840 # but apparently some variants of GNU ld only accept -v.
5841 # Break only if it was the GNU/non-GNU ld that we prefer.
5842 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5843 *GNU* | *'with BFD'*)
5844 test "$with_gnu_ld" != no && break
5845 ;;
5846 *)
5847 test "$with_gnu_ld" != yes && break
5848 ;;
5849 esac
5850 fi
5851 done
5852 IFS="$lt_save_ifs"
ce2cded5 5853else
7357c5b6 5854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5855fi
5856fi
7357c5b6
AM
5857
5858LD="$lt_cv_path_LD"
5859if test -n "$LD"; then
81ecdfbb
RW
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5861$as_echo "$LD" >&6; }
ce2cded5 5862else
81ecdfbb
RW
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
ce2cded5 5865fi
d0ac1c44 5866test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5868$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5869if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5870 $as_echo_n "(cached) " >&6
ce2cded5 5871else
7357c5b6
AM
5872 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5873case `$LD -v 2>&1 </dev/null` in
5874*GNU* | *'with BFD'*)
5875 lt_cv_prog_gnu_ld=yes
5876 ;;
5877*)
5878 lt_cv_prog_gnu_ld=no
5879 ;;
5880esac
ce2cded5 5881fi
81ecdfbb
RW
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5883$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5884with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5885
5886
5887
5888
5889
5890
5891
5892
5893
81ecdfbb
RW
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5895$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5896if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5897 $as_echo_n "(cached) " >&6
ce2cded5 5898else
7357c5b6 5899 if test -n "$NM"; then
b9004024
NA
5900 # Let the user override the nm to test.
5901 lt_nm_to_check="$NM"
5902 else
5903 lt_nm_to_check="${ac_tool_prefix}nm"
5904 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5905 lt_nm_to_check="$lt_nm_to_check nm"
5906 fi
5907 fi
caf606c9 5908 for lt_tmp_nm in "$lt_nm_to_check"; do
b9004024
NA
5909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5910 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5911 IFS="$lt_save_ifs"
5912 test -z "$ac_dir" && ac_dir=.
caf606c9
NA
5913 # Strip out any user-provided options from the nm to test twice,
5914 # the first time to test to see if nm (rather than its options) has
5915 # an explicit path, the second time to yield a file which can be
5916 # nm'ed itself.
5917 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5918 case "$tmp_nm_path" in
b9004024
NA
5919 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5920 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5921 esac
caf606c9
NA
5922 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5923 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
b9004024
NA
5924 # Check to see if the nm accepts a BSD-compat flag.
5925 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5926 # nm: unknown option "B" ignored
caf606c9 5927 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5928 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5929 break
5930 ;;
5931 *)
caf606c9 5932 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5933 *$tmp_nm*)
5934 lt_cv_path_NM="$tmp_nm -p"
5935 break
5936 ;;
5937 *)
5938 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5939 continue # so that we can try to find one that supports BSD flags
5940 ;;
5941 esac
5942 ;;
5943 esac
5944 fi
5945 done
5946 IFS="$lt_save_ifs"
5947 done
5948 : ${lt_cv_path_NM=no}
ce2cded5 5949fi
81ecdfbb
RW
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5951$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5952if test "$lt_cv_path_NM" != "no"; then
5953 NM="$lt_cv_path_NM"
ce2cded5 5954else
7357c5b6 5955 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5956 if test -n "$DUMPBIN"; then :
5957 # Let the user override the test.
5958 else
5959 if test -n "$ac_tool_prefix"; then
5960 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5961 do
5962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5963set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5966if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5967 $as_echo_n "(cached) " >&6
20e95c23 5968else
7357c5b6
AM
5969 if test -n "$DUMPBIN"; then
5970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
81ecdfbb 5977 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 5979 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5981 break 2
5982 fi
5983done
81ecdfbb
RW
5984 done
5985IFS=$as_save_IFS
d7040cdb 5986
20e95c23 5987fi
ce2cded5 5988fi
7357c5b6
AM
5989DUMPBIN=$ac_cv_prog_DUMPBIN
5990if test -n "$DUMPBIN"; then
81ecdfbb
RW
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5992$as_echo "$DUMPBIN" >&6; }
42ecbf5e 5993else
81ecdfbb
RW
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995$as_echo "no" >&6; }
42ecbf5e
DJ
5996fi
5997
81ecdfbb 5998
7357c5b6
AM
5999 test -n "$DUMPBIN" && break
6000 done
ce2cded5 6001fi
7357c5b6
AM
6002if test -z "$DUMPBIN"; then
6003 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6004 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6005do
6006 # Extract the first word of "$ac_prog", so it can be a program name with args.
6007set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6010if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 6011 $as_echo_n "(cached) " >&6
42ecbf5e 6012else
7357c5b6
AM
6013 if test -n "$ac_ct_DUMPBIN"; then
6014 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
81ecdfbb 6021 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6023 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6025 break 2
6026 fi
6027done
81ecdfbb
RW
6028 done
6029IFS=$as_save_IFS
d7040cdb 6030
ce2cded5
L
6031fi
6032fi
7357c5b6
AM
6033ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6034if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6036$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6037else
81ecdfbb
RW
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
ce2cded5 6040fi
d7040cdb 6041
81ecdfbb 6042
7357c5b6 6043 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6044done
d7040cdb 6045
81ecdfbb
RW
6046 if test "x$ac_ct_DUMPBIN" = x; then
6047 DUMPBIN=":"
6048 else
6049 case $cross_compiling:$ac_tool_warned in
6050yes:)
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6053ac_tool_warned=yes ;;
6054esac
6055 DUMPBIN=$ac_ct_DUMPBIN
6056 fi
ce2cded5 6057fi
7357c5b6 6058
3725885a
RW
6059 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6060 *COFF*)
6061 DUMPBIN="$DUMPBIN -symbols"
6062 ;;
6063 *)
6064 DUMPBIN=:
6065 ;;
6066 esac
6067 fi
7357c5b6
AM
6068
6069 if test "$DUMPBIN" != ":"; then
6070 NM="$DUMPBIN"
6071 fi
ce2cded5 6072fi
7357c5b6
AM
6073test -z "$NM" && NM=nm
6074
6075
6076
6077
6078
6079
81ecdfbb
RW
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6081$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6082if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 6083 $as_echo_n "(cached) " >&6
20e95c23 6084else
7357c5b6
AM
6085 lt_cv_nm_interface="BSD nm"
6086 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6087 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6088 (eval "$ac_compile" 2>conftest.err)
6089 cat conftest.err >&5
3725885a 6090 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6091 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6092 cat conftest.err >&5
3725885a 6093 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6094 cat conftest.out >&5
6095 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6096 lt_cv_nm_interface="MS dumpbin"
6097 fi
6098 rm -f conftest*
20e95c23 6099fi
81ecdfbb
RW
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6101$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6102
81ecdfbb
RW
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6104$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6105LN_S=$as_ln_s
6106if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108$as_echo "yes" >&6; }
ce2cded5 6109else
81ecdfbb
RW
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6111$as_echo "no, using $LN_S" >&6; }
d7040cdb 6112fi
20e95c23 6113
7357c5b6 6114# find the maximum length of command line arguments
81ecdfbb
RW
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6116$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6117if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 6118 $as_echo_n "(cached) " >&6
7357c5b6
AM
6119else
6120 i=0
6121 teststring="ABCD"
20e95c23 6122
7357c5b6
AM
6123 case $build_os in
6124 msdosdjgpp*)
6125 # On DJGPP, this test can blow up pretty badly due to problems in libc
6126 # (any single argument exceeding 2000 bytes causes a buffer overrun
6127 # during glob expansion). Even if it were fixed, the result of this
6128 # check would be larger than it should be.
6129 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6130 ;;
20e95c23 6131
7357c5b6
AM
6132 gnu*)
6133 # Under GNU Hurd, this test is not required because there is
6134 # no limit to the length of command line arguments.
6135 # Libtool will interpret -1 as no limit whatsoever
6136 lt_cv_sys_max_cmd_len=-1;
6137 ;;
20e95c23 6138
b214d478 6139 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6140 # On Win9x/ME, this test blows up -- it succeeds, but takes
6141 # about 5 minutes as the teststring grows exponentially.
6142 # Worse, since 9x/ME are not pre-emptively multitasking,
6143 # you end up with a "frozen" computer, even though with patience
6144 # the test eventually succeeds (with a max line length of 256k).
6145 # Instead, let's just punt: use the minimum linelength reported by
6146 # all of the supported platforms: 8192 (on NT/2K/XP).
6147 lt_cv_sys_max_cmd_len=8192;
6148 ;;
20e95c23 6149
3725885a
RW
6150 mint*)
6151 # On MiNT this can take a long time and run out of memory.
6152 lt_cv_sys_max_cmd_len=8192;
6153 ;;
6154
7357c5b6
AM
6155 amigaos*)
6156 # On AmigaOS with pdksh, this test takes hours, literally.
6157 # So we just punt and use a minimum line length of 8192.
6158 lt_cv_sys_max_cmd_len=8192;
6159 ;;
20e95c23 6160
7357c5b6
AM
6161 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6162 # This has been around since 386BSD, at least. Likely further.
6163 if test -x /sbin/sysctl; then
6164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6165 elif test -x /usr/sbin/sysctl; then
6166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6167 else
6168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6169 fi
6170 # And add a safety zone
6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6173 ;;
d7040cdb 6174
7357c5b6
AM
6175 interix*)
6176 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6177 lt_cv_sys_max_cmd_len=196608
6178 ;;
d7040cdb 6179
7357c5b6
AM
6180 osf*)
6181 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6182 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6183 # nice to cause kernel panics so lets avoid the loop below.
6184 # First set a reasonable default.
6185 lt_cv_sys_max_cmd_len=16384
6186 #
6187 if test -x /sbin/sysconfig; then
6188 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6189 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6190 esac
6191 fi
6192 ;;
6193 sco3.2v5*)
6194 lt_cv_sys_max_cmd_len=102400
6195 ;;
6196 sysv5* | sco5v6* | sysv4.2uw2*)
6197 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6198 if test -n "$kargmax"; then
6199 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6200 else
6201 lt_cv_sys_max_cmd_len=32768
6202 fi
ce2cded5
L
6203 ;;
6204 *)
b214d478
SE
6205 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6206 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6208 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6209 else
6210 # Make teststring a little bigger before we do anything with it.
6211 # a 1K string should be a reasonable start.
6212 for i in 1 2 3 4 5 6 7 8 ; do
6213 teststring=$teststring$teststring
6214 done
6215 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6216 # If test is not a shell built-in, we'll probably end up computing a
6217 # maximum length that is only half of the actual maximum length, but
6218 # we can't tell.
3725885a
RW
6219 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6220 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6221 test $i != 17 # 1/2 MB should be enough
6222 do
6223 i=`expr $i + 1`
6224 teststring=$teststring$teststring
6225 done
6226 # Only check the string length outside the loop.
6227 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6228 teststring=
6229 # Add a significant safety factor because C++ compilers can tack on
6230 # massive amounts of additional arguments before passing them to the
6231 # linker. It appears as though 1/2 is a usable value.
6232 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6233 fi
ce2cded5
L
6234 ;;
6235 esac
d7040cdb 6236
7357c5b6 6237fi
d7040cdb 6238
7357c5b6 6239if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6241$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6242else
81ecdfbb
RW
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6244$as_echo "none" >&6; }
7357c5b6
AM
6245fi
6246max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6247
6248
6249
6250
6251
d7040cdb 6252
7357c5b6
AM
6253: ${CP="cp -f"}
6254: ${MV="mv -f"}
6255: ${RM="rm -f"}
d7040cdb 6256
81ecdfbb
RW
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6258$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6259# Try some XSI features
6260xsi_shell=no
6261( _lt_dummy="a/b/c"
6262 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6263 = c,a/b,, \
6264 && eval 'test $(( 1 + 1 )) -eq 2 \
6265 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6266 && xsi_shell=yes
81ecdfbb
RW
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6268$as_echo "$xsi_shell" >&6; }
d7040cdb 6269
d7040cdb 6270
81ecdfbb
RW
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6272$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6273lt_shell_append=no
6274( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6275 >/dev/null 2>&1 \
6276 && lt_shell_append=yes
81ecdfbb
RW
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6278$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6279
6280
7357c5b6
AM
6281if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6282 lt_unset=unset
6283else
6284 lt_unset=false
6285fi
d7040cdb 6286
d7040cdb 6287
d7040cdb 6288
d7040cdb 6289
d7040cdb 6290
7357c5b6
AM
6291# test EBCDIC or ASCII
6292case `echo X|tr X '\101'` in
6293 A) # ASCII based system
6294 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6295 lt_SP2NL='tr \040 \012'
6296 lt_NL2SP='tr \015\012 \040\040'
6297 ;;
6298 *) # EBCDIC based system
6299 lt_SP2NL='tr \100 \n'
6300 lt_NL2SP='tr \r\n \100\100'
6301 ;;
6302esac
42ecbf5e 6303
d7040cdb
SE
6304
6305
6306
6307
6308
6309
d7040cdb 6310
d7040cdb 6311
81ecdfbb
RW
6312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6313$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6314if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6315 $as_echo_n "(cached) " >&6
7357c5b6
AM
6316else
6317 lt_cv_ld_reload_flag='-r'
6318fi
81ecdfbb
RW
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6320$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6321reload_flag=$lt_cv_ld_reload_flag
6322case $reload_flag in
6323"" | " "*) ;;
6324*) reload_flag=" $reload_flag" ;;
6325esac
6326reload_cmds='$LD$reload_flag -o $output$reload_objs'
6327case $host_os in
6328 darwin*)
6329 if test "$GCC" = yes; then
6330 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6331 else
6332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6333 fi
6334 ;;
6335esac
d7040cdb 6336
d7040cdb 6337
d7040cdb 6338
d7040cdb 6339
d7040cdb 6340
d7040cdb 6341
d7040cdb 6342
d7040cdb 6343
d7040cdb 6344
b214d478
SE
6345if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6347set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6350if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6351 $as_echo_n "(cached) " >&6
b214d478
SE
6352else
6353 if test -n "$OBJDUMP"; then
6354 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
81ecdfbb 6361 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6363 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6365 break 2
6366 fi
6367done
81ecdfbb
RW
6368 done
6369IFS=$as_save_IFS
b214d478
SE
6370
6371fi
6372fi
6373OBJDUMP=$ac_cv_prog_OBJDUMP
6374if test -n "$OBJDUMP"; then
81ecdfbb
RW
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6376$as_echo "$OBJDUMP" >&6; }
b214d478 6377else
81ecdfbb
RW
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
b214d478
SE
6380fi
6381
81ecdfbb 6382
b214d478
SE
6383fi
6384if test -z "$ac_cv_prog_OBJDUMP"; then
6385 ac_ct_OBJDUMP=$OBJDUMP
6386 # Extract the first word of "objdump", so it can be a program name with args.
6387set dummy objdump; ac_word=$2
81ecdfbb
RW
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6390if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6391 $as_echo_n "(cached) " >&6
b214d478
SE
6392else
6393 if test -n "$ac_ct_OBJDUMP"; then
6394 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
81ecdfbb 6401 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6403 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6405 break 2
6406 fi
6407done
81ecdfbb
RW
6408 done
6409IFS=$as_save_IFS
b214d478 6410
b214d478
SE
6411fi
6412fi
6413ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6414if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6416$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6417else
81ecdfbb
RW
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419$as_echo "no" >&6; }
b214d478
SE
6420fi
6421
81ecdfbb
RW
6422 if test "x$ac_ct_OBJDUMP" = x; then
6423 OBJDUMP="false"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426yes:)
6427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429ac_tool_warned=yes ;;
6430esac
6431 OBJDUMP=$ac_ct_OBJDUMP
6432 fi
b214d478
SE
6433else
6434 OBJDUMP="$ac_cv_prog_OBJDUMP"
6435fi
6436
6437test -z "$OBJDUMP" && OBJDUMP=objdump
6438
6439
6440
6441
6442
6443
6444
6445
d7040cdb 6446
81ecdfbb
RW
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6448$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6449if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6450 $as_echo_n "(cached) " >&6
ce2cded5 6451else
7357c5b6
AM
6452 lt_cv_file_magic_cmd='$MAGIC_CMD'
6453lt_cv_file_magic_test_file=
6454lt_cv_deplibs_check_method='unknown'
6455# Need to set the preceding variable on all platforms that support
6456# interlibrary dependencies.
6457# 'none' -- dependencies not supported.
6458# `unknown' -- same as none, but documents that we really don't know.
6459# 'pass_all' -- all dependencies passed with no checks.
6460# 'test_compile' -- check by making test program.
6461# 'file_magic [[regex]]' -- check by looking for files in library path
6462# which responds to the $file_magic_cmd with a given extended regex.
6463# If you have `file' or equivalent on your system and you're not sure
6464# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6465
ce2cded5 6466case $host_os in
7357c5b6
AM
6467aix[4-9]*)
6468 lt_cv_deplibs_check_method=pass_all
ce2cded5 6469 ;;
7357c5b6
AM
6470
6471beos*)
6472 lt_cv_deplibs_check_method=pass_all
ce2cded5 6473 ;;
7357c5b6
AM
6474
6475bsdi[45]*)
6476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6477 lt_cv_file_magic_cmd='/usr/bin/file -L'
6478 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6479 ;;
7357c5b6
AM
6480
6481cygwin*)
6482 # func_win32_libid is a shell function defined in ltmain.sh
6483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6484 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6485 ;;
7357c5b6
AM
6486
6487mingw* | pw32*)
6488 # Base MSYS/MinGW do not provide the 'file' command needed by
6489 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6490 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6491 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6492 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6493 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6494 lt_cv_file_magic_cmd='func_win32_libid'
6495 else
6496 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6497 lt_cv_file_magic_cmd='$OBJDUMP -f'
6498 fi
ce2cded5 6499 ;;
7357c5b6 6500
3725885a 6501cegcc*)
b214d478
SE
6502 # use the weaker test based on 'objdump'. See mingw*.
6503 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6504 lt_cv_file_magic_cmd='$OBJDUMP -f'
6505 ;;
6506
7357c5b6
AM
6507darwin* | rhapsody*)
6508 lt_cv_deplibs_check_method=pass_all
ce2cded5 6509 ;;
7357c5b6
AM
6510
6511freebsd* | dragonfly*)
6512 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6513 case $host_cpu in
6514 i*86 )
6515 # Not sure whether the presence of OpenBSD here was a mistake.
6516 # Let's accept both of them until this is cleared up.
6517 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6518 lt_cv_file_magic_cmd=/usr/bin/file
6519 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6520 ;;
6521 esac
6522 else
6523 lt_cv_deplibs_check_method=pass_all
6524 fi
ce2cded5 6525 ;;
7357c5b6
AM
6526
6527gnu*)
6528 lt_cv_deplibs_check_method=pass_all
ce2cded5 6529 ;;
7357c5b6 6530
3725885a
RW
6531haiku*)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534
7357c5b6
AM
6535hpux10.20* | hpux11*)
6536 lt_cv_file_magic_cmd=/usr/bin/file
6537 case $host_cpu in
6538 ia64*)
6539 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6540 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6541 ;;
6542 hppa*64*)
3725885a 6543 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
6544 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6545 ;;
6546 *)
3725885a 6547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6549 ;;
6550 esac
ce2cded5 6551 ;;
d7040cdb 6552
7357c5b6
AM
6553interix[3-9]*)
6554 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6556 ;;
d7040cdb 6557
7357c5b6
AM
6558irix5* | irix6* | nonstopux*)
6559 case $LD in
6560 *-32|*"-32 ") libmagic=32-bit;;
6561 *-n32|*"-n32 ") libmagic=N32;;
6562 *-64|*"-64 ") libmagic=64-bit;;
6563 *) libmagic=never-match;;
6564 esac
6565 lt_cv_deplibs_check_method=pass_all
6566 ;;
d7040cdb 6567
7357c5b6 6568# This must be Linux ELF.
58e24671 6569linux* | k*bsd*-gnu | kopensolaris*-gnu)
7357c5b6
AM
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
d7040cdb 6572
7357c5b6
AM
6573netbsd*)
6574 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6576 else
6577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6578 fi
ce2cded5 6579 ;;
d7040cdb 6580
7357c5b6
AM
6581newos6*)
6582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6583 lt_cv_file_magic_cmd=/usr/bin/file
6584 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6585 ;;
d7040cdb 6586
7357c5b6
AM
6587*nto* | *qnx*)
6588 lt_cv_deplibs_check_method=pass_all
6589 ;;
d7040cdb 6590
7357c5b6
AM
6591openbsd*)
6592 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6594 else
7357c5b6 6595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6596 fi
7357c5b6 6597 ;;
d7040cdb 6598
7357c5b6
AM
6599osf3* | osf4* | osf5*)
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
d7040cdb 6602
7357c5b6
AM
6603rdos*)
6604 lt_cv_deplibs_check_method=pass_all
6605 ;;
d7040cdb 6606
7357c5b6
AM
6607solaris*)
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
d7040cdb 6610
7357c5b6
AM
6611sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
d7040cdb 6614
7357c5b6
AM
6615sysv4 | sysv4.3*)
6616 case $host_vendor in
6617 motorola)
6618 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]'
6619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6620 ;;
6621 ncr)
6622 lt_cv_deplibs_check_method=pass_all
6623 ;;
6624 sequent)
6625 lt_cv_file_magic_cmd='/bin/file'
6626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6627 ;;
6628 sni)
6629 lt_cv_file_magic_cmd='/bin/file'
6630 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6631 lt_cv_file_magic_test_file=/lib/libc.so
6632 ;;
6633 siemens)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
6636 pc)
6637 lt_cv_deplibs_check_method=pass_all
6638 ;;
6639 esac
6640 ;;
d7040cdb 6641
7357c5b6
AM
6642tpf*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645esac
d7040cdb 6646
7357c5b6 6647fi
81ecdfbb
RW
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6649$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6650file_magic_cmd=$lt_cv_file_magic_cmd
6651deplibs_check_method=$lt_cv_deplibs_check_method
6652test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6653
6654
6655
7357c5b6
AM
6656
6657
6658
6659
6660
6661
6662
6663
6664
a4966cd9
L
6665plugin_option=
6666plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6667for plugin in $plugin_names; do
6668 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6669 if test x$plugin_so = x$plugin; then
6670 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6671 fi
6672 if test x$plugin_so != x$plugin; then
6673 plugin_option="--plugin $plugin_so"
6674 break
6675 fi
6676done
6677
7357c5b6
AM
6678if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6680set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6683if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6684 $as_echo_n "(cached) " >&6
7357c5b6
AM
6685else
6686 if test -n "$AR"; then
6687 ac_cv_prog_AR="$AR" # Let the user override the test.
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
81ecdfbb 6694 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6696 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6698 break 2
ce2cded5
L
6699 fi
6700done
81ecdfbb
RW
6701 done
6702IFS=$as_save_IFS
d7040cdb 6703
42ecbf5e 6704fi
ce2cded5 6705fi
7357c5b6
AM
6706AR=$ac_cv_prog_AR
6707if test -n "$AR"; then
81ecdfbb
RW
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6709$as_echo "$AR" >&6; }
42ecbf5e 6710else
81ecdfbb
RW
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712$as_echo "no" >&6; }
42ecbf5e
DJ
6713fi
6714
81ecdfbb 6715
7357c5b6
AM
6716fi
6717if test -z "$ac_cv_prog_AR"; then
6718 ac_ct_AR=$AR
6719 # Extract the first word of "ar", so it can be a program name with args.
6720set dummy ar; ac_word=$2
81ecdfbb
RW
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6723if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6724 $as_echo_n "(cached) " >&6
7357c5b6
AM
6725else
6726 if test -n "$ac_ct_AR"; then
6727 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
81ecdfbb 6734 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6736 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6738 break 2
6739 fi
6740done
81ecdfbb
RW
6741 done
6742IFS=$as_save_IFS
42ecbf5e 6743
7357c5b6
AM
6744fi
6745fi
6746ac_ct_AR=$ac_cv_prog_ac_ct_AR
6747if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6749$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6750else
81ecdfbb
RW
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
7357c5b6 6753fi
d7040cdb 6754
81ecdfbb
RW
6755 if test "x$ac_ct_AR" = x; then
6756 AR="false"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759yes:)
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762ac_tool_warned=yes ;;
6763esac
6764 AR=$ac_ct_AR
6765 fi
7357c5b6
AM
6766else
6767 AR="$ac_cv_prog_AR"
6768fi
d7040cdb 6769
7357c5b6 6770test -z "$AR" && AR=ar
a4966cd9
L
6771if test -n "$plugin_option"; then
6772 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6773 touch conftest.c
6774 $AR $plugin_option rc conftest.a conftest.c
6775 if test "$?" != 0; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6777$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6778 else
6779 AR="$AR $plugin_option"
6780 fi
6781 rm -f conftest.*
a4966cd9
L
6782 fi
6783fi
7357c5b6 6784test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6785
6786
6787
20e95c23 6788
d7040cdb 6789
d7040cdb
SE
6790
6791
6792
6793
6794
6795
7357c5b6
AM
6796if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6798set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6801if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6802 $as_echo_n "(cached) " >&6
7357c5b6
AM
6803else
6804 if test -n "$STRIP"; then
6805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
81ecdfbb 6812 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6816 break 2
ce2cded5 6817 fi
7357c5b6 6818done
81ecdfbb
RW
6819 done
6820IFS=$as_save_IFS
d7040cdb 6821
7357c5b6
AM
6822fi
6823fi
6824STRIP=$ac_cv_prog_STRIP
6825if test -n "$STRIP"; then
81ecdfbb
RW
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6827$as_echo "$STRIP" >&6; }
7357c5b6 6828else
81ecdfbb
RW
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830$as_echo "no" >&6; }
7357c5b6
AM
6831fi
6832
81ecdfbb 6833
7357c5b6
AM
6834fi
6835if test -z "$ac_cv_prog_STRIP"; then
6836 ac_ct_STRIP=$STRIP
6837 # Extract the first word of "strip", so it can be a program name with args.
6838set dummy strip; ac_word=$2
81ecdfbb
RW
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6841if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6842 $as_echo_n "(cached) " >&6
7357c5b6
AM
6843else
6844 if test -n "$ac_ct_STRIP"; then
6845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
81ecdfbb 6852 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6854 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6856 break 2
ce2cded5 6857 fi
7357c5b6 6858done
81ecdfbb
RW
6859 done
6860IFS=$as_save_IFS
d7040cdb 6861
7357c5b6
AM
6862fi
6863fi
6864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6865if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6867$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6868else
81ecdfbb
RW
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870$as_echo "no" >&6; }
7357c5b6 6871fi
d7040cdb 6872
81ecdfbb
RW
6873 if test "x$ac_ct_STRIP" = x; then
6874 STRIP=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877yes:)
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880ac_tool_warned=yes ;;
6881esac
6882 STRIP=$ac_ct_STRIP
6883 fi
7357c5b6
AM
6884else
6885 STRIP="$ac_cv_prog_STRIP"
6886fi
d7040cdb 6887
7357c5b6 6888test -z "$STRIP" && STRIP=:
d7040cdb 6889
d7040cdb
SE
6890
6891
6892
d7040cdb 6893
7357c5b6
AM
6894
6895if test -n "$ac_tool_prefix"; then
6896 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6900if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6901 $as_echo_n "(cached) " >&6
ce2cded5 6902else
7357c5b6
AM
6903 if test -n "$RANLIB"; then
6904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
ce2cded5 6908do
7357c5b6
AM
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
81ecdfbb 6911 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6913 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6915 break 2
ce2cded5 6916 fi
7357c5b6 6917done
81ecdfbb
RW
6918 done
6919IFS=$as_save_IFS
7357c5b6 6920
ce2cded5 6921fi
7357c5b6
AM
6922fi
6923RANLIB=$ac_cv_prog_RANLIB
6924if test -n "$RANLIB"; then
81ecdfbb
RW
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6926$as_echo "$RANLIB" >&6; }
ce2cded5 6927else
81ecdfbb
RW
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
ce2cded5 6930fi
d7040cdb 6931
81ecdfbb 6932
7357c5b6
AM
6933fi
6934if test -z "$ac_cv_prog_RANLIB"; then
6935 ac_ct_RANLIB=$RANLIB
6936 # Extract the first word of "ranlib", so it can be a program name with args.
6937set dummy ranlib; ac_word=$2
81ecdfbb
RW
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6940if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6941 $as_echo_n "(cached) " >&6
ce2cded5 6942else
7357c5b6
AM
6943 if test -n "$ac_ct_RANLIB"; then
6944 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
81ecdfbb 6951 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6953 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6955 break 2
6956 fi
6957done
81ecdfbb
RW
6958 done
6959IFS=$as_save_IFS
7357c5b6 6960
ce2cded5 6961fi
7357c5b6
AM
6962fi
6963ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6964if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6966$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 6967else
81ecdfbb
RW
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
ce2cded5 6970fi
d7040cdb 6971
81ecdfbb
RW
6972 if test "x$ac_ct_RANLIB" = x; then
6973 RANLIB=":"
6974 else
6975 case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981 RANLIB=$ac_ct_RANLIB
6982 fi
7357c5b6
AM
6983else
6984 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 6985fi
d7040cdb 6986
7357c5b6 6987test -z "$RANLIB" && RANLIB=:
a4966cd9
L
6988if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6989 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6990 RANLIB="$RANLIB $plugin_option"
6991 fi
6992fi
d7040cdb 6993
7357c5b6
AM
6994
6995
6996
6997
6998
6999# Determine commands to create old-style static archives.
b214d478 7000old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7001old_postinstall_cmds='chmod 644 $oldlib'
7002old_postuninstall_cmds=
7003
7004if test -n "$RANLIB"; then
7005 case $host_os in
7006 openbsd*)
7007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7008 ;;
7009 *)
7010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7011 ;;
7012 esac
7013 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7014fi
7357c5b6 7015
3725885a
RW
7016case $host_os in
7017 darwin*)
7018 lock_old_archive_extraction=yes ;;
7019 *)
7020 lock_old_archive_extraction=no ;;
7021esac
7022
7023
7024
7025
7026
7027
7357c5b6
AM
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061# If no C compiler was specified, use CC.
7062LTCC=${LTCC-"$CC"}
7063
7064# If no C compiler flags were specified, use CFLAGS.
7065LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7066
7067# Allow CC to be a program name with arguments.
7068compiler=$CC
7069
7070
7071# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7073$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7074if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 7075 $as_echo_n "(cached) " >&6
ce2cded5 7076else
d7040cdb 7077
7357c5b6
AM
7078# These are sane defaults that work on at least a few old systems.
7079# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7080
7357c5b6
AM
7081# Character class describing NM global symbol codes.
7082symcode='[BCDEGRST]'
7083
7084# Regexp to match symbols that can be accessed directly from C.
7085sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7086
7087# Define system-specific variables.
7088case $host_os in
7089aix*)
7090 symcode='[BCDT]'
7091 ;;
b214d478 7092cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7093 symcode='[ABCDGISTW]'
7094 ;;
7095hpux*)
7096 if test "$host_cpu" = ia64; then
7097 symcode='[ABCDEGRST]'
ce2cded5 7098 fi
7357c5b6
AM
7099 ;;
7100irix* | nonstopux*)
7101 symcode='[BCDEGRST]'
7102 ;;
7103osf*)
7104 symcode='[BCDEGQRST]'
7105 ;;
7106solaris*)
b9004024 7107 symcode='[BCDRT]'
7357c5b6
AM
7108 ;;
7109sco3.2v5*)
7110 symcode='[DT]'
7111 ;;
7112sysv4.2uw2*)
7113 symcode='[DT]'
7114 ;;
7115sysv5* | sco5v6* | unixware* | OpenUNIX*)
7116 symcode='[ABDT]'
7117 ;;
7118sysv4)
7119 symcode='[DFNSTU]'
7120 ;;
7121esac
d7040cdb 7122
7357c5b6
AM
7123# If we're using GNU nm, then use its standard symbol codes.
7124case `$NM -V 2>&1` in
7125*GNU* | *'with BFD'*)
7126 symcode='[ABCDGIRSTW]' ;;
7127esac
d7040cdb 7128
7357c5b6
AM
7129# Transform an extracted symbol line into a proper C declaration.
7130# Some systems (esp. on ia64) link data and code symbols differently,
7131# so use this general approach.
7132lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7133
7134# Transform an extracted symbol line into symbol name and symbol address
7135lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7136lt_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
7137
7138# Handle CRLF in mingw tool chain
7139opt_cr=
7140case $build_os in
7141mingw*)
7142 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7143 ;;
7144esac
d7040cdb 7145
7357c5b6
AM
7146# Try without a prefix underscore, then with it.
7147for ac_symprfx in "" "_"; do
d7040cdb 7148
7357c5b6
AM
7149 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7150 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7151
7357c5b6
AM
7152 # Write the raw and C identifiers.
7153 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7154 # Fake it for dumpbin and say T for any non-static function
7155 # and D for any global variable.
7156 # Also find C++ and __fastcall symbols from MSVC++,
7157 # which start with @ or ?.
7158 lt_cv_sys_global_symbol_pipe="$AWK '"\
7159" {last_section=section; section=\$ 3};"\
7160" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7161" \$ 0!~/External *\|/{next};"\
7162" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7163" {if(hide[section]) next};"\
7164" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7165" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7166" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7167" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7168" ' prfx=^$ac_symprfx"
7169 else
7170 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7171 fi
d7040cdb 7172
7357c5b6
AM
7173 # Check to see that the pipe works correctly.
7174 pipe_works=no
d7040cdb 7175
7357c5b6
AM
7176 rm -f conftest*
7177 cat > conftest.$ac_ext <<_LT_EOF
7178#ifdef __cplusplus
7179extern "C" {
7180#endif
7181char nm_test_var;
7182void nm_test_func(void);
7183void nm_test_func(void){}
7184#ifdef __cplusplus
20e95c23 7185}
7357c5b6
AM
7186#endif
7187int main(){nm_test_var='a';nm_test_func();return(0);}
7188_LT_EOF
7189
81ecdfbb 7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7191 (eval $ac_compile) 2>&5
20e95c23 7192 ac_status=$?
81ecdfbb
RW
7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7194 test $ac_status = 0; }; then
7357c5b6
AM
7195 # Now try to grab the symbols.
7196 nlist=conftest.nm
3725885a
RW
7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7198 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7199 ac_status=$?
81ecdfbb
RW
7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7202 # Try sorting and uniquifying the output.
7203 if sort "$nlist" | uniq > "$nlist"T; then
7204 mv -f "$nlist"T "$nlist"
7205 else
7206 rm -f "$nlist"T
7207 fi
d7040cdb 7208
7357c5b6
AM
7209 # Make sure that we snagged all the symbols we need.
7210 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7211 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7212 cat <<_LT_EOF > conftest.$ac_ext
7213#ifdef __cplusplus
7214extern "C" {
7215#endif
ce2cded5 7216
7357c5b6
AM
7217_LT_EOF
7218 # Now generate the symbol file.
7219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7220
7357c5b6 7221 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7222
7357c5b6
AM
7223/* The mapping between symbol names and symbols. */
7224const struct {
7225 const char *name;
7226 void *address;
7227}
7228lt__PROGRAM__LTX_preloaded_symbols[] =
7229{
7230 { "@PROGRAM@", (void *) 0 },
7231_LT_EOF
7232 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7233 cat <<\_LT_EOF >> conftest.$ac_ext
7234 {0, (void *) 0}
7235};
d7040cdb 7236
7357c5b6
AM
7237/* This works around a problem in FreeBSD linker */
7238#ifdef FREEBSD_WORKAROUND
7239static const void *lt_preloaded_setup() {
7240 return lt__PROGRAM__LTX_preloaded_symbols;
7241}
ce2cded5 7242#endif
42ecbf5e 7243
7357c5b6 7244#ifdef __cplusplus
ce2cded5 7245}
7357c5b6
AM
7246#endif
7247_LT_EOF
7248 # Now try linking the two files.
7249 mv conftest.$ac_objext conftstm.$ac_objext
7250 lt_save_LIBS="$LIBS"
7251 lt_save_CFLAGS="$CFLAGS"
7252 LIBS="conftstm.$ac_objext"
7253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7255 (eval $ac_link) 2>&5
7256 ac_status=$?
81ecdfbb
RW
7257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7258 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7259 pipe_works=yes
7260 fi
7261 LIBS="$lt_save_LIBS"
7262 CFLAGS="$lt_save_CFLAGS"
7263 else
7264 echo "cannot find nm_test_func in $nlist" >&5
7265 fi
7266 else
7267 echo "cannot find nm_test_var in $nlist" >&5
7268 fi
7269 else
7270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7271 fi
7272 else
7273 echo "$progname: failed program was:" >&5
7274 cat conftest.$ac_ext >&5
7275 fi
b214d478 7276 rm -rf conftest* conftst*
7357c5b6
AM
7277
7278 # Do not use the global_symbol_pipe unless it works.
7279 if test "$pipe_works" = yes; then
7280 break
7281 else
7282 lt_cv_sys_global_symbol_pipe=
7283 fi
7284done
42ecbf5e 7285
ce2cded5 7286fi
7357c5b6
AM
7287
7288if test -z "$lt_cv_sys_global_symbol_pipe"; then
7289 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7290fi
7357c5b6 7291if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7293$as_echo "failed" >&6; }
7357c5b6 7294else
81ecdfbb
RW
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7296$as_echo "ok" >&6; }
ce2cded5 7297fi
e5a52504 7298
d7040cdb 7299
e5a52504 7300
d7040cdb 7301
d7040cdb 7302
d7040cdb 7303
d7040cdb 7304
d7040cdb 7305
d7040cdb 7306
d7040cdb 7307
d7040cdb 7308
d7040cdb 7309
7357c5b6
AM
7310
7311
7312
b214d478
SE
7313
7314
7315
7316
7317
7357c5b6
AM
7318
7319
81ecdfbb
RW
7320# Check whether --enable-libtool-lock was given.
7321if test "${enable_libtool_lock+set}" = set; then :
7322 enableval=$enable_libtool_lock;
7323fi
7357c5b6 7324
7357c5b6
AM
7325test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7326
7327# Some flags need to be propagated to the compiler or linker for good
7328# libtool support.
7329case $host in
7330ia64-*-hpux*)
7331 # Find out which ABI we are using.
7332 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7334 (eval $ac_compile) 2>&5
7335 ac_status=$?
81ecdfbb
RW
7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; }; then
7357c5b6
AM
7338 case `/usr/bin/file conftest.$ac_objext` in
7339 *ELF-32*)
7340 HPUX_IA64_MODE="32"
7341 ;;
7342 *ELF-64*)
7343 HPUX_IA64_MODE="64"
7344 ;;
7345 esac
7346 fi
7347 rm -rf conftest*
7348 ;;
7349*-*-irix6*)
7350 # Find out which ABI we are using.
3725885a 7351 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7353 (eval $ac_compile) 2>&5
7354 ac_status=$?
81ecdfbb
RW
7355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; }; then
7357c5b6
AM
7357 if test "$lt_cv_prog_gnu_ld" = yes; then
7358 case `/usr/bin/file conftest.$ac_objext` in
7359 *32-bit*)
7360 LD="${LD-ld} -melf32bsmip"
7361 ;;
7362 *N32*)
7363 LD="${LD-ld} -melf32bmipn32"
7364 ;;
7365 *64-bit*)
7366 LD="${LD-ld} -melf64bmip"
7367 ;;
7368 esac
7369 else
7370 case `/usr/bin/file conftest.$ac_objext` in
7371 *32-bit*)
7372 LD="${LD-ld} -32"
7373 ;;
7374 *N32*)
7375 LD="${LD-ld} -n32"
7376 ;;
7377 *64-bit*)
7378 LD="${LD-ld} -64"
7379 ;;
7380 esac
7381 fi
7382 fi
7383 rm -rf conftest*
7384 ;;
7385
cc9afea3 7386x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7387s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7388 # Find out which ABI we are using.
7389 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7391 (eval $ac_compile) 2>&5
7392 ac_status=$?
81ecdfbb
RW
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; }; then
7357c5b6
AM
7395 case `/usr/bin/file conftest.o` in
7396 *32-bit*)
7397 case $host in
7398 x86_64-*kfreebsd*-gnu)
7399 LD="${LD-ld} -m elf_i386_fbsd"
7400 ;;
7401 x86_64-*linux*)
6d2920c8
L
7402 case `/usr/bin/file conftest.o` in
7403 *x86-64*)
7404 LD="${LD-ld} -m elf32_x86_64"
7405 ;;
7406 *)
7407 LD="${LD-ld} -m elf_i386"
7408 ;;
7409 esac
7357c5b6 7410 ;;
cc9afea3
AM
7411 powerpc64le-*linux*)
7412 LD="${LD-ld} -m elf32lppclinux"
7413 ;;
7414 powerpc64-*linux*)
7357c5b6
AM
7415 LD="${LD-ld} -m elf32ppclinux"
7416 ;;
7417 s390x-*linux*)
7418 LD="${LD-ld} -m elf_s390"
7419 ;;
7420 sparc64-*linux*)
7421 LD="${LD-ld} -m elf32_sparc"
7422 ;;
7423 esac
7424 ;;
7425 *64-bit*)
7426 case $host in
7427 x86_64-*kfreebsd*-gnu)
7428 LD="${LD-ld} -m elf_x86_64_fbsd"
7429 ;;
7430 x86_64-*linux*)
7431 LD="${LD-ld} -m elf_x86_64"
7432 ;;
cc9afea3
AM
7433 powerpcle-*linux*)
7434 LD="${LD-ld} -m elf64lppc"
7435 ;;
7436 powerpc-*linux*)
7357c5b6
AM
7437 LD="${LD-ld} -m elf64ppc"
7438 ;;
7439 s390*-*linux*|s390*-*tpf*)
7440 LD="${LD-ld} -m elf64_s390"
7441 ;;
7442 sparc*-*linux*)
7443 LD="${LD-ld} -m elf64_sparc"
7444 ;;
7445 esac
7446 ;;
7447 esac
7448 fi
7449 rm -rf conftest*
7450 ;;
7451
7452*-*-sco3.2v5*)
7453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7454 SAVE_CFLAGS="$CFLAGS"
7455 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7457$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7458if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7459 $as_echo_n "(cached) " >&6
ce2cded5 7460else
7357c5b6
AM
7461 ac_ext=c
7462ac_cpp='$CPP $CPPFLAGS'
7463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7465ac_compiler_gnu=$ac_cv_c_compiler_gnu
7466
81ecdfbb 7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7468/* end confdefs.h. */
d7040cdb 7469
7357c5b6
AM
7470int
7471main ()
7472{
7473
7474 ;
7475 return 0;
7476}
ce2cded5 7477_ACEOF
81ecdfbb 7478if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7479 lt_cv_cc_needs_belf=yes
ce2cded5 7480else
81ecdfbb 7481 lt_cv_cc_needs_belf=no
ce2cded5 7482fi
81ecdfbb
RW
7483rm -f core conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7485 ac_ext=c
7486ac_cpp='$CPP $CPPFLAGS'
7487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7490
b214d478 7491fi
81ecdfbb
RW
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7493$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7494 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7496 CFLAGS="$SAVE_CFLAGS"
7497 fi
7498 ;;
7499sparc*-*solaris*)
7500 # Find out which ABI we are using.
7501 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7503 (eval $ac_compile) 2>&5
7504 ac_status=$?
81ecdfbb
RW
7505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7506 test $ac_status = 0; }; then
b214d478
SE
7507 case `/usr/bin/file conftest.o` in
7508 *64-bit*)
7509 case $lt_cv_prog_gnu_ld in
7510 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7511 *)
7512 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7513 LD="${LD-ld} -64"
7514 fi
7515 ;;
7516 esac
7517 ;;
7518 esac
7519 fi
7520 rm -rf conftest*
7521 ;;
7522esac
7523
7524need_locks="$enable_libtool_lock"
7525
7526
7527 case $host_os in
7528 rhapsody* | darwin*)
7529 if test -n "$ac_tool_prefix"; then
7530 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7531set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7534if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7535 $as_echo_n "(cached) " >&6
b214d478
SE
7536else
7537 if test -n "$DSYMUTIL"; then
7538 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7539else
7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543 IFS=$as_save_IFS
7544 test -z "$as_dir" && as_dir=.
81ecdfbb 7545 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7547 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7549 break 2
7550 fi
7551done
81ecdfbb
RW
7552 done
7553IFS=$as_save_IFS
b214d478
SE
7554
7555fi
7556fi
7557DSYMUTIL=$ac_cv_prog_DSYMUTIL
7558if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7560$as_echo "$DSYMUTIL" >&6; }
b214d478 7561else
81ecdfbb
RW
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563$as_echo "no" >&6; }
b214d478
SE
7564fi
7565
81ecdfbb 7566
b214d478
SE
7567fi
7568if test -z "$ac_cv_prog_DSYMUTIL"; then
7569 ac_ct_DSYMUTIL=$DSYMUTIL
7570 # Extract the first word of "dsymutil", so it can be a program name with args.
7571set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7574if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7575 $as_echo_n "(cached) " >&6
b214d478
SE
7576else
7577 if test -n "$ac_ct_DSYMUTIL"; then
7578 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7579else
7580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
81ecdfbb 7585 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7587 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7589 break 2
7590 fi
7591done
81ecdfbb
RW
7592 done
7593IFS=$as_save_IFS
b214d478 7594
b214d478
SE
7595fi
7596fi
7597ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7598if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7600$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7601else
81ecdfbb
RW
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603$as_echo "no" >&6; }
b214d478
SE
7604fi
7605
81ecdfbb
RW
7606 if test "x$ac_ct_DSYMUTIL" = x; then
7607 DSYMUTIL=":"
7608 else
7609 case $cross_compiling:$ac_tool_warned in
7610yes:)
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613ac_tool_warned=yes ;;
7614esac
7615 DSYMUTIL=$ac_ct_DSYMUTIL
7616 fi
b214d478
SE
7617else
7618 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7619fi
7620
7621 if test -n "$ac_tool_prefix"; then
7622 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7623set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7626if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7627 $as_echo_n "(cached) " >&6
b214d478
SE
7628else
7629 if test -n "$NMEDIT"; then
7630 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7631else
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
81ecdfbb 7637 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7639 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7641 break 2
7642 fi
7643done
81ecdfbb
RW
7644 done
7645IFS=$as_save_IFS
b214d478
SE
7646
7647fi
7648fi
7649NMEDIT=$ac_cv_prog_NMEDIT
7650if test -n "$NMEDIT"; then
81ecdfbb
RW
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7652$as_echo "$NMEDIT" >&6; }
b214d478 7653else
81ecdfbb
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
b214d478
SE
7656fi
7657
81ecdfbb 7658
b214d478
SE
7659fi
7660if test -z "$ac_cv_prog_NMEDIT"; then
7661 ac_ct_NMEDIT=$NMEDIT
7662 # Extract the first word of "nmedit", so it can be a program name with args.
7663set dummy nmedit; ac_word=$2
81ecdfbb
RW
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7666if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7667 $as_echo_n "(cached) " >&6
b214d478
SE
7668else
7669 if test -n "$ac_ct_NMEDIT"; then
7670 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7671else
7672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
81ecdfbb 7677 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7679 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7681 break 2
7682 fi
7683done
81ecdfbb
RW
7684 done
7685IFS=$as_save_IFS
b214d478 7686
b214d478
SE
7687fi
7688fi
7689ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7690if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7692$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7693else
81ecdfbb
RW
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695$as_echo "no" >&6; }
b214d478
SE
7696fi
7697
81ecdfbb
RW
7698 if test "x$ac_ct_NMEDIT" = x; then
7699 NMEDIT=":"
7700 else
7701 case $cross_compiling:$ac_tool_warned in
7702yes:)
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7705ac_tool_warned=yes ;;
7706esac
7707 NMEDIT=$ac_ct_NMEDIT
7708 fi
b214d478
SE
7709else
7710 NMEDIT="$ac_cv_prog_NMEDIT"
7711fi
7712
7713 if test -n "$ac_tool_prefix"; then
7714 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7715set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7717$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7718if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7719 $as_echo_n "(cached) " >&6
b214d478
SE
7720else
7721 if test -n "$LIPO"; then
7722 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727 IFS=$as_save_IFS
7728 test -z "$as_dir" && as_dir=.
81ecdfbb 7729 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7731 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7733 break 2
7734 fi
7735done
81ecdfbb
RW
7736 done
7737IFS=$as_save_IFS
b214d478
SE
7738
7739fi
7740fi
7741LIPO=$ac_cv_prog_LIPO
7742if test -n "$LIPO"; then
81ecdfbb
RW
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7744$as_echo "$LIPO" >&6; }
b214d478 7745else
81ecdfbb
RW
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747$as_echo "no" >&6; }
b214d478
SE
7748fi
7749
81ecdfbb 7750
b214d478
SE
7751fi
7752if test -z "$ac_cv_prog_LIPO"; then
7753 ac_ct_LIPO=$LIPO
7754 # Extract the first word of "lipo", so it can be a program name with args.
7755set dummy lipo; ac_word=$2
81ecdfbb
RW
7756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7758if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7759 $as_echo_n "(cached) " >&6
b214d478
SE
7760else
7761 if test -n "$ac_ct_LIPO"; then
7762 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7763else
7764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765for as_dir in $PATH
7766do
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
81ecdfbb 7769 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7771 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7773 break 2
7774 fi
7775done
81ecdfbb
RW
7776 done
7777IFS=$as_save_IFS
b214d478 7778
b214d478
SE
7779fi
7780fi
7781ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7782if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7784$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7785else
81ecdfbb
RW
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787$as_echo "no" >&6; }
b214d478
SE
7788fi
7789
81ecdfbb
RW
7790 if test "x$ac_ct_LIPO" = x; then
7791 LIPO=":"
7792 else
7793 case $cross_compiling:$ac_tool_warned in
7794yes:)
7795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7797ac_tool_warned=yes ;;
7798esac
7799 LIPO=$ac_ct_LIPO
7800 fi
b214d478
SE
7801else
7802 LIPO="$ac_cv_prog_LIPO"
7803fi
7804
7805 if test -n "$ac_tool_prefix"; then
7806 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7810if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7811 $as_echo_n "(cached) " >&6
b214d478
SE
7812else
7813 if test -n "$OTOOL"; then
7814 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819 IFS=$as_save_IFS
7820 test -z "$as_dir" && as_dir=.
81ecdfbb 7821 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7823 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7825 break 2
7826 fi
7827done
81ecdfbb
RW
7828 done
7829IFS=$as_save_IFS
b214d478
SE
7830
7831fi
7832fi
7833OTOOL=$ac_cv_prog_OTOOL
7834if test -n "$OTOOL"; then
81ecdfbb
RW
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7836$as_echo "$OTOOL" >&6; }
b214d478 7837else
81ecdfbb
RW
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
b214d478
SE
7840fi
7841
81ecdfbb 7842
b214d478
SE
7843fi
7844if test -z "$ac_cv_prog_OTOOL"; then
7845 ac_ct_OTOOL=$OTOOL
7846 # Extract the first word of "otool", so it can be a program name with args.
7847set dummy otool; ac_word=$2
81ecdfbb
RW
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7850if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7851 $as_echo_n "(cached) " >&6
b214d478
SE
7852else
7853 if test -n "$ac_ct_OTOOL"; then
7854 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
81ecdfbb 7861 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7863 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7865 break 2
7866 fi
7867done
81ecdfbb
RW
7868 done
7869IFS=$as_save_IFS
b214d478 7870
b214d478
SE
7871fi
7872fi
7873ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7874if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7876$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7877else
81ecdfbb
RW
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
b214d478
SE
7880fi
7881
81ecdfbb
RW
7882 if test "x$ac_ct_OTOOL" = x; then
7883 OTOOL=":"
7884 else
7885 case $cross_compiling:$ac_tool_warned in
7886yes:)
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889ac_tool_warned=yes ;;
7890esac
7891 OTOOL=$ac_ct_OTOOL
7892 fi
b214d478
SE
7893else
7894 OTOOL="$ac_cv_prog_OTOOL"
7895fi
7896
7897 if test -n "$ac_tool_prefix"; then
7898 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7899set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7902if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7903 $as_echo_n "(cached) " >&6
b214d478
SE
7904else
7905 if test -n "$OTOOL64"; then
7906 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
81ecdfbb 7913 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7915 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7917 break 2
7918 fi
7919done
81ecdfbb
RW
7920 done
7921IFS=$as_save_IFS
b214d478
SE
7922
7923fi
7924fi
7925OTOOL64=$ac_cv_prog_OTOOL64
7926if test -n "$OTOOL64"; then
81ecdfbb
RW
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7928$as_echo "$OTOOL64" >&6; }
b214d478 7929else
81ecdfbb
RW
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
b214d478
SE
7932fi
7933
81ecdfbb 7934
b214d478
SE
7935fi
7936if test -z "$ac_cv_prog_OTOOL64"; then
7937 ac_ct_OTOOL64=$OTOOL64
7938 # Extract the first word of "otool64", so it can be a program name with args.
7939set dummy otool64; ac_word=$2
81ecdfbb
RW
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7942if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7943 $as_echo_n "(cached) " >&6
b214d478
SE
7944else
7945 if test -n "$ac_ct_OTOOL64"; then
7946 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
81ecdfbb 7953 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7955 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7957 break 2
7958 fi
7959done
81ecdfbb
RW
7960 done
7961IFS=$as_save_IFS
b214d478 7962
b214d478
SE
7963fi
7964fi
7965ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7966if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7968$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 7969else
81ecdfbb
RW
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
b214d478
SE
7972fi
7973
81ecdfbb
RW
7974 if test "x$ac_ct_OTOOL64" = x; then
7975 OTOOL64=":"
7976 else
7977 case $cross_compiling:$ac_tool_warned in
7978yes:)
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981ac_tool_warned=yes ;;
7982esac
7983 OTOOL64=$ac_ct_OTOOL64
7984 fi
b214d478
SE
7985else
7986 OTOOL64="$ac_cv_prog_OTOOL64"
7987fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
81ecdfbb
RW
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8016$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8017if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 8018 $as_echo_n "(cached) " >&6
b214d478
SE
8019else
8020 lt_cv_apple_cc_single_mod=no
8021 if test -z "${LT_MULTI_MODULE}"; then
8022 # By default we will add the -single_module flag. You can override
8023 # by either setting the environment variable LT_MULTI_MODULE
8024 # non-empty at configure time, or by adding -multi_module to the
8025 # link flags.
8026 rm -rf libconftest.dylib*
8027 echo "int foo(void){return 1;}" > conftest.c
8028 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8029-dynamiclib -Wl,-single_module conftest.c" >&5
8030 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8031 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8032 _lt_result=$?
8033 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8034 lt_cv_apple_cc_single_mod=yes
8035 else
8036 cat conftest.err >&5
8037 fi
8038 rm -rf libconftest.dylib*
8039 rm -f conftest.*
8040 fi
8041fi
81ecdfbb
RW
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8043$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8045$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8046if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 8047 $as_echo_n "(cached) " >&6
b214d478
SE
8048else
8049 lt_cv_ld_exported_symbols_list=no
8050 save_LDFLAGS=$LDFLAGS
8051 echo "_main" > conftest.sym
8052 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8054/* end confdefs.h. */
8055
8056int
8057main ()
8058{
8059
8060 ;
8061 return 0;
8062}
8063_ACEOF
81ecdfbb 8064if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8065 lt_cv_ld_exported_symbols_list=yes
8066else
81ecdfbb 8067 lt_cv_ld_exported_symbols_list=no
b214d478 8068fi
81ecdfbb
RW
8069rm -f core conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8071 LDFLAGS="$save_LDFLAGS"
8072
8073fi
81ecdfbb
RW
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8075$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8077$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8078if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
8079 $as_echo_n "(cached) " >&6
8080else
8081 lt_cv_ld_force_load=no
8082 cat > conftest.c << _LT_EOF
8083int forced_loaded() { return 2;}
8084_LT_EOF
8085 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8086 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8087 echo "$AR cru libconftest.a conftest.o" >&5
8088 $AR cru libconftest.a conftest.o 2>&5
8089 cat > conftest.c << _LT_EOF
8090int main() { return 0;}
8091_LT_EOF
8092 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8093 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8094 _lt_result=$?
8095 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8096 lt_cv_ld_force_load=yes
8097 else
8098 cat conftest.err >&5
8099 fi
8100 rm -f conftest.err libconftest.a conftest conftest.c
8101 rm -rf conftest.dSYM
8102
8103fi
8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8105$as_echo "$lt_cv_ld_force_load" >&6; }
b214d478
SE
8106 case $host_os in
8107 rhapsody* | darwin1.[012])
8108 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8109 darwin1.*)
8110 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8111 darwin*) # darwin 5.x on
8112 # if running on 10.5 or later, the deployment target defaults
8113 # to the OS version, if on x86, and 10.4, the deployment
8114 # target defaults to 10.4. Don't you love it?
8115 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8116 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8117 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 8118 10.[012][,.]*)
b214d478
SE
8119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8120 10.*)
8121 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8122 esac
8123 ;;
8124 esac
8125 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8126 _lt_dar_single_mod='$single_module'
8127 fi
8128 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8129 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8130 else
8131 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8132 fi
3725885a 8133 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8134 _lt_dsymutil='~$DSYMUTIL $lib || :'
8135 else
8136 _lt_dsymutil=
8137 fi
8138 ;;
8139 esac
8140
b214d478 8141for ac_header in dlfcn.h
81ecdfbb
RW
8142do :
8143 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8144"
d0ac1c44 8145if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b214d478 8146 cat >>confdefs.h <<_ACEOF
81ecdfbb 8147#define HAVE_DLFCN_H 1
b214d478
SE
8148_ACEOF
8149
8150fi
8151
8152done
8153
8154
8155
3725885a
RW
8156
8157
3cb62297 8158
b214d478
SE
8159# Set options
8160
8161
8162
8163 enable_dlopen=no
8164
8165
8166 enable_win32_dll=no
8167
8168
81ecdfbb
RW
8169 # Check whether --enable-shared was given.
8170if test "${enable_shared+set}" = set; then :
8171 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8172 case $enableval in
8173 yes) enable_shared=yes ;;
8174 no) enable_shared=no ;;
8175 *)
8176 enable_shared=no
8177 # Look at the argument we got. We use all the common list separators.
8178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8179 for pkg in $enableval; do
8180 IFS="$lt_save_ifs"
8181 if test "X$pkg" = "X$p"; then
8182 enable_shared=yes
8183 fi
8184 done
8185 IFS="$lt_save_ifs"
8186 ;;
8187 esac
8188else
8189 enable_shared=yes
81ecdfbb 8190fi
b214d478
SE
8191
8192
8193
8194
8195
8196
8197
8198
81ecdfbb
RW
8199
8200 # Check whether --enable-static was given.
8201if test "${enable_static+set}" = set; then :
8202 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8203 case $enableval in
8204 yes) enable_static=yes ;;
8205 no) enable_static=no ;;
8206 *)
8207 enable_static=no
8208 # Look at the argument we got. We use all the common list separators.
8209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8210 for pkg in $enableval; do
8211 IFS="$lt_save_ifs"
8212 if test "X$pkg" = "X$p"; then
8213 enable_static=yes
8214 fi
8215 done
8216 IFS="$lt_save_ifs"
8217 ;;
8218 esac
8219else
8220 enable_static=yes
81ecdfbb 8221fi
b214d478
SE
8222
8223
8224
8225
8226
8227
8228
8229
8230
81ecdfbb
RW
8231
8232# Check whether --with-pic was given.
8233if test "${with_pic+set}" = set; then :
8234 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8235else
8236 pic_mode=default
81ecdfbb
RW
8237fi
8238
b214d478
SE
8239
8240test -z "$pic_mode" && pic_mode=default
8241
8242
8243
8244
8245
8246
8247
81ecdfbb
RW
8248 # Check whether --enable-fast-install was given.
8249if test "${enable_fast_install+set}" = set; then :
8250 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8251 case $enableval in
8252 yes) enable_fast_install=yes ;;
8253 no) enable_fast_install=no ;;
8254 *)
8255 enable_fast_install=no
8256 # Look at the argument we got. We use all the common list separators.
8257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8258 for pkg in $enableval; do
8259 IFS="$lt_save_ifs"
8260 if test "X$pkg" = "X$p"; then
8261 enable_fast_install=yes
8262 fi
8263 done
8264 IFS="$lt_save_ifs"
7357c5b6
AM
8265 ;;
8266 esac
b214d478
SE
8267else
8268 enable_fast_install=yes
81ecdfbb
RW
8269fi
8270
ce2cded5 8271
ce2cded5
L
8272
8273
ce2cded5 8274
42ecbf5e 8275
d7040cdb 8276
d7040cdb 8277
d7040cdb 8278
d7040cdb 8279
d7040cdb 8280
ce2cded5
L
8281# This can be used to rebuild libtool when needed
8282LIBTOOL_DEPS="$ltmain"
d7040cdb 8283
ce2cded5
L
8284# Always use our own libtool.
8285LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8286
d7040cdb 8287
d7040cdb 8288
d7040cdb 8289
d7040cdb 8290
d7040cdb 8291
d7040cdb 8292
d7040cdb 8293
d7040cdb 8294
d7040cdb 8295
d7040cdb 8296
d7040cdb 8297
d7040cdb 8298
d7040cdb 8299
d7040cdb 8300
d7040cdb 8301
d7040cdb
SE
8302
8303
8304
8305
8306
8307
8308
3725885a 8309
d7040cdb
SE
8310
8311
ce2cded5 8312test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8313
8314
8315
8316
8317
8318
d7040cdb
SE
8319
8320
8321
8322
8323
8324
8325
8326
ce2cded5
L
8327if test -n "${ZSH_VERSION+set}" ; then
8328 setopt NO_GLOB_SUBST
8329fi
d7040cdb 8330
81ecdfbb
RW
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8332$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8333if ${lt_cv_objdir+:} false; then :
81ecdfbb 8334 $as_echo_n "(cached) " >&6
ce2cded5
L
8335else
8336 rm -f .libs 2>/dev/null
8337mkdir .libs 2>/dev/null
8338if test -d .libs; then
8339 lt_cv_objdir=.libs
8340else
8341 # MS-DOS does not allow filenames that begin with a dot.
8342 lt_cv_objdir=_libs
8343fi
8344rmdir .libs 2>/dev/null
8345fi
81ecdfbb
RW
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8347$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8348objdir=$lt_cv_objdir
d7040cdb
SE
8349
8350
8351
8352
8353
ce2cded5
L
8354cat >>confdefs.h <<_ACEOF
8355#define LT_OBJDIR "$lt_cv_objdir/"
8356_ACEOF
d7040cdb
SE
8357
8358
8359
8360
ce2cded5
L
8361case $host_os in
8362aix3*)
8363 # AIX sometimes has problems with the GCC collect2 program. For some
8364 # reason, if we set the COLLECT_NAMES environment variable, the problems
8365 # vanish in a puff of smoke.
8366 if test "X${COLLECT_NAMES+set}" != Xset; then
8367 COLLECT_NAMES=
8368 export COLLECT_NAMES
8369 fi
8370 ;;
8371esac
d7040cdb 8372
ce2cded5
L
8373# Global variables:
8374ofile=libtool
8375can_build_shared=yes
d7040cdb 8376
ce2cded5
L
8377# All known linkers require a `.a' archive for static linking (except MSVC,
8378# which needs '.lib').
8379libext=a
d7040cdb 8380
ce2cded5 8381with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8382
ce2cded5
L
8383old_CC="$CC"
8384old_CFLAGS="$CFLAGS"
d7040cdb 8385
ce2cded5
L
8386# Set sane defaults for various variables
8387test -z "$CC" && CC=cc
8388test -z "$LTCC" && LTCC=$CC
8389test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8390test -z "$LD" && LD=ld
8391test -z "$ac_objext" && ac_objext=o
d7040cdb 8392
ce2cded5
L
8393for cc_temp in $compiler""; do
8394 case $cc_temp in
8395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8397 \-*) ;;
8398 *) break;;
8399 esac
8400done
3725885a 8401cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8402
8403
ce2cded5
L
8404# Only perform the check for file, if the check method requires it
8405test -z "$MAGIC_CMD" && MAGIC_CMD=file
8406case $deplibs_check_method in
8407file_magic*)
8408 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8410$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8411if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8412 $as_echo_n "(cached) " >&6
ce2cded5
L
8413else
8414 case $MAGIC_CMD in
8415[\\/*] | ?:[\\/]*)
8416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8417 ;;
8418*)
8419 lt_save_MAGIC_CMD="$MAGIC_CMD"
8420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8421 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8422 for ac_dir in $ac_dummy; do
8423 IFS="$lt_save_ifs"
8424 test -z "$ac_dir" && ac_dir=.
8425 if test -f $ac_dir/${ac_tool_prefix}file; then
8426 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8427 if test -n "$file_magic_test_file"; then
8428 case $deplibs_check_method in
8429 "file_magic "*)
8430 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8432 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8433 $EGREP "$file_magic_regex" > /dev/null; then
8434 :
8435 else
8436 cat <<_LT_EOF 1>&2
d7040cdb 8437
ce2cded5
L
8438*** Warning: the command libtool uses to detect shared libraries,
8439*** $file_magic_cmd, produces output that libtool cannot recognize.
8440*** The result is that libtool may fail to recognize shared libraries
8441*** as such. This will affect the creation of libtool libraries that
8442*** depend on shared libraries, but programs linked with such libtool
8443*** libraries will work regardless of this problem. Nevertheless, you
8444*** may want to report the problem to your system manager and/or to
8445*** bug-libtool@gnu.org
d7040cdb 8446
ce2cded5
L
8447_LT_EOF
8448 fi ;;
8449 esac
8450 fi
8451 break
8452 fi
8453 done
8454 IFS="$lt_save_ifs"
8455 MAGIC_CMD="$lt_save_MAGIC_CMD"
8456 ;;
8457esac
8458fi
d7040cdb 8459
ce2cded5
L
8460MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8461if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8463$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8464else
81ecdfbb
RW
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466$as_echo "no" >&6; }
ce2cded5 8467fi
d7040cdb
SE
8468
8469
8470
8471
8472
ce2cded5
L
8473if test -z "$lt_cv_path_MAGIC_CMD"; then
8474 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8476$as_echo_n "checking for file... " >&6; }
d0ac1c44 8477if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8478 $as_echo_n "(cached) " >&6
ce2cded5
L
8479else
8480 case $MAGIC_CMD in
8481[\\/*] | ?:[\\/]*)
8482 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8483 ;;
8484*)
8485 lt_save_MAGIC_CMD="$MAGIC_CMD"
8486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8487 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8488 for ac_dir in $ac_dummy; do
8489 IFS="$lt_save_ifs"
8490 test -z "$ac_dir" && ac_dir=.
8491 if test -f $ac_dir/file; then
8492 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8493 if test -n "$file_magic_test_file"; then
8494 case $deplibs_check_method in
8495 "file_magic "*)
8496 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8499 $EGREP "$file_magic_regex" > /dev/null; then
8500 :
8501 else
8502 cat <<_LT_EOF 1>&2
d7040cdb 8503
ce2cded5
L
8504*** Warning: the command libtool uses to detect shared libraries,
8505*** $file_magic_cmd, produces output that libtool cannot recognize.
8506*** The result is that libtool may fail to recognize shared libraries
8507*** as such. This will affect the creation of libtool libraries that
8508*** depend on shared libraries, but programs linked with such libtool
8509*** libraries will work regardless of this problem. Nevertheless, you
8510*** may want to report the problem to your system manager and/or to
8511*** bug-libtool@gnu.org
d7040cdb 8512
ce2cded5
L
8513_LT_EOF
8514 fi ;;
8515 esac
8516 fi
8517 break
8518 fi
8519 done
8520 IFS="$lt_save_ifs"
8521 MAGIC_CMD="$lt_save_MAGIC_CMD"
8522 ;;
8523esac
8524fi
d7040cdb 8525
ce2cded5
L
8526MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8527if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8529$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8530else
81ecdfbb
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532$as_echo "no" >&6; }
ce2cded5 8533fi
d7040cdb
SE
8534
8535
ce2cded5
L
8536 else
8537 MAGIC_CMD=:
8538 fi
8539fi
d7040cdb 8540
ce2cded5
L
8541 fi
8542 ;;
8543esac
d7040cdb 8544
ce2cded5 8545# Use C for the default configuration in the libtool script
d7040cdb 8546
ce2cded5
L
8547lt_save_CC="$CC"
8548ac_ext=c
8549ac_cpp='$CPP $CPPFLAGS'
8550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8552ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8553
8554
ce2cded5
L
8555# Source file extension for C test sources.
8556ac_ext=c
d7040cdb 8557
ce2cded5
L
8558# Object file extension for compiled C test sources.
8559objext=o
8560objext=$objext
d7040cdb 8561
ce2cded5
L
8562# Code to be used in simple compile tests
8563lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8564
ce2cded5
L
8565# Code to be used in simple link tests
8566lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8567
8568
8569
8570
8571
8572
8573
ce2cded5
L
8574# If no C compiler was specified, use CC.
8575LTCC=${LTCC-"$CC"}
d7040cdb 8576
ce2cded5
L
8577# If no C compiler flags were specified, use CFLAGS.
8578LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8579
ce2cded5
L
8580# Allow CC to be a program name with arguments.
8581compiler=$CC
d7040cdb 8582
ce2cded5
L
8583# Save the default compiler, since it gets overwritten when the other
8584# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8585compiler_DEFAULT=$CC
d7040cdb 8586
ce2cded5
L
8587# save warnings/boilerplate of simple test code
8588ac_outfile=conftest.$ac_objext
8589echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8590eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8591_lt_compiler_boilerplate=`cat conftest.err`
8592$RM conftest*
d7040cdb 8593
ce2cded5
L
8594ac_outfile=conftest.$ac_objext
8595echo "$lt_simple_link_test_code" >conftest.$ac_ext
8596eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8597_lt_linker_boilerplate=`cat conftest.err`
b214d478 8598$RM -r conftest*
d7040cdb
SE
8599
8600
ce2cded5
L
8601## CAVEAT EMPTOR:
8602## There is no encapsulation within the following macros, do not change
8603## the running order or otherwise move them around unless you know exactly
8604## what you are doing...
8605if test -n "$compiler"; then
d7040cdb 8606
ce2cded5 8607lt_prog_compiler_no_builtin_flag=
d7040cdb 8608
ce2cded5 8609if test "$GCC" = yes; then
3725885a
RW
8610 case $cc_basename in
8611 nvcc*)
8612 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8613 *)
8614 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8615 esac
d7040cdb 8616
81ecdfbb
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8618$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8619if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8620 $as_echo_n "(cached) " >&6
ce2cded5
L
8621else
8622 lt_cv_prog_compiler_rtti_exceptions=no
8623 ac_outfile=conftest.$ac_objext
8624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8625 lt_compiler_flag="-fno-rtti -fno-exceptions"
8626 # Insert the option either (1) after the last *FLAGS variable, or
8627 # (2) before a word containing "conftest.", or (3) at the end.
8628 # Note that $ac_compile itself does not contain backslashes and begins
8629 # with a dollar sign (not a hyphen), so the echo should work correctly.
8630 # The option is referenced via a variable to avoid confusing sed.
8631 lt_compile=`echo "$ac_compile" | $SED \
8632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8634 -e 's:$: $lt_compiler_flag:'`
3725885a 8635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8636 (eval "$lt_compile" 2>conftest.err)
8637 ac_status=$?
8638 cat conftest.err >&5
3725885a 8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8640 if (exit $ac_status) && test -s "$ac_outfile"; then
8641 # The compiler can only warn and ignore the option if not recognized
8642 # So say no if there are warnings other than the usual output.
3725885a 8643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8646 lt_cv_prog_compiler_rtti_exceptions=yes
8647 fi
8648 fi
8649 $RM conftest*
d7040cdb 8650
ce2cded5 8651fi
81ecdfbb
RW
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8653$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8654
ce2cded5
L
8655if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8656 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8657else
8658 :
8659fi
d7040cdb 8660
ce2cded5 8661fi
d7040cdb
SE
8662
8663
8664
8665
8666
8667
ce2cded5
L
8668 lt_prog_compiler_wl=
8669lt_prog_compiler_pic=
8670lt_prog_compiler_static=
d7040cdb 8671
81ecdfbb
RW
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8673$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8674
ce2cded5
L
8675 if test "$GCC" = yes; then
8676 lt_prog_compiler_wl='-Wl,'
8677 lt_prog_compiler_static='-static'
d7040cdb 8678
ce2cded5
L
8679 case $host_os in
8680 aix*)
8681 # All AIX code is PIC.
8682 if test "$host_cpu" = ia64; then
8683 # AIX 5 now supports IA64 processor
8684 lt_prog_compiler_static='-Bstatic'
8685 fi
52204357 8686 lt_prog_compiler_pic='-fPIC'
ce2cded5 8687 ;;
d7040cdb 8688
ce2cded5 8689 amigaos*)
b214d478
SE
8690 case $host_cpu in
8691 powerpc)
8692 # see comment about AmigaOS4 .so support
8693 lt_prog_compiler_pic='-fPIC'
8694 ;;
8695 m68k)
8696 # FIXME: we need at least 68020 code to build shared libraries, but
8697 # adding the `-m68020' flag to GCC prevents building anything better,
8698 # like `-m68040'.
8699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8700 ;;
8701 esac
ce2cded5 8702 ;;
d7040cdb 8703
ce2cded5
L
8704 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8705 # PIC is the default for these OSes.
8706 ;;
d7040cdb 8707
b214d478 8708 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8709 # This hack is so that the source file can tell whether it is being
8710 # built for inclusion in a dll (and should export symbols for example).
8711 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8712 # (--disable-auto-import) libraries
8713 lt_prog_compiler_pic='-DDLL_EXPORT'
8714 ;;
d7040cdb 8715
ce2cded5
L
8716 darwin* | rhapsody*)
8717 # PIC is the default on this platform
8718 # Common symbols not allowed in MH_DYLIB files
8719 lt_prog_compiler_pic='-fno-common'
8720 ;;
d7040cdb 8721
3725885a
RW
8722 haiku*)
8723 # PIC is the default for Haiku.
8724 # The "-static" flag exists, but is broken.
8725 lt_prog_compiler_static=
8726 ;;
8727
ce2cded5 8728 hpux*)
b214d478
SE
8729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8731 # sets the default TLS model and affects inlining.
ce2cded5 8732 case $host_cpu in
b214d478 8733 hppa*64*)
ce2cded5
L
8734 # +Z the default
8735 ;;
8736 *)
8737 lt_prog_compiler_pic='-fPIC'
8738 ;;
8739 esac
8740 ;;
d7040cdb 8741
ce2cded5
L
8742 interix[3-9]*)
8743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8744 # Instead, we relocate shared libraries at runtime.
8745 ;;
d7040cdb 8746
ce2cded5
L
8747 msdosdjgpp*)
8748 # Just because we use GCC doesn't mean we suddenly get shared libraries
8749 # on systems that don't support them.
8750 lt_prog_compiler_can_build_shared=no
8751 enable_shared=no
8752 ;;
d7040cdb 8753
ce2cded5
L
8754 *nto* | *qnx*)
8755 # QNX uses GNU C++, but need to define -shared option too, otherwise
8756 # it will coredump.
8757 lt_prog_compiler_pic='-fPIC -shared'
8758 ;;
d7040cdb 8759
ce2cded5
L
8760 sysv4*MP*)
8761 if test -d /usr/nec; then
8762 lt_prog_compiler_pic=-Kconform_pic
8763 fi
8764 ;;
d7040cdb 8765
ce2cded5
L
8766 *)
8767 lt_prog_compiler_pic='-fPIC'
8768 ;;
8769 esac
3725885a
RW
8770
8771 case $cc_basename in
8772 nvcc*) # Cuda Compiler Driver 2.2
8773 lt_prog_compiler_wl='-Xlinker '
8774 lt_prog_compiler_pic='-Xcompiler -fPIC'
8775 ;;
8776 esac
ce2cded5
L
8777 else
8778 # PORTME Check for flag to pass linker flags through the system compiler.
8779 case $host_os in
8780 aix*)
8781 lt_prog_compiler_wl='-Wl,'
8782 if test "$host_cpu" = ia64; then
8783 # AIX 5 now supports IA64 processor
8784 lt_prog_compiler_static='-Bstatic'
8785 else
8786 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8787 fi
8788 ;;
d7040cdb 8789
b214d478 8790 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8791 # This hack is so that the source file can tell whether it is being
8792 # built for inclusion in a dll (and should export symbols for example).
8793 lt_prog_compiler_pic='-DDLL_EXPORT'
8794 ;;
d7040cdb 8795
ce2cded5
L
8796 hpux9* | hpux10* | hpux11*)
8797 lt_prog_compiler_wl='-Wl,'
8798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8799 # not for PA HP-UX.
8800 case $host_cpu in
8801 hppa*64*|ia64*)
8802 # +Z the default
8803 ;;
8804 *)
8805 lt_prog_compiler_pic='+Z'
8806 ;;
8807 esac
8808 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8809 lt_prog_compiler_static='${wl}-a ${wl}archive'
8810 ;;
d7040cdb 8811
ce2cded5
L
8812 irix5* | irix6* | nonstopux*)
8813 lt_prog_compiler_wl='-Wl,'
8814 # PIC (with -KPIC) is the default.
8815 lt_prog_compiler_static='-non_shared'
8816 ;;
d7040cdb 8817
58e24671 8818 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8819 case $cc_basename in
b214d478
SE
8820 # old Intel for x86_64 which still supported -KPIC.
8821 ecc*)
ce2cded5
L
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-KPIC'
8824 lt_prog_compiler_static='-static'
8825 ;;
b214d478
SE
8826 # icc used to be incompatible with GCC.
8827 # ICC 10 doesn't accept -KPIC any more.
8828 icc* | ifort*)
8829 lt_prog_compiler_wl='-Wl,'
8830 lt_prog_compiler_pic='-fPIC'
8831 lt_prog_compiler_static='-static'
8832 ;;
8833 # Lahey Fortran 8.1.
8834 lf95*)
8835 lt_prog_compiler_wl='-Wl,'
8836 lt_prog_compiler_pic='--shared'
8837 lt_prog_compiler_static='--static'
8838 ;;
3725885a 8839 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8840 # Portland Group compilers (*not* the Pentium gcc compiler,
8841 # which looks to be a dead project)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fpic'
8844 lt_prog_compiler_static='-Bstatic'
8845 ;;
8846 ccc*)
8847 lt_prog_compiler_wl='-Wl,'
8848 # All Alpha code is PIC.
8849 lt_prog_compiler_static='-non_shared'
8850 ;;
3725885a
RW
8851 xl* | bgxl* | bgf* | mpixl*)
8852 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='-qpic'
8855 lt_prog_compiler_static='-qstaticlink'
8856 ;;
ce2cded5
L
8857 *)
8858 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8859 *Sun\ F* | *Sun*Fortran*)
8860 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
3725885a 8863 lt_prog_compiler_wl=''
ce2cded5 8864 ;;
3725885a
RW
8865 *Sun\ C*)
8866 # Sun C 5.9
ce2cded5
L
8867 lt_prog_compiler_pic='-KPIC'
8868 lt_prog_compiler_static='-Bstatic'
3725885a 8869 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8870 ;;
8871 esac
8872 ;;
8873 esac
8874 ;;
d7040cdb 8875
ce2cded5
L
8876 newsos6)
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8879 ;;
d7040cdb 8880
ce2cded5
L
8881 *nto* | *qnx*)
8882 # QNX uses GNU C++, but need to define -shared option too, otherwise
8883 # it will coredump.
8884 lt_prog_compiler_pic='-fPIC -shared'
8885 ;;
d7040cdb 8886
ce2cded5
L
8887 osf3* | osf4* | osf5*)
8888 lt_prog_compiler_wl='-Wl,'
8889 # All OSF/1 code is PIC.
8890 lt_prog_compiler_static='-non_shared'
8891 ;;
d7040cdb 8892
ce2cded5
L
8893 rdos*)
8894 lt_prog_compiler_static='-non_shared'
8895 ;;
d7040cdb 8896
ce2cded5
L
8897 solaris*)
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 case $cc_basename in
8901 f77* | f90* | f95*)
8902 lt_prog_compiler_wl='-Qoption ld ';;
8903 *)
8904 lt_prog_compiler_wl='-Wl,';;
8905 esac
8906 ;;
d7040cdb 8907
ce2cded5
L
8908 sunos4*)
8909 lt_prog_compiler_wl='-Qoption ld '
8910 lt_prog_compiler_pic='-PIC'
8911 lt_prog_compiler_static='-Bstatic'
8912 ;;
d7040cdb 8913
ce2cded5
L
8914 sysv4 | sysv4.2uw2* | sysv4.3*)
8915 lt_prog_compiler_wl='-Wl,'
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 ;;
d7040cdb 8919
ce2cded5
L
8920 sysv4*MP*)
8921 if test -d /usr/nec ;then
8922 lt_prog_compiler_pic='-Kconform_pic'
8923 lt_prog_compiler_static='-Bstatic'
8924 fi
8925 ;;
d7040cdb 8926
ce2cded5
L
8927 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8928 lt_prog_compiler_wl='-Wl,'
8929 lt_prog_compiler_pic='-KPIC'
8930 lt_prog_compiler_static='-Bstatic'
8931 ;;
d7040cdb 8932
ce2cded5
L
8933 unicos*)
8934 lt_prog_compiler_wl='-Wl,'
8935 lt_prog_compiler_can_build_shared=no
8936 ;;
d7040cdb 8937
ce2cded5
L
8938 uts4*)
8939 lt_prog_compiler_pic='-pic'
8940 lt_prog_compiler_static='-Bstatic'
8941 ;;
d7040cdb 8942
ce2cded5
L
8943 *)
8944 lt_prog_compiler_can_build_shared=no
8945 ;;
8946 esac
8947 fi
d7040cdb 8948
ce2cded5
L
8949case $host_os in
8950 # For platforms which do not support PIC, -DPIC is meaningless:
8951 *djgpp*)
8952 lt_prog_compiler_pic=
8953 ;;
8954 *)
8955 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8956 ;;
8957esac
81ecdfbb
RW
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8959$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8960
8961
8962
8963
8964
8965
ce2cded5
L
8966#
8967# Check to make sure the PIC flag actually works.
8968#
8969if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8971$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8972if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8973 $as_echo_n "(cached) " >&6
ce2cded5 8974else
b214d478 8975 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8976 ac_outfile=conftest.$ac_objext
8977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8978 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8979 # Insert the option either (1) after the last *FLAGS variable, or
8980 # (2) before a word containing "conftest.", or (3) at the end.
8981 # Note that $ac_compile itself does not contain backslashes and begins
8982 # with a dollar sign (not a hyphen), so the echo should work correctly.
8983 # The option is referenced via a variable to avoid confusing sed.
8984 lt_compile=`echo "$ac_compile" | $SED \
8985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8987 -e 's:$: $lt_compiler_flag:'`
3725885a 8988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8989 (eval "$lt_compile" 2>conftest.err)
8990 ac_status=$?
8991 cat conftest.err >&5
3725885a 8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8993 if (exit $ac_status) && test -s "$ac_outfile"; then
8994 # The compiler can only warn and ignore the option if not recognized
8995 # So say no if there are warnings other than the usual output.
3725885a 8996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 8999 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9000 fi
9001 fi
9002 $RM conftest*
d7040cdb 9003
ce2cded5 9004fi
81ecdfbb
RW
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9006$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9007
b214d478 9008if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9009 case $lt_prog_compiler_pic in
9010 "" | " "*) ;;
9011 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9012 esac
9013else
9014 lt_prog_compiler_pic=
9015 lt_prog_compiler_can_build_shared=no
9016fi
9017
9018fi
d7040cdb
SE
9019
9020
9021
9022
9023
9024
ce2cded5
L
9025#
9026# Check to make sure the static flag actually works.
9027#
9028wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9030$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 9031if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 9032 $as_echo_n "(cached) " >&6
ce2cded5 9033else
b214d478 9034 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9035 save_LDFLAGS="$LDFLAGS"
9036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9037 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9039 # The linker can only warn and ignore the option if not recognized
9040 # So say no if there are warnings
9041 if test -s conftest.err; then
9042 # Append any errors to the config.log.
9043 cat conftest.err 1>&5
3725885a 9044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9046 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9047 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9048 fi
9049 else
b214d478 9050 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9051 fi
9052 fi
b214d478 9053 $RM -r conftest*
ce2cded5 9054 LDFLAGS="$save_LDFLAGS"
d7040cdb 9055
ce2cded5 9056fi
81ecdfbb
RW
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9058$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9059
b214d478 9060if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9061 :
9062else
9063 lt_prog_compiler_static=
9064fi
d7040cdb
SE
9065
9066
9067
9068
9069
9070
9071
81ecdfbb
RW
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9073$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9074if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9075 $as_echo_n "(cached) " >&6
ce2cded5
L
9076else
9077 lt_cv_prog_compiler_c_o=no
9078 $RM -r conftest 2>/dev/null
9079 mkdir conftest
9080 cd conftest
9081 mkdir out
9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9083
ce2cded5
L
9084 lt_compiler_flag="-o out/conftest2.$ac_objext"
9085 # Insert the option either (1) after the last *FLAGS variable, or
9086 # (2) before a word containing "conftest.", or (3) at the end.
9087 # Note that $ac_compile itself does not contain backslashes and begins
9088 # with a dollar sign (not a hyphen), so the echo should work correctly.
9089 lt_compile=`echo "$ac_compile" | $SED \
9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9092 -e 's:$: $lt_compiler_flag:'`
3725885a 9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9094 (eval "$lt_compile" 2>out/conftest.err)
9095 ac_status=$?
9096 cat out/conftest.err >&5
3725885a 9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9099 then
9100 # The compiler can only warn and ignore the option if not recognized
9101 # So say no if there are warnings
3725885a 9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9105 lt_cv_prog_compiler_c_o=yes
9106 fi
9107 fi
9108 chmod u+w . 2>&5
9109 $RM conftest*
9110 # SGI C++ compiler will create directory out/ii_files/ for
9111 # template instantiation
9112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9113 $RM out/* && rmdir out
9114 cd ..
9115 $RM -r conftest
9116 $RM conftest*
d7040cdb 9117
ce2cded5 9118fi
81ecdfbb
RW
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9120$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9121
9122
9123
9124
9125
9126
81ecdfbb
RW
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9128$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9129if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9130 $as_echo_n "(cached) " >&6
ce2cded5
L
9131else
9132 lt_cv_prog_compiler_c_o=no
9133 $RM -r conftest 2>/dev/null
9134 mkdir conftest
9135 cd conftest
9136 mkdir out
9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9138
ce2cded5
L
9139 lt_compiler_flag="-o out/conftest2.$ac_objext"
9140 # Insert the option either (1) after the last *FLAGS variable, or
9141 # (2) before a word containing "conftest.", or (3) at the end.
9142 # Note that $ac_compile itself does not contain backslashes and begins
9143 # with a dollar sign (not a hyphen), so the echo should work correctly.
9144 lt_compile=`echo "$ac_compile" | $SED \
9145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9147 -e 's:$: $lt_compiler_flag:'`
3725885a 9148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9149 (eval "$lt_compile" 2>out/conftest.err)
9150 ac_status=$?
9151 cat out/conftest.err >&5
3725885a 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9154 then
9155 # The compiler can only warn and ignore the option if not recognized
9156 # So say no if there are warnings
3725885a 9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9160 lt_cv_prog_compiler_c_o=yes
9161 fi
9162 fi
9163 chmod u+w . 2>&5
9164 $RM conftest*
9165 # SGI C++ compiler will create directory out/ii_files/ for
9166 # template instantiation
9167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9168 $RM out/* && rmdir out
9169 cd ..
9170 $RM -r conftest
9171 $RM conftest*
9172
9173fi
81ecdfbb
RW
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9175$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9176
9177
9178
9179
9180hard_links="nottested"
9181if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9182 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9184$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9185 hard_links=yes
9186 $RM conftest*
9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9188 touch conftest.a
9189 ln conftest.a conftest.b 2>&5 || hard_links=no
9190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9192$as_echo "$hard_links" >&6; }
ce2cded5 9193 if test "$hard_links" = no; then
81ecdfbb
RW
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9195$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9196 need_locks=warn
d7040cdb 9197 fi
d7040cdb 9198else
ce2cded5 9199 need_locks=no
d7040cdb 9200fi
d7040cdb 9201
d7040cdb 9202
d7040cdb 9203
d7040cdb 9204
d7040cdb 9205
d7040cdb 9206
81ecdfbb
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9208$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9209
ce2cded5
L
9210 runpath_var=
9211 allow_undefined_flag=
9212 always_export_symbols=no
9213 archive_cmds=
9214 archive_expsym_cmds=
9215 compiler_needs_object=no
9216 enable_shared_with_static_runtimes=no
9217 export_dynamic_flag_spec=
9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9219 hardcode_automatic=no
9220 hardcode_direct=no
9221 hardcode_direct_absolute=no
9222 hardcode_libdir_flag_spec=
9223 hardcode_libdir_flag_spec_ld=
9224 hardcode_libdir_separator=
9225 hardcode_minus_L=no
9226 hardcode_shlibpath_var=unsupported
9227 inherit_rpath=no
9228 link_all_deplibs=unknown
9229 module_cmds=
9230 module_expsym_cmds=
9231 old_archive_from_new_cmds=
9232 old_archive_from_expsyms_cmds=
9233 thread_safe_flag_spec=
9234 whole_archive_flag_spec=
9235 # include_expsyms should be a list of space-separated symbols to be *always*
9236 # included in the symbol list
9237 include_expsyms=
9238 # exclude_expsyms can be an extended regexp of symbols to exclude
9239 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9240 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9241 # as well as any symbol that contains `d'.
b214d478 9242 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9244 # platforms (ab)use it in PIC code, but their linkers get confused if
9245 # the symbol is explicitly referenced. Since portable code cannot
9246 # rely on this symbol name, it's probably fine to never include it in
9247 # preloaded symbol tables.
b214d478 9248 # Exclude shared library initialization/finalization symbols.
ce2cded5 9249 extract_expsyms_cmds=
d7040cdb 9250
ce2cded5 9251 case $host_os in
b214d478 9252 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9253 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9254 # When not using gcc, we currently assume that we are using
9255 # Microsoft Visual C++.
9256 if test "$GCC" != yes; then
9257 with_gnu_ld=no
9258 fi
d7040cdb 9259 ;;
ce2cded5
L
9260 interix*)
9261 # we just hope/assume this is gcc and not c89 (= MSVC++)
9262 with_gnu_ld=yes
9263 ;;
9264 openbsd*)
9265 with_gnu_ld=no
d7040cdb
SE
9266 ;;
9267 esac
d7040cdb 9268
ce2cded5 9269 ld_shlibs=yes
3725885a
RW
9270
9271 # On some targets, GNU ld is compatible enough with the native linker
9272 # that we're better off using the native interface for both.
9273 lt_use_gnu_ld_interface=no
ce2cded5 9274 if test "$with_gnu_ld" = yes; then
3725885a
RW
9275 case $host_os in
9276 aix*)
9277 # The AIX port of GNU ld has always aspired to compatibility
9278 # with the native linker. However, as the warning in the GNU ld
9279 # block says, versions before 2.19.5* couldn't really create working
9280 # shared libraries, regardless of the interface used.
9281 case `$LD -v 2>&1` in
9282 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9283 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9284 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9285 *)
9286 lt_use_gnu_ld_interface=yes
9287 ;;
9288 esac
9289 ;;
9290 *)
9291 lt_use_gnu_ld_interface=yes
9292 ;;
9293 esac
9294 fi
9295
9296 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9297 # If archive_cmds runs LD, not CC, wlarc should be empty
9298 wlarc='${wl}'
d7040cdb 9299
ce2cded5
L
9300 # Set some defaults for GNU ld with shared library support. These
9301 # are reset later if shared libraries are not supported. Putting them
9302 # here allows them to be overridden if necessary.
9303 runpath_var=LD_RUN_PATH
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 export_dynamic_flag_spec='${wl}--export-dynamic'
9306 # ancient GNU ld didn't support --whole-archive et. al.
9307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9308 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9309 else
9310 whole_archive_flag_spec=
9311 fi
9312 supports_anon_versioning=no
9313 case `$LD -v 2>&1` in
3725885a 9314 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9318 *\ 2.11.*) ;; # other 2.11 versions
9319 *) supports_anon_versioning=yes ;;
9320 esac
d7040cdb 9321
ce2cded5
L
9322 # See if GNU ld supports shared libraries.
9323 case $host_os in
50e7d84b 9324 aix[3-9]*)
ce2cded5
L
9325 # On AIX/PPC, the GNU linker is very broken
9326 if test "$host_cpu" != ia64; then
9327 ld_shlibs=no
9328 cat <<_LT_EOF 1>&2
d7040cdb 9329
3725885a 9330*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9331*** to be unable to reliably create shared libraries on AIX.
9332*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9333*** really care for shared libraries, you may want to install binutils
9334*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9335*** You will then need to restart the configuration process.
d7040cdb 9336
ce2cded5
L
9337_LT_EOF
9338 fi
d7040cdb 9339 ;;
d7040cdb 9340
ce2cded5 9341 amigaos*)
b214d478
SE
9342 case $host_cpu in
9343 powerpc)
9344 # see comment about AmigaOS4 .so support
9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346 archive_expsym_cmds=''
9347 ;;
9348 m68k)
9349 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)'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9352 ;;
9353 esac
ce2cded5 9354 ;;
d7040cdb 9355
ce2cded5
L
9356 beos*)
9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358 allow_undefined_flag=unsupported
9359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9360 # support --undefined. This deserves some investigation. FIXME
9361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9362 else
9363 ld_shlibs=no
9364 fi
9365 ;;
d7040cdb 9366
b214d478 9367 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9369 # as there is no search path for DLLs.
9370 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9371 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9372 allow_undefined_flag=unsupported
9373 always_export_symbols=no
9374 enable_shared_with_static_runtimes=yes
9375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9376
9377 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9379 # If the export-symbols file already is a .def file (1st line
9380 # is EXPORTS), use it as is; otherwise, prepend...
9381 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9382 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9383 else
ce2cded5
L
9384 echo EXPORTS > $output_objdir/$soname.def;
9385 cat $export_symbols >> $output_objdir/$soname.def;
9386 fi~
9387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9388 else
9389 ld_shlibs=no
9390 fi
9391 ;;
d7040cdb 9392
3725885a
RW
9393 haiku*)
9394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395 link_all_deplibs=yes
9396 ;;
9397
ce2cded5
L
9398 interix[3-9]*)
9399 hardcode_direct=no
9400 hardcode_shlibpath_var=no
9401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9402 export_dynamic_flag_spec='${wl}-E'
9403 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9404 # Instead, shared libraries are loaded at an image base (0x10000000 by
9405 # default) and relocated if they conflict, which is a slow very memory
9406 # consuming and fragmenting process. To avoid this, we pick a random,
9407 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9408 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9410 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'
9411 ;;
d7040cdb 9412
58e24671 9413 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9414 tmp_diet=no
9415 if test "$host_os" = linux-dietlibc; then
9416 case $cc_basename in
9417 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9418 esac
9419 fi
9420 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9421 && test "$tmp_diet" = no
9422 then
6e733cce 9423 tmp_addflag=' $pic_flag'
b214d478 9424 tmp_sharedflag='-shared'
ce2cded5
L
9425 case $cc_basename,$host_cpu in
9426 pgcc*) # Portland Group C compiler
3725885a 9427 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
9428 tmp_addflag=' $pic_flag'
9429 ;;
3725885a
RW
9430 pgf77* | pgf90* | pgf95* | pgfortran*)
9431 # Portland Group f77 and f90 compilers
9432 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
9433 tmp_addflag=' $pic_flag -Mnomain' ;;
9434 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9435 tmp_addflag=' -i_dynamic' ;;
9436 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9437 tmp_addflag=' -i_dynamic -nofor_main' ;;
9438 ifc* | ifort*) # Intel Fortran compiler
9439 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9440 lf95*) # Lahey Fortran 8.1
9441 whole_archive_flag_spec=
9442 tmp_sharedflag='--shared' ;;
3725885a 9443 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9444 tmp_sharedflag='-qmkshrobj'
9445 tmp_addflag= ;;
3725885a
RW
9446 nvcc*) # Cuda Compiler Driver 2.2
9447 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'
9448 compiler_needs_object=yes
9449 ;;
ce2cded5
L
9450 esac
9451 case `$CC -V 2>&1 | sed 5q` in
9452 *Sun\ C*) # Sun C 5.9
3725885a 9453 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
9454 compiler_needs_object=yes
9455 tmp_sharedflag='-G' ;;
9456 *Sun\ F*) # Sun Fortran 8.3
9457 tmp_sharedflag='-G' ;;
ce2cded5
L
9458 esac
9459 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9460
ce2cded5
L
9461 if test "x$supports_anon_versioning" = xyes; then
9462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9464 echo "local: *; };" >> $output_objdir/$libname.ver~
9465 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9466 fi
b214d478
SE
9467
9468 case $cc_basename in
3725885a 9469 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9470 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9471 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9472 hardcode_libdir_flag_spec=
9473 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9474 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9475 if test "x$supports_anon_versioning" = xyes; then
9476 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478 echo "local: *; };" >> $output_objdir/$libname.ver~
9479 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9480 fi
9481 ;;
9482 esac
ce2cded5
L
9483 else
9484 ld_shlibs=no
9485 fi
9486 ;;
d7040cdb 9487
ce2cded5
L
9488 netbsd*)
9489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9490 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9491 wlarc=
9492 else
9493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9495 fi
9496 ;;
9497
9498 solaris*)
9499 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9500 ld_shlibs=no
9501 cat <<_LT_EOF 1>&2
9502
9503*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9504*** create shared libraries on Solaris systems. Therefore, libtool
9505*** is disabling shared libraries support. We urge you to upgrade GNU
9506*** binutils to release 2.9.1 or newer. Another option is to modify
9507*** your PATH or compiler configuration so that the native linker is
9508*** used, and then restart.
9509
9510_LT_EOF
9511 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9514 else
9515 ld_shlibs=no
9516 fi
9517 ;;
9518
9519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9520 case `$LD -v 2>&1` in
9521 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9522 ld_shlibs=no
9523 cat <<_LT_EOF 1>&2
9524
9525*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9526*** reliably create shared libraries on SCO systems. Therefore, libtool
9527*** is disabling shared libraries support. We urge you to upgrade GNU
9528*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9529*** your PATH or compiler configuration so that the native linker is
9530*** used, and then restart.
9531
9532_LT_EOF
9533 ;;
9534 *)
9535 # For security reasons, it is highly recommended that you always
9536 # use absolute paths for naming shared libraries, and exclude the
9537 # DT_RUNPATH tag from executables and libraries. But doing so
9538 # requires that you compile everything twice, which is a pain.
9539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9543 else
9544 ld_shlibs=no
9545 fi
9546 ;;
9547 esac
9548 ;;
9549
9550 sunos4*)
9551 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9552 wlarc=
9553 hardcode_direct=yes
9554 hardcode_shlibpath_var=no
9555 ;;
9556
9557 *)
9558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561 else
9562 ld_shlibs=no
9563 fi
9564 ;;
9565 esac
9566
9567 if test "$ld_shlibs" = no; then
9568 runpath_var=
9569 hardcode_libdir_flag_spec=
9570 export_dynamic_flag_spec=
9571 whole_archive_flag_spec=
9572 fi
9573 else
9574 # PORTME fill in a description of your system's linker (not GNU ld)
9575 case $host_os in
9576 aix3*)
9577 allow_undefined_flag=unsupported
9578 always_export_symbols=yes
9579 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'
9580 # Note: this linker hardcodes the directories in LIBPATH if there
9581 # are no directories specified by -L.
9582 hardcode_minus_L=yes
9583 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9584 # Neither direct hardcoding nor static linking is supported with a
9585 # broken collect2.
9586 hardcode_direct=unsupported
9587 fi
9588 ;;
9589
50e7d84b 9590 aix[4-9]*)
ce2cded5
L
9591 if test "$host_cpu" = ia64; then
9592 # On IA64, the linker does run time linking by default, so we don't
9593 # have to do anything special.
9594 aix_use_runtimelinking=no
9595 exp_sym_flag='-Bexport'
9596 no_entry_flag=""
9597 else
9598 # If we're using GNU nm, then we don't want the "-C" option.
9599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9600 # Also, AIX nm treats weak defined symbols like other global
9601 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9603 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 9604 else
5c14705f 9605 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
9606 fi
9607 aix_use_runtimelinking=no
9608
9609 # Test if we are trying to use run time linking or normal
9610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9611 # need to do runtime linking.
50e7d84b 9612 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9613 for ld_flag in $LDFLAGS; do
9614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9615 aix_use_runtimelinking=yes
9616 break
9617 fi
9618 done
9619 ;;
9620 esac
9621
9622 exp_sym_flag='-bexport'
9623 no_entry_flag='-bnoentry'
9624 fi
9625
9626 # When large executables or shared objects are built, AIX ld can
9627 # have problems creating the table of contents. If linking a library
9628 # or program results in "error TOC overflow" add -mminimal-toc to
9629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9631
9632 archive_cmds=''
9633 hardcode_direct=yes
9634 hardcode_direct_absolute=yes
9635 hardcode_libdir_separator=':'
9636 link_all_deplibs=yes
9637 file_list_spec='${wl}-f,'
9638
9639 if test "$GCC" = yes; then
9640 case $host_os in aix4.[012]|aix4.[012].*)
9641 # We only want to do this on AIX 4.2 and lower, the check
9642 # below for broken collect2 doesn't work under 4.3+
9643 collect2name=`${CC} -print-prog-name=collect2`
9644 if test -f "$collect2name" &&
9645 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9646 then
9647 # We have reworked collect2
9648 :
9649 else
9650 # We have old collect2
9651 hardcode_direct=unsupported
9652 # It fails to find uninstalled libraries when the uninstalled
9653 # path is not listed in the libpath. Setting hardcode_minus_L
9654 # to unsupported forces relinking
9655 hardcode_minus_L=yes
9656 hardcode_libdir_flag_spec='-L$libdir'
9657 hardcode_libdir_separator=
9658 fi
9659 ;;
9660 esac
9661 shared_flag='-shared'
9662 if test "$aix_use_runtimelinking" = yes; then
9663 shared_flag="$shared_flag "'${wl}-G'
9664 fi
9665 else
9666 # not using gcc
9667 if test "$host_cpu" = ia64; then
9668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9669 # chokes on -Wl,-G. The following line is correct:
9670 shared_flag='-G'
9671 else
9672 if test "$aix_use_runtimelinking" = yes; then
9673 shared_flag='${wl}-G'
9674 else
9675 shared_flag='${wl}-bM:SRE'
9676 fi
9677 fi
9678 fi
9679
b214d478 9680 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9681 # It seems that -bexpall does not export symbols beginning with
9682 # underscore (_), so it is better to generate a list of symbols to export.
9683 always_export_symbols=yes
9684 if test "$aix_use_runtimelinking" = yes; then
9685 # Warning - without using the other runtime loading flags (-brtl),
9686 # -berok will link without error, but may produce a broken library.
9687 allow_undefined_flag='-berok'
9688 # Determine the default libpath from the value encoded in an
9689 # empty executable.
81ecdfbb 9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9691/* end confdefs.h. */
9692
9693int
9694main ()
9695{
9696
9697 ;
9698 return 0;
9699}
9700_ACEOF
81ecdfbb 9701if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9702
ce2cded5
L
9703lt_aix_libpath_sed='
9704 /Import File Strings/,/^$/ {
9705 /^0/ {
9706 s/^0 *\(.*\)$/\1/
9707 p
9708 }
9709 }'
9710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711# Check for a 64-bit object if we didn't find anything.
9712if test -z "$aix_libpath"; then
9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9714fi
d7040cdb 9715fi
81ecdfbb
RW
9716rm -f core conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9719
ce2cded5 9720 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9721 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
9722 else
9723 if test "$host_cpu" = ia64; then
9724 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9725 allow_undefined_flag="-z nodefs"
9726 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"
9727 else
9728 # Determine the default libpath from the value encoded in an
9729 # empty executable.
81ecdfbb 9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9731/* end confdefs.h. */
d7040cdb 9732
ce2cded5
L
9733int
9734main ()
9735{
d7040cdb 9736
ce2cded5
L
9737 ;
9738 return 0;
9739}
9740_ACEOF
81ecdfbb 9741if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9742
ce2cded5
L
9743lt_aix_libpath_sed='
9744 /Import File Strings/,/^$/ {
9745 /^0/ {
9746 s/^0 *\(.*\)$/\1/
9747 p
9748 }
9749 }'
9750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751# Check for a 64-bit object if we didn't find anything.
9752if test -z "$aix_libpath"; then
9753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9754fi
ce2cded5 9755fi
81ecdfbb
RW
9756rm -f core conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9758if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9759
ce2cded5
L
9760 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9761 # Warning - without using the other run time loading flags,
9762 # -berok will link without error, but may produce a broken library.
9763 no_undefined_flag=' ${wl}-bernotok'
9764 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9765 if test "$with_gnu_ld" = yes; then
9766 # We only use this code for GNU lds that support --whole-archive.
9767 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9768 else
9769 # Exported symbols can be pulled into shared objects from archives
9770 whole_archive_flag_spec='$convenience'
9771 fi
ce2cded5
L
9772 archive_cmds_need_lc=yes
9773 # This is similar to how AIX traditionally builds its shared libraries.
9774 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'
9775 fi
9776 fi
9777 ;;
d7040cdb 9778
ce2cded5 9779 amigaos*)
b214d478
SE
9780 case $host_cpu in
9781 powerpc)
9782 # see comment about AmigaOS4 .so support
9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9784 archive_expsym_cmds=''
9785 ;;
9786 m68k)
9787 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)'
9788 hardcode_libdir_flag_spec='-L$libdir'
9789 hardcode_minus_L=yes
9790 ;;
9791 esac
ce2cded5
L
9792 ;;
9793
9794 bsdi[45]*)
9795 export_dynamic_flag_spec=-rdynamic
9796 ;;
9797
b214d478 9798 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9799 # When not using gcc, we currently assume that we are using
9800 # Microsoft Visual C++.
9801 # hardcode_libdir_flag_spec is actually meaningless, as there is
9802 # no search path for DLLs.
9803 hardcode_libdir_flag_spec=' '
9804 allow_undefined_flag=unsupported
9805 # Tell ltmain to make .lib files, not .a files.
9806 libext=lib
9807 # Tell ltmain to make .dll files, not .so files.
9808 shrext_cmds=".dll"
9809 # FIXME: Setting linknames here is a bad hack.
3725885a 9810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9811 # The linker will automatically build a .lib file if we build a DLL.
9812 old_archive_from_new_cmds='true'
9813 # FIXME: Should let the user specify the lib program.
9814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9815 fix_srcfile_path='`cygpath -w "$srcfile"`'
9816 enable_shared_with_static_runtimes=yes
9817 ;;
9818
9819 darwin* | rhapsody*)
d7040cdb 9820
b214d478
SE
9821
9822 archive_cmds_need_lc=no
9823 hardcode_direct=no
9824 hardcode_automatic=yes
9825 hardcode_shlibpath_var=unsupported
3725885a
RW
9826 if test "$lt_cv_ld_force_load" = "yes"; then
9827 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\"`'
9828 else
9829 whole_archive_flag_spec=''
9830 fi
b214d478
SE
9831 link_all_deplibs=yes
9832 allow_undefined_flag="$_lt_dar_allow_undefined"
9833 case $cc_basename in
9834 ifort*) _lt_dar_can_shared=yes ;;
9835 *) _lt_dar_can_shared=$GCC ;;
9836 esac
9837 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9838 output_verbose_link_cmd=func_echo_all
b214d478
SE
9839 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9840 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9841 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}"
9842 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}"
9843
9844 else
9845 ld_shlibs=no
9846 fi
9847
ce2cded5 9848 ;;
d7040cdb 9849
ce2cded5
L
9850 dgux*)
9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852 hardcode_libdir_flag_spec='-L$libdir'
9853 hardcode_shlibpath_var=no
9854 ;;
d7040cdb 9855
ce2cded5
L
9856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9857 # support. Future versions do this automatically, but an explicit c++rt0.o
9858 # does not break anything, and helps significantly (at the cost of a little
9859 # extra space).
9860 freebsd2.2*)
9861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9862 hardcode_libdir_flag_spec='-R$libdir'
9863 hardcode_direct=yes
9864 hardcode_shlibpath_var=no
d7040cdb 9865 ;;
d7040cdb 9866
ce2cded5 9867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9868 freebsd2.*)
ce2cded5
L
9869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_direct=yes
9871 hardcode_minus_L=yes
9872 hardcode_shlibpath_var=no
9873 ;;
d7040cdb 9874
ce2cded5
L
9875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9876 freebsd* | dragonfly*)
9877 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9878 hardcode_libdir_flag_spec='-R$libdir'
9879 hardcode_direct=yes
9880 hardcode_shlibpath_var=no
9881 ;;
d7040cdb 9882
ce2cded5
L
9883 hpux9*)
9884 if test "$GCC" = yes; then
9885 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'
9886 else
9887 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'
9888 fi
9889 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9890 hardcode_libdir_separator=:
9891 hardcode_direct=yes
d7040cdb 9892
ce2cded5
L
9893 # hardcode_minus_L: Not really in the search PATH,
9894 # but as the default location of the library.
9895 hardcode_minus_L=yes
9896 export_dynamic_flag_spec='${wl}-E'
9897 ;;
d7040cdb 9898
ce2cded5 9899 hpux10*)
3725885a 9900 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9901 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 fi
9905 if test "$with_gnu_ld" = no; then
9906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9907 hardcode_libdir_flag_spec_ld='+b $libdir'
9908 hardcode_libdir_separator=:
9909 hardcode_direct=yes
9910 hardcode_direct_absolute=yes
9911 export_dynamic_flag_spec='${wl}-E'
9912 # hardcode_minus_L: Not really in the search PATH,
9913 # but as the default location of the library.
9914 hardcode_minus_L=yes
9915 fi
9916 ;;
d7040cdb 9917
ce2cded5 9918 hpux11*)
3725885a 9919 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9920 case $host_cpu in
9921 hppa*64*)
9922 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 ;;
9924 ia64*)
b214d478 9925 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9926 ;;
9927 *)
9928 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9929 ;;
9930 esac
9931 else
9932 case $host_cpu in
9933 hppa*64*)
9934 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 ia64*)
9937 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 *)
3725885a
RW
9940
9941 # Older versions of the 11.00 compiler do not understand -b yet
9942 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9944$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9945if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9946 $as_echo_n "(cached) " >&6
9947else
9948 lt_cv_prog_compiler__b=no
9949 save_LDFLAGS="$LDFLAGS"
9950 LDFLAGS="$LDFLAGS -b"
9951 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9952 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9953 # The linker can only warn and ignore the option if not recognized
9954 # So say no if there are warnings
9955 if test -s conftest.err; then
9956 # Append any errors to the config.log.
9957 cat conftest.err 1>&5
9958 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9960 if diff conftest.exp conftest.er2 >/dev/null; then
9961 lt_cv_prog_compiler__b=yes
9962 fi
9963 else
9964 lt_cv_prog_compiler__b=yes
9965 fi
9966 fi
9967 $RM -r conftest*
9968 LDFLAGS="$save_LDFLAGS"
9969
9970fi
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9972$as_echo "$lt_cv_prog_compiler__b" >&6; }
9973
9974if test x"$lt_cv_prog_compiler__b" = xyes; then
9975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9976else
9977 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9978fi
9979
ce2cded5
L
9980 ;;
9981 esac
9982 fi
9983 if test "$with_gnu_ld" = no; then
9984 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9985 hardcode_libdir_separator=:
d7040cdb 9986
ce2cded5
L
9987 case $host_cpu in
9988 hppa*64*|ia64*)
9989 hardcode_direct=no
9990 hardcode_shlibpath_var=no
9991 ;;
9992 *)
9993 hardcode_direct=yes
9994 hardcode_direct_absolute=yes
9995 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9996
ce2cded5
L
9997 # hardcode_minus_L: Not really in the search PATH,
9998 # but as the default location of the library.
9999 hardcode_minus_L=yes
10000 ;;
10001 esac
10002 fi
10003 ;;
d7040cdb 10004
ce2cded5
L
10005 irix5* | irix6* | nonstopux*)
10006 if test "$GCC" = yes; then
3725885a 10007 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
10008 # Try to use the -exported_symbol ld option, if it does not
10009 # work, assume that -exports_file does not work either and
10010 # implicitly export all symbols.
10011 save_LDFLAGS="$LDFLAGS"
10012 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h. */
ce2cded5
L
10015int foo(void) {}
10016_ACEOF
81ecdfbb 10017if ac_fn_c_try_link "$LINENO"; then :
3725885a 10018 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 10019
ce2cded5 10020fi
81ecdfbb
RW
10021rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10023 LDFLAGS="$save_LDFLAGS"
10024 else
3725885a
RW
10025 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'
10026 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
10027 fi
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030 hardcode_libdir_separator=:
10031 inherit_rpath=yes
10032 link_all_deplibs=yes
10033 ;;
d7040cdb 10034
ce2cded5
L
10035 netbsd*)
10036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10037 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10038 else
10039 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10040 fi
10041 hardcode_libdir_flag_spec='-R$libdir'
10042 hardcode_direct=yes
10043 hardcode_shlibpath_var=no
10044 ;;
d7040cdb 10045
ce2cded5
L
10046 newsos6)
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_direct=yes
10049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050 hardcode_libdir_separator=:
10051 hardcode_shlibpath_var=no
10052 ;;
d7040cdb 10053
ce2cded5
L
10054 *nto* | *qnx*)
10055 ;;
d7040cdb 10056
ce2cded5 10057 openbsd*)
b214d478
SE
10058 if test -f /usr/libexec/ld.so; then
10059 hardcode_direct=yes
10060 hardcode_shlibpath_var=no
10061 hardcode_direct_absolute=yes
10062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10064 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10065 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10066 export_dynamic_flag_spec='${wl}-E'
10067 else
10068 case $host_os in
10069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10071 hardcode_libdir_flag_spec='-R$libdir'
10072 ;;
10073 *)
10074 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076 ;;
10077 esac
10078 fi
10079 else
10080 ld_shlibs=no
ce2cded5
L
10081 fi
10082 ;;
d7040cdb 10083
ce2cded5
L
10084 os2*)
10085 hardcode_libdir_flag_spec='-L$libdir'
10086 hardcode_minus_L=yes
10087 allow_undefined_flag=unsupported
3725885a 10088 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
10089 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10090 ;;
d7040cdb 10091
ce2cded5
L
10092 osf3*)
10093 if test "$GCC" = yes; then
10094 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10095 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
10096 else
10097 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10098 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
10099 fi
10100 archive_cmds_need_lc='no'
10101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10102 hardcode_libdir_separator=:
10103 ;;
d7040cdb 10104
ce2cded5
L
10105 osf4* | osf5*) # as osf3* with the addition of -msym flag
10106 if test "$GCC" = yes; then
10107 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10108 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
10109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10110 else
10111 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10112 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 10113 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 10114 $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 10115
ce2cded5
L
10116 # Both c and cxx compiler support -rpath directly
10117 hardcode_libdir_flag_spec='-rpath $libdir'
10118 fi
10119 archive_cmds_need_lc='no'
10120 hardcode_libdir_separator=:
10121 ;;
d7040cdb 10122
ce2cded5
L
10123 solaris*)
10124 no_undefined_flag=' -z defs'
10125 if test "$GCC" = yes; then
10126 wlarc='${wl}'
10127 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10128 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10130 else
10131 case `$CC -V 2>&1` in
10132 *"Compilers 5.0"*)
10133 wlarc=''
10134 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10136 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10137 ;;
10138 *)
10139 wlarc='${wl}'
10140 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10141 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10142 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10143 ;;
10144 esac
10145 fi
10146 hardcode_libdir_flag_spec='-R$libdir'
10147 hardcode_shlibpath_var=no
10148 case $host_os in
10149 solaris2.[0-5] | solaris2.[0-5].*) ;;
10150 *)
10151 # The compiler driver will combine and reorder linker options,
10152 # but understands `-z linker_flag'. GCC discards it without `$wl',
10153 # but is careful enough not to reorder.
10154 # Supported since Solaris 2.6 (maybe 2.5.1?)
10155 if test "$GCC" = yes; then
10156 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10157 else
10158 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10159 fi
10160 ;;
10161 esac
10162 link_all_deplibs=yes
10163 ;;
d7040cdb 10164
ce2cded5
L
10165 sunos4*)
10166 if test "x$host_vendor" = xsequent; then
10167 # Use $CC to link under sequent, because it throws in some extra .o
10168 # files that make .init and .fini sections work.
10169 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10170 else
10171 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10172 fi
10173 hardcode_libdir_flag_spec='-L$libdir'
10174 hardcode_direct=yes
10175 hardcode_minus_L=yes
10176 hardcode_shlibpath_var=no
10177 ;;
d7040cdb 10178
ce2cded5
L
10179 sysv4)
10180 case $host_vendor in
10181 sni)
10182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10183 hardcode_direct=yes # is this really true???
10184 ;;
10185 siemens)
10186 ## LD is ld it makes a PLAMLIB
10187 ## CC just makes a GrossModule.
10188 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10189 reload_cmds='$CC -r -o $output$reload_objs'
10190 hardcode_direct=no
10191 ;;
10192 motorola)
10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10195 ;;
10196 esac
10197 runpath_var='LD_RUN_PATH'
10198 hardcode_shlibpath_var=no
10199 ;;
d7040cdb 10200
ce2cded5
L
10201 sysv4.3*)
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_shlibpath_var=no
10204 export_dynamic_flag_spec='-Bexport'
10205 ;;
d7040cdb 10206
ce2cded5
L
10207 sysv4*MP*)
10208 if test -d /usr/nec; then
10209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10210 hardcode_shlibpath_var=no
10211 runpath_var=LD_RUN_PATH
10212 hardcode_runpath_var=yes
10213 ld_shlibs=yes
10214 fi
10215 ;;
d7040cdb 10216
ce2cded5
L
10217 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10218 no_undefined_flag='${wl}-z,text'
10219 archive_cmds_need_lc=no
10220 hardcode_shlibpath_var=no
10221 runpath_var='LD_RUN_PATH'
d7040cdb 10222
ce2cded5
L
10223 if test "$GCC" = yes; then
10224 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10226 else
10227 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10228 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229 fi
10230 ;;
d7040cdb 10231
ce2cded5
L
10232 sysv5* | sco3.2v5* | sco5v6*)
10233 # Note: We can NOT use -z defs as we might desire, because we do not
10234 # link with -lc, and that would cause any symbols used from libc to
10235 # always be unresolved, which means just about no library would
10236 # ever link correctly. If we're not using GNU ld we use -z text
10237 # though, which does catch some bad symbols but isn't as heavy-handed
10238 # as -z defs.
10239 no_undefined_flag='${wl}-z,text'
10240 allow_undefined_flag='${wl}-z,nodefs'
10241 archive_cmds_need_lc=no
10242 hardcode_shlibpath_var=no
10243 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10244 hardcode_libdir_separator=':'
10245 link_all_deplibs=yes
10246 export_dynamic_flag_spec='${wl}-Bexport'
10247 runpath_var='LD_RUN_PATH'
d7040cdb 10248
ce2cded5
L
10249 if test "$GCC" = yes; then
10250 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 else
10253 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 fi
10256 ;;
d7040cdb 10257
ce2cded5
L
10258 uts4*)
10259 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10260 hardcode_libdir_flag_spec='-L$libdir'
10261 hardcode_shlibpath_var=no
10262 ;;
d7040cdb 10263
ce2cded5
L
10264 *)
10265 ld_shlibs=no
10266 ;;
10267 esac
d7040cdb 10268
ce2cded5
L
10269 if test x$host_vendor = xsni; then
10270 case $host in
10271 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10272 export_dynamic_flag_spec='${wl}-Blargedynsym'
10273 ;;
10274 esac
10275 fi
10276 fi
d7040cdb 10277
81ecdfbb
RW
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10279$as_echo "$ld_shlibs" >&6; }
ce2cded5 10280test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10281
ce2cded5 10282with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
ce2cded5
L
10298#
10299# Do we need to explicitly link libc?
10300#
10301case "x$archive_cmds_need_lc" in
10302x|xyes)
10303 # Assume -lc should be added
10304 archive_cmds_need_lc=yes
d7040cdb 10305
ce2cded5
L
10306 if test "$enable_shared" = yes && test "$GCC" = yes; then
10307 case $archive_cmds in
10308 *'~'*)
10309 # FIXME: we may have to deal with multi-command sequences.
10310 ;;
10311 '$CC '*)
10312 # Test whether the compiler implicitly links with -lc since on some
10313 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10314 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10316$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10317if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10318 $as_echo_n "(cached) " >&6
39144654
RW
10319else
10320 $RM conftest*
10321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10322
81ecdfbb 10323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10324 (eval $ac_compile) 2>&5
10325 ac_status=$?
81ecdfbb
RW
10326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10327 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10328 soname=conftest
10329 lib=conftest
10330 libobjs=conftest.$ac_objext
10331 deplibs=
10332 wl=$lt_prog_compiler_wl
10333 pic_flag=$lt_prog_compiler_pic
10334 compiler_flags=-v
10335 linker_flags=-v
10336 verstring=
10337 output_objdir=.
10338 libname=conftest
10339 lt_save_allow_undefined_flag=$allow_undefined_flag
10340 allow_undefined_flag=
81ecdfbb 10341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10342 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10343 ac_status=$?
81ecdfbb
RW
10344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345 test $ac_status = 0; }
39144654
RW
10346 then
10347 lt_cv_archive_cmds_need_lc=no
10348 else
10349 lt_cv_archive_cmds_need_lc=yes
10350 fi
10351 allow_undefined_flag=$lt_save_allow_undefined_flag
10352 else
10353 cat conftest.err 1>&5
10354 fi
10355 $RM conftest*
10356
10357fi
81ecdfbb
RW
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10359$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10360 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10361 ;;
10362 esac
10363 fi
10364 ;;
10365esac
d7040cdb
SE
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
d7040cdb 10393
d7040cdb 10394
d7040cdb
SE
10395
10396
10397
10398
10399
10400
d7040cdb 10401
d7040cdb 10402
d7040cdb 10403
d7040cdb 10404
d7040cdb 10405
d7040cdb 10406
d7040cdb 10407
d7040cdb 10408
d7040cdb 10409
d7040cdb 10410
d7040cdb 10411
d7040cdb 10412
d7040cdb 10413
d7040cdb 10414
d7040cdb 10415
d7040cdb 10416
d7040cdb 10417
d7040cdb 10418
d7040cdb 10419
d7040cdb 10420
d7040cdb 10421
d7040cdb 10422
d7040cdb 10423
d7040cdb 10424
d7040cdb 10425
d7040cdb 10426
d7040cdb 10427
d7040cdb 10428
ce2cded5
L
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
81ecdfbb
RW
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10524$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10525
10526if test "$GCC" = yes; then
ce2cded5
L
10527 case $host_os in
10528 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10529 *) lt_awk_arg="/^libraries:/" ;;
10530 esac
3725885a
RW
10531 case $host_os in
10532 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10533 *) lt_sed_strip_eq="s,=/,/,g" ;;
10534 esac
10535 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10536 case $lt_search_path_spec in
10537 *\;*)
ce2cded5
L
10538 # if the path contains ";" then we assume it to be the separator
10539 # otherwise default to the standard path separator (i.e. ":") - it is
10540 # assumed that no part of a normal pathname contains ";" but that should
10541 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10542 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10543 ;;
10544 *)
10545 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10546 ;;
10547 esac
ce2cded5
L
10548 # Ok, now we have the path, separated by spaces, we can step through it
10549 # and add multilib dir if necessary.
10550 lt_tmp_lt_search_path_spec=
10551 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10552 for lt_sys_path in $lt_search_path_spec; do
10553 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10554 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10555 else
10556 test -d "$lt_sys_path" && \
10557 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10558 fi
10559 done
3725885a 10560 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10561BEGIN {RS=" "; FS="/|\n";} {
10562 lt_foo="";
10563 lt_count=0;
10564 for (lt_i = NF; lt_i > 0; lt_i--) {
10565 if ($lt_i != "" && $lt_i != ".") {
10566 if ($lt_i == "..") {
10567 lt_count++;
10568 } else {
10569 if (lt_count == 0) {
10570 lt_foo="/" $lt_i lt_foo;
10571 } else {
10572 lt_count--;
10573 }
10574 }
10575 }
10576 }
10577 if (lt_foo != "") { lt_freq[lt_foo]++; }
10578 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10579}'`
3725885a
RW
10580 # AWK program above erroneously prepends '/' to C:/dos/paths
10581 # for these hosts.
10582 case $host_os in
10583 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10584 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10585 esac
10586 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10587else
ce2cded5
L
10588 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10589fi
10590library_names_spec=
10591libname_spec='lib$name'
10592soname_spec=
10593shrext_cmds=".so"
10594postinstall_cmds=
10595postuninstall_cmds=
10596finish_cmds=
10597finish_eval=
10598shlibpath_var=
10599shlibpath_overrides_runpath=unknown
10600version_type=none
10601dynamic_linker="$host_os ld.so"
10602sys_lib_dlsearch_path_spec="/lib /usr/lib"
10603need_lib_prefix=unknown
10604hardcode_into_libs=no
10605
10606# when you set need_version to no, make sure it does not cause -set_version
10607# flags to be left without arguments
10608need_version=unknown
10609
10610case $host_os in
10611aix3*)
10612 version_type=linux
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10614 shlibpath_var=LIBPATH
10615
10616 # AIX 3 has no versioning support, so we append a major version to the name.
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 ;;
10619
50e7d84b 10620aix[4-9]*)
ce2cded5
L
10621 version_type=linux
10622 need_lib_prefix=no
10623 need_version=no
10624 hardcode_into_libs=yes
10625 if test "$host_cpu" = ia64; then
10626 # AIX 5 supports IA64
10627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 else
10630 # With GCC up to 2.95.x, collect2 would create an import file
10631 # for dependence libraries. The import file would start with
10632 # the line `#! .'. This would cause the generated library to
10633 # depend on `.', always an invalid library. This was fixed in
10634 # development snapshots of GCC prior to 3.0.
10635 case $host_os in
10636 aix4 | aix4.[01] | aix4.[01].*)
10637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10638 echo ' yes '
10639 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10640 :
10641 else
10642 can_build_shared=no
10643 fi
10644 ;;
10645 esac
10646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10647 # soname into executable. Probably we can add versioning support to
10648 # collect2, so additional links can be useful in future.
10649 if test "$aix_use_runtimelinking" = yes; then
10650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10651 # instead of lib<name>.a to let people know that these are not
10652 # typical AIX shared libraries.
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 else
10655 # We preserve .a as extension for shared libraries through AIX4.2
10656 # and later when we are not doing run time linking.
10657 library_names_spec='${libname}${release}.a $libname.a'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 fi
10660 shlibpath_var=LIBPATH
10661 fi
10662 ;;
10663
10664amigaos*)
b214d478
SE
10665 case $host_cpu in
10666 powerpc)
10667 # Since July 2007 AmigaOS4 officially supports .so libraries.
10668 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 ;;
10671 m68k)
ce2cded5
L
10672 library_names_spec='$libname.ixlibrary $libname.a'
10673 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10674 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
10675 ;;
10676 esac
ce2cded5
L
10677 ;;
10678
10679beos*)
10680 library_names_spec='${libname}${shared_ext}'
10681 dynamic_linker="$host_os ld.so"
10682 shlibpath_var=LIBRARY_PATH
10683 ;;
10684
10685bsdi[45]*)
10686 version_type=linux
10687 need_version=no
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10691 shlibpath_var=LD_LIBRARY_PATH
10692 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10693 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10694 # the default ld.so.conf also contains /usr/contrib/lib and
10695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10696 # libtool to hard-code these into programs
10697 ;;
10698
b214d478 10699cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10700 version_type=windows
10701 shrext_cmds=".dll"
10702 need_version=no
10703 need_lib_prefix=no
10704
b214d478
SE
10705 case $GCC,$host_os in
10706 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10707 library_names_spec='$libname.dll.a'
10708 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10709 postinstall_cmds='base_file=`basename \${file}`~
10710 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10711 dldir=$destdir/`dirname \$dlpath`~
10712 test -d \$dldir || mkdir -p \$dldir~
10713 $install_prog $dir/$dlname \$dldir/$dlname~
10714 chmod a+x \$dldir/$dlname~
10715 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10716 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10717 fi'
10718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10719 dlpath=$dir/\$dldll~
10720 $RM \$dlpath'
10721 shlibpath_overrides_runpath=yes
10722
10723 case $host_os in
10724 cygwin*)
10725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10727
10728 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10729 ;;
b214d478 10730 mingw* | cegcc*)
ce2cded5
L
10731 # MinGW DLLs use traditional 'lib' prefix
10732 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10733 ;;
10734 pw32*)
10735 # pw32 DLLs use 'pw' prefix rather than 'lib'
10736 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10737 ;;
10738 esac
10739 ;;
10740
10741 *)
10742 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10743 ;;
10744 esac
10745 dynamic_linker='Win32 ld.exe'
10746 # FIXME: first we should search . and the directory the executable is in
10747 shlibpath_var=PATH
10748 ;;
10749
10750darwin* | rhapsody*)
10751 dynamic_linker="$host_os dyld"
10752 version_type=darwin
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10756 soname_spec='${libname}${release}${major}$shared_ext'
10757 shlibpath_overrides_runpath=yes
10758 shlibpath_var=DYLD_LIBRARY_PATH
10759 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10760
10761 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10762 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10763 ;;
10764
10765dgux*)
10766 version_type=linux
10767 need_lib_prefix=no
10768 need_version=no
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10770 soname_spec='${libname}${release}${shared_ext}$major'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 ;;
10773
ce2cded5
L
10774freebsd* | dragonfly*)
10775 # DragonFly does not have aout. When/if they implement a new
10776 # versioning mechanism, adjust this.
10777 if test -x /usr/bin/objformat; then
10778 objformat=`/usr/bin/objformat`
10779 else
10780 case $host_os in
6d2920c8 10781 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10782 *) objformat=elf ;;
10783 esac
10784 fi
10785 version_type=freebsd-$objformat
10786 case $version_type in
10787 freebsd-elf*)
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10789 need_version=no
10790 need_lib_prefix=no
10791 ;;
10792 freebsd-*)
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10794 need_version=yes
10795 ;;
10796 esac
10797 shlibpath_var=LD_LIBRARY_PATH
10798 case $host_os in
6d2920c8 10799 freebsd2.*)
ce2cded5
L
10800 shlibpath_overrides_runpath=yes
10801 ;;
10802 freebsd3.[01]* | freebsdelf3.[01]*)
10803 shlibpath_overrides_runpath=yes
10804 hardcode_into_libs=yes
10805 ;;
10806 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10807 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 ;;
10811 *) # from 4.6 on, and DragonFly
10812 shlibpath_overrides_runpath=yes
10813 hardcode_into_libs=yes
10814 ;;
10815 esac
10816 ;;
10817
3725885a
RW
10818haiku*)
10819 version_type=linux
10820 need_lib_prefix=no
10821 need_version=no
10822 dynamic_linker="$host_os runtime_loader"
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 shlibpath_var=LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
d85e70a3 10827 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
10828 hardcode_into_libs=yes
10829 ;;
10830
ce2cded5
L
10831hpux9* | hpux10* | hpux11*)
10832 # Give a soname corresponding to the major version so that dld.sl refuses to
10833 # link against other versions.
10834 version_type=sunos
10835 need_lib_prefix=no
10836 need_version=no
10837 case $host_cpu in
10838 ia64*)
10839 shrext_cmds='.so'
10840 hardcode_into_libs=yes
10841 dynamic_linker="$host_os dld.so"
10842 shlibpath_var=LD_LIBRARY_PATH
10843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 if test "X$HPUX_IA64_MODE" = X32; then
10847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848 else
10849 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850 fi
10851 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852 ;;
10853 hppa*64*)
10854 shrext_cmds='.sl'
10855 hardcode_into_libs=yes
10856 dynamic_linker="$host_os dld.sl"
10857 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10858 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10863 ;;
10864 *)
10865 shrext_cmds='.sl'
10866 dynamic_linker="$host_os dld.sl"
10867 shlibpath_var=SHLIB_PATH
10868 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 ;;
10872 esac
3725885a 10873 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10874 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10875 # or fails outright, so override atomically:
10876 install_override_mode=555
ce2cded5
L
10877 ;;
10878
10879interix[3-9]*)
10880 version_type=linux
10881 need_lib_prefix=no
10882 need_version=no
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 shlibpath_overrides_runpath=no
10888 hardcode_into_libs=yes
10889 ;;
10890
10891irix5* | irix6* | nonstopux*)
10892 case $host_os in
10893 nonstopux*) version_type=nonstopux ;;
10894 *)
10895 if test "$lt_cv_prog_gnu_ld" = yes; then
10896 version_type=linux
10897 else
10898 version_type=irix
10899 fi ;;
10900 esac
10901 need_lib_prefix=no
10902 need_version=no
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10905 case $host_os in
10906 irix5* | nonstopux*)
10907 libsuff= shlibsuff=
10908 ;;
10909 *)
10910 case $LD in # libtool.m4 will add one of these switches to LD
10911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10912 libsuff= shlibsuff= libmagic=32-bit;;
10913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10914 libsuff=32 shlibsuff=N32 libmagic=N32;;
10915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10917 *) libsuff= shlibsuff= libmagic=never-match;;
10918 esac
10919 ;;
10920 esac
10921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10922 shlibpath_overrides_runpath=no
10923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10925 hardcode_into_libs=yes
10926 ;;
10927
10928# No shared lib support for Linux oldld, aout, or coff.
10929linux*oldld* | linux*aout* | linux*coff*)
10930 dynamic_linker=no
10931 ;;
10932
10933# This must be Linux ELF.
f4782128 10934linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
ce2cded5
L
10935 version_type=linux
10936 need_lib_prefix=no
10937 need_version=no
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939 soname_spec='${libname}${release}${shared_ext}$major'
10940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 shlibpath_overrides_runpath=no
39144654 10943
ce2cded5 10944 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10945 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10946 $as_echo_n "(cached) " >&6
39144654
RW
10947else
10948 lt_cv_shlibpath_overrides_runpath=no
10949 save_LDFLAGS=$LDFLAGS
10950 save_libdir=$libdir
10951 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10952 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10954/* end confdefs.h. */
10955
d7040cdb
SE
10956int
10957main ()
10958{
ce2cded5 10959
d7040cdb
SE
10960 ;
10961 return 0;
10962}
10963_ACEOF
81ecdfbb
RW
10964if ac_fn_c_try_link "$LINENO"; then :
10965 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10966 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 10967fi
d7040cdb 10968fi
81ecdfbb
RW
10969rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10971 LDFLAGS=$save_LDFLAGS
10972 libdir=$save_libdir
10973
10974fi
10975
10976 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 10977
ce2cded5
L
10978 # This implies no fast_install, which is unacceptable.
10979 # Some rework will be needed to allow for fast_install
10980 # before this can be enabled.
10981 hardcode_into_libs=yes
d7040cdb 10982
ce2cded5
L
10983 # Append ld.so.conf contents to the search path
10984 if test -f /etc/ld.so.conf; then
3725885a 10985 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
10986 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10987 fi
d7040cdb 10988
ce2cded5
L
10989 # We used to test for /lib/ld.so.1 and disable shared libraries on
10990 # powerpc, because MkLinux only supported shared libraries with the
10991 # GNU dynamic linker. Since this was broken with cross compilers,
10992 # most powerpc-linux boxes support dynamic linking these days and
10993 # people can always --disable-shared, the test was removed, and we
10994 # assume the GNU/Linux dynamic linker is in use.
10995 dynamic_linker='GNU/Linux ld.so'
10996 ;;
d7040cdb 10997
ce2cded5
L
10998netbsd*)
10999 version_type=sunos
11000 need_lib_prefix=no
11001 need_version=no
11002 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11005 dynamic_linker='NetBSD (a.out) ld.so'
11006 else
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 dynamic_linker='NetBSD ld.elf_so'
11010 fi
11011 shlibpath_var=LD_LIBRARY_PATH
11012 shlibpath_overrides_runpath=yes
11013 hardcode_into_libs=yes
11014 ;;
d7040cdb 11015
ce2cded5
L
11016newsos6)
11017 version_type=linux
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes
11021 ;;
d7040cdb 11022
ce2cded5
L
11023*nto* | *qnx*)
11024 version_type=qnx
11025 need_lib_prefix=no
11026 need_version=no
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028 soname_spec='${libname}${release}${shared_ext}$major'
11029 shlibpath_var=LD_LIBRARY_PATH
11030 shlibpath_overrides_runpath=no
11031 hardcode_into_libs=yes
11032 dynamic_linker='ldqnx.so'
11033 ;;
d7040cdb 11034
ce2cded5
L
11035openbsd*)
11036 version_type=sunos
11037 sys_lib_dlsearch_path_spec="/usr/lib"
11038 need_lib_prefix=no
11039 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11040 case $host_os in
11041 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11042 *) need_version=no ;;
11043 esac
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11046 shlibpath_var=LD_LIBRARY_PATH
11047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11048 case $host_os in
11049 openbsd2.[89] | openbsd2.[89].*)
11050 shlibpath_overrides_runpath=no
11051 ;;
11052 *)
11053 shlibpath_overrides_runpath=yes
11054 ;;
11055 esac
11056 else
11057 shlibpath_overrides_runpath=yes
11058 fi
11059 ;;
d7040cdb 11060
ce2cded5
L
11061os2*)
11062 libname_spec='$name'
11063 shrext_cmds=".dll"
11064 need_lib_prefix=no
11065 library_names_spec='$libname${shared_ext} $libname.a'
11066 dynamic_linker='OS/2 ld.exe'
11067 shlibpath_var=LIBPATH
11068 ;;
d7040cdb 11069
ce2cded5
L
11070osf3* | osf4* | osf5*)
11071 version_type=osf
11072 need_lib_prefix=no
11073 need_version=no
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11078 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11079 ;;
d7040cdb 11080
ce2cded5
L
11081rdos*)
11082 dynamic_linker=no
11083 ;;
d7040cdb 11084
ce2cded5
L
11085solaris*)
11086 version_type=linux
11087 need_lib_prefix=no
11088 need_version=no
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=yes
11093 hardcode_into_libs=yes
11094 # ldd complains unless libraries are executable
11095 postinstall_cmds='chmod +x $lib'
11096 ;;
d7040cdb 11097
ce2cded5
L
11098sunos4*)
11099 version_type=sunos
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11101 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 shlibpath_overrides_runpath=yes
11104 if test "$with_gnu_ld" = yes; then
11105 need_lib_prefix=no
11106 fi
11107 need_version=yes
11108 ;;
d7040cdb 11109
ce2cded5
L
11110sysv4 | sysv4.3*)
11111 version_type=linux
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 case $host_vendor in
11116 sni)
11117 shlibpath_overrides_runpath=no
11118 need_lib_prefix=no
11119 runpath_var=LD_RUN_PATH
11120 ;;
11121 siemens)
11122 need_lib_prefix=no
11123 ;;
11124 motorola)
11125 need_lib_prefix=no
11126 need_version=no
11127 shlibpath_overrides_runpath=no
11128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11129 ;;
11130 esac
11131 ;;
d7040cdb 11132
ce2cded5
L
11133sysv4*MP*)
11134 if test -d /usr/nec ;then
11135 version_type=linux
11136 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11137 soname_spec='$libname${shared_ext}.$major'
11138 shlibpath_var=LD_LIBRARY_PATH
11139 fi
11140 ;;
d7040cdb 11141
ce2cded5
L
11142sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11143 version_type=freebsd-elf
11144 need_lib_prefix=no
11145 need_version=no
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 hardcode_into_libs=yes
11151 if test "$with_gnu_ld" = yes; then
11152 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11153 else
11154 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11155 case $host_os in
11156 sco3.2v5*)
11157 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11158 ;;
11159 esac
11160 fi
11161 sys_lib_dlsearch_path_spec='/usr/lib'
11162 ;;
d7040cdb 11163
ce2cded5
L
11164tpf*)
11165 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11166 version_type=linux
11167 need_lib_prefix=no
11168 need_version=no
b214d478 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=no
11172 hardcode_into_libs=yes
11173 ;;
d7040cdb 11174
ce2cded5
L
11175uts4*)
11176 version_type=linux
11177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178 soname_spec='${libname}${release}${shared_ext}$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 ;;
d7040cdb 11181
ce2cded5
L
11182*)
11183 dynamic_linker=no
11184 ;;
11185esac
81ecdfbb
RW
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11187$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11188test "$dynamic_linker" = no && can_build_shared=no
11189
11190variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11191if test "$GCC" = yes; then
11192 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11193fi
11194
b214d478
SE
11195if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11196 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11197fi
11198if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11200fi
11201
d7040cdb
SE
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
d7040cdb 11213
d7040cdb 11214
d7040cdb 11215
d7040cdb 11216
d7040cdb
SE
11217
11218
11219
11220
d7040cdb 11221
d7040cdb
SE
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
d7040cdb
SE
11235
11236
11237
11238
d7040cdb
SE
11239
11240
11241
11242
d7040cdb 11243
d7040cdb 11244
d7040cdb 11245
d7040cdb 11246
d7040cdb 11247
d7040cdb 11248
d7040cdb 11249
d7040cdb
SE
11250
11251
11252
11253
11254
d7040cdb 11255
d7040cdb 11256
d7040cdb 11257
d7040cdb 11258
d7040cdb 11259
d7040cdb 11260
d7040cdb
SE
11261
11262
11263
11264
11265
d7040cdb
SE
11266
11267
d7040cdb 11268
d7040cdb 11269
d7040cdb 11270
d7040cdb 11271
ce2cded5
L
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
3725885a
RW
11282
11283
11284
11285
11286
ce2cded5
L
11287
11288
11289
11290
11291
11292
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11294$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11295hardcode_action=
11296if test -n "$hardcode_libdir_flag_spec" ||
11297 test -n "$runpath_var" ||
11298 test "X$hardcode_automatic" = "Xyes" ; then
11299
11300 # We can hardcode non-existent directories.
11301 if test "$hardcode_direct" != no &&
11302 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11303 # have to relink, otherwise we might link with an installed library
11304 # when we should be linking with a yet-to-be-installed one
11305 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11306 test "$hardcode_minus_L" != no; then
11307 # Linking always hardcodes the temporary library directory.
11308 hardcode_action=relink
11309 else
11310 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11311 hardcode_action=immediate
d7040cdb 11312 fi
d7040cdb 11313else
ce2cded5
L
11314 # We cannot hardcode anything, or else we can only hardcode existing
11315 # directories.
11316 hardcode_action=unsupported
d7040cdb 11317fi
81ecdfbb
RW
11318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11319$as_echo "$hardcode_action" >&6; }
d7040cdb 11320
ce2cded5
L
11321if test "$hardcode_action" = relink ||
11322 test "$inherit_rpath" = yes; then
11323 # Fast installation is not supported
11324 enable_fast_install=no
11325elif test "$shlibpath_overrides_runpath" = yes ||
11326 test "$enable_shared" = no; then
11327 # Fast installation is not necessary
11328 enable_fast_install=needless
d7040cdb
SE
11329fi
11330
d7040cdb 11331
d7040cdb 11332
d7040cdb 11333
d7040cdb 11334
d7040cdb 11335
ce2cded5
L
11336 if test "x$enable_dlopen" != xyes; then
11337 enable_dlopen=unknown
11338 enable_dlopen_self=unknown
11339 enable_dlopen_self_static=unknown
d7040cdb 11340else
ce2cded5
L
11341 lt_cv_dlopen=no
11342 lt_cv_dlopen_libs=
d7040cdb 11343
ce2cded5
L
11344 case $host_os in
11345 beos*)
11346 lt_cv_dlopen="load_add_on"
11347 lt_cv_dlopen_libs=
11348 lt_cv_dlopen_self=yes
11349 ;;
d7040cdb 11350
b214d478 11351 mingw* | pw32* | cegcc*)
ce2cded5
L
11352 lt_cv_dlopen="LoadLibrary"
11353 lt_cv_dlopen_libs=
11354 ;;
11355
11356 cygwin*)
11357 lt_cv_dlopen="dlopen"
11358 lt_cv_dlopen_libs=
11359 ;;
11360
11361 darwin*)
11362 # if libdl is installed we need to link against it
81ecdfbb
RW
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11364$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11365if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11366 $as_echo_n "(cached) " >&6
d7040cdb 11367else
ce2cded5
L
11368 ac_check_lib_save_LIBS=$LIBS
11369LIBS="-ldl $LIBS"
81ecdfbb 11370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11371/* end confdefs.h. */
11372
81ecdfbb
RW
11373/* Override any GCC internal prototype to avoid an error.
11374 Use char because int might match the return type of a GCC
11375 builtin and then its argument prototype would still apply. */
ce2cded5
L
11376#ifdef __cplusplus
11377extern "C"
11378#endif
ce2cded5
L
11379char dlopen ();
11380int
11381main ()
11382{
81ecdfbb 11383return dlopen ();
ce2cded5
L
11384 ;
11385 return 0;
11386}
11387_ACEOF
81ecdfbb 11388if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11389 ac_cv_lib_dl_dlopen=yes
11390else
81ecdfbb 11391 ac_cv_lib_dl_dlopen=no
d7040cdb 11392fi
81ecdfbb
RW
11393rm -f core conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11395LIBS=$ac_check_lib_save_LIBS
d7040cdb 11396fi
81ecdfbb
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11398$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11399if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11400 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11401else
d7040cdb 11402
ce2cded5
L
11403 lt_cv_dlopen="dyld"
11404 lt_cv_dlopen_libs=
11405 lt_cv_dlopen_self=yes
11406
d7040cdb 11407fi
ce2cded5
L
11408
11409 ;;
11410
11411 *)
81ecdfbb 11412 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11413if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11414 lt_cv_dlopen="shl_load"
11415else
81ecdfbb
RW
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11417$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11418if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11419 $as_echo_n "(cached) " >&6
ce2cded5
L
11420else
11421 ac_check_lib_save_LIBS=$LIBS
11422LIBS="-ldld $LIBS"
81ecdfbb 11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11424/* end confdefs.h. */
d7040cdb 11425
81ecdfbb
RW
11426/* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
ce2cded5
L
11429#ifdef __cplusplus
11430extern "C"
11431#endif
ce2cded5
L
11432char shl_load ();
11433int
11434main ()
11435{
81ecdfbb 11436return shl_load ();
ce2cded5
L
11437 ;
11438 return 0;
11439}
11440_ACEOF
81ecdfbb 11441if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11442 ac_cv_lib_dld_shl_load=yes
11443else
81ecdfbb 11444 ac_cv_lib_dld_shl_load=no
ce2cded5 11445fi
81ecdfbb
RW
11446rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11448LIBS=$ac_check_lib_save_LIBS
11449fi
81ecdfbb
RW
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11451$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11452if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b214d478 11453 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11454else
81ecdfbb 11455 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11456if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11457 lt_cv_dlopen="dlopen"
11458else
81ecdfbb
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11460$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11461if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11462 $as_echo_n "(cached) " >&6
d7040cdb 11463else
ce2cded5
L
11464 ac_check_lib_save_LIBS=$LIBS
11465LIBS="-ldl $LIBS"
81ecdfbb 11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11467/* end confdefs.h. */
11468
81ecdfbb
RW
11469/* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
ce2cded5
L
11472#ifdef __cplusplus
11473extern "C"
11474#endif
ce2cded5 11475char dlopen ();
d7040cdb
SE
11476int
11477main ()
11478{
81ecdfbb 11479return dlopen ();
d7040cdb
SE
11480 ;
11481 return 0;
11482}
11483_ACEOF
81ecdfbb 11484if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11485 ac_cv_lib_dl_dlopen=yes
d7040cdb 11486else
81ecdfbb 11487 ac_cv_lib_dl_dlopen=no
d7040cdb 11488fi
81ecdfbb
RW
11489rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11491LIBS=$ac_check_lib_save_LIBS
d7040cdb 11492fi
81ecdfbb
RW
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11494$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11495if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11496 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11497else
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11499$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11500if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11501 $as_echo_n "(cached) " >&6
d7040cdb 11502else
ce2cded5
L
11503 ac_check_lib_save_LIBS=$LIBS
11504LIBS="-lsvld $LIBS"
81ecdfbb 11505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11506/* end confdefs.h. */
d7040cdb 11507
81ecdfbb
RW
11508/* Override any GCC internal prototype to avoid an error.
11509 Use char because int might match the return type of a GCC
11510 builtin and then its argument prototype would still apply. */
ce2cded5
L
11511#ifdef __cplusplus
11512extern "C"
11513#endif
ce2cded5 11514char dlopen ();
d7040cdb
SE
11515int
11516main ()
11517{
81ecdfbb 11518return dlopen ();
d7040cdb
SE
11519 ;
11520 return 0;
11521}
11522_ACEOF
81ecdfbb 11523if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11524 ac_cv_lib_svld_dlopen=yes
d7040cdb 11525else
81ecdfbb 11526 ac_cv_lib_svld_dlopen=no
d7040cdb 11527fi
81ecdfbb
RW
11528rm -f core conftest.err conftest.$ac_objext \
11529 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11530LIBS=$ac_check_lib_save_LIBS
d7040cdb 11531fi
81ecdfbb
RW
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11533$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11534if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11535 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11536else
81ecdfbb
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11538$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11539if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11540 $as_echo_n "(cached) " >&6
ce2cded5
L
11541else
11542 ac_check_lib_save_LIBS=$LIBS
11543LIBS="-ldld $LIBS"
81ecdfbb 11544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11545/* end confdefs.h. */
11546
81ecdfbb
RW
11547/* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
ce2cded5
L
11550#ifdef __cplusplus
11551extern "C"
11552#endif
ce2cded5 11553char dld_link ();
d7040cdb
SE
11554int
11555main ()
11556{
81ecdfbb 11557return dld_link ();
d7040cdb
SE
11558 ;
11559 return 0;
11560}
11561_ACEOF
81ecdfbb 11562if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11563 ac_cv_lib_dld_dld_link=yes
d7040cdb 11564else
81ecdfbb 11565 ac_cv_lib_dld_dld_link=no
d7040cdb 11566fi
81ecdfbb
RW
11567rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11569LIBS=$ac_check_lib_save_LIBS
11570fi
81ecdfbb
RW
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11572$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11573if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b214d478 11574 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11575fi
11576
11577
11578fi
11579
11580
11581fi
11582
11583
11584fi
11585
11586
11587fi
11588
11589
11590fi
11591
11592 ;;
11593 esac
11594
11595 if test "x$lt_cv_dlopen" != xno; then
11596 enable_dlopen=yes
11597 else
11598 enable_dlopen=no
11599 fi
11600
11601 case $lt_cv_dlopen in
11602 dlopen)
11603 save_CPPFLAGS="$CPPFLAGS"
11604 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11605
11606 save_LDFLAGS="$LDFLAGS"
11607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11608
11609 save_LIBS="$LIBS"
11610 LIBS="$lt_cv_dlopen_libs $LIBS"
11611
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11613$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11614if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11615 $as_echo_n "(cached) " >&6
ce2cded5
L
11616else
11617 if test "$cross_compiling" = yes; then :
11618 lt_cv_dlopen_self=cross
11619else
11620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11621 lt_status=$lt_dlunknown
11622 cat > conftest.$ac_ext <<_LT_EOF
2cac01e3 11623#line 11623 "configure"
ce2cded5
L
11624#include "confdefs.h"
11625
11626#if HAVE_DLFCN_H
11627#include <dlfcn.h>
11628#endif
11629
11630#include <stdio.h>
11631
11632#ifdef RTLD_GLOBAL
11633# define LT_DLGLOBAL RTLD_GLOBAL
11634#else
11635# ifdef DL_GLOBAL
11636# define LT_DLGLOBAL DL_GLOBAL
11637# else
11638# define LT_DLGLOBAL 0
11639# endif
11640#endif
11641
11642/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11643 find out it does not work in some platform. */
11644#ifndef LT_DLLAZY_OR_NOW
11645# ifdef RTLD_LAZY
11646# define LT_DLLAZY_OR_NOW RTLD_LAZY
11647# else
11648# ifdef DL_LAZY
11649# define LT_DLLAZY_OR_NOW DL_LAZY
11650# else
11651# ifdef RTLD_NOW
11652# define LT_DLLAZY_OR_NOW RTLD_NOW
11653# else
11654# ifdef DL_NOW
11655# define LT_DLLAZY_OR_NOW DL_NOW
11656# else
11657# define LT_DLLAZY_OR_NOW 0
11658# endif
11659# endif
11660# endif
11661# endif
11662#endif
11663
3725885a
RW
11664/* When -fvisbility=hidden is used, assume the code has been annotated
11665 correspondingly for the symbols needed. */
11666#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11667void fnord () __attribute__((visibility("default")));
11668#endif
11669
11670void fnord () { int i=42; }
ce2cded5 11671int main ()
d7040cdb 11672{
ce2cded5
L
11673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11674 int status = $lt_dlunknown;
11675
11676 if (self)
11677 {
11678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11679 else
11680 {
11681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11682 else puts (dlerror ());
11683 }
ce2cded5
L
11684 /* dlclose (self); */
11685 }
11686 else
11687 puts (dlerror ());
11688
b214d478 11689 return status;
d7040cdb 11690}
ce2cded5 11691_LT_EOF
81ecdfbb 11692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11693 (eval $ac_link) 2>&5
d7040cdb 11694 ac_status=$?
81ecdfbb
RW
11695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11696 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11697 (./conftest; exit; ) >&5 2>/dev/null
11698 lt_status=$?
11699 case x$lt_status in
11700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11703 esac
11704 else :
11705 # compilation failed
11706 lt_cv_dlopen_self=no
11707 fi
11708fi
11709rm -fr conftest*
11710
11711
11712fi
81ecdfbb
RW
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11714$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11715
11716 if test "x$lt_cv_dlopen_self" = xyes; then
11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11719$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11720if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11721 $as_echo_n "(cached) " >&6
ce2cded5
L
11722else
11723 if test "$cross_compiling" = yes; then :
11724 lt_cv_dlopen_self_static=cross
11725else
11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727 lt_status=$lt_dlunknown
11728 cat > conftest.$ac_ext <<_LT_EOF
2cac01e3 11729#line 11729 "configure"
ce2cded5
L
11730#include "confdefs.h"
11731
11732#if HAVE_DLFCN_H
11733#include <dlfcn.h>
11734#endif
11735
11736#include <stdio.h>
11737
11738#ifdef RTLD_GLOBAL
11739# define LT_DLGLOBAL RTLD_GLOBAL
11740#else
11741# ifdef DL_GLOBAL
11742# define LT_DLGLOBAL DL_GLOBAL
11743# else
11744# define LT_DLGLOBAL 0
11745# endif
11746#endif
11747
11748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749 find out it does not work in some platform. */
11750#ifndef LT_DLLAZY_OR_NOW
11751# ifdef RTLD_LAZY
11752# define LT_DLLAZY_OR_NOW RTLD_LAZY
11753# else
11754# ifdef DL_LAZY
11755# define LT_DLLAZY_OR_NOW DL_LAZY
11756# else
11757# ifdef RTLD_NOW
11758# define LT_DLLAZY_OR_NOW RTLD_NOW
11759# else
11760# ifdef DL_NOW
11761# define LT_DLLAZY_OR_NOW DL_NOW
11762# else
11763# define LT_DLLAZY_OR_NOW 0
11764# endif
11765# endif
11766# endif
11767# endif
11768#endif
11769
3cb62297
L
11770/* When -fvisbility=hidden is used, assume the code has been annotated
11771 correspondingly for the symbols needed. */
11772#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11773void fnord () __attribute__((visibility("default")));
11774#endif
11775
11776void fnord () { int i=42; }
11777int main ()
11778{
11779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11780 int status = $lt_dlunknown;
11781
11782 if (self)
11783 {
11784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11785 else
11786 {
11787 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11788 else puts (dlerror ());
11789 }
11790 /* dlclose (self); */
11791 }
11792 else
11793 puts (dlerror ());
11794
11795 return status;
11796}
11797_LT_EOF
11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11799 (eval $ac_link) 2>&5
11800 ac_status=$?
11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11803 (./conftest; exit; ) >&5 2>/dev/null
11804 lt_status=$?
11805 case x$lt_status in
11806 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11807 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11808 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11809 esac
11810 else :
11811 # compilation failed
11812 lt_cv_dlopen_self_static=no
11813 fi
11814fi
11815rm -fr conftest*
11816
11817
11818fi
11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11820$as_echo "$lt_cv_dlopen_self_static" >&6; }
11821 fi
11822
11823 CPPFLAGS="$save_CPPFLAGS"
11824 LDFLAGS="$save_LDFLAGS"
11825 LIBS="$save_LIBS"
11826 ;;
11827 esac
11828
11829 case $lt_cv_dlopen_self in
11830 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11831 *) enable_dlopen_self=unknown ;;
11832 esac
11833
11834 case $lt_cv_dlopen_self_static in
11835 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11836 *) enable_dlopen_self_static=unknown ;;
11837 esac
11838fi
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856striplib=
11857old_striplib=
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11859$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11860if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11862 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864$as_echo "yes" >&6; }
11865else
11866# FIXME - insert some real tests, host_os isn't really good enough
11867 case $host_os in
11868 darwin*)
11869 if test -n "$STRIP" ; then
11870 striplib="$STRIP -x"
11871 old_striplib="$STRIP -S"
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11873$as_echo "yes" >&6; }
11874 else
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
11877 fi
11878 ;;
11879 *)
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
11882 ;;
11883 esac
11884fi
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897 # Report which library types will actually be built
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11899$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11901$as_echo "$can_build_shared" >&6; }
11902
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11904$as_echo_n "checking whether to build shared libraries... " >&6; }
11905 test "$can_build_shared" = "no" && enable_shared=no
11906
11907 # On AIX, shared libraries and static libraries use the same namespace, and
11908 # are all built from PIC.
11909 case $host_os in
11910 aix3*)
11911 test "$enable_shared" = yes && enable_static=no
11912 if test -n "$RANLIB"; then
11913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11914 postinstall_cmds='$RANLIB $lib'
11915 fi
11916 ;;
11917
11918 aix[4-9]*)
11919 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11920 test "$enable_shared" = yes && enable_static=no
11921 fi
11922 ;;
11923 esac
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11925$as_echo "$enable_shared" >&6; }
11926
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11928$as_echo_n "checking whether to build static libraries... " >&6; }
11929 # Make sure either enable_shared or enable_static is yes.
11930 test "$enable_shared" = yes || enable_static=yes
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11932$as_echo "$enable_static" >&6; }
11933
11934
11935
11936
11937fi
11938ac_ext=c
11939ac_cpp='$CPP $CPPFLAGS'
11940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11942ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943
11944CC="$lt_save_CC"
11945
11946 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11947 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11948 (test "X$CXX" != "Xg++"))) ; then
11949 ac_ext=cpp
11950ac_cpp='$CXXCPP $CPPFLAGS'
11951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11955$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11956if test -z "$CXXCPP"; then
d0ac1c44 11957 if ${ac_cv_prog_CXXCPP+:} false; then :
3cb62297
L
11958 $as_echo_n "(cached) " >&6
11959else
11960 # Double quotes because CXXCPP needs to be expanded
11961 for CXXCPP in "$CXX -E" "/lib/cpp"
11962 do
11963 ac_preproc_ok=false
11964for ac_cxx_preproc_warn_flag in '' yes
11965do
11966 # Use a header file that comes with gcc, so configuring glibc
11967 # with a fresh cross-compiler works.
11968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11969 # <limits.h> exists even on freestanding compilers.
11970 # On the NeXT, cc -E runs the code through the compiler's parser,
11971 # not just through cpp. "Syntax error" is here to catch this case.
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973/* end confdefs.h. */
11974#ifdef __STDC__
11975# include <limits.h>
11976#else
11977# include <assert.h>
11978#endif
11979 Syntax error
11980_ACEOF
11981if ac_fn_cxx_try_cpp "$LINENO"; then :
11982
11983else
11984 # Broken: fails on valid input.
11985continue
11986fi
d0ac1c44 11987rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
11988
11989 # OK, works on sane cases. Now check whether nonexistent headers
11990 # can be detected and how.
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h. */
11993#include <ac_nonexistent.h>
11994_ACEOF
11995if ac_fn_cxx_try_cpp "$LINENO"; then :
11996 # Broken: success on invalid input.
11997continue
11998else
11999 # Passes both tests.
12000ac_preproc_ok=:
12001break
12002fi
d0ac1c44 12003rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12004
12005done
12006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12007rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12008if $ac_preproc_ok; then :
12009 break
12010fi
12011
12012 done
12013 ac_cv_prog_CXXCPP=$CXXCPP
12014
12015fi
12016 CXXCPP=$ac_cv_prog_CXXCPP
12017else
12018 ac_cv_prog_CXXCPP=$CXXCPP
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12021$as_echo "$CXXCPP" >&6; }
12022ac_preproc_ok=false
12023for ac_cxx_preproc_warn_flag in '' yes
12024do
12025 # Use a header file that comes with gcc, so configuring glibc
12026 # with a fresh cross-compiler works.
12027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 # <limits.h> exists even on freestanding compilers.
12029 # On the NeXT, cc -E runs the code through the compiler's parser,
12030 # not just through cpp. "Syntax error" is here to catch this case.
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032/* end confdefs.h. */
12033#ifdef __STDC__
12034# include <limits.h>
12035#else
12036# include <assert.h>
12037#endif
12038 Syntax error
12039_ACEOF
12040if ac_fn_cxx_try_cpp "$LINENO"; then :
12041
12042else
12043 # Broken: fails on valid input.
12044continue
12045fi
d0ac1c44 12046rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12047
12048 # OK, works on sane cases. Now check whether nonexistent headers
12049 # can be detected and how.
12050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12051/* end confdefs.h. */
12052#include <ac_nonexistent.h>
12053_ACEOF
12054if ac_fn_cxx_try_cpp "$LINENO"; then :
12055 # Broken: success on invalid input.
12056continue
12057else
12058 # Passes both tests.
12059ac_preproc_ok=:
12060break
12061fi
d0ac1c44 12062rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12063
12064done
12065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12066rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12067if $ac_preproc_ok; then :
12068
12069else
12070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12072as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12073See \`config.log' for more details" "$LINENO" 5; }
3cb62297
L
12074fi
12075
12076ac_ext=c
12077ac_cpp='$CPP $CPPFLAGS'
12078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12080ac_compiler_gnu=$ac_cv_c_compiler_gnu
12081
12082else
12083 _lt_caught_CXX_error=yes
12084fi
12085
12086ac_ext=cpp
12087ac_cpp='$CXXCPP $CPPFLAGS'
12088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12091
12092archive_cmds_need_lc_CXX=no
12093allow_undefined_flag_CXX=
12094always_export_symbols_CXX=no
12095archive_expsym_cmds_CXX=
12096compiler_needs_object_CXX=no
12097export_dynamic_flag_spec_CXX=
12098hardcode_direct_CXX=no
12099hardcode_direct_absolute_CXX=no
12100hardcode_libdir_flag_spec_CXX=
12101hardcode_libdir_flag_spec_ld_CXX=
12102hardcode_libdir_separator_CXX=
12103hardcode_minus_L_CXX=no
12104hardcode_shlibpath_var_CXX=unsupported
12105hardcode_automatic_CXX=no
12106inherit_rpath_CXX=no
12107module_cmds_CXX=
12108module_expsym_cmds_CXX=
12109link_all_deplibs_CXX=unknown
12110old_archive_cmds_CXX=$old_archive_cmds
12111reload_flag_CXX=$reload_flag
12112reload_cmds_CXX=$reload_cmds
12113no_undefined_flag_CXX=
12114whole_archive_flag_spec_CXX=
12115enable_shared_with_static_runtimes_CXX=no
12116
12117# Source file extension for C++ test sources.
12118ac_ext=cpp
12119
12120# Object file extension for compiled C++ test sources.
12121objext=o
12122objext_CXX=$objext
12123
12124# No sense in running all these tests if we already determined that
12125# the CXX compiler isn't working. Some variables (like enable_shared)
12126# are currently assumed to apply to all compilers on this platform,
12127# and will be corrupted by setting them based on a non-working compiler.
12128if test "$_lt_caught_CXX_error" != yes; then
12129 # Code to be used in simple compile tests
12130 lt_simple_compile_test_code="int some_variable = 0;"
12131
12132 # Code to be used in simple link tests
12133 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12134
12135 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12136
12137
12138
12139
12140
12141
12142# If no C compiler was specified, use CC.
12143LTCC=${LTCC-"$CC"}
12144
12145# If no C compiler flags were specified, use CFLAGS.
12146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12147
12148# Allow CC to be a program name with arguments.
12149compiler=$CC
12150
12151
12152 # save warnings/boilerplate of simple test code
12153 ac_outfile=conftest.$ac_objext
12154echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12156_lt_compiler_boilerplate=`cat conftest.err`
12157$RM conftest*
12158
12159 ac_outfile=conftest.$ac_objext
12160echo "$lt_simple_link_test_code" >conftest.$ac_ext
12161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12162_lt_linker_boilerplate=`cat conftest.err`
12163$RM -r conftest*
12164
12165
12166 # Allow CC to be a program name with arguments.
12167 lt_save_CC=$CC
12168 lt_save_LD=$LD
12169 lt_save_GCC=$GCC
12170 GCC=$GXX
12171 lt_save_with_gnu_ld=$with_gnu_ld
12172 lt_save_path_LD=$lt_cv_path_LD
12173 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12174 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12175 else
12176 $as_unset lt_cv_prog_gnu_ld
12177 fi
12178 if test -n "${lt_cv_path_LDCXX+set}"; then
12179 lt_cv_path_LD=$lt_cv_path_LDCXX
12180 else
12181 $as_unset lt_cv_path_LD
12182 fi
12183 test -z "${LDCXX+set}" || LD=$LDCXX
12184 CC=${CXX-"c++"}
12185 compiler=$CC
12186 compiler_CXX=$CC
12187 for cc_temp in $compiler""; do
12188 case $cc_temp in
12189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12191 \-*) ;;
12192 *) break;;
12193 esac
12194done
12195cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12196
12197
12198 if test -n "$compiler"; then
12199 # We don't want -fno-exception when compiling C++ code, so set the
12200 # no_builtin_flag separately
12201 if test "$GXX" = yes; then
12202 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12203 else
12204 lt_prog_compiler_no_builtin_flag_CXX=
12205 fi
12206
12207 if test "$GXX" = yes; then
12208 # Set up default GNU C++ configuration
12209
12210
12211
12212# Check whether --with-gnu-ld was given.
12213if test "${with_gnu_ld+set}" = set; then :
12214 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12215else
12216 with_gnu_ld=no
12217fi
12218
12219ac_prog=ld
12220if test "$GCC" = yes; then
12221 # Check if gcc -print-prog-name=ld gives a path.
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12223$as_echo_n "checking for ld used by $CC... " >&6; }
12224 case $host in
12225 *-*-mingw*)
12226 # gcc leaves a trailing carriage return which upsets mingw
12227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12228 *)
12229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12230 esac
12231 case $ac_prog in
12232 # Accept absolute paths.
12233 [\\/]* | ?:[\\/]*)
12234 re_direlt='/[^/][^/]*/\.\./'
12235 # Canonicalize the pathname of ld
12236 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12237 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12238 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12239 done
12240 test -z "$LD" && LD="$ac_prog"
12241 ;;
12242 "")
12243 # If it fails, then pretend we aren't using GCC.
12244 ac_prog=ld
12245 ;;
12246 *)
12247 # If it is relative, then search for the first ld in PATH.
12248 with_gnu_ld=unknown
12249 ;;
12250 esac
12251elif test "$with_gnu_ld" = yes; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12253$as_echo_n "checking for GNU ld... " >&6; }
12254else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12256$as_echo_n "checking for non-GNU ld... " >&6; }
12257fi
d0ac1c44 12258if ${lt_cv_path_LD+:} false; then :
3cb62297
L
12259 $as_echo_n "(cached) " >&6
12260else
12261 if test -z "$LD"; then
12262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12263 for ac_dir in $PATH; do
12264 IFS="$lt_save_ifs"
12265 test -z "$ac_dir" && ac_dir=.
12266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12267 lt_cv_path_LD="$ac_dir/$ac_prog"
12268 # Check to see if the program is GNU ld. I'd rather use --version,
12269 # but apparently some variants of GNU ld only accept -v.
12270 # Break only if it was the GNU/non-GNU ld that we prefer.
12271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12272 *GNU* | *'with BFD'*)
12273 test "$with_gnu_ld" != no && break
12274 ;;
12275 *)
12276 test "$with_gnu_ld" != yes && break
12277 ;;
12278 esac
12279 fi
12280 done
12281 IFS="$lt_save_ifs"
12282else
12283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12284fi
12285fi
12286
12287LD="$lt_cv_path_LD"
12288if test -n "$LD"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12290$as_echo "$LD" >&6; }
12291else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
d0ac1c44 12295test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3cb62297
L
12296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12297$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 12298if ${lt_cv_prog_gnu_ld+:} false; then :
3cb62297
L
12299 $as_echo_n "(cached) " >&6
12300else
12301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12302case `$LD -v 2>&1 </dev/null` in
12303*GNU* | *'with BFD'*)
12304 lt_cv_prog_gnu_ld=yes
12305 ;;
12306*)
12307 lt_cv_prog_gnu_ld=no
12308 ;;
12309esac
12310fi
12311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12312$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12313with_gnu_ld=$lt_cv_prog_gnu_ld
12314
12315
12316
12317
12318
12319
12320
12321 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12322 # archiving commands below assume that GNU ld is being used.
12323 if test "$with_gnu_ld" = yes; then
6e733cce
L
12324 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12325 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
12326
12327 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12328 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12329
12330 # If archive_cmds runs LD, not CC, wlarc should be empty
12331 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12332 # investigate it a little bit more. (MM)
12333 wlarc='${wl}'
12334
12335 # ancient GNU ld didn't support --whole-archive et. al.
12336 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12337 $GREP 'no-whole-archive' > /dev/null; then
12338 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12339 else
12340 whole_archive_flag_spec_CXX=
12341 fi
12342 else
12343 with_gnu_ld=no
12344 wlarc=
12345
12346 # A generic and very simple default shared library creation
12347 # command for GNU C++ for the case where it uses the native
12348 # linker, instead of GNU ld. If possible, this setting should
12349 # overridden to take advantage of the native linker features on
12350 # the platform it is being used on.
12351 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12352 fi
12353
12354 # Commands to make compiler produce verbose output that lists
12355 # what "hidden" libraries, object files and flags are used when
12356 # linking a shared library.
12357 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12358
12359 else
12360 GXX=no
12361 with_gnu_ld=no
12362 wlarc=
12363 fi
12364
12365 # PORTME: fill in a description of your system's C++ link characteristics
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12367$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12368 ld_shlibs_CXX=yes
12369 case $host_os in
12370 aix3*)
12371 # FIXME: insert proper C++ library support
12372 ld_shlibs_CXX=no
12373 ;;
12374 aix[4-9]*)
12375 if test "$host_cpu" = ia64; then
12376 # On IA64, the linker does run time linking by default, so we don't
12377 # have to do anything special.
12378 aix_use_runtimelinking=no
12379 exp_sym_flag='-Bexport'
12380 no_entry_flag=""
12381 else
12382 aix_use_runtimelinking=no
12383
12384 # Test if we are trying to use run time linking or normal
12385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12386 # need to do runtime linking.
12387 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12388 for ld_flag in $LDFLAGS; do
12389 case $ld_flag in
12390 *-brtl*)
12391 aix_use_runtimelinking=yes
12392 break
12393 ;;
12394 esac
12395 done
12396 ;;
12397 esac
12398
12399 exp_sym_flag='-bexport'
12400 no_entry_flag='-bnoentry'
12401 fi
12402
12403 # When large executables or shared objects are built, AIX ld can
12404 # have problems creating the table of contents. If linking a library
12405 # or program results in "error TOC overflow" add -mminimal-toc to
12406 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12407 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12408
12409 archive_cmds_CXX=''
12410 hardcode_direct_CXX=yes
12411 hardcode_direct_absolute_CXX=yes
12412 hardcode_libdir_separator_CXX=':'
12413 link_all_deplibs_CXX=yes
12414 file_list_spec_CXX='${wl}-f,'
12415
12416 if test "$GXX" = yes; then
12417 case $host_os in aix4.[012]|aix4.[012].*)
12418 # We only want to do this on AIX 4.2 and lower, the check
12419 # below for broken collect2 doesn't work under 4.3+
12420 collect2name=`${CC} -print-prog-name=collect2`
12421 if test -f "$collect2name" &&
12422 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12423 then
12424 # We have reworked collect2
12425 :
12426 else
12427 # We have old collect2
12428 hardcode_direct_CXX=unsupported
12429 # It fails to find uninstalled libraries when the uninstalled
12430 # path is not listed in the libpath. Setting hardcode_minus_L
12431 # to unsupported forces relinking
12432 hardcode_minus_L_CXX=yes
12433 hardcode_libdir_flag_spec_CXX='-L$libdir'
12434 hardcode_libdir_separator_CXX=
12435 fi
12436 esac
12437 shared_flag='-shared'
12438 if test "$aix_use_runtimelinking" = yes; then
12439 shared_flag="$shared_flag "'${wl}-G'
12440 fi
12441 else
12442 # not using gcc
12443 if test "$host_cpu" = ia64; then
12444 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12445 # chokes on -Wl,-G. The following line is correct:
12446 shared_flag='-G'
12447 else
12448 if test "$aix_use_runtimelinking" = yes; then
12449 shared_flag='${wl}-G'
12450 else
12451 shared_flag='${wl}-bM:SRE'
12452 fi
12453 fi
12454 fi
12455
12456 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12457 # It seems that -bexpall does not export symbols beginning with
12458 # underscore (_), so it is better to generate a list of symbols to
12459 # export.
12460 always_export_symbols_CXX=yes
12461 if test "$aix_use_runtimelinking" = yes; then
12462 # Warning - without using the other runtime loading flags (-brtl),
12463 # -berok will link without error, but may produce a broken library.
12464 allow_undefined_flag_CXX='-berok'
12465 # Determine the default libpath from the value encoded in an empty
12466 # executable.
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h. */
12469
12470int
12471main ()
12472{
12473
12474 ;
12475 return 0;
12476}
12477_ACEOF
12478if ac_fn_cxx_try_link "$LINENO"; then :
12479
12480lt_aix_libpath_sed='
12481 /Import File Strings/,/^$/ {
12482 /^0/ {
12483 s/^0 *\(.*\)$/\1/
12484 p
12485 }
12486 }'
12487aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12488# Check for a 64-bit object if we didn't find anything.
12489if test -z "$aix_libpath"; then
12490 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12491fi
12492fi
12493rm -f core conftest.err conftest.$ac_objext \
12494 conftest$ac_exeext conftest.$ac_ext
12495if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12496
12497 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12498
12499 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"
12500 else
12501 if test "$host_cpu" = ia64; then
12502 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12503 allow_undefined_flag_CXX="-z nodefs"
12504 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"
12505 else
12506 # Determine the default libpath from the value encoded in an
12507 # empty executable.
12508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12509/* end confdefs.h. */
12510
12511int
12512main ()
12513{
12514
12515 ;
12516 return 0;
12517}
12518_ACEOF
12519if ac_fn_cxx_try_link "$LINENO"; then :
12520
12521lt_aix_libpath_sed='
12522 /Import File Strings/,/^$/ {
12523 /^0/ {
12524 s/^0 *\(.*\)$/\1/
12525 p
12526 }
12527 }'
12528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12529# Check for a 64-bit object if we didn't find anything.
12530if test -z "$aix_libpath"; then
12531 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12532fi
12533fi
12534rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12536if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12537
12538 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12539 # Warning - without using the other run time loading flags,
12540 # -berok will link without error, but may produce a broken library.
12541 no_undefined_flag_CXX=' ${wl}-bernotok'
12542 allow_undefined_flag_CXX=' ${wl}-berok'
12543 if test "$with_gnu_ld" = yes; then
12544 # We only use this code for GNU lds that support --whole-archive.
12545 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12546 else
12547 # Exported symbols can be pulled into shared objects from archives
12548 whole_archive_flag_spec_CXX='$convenience'
12549 fi
12550 archive_cmds_need_lc_CXX=yes
12551 # This is similar to how AIX traditionally builds its shared
12552 # libraries.
12553 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'
12554 fi
12555 fi
12556 ;;
12557
12558 beos*)
12559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12560 allow_undefined_flag_CXX=unsupported
12561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12562 # support --undefined. This deserves some investigation. FIXME
12563 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12564 else
12565 ld_shlibs_CXX=no
12566 fi
12567 ;;
12568
12569 chorus*)
12570 case $cc_basename in
12571 *)
12572 # FIXME: insert proper C++ library support
12573 ld_shlibs_CXX=no
12574 ;;
12575 esac
12576 ;;
12577
12578 cygwin* | mingw* | pw32* | cegcc*)
12579 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12580 # as there is no search path for DLLs.
12581 hardcode_libdir_flag_spec_CXX='-L$libdir'
12582 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12583 allow_undefined_flag_CXX=unsupported
12584 always_export_symbols_CXX=no
12585 enable_shared_with_static_runtimes_CXX=yes
12586
12587 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12588 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'
12589 # If the export-symbols file already is a .def file (1st line
12590 # is EXPORTS), use it as is; otherwise, prepend...
12591 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12592 cp $export_symbols $output_objdir/$soname.def;
12593 else
12594 echo EXPORTS > $output_objdir/$soname.def;
12595 cat $export_symbols >> $output_objdir/$soname.def;
12596 fi~
12597 $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'
12598 else
12599 ld_shlibs_CXX=no
12600 fi
12601 ;;
12602 darwin* | rhapsody*)
12603
12604
12605 archive_cmds_need_lc_CXX=no
12606 hardcode_direct_CXX=no
12607 hardcode_automatic_CXX=yes
12608 hardcode_shlibpath_var_CXX=unsupported
12609 if test "$lt_cv_ld_force_load" = "yes"; then
12610 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\"`'
12611 else
12612 whole_archive_flag_spec_CXX=''
12613 fi
12614 link_all_deplibs_CXX=yes
12615 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12616 case $cc_basename in
12617 ifort*) _lt_dar_can_shared=yes ;;
12618 *) _lt_dar_can_shared=$GCC ;;
12619 esac
12620 if test "$_lt_dar_can_shared" = "yes"; then
12621 output_verbose_link_cmd=func_echo_all
12622 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}"
12623 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12624 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}"
12625 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}"
12626 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12627 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}"
12628 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}"
12629 fi
12630
12631 else
12632 ld_shlibs_CXX=no
12633 fi
12634
12635 ;;
12636
12637 dgux*)
12638 case $cc_basename in
12639 ec++*)
12640 # FIXME: insert proper C++ library support
12641 ld_shlibs_CXX=no
12642 ;;
12643 ghcx*)
12644 # Green Hills C++ Compiler
12645 # FIXME: insert proper C++ library support
12646 ld_shlibs_CXX=no
12647 ;;
12648 *)
12649 # FIXME: insert proper C++ library support
12650 ld_shlibs_CXX=no
12651 ;;
12652 esac
12653 ;;
12654
6d2920c8 12655 freebsd2.*)
3cb62297
L
12656 # C++ shared libraries reported to be fairly broken before
12657 # switch to ELF
12658 ld_shlibs_CXX=no
12659 ;;
12660
12661 freebsd-elf*)
12662 archive_cmds_need_lc_CXX=no
12663 ;;
12664
12665 freebsd* | dragonfly*)
12666 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12667 # conventions
12668 ld_shlibs_CXX=yes
12669 ;;
12670
12671 gnu*)
12672 ;;
12673
12674 haiku*)
12675 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12676 link_all_deplibs_CXX=yes
12677 ;;
12678
12679 hpux9*)
12680 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12681 hardcode_libdir_separator_CXX=:
12682 export_dynamic_flag_spec_CXX='${wl}-E'
12683 hardcode_direct_CXX=yes
12684 hardcode_minus_L_CXX=yes # Not in the search PATH,
12685 # but as the default
12686 # location of the library.
12687
12688 case $cc_basename in
12689 CC*)
12690 # FIXME: insert proper C++ library support
12691 ld_shlibs_CXX=no
12692 ;;
12693 aCC*)
12694 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'
12695 # Commands to make compiler produce verbose output that lists
12696 # what "hidden" libraries, object files and flags are used when
12697 # linking a shared library.
12698 #
12699 # There doesn't appear to be a way to prevent this compiler from
12700 # explicitly linking system object files so we need to strip them
12701 # from the output so that they don't get included in the library
12702 # dependencies.
12703 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"'
12704 ;;
12705 *)
12706 if test "$GXX" = yes; then
12707 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'
12708 else
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12711 fi
12712 ;;
12713 esac
12714 ;;
12715
12716 hpux10*|hpux11*)
12717 if test $with_gnu_ld = no; then
12718 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12719 hardcode_libdir_separator_CXX=:
12720
12721 case $host_cpu in
12722 hppa*64*|ia64*)
12723 ;;
12724 *)
12725 export_dynamic_flag_spec_CXX='${wl}-E'
12726 ;;
12727 esac
12728 fi
12729 case $host_cpu in
12730 hppa*64*|ia64*)
12731 hardcode_direct_CXX=no
12732 hardcode_shlibpath_var_CXX=no
12733 ;;
12734 *)
12735 hardcode_direct_CXX=yes
12736 hardcode_direct_absolute_CXX=yes
12737 hardcode_minus_L_CXX=yes # Not in the search PATH,
12738 # but as the default
12739 # location of the library.
12740 ;;
12741 esac
12742
12743 case $cc_basename in
12744 CC*)
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12747 ;;
12748 aCC*)
12749 case $host_cpu in
12750 hppa*64*)
12751 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12752 ;;
12753 ia64*)
12754 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12755 ;;
12756 *)
12757 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12758 ;;
12759 esac
12760 # Commands to make compiler produce verbose output that lists
12761 # what "hidden" libraries, object files and flags are used when
12762 # linking a shared library.
12763 #
12764 # There doesn't appear to be a way to prevent this compiler from
12765 # explicitly linking system object files so we need to strip them
12766 # from the output so that they don't get included in the library
12767 # dependencies.
12768 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"'
12769 ;;
12770 *)
12771 if test "$GXX" = yes; then
12772 if test $with_gnu_ld = no; then
12773 case $host_cpu in
12774 hppa*64*)
12775 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12776 ;;
12777 ia64*)
12778 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12779 ;;
12780 *)
12781 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'
12782 ;;
12783 esac
12784 fi
12785 else
12786 # FIXME: insert proper C++ library support
12787 ld_shlibs_CXX=no
12788 fi
12789 ;;
12790 esac
12791 ;;
12792
12793 interix[3-9]*)
12794 hardcode_direct_CXX=no
12795 hardcode_shlibpath_var_CXX=no
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12797 export_dynamic_flag_spec_CXX='${wl}-E'
12798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12799 # Instead, shared libraries are loaded at an image base (0x10000000 by
12800 # default) and relocated if they conflict, which is a slow very memory
12801 # consuming and fragmenting process. To avoid this, we pick a random,
12802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12804 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'
12805 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'
12806 ;;
12807 irix5* | irix6*)
12808 case $cc_basename in
12809 CC*)
12810 # SGI C++
12811 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'
12812
12813 # Archives containing C++ object files must be created using
12814 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12815 # necessary to make sure instantiated templates are included
12816 # in the archive.
12817 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12818 ;;
12819 *)
12820 if test "$GXX" = yes; then
12821 if test "$with_gnu_ld" = no; then
12822 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'
12823 else
12824 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'
12825 fi
12826 fi
12827 link_all_deplibs_CXX=yes
12828 ;;
12829 esac
12830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12831 hardcode_libdir_separator_CXX=:
12832 inherit_rpath_CXX=yes
12833 ;;
12834
12835 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12836 case $cc_basename in
12837 KCC*)
12838 # Kuck and Associates, Inc. (KAI) C++ Compiler
12839
12840 # KCC will only create a shared library if the output file
12841 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12842 # to its proper name (with version) after linking.
12843 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'
12844 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'
12845 # Commands to make compiler produce verbose output that lists
12846 # what "hidden" libraries, object files and flags are used when
12847 # linking a shared library.
12848 #
12849 # There doesn't appear to be a way to prevent this compiler from
12850 # explicitly linking system object files so we need to strip them
12851 # from the output so that they don't get included in the library
12852 # dependencies.
12853 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"'
12854
12855 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12856 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12857
12858 # Archives containing C++ object files must be created using
12859 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12860 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12861 ;;
12862 icpc* | ecpc* )
12863 # Intel C++
12864 with_gnu_ld=yes
12865 # version 8.0 and above of icpc choke on multiply defined symbols
12866 # if we add $predep_objects and $postdep_objects, however 7.1 and
12867 # earlier do not add the objects themselves.
12868 case `$CC -V 2>&1` in
12869 *"Version 7."*)
12870 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12871 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'
12872 ;;
12873 *) # Version 8.0 or newer
12874 tmp_idyn=
12875 case $host_cpu in
12876 ia64*) tmp_idyn=' -i_dynamic';;
12877 esac
12878 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879 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'
12880 ;;
12881 esac
12882 archive_cmds_need_lc_CXX=no
12883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12885 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12886 ;;
12887 pgCC* | pgcpp*)
12888 # Portland Group C++ compiler
12889 case `$CC -V` in
12890 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12891 prelink_cmds_CXX='tpldir=Template.dir~
12892 rm -rf $tpldir~
12893 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12894 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12895 old_archive_cmds_CXX='tpldir=Template.dir~
12896 rm -rf $tpldir~
12897 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12898 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12899 $RANLIB $oldlib'
12900 archive_cmds_CXX='tpldir=Template.dir~
12901 rm -rf $tpldir~
12902 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12903 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12904 archive_expsym_cmds_CXX='tpldir=Template.dir~
12905 rm -rf $tpldir~
12906 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12907 $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'
12908 ;;
12909 *) # Version 6 and above use weak symbols
12910 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12911 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'
12912 ;;
12913 esac
12914
12915 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12916 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12917 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'
12918 ;;
12919 cxx*)
12920 # Compaq C++
12921 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12922 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'
12923
12924 runpath_var=LD_RUN_PATH
12925 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12926 hardcode_libdir_separator_CXX=:
12927
12928 # Commands to make compiler produce verbose output that lists
12929 # what "hidden" libraries, object files and flags are used when
12930 # linking a shared library.
12931 #
12932 # There doesn't appear to be a way to prevent this compiler from
12933 # explicitly linking system object files so we need to strip them
12934 # from the output so that they don't get included in the library
12935 # dependencies.
12936 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'
12937 ;;
12938 xl* | mpixl* | bgxl*)
12939 # IBM XL 8.0 on PPC, with GNU ld
12940 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12941 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12942 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12943 if test "x$supports_anon_versioning" = xyes; then
12944 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12945 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12946 echo "local: *; };" >> $output_objdir/$libname.ver~
12947 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12948 fi
12949 ;;
12950 *)
12951 case `$CC -V 2>&1 | sed 5q` in
12952 *Sun\ C*)
12953 # Sun C++ 5.9
12954 no_undefined_flag_CXX=' -zdefs'
12955 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12956 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'
12957 hardcode_libdir_flag_spec_CXX='-R$libdir'
12958 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'
12959 compiler_needs_object_CXX=yes
12960
12961 # Not sure whether something based on
12962 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12963 # would be better.
12964 output_verbose_link_cmd='func_echo_all'
12965
12966 # Archives containing C++ object files must be created using
12967 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12968 # necessary to make sure instantiated templates are included
12969 # in the archive.
12970 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12971 ;;
12972 esac
12973 ;;
12974 esac
12975 ;;
12976
12977 lynxos*)
12978 # FIXME: insert proper C++ library support
12979 ld_shlibs_CXX=no
12980 ;;
12981
12982 m88k*)
12983 # FIXME: insert proper C++ library support
12984 ld_shlibs_CXX=no
12985 ;;
12986
12987 mvs*)
12988 case $cc_basename in
12989 cxx*)
12990 # FIXME: insert proper C++ library support
12991 ld_shlibs_CXX=no
12992 ;;
12993 *)
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12996 ;;
12997 esac
12998 ;;
12999
13000 netbsd*)
13001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13002 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13003 wlarc=
13004 hardcode_libdir_flag_spec_CXX='-R$libdir'
13005 hardcode_direct_CXX=yes
13006 hardcode_shlibpath_var_CXX=no
13007 fi
13008 # Workaround some broken pre-1.5 toolchains
13009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13010 ;;
13011
13012 *nto* | *qnx*)
13013 ld_shlibs_CXX=yes
13014 ;;
13015
13016 openbsd2*)
13017 # C++ shared libraries are fairly broken
13018 ld_shlibs_CXX=no
13019 ;;
13020
13021 openbsd*)
13022 if test -f /usr/libexec/ld.so; then
13023 hardcode_direct_CXX=yes
13024 hardcode_shlibpath_var_CXX=no
13025 hardcode_direct_absolute_CXX=yes
13026 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13029 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13030 export_dynamic_flag_spec_CXX='${wl}-E'
13031 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13032 fi
13033 output_verbose_link_cmd=func_echo_all
13034 else
13035 ld_shlibs_CXX=no
13036 fi
13037 ;;
13038
13039 osf3* | osf4* | osf5*)
13040 case $cc_basename in
13041 KCC*)
13042 # Kuck and Associates, Inc. (KAI) C++ Compiler
13043
13044 # KCC will only create a shared library if the output file
13045 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13046 # to its proper name (with version) after linking.
13047 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'
13048
13049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13050 hardcode_libdir_separator_CXX=:
13051
13052 # Archives containing C++ object files must be created using
13053 # the KAI C++ compiler.
13054 case $host in
13055 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13056 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13057 esac
13058 ;;
13059 RCC*)
13060 # Rational C++ 2.4.1
13061 # FIXME: insert proper C++ library support
13062 ld_shlibs_CXX=no
13063 ;;
13064 cxx*)
13065 case $host in
13066 osf3*)
13067 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13068 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'
13069 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13070 ;;
13071 *)
13072 allow_undefined_flag_CXX=' -expect_unresolved \*'
13073 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'
13074 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13075 echo "-hidden">> $lib.exp~
13076 $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~
13077 $RM $lib.exp'
13078 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13079 ;;
13080 esac
13081
13082 hardcode_libdir_separator_CXX=:
13083
13084 # Commands to make compiler produce verbose output that lists
13085 # what "hidden" libraries, object files and flags are used when
13086 # linking a shared library.
13087 #
13088 # There doesn't appear to be a way to prevent this compiler from
13089 # explicitly linking system object files so we need to strip them
13090 # from the output so that they don't get included in the library
13091 # dependencies.
13092 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"'
13093 ;;
13094 *)
13095 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13096 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13097 case $host in
13098 osf3*)
13099 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'
13100 ;;
13101 *)
13102 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'
13103 ;;
13104 esac
13105
13106 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13107 hardcode_libdir_separator_CXX=:
13108
13109 # Commands to make compiler produce verbose output that lists
13110 # what "hidden" libraries, object files and flags are used when
13111 # linking a shared library.
13112 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13113
13114 else
13115 # FIXME: insert proper C++ library support
13116 ld_shlibs_CXX=no
13117 fi
13118 ;;
13119 esac
13120 ;;
13121
13122 psos*)
13123 # FIXME: insert proper C++ library support
13124 ld_shlibs_CXX=no
13125 ;;
13126
13127 sunos4*)
13128 case $cc_basename in
13129 CC*)
13130 # Sun C++ 4.x
13131 # FIXME: insert proper C++ library support
13132 ld_shlibs_CXX=no
13133 ;;
13134 lcc*)
13135 # Lucid
13136 # FIXME: insert proper C++ library support
13137 ld_shlibs_CXX=no
13138 ;;
13139 *)
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13142 ;;
13143 esac
13144 ;;
13145
13146 solaris*)
13147 case $cc_basename in
13148 CC*)
13149 # Sun C++ 4.2, 5.x and Centerline C++
13150 archive_cmds_need_lc_CXX=yes
13151 no_undefined_flag_CXX=' -zdefs'
13152 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13154 $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'
13155
13156 hardcode_libdir_flag_spec_CXX='-R$libdir'
13157 hardcode_shlibpath_var_CXX=no
13158 case $host_os in
13159 solaris2.[0-5] | solaris2.[0-5].*) ;;
13160 *)
13161 # The compiler driver will combine and reorder linker options,
13162 # but understands `-z linker_flag'.
13163 # Supported since Solaris 2.6 (maybe 2.5.1?)
13164 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13165 ;;
13166 esac
13167 link_all_deplibs_CXX=yes
13168
13169 output_verbose_link_cmd='func_echo_all'
13170
13171 # Archives containing C++ object files must be created using
13172 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13173 # necessary to make sure instantiated templates are included
13174 # in the archive.
13175 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13176 ;;
13177 gcx*)
13178 # Green Hills C++ Compiler
13179 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13180
13181 # The C++ compiler must be used to create the archive.
13182 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13183 ;;
13184 *)
13185 # GNU C++ compiler with Solaris linker
13186 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13187 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13188 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13189 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13190 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13191 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13192
13193 # Commands to make compiler produce verbose output that lists
13194 # what "hidden" libraries, object files and flags are used when
13195 # linking a shared library.
13196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13197 else
13198 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13199 # platform.
13200 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13201 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13202 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13203
13204 # Commands to make compiler produce verbose output that lists
13205 # what "hidden" libraries, object files and flags are used when
13206 # linking a shared library.
13207 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13208 fi
13209
13210 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13211 case $host_os in
13212 solaris2.[0-5] | solaris2.[0-5].*) ;;
13213 *)
13214 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13215 ;;
13216 esac
13217 fi
13218 ;;
13219 esac
13220 ;;
13221
13222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13223 no_undefined_flag_CXX='${wl}-z,text'
13224 archive_cmds_need_lc_CXX=no
13225 hardcode_shlibpath_var_CXX=no
13226 runpath_var='LD_RUN_PATH'
13227
13228 case $cc_basename in
13229 CC*)
13230 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13231 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13232 ;;
13233 *)
13234 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13235 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13236 ;;
13237 esac
13238 ;;
13239
13240 sysv5* | sco3.2v5* | sco5v6*)
13241 # Note: We can NOT use -z defs as we might desire, because we do not
13242 # link with -lc, and that would cause any symbols used from libc to
13243 # always be unresolved, which means just about no library would
13244 # ever link correctly. If we're not using GNU ld we use -z text
13245 # though, which does catch some bad symbols but isn't as heavy-handed
13246 # as -z defs.
13247 no_undefined_flag_CXX='${wl}-z,text'
13248 allow_undefined_flag_CXX='${wl}-z,nodefs'
13249 archive_cmds_need_lc_CXX=no
13250 hardcode_shlibpath_var_CXX=no
13251 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13252 hardcode_libdir_separator_CXX=':'
13253 link_all_deplibs_CXX=yes
13254 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13255 runpath_var='LD_RUN_PATH'
13256
13257 case $cc_basename in
13258 CC*)
13259 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13260 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13261 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13262 '"$old_archive_cmds_CXX"
13263 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13264 '"$reload_cmds_CXX"
13265 ;;
13266 *)
13267 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13268 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13269 ;;
13270 esac
13271 ;;
13272
13273 tandem*)
13274 case $cc_basename in
13275 NCC*)
13276 # NonStop-UX NCC 3.20
13277 # FIXME: insert proper C++ library support
13278 ld_shlibs_CXX=no
13279 ;;
13280 *)
13281 # FIXME: insert proper C++ library support
13282 ld_shlibs_CXX=no
13283 ;;
13284 esac
13285 ;;
13286
13287 vxworks*)
13288 # FIXME: insert proper C++ library support
13289 ld_shlibs_CXX=no
13290 ;;
13291
13292 *)
13293 # FIXME: insert proper C++ library support
13294 ld_shlibs_CXX=no
13295 ;;
13296 esac
13297
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13299$as_echo "$ld_shlibs_CXX" >&6; }
13300 test "$ld_shlibs_CXX" = no && can_build_shared=no
13301
13302 GCC_CXX="$GXX"
13303 LD_CXX="$LD"
13304
13305 ## CAVEAT EMPTOR:
13306 ## There is no encapsulation within the following macros, do not change
13307 ## the running order or otherwise move them around unless you know exactly
13308 ## what you are doing...
13309 # Dependencies to place before and after the object being linked:
13310predep_objects_CXX=
13311postdep_objects_CXX=
13312predeps_CXX=
13313postdeps_CXX=
13314compiler_lib_search_path_CXX=
13315
13316cat > conftest.$ac_ext <<_LT_EOF
13317class Foo
13318{
13319public:
13320 Foo (void) { a = 0; }
13321private:
13322 int a;
13323};
13324_LT_EOF
13325
13326if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13327 (eval $ac_compile) 2>&5
13328 ac_status=$?
13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13330 test $ac_status = 0; }; then
13331 # Parse the compiler output and extract the necessary
13332 # objects, libraries and library flags.
13333
13334 # Sentinel used to keep track of whether or not we are before
13335 # the conftest object file.
13336 pre_test_object_deps_done=no
13337
13338 for p in `eval "$output_verbose_link_cmd"`; do
13339 case $p in
13340
13341 -L* | -R* | -l*)
13342 # Some compilers place space between "-{L,R}" and the path.
13343 # Remove the space.
13344 if test $p = "-L" ||
13345 test $p = "-R"; then
13346 prev=$p
13347 continue
13348 else
13349 prev=
13350 fi
13351
13352 if test "$pre_test_object_deps_done" = no; then
13353 case $p in
13354 -L* | -R*)
13355 # Internal compiler library paths should come after those
13356 # provided the user. The postdeps already come after the
13357 # user supplied libs so there is no need to process them.
13358 if test -z "$compiler_lib_search_path_CXX"; then
13359 compiler_lib_search_path_CXX="${prev}${p}"
13360 else
13361 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13362 fi
13363 ;;
13364 # The "-l" case would never come before the object being
13365 # linked, so don't bother handling this case.
13366 esac
13367 else
13368 if test -z "$postdeps_CXX"; then
13369 postdeps_CXX="${prev}${p}"
13370 else
13371 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13372 fi
13373 fi
13374 ;;
13375
13376 *.$objext)
13377 # This assumes that the test object file only shows up
13378 # once in the compiler output.
13379 if test "$p" = "conftest.$objext"; then
13380 pre_test_object_deps_done=yes
13381 continue
13382 fi
13383
13384 if test "$pre_test_object_deps_done" = no; then
13385 if test -z "$predep_objects_CXX"; then
13386 predep_objects_CXX="$p"
13387 else
13388 predep_objects_CXX="$predep_objects_CXX $p"
13389 fi
13390 else
13391 if test -z "$postdep_objects_CXX"; then
13392 postdep_objects_CXX="$p"
13393 else
13394 postdep_objects_CXX="$postdep_objects_CXX $p"
13395 fi
13396 fi
13397 ;;
13398
13399 *) ;; # Ignore the rest.
13400
13401 esac
13402 done
13403
13404 # Clean up.
13405 rm -f a.out a.exe
13406else
13407 echo "libtool.m4: error: problem compiling CXX test program"
13408fi
13409
13410$RM -f confest.$objext
13411
13412# PORTME: override above test on systems where it is broken
13413case $host_os in
13414interix[3-9]*)
13415 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13416 # hack all around it, let's just trust "g++" to DTRT.
13417 predep_objects_CXX=
13418 postdep_objects_CXX=
13419 postdeps_CXX=
13420 ;;
13421
13422linux*)
13423 case `$CC -V 2>&1 | sed 5q` in
13424 *Sun\ C*)
13425 # Sun C++ 5.9
13426
13427 # The more standards-conforming stlport4 library is
13428 # incompatible with the Cstd library. Avoid specifying
13429 # it if it's in CXXFLAGS. Ignore libCrun as
13430 # -library=stlport4 depends on it.
13431 case " $CXX $CXXFLAGS " in
13432 *" -library=stlport4 "*)
13433 solaris_use_stlport4=yes
13434 ;;
13435 esac
13436
13437 if test "$solaris_use_stlport4" != yes; then
13438 postdeps_CXX='-library=Cstd -library=Crun'
13439 fi
13440 ;;
13441 esac
13442 ;;
13443
13444solaris*)
13445 case $cc_basename in
13446 CC*)
13447 # The more standards-conforming stlport4 library is
13448 # incompatible with the Cstd library. Avoid specifying
13449 # it if it's in CXXFLAGS. Ignore libCrun as
13450 # -library=stlport4 depends on it.
13451 case " $CXX $CXXFLAGS " in
13452 *" -library=stlport4 "*)
13453 solaris_use_stlport4=yes
13454 ;;
13455 esac
13456
13457 # Adding this requires a known-good setup of shared libraries for
13458 # Sun compiler versions before 5.6, else PIC objects from an old
13459 # archive will be linked into the output, leading to subtle bugs.
13460 if test "$solaris_use_stlport4" != yes; then
13461 postdeps_CXX='-library=Cstd -library=Crun'
13462 fi
13463 ;;
13464 esac
13465 ;;
13466esac
13467
13468
13469case " $postdeps_CXX " in
13470*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13471esac
13472 compiler_lib_search_dirs_CXX=
13473if test -n "${compiler_lib_search_path_CXX}"; then
13474 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13475fi
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507 lt_prog_compiler_wl_CXX=
13508lt_prog_compiler_pic_CXX=
13509lt_prog_compiler_static_CXX=
13510
13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13512$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13513
13514 # C++ specific cases for pic, static, wl, etc.
13515 if test "$GXX" = yes; then
13516 lt_prog_compiler_wl_CXX='-Wl,'
13517 lt_prog_compiler_static_CXX='-static'
13518
13519 case $host_os in
13520 aix*)
13521 # All AIX code is PIC.
13522 if test "$host_cpu" = ia64; then
13523 # AIX 5 now supports IA64 processor
13524 lt_prog_compiler_static_CXX='-Bstatic'
13525 fi
52204357 13526 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13527 ;;
13528
13529 amigaos*)
13530 case $host_cpu in
13531 powerpc)
13532 # see comment about AmigaOS4 .so support
13533 lt_prog_compiler_pic_CXX='-fPIC'
13534 ;;
13535 m68k)
13536 # FIXME: we need at least 68020 code to build shared libraries, but
13537 # adding the `-m68020' flag to GCC prevents building anything better,
13538 # like `-m68040'.
13539 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13540 ;;
13541 esac
13542 ;;
13543
13544 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13545 # PIC is the default for these OSes.
13546 ;;
13547 mingw* | cygwin* | os2* | pw32* | cegcc*)
13548 # This hack is so that the source file can tell whether it is being
13549 # built for inclusion in a dll (and should export symbols for example).
13550 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13551 # (--disable-auto-import) libraries
13552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13553 ;;
13554 darwin* | rhapsody*)
13555 # PIC is the default on this platform
13556 # Common symbols not allowed in MH_DYLIB files
13557 lt_prog_compiler_pic_CXX='-fno-common'
13558 ;;
13559 *djgpp*)
13560 # DJGPP does not support shared libraries at all
13561 lt_prog_compiler_pic_CXX=
13562 ;;
13563 haiku*)
13564 # PIC is the default for Haiku.
13565 # The "-static" flag exists, but is broken.
13566 lt_prog_compiler_static_CXX=
13567 ;;
13568 interix[3-9]*)
13569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13570 # Instead, we relocate shared libraries at runtime.
13571 ;;
13572 sysv4*MP*)
13573 if test -d /usr/nec; then
13574 lt_prog_compiler_pic_CXX=-Kconform_pic
13575 fi
13576 ;;
13577 hpux*)
13578 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13579 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13580 # sets the default TLS model and affects inlining.
13581 case $host_cpu in
13582 hppa*64*)
13583 ;;
13584 *)
13585 lt_prog_compiler_pic_CXX='-fPIC'
13586 ;;
13587 esac
13588 ;;
13589 *qnx* | *nto*)
13590 # QNX uses GNU C++, but need to define -shared option too, otherwise
13591 # it will coredump.
13592 lt_prog_compiler_pic_CXX='-fPIC -shared'
13593 ;;
13594 *)
13595 lt_prog_compiler_pic_CXX='-fPIC'
13596 ;;
13597 esac
13598 else
13599 case $host_os in
13600 aix[4-9]*)
13601 # All AIX code is PIC.
13602 if test "$host_cpu" = ia64; then
13603 # AIX 5 now supports IA64 processor
13604 lt_prog_compiler_static_CXX='-Bstatic'
13605 else
13606 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13607 fi
13608 ;;
13609 chorus*)
13610 case $cc_basename in
13611 cxch68*)
13612 # Green Hills C++ Compiler
13613 # _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"
13614 ;;
13615 esac
13616 ;;
13617 dgux*)
13618 case $cc_basename in
13619 ec++*)
13620 lt_prog_compiler_pic_CXX='-KPIC'
13621 ;;
13622 ghcx*)
13623 # Green Hills C++ Compiler
13624 lt_prog_compiler_pic_CXX='-pic'
13625 ;;
13626 *)
13627 ;;
13628 esac
13629 ;;
13630 freebsd* | dragonfly*)
13631 # FreeBSD uses GNU C++
13632 ;;
13633 hpux9* | hpux10* | hpux11*)
13634 case $cc_basename in
13635 CC*)
13636 lt_prog_compiler_wl_CXX='-Wl,'
13637 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13638 if test "$host_cpu" != ia64; then
13639 lt_prog_compiler_pic_CXX='+Z'
13640 fi
13641 ;;
13642 aCC*)
13643 lt_prog_compiler_wl_CXX='-Wl,'
13644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13645 case $host_cpu in
13646 hppa*64*|ia64*)
13647 # +Z the default
13648 ;;
13649 *)
13650 lt_prog_compiler_pic_CXX='+Z'
13651 ;;
13652 esac
13653 ;;
13654 *)
13655 ;;
13656 esac
13657 ;;
13658 interix*)
13659 # This is c89, which is MS Visual C++ (no shared libs)
13660 # Anyone wants to do a port?
13661 ;;
13662 irix5* | irix6* | nonstopux*)
13663 case $cc_basename in
13664 CC*)
13665 lt_prog_compiler_wl_CXX='-Wl,'
13666 lt_prog_compiler_static_CXX='-non_shared'
13667 # CC pic flag -KPIC is the default.
13668 ;;
13669 *)
13670 ;;
13671 esac
13672 ;;
13673 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13674 case $cc_basename in
13675 KCC*)
13676 # KAI C++ Compiler
13677 lt_prog_compiler_wl_CXX='--backend -Wl,'
13678 lt_prog_compiler_pic_CXX='-fPIC'
13679 ;;
13680 ecpc* )
13681 # old Intel C++ for x86_64 which still supported -KPIC.
13682 lt_prog_compiler_wl_CXX='-Wl,'
13683 lt_prog_compiler_pic_CXX='-KPIC'
13684 lt_prog_compiler_static_CXX='-static'
13685 ;;
13686 icpc* )
13687 # Intel C++, used to be incompatible with GCC.
13688 # ICC 10 doesn't accept -KPIC any more.
13689 lt_prog_compiler_wl_CXX='-Wl,'
13690 lt_prog_compiler_pic_CXX='-fPIC'
13691 lt_prog_compiler_static_CXX='-static'
13692 ;;
13693 pgCC* | pgcpp*)
13694 # Portland Group C++ compiler
13695 lt_prog_compiler_wl_CXX='-Wl,'
13696 lt_prog_compiler_pic_CXX='-fpic'
13697 lt_prog_compiler_static_CXX='-Bstatic'
13698 ;;
13699 cxx*)
13700 # Compaq C++
13701 # Make sure the PIC flag is empty. It appears that all Alpha
13702 # Linux and Compaq Tru64 Unix objects are PIC.
13703 lt_prog_compiler_pic_CXX=
13704 lt_prog_compiler_static_CXX='-non_shared'
13705 ;;
13706 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13707 # IBM XL 8.0, 9.0 on PPC and BlueGene
13708 lt_prog_compiler_wl_CXX='-Wl,'
13709 lt_prog_compiler_pic_CXX='-qpic'
13710 lt_prog_compiler_static_CXX='-qstaticlink'
13711 ;;
13712 *)
13713 case `$CC -V 2>&1 | sed 5q` in
13714 *Sun\ C*)
13715 # Sun C++ 5.9
13716 lt_prog_compiler_pic_CXX='-KPIC'
13717 lt_prog_compiler_static_CXX='-Bstatic'
13718 lt_prog_compiler_wl_CXX='-Qoption ld '
13719 ;;
13720 esac
13721 ;;
13722 esac
13723 ;;
13724 lynxos*)
13725 ;;
13726 m88k*)
13727 ;;
13728 mvs*)
13729 case $cc_basename in
13730 cxx*)
13731 lt_prog_compiler_pic_CXX='-W c,exportall'
13732 ;;
13733 *)
13734 ;;
13735 esac
13736 ;;
13737 netbsd*)
13738 ;;
13739 *qnx* | *nto*)
13740 # QNX uses GNU C++, but need to define -shared option too, otherwise
13741 # it will coredump.
13742 lt_prog_compiler_pic_CXX='-fPIC -shared'
13743 ;;
13744 osf3* | osf4* | osf5*)
13745 case $cc_basename in
13746 KCC*)
13747 lt_prog_compiler_wl_CXX='--backend -Wl,'
13748 ;;
13749 RCC*)
13750 # Rational C++ 2.4.1
13751 lt_prog_compiler_pic_CXX='-pic'
13752 ;;
13753 cxx*)
13754 # Digital/Compaq C++
13755 lt_prog_compiler_wl_CXX='-Wl,'
13756 # Make sure the PIC flag is empty. It appears that all Alpha
13757 # Linux and Compaq Tru64 Unix objects are PIC.
13758 lt_prog_compiler_pic_CXX=
13759 lt_prog_compiler_static_CXX='-non_shared'
13760 ;;
13761 *)
13762 ;;
13763 esac
13764 ;;
13765 psos*)
13766 ;;
13767 solaris*)
13768 case $cc_basename in
13769 CC*)
13770 # Sun C++ 4.2, 5.x and Centerline C++
13771 lt_prog_compiler_pic_CXX='-KPIC'
13772 lt_prog_compiler_static_CXX='-Bstatic'
13773 lt_prog_compiler_wl_CXX='-Qoption ld '
13774 ;;
13775 gcx*)
13776 # Green Hills C++ Compiler
13777 lt_prog_compiler_pic_CXX='-PIC'
13778 ;;
13779 *)
13780 ;;
13781 esac
13782 ;;
13783 sunos4*)
13784 case $cc_basename in
13785 CC*)
13786 # Sun C++ 4.x
13787 lt_prog_compiler_pic_CXX='-pic'
13788 lt_prog_compiler_static_CXX='-Bstatic'
13789 ;;
13790 lcc*)
13791 # Lucid
13792 lt_prog_compiler_pic_CXX='-pic'
13793 ;;
13794 *)
13795 ;;
13796 esac
13797 ;;
13798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13799 case $cc_basename in
13800 CC*)
13801 lt_prog_compiler_wl_CXX='-Wl,'
13802 lt_prog_compiler_pic_CXX='-KPIC'
13803 lt_prog_compiler_static_CXX='-Bstatic'
13804 ;;
13805 esac
13806 ;;
13807 tandem*)
13808 case $cc_basename in
13809 NCC*)
13810 # NonStop-UX NCC 3.20
13811 lt_prog_compiler_pic_CXX='-KPIC'
13812 ;;
13813 *)
13814 ;;
13815 esac
13816 ;;
13817 vxworks*)
13818 ;;
13819 *)
13820 lt_prog_compiler_can_build_shared_CXX=no
13821 ;;
13822 esac
13823 fi
13824
13825case $host_os in
13826 # For platforms which do not support PIC, -DPIC is meaningless:
13827 *djgpp*)
13828 lt_prog_compiler_pic_CXX=
13829 ;;
13830 *)
13831 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13832 ;;
13833esac
13834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13835$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13836
13837
13838
13839#
13840# Check to make sure the PIC flag actually works.
13841#
13842if test -n "$lt_prog_compiler_pic_CXX"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
d0ac1c44 13845if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
3cb62297
L
13846 $as_echo_n "(cached) " >&6
13847else
13848 lt_cv_prog_compiler_pic_works_CXX=no
13849 ac_outfile=conftest.$ac_objext
13850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13851 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13852 # Insert the option either (1) after the last *FLAGS variable, or
13853 # (2) before a word containing "conftest.", or (3) at the end.
13854 # Note that $ac_compile itself does not contain backslashes and begins
13855 # with a dollar sign (not a hyphen), so the echo should work correctly.
13856 # The option is referenced via a variable to avoid confusing sed.
13857 lt_compile=`echo "$ac_compile" | $SED \
13858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13860 -e 's:$: $lt_compiler_flag:'`
13861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13862 (eval "$lt_compile" 2>conftest.err)
13863 ac_status=$?
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 if (exit $ac_status) && test -s "$ac_outfile"; then
13867 # The compiler can only warn and ignore the option if not recognized
13868 # So say no if there are warnings other than the usual output.
13869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13872 lt_cv_prog_compiler_pic_works_CXX=yes
13873 fi
13874 fi
13875 $RM conftest*
13876
13877fi
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13879$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13880
13881if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13882 case $lt_prog_compiler_pic_CXX in
13883 "" | " "*) ;;
13884 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13885 esac
13886else
13887 lt_prog_compiler_pic_CXX=
13888 lt_prog_compiler_can_build_shared_CXX=no
13889fi
13890
13891fi
13892
13893
13894
13895#
13896# Check to make sure the static flag actually works.
13897#
13898wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13900$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 13901if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
3cb62297
L
13902 $as_echo_n "(cached) " >&6
13903else
13904 lt_cv_prog_compiler_static_works_CXX=no
13905 save_LDFLAGS="$LDFLAGS"
13906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13909 # The linker can only warn and ignore the option if not recognized
13910 # So say no if there are warnings
13911 if test -s conftest.err; then
13912 # Append any errors to the config.log.
13913 cat conftest.err 1>&5
13914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13916 if diff conftest.exp conftest.er2 >/dev/null; then
13917 lt_cv_prog_compiler_static_works_CXX=yes
13918 fi
13919 else
13920 lt_cv_prog_compiler_static_works_CXX=yes
13921 fi
13922 fi
13923 $RM -r conftest*
13924 LDFLAGS="$save_LDFLAGS"
13925
13926fi
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13928$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13929
13930if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13931 :
13932else
13933 lt_prog_compiler_static_CXX=
13934fi
13935
13936
13937
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13940$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 13941if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
13942 $as_echo_n "(cached) " >&6
13943else
13944 lt_cv_prog_compiler_c_o_CXX=no
13945 $RM -r conftest 2>/dev/null
13946 mkdir conftest
13947 cd conftest
13948 mkdir out
13949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13950
13951 lt_compiler_flag="-o out/conftest2.$ac_objext"
13952 # Insert the option either (1) after the last *FLAGS variable, or
13953 # (2) before a word containing "conftest.", or (3) at the end.
13954 # Note that $ac_compile itself does not contain backslashes and begins
13955 # with a dollar sign (not a hyphen), so the echo should work correctly.
13956 lt_compile=`echo "$ac_compile" | $SED \
13957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13959 -e 's:$: $lt_compiler_flag:'`
13960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13961 (eval "$lt_compile" 2>out/conftest.err)
13962 ac_status=$?
13963 cat out/conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13966 then
13967 # The compiler can only warn and ignore the option if not recognized
13968 # So say no if there are warnings
13969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13970 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13971 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13972 lt_cv_prog_compiler_c_o_CXX=yes
13973 fi
13974 fi
13975 chmod u+w . 2>&5
13976 $RM conftest*
13977 # SGI C++ compiler will create directory out/ii_files/ for
13978 # template instantiation
13979 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13980 $RM out/* && rmdir out
13981 cd ..
13982 $RM -r conftest
13983 $RM conftest*
13984
13985fi
13986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13987$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13988
13989
13990
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 13993if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
13994 $as_echo_n "(cached) " >&6
13995else
13996 lt_cv_prog_compiler_c_o_CXX=no
13997 $RM -r conftest 2>/dev/null
13998 mkdir conftest
13999 cd conftest
14000 mkdir out
14001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14002
14003 lt_compiler_flag="-o out/conftest2.$ac_objext"
14004 # Insert the option either (1) after the last *FLAGS variable, or
14005 # (2) before a word containing "conftest.", or (3) at the end.
14006 # Note that $ac_compile itself does not contain backslashes and begins
14007 # with a dollar sign (not a hyphen), so the echo should work correctly.
14008 lt_compile=`echo "$ac_compile" | $SED \
14009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14011 -e 's:$: $lt_compiler_flag:'`
14012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14013 (eval "$lt_compile" 2>out/conftest.err)
14014 ac_status=$?
14015 cat out/conftest.err >&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14018 then
14019 # The compiler can only warn and ignore the option if not recognized
14020 # So say no if there are warnings
14021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14024 lt_cv_prog_compiler_c_o_CXX=yes
14025 fi
14026 fi
14027 chmod u+w . 2>&5
14028 $RM conftest*
14029 # SGI C++ compiler will create directory out/ii_files/ for
14030 # template instantiation
14031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14032 $RM out/* && rmdir out
14033 cd ..
14034 $RM -r conftest
14035 $RM conftest*
14036
14037fi
14038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14039$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14040
14041
14042
14043
14044hard_links="nottested"
14045if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14046 # do not overwrite the value of need_locks provided by the user
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14048$as_echo_n "checking if we can lock with hard links... " >&6; }
14049 hard_links=yes
14050 $RM conftest*
14051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14052 touch conftest.a
14053 ln conftest.a conftest.b 2>&5 || hard_links=no
14054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14056$as_echo "$hard_links" >&6; }
14057 if test "$hard_links" = no; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14059$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14060 need_locks=warn
14061 fi
14062else
14063 need_locks=no
14064fi
14065
14066
14067
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14069$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14070
14071 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14072 case $host_os in
14073 aix[4-9]*)
14074 # If we're using GNU nm, then we don't want the "-C" option.
14075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14076 # Also, AIX nm treats weak defined symbols like other global defined
14077 # symbols, whereas GNU nm marks them as "W".
14078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14079 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'
14080 else
5c14705f 14081 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
14082 fi
14083 ;;
14084 pw32*)
14085 export_symbols_cmds_CXX="$ltdll_cmds"
14086 ;;
14087 cygwin* | mingw* | cegcc*)
14088 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'
14089 ;;
14090 *)
14091 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14092 ;;
14093 esac
14094 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14095
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14097$as_echo "$ld_shlibs_CXX" >&6; }
14098test "$ld_shlibs_CXX" = no && can_build_shared=no
14099
14100with_gnu_ld_CXX=$with_gnu_ld
14101
14102
14103
14104
14105
14106
14107#
14108# Do we need to explicitly link libc?
14109#
14110case "x$archive_cmds_need_lc_CXX" in
14111x|xyes)
14112 # Assume -lc should be added
14113 archive_cmds_need_lc_CXX=yes
14114
14115 if test "$enable_shared" = yes && test "$GCC" = yes; then
14116 case $archive_cmds_CXX in
14117 *'~'*)
14118 # FIXME: we may have to deal with multi-command sequences.
14119 ;;
14120 '$CC '*)
14121 # Test whether the compiler implicitly links with -lc since on some
14122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14123 # to ld, don't add -lc before -lgcc.
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14125$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 14126if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
3cb62297
L
14127 $as_echo_n "(cached) " >&6
14128else
14129 $RM conftest*
14130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14131
14132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14133 (eval $ac_compile) 2>&5
14134 ac_status=$?
14135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136 test $ac_status = 0; } 2>conftest.err; then
14137 soname=conftest
14138 lib=conftest
14139 libobjs=conftest.$ac_objext
14140 deplibs=
14141 wl=$lt_prog_compiler_wl_CXX
14142 pic_flag=$lt_prog_compiler_pic_CXX
14143 compiler_flags=-v
14144 linker_flags=-v
14145 verstring=
14146 output_objdir=.
14147 libname=conftest
14148 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14149 allow_undefined_flag_CXX=
14150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14151 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14152 ac_status=$?
14153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14154 test $ac_status = 0; }
14155 then
14156 lt_cv_archive_cmds_need_lc_CXX=no
14157 else
14158 lt_cv_archive_cmds_need_lc_CXX=yes
14159 fi
14160 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14161 else
14162 cat conftest.err 1>&5
14163 fi
14164 $RM conftest*
14165
14166fi
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14168$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14169 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14170 ;;
14171 esac
14172 fi
14173 ;;
14174esac
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14240$as_echo_n "checking dynamic linker characteristics... " >&6; }
14241
14242library_names_spec=
14243libname_spec='lib$name'
14244soname_spec=
14245shrext_cmds=".so"
14246postinstall_cmds=
14247postuninstall_cmds=
14248finish_cmds=
14249finish_eval=
14250shlibpath_var=
14251shlibpath_overrides_runpath=unknown
14252version_type=none
14253dynamic_linker="$host_os ld.so"
14254sys_lib_dlsearch_path_spec="/lib /usr/lib"
14255need_lib_prefix=unknown
14256hardcode_into_libs=no
14257
14258# when you set need_version to no, make sure it does not cause -set_version
14259# flags to be left without arguments
14260need_version=unknown
14261
14262case $host_os in
14263aix3*)
14264 version_type=linux
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14266 shlibpath_var=LIBPATH
14267
14268 # AIX 3 has no versioning support, so we append a major version to the name.
14269 soname_spec='${libname}${release}${shared_ext}$major'
14270 ;;
14271
14272aix[4-9]*)
14273 version_type=linux
14274 need_lib_prefix=no
14275 need_version=no
14276 hardcode_into_libs=yes
14277 if test "$host_cpu" = ia64; then
14278 # AIX 5 supports IA64
14279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 else
14282 # With GCC up to 2.95.x, collect2 would create an import file
14283 # for dependence libraries. The import file would start with
14284 # the line `#! .'. This would cause the generated library to
14285 # depend on `.', always an invalid library. This was fixed in
14286 # development snapshots of GCC prior to 3.0.
14287 case $host_os in
14288 aix4 | aix4.[01] | aix4.[01].*)
14289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14290 echo ' yes '
14291 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14292 :
14293 else
14294 can_build_shared=no
14295 fi
14296 ;;
14297 esac
14298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14299 # soname into executable. Probably we can add versioning support to
14300 # collect2, so additional links can be useful in future.
14301 if test "$aix_use_runtimelinking" = yes; then
14302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14303 # instead of lib<name>.a to let people know that these are not
14304 # typical AIX shared libraries.
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 else
14307 # We preserve .a as extension for shared libraries through AIX4.2
14308 # and later when we are not doing run time linking.
14309 library_names_spec='${libname}${release}.a $libname.a'
14310 soname_spec='${libname}${release}${shared_ext}$major'
14311 fi
14312 shlibpath_var=LIBPATH
14313 fi
14314 ;;
14315
14316amigaos*)
14317 case $host_cpu in
14318 powerpc)
14319 # Since July 2007 AmigaOS4 officially supports .so libraries.
14320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322 ;;
14323 m68k)
14324 library_names_spec='$libname.ixlibrary $libname.a'
14325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14326 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'
14327 ;;
14328 esac
14329 ;;
14330
14331beos*)
14332 library_names_spec='${libname}${shared_ext}'
14333 dynamic_linker="$host_os ld.so"
14334 shlibpath_var=LIBRARY_PATH
14335 ;;
14336
14337bsdi[45]*)
14338 version_type=linux
14339 need_version=no
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14346 # the default ld.so.conf also contains /usr/contrib/lib and
14347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14348 # libtool to hard-code these into programs
14349 ;;
14350
14351cygwin* | mingw* | pw32* | cegcc*)
14352 version_type=windows
14353 shrext_cmds=".dll"
14354 need_version=no
14355 need_lib_prefix=no
14356
14357 case $GCC,$host_os in
14358 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14359 library_names_spec='$libname.dll.a'
14360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14361 postinstall_cmds='base_file=`basename \${file}`~
14362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14363 dldir=$destdir/`dirname \$dlpath`~
14364 test -d \$dldir || mkdir -p \$dldir~
14365 $install_prog $dir/$dlname \$dldir/$dlname~
14366 chmod a+x \$dldir/$dlname~
14367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14369 fi'
14370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14371 dlpath=$dir/\$dldll~
14372 $RM \$dlpath'
14373 shlibpath_overrides_runpath=yes
14374
14375 case $host_os in
14376 cygwin*)
14377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14379
14380 ;;
14381 mingw* | cegcc*)
14382 # MinGW DLLs use traditional 'lib' prefix
14383 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14384 ;;
14385 pw32*)
14386 # pw32 DLLs use 'pw' prefix rather than 'lib'
14387 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14388 ;;
14389 esac
14390 ;;
14391
14392 *)
14393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14394 ;;
14395 esac
14396 dynamic_linker='Win32 ld.exe'
14397 # FIXME: first we should search . and the directory the executable is in
14398 shlibpath_var=PATH
14399 ;;
14400
14401darwin* | rhapsody*)
14402 dynamic_linker="$host_os dyld"
14403 version_type=darwin
14404 need_lib_prefix=no
14405 need_version=no
14406 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14407 soname_spec='${libname}${release}${major}$shared_ext'
14408 shlibpath_overrides_runpath=yes
14409 shlibpath_var=DYLD_LIBRARY_PATH
14410 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14411
14412 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14413 ;;
14414
14415dgux*)
14416 version_type=linux
14417 need_lib_prefix=no
14418 need_version=no
14419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14420 soname_spec='${libname}${release}${shared_ext}$major'
14421 shlibpath_var=LD_LIBRARY_PATH
14422 ;;
14423
3cb62297
L
14424freebsd* | dragonfly*)
14425 # DragonFly does not have aout. When/if they implement a new
14426 # versioning mechanism, adjust this.
14427 if test -x /usr/bin/objformat; then
14428 objformat=`/usr/bin/objformat`
14429 else
14430 case $host_os in
6d2920c8 14431 freebsd[23].*) objformat=aout ;;
3cb62297
L
14432 *) objformat=elf ;;
14433 esac
14434 fi
14435 version_type=freebsd-$objformat
14436 case $version_type in
14437 freebsd-elf*)
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14439 need_version=no
14440 need_lib_prefix=no
14441 ;;
14442 freebsd-*)
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14444 need_version=yes
14445 ;;
14446 esac
14447 shlibpath_var=LD_LIBRARY_PATH
14448 case $host_os in
6d2920c8 14449 freebsd2.*)
3cb62297
L
14450 shlibpath_overrides_runpath=yes
14451 ;;
14452 freebsd3.[01]* | freebsdelf3.[01]*)
14453 shlibpath_overrides_runpath=yes
14454 hardcode_into_libs=yes
14455 ;;
14456 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14457 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14458 shlibpath_overrides_runpath=no
14459 hardcode_into_libs=yes
14460 ;;
14461 *) # from 4.6 on, and DragonFly
14462 shlibpath_overrides_runpath=yes
14463 hardcode_into_libs=yes
14464 ;;
14465 esac
14466 ;;
14467
3cb62297
L
14468haiku*)
14469 version_type=linux
14470 need_lib_prefix=no
14471 need_version=no
14472 dynamic_linker="$host_os runtime_loader"
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 shlibpath_var=LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
d85e70a3 14477 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3cb62297
L
14478 hardcode_into_libs=yes
14479 ;;
14480
14481hpux9* | hpux10* | hpux11*)
14482 # Give a soname corresponding to the major version so that dld.sl refuses to
14483 # link against other versions.
14484 version_type=sunos
14485 need_lib_prefix=no
14486 need_version=no
14487 case $host_cpu in
14488 ia64*)
14489 shrext_cmds='.so'
14490 hardcode_into_libs=yes
14491 dynamic_linker="$host_os dld.so"
14492 shlibpath_var=LD_LIBRARY_PATH
14493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495 soname_spec='${libname}${release}${shared_ext}$major'
14496 if test "X$HPUX_IA64_MODE" = X32; then
14497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14498 else
14499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14500 fi
14501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14502 ;;
14503 hppa*64*)
14504 shrext_cmds='.sl'
14505 hardcode_into_libs=yes
14506 dynamic_linker="$host_os dld.sl"
14507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14510 soname_spec='${libname}${release}${shared_ext}$major'
14511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14513 ;;
14514 *)
14515 shrext_cmds='.sl'
14516 dynamic_linker="$host_os dld.sl"
14517 shlibpath_var=SHLIB_PATH
14518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 ;;
14522 esac
14523 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14524 postinstall_cmds='chmod 555 $lib'
14525 # or fails outright, so override atomically:
14526 install_override_mode=555
14527 ;;
14528
14529interix[3-9]*)
14530 version_type=linux
14531 need_lib_prefix=no
14532 need_version=no
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=no
14538 hardcode_into_libs=yes
14539 ;;
14540
14541irix5* | irix6* | nonstopux*)
14542 case $host_os in
14543 nonstopux*) version_type=nonstopux ;;
14544 *)
14545 if test "$lt_cv_prog_gnu_ld" = yes; then
14546 version_type=linux
14547 else
14548 version_type=irix
14549 fi ;;
14550 esac
14551 need_lib_prefix=no
14552 need_version=no
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14555 case $host_os in
14556 irix5* | nonstopux*)
14557 libsuff= shlibsuff=
14558 ;;
14559 *)
14560 case $LD in # libtool.m4 will add one of these switches to LD
14561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14562 libsuff= shlibsuff= libmagic=32-bit;;
14563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14564 libsuff=32 shlibsuff=N32 libmagic=N32;;
14565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14566 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14567 *) libsuff= shlibsuff= libmagic=never-match;;
14568 esac
14569 ;;
14570 esac
14571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14572 shlibpath_overrides_runpath=no
14573 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14574 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14575 hardcode_into_libs=yes
14576 ;;
14577
14578# No shared lib support for Linux oldld, aout, or coff.
14579linux*oldld* | linux*aout* | linux*coff*)
14580 dynamic_linker=no
14581 ;;
14582
14583# This must be Linux ELF.
64307045 14584linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3cb62297
L
14585 version_type=linux
14586 need_lib_prefix=no
14587 need_version=no
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 shlibpath_overrides_runpath=no
14593
14594 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 14595 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
3cb62297
L
14596 $as_echo_n "(cached) " >&6
14597else
14598 lt_cv_shlibpath_overrides_runpath=no
14599 save_LDFLAGS=$LDFLAGS
14600 save_libdir=$libdir
14601 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14602 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14604/* end confdefs.h. */
14605
14606int
14607main ()
14608{
14609
14610 ;
14611 return 0;
14612}
14613_ACEOF
14614if ac_fn_cxx_try_link "$LINENO"; then :
14615 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14616 lt_cv_shlibpath_overrides_runpath=yes
14617fi
14618fi
14619rm -f core conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14621 LDFLAGS=$save_LDFLAGS
14622 libdir=$save_libdir
14623
14624fi
14625
14626 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14627
14628 # This implies no fast_install, which is unacceptable.
14629 # Some rework will be needed to allow for fast_install
14630 # before this can be enabled.
14631 hardcode_into_libs=yes
14632
14633 # Append ld.so.conf contents to the search path
14634 if test -f /etc/ld.so.conf; then
14635 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' ' '`
14636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14637 fi
14638
14639 # We used to test for /lib/ld.so.1 and disable shared libraries on
14640 # powerpc, because MkLinux only supported shared libraries with the
14641 # GNU dynamic linker. Since this was broken with cross compilers,
14642 # most powerpc-linux boxes support dynamic linking these days and
14643 # people can always --disable-shared, the test was removed, and we
14644 # assume the GNU/Linux dynamic linker is in use.
14645 dynamic_linker='GNU/Linux ld.so'
14646 ;;
14647
14648netbsd*)
14649 version_type=sunos
14650 need_lib_prefix=no
14651 need_version=no
14652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14655 dynamic_linker='NetBSD (a.out) ld.so'
14656 else
14657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14658 soname_spec='${libname}${release}${shared_ext}$major'
14659 dynamic_linker='NetBSD ld.elf_so'
14660 fi
14661 shlibpath_var=LD_LIBRARY_PATH
14662 shlibpath_overrides_runpath=yes
14663 hardcode_into_libs=yes
14664 ;;
14665
14666newsos6)
14667 version_type=linux
14668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=yes
14671 ;;
14672
14673*nto* | *qnx*)
14674 version_type=qnx
14675 need_lib_prefix=no
14676 need_version=no
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 soname_spec='${libname}${release}${shared_ext}$major'
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=no
14681 hardcode_into_libs=yes
14682 dynamic_linker='ldqnx.so'
14683 ;;
14684
14685openbsd*)
14686 version_type=sunos
14687 sys_lib_dlsearch_path_spec="/usr/lib"
14688 need_lib_prefix=no
14689 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14690 case $host_os in
14691 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14692 *) need_version=no ;;
14693 esac
14694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14698 case $host_os in
14699 openbsd2.[89] | openbsd2.[89].*)
14700 shlibpath_overrides_runpath=no
14701 ;;
14702 *)
14703 shlibpath_overrides_runpath=yes
14704 ;;
14705 esac
14706 else
14707 shlibpath_overrides_runpath=yes
14708 fi
14709 ;;
14710
14711os2*)
14712 libname_spec='$name'
14713 shrext_cmds=".dll"
14714 need_lib_prefix=no
14715 library_names_spec='$libname${shared_ext} $libname.a'
14716 dynamic_linker='OS/2 ld.exe'
14717 shlibpath_var=LIBPATH
14718 ;;
14719
14720osf3* | osf4* | osf5*)
14721 version_type=osf
14722 need_lib_prefix=no
14723 need_version=no
14724 soname_spec='${libname}${release}${shared_ext}$major'
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726 shlibpath_var=LD_LIBRARY_PATH
14727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14729 ;;
14730
14731rdos*)
14732 dynamic_linker=no
14733 ;;
14734
14735solaris*)
14736 version_type=linux
14737 need_lib_prefix=no
14738 need_version=no
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 shlibpath_var=LD_LIBRARY_PATH
14742 shlibpath_overrides_runpath=yes
14743 hardcode_into_libs=yes
14744 # ldd complains unless libraries are executable
14745 postinstall_cmds='chmod +x $lib'
14746 ;;
14747
14748sunos4*)
14749 version_type=sunos
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14751 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 shlibpath_overrides_runpath=yes
14754 if test "$with_gnu_ld" = yes; then
14755 need_lib_prefix=no
14756 fi
14757 need_version=yes
14758 ;;
14759
14760sysv4 | sysv4.3*)
14761 version_type=linux
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 soname_spec='${libname}${release}${shared_ext}$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 case $host_vendor in
14766 sni)
14767 shlibpath_overrides_runpath=no
14768 need_lib_prefix=no
14769 runpath_var=LD_RUN_PATH
14770 ;;
14771 siemens)
14772 need_lib_prefix=no
14773 ;;
14774 motorola)
14775 need_lib_prefix=no
14776 need_version=no
14777 shlibpath_overrides_runpath=no
14778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14779 ;;
14780 esac
14781 ;;
14782
14783sysv4*MP*)
14784 if test -d /usr/nec ;then
14785 version_type=linux
14786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14787 soname_spec='$libname${shared_ext}.$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14789 fi
14790 ;;
14791
14792sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14793 version_type=freebsd-elf
14794 need_lib_prefix=no
14795 need_version=no
14796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14797 soname_spec='${libname}${release}${shared_ext}$major'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 shlibpath_overrides_runpath=yes
14800 hardcode_into_libs=yes
14801 if test "$with_gnu_ld" = yes; then
14802 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14803 else
14804 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14805 case $host_os in
14806 sco3.2v5*)
14807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14808 ;;
14809 esac
14810 fi
14811 sys_lib_dlsearch_path_spec='/usr/lib'
14812 ;;
14813
14814tpf*)
14815 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14816 version_type=linux
14817 need_lib_prefix=no
14818 need_version=no
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=no
14822 hardcode_into_libs=yes
14823 ;;
14824
14825uts4*)
14826 version_type=linux
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 shlibpath_var=LD_LIBRARY_PATH
14830 ;;
14831
14832*)
14833 dynamic_linker=no
14834 ;;
14835esac
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14837$as_echo "$dynamic_linker" >&6; }
14838test "$dynamic_linker" = no && can_build_shared=no
14839
14840variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14841if test "$GCC" = yes; then
14842 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14843fi
14844
14845if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14846 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14847fi
14848if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14849 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14850fi
14851
3725885a 14852
ce2cded5 14853
ce2cded5 14854
ce2cded5 14855
d7040cdb 14856
ce2cded5 14857
ce2cded5 14858
ce2cded5 14859
d7040cdb 14860
ce2cded5
L
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
ce2cded5
L
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
b879806f
AM
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14890$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14891hardcode_action_CXX=
14892if test -n "$hardcode_libdir_flag_spec_CXX" ||
14893 test -n "$runpath_var_CXX" ||
14894 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14895
14896 # We can hardcode non-existent directories.
14897 if test "$hardcode_direct_CXX" != no &&
14898 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14899 # have to relink, otherwise we might link with an installed library
14900 # when we should be linking with a yet-to-be-installed one
14901 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14902 test "$hardcode_minus_L_CXX" != no; then
14903 # Linking always hardcodes the temporary library directory.
14904 hardcode_action_CXX=relink
14905 else
14906 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14907 hardcode_action_CXX=immediate
14908 fi
14909else
14910 # We cannot hardcode anything, or else we can only hardcode existing
14911 # directories.
14912 hardcode_action_CXX=unsupported
14913fi
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14915$as_echo "$hardcode_action_CXX" >&6; }
14916
14917if test "$hardcode_action_CXX" = relink ||
14918 test "$inherit_rpath_CXX" = yes; then
14919 # Fast installation is not supported
14920 enable_fast_install=no
14921elif test "$shlibpath_overrides_runpath" = yes ||
14922 test "$enable_shared" = no; then
14923 # Fast installation is not necessary
14924 enable_fast_install=needless
14925fi
14926
14927
14928
14929
14930
14931
14932
14933 fi # test -n "$compiler"
14934
14935 CC=$lt_save_CC
14936 LDCXX=$LD
14937 LD=$lt_save_LD
14938 GCC=$lt_save_GCC
14939 with_gnu_ld=$lt_save_with_gnu_ld
14940 lt_cv_path_LDCXX=$lt_cv_path_LD
14941 lt_cv_path_LD=$lt_save_path_LD
14942 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14943 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14944fi # test "$_lt_caught_CXX_error" != yes
14945
14946ac_ext=c
14947ac_cpp='$CPP $CPPFLAGS'
14948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14950ac_compiler_gnu=$ac_cv_c_compiler_gnu
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964 ac_config_commands="$ac_config_commands libtool"
14965
14966
14967
14968
14969# Only expand once:
14970
14971
14972
14973# The tests for host and target for $enable_largefile require
14974# canonical names.
14975
14976
14977
14978# As the $enable_largefile decision depends on --enable-plugins we must set it
14979# even in directories otherwise not depending on the $plugins option.
14980
14981
14982 maybe_plugins=no
14983 for ac_header in dlfcn.h
14984do :
14985 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14986"
d0ac1c44 14987if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
14988 cat >>confdefs.h <<_ACEOF
14989#define HAVE_DLFCN_H 1
14990_ACEOF
14991 maybe_plugins=yes
14992fi
14993
14994done
14995
14996 for ac_header in windows.h
14997do :
14998 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14999"
d0ac1c44 15000if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
15001 cat >>confdefs.h <<_ACEOF
15002#define HAVE_WINDOWS_H 1
15003_ACEOF
15004 maybe_plugins=yes
15005fi
15006
15007done
15008
15009
15010 # Check whether --enable-plugins was given.
15011if test "${enable_plugins+set}" = set; then :
15012 enableval=$enable_plugins; case "${enableval}" in
15013 no) plugins=no ;;
15014 *) plugins=yes
15015 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 15016 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
15017 fi ;;
15018 esac
15019else
15020 plugins=$maybe_plugins
15021
15022fi
15023
2974be62 15024 if test "$plugins" = "yes"; then
3cba8b6c
L
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15026$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 15027if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15028 $as_echo_n "(cached) " >&6
15029else
15030 ac_func_search_save_LIBS=$LIBS
15031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032/* end confdefs.h. */
15033
15034/* Override any GCC internal prototype to avoid an error.
15035 Use char because int might match the return type of a GCC
15036 builtin and then its argument prototype would still apply. */
15037#ifdef __cplusplus
15038extern "C"
15039#endif
3cba8b6c 15040char dlsym ();
2974be62
AM
15041int
15042main ()
15043{
3cba8b6c 15044return dlsym ();
2974be62
AM
15045 ;
15046 return 0;
15047}
15048_ACEOF
15049for ac_lib in '' dl; do
15050 if test -z "$ac_lib"; then
15051 ac_res="none required"
15052 else
15053 ac_res=-l$ac_lib
15054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15055 fi
15056 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 15057 ac_cv_search_dlsym=$ac_res
2974be62
AM
15058fi
15059rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext
d0ac1c44 15061 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15062 break
15063fi
15064done
d0ac1c44 15065if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15066
15067else
3cba8b6c 15068 ac_cv_search_dlsym=no
2974be62
AM
15069fi
15070rm conftest.$ac_ext
15071LIBS=$ac_func_search_save_LIBS
15072fi
3cba8b6c
L
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15074$as_echo "$ac_cv_search_dlsym" >&6; }
15075ac_res=$ac_cv_search_dlsym
2974be62
AM
15076if test "$ac_res" != no; then :
15077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15078
15079fi
15080
15081 fi
b879806f
AM
15082
15083
15084case "${host}" in
c8693053
RO
15085 sparc-*-solaris*|i?86-*-solaris*)
15086 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15087 # were mutually exclusive until Solaris 11.3. Without procfs support,
15088 # the bfd/ elf module cannot provide certain routines such as
15089 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15090 # explicitly requested large-file support through the
15091 # --enable-largefile switch, disable large-file support in favor of
15092 # procfs support.
15093 #
15094 # Check if <sys/procfs.h> is incompatible with large-file support.
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096/* end confdefs.h. */
15097#define _FILE_OFFSET_BITS 64
15098#define _STRUCTURED_PROC 1
15099#include <sys/procfs.h>
15100int
15101main ()
15102{
15103
15104 ;
15105 return 0;
15106}
15107_ACEOF
15108if ac_fn_c_try_compile "$LINENO"; then :
15109 acx_cv_procfs_lfs=yes
15110else
15111 acx_cv_procfs_lfs=no
15112fi
15113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 #
15115 # Forcefully disable large-file support only if necessary, gdb is in
15116 # tree and enabled.
15117 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15118 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15119 : ${enable_largefile="no"}
15120 if test "$plugins" = yes; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15122plugin support disabled; require large-file support which is incompatible with GDB." >&5
15123$as_echo "$as_me: WARNING:
15124plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15125 plugins=no
15126 fi
15127 fi
15128 #
15129 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15130 # benefit of g++ 9+ which predefines it on Solaris.
15131 if test "$enable_largefile" = no; then
15132 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15133
15134 fi
b879806f
AM
15135 ;;
15136esac
15137
15138# Check whether --enable-largefile was given.
15139if test "${enable_largefile+set}" = set; then :
15140 enableval=$enable_largefile;
15141fi
15142
15143if test "$enable_largefile" != no; then
15144
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15146$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 15147if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
15148 $as_echo_n "(cached) " >&6
15149else
15150 ac_cv_sys_largefile_CC=no
15151 if test "$GCC" != yes; then
15152 ac_save_CC=$CC
15153 while :; do
15154 # IRIX 6.2 and later do not support large files by default,
15155 # so use the C compiler's -n32 option if that helps.
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h. */
15158#include <sys/types.h>
15159 /* Check that off_t can represent 2**63 - 1 correctly.
15160 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15161 since some C++ compilers masquerading as C compilers
15162 incorrectly reject 9223372036854775807. */
e0b2a78c 15163#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15164 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15165 && LARGE_OFF_T % 2147483647 == 1)
15166 ? 1 : -1];
15167int
15168main ()
15169{
15170
15171 ;
15172 return 0;
15173}
15174_ACEOF
15175 if ac_fn_c_try_compile "$LINENO"; then :
15176 break
15177fi
15178rm -f core conftest.err conftest.$ac_objext
15179 CC="$CC -n32"
15180 if ac_fn_c_try_compile "$LINENO"; then :
15181 ac_cv_sys_largefile_CC=' -n32'; break
15182fi
15183rm -f core conftest.err conftest.$ac_objext
15184 break
15185 done
15186 CC=$ac_save_CC
15187 rm -f conftest.$ac_ext
15188 fi
15189fi
15190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15191$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15192 if test "$ac_cv_sys_largefile_CC" != no; then
15193 CC=$CC$ac_cv_sys_largefile_CC
15194 fi
15195
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15197$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 15198if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
15199 $as_echo_n "(cached) " >&6
15200else
15201 while :; do
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h. */
15204#include <sys/types.h>
15205 /* Check that off_t can represent 2**63 - 1 correctly.
15206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15207 since some C++ compilers masquerading as C compilers
15208 incorrectly reject 9223372036854775807. */
e0b2a78c 15209#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15211 && LARGE_OFF_T % 2147483647 == 1)
15212 ? 1 : -1];
15213int
15214main ()
15215{
15216
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221if ac_fn_c_try_compile "$LINENO"; then :
15222 ac_cv_sys_file_offset_bits=no; break
15223fi
15224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226/* end confdefs.h. */
15227#define _FILE_OFFSET_BITS 64
15228#include <sys/types.h>
15229 /* Check that off_t can represent 2**63 - 1 correctly.
15230 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15231 since some C++ compilers masquerading as C compilers
15232 incorrectly reject 9223372036854775807. */
e0b2a78c 15233#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15234 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15235 && LARGE_OFF_T % 2147483647 == 1)
15236 ? 1 : -1];
15237int
15238main ()
15239{
15240
15241 ;
15242 return 0;
15243}
15244_ACEOF
15245if ac_fn_c_try_compile "$LINENO"; then :
15246 ac_cv_sys_file_offset_bits=64; break
15247fi
15248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15249 ac_cv_sys_file_offset_bits=unknown
15250 break
15251done
15252fi
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15254$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15255case $ac_cv_sys_file_offset_bits in #(
15256 no | unknown) ;;
15257 *)
15258cat >>confdefs.h <<_ACEOF
15259#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15260_ACEOF
15261;;
15262esac
15263rm -rf conftest*
15264 if test $ac_cv_sys_file_offset_bits = unknown; then
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15266$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 15267if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
15268 $as_echo_n "(cached) " >&6
15269else
15270 while :; do
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272/* end confdefs.h. */
15273#include <sys/types.h>
15274 /* Check that off_t can represent 2**63 - 1 correctly.
15275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15276 since some C++ compilers masquerading as C compilers
15277 incorrectly reject 9223372036854775807. */
e0b2a78c 15278#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15280 && LARGE_OFF_T % 2147483647 == 1)
15281 ? 1 : -1];
15282int
15283main ()
15284{
15285
15286 ;
15287 return 0;
15288}
15289_ACEOF
15290if ac_fn_c_try_compile "$LINENO"; then :
15291 ac_cv_sys_large_files=no; break
15292fi
15293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295/* end confdefs.h. */
15296#define _LARGE_FILES 1
15297#include <sys/types.h>
15298 /* Check that off_t can represent 2**63 - 1 correctly.
15299 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15300 since some C++ compilers masquerading as C compilers
15301 incorrectly reject 9223372036854775807. */
e0b2a78c 15302#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15303 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15304 && LARGE_OFF_T % 2147483647 == 1)
15305 ? 1 : -1];
15306int
15307main ()
15308{
15309
15310 ;
15311 return 0;
15312}
15313_ACEOF
15314if ac_fn_c_try_compile "$LINENO"; then :
15315 ac_cv_sys_large_files=1; break
15316fi
15317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 ac_cv_sys_large_files=unknown
15319 break
15320done
15321fi
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15323$as_echo "$ac_cv_sys_large_files" >&6; }
15324case $ac_cv_sys_large_files in #(
15325 no | unknown) ;;
15326 *)
15327cat >>confdefs.h <<_ACEOF
15328#define _LARGE_FILES $ac_cv_sys_large_files
15329_ACEOF
15330;;
15331esac
15332rm -rf conftest*
15333 fi
d0ac1c44
SM
15334
15335
b879806f
AM
15336fi
15337
15338
15339
43e05cd4
AM
15340ac_checking=
15341. ${srcdir}/../bfd/development.sh
15342test "$development" = true && ac_checking=yes
15343# Check whether --enable-checking was given.
15344if test "${enable_checking+set}" = set; then :
15345 enableval=$enable_checking; case "${enableval}" in
15346 no|none) ac_checking= ;;
15347 *) ac_checking=yes ;;
15348esac
15349fi
15350if test x$ac_checking != x ; then
15351
15352$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15353
15354fi
15355
b879806f
AM
15356
15357# Check whether --with-lib-path was given.
15358if test "${with_lib_path+set}" = set; then :
15359 withval=$with_lib_path; LIB_PATH=$withval
15360fi
15361
15362# Check whether --enable-targets was given.
15363if test "${enable_targets+set}" = set; then :
15364 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 15365 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15366 ;;
b879806f
AM
15367 no) enable_targets= ;;
15368 *) enable_targets=$enableval ;;
15369esac
15370fi
1d5269c9 15371
b879806f
AM
15372# Check whether --enable-64-bit-bfd was given.
15373if test "${enable_64_bit_bfd+set}" = set; then :
1d5269c9
MF
15374 enableval=$enable_64_bit_bfd; case $enableval in #(
15375 yes|no) :
15376 ;; #(
15377 *) :
15378 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15379 *) :
15380 ;;
b879806f
AM
15381esac
15382else
1d5269c9
MF
15383 enable_64_bit_bfd=no
15384fi
15385
15386
15387if test "x$enable_64_bit_bfd" = "xno"; then :
15388 # The cast to long int works around a bug in the HP C Compiler
15389# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15390# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15391# This bug is HP SR number 8606223364.
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15393$as_echo_n "checking size of void *... " >&6; }
15394if ${ac_cv_sizeof_void_p+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396else
15397 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15398
15399else
15400 if test "$ac_cv_type_void_p" = yes; then
15401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15403as_fn_error 77 "cannot compute sizeof (void *)
15404See \`config.log' for more details" "$LINENO" 5; }
15405 else
15406 ac_cv_sizeof_void_p=0
15407 fi
15408fi
15409
15410fi
15411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15412$as_echo "$ac_cv_sizeof_void_p" >&6; }
15413
15414
15415
15416cat >>confdefs.h <<_ACEOF
15417#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15418_ACEOF
15419
15420
15421 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15422 enable_64_bit_bfd=yes
b879806f
AM
15423fi
15424
1d5269c9
MF
15425fi
15426
15427 if test "x$enable_64_bit_bfd" = "xyes"; then
15428 ENABLE_BFD_64_BIT_TRUE=
15429 ENABLE_BFD_64_BIT_FALSE='#'
15430else
15431 ENABLE_BFD_64_BIT_TRUE='#'
15432 ENABLE_BFD_64_BIT_FALSE=
15433fi
15434
15435
15436
b879806f
AM
15437
15438# Check whether --with-sysroot was given.
15439if test "${with_sysroot+set}" = set; then :
15440 withval=$with_sysroot;
15441 case ${with_sysroot} in
15442 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15443 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15444 esac
15445
15446 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15447 use_sysroot=yes
15448
15449 if test "x$prefix" = xNONE; then
15450 test_prefix=/usr/local
15451 else
15452 test_prefix=$prefix
15453 fi
15454 if test "x$exec_prefix" = xNONE; then
15455 test_exec_prefix=$test_prefix
15456 else
15457 test_exec_prefix=$exec_prefix
15458 fi
15459 case ${TARGET_SYSTEM_ROOT} in
15460 "${test_prefix}"|"${test_prefix}/"*|\
15461 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15462 '${prefix}'|'${prefix}/'*|\
15463 '${exec_prefix}'|'${exec_prefix}/'*)
15464 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15465 TARGET_SYSTEM_ROOT_DEFINE="$t"
15466 ;;
15467 esac
15468
15469else
15470
15471 use_sysroot=no
15472 TARGET_SYSTEM_ROOT=
15473 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15474
15475fi
15476
15477
15478
15479
15480
15481# Check whether --enable-gold was given.
15482if test "${enable_gold+set}" = set; then :
15483 enableval=$enable_gold; case "${enableval}" in
15484 default)
15485 install_as_default=no
15486 installed_linker=ld.bfd
15487 ;;
15488 yes|no)
15489 install_as_default=yes
15490 installed_linker=ld.bfd
15491 ;;
15492 *)
d0ac1c44 15493 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
b879806f
AM
15494 ;;
15495 esac
15496else
15497 install_as_default=yes
15498 installed_linker=ld.bfd
15499fi
15500
15501
15502
15503
15504# Check whether --enable-got was given.
15505if test "${enable_got+set}" = set; then :
15506 enableval=$enable_got; case "${enableval}" in
15507 target | single | negative | multigot) got_handling=$enableval ;;
d0ac1c44 15508 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15509esac
15510else
15511 got_handling=target
15512fi
15513
15514
15515case "${got_handling}" in
15516 target)
15517
15518$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15519 ;;
15520 single)
15521
15522$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15523 ;;
15524 negative)
15525
15526$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15527 ;;
15528 multigot)
15529
15530$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15531 ;;
d0ac1c44 15532 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15533esac
15534
6c3bc0f8
NC
15535# PR gas/19109
15536# Decide the default method for compressing debug sections.
15537ac_default_compressed_debug_sections=unset
15538# Provide a configure time option to override our default.
15539# Check whether --enable-compressed_debug_sections was given.
15540if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15541 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15542 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15543 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15544esac
15545fi
15546
6734f10a
SB
15547# Decide setting DT_RUNPATH instead of DT_RPATH by default
15548ac_default_new_dtags=unset
15549# Provide a configure time option to override our default.
15550# Check whether --enable-new_dtags was given.
15551if test "${enable_new_dtags+set}" = set; then :
15552 enableval=$enable_new_dtags; case "${enableval}" in
15553 yes) ac_default_new_dtags=1 ;;
15554 no) ac_default_new_dtags=0 ;;
15555esac
15556fi
15557
647e4d46
L
15558# Decide if -z relro should be enabled in ELF linker by default.
15559ac_default_ld_z_relro=unset
15560# Provide a configure time option to override our default.
15561# Check whether --enable-relro was given.
15562if test "${enable_relro+set}" = set; then :
15563 enableval=$enable_relro; case "${enableval}" in
15564 yes) ac_default_ld_z_relro=1 ;;
15565 no) ac_default_ld_z_relro=0 ;;
15566esac
15567fi
15568
b32632c4
L
15569# Decide if DT_TEXTREL check should be enabled in ELF linker.
15570ac_default_ld_textrel_check=unset
15571# Check whether --enable-textrel-check was given.
15572if test "${enable_textrel_check+set}" = set; then :
15573 enableval=$enable_textrel_check; case "${enableval}" in
15574 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15575esac
15576fi
15577
15578
f6aec96d
L
15579# Decide if -z separate-code should be enabled in ELF linker by default.
15580ac_default_ld_z_separate_code=unset
15581# Check whether --enable-separate-code was given.
15582if test "${enable_separate_code+set}" = set; then :
15583 enableval=$enable_separate_code; case "${enableval}" in
15584 yes) ac_default_ld_z_separate_code=1 ;;
15585 no) ac_default_ld_z_separate_code=0 ;;
15586esac
15587fi
15588
15589
ba951afb 15590
bd7d326d
AM
15591# By default warn when an executable stack is created due to object files
15592# requesting such, not when the user specifies -z execstack.
ed1c7ad8 15593ac_default_ld_warn_execstack=2
ba951afb
NC
15594# Check whether --enable-warn-execstack was given.
15595if test "${enable_warn_execstack+set}" = set; then :
15596 enableval=$enable_warn_execstack; case "${enableval}" in
15597 yes) ac_default_ld_warn_execstack=1 ;;
bd7d326d 15598 no) ac_default_ld_warn_execstack=0 ;;
ba951afb
NC
15599esac
15600fi
15601
15602
15603ac_default_ld_warn_rwx_segments=unset
15604# Check whether --enable-warn-rwx-segments was given.
15605if test "${enable_warn_rwx_segments+set}" = set; then :
15606 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15607 yes) ac_default_ld_warn_rwx_segments=1 ;;
15608 no) ac_default_ld_warn_rwx_segments=0 ;;
15609esac
15610fi
15611
15612
15613ac_default_ld_default_execstack=unset
15614# Check whether --enable-default-execstack was given.
15615if test "${enable_default_execstack+set}" = set; then :
15616 enableval=$enable_default_execstack; case "${enableval}" in
15617 yes) ac_default_ld_default_execstack=1 ;;
15618 no) ac_default_ld_default_execstack=0 ;;
15619esac
15620fi
15621
15622
15623
23ae20f5
NC
15624# Decide if --error-handling-script should be supported.
15625ac_support_error_handling_script=unset
15626# Check whether --enable-error-handling-script was given.
15627if test "${enable_error_handling_script+set}" = set; then :
15628 enableval=$enable_error_handling_script; case "${enableval}" in
15629 yes) ac_support_error_handling_script=1 ;;
15630 no) ac_support_error_handling_script=0 ;;
15631esac
15632fi
15633
15634
2760f24c
RG
15635# Decide which "--hash-style" to use by default
15636# Provide a configure time option to override our default.
15637# Check whether --enable-default-hash-style was given.
15638if test "${enable_default_hash_style+set}" = set; then :
15639 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15640 sysv | gnu | both) ;;
d0ac1c44 15641 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
2760f24c
RG
15642esac
15643else
15644 case "${target}" in
15645 # Enable gnu hash only on GNU targets, but not mips
15646 mips*-*-*) enable_default_hash_style=sysv ;;
15647 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15648 *) enable_default_hash_style=sysv ;;
15649esac
15650fi
15651
15652
15653case "${enable_default_hash_style}" in
15654 sysv | both) ac_default_emit_sysv_hash=1 ;;
15655 *) ac_default_emit_sysv_hash=0 ;;
15656esac
15657
15658case "${enable_default_hash_style}" in
15659 gnu | both) ac_default_emit_gnu_hash=1 ;;
15660 *) ac_default_emit_gnu_hash=0 ;;
15661esac
15662
c774eab1
AM
15663# Check whether --enable-initfini-array was given.
15664if test "${enable_initfini_array+set}" = set; then :
15665 enableval=$enable_initfini_array; case "${enableval}" in
15666 yes|no) ;;
15667 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15668 esac
15669else
15670 enable_initfini_array=yes
15671fi
15672
15673
15674if test $enable_initfini_array = yes; then
15675
15676$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15677
15678fi
15679
094e34f2
NA
15680 # Check whether --enable-libctf was given.
15681if test "${enable_libctf+set}" = set; then :
15682 enableval=$enable_libctf;
15683 case "$enableval" in
15684 yes|no) ;;
15685 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15686 esac
15687
15688else
15689 enable_libctf=yes
15690fi
15691
15692
15693if test "${enable_libctf}" = yes; then
15694
15695$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15696
15697fi
15698 if test "${enable_libctf}" = yes; then
15699 ENABLE_LIBCTF_TRUE=
15700 ENABLE_LIBCTF_FALSE='#'
15701else
15702 ENABLE_LIBCTF_TRUE='#'
15703 ENABLE_LIBCTF_FALSE=
15704fi
15705
15706
b879806f 15707
9e2bb0cb
LB
15708# Used to validate --package-metadata= input. Disabled by default.
15709# Check whether --enable-jansson was given.
15710if test "${enable_jansson+set}" = set; then :
15711 enableval=$enable_jansson; enable_jansson=$enableval
15712else
15713 enable_jansson="no"
15714fi
15715
15716
544c5619 15717if test "x$enable_jansson" != "xno"; then :
9e2bb0cb
LB
15718
15719pkg_failed=no
15720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15721$as_echo_n "checking for jansson... " >&6; }
15722
15723if test -n "$JANSSON_CFLAGS"; then
15724 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15725 elif test -n "$PKG_CONFIG"; then
15726 if test -n "$PKG_CONFIG" && \
15727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15728 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15729 ac_status=$?
15730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15731 test $ac_status = 0; }; then
15732 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15733 test "x$?" != "x0" && pkg_failed=yes
15734else
15735 pkg_failed=yes
15736fi
15737 else
15738 pkg_failed=untried
15739fi
15740if test -n "$JANSSON_LIBS"; then
15741 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15742 elif test -n "$PKG_CONFIG"; then
15743 if test -n "$PKG_CONFIG" && \
15744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15745 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15746 ac_status=$?
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 test $ac_status = 0; }; then
15749 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15750 test "x$?" != "x0" && pkg_failed=yes
15751else
15752 pkg_failed=yes
15753fi
15754 else
15755 pkg_failed=untried
15756fi
15757
15758if test $pkg_failed = no; then
15759 pkg_save_LDFLAGS="$LDFLAGS"
15760 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15762/* end confdefs.h. */
15763
15764int
15765main ()
15766{
15767
15768 ;
15769 return 0;
15770}
15771_ACEOF
15772if ac_fn_c_try_link "$LINENO"; then :
15773
15774else
15775 pkg_failed=yes
15776fi
15777rm -f core conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LDFLAGS=$pkg_save_LDFLAGS
15780fi
15781
15782
15783
15784if test $pkg_failed = yes; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15786$as_echo "no" >&6; }
15787
15788if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15789 _pkg_short_errors_supported=yes
15790else
15791 _pkg_short_errors_supported=no
15792fi
15793 if test $_pkg_short_errors_supported = yes; then
15794 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15795 else
15796 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15797 fi
15798 # Put the nasty error message in config.log where it belongs
15799 echo "$JANSSON_PKG_ERRORS" >&5
15800
544c5619 15801 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
9e2bb0cb
LB
15802elif test $pkg_failed = untried; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804$as_echo "no" >&6; }
544c5619 15805 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
9e2bb0cb
LB
15806else
15807 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15808 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15810$as_echo "yes" >&6; }
15811
15812
15813$as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15814
15815
15816
15817
15818fi
15819
9e2bb0cb
LB
15820fi
15821
7cdfc346 15822
b879806f
AM
15823# Set the 'development' global.
15824. $srcdir/../bfd/development.sh
15825
c5da1932
VZ
15826# Set acp_cpp_for_build variable
15827ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15828
9780e045 15829# Default set of GCC warnings to enable.
b879806f 15830GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15831GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15832
15833# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835/* end confdefs.h. */
15836__GNUC__
15837_ACEOF
15838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15839 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
ce2cded5 15840
3cb62297 15841else
b879806f 15842 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15843fi
b879806f 15844rm -f conftest*
ce2cded5 15845
ce2cded5 15846
9780e045
NC
15847# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15849/* end confdefs.h. */
15850__GNUC__
15851_ACEOF
15852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15853 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
15854
15855else
491cf317
TO
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h. */
15858__clang__
15859_ACEOF
15860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15861 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9780e045
NC
15862 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15863fi
15864rm -f conftest*
15865
491cf317
TO
15866fi
15867rm -f conftest*
15868
9780e045 15869
6757cf57
TS
15870# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15871WARN_WRITE_STRINGS=""
15872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873/* end confdefs.h. */
15874__GNUC__
15875_ACEOF
15876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15877 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
15878
15879else
15880 WARN_WRITE_STRINGS="-Wwrite-strings"
15881fi
15882rm -f conftest*
15883
9780e045 15884
96fe4562 15885# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
15886
15887# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889/* end confdefs.h. */
15890__GNUC__
15891_ACEOF
15892if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15893 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15894
15895else
15896 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15897fi
15898rm -f conftest*
15899
15900
15901# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903/* end confdefs.h. */
15904__GNUC__
15905_ACEOF
15906if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 15907 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
15908
15909else
491cf317
TO
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911/* end confdefs.h. */
15912__clang__
15913_ACEOF
15914if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15915 $EGREP "^__clang__$" >/dev/null 2>&1; then :
c5da1932
VZ
15916 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15917fi
15918rm -f conftest*
15919
491cf317
TO
15920fi
15921rm -f conftest*
15922
c5da1932 15923
b879806f
AM
15924# Check whether --enable-werror was given.
15925if test "${enable_werror+set}" = set; then :
15926 enableval=$enable_werror; case "${enableval}" in
15927 yes | y) ERROR_ON_WARNING="yes" ;;
15928 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 15929 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
b879806f
AM
15930 esac
15931fi
ce2cded5
L
15932
15933
b879806f
AM
15934# Disable -Wformat by default when using gcc on mingw
15935case "${host}" in
15936 *-*-mingw32*)
15937 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15938 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 15939 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
15940 fi
15941 ;;
15942 *) ;;
15943esac
ce2cded5 15944
b879806f
AM
15945# Enable -Werror by default when using gcc. Turn it off for releases.
15946if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
15947 ERROR_ON_WARNING=yes
15948fi
d7040cdb 15949
b879806f
AM
15950NO_WERROR=
15951if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 15952 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 15953 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
15954 NO_WERROR="-Wno-error"
15955fi
3cb62297 15956
b879806f
AM
15957if test "${GCC}" = yes ; then
15958 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 15959 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 15960fi
67310ccd 15961
b879806f
AM
15962# Check whether --enable-build-warnings was given.
15963if test "${enable_build_warnings+set}" = set; then :
15964 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
15965 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
15966 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
15967 no) if test "${GCC}" = yes ; then
15968 WARN_CFLAGS="-w"
c5da1932 15969 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
15970 fi;;
15971 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15972 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
15973 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 15974 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
15975 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
15976 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15977 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
15978 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
15979esac
15980fi
67310ccd 15981
d7040cdb 15982
b879806f
AM
15983if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
15984 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15985fi
d7040cdb 15986
d7040cdb 15987
d7040cdb 15988
d7040cdb 15989
ce2cded5
L
15990
15991
6757cf57 15992
c5da1932 15993
b879806f
AM
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15995$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 15996if ${am_cv_val_LC_MESSAGES+:} false; then :
b879806f
AM
15997 $as_echo_n "(cached) " >&6
15998else
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000/* end confdefs.h. */
16001#include <locale.h>
16002int
16003main ()
16004{
16005return LC_MESSAGES
16006 ;
16007 return 0;
16008}
16009_ACEOF
16010if ac_fn_c_try_link "$LINENO"; then :
16011 am_cv_val_LC_MESSAGES=yes
16012else
16013 am_cv_val_LC_MESSAGES=no
16014fi
16015rm -f core conftest.err conftest.$ac_objext \
16016 conftest$ac_exeext conftest.$ac_ext
16017fi
16018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16019$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16020 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 16021
b879806f 16022$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 16023
b879806f 16024 fi
ce2cded5 16025
ce2cded5 16026
b879806f 16027ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
16028
16029
b879806f 16030# PR 14072
ce2cded5 16031
ce2cded5 16032
b879806f 16033if test -z "$target" ; then
d0ac1c44 16034 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
b879806f
AM
16035fi
16036if test -z "$host" ; then
d0ac1c44 16037 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
b879806f 16038fi
d7040cdb 16039
b879806f 16040# host-specific stuff:
d7040cdb 16041
e184813f 16042ALL_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
16043# If we haven't got the data from the intl directory,
16044# assume NLS is disabled.
16045USE_NLS=no
16046LIBINTL=
16047LIBINTL_DEP=
16048INCINTL=
16049XGETTEXT=
16050GMSGFMT=
16051POSUB=
16052
16053if test -f ../intl/config.intl; then
16054 . ../intl/config.intl
16055fi
81ecdfbb
RW
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16057$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 16058if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060$as_echo "no" >&6; }
d7040cdb 16061else
81ecdfbb
RW
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16063$as_echo "yes" >&6; }
d7040cdb 16064
81ecdfbb 16065$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
16066
16067
81ecdfbb
RW
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16069$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
16070 # Look for .po and .gmo files in the source directory.
16071 CATALOGS=
16072 XLINGUAS=
16073 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
16074 # If there aren't any .gmo files the shell will give us the
16075 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16076 # weeded out.
16077 case "$cat" in *\**)
16078 continue;;
16079 esac
16080 # The quadruple backslash is collapsed to a double backslash
16081 # by the backticks, then collapsed again by the double quotes,
16082 # leaving us with one backslash in the sed expression (right
16083 # before the dot that mustn't act as a wildcard).
16084 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16085 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
16086 # The user is allowed to set LINGUAS to a list of languages to
16087 # install catalogs for. If it's empty that means "all of them."
16088 if test "x$LINGUAS" = x; then
16089 CATALOGS="$CATALOGS $cat"
16090 XLINGUAS="$XLINGUAS $lang"
16091 else
16092 case "$LINGUAS" in *$lang*)
16093 CATALOGS="$CATALOGS $cat"
16094 XLINGUAS="$XLINGUAS $lang"
16095 ;;
16096 esac
16097 fi
16098 done
16099 LINGUAS="$XLINGUAS"
81ecdfbb
RW
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16101$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
16102
16103
16104 DATADIRNAME=share
16105
16106 INSTOBJEXT=.mo
16107
16108 GENCAT=gencat
16109
16110 CATOBJEXT=.gmo
16111
16112fi
16113
16114 MKINSTALLDIRS=
16115 if test -n "$ac_aux_dir"; then
16116 case "$ac_aux_dir" in
16117 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16118 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16119 esac
16120 fi
16121 if test -z "$MKINSTALLDIRS"; then
16122 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16123 fi
16124
16125
16126
81ecdfbb
RW
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16128$as_echo_n "checking whether NLS is requested... " >&6; }
16129 # Check whether --enable-nls was given.
16130if test "${enable_nls+set}" = set; then :
16131 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
16132else
16133 USE_NLS=yes
81ecdfbb
RW
16134fi
16135
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16137$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
16138
16139
16140
16141
16142
16143
16144# Prepare PATH_SEPARATOR.
16145# The user is always right.
16146if test "${PATH_SEPARATOR+set}" != set; then
16147 echo "#! /bin/sh" >conf$$.sh
16148 echo "exit 0" >>conf$$.sh
16149 chmod +x conf$$.sh
16150 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16151 PATH_SEPARATOR=';'
16152 else
16153 PATH_SEPARATOR=:
16154 fi
16155 rm -f conf$$.sh
16156fi
16157
16158# Find out how to test for executable files. Don't use a zero-byte file,
16159# as systems may use methods other than mode bits to determine executability.
16160cat >conf$$.file <<_ASEOF
16161#! /bin/sh
16162exit 0
16163_ASEOF
16164chmod +x conf$$.file
16165if test -x conf$$.file >/dev/null 2>&1; then
16166 ac_executable_p="test -x"
16167else
16168 ac_executable_p="test -f"
16169fi
16170rm -f conf$$.file
16171
16172# Extract the first word of "msgfmt", so it can be a program name with args.
16173set dummy msgfmt; ac_word=$2
81ecdfbb
RW
16174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16175$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16176if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 16177 $as_echo_n "(cached) " >&6
d7040cdb
SE
16178else
16179 case "$MSGFMT" in
16180 [\\/]* | ?:[\\/]*)
16181 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16182 ;;
16183 *)
16184 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16185 for ac_dir in $PATH; do
16186 IFS="$ac_save_IFS"
16187 test -z "$ac_dir" && ac_dir=.
16188 for ac_exec_ext in '' $ac_executable_extensions; do
16189 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16190 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16191 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16192 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16193 break 2
16194 fi
16195 fi
16196 done
16197 done
16198 IFS="$ac_save_IFS"
16199 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16200 ;;
16201esac
16202fi
16203MSGFMT="$ac_cv_path_MSGFMT"
16204if test "$MSGFMT" != ":"; then
81ecdfbb
RW
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16206$as_echo "$MSGFMT" >&6; }
d7040cdb 16207else
81ecdfbb
RW
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209$as_echo "no" >&6; }
d7040cdb
SE
16210fi
16211
16212 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16213set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
16214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16215$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16216if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 16217 $as_echo_n "(cached) " >&6
d7040cdb
SE
16218else
16219 case $GMSGFMT in
16220 [\\/]* | ?:[\\/]*)
16221 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16222 ;;
16223 *)
16224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225for as_dir in $PATH
16226do
16227 IFS=$as_save_IFS
16228 test -z "$as_dir" && as_dir=.
81ecdfbb 16229 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16231 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16233 break 2
16234 fi
16235done
81ecdfbb
RW
16236 done
16237IFS=$as_save_IFS
d7040cdb
SE
16238
16239 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16240 ;;
16241esac
16242fi
16243GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16244if test -n "$GMSGFMT"; then
81ecdfbb
RW
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16246$as_echo "$GMSGFMT" >&6; }
d7040cdb 16247else
81ecdfbb
RW
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16249$as_echo "no" >&6; }
20e95c23 16250fi
42ecbf5e 16251
20e95c23 16252
252b5132 16253
81ecdfbb 16254
d7040cdb
SE
16255# Prepare PATH_SEPARATOR.
16256# The user is always right.
16257if test "${PATH_SEPARATOR+set}" != set; then
16258 echo "#! /bin/sh" >conf$$.sh
16259 echo "exit 0" >>conf$$.sh
16260 chmod +x conf$$.sh
16261 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16262 PATH_SEPARATOR=';'
16263 else
16264 PATH_SEPARATOR=:
16265 fi
16266 rm -f conf$$.sh
20e95c23 16267fi
252b5132 16268
d7040cdb
SE
16269# Find out how to test for executable files. Don't use a zero-byte file,
16270# as systems may use methods other than mode bits to determine executability.
16271cat >conf$$.file <<_ASEOF
16272#! /bin/sh
16273exit 0
16274_ASEOF
16275chmod +x conf$$.file
16276if test -x conf$$.file >/dev/null 2>&1; then
16277 ac_executable_p="test -x"
20e95c23 16278else
d7040cdb
SE
16279 ac_executable_p="test -f"
16280fi
16281rm -f conf$$.file
20e95c23 16282
d7040cdb
SE
16283# Extract the first word of "xgettext", so it can be a program name with args.
16284set dummy xgettext; ac_word=$2
81ecdfbb
RW
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16287if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 16288 $as_echo_n "(cached) " >&6
252b5132 16289else
d7040cdb
SE
16290 case "$XGETTEXT" in
16291 [\\/]* | ?:[\\/]*)
16292 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16293 ;;
16294 *)
16295 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16296 for ac_dir in $PATH; do
16297 IFS="$ac_save_IFS"
16298 test -z "$ac_dir" && ac_dir=.
16299 for ac_exec_ext in '' $ac_executable_extensions; do
16300 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16301 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16302 (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
16303 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16304 break 2
16305 fi
16306 fi
16307 done
16308 done
16309 IFS="$ac_save_IFS"
16310 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16311 ;;
16312esac
252b5132 16313fi
d7040cdb
SE
16314XGETTEXT="$ac_cv_path_XGETTEXT"
16315if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16317$as_echo "$XGETTEXT" >&6; }
d5fbea21 16318else
81ecdfbb
RW
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320$as_echo "no" >&6; }
d5fbea21
DJ
16321fi
16322
d7040cdb 16323 rm -f messages.po
d5fbea21 16324
20e95c23 16325
d7040cdb
SE
16326# Prepare PATH_SEPARATOR.
16327# The user is always right.
16328if test "${PATH_SEPARATOR+set}" != set; then
16329 echo "#! /bin/sh" >conf$$.sh
16330 echo "exit 0" >>conf$$.sh
16331 chmod +x conf$$.sh
16332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16333 PATH_SEPARATOR=';'
16334 else
16335 PATH_SEPARATOR=:
16336 fi
16337 rm -f conf$$.sh
16338fi
20e95c23 16339
d7040cdb
SE
16340# Find out how to test for executable files. Don't use a zero-byte file,
16341# as systems may use methods other than mode bits to determine executability.
16342cat >conf$$.file <<_ASEOF
16343#! /bin/sh
16344exit 0
16345_ASEOF
16346chmod +x conf$$.file
16347if test -x conf$$.file >/dev/null 2>&1; then
16348 ac_executable_p="test -x"
16349else
16350 ac_executable_p="test -f"
16351fi
16352rm -f conf$$.file
20e95c23 16353
d7040cdb
SE
16354# Extract the first word of "msgmerge", so it can be a program name with args.
16355set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16357$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16358if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 16359 $as_echo_n "(cached) " >&6
d7040cdb
SE
16360else
16361 case "$MSGMERGE" in
16362 [\\/]* | ?:[\\/]*)
16363 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16364 ;;
16365 *)
16366 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16367 for ac_dir in $PATH; do
16368 IFS="$ac_save_IFS"
16369 test -z "$ac_dir" && ac_dir=.
16370 for ac_exec_ext in '' $ac_executable_extensions; do
16371 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16372 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16373 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16374 break 2
16375 fi
16376 fi
16377 done
16378 done
16379 IFS="$ac_save_IFS"
16380 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16381 ;;
16382esac
16383fi
16384MSGMERGE="$ac_cv_path_MSGMERGE"
16385if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16387$as_echo "$MSGMERGE" >&6; }
d7040cdb 16388else
81ecdfbb
RW
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16390$as_echo "no" >&6; }
d7040cdb 16391fi
20e95c23
DJ
16392
16393
d7040cdb
SE
16394 if test "$GMSGFMT" != ":"; then
16395 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16396 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16397 : ;
16398 else
16399 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16401$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16402 GMSGFMT=":"
16403 fi
16404 fi
20e95c23 16405
d7040cdb
SE
16406 if test "$XGETTEXT" != ":"; then
16407 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16408 (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
16409 : ;
16410 else
81ecdfbb
RW
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16412$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16413 XGETTEXT=":"
16414 fi
16415 rm -f messages.po
20e95c23 16416 fi
42ecbf5e 16417
81ecdfbb 16418 ac_config_commands="$ac_config_commands default-1"
252b5132 16419
42ecbf5e 16420
252b5132 16421
42ecbf5e
DJ
16422
16423
d7040cdb 16424for ac_prog in 'bison -y' byacc
20e95c23 16425do
d7040cdb
SE
16426 # Extract the first word of "$ac_prog", so it can be a program name with args.
16427set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16429$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16430if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 16431 $as_echo_n "(cached) " >&6
20e95c23 16432else
d7040cdb
SE
16433 if test -n "$YACC"; then
16434 ac_cv_prog_YACC="$YACC" # Let the user override the test.
42ecbf5e 16435else
d7040cdb
SE
16436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16437for as_dir in $PATH
16438do
16439 IFS=$as_save_IFS
16440 test -z "$as_dir" && as_dir=.
81ecdfbb 16441 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16443 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 16444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16445 break 2
16446 fi
16447done
81ecdfbb
RW
16448 done
16449IFS=$as_save_IFS
42ecbf5e 16450
42ecbf5e 16451fi
e5a52504 16452fi
d7040cdb
SE
16453YACC=$ac_cv_prog_YACC
16454if test -n "$YACC"; then
81ecdfbb
RW
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16456$as_echo "$YACC" >&6; }
42ecbf5e 16457else
81ecdfbb
RW
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459$as_echo "no" >&6; }
42ecbf5e 16460fi
252b5132 16461
81ecdfbb 16462
d7040cdb 16463 test -n "$YACC" && break
42ecbf5e 16464done
d7040cdb 16465test -n "$YACC" || YACC="yacc"
d15b04bd 16466
d7040cdb
SE
16467for ac_prog in flex lex
16468do
16469 # Extract the first word of "$ac_prog", so it can be a program name with args.
16470set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16472$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16473if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 16474 $as_echo_n "(cached) " >&6
d15b04bd 16475else
d7040cdb
SE
16476 if test -n "$LEX"; then
16477 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16478else
16479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16480for as_dir in $PATH
16481do
16482 IFS=$as_save_IFS
16483 test -z "$as_dir" && as_dir=.
81ecdfbb 16484 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16486 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 16487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16488 break 2
16489 fi
16490done
81ecdfbb
RW
16491 done
16492IFS=$as_save_IFS
d7040cdb
SE
16493
16494fi
16495fi
16496LEX=$ac_cv_prog_LEX
16497if test -n "$LEX"; then
81ecdfbb
RW
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16499$as_echo "$LEX" >&6; }
d7040cdb 16500else
81ecdfbb
RW
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16502$as_echo "no" >&6; }
d15b04bd 16503fi
e5a52504 16504
81ecdfbb 16505
d7040cdb
SE
16506 test -n "$LEX" && break
16507done
16508test -n "$LEX" || LEX=":"
42ecbf5e 16509
3d961d0d
AM
16510case "$LEX" in
16511 :|*"missing "*) ;;
16512 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
16513%%
16514a { ECHO; }
16515b { REJECT; }
16516c { yymore (); }
16517d { yyless (1); }
d0ac1c44
SM
16518e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16519 yyless ((input () != 0)); }
81ecdfbb
RW
16520f { unput (yytext[0]); }
16521. { BEGIN INITIAL; }
16522%%
16523#ifdef YYTEXT_POINTER
16524extern char *yytext;
d7040cdb 16525#endif
42ecbf5e 16526int
81ecdfbb 16527main (void)
42ecbf5e 16528{
81ecdfbb 16529 return ! yylex () + ! yywrap ();
42ecbf5e
DJ
16530}
16531_ACEOF
81ecdfbb
RW
16532{ { ac_try="$LEX conftest.l"
16533case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536esac
16537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16538$as_echo "$ac_try_echo"; } >&5
16539 (eval "$LEX conftest.l") 2>&5
42ecbf5e 16540 ac_status=$?
81ecdfbb
RW
16541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16542 test $ac_status = 0; }
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16544$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 16545if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 16546 $as_echo_n "(cached) " >&6
42ecbf5e 16547else
42ecbf5e 16548
81ecdfbb
RW
16549if test -f lex.yy.c; then
16550 ac_cv_prog_lex_root=lex.yy
16551elif test -f lexyy.c; then
16552 ac_cv_prog_lex_root=lexyy
16553else
d0ac1c44 16554 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 16555fi
42ecbf5e 16556fi
81ecdfbb
RW
16557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16558$as_echo "$ac_cv_prog_lex_root" >&6; }
16559LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 16560
81ecdfbb
RW
16561if test -z "${LEXLIB+set}"; then
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16563$as_echo_n "checking lex library... " >&6; }
d0ac1c44 16564if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 16565 $as_echo_n "(cached) " >&6
252b5132 16566else
20e95c23 16567
81ecdfbb
RW
16568 ac_save_LIBS=$LIBS
16569 ac_cv_lib_lex='none needed'
16570 for ac_lib in '' -lfl -ll; do
16571 LIBS="$ac_lib $ac_save_LIBS"
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573/* end confdefs.h. */
16574`cat $LEX_OUTPUT_ROOT.c`
16575_ACEOF
16576if ac_fn_c_try_link "$LINENO"; then :
16577 ac_cv_lib_lex=$ac_lib
20e95c23 16578fi
81ecdfbb
RW
16579rm -f core conftest.err conftest.$ac_objext \
16580 conftest$ac_exeext conftest.$ac_ext
16581 test "$ac_cv_lib_lex" != 'none needed' && break
16582 done
16583 LIBS=$ac_save_LIBS
20e95c23
DJ
16584
16585fi
81ecdfbb
RW
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16587$as_echo "$ac_cv_lib_lex" >&6; }
16588 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 16589fi
20e95c23 16590
20e95c23 16591
81ecdfbb
RW
16592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16593$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 16594if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 16595 $as_echo_n "(cached) " >&6
d7040cdb
SE
16596else
16597 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 16598# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
16599# not all implementations provide the %pointer and %array declarations.
16600ac_cv_prog_lex_yytext_pointer=no
d7040cdb 16601ac_save_LIBS=$LIBS
81ecdfbb
RW
16602LIBS="$LEXLIB $ac_save_LIBS"
16603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h. */
d0ac1c44
SM
16605
16606 #define YYTEXT_POINTER 1
d7040cdb 16607`cat $LEX_OUTPUT_ROOT.c`
20e95c23 16608_ACEOF
81ecdfbb 16609if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 16610 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 16611fi
81ecdfbb
RW
16612rm -f core conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
d7040cdb 16614LIBS=$ac_save_LIBS
d7040cdb
SE
16615
16616fi
81ecdfbb
RW
16617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16618$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
16619if test $ac_cv_prog_lex_yytext_pointer = yes; then
16620
81ecdfbb 16621$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
16622
16623fi
81ecdfbb 16624rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
16625 ;;
16626esac
d7040cdb
SE
16627if test "$LEX" = :; then
16628 LEX=${am_missing_run}flex
16629fi
16630
81ecdfbb
RW
16631
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16633$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16634 # Check whether --enable-maintainer-mode was given.
16635if test "${enable_maintainer_mode+set}" = set; then :
16636 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 16637else
d7040cdb 16638 USE_MAINTAINER_MODE=no
81ecdfbb 16639fi
d7040cdb 16640
81ecdfbb
RW
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16642$as_echo "$USE_MAINTAINER_MODE" >&6; }
16643 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
16644 MAINTAINER_MODE_TRUE=
16645 MAINTAINER_MODE_FALSE='#'
16646else
16647 MAINTAINER_MODE_TRUE='#'
16648 MAINTAINER_MODE_FALSE=
252b5132 16649fi
252b5132 16650
d7040cdb
SE
16651 MAINT=$MAINTAINER_MODE_TRUE
16652
16653
81ecdfbb 16654 if false; then
d7040cdb
SE
16655 GENINSRC_NEVER_TRUE=
16656 GENINSRC_NEVER_FALSE='#'
16657else
16658 GENINSRC_NEVER_TRUE='#'
16659 GENINSRC_NEVER_FALSE=
252b5132
RH
16660fi
16661
81ecdfbb
RW
16662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16663$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 16664if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 16665 $as_echo_n "(cached) " >&6
eccbf555
AM
16666else
16667 echo abfoo >t1
16668 echo cdfoo >t2
da17fe9d 16669 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
16670 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16671 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16672 :
16673 else
16674 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16675 fi
16676 fi
16677 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16678 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16679 :
16680 else
16681 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16682 fi
16683 fi
16684 rm t1 t2
16685
16686fi
81ecdfbb
RW
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16688$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
16689do_compare="$gcc_cv_prog_cmp_skip"
16690
16691
d7040cdb
SE
16692
16693. ${srcdir}/configure.host
16694
16695
16696
c774eab1
AM
16697
16698# We use headers from include/ that check various HAVE_*_H macros, thus
16699# should ensure they are set by configure. This is true even when C99
16700# guarantees they are available.
16701# sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
16702# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
16703# Besides those, we need to check anything used in ld/ not in C99.
16704for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
16705 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
16706 sys/types.h unistd.h
5d3236ee
DK
16707do :
16708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 16710if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5d3236ee
DK
16711 cat >>confdefs.h <<_ACEOF
16712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16713_ACEOF
16714
16715fi
16716
16717done
16718
6577f365 16719for ac_func in close glob lseek mkstemp open realpath waitpid
81ecdfbb
RW
16720do :
16721 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16722ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 16723if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42ecbf5e 16724 cat >>confdefs.h <<_ACEOF
81ecdfbb 16725#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 16726_ACEOF
252b5132 16727
252b5132
RH
16728fi
16729done
16730
5d3236ee 16731
42ecbf5e 16732
c774eab1
AM
16733case "${host}" in
16734*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 16735
c774eab1
AM
16736$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16737 ;;
16738esac
42ecbf5e 16739
c774eab1
AM
16740ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16741if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16742 ac_have_decl=1
42ecbf5e 16743else
c774eab1 16744 ac_have_decl=0
81ecdfbb 16745fi
e5a52504 16746
c774eab1
AM
16747cat >>confdefs.h <<_ACEOF
16748#define HAVE_DECL_ASPRINTF $ac_have_decl
16749_ACEOF
16750ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16751if test "x$ac_cv_have_decl_environ" = xyes; then :
16752 ac_have_decl=1
42ecbf5e 16753else
c774eab1 16754 ac_have_decl=0
d15b04bd 16755fi
252b5132 16756
c774eab1
AM
16757cat >>confdefs.h <<_ACEOF
16758#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 16759_ACEOF
252b5132
RH
16760
16761
d0ac1c44
SM
16762
16763
16764
16765 for ac_header in $ac_header_list
2aec968d
L
16766do :
16767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0ac1c44
SM
16768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16769"
16770if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2aec968d
L
16771 cat >>confdefs.h <<_ACEOF
16772#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16773_ACEOF
16774
16775fi
16776
16777done
16778
d0ac1c44
SM
16779
16780
16781
16782
16783
16784
16785
2aec968d
L
16786for ac_func in getpagesize
16787do :
16788 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d0ac1c44 16789if test "x$ac_cv_func_getpagesize" = xyes; then :
2aec968d
L
16790 cat >>confdefs.h <<_ACEOF
16791#define HAVE_GETPAGESIZE 1
16792_ACEOF
16793
16794fi
16795done
16796
16797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16798$as_echo_n "checking for working mmap... " >&6; }
d0ac1c44 16799if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
2aec968d
L
16800 $as_echo_n "(cached) " >&6
16801else
16802 if test "$cross_compiling" = yes; then :
16803 ac_cv_func_mmap_fixed_mapped=no
16804else
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806/* end confdefs.h. */
16807$ac_includes_default
16808/* malloc might have been renamed as rpl_malloc. */
16809#undef malloc
16810
16811/* Thanks to Mike Haertel and Jim Avera for this test.
16812 Here is a matrix of mmap possibilities:
16813 mmap private not fixed
16814 mmap private fixed at somewhere currently unmapped
16815 mmap private fixed at somewhere already mapped
16816 mmap shared not fixed
16817 mmap shared fixed at somewhere currently unmapped
16818 mmap shared fixed at somewhere already mapped
16819 For private mappings, we should verify that changes cannot be read()
16820 back from the file, nor mmap's back from the file at a different
16821 address. (There have been systems where private was not correctly
16822 implemented like the infamous i386 svr4.0, and systems where the
16823 VM page cache was not coherent with the file system buffer cache
16824 like early versions of FreeBSD and possibly contemporary NetBSD.)
16825 For shared mappings, we should conversely verify that changes get
16826 propagated back to all the places they're supposed to be.
16827
16828 Grep wants private fixed already mapped.
16829 The main things grep needs to know about mmap are:
16830 * does it exist and is it safe to write into the mmap'd area
16831 * how to use it (BSD variants) */
16832
16833#include <fcntl.h>
16834#include <sys/mman.h>
16835
16836#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16837char *malloc ();
16838#endif
16839
16840/* This mess was copied from the GNU getpagesize.h. */
16841#ifndef HAVE_GETPAGESIZE
2aec968d
L
16842# ifdef _SC_PAGESIZE
16843# define getpagesize() sysconf(_SC_PAGESIZE)
16844# else /* no _SC_PAGESIZE */
16845# ifdef HAVE_SYS_PARAM_H
16846# include <sys/param.h>
16847# ifdef EXEC_PAGESIZE
16848# define getpagesize() EXEC_PAGESIZE
16849# else /* no EXEC_PAGESIZE */
16850# ifdef NBPG
16851# define getpagesize() NBPG * CLSIZE
16852# ifndef CLSIZE
16853# define CLSIZE 1
16854# endif /* no CLSIZE */
16855# else /* no NBPG */
16856# ifdef NBPC
16857# define getpagesize() NBPC
16858# else /* no NBPC */
16859# ifdef PAGESIZE
16860# define getpagesize() PAGESIZE
16861# endif /* PAGESIZE */
16862# endif /* no NBPC */
16863# endif /* no NBPG */
16864# endif /* no EXEC_PAGESIZE */
16865# else /* no HAVE_SYS_PARAM_H */
16866# define getpagesize() 8192 /* punt totally */
16867# endif /* no HAVE_SYS_PARAM_H */
16868# endif /* no _SC_PAGESIZE */
16869
16870#endif /* no HAVE_GETPAGESIZE */
16871
16872int
16873main ()
16874{
16875 char *data, *data2, *data3;
d0ac1c44 16876 const char *cdata2;
2aec968d 16877 int i, pagesize;
d0ac1c44 16878 int fd, fd2;
2aec968d
L
16879
16880 pagesize = getpagesize ();
16881
16882 /* First, make a file with some known garbage in it. */
16883 data = (char *) malloc (pagesize);
16884 if (!data)
16885 return 1;
16886 for (i = 0; i < pagesize; ++i)
16887 *(data + i) = rand ();
16888 umask (0);
16889 fd = creat ("conftest.mmap", 0600);
16890 if (fd < 0)
d0ac1c44 16891 return 2;
2aec968d 16892 if (write (fd, data, pagesize) != pagesize)
d0ac1c44 16893 return 3;
2aec968d
L
16894 close (fd);
16895
d0ac1c44
SM
16896 /* Next, check that the tail of a page is zero-filled. File must have
16897 non-zero length, otherwise we risk SIGBUS for entire page. */
16898 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16899 if (fd2 < 0)
16900 return 4;
16901 cdata2 = "";
16902 if (write (fd2, cdata2, 1) != 1)
16903 return 5;
16904 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16905 if (data2 == MAP_FAILED)
16906 return 6;
16907 for (i = 0; i < pagesize; ++i)
16908 if (*(data2 + i))
16909 return 7;
16910 close (fd2);
16911 if (munmap (data2, pagesize))
16912 return 8;
16913
2aec968d
L
16914 /* Next, try to mmap the file at a fixed address which already has
16915 something else allocated at it. If we can, also make sure that
16916 we see the same garbage. */
16917 fd = open ("conftest.mmap", O_RDWR);
16918 if (fd < 0)
d0ac1c44 16919 return 9;
2aec968d
L
16920 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16921 MAP_PRIVATE | MAP_FIXED, fd, 0L))
d0ac1c44 16922 return 10;
2aec968d
L
16923 for (i = 0; i < pagesize; ++i)
16924 if (*(data + i) != *(data2 + i))
d0ac1c44 16925 return 11;
2aec968d
L
16926
16927 /* Finally, make sure that changes to the mapped area do not
16928 percolate back to the file as seen by read(). (This is a bug on
16929 some variants of i386 svr4.0.) */
16930 for (i = 0; i < pagesize; ++i)
16931 *(data2 + i) = *(data2 + i) + 1;
16932 data3 = (char *) malloc (pagesize);
16933 if (!data3)
d0ac1c44 16934 return 12;
2aec968d 16935 if (read (fd, data3, pagesize) != pagesize)
d0ac1c44 16936 return 13;
2aec968d
L
16937 for (i = 0; i < pagesize; ++i)
16938 if (*(data + i) != *(data3 + i))
d0ac1c44 16939 return 14;
2aec968d
L
16940 close (fd);
16941 return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_run "$LINENO"; then :
16945 ac_cv_func_mmap_fixed_mapped=yes
16946else
16947 ac_cv_func_mmap_fixed_mapped=no
16948fi
16949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16950 conftest.$ac_objext conftest.beam conftest.$ac_ext
16951fi
16952
16953fi
16954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16955$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16956if test $ac_cv_func_mmap_fixed_mapped = yes; then
16957
16958$as_echo "#define HAVE_MMAP 1" >>confdefs.h
16959
16960fi
d0ac1c44 16961rm -f conftest.mmap conftest.txt
2aec968d
L
16962
16963
5d3236ee
DK
16964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16965$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 16966if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
16967 $as_echo_n "(cached) " >&6
16968else
16969 ac_func_search_save_LIBS=$LIBS
16970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h. */
16972
16973/* Override any GCC internal prototype to avoid an error.
16974 Use char because int might match the return type of a GCC
16975 builtin and then its argument prototype would still apply. */
16976#ifdef __cplusplus
16977extern "C"
16978#endif
16979char dlopen ();
16980int
16981main ()
16982{
16983return dlopen ();
16984 ;
16985 return 0;
16986}
16987_ACEOF
16988for ac_lib in '' dl; do
16989 if test -z "$ac_lib"; then
16990 ac_res="none required"
16991 else
16992 ac_res=-l$ac_lib
16993 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16994 fi
16995 if ac_fn_c_try_link "$LINENO"; then :
16996 ac_cv_search_dlopen=$ac_res
16997fi
16998rm -f core conftest.err conftest.$ac_objext \
16999 conftest$ac_exeext
d0ac1c44 17000 if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17001 break
17002fi
17003done
d0ac1c44 17004if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
17005
17006else
17007 ac_cv_search_dlopen=no
17008fi
17009rm conftest.$ac_ext
17010LIBS=$ac_func_search_save_LIBS
17011fi
17012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17013$as_echo "$ac_cv_search_dlopen" >&6; }
17014ac_res=$ac_cv_search_dlopen
17015if test "$ac_res" != no; then :
17016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17017
3917d5d5
DK
17018fi
17019
5d3236ee 17020
81ecdfbb
RW
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17022$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 17023if ${ld_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 17024 $as_echo_n "(cached) " >&6
34875e64 17025else
81ecdfbb 17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17027/* end confdefs.h. */
34875e64 17028#include <unistd.h>
42ecbf5e
DJ
17029int
17030main ()
17031{
34875e64 17032extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
17033 ;
17034 return 0;
17035}
17036_ACEOF
81ecdfbb 17037if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
17038 ld_cv_decl_getopt_unistd_h=yes
17039else
81ecdfbb 17040 ld_cv_decl_getopt_unistd_h=no
34875e64 17041fi
81ecdfbb 17042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
17043fi
17044
81ecdfbb
RW
17045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17046$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 17047if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 17048
81ecdfbb 17049$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
17050
17051fi
42ecbf5e 17052
2cac01e3
FS
17053# Link in zlib/zstd if we can. This allows us to read and write
17054# compressed debug sections.
1ff6de03
NA
17055
17056 # Use the system's zlib library.
17057 zlibdir="-L\$(top_builddir)/../zlib"
17058 zlibinc="-I\$(top_srcdir)/../zlib"
17059
17060# Check whether --with-system-zlib was given.
17061if test "${with_system_zlib+set}" = set; then :
17062 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17063 zlibdir=
17064 zlibinc=
17065 fi
17066
17067fi
17068
17069
17070
17071
17072
2cac01e3
FS
17073
17074# Check whether --with-zstd was given.
17075if test "${with_zstd+set}" = set; then :
17076 withval=$with_zstd;
17077else
17078 with_zstd=auto
17079fi
17080
17081
17082if test "$with_zstd" != no; then :
17083
17084pkg_failed=no
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd" >&5
17086$as_echo_n "checking for libzstd... " >&6; }
17087
17088if test -n "$ZSTD_CFLAGS"; then
17089 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
17090 elif test -n "$PKG_CONFIG"; then
17091 if test -n "$PKG_CONFIG" && \
17092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
17093 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
17094 ac_status=$?
17095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17096 test $ac_status = 0; }; then
17097 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd" 2>/dev/null`
17098 test "x$?" != "x0" && pkg_failed=yes
17099else
17100 pkg_failed=yes
17101fi
17102 else
17103 pkg_failed=untried
17104fi
17105if test -n "$ZSTD_LIBS"; then
17106 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
17107 elif test -n "$PKG_CONFIG"; then
17108 if test -n "$PKG_CONFIG" && \
17109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd\""; } >&5
17110 ($PKG_CONFIG --exists --print-errors "libzstd") 2>&5
17111 ac_status=$?
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; then
17114 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd" 2>/dev/null`
17115 test "x$?" != "x0" && pkg_failed=yes
17116else
17117 pkg_failed=yes
17118fi
17119 else
17120 pkg_failed=untried
17121fi
17122
17123if test $pkg_failed = no; then
17124 pkg_save_LDFLAGS="$LDFLAGS"
17125 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17127/* end confdefs.h. */
17128
17129int
17130main ()
17131{
17132
17133 ;
17134 return 0;
17135}
17136_ACEOF
17137if ac_fn_c_try_link "$LINENO"; then :
17138
17139else
17140 pkg_failed=yes
17141fi
17142rm -f core conftest.err conftest.$ac_objext \
17143 conftest$ac_exeext conftest.$ac_ext
17144 LDFLAGS=$pkg_save_LDFLAGS
17145fi
17146
17147
17148
17149if test $pkg_failed = yes; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17151$as_echo "no" >&6; }
17152
17153if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17154 _pkg_short_errors_supported=yes
17155else
17156 _pkg_short_errors_supported=no
17157fi
17158 if test $_pkg_short_errors_supported = yes; then
17159 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd" 2>&1`
17160 else
17161 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd" 2>&1`
17162 fi
17163 # Put the nasty error message in config.log where it belongs
17164 echo "$ZSTD_PKG_ERRORS" >&5
17165
17166
17167 if test "$with_zstd" = yes; then
17168 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
17169 fi
17170
17171elif test $pkg_failed = untried; then
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17173$as_echo "no" >&6; }
17174
17175 if test "$with_zstd" = yes; then
17176 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
17177 fi
17178
17179else
17180 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
17181 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17183$as_echo "yes" >&6; }
17184
17185
17186$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
17187
17188
17189fi
17190
17191fi
17192
17193
597e2591
ILT
17194# When converting linker scripts into strings for use in emulation
17195# files, use astring.sed if the compiler supports ANSI string
17196# concatenation, or ostring.sed otherwise. This is to support the
17197# broken Microsoft MSVC compiler, which limits the length of string
17198# constants, while still supporting pre-ANSI compilers which do not
17199# support string concatenation.
81ecdfbb
RW
17200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17201$as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
d0ac1c44 17202if ${ld_cv_string_concatenation+:} false; then :
81ecdfbb 17203 $as_echo_n "(cached) " >&6
42ecbf5e 17204else
81ecdfbb 17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 17206/* end confdefs.h. */
81ecdfbb 17207
314e9a4e
L
17208int
17209main ()
17210{
81ecdfbb 17211char *a = "a" "a";
314e9a4e
L
17212 ;
17213 return 0;
17214}
17215_ACEOF
81ecdfbb
RW
17216if ac_fn_c_try_compile "$LINENO"; then :
17217 ld_cv_string_concatenation=yes
314e9a4e 17218else
81ecdfbb 17219 ld_cv_string_concatenation=no
314e9a4e 17220fi
81ecdfbb 17221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
314e9a4e 17222fi
81ecdfbb
RW
17223
17224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17225$as_echo "$ld_cv_string_concatenation" >&6; }
17226if test "$ld_cv_string_concatenation" = "yes"; then
17227 STRINGIFY=astring.sed
17228else
17229 STRINGIFY=ostring.sed
314e9a4e 17230fi
81ecdfbb
RW
17231
17232
17233# target-specific stuff:
17234
17235all_targets=
17236EMUL=
17237all_emuls=
17238all_emul_extras=
17239all_libpath=
50ff67e6 17240TDIRS=
81ecdfbb 17241
f38a2680
AM
17242elf_list_options=false
17243elf_shlib_list_options=false
17244elf_plt_unwind_list_options=false
81ecdfbb
RW
17245for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
17246do
17247 if test "$targ_alias" = "all"; then
17248 all_targets=true
f38a2680
AM
17249 elf_list_options=true
17250 elf_shlib_list_options=true
17251 elf_plt_unwind_list_options=true
81ecdfbb
RW
17252 else
17253 # Canonicalize the secondary target names.
17254 result=`$ac_config_sub $targ_alias 2>/dev/null`
17255 if test -n "$result"; then
17256 targ=$result
17257 else
17258 targ=$targ_alias
17259 fi
17260
17261 . ${srcdir}/configure.tgt
17262
17263 if test "$targ" = "$target"; then
17264 EMUL=$targ_emul
17265 fi
17266
1d5269c9 17267 if test x${enable_64_bit_bfd} = xno; then
81ecdfbb
RW
17268 . ${srcdir}/../bfd/config.bfd
17269 fi
17270
1d5269c9 17271 if test x${enable_64_bit_bfd} = xyes; then
81ecdfbb
RW
17272 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17273 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17274 fi
17275
17276 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17277 case " $all_emuls " in
8c3fff59
AM
17278 *" e${i}.o "*) ;;
17279 *)
17280 all_emuls="$all_emuls e${i}.o"
17281 eval result=\$tdir_$i
17282 test -z "$result" && result=$targ_alias
50ff67e6
AM
17283 TDIRS="$TDIRS
17284tdir_$i=$result"
c58212ea
L
17285 case "${i}" in
17286 *elf*)
f38a2680 17287 elf_list_options=true
68880f31
CLT
17288 ;;
17289 *)
075a2b89 17290 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
f38a2680 17291 elf_list_options=true
68880f31
CLT
17292 fi
17293 ;;
17294 esac
f38a2680 17295 if test "$elf_list_options" = "true"; then
c40e31a1
AM
17296 source_sh()
17297 {
17298 . $1
17299 }
17300 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea 17301 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
f38a2680 17302 elf_shlib_list_options=true
c58212ea
L
17303 fi
17304 if test x${PLT_UNWIND} = xyes; then
f38a2680 17305 elf_plt_unwind_list_options=true
c58212ea 17306 fi
68880f31 17307 fi
c58212ea 17308 ;;
81ecdfbb
RW
17309 esac
17310 done
17311
17312 for i in $targ_emul $targ_extra_libpath; do
17313 case " $all_libpath " in
17314 *" ${i} "*) ;;
17315 *)
17316 if test -z "$all_libpath"; then
17317 all_libpath=${i}
17318 else
17319 all_libpath="$all_libpath ${i}"
17320 fi
17321 ;;
17322 esac
17323 done
17324
17325 for i in $targ_extra_ofiles; do
17326 case " $all_emul_extras " in
17327 *" ${i} "*) ;;
17328 *)
17329 all_emul_extras="$all_emul_extras ${i}"
17330 ;;
17331 esac
17332 done
5063daf7 17333
81ecdfbb
RW
17334 fi
17335done
17336
621ff761 17337if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
17338
17339$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17340
17341fi
17342
6734f10a
SB
17343if test "${ac_default_new_dtags}" = unset; then
17344 ac_default_new_dtags=0
17345fi
17346
17347cat >>confdefs.h <<_ACEOF
17348#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17349_ACEOF
17350
17351
647e4d46
L
17352if test "${ac_default_ld_z_relro}" = unset; then
17353 ac_default_ld_z_relro=0
17354fi
17355
17356cat >>confdefs.h <<_ACEOF
17357#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17358_ACEOF
17359
17360
b32632c4
L
17361ac_default_ld_textrel_check_warning=0
17362case "${ac_default_ld_textrel_check}" in
17363 unset|no)
17364 ac_default_ld_textrel_check=textrel_check_none
17365 ;;
17366 yes|warning)
17367 ac_default_ld_textrel_check=textrel_check_warning
17368 ac_default_ld_textrel_check_warning=1
17369 ;;
17370 error)
17371 ac_default_ld_textrel_check=textrel_check_error
17372 ;;
17373esac
17374
17375cat >>confdefs.h <<_ACEOF
17376#define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17377_ACEOF
17378
17379
17380cat >>confdefs.h <<_ACEOF
17381#define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17382_ACEOF
17383
17384
f6aec96d
L
17385if test "${ac_default_ld_z_separate_code}" = unset; then
17386 ac_default_ld_z_separate_code=0
17387fi
17388
17389cat >>confdefs.h <<_ACEOF
17390#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17391_ACEOF
17392
17393
ba951afb 17394
ba951afb
NC
17395
17396cat >>confdefs.h <<_ACEOF
17397#define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
17398_ACEOF
17399
17400
17401if test "${ac_default_ld_warn_rwx_segments}" = unset; then
ed1c7ad8 17402 ac_default_ld_warn_rwx_segments=1
ba951afb
NC
17403fi
17404
17405cat >>confdefs.h <<_ACEOF
17406#define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
17407_ACEOF
17408
17409
17410if test "${ac_default_ld_default_execstack}" = unset; then
17411 ac_default_ld_default_execstack=1
17412fi
17413
17414cat >>confdefs.h <<_ACEOF
17415#define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
17416_ACEOF
17417
17418
17419
23ae20f5
NC
17420if test "${ac_support_error_handling_script}" = unset; then
17421 ac_support_error_handling_script=1
17422fi
17423
17424cat >>confdefs.h <<_ACEOF
17425#define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17426_ACEOF
17427
17428
81ecdfbb 17429
2760f24c
RG
17430cat >>confdefs.h <<_ACEOF
17431#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17432_ACEOF
17433
17434
17435
17436cat >>confdefs.h <<_ACEOF
17437#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17438_ACEOF
17439
17440
17441
81ecdfbb 17442
c58212ea
L
17443
17444
17445
50ff67e6 17446
81ecdfbb
RW
17447
17448
17449if test x${all_targets} = xtrue; then
1d5269c9 17450 if test x${enable_64_bit_bfd} = xyes; then
42ecbf5e 17451 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 17452 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
17453 else
17454 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 17455 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 17456 fi
42ecbf5e
DJ
17457else
17458 EMULATION_OFILES=$all_emuls
17459 EMUL_EXTRA_OFILES=$all_emul_extras
17460fi
17461
17462
17463
17464
17465EMULATION_LIBPATH=$all_libpath
17466
17467
17468if test x${enable_static} = xno; then
9165f454 17469 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 17470 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
42ecbf5e
DJ
17471else
17472 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 17473 TESTCTFLIB="../libctf/.libs/libctf.a"
42ecbf5e 17474fi
094e34f2
NA
17475if test "${enable_libctf}" = no; then
17476 TESTCTFLIB=
17477fi
42ecbf5e
DJ
17478
17479
87279e3c 17480
42ecbf5e
DJ
17481target_vendor=${target_vendor=$host_vendor}
17482case "$target_vendor" in
17483 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17484 *) EXTRA_SHLIB_EXTENSION= ;;
17485esac
17486
17487case "$target_os" in
17488 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17489esac
17490
17491if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17492
17493cat >>confdefs.h <<_ACEOF
17494#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17495_ACEOF
17496
17497fi
17498
33589acb
AM
17499ac_config_commands="$ac_config_commands default"
17500
17501
108a6f8e
CD
17502
17503
17504
17505
31dd3154 17506
81ecdfbb 17507ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 17508
42ecbf5e
DJ
17509cat >confcache <<\_ACEOF
17510# This file is a shell script that caches the results of configure
17511# tests run on this system so they can be shared between configure
17512# scripts and configure runs, see configure's option --config-cache.
17513# It is not useful on other systems. If it contains results you don't
17514# want to keep, you may remove or edit it.
17515#
17516# config.status only pays attention to the cache file if you give it
17517# the --recheck option to rerun configure.
17518#
17519# `ac_cv_env_foo' variables (set or unset) will be overridden when
17520# loading this file, other *unset* `ac_cv_foo' will be assigned the
17521# following values.
17522
17523_ACEOF
17524
17525# The following way of writing the cache mishandles newlines in values,
17526# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 17527# So, we kill variables containing newlines.
42ecbf5e
DJ
17528# Ultrix sh set writes to stderr and can't be redirected directly,
17529# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
17530(
17531 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17532 eval ac_val=\$$ac_var
17533 case $ac_val in #(
17534 *${as_nl}*)
17535 case $ac_var in #(
17536 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17537$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17538 esac
17539 case $ac_var in #(
17540 _ | IFS | as_nl) ;; #(
17541 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17542 *) { eval $ac_var=; unset $ac_var;} ;;
17543 esac ;;
17544 esac
17545 done
17546
42ecbf5e 17547 (set) 2>&1 |
81ecdfbb
RW
17548 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17549 *${as_nl}ac_space=\ *)
17550 # `set' does not quote correctly, so add quotes: double-quote
17551 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
17552 sed -n \
17553 "s/'/'\\\\''/g;
17554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 17555 ;; #(
42ecbf5e
DJ
17556 *)
17557 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 17558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 17559 ;;
81ecdfbb
RW
17560 esac |
17561 sort
17562) |
42ecbf5e 17563 sed '
81ecdfbb 17564 /^ac_cv_env_/b end
42ecbf5e 17565 t clear
81ecdfbb 17566 :clear
42ecbf5e
DJ
17567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17568 t end
81ecdfbb
RW
17569 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17570 :end' >>confcache
17571if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17572 if test -w "$cache_file"; then
d0ac1c44 17573 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17575$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
17576 if test ! -f "$cache_file" || test -h "$cache_file"; then
17577 cat confcache >"$cache_file"
17578 else
17579 case $cache_file in #(
17580 */* | ?:*)
17581 mv -f confcache "$cache_file"$$ &&
17582 mv -f "$cache_file"$$ "$cache_file" ;; #(
17583 *)
17584 mv -f confcache "$cache_file" ;;
17585 esac
17586 fi
17587 fi
42ecbf5e 17588 else
81ecdfbb
RW
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17590$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
17591 fi
17592fi
17593rm -f confcache
17594
17595test "x$prefix" = xNONE && prefix=$ac_default_prefix
17596# Let make expand exec_prefix.
17597test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17598
42ecbf5e
DJ
17599DEFS=-DHAVE_CONFIG_H
17600
17601ac_libobjs=
17602ac_ltlibobjs=
d0ac1c44 17603U=
42ecbf5e
DJ
17604for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17605 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
17606 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17607 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17608 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17609 # will be set to the directory where LIBOBJS objects are built.
17610 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17611 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
17612done
17613LIBOBJS=$ac_libobjs
17614
17615LTLIBOBJS=$ac_ltlibobjs
17616
17617
d0ac1c44
SM
17618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17619$as_echo_n "checking that generated files are newer than configure... " >&6; }
17620 if test -n "$am_sleep_pid"; then
17621 # Hide warnings about reused PIDs.
17622 wait $am_sleep_pid 2>/dev/null
17623 fi
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17625$as_echo "done" >&6; }
81ecdfbb
RW
17626 if test -n "$EXEEXT"; then
17627 am__EXEEXT_TRUE=
17628 am__EXEEXT_FALSE='#'
17629else
17630 am__EXEEXT_TRUE='#'
17631 am__EXEEXT_FALSE=
42ecbf5e 17632fi
81ecdfbb 17633
64ac50ac 17634if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17635 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
64ac50ac
RW
17636Usually this means the macro was only invoked conditionally." "$LINENO" 5
17637fi
c774eab1
AM
17638if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17639 as_fn_error $? "conditional \"AMDEP\" was never defined.
17640Usually this means the macro was only invoked conditionally." "$LINENO" 5
17641fi
17642if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17643 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17644Usually this means the macro was only invoked conditionally." "$LINENO" 5
17645fi
3cb62297 17646if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 17647 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
3cb62297
L
17648Usually this means the macro was only invoked conditionally." "$LINENO" 5
17649fi
1d5269c9
MF
17650if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17651 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
17652Usually this means the macro was only invoked conditionally." "$LINENO" 5
17653fi
094e34f2
NA
17654if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17655 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
17656Usually this means the macro was only invoked conditionally." "$LINENO" 5
17657fi
42ecbf5e 17658if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 17659 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 17660Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 17661fi
d5fbea21 17662if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 17663 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 17664Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 17665fi
42ecbf5e 17666
d0ac1c44 17667: "${CONFIG_STATUS=./config.status}"
81ecdfbb 17668ac_write_fail=0
42ecbf5e
DJ
17669ac_clean_files_save=$ac_clean_files
17670ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
17671{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17672$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17673as_write_fail=0
17674cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
17675#! $SHELL
17676# Generated by $as_me.
17677# Run this file to recreate the current configuration.
17678# Compiler output produced by configure, useful for debugging
17679# configure, is in config.log if it exists.
17680
17681debug=false
17682ac_cs_recheck=false
17683ac_cs_silent=false
42ecbf5e 17684
81ecdfbb
RW
17685SHELL=\${CONFIG_SHELL-$SHELL}
17686export SHELL
17687_ASEOF
17688cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17689## -------------------- ##
17690## M4sh Initialization. ##
17691## -------------------- ##
42ecbf5e 17692
81ecdfbb
RW
17693# Be more Bourne compatible
17694DUALCASE=1; export DUALCASE # for MKS sh
17695if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
17696 emulate sh
17697 NULLCMD=:
81ecdfbb 17698 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
17699 # is contrary to our usage. Disable this feature.
17700 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
17701 setopt NO_GLOB_SUBST
17702else
17703 case `(set -o) 2>/dev/null` in #(
17704 *posix*) :
17705 set -o posix ;; #(
17706 *) :
17707 ;;
17708esac
42ecbf5e 17709fi
42ecbf5e 17710
81ecdfbb
RW
17711
17712as_nl='
17713'
17714export as_nl
17715# Printing a long string crashes Solaris 7 /usr/bin/printf.
17716as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17717as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17718as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17719# Prefer a ksh shell builtin over an external printf program on Solaris,
17720# but without wasting forks for bash or zsh.
17721if test -z "$BASH_VERSION$ZSH_VERSION" \
17722 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17723 as_echo='print -r --'
17724 as_echo_n='print -rn --'
17725elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17726 as_echo='printf %s\n'
17727 as_echo_n='printf %s'
17728else
17729 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17730 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17731 as_echo_n='/usr/ucb/echo -n'
17732 else
17733 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17734 as_echo_n_body='eval
17735 arg=$1;
17736 case $arg in #(
17737 *"$as_nl"*)
17738 expr "X$arg" : "X\\(.*\\)$as_nl";
17739 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17740 esac;
17741 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17742 '
17743 export as_echo_n_body
17744 as_echo_n='sh -c $as_echo_n_body as_echo'
17745 fi
17746 export as_echo_body
17747 as_echo='sh -c $as_echo_body as_echo'
17748fi
17749
17750# The user is always right.
17751if test "${PATH_SEPARATOR+set}" != set; then
17752 PATH_SEPARATOR=:
17753 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17754 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17755 PATH_SEPARATOR=';'
17756 }
42ecbf5e
DJ
17757fi
17758
17759
81ecdfbb
RW
17760# IFS
17761# We need space, tab and new line, in precisely that order. Quoting is
17762# there to prevent editors from complaining about space-tab.
17763# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17764# splitting by setting IFS to empty value.)
17765IFS=" "" $as_nl"
17766
17767# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 17768as_myself=
81ecdfbb
RW
17769case $0 in #((
17770 *[\\/]* ) as_myself=$0 ;;
17771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772for as_dir in $PATH
17773do
17774 IFS=$as_save_IFS
17775 test -z "$as_dir" && as_dir=.
17776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17777 done
17778IFS=$as_save_IFS
17779
17780 ;;
17781esac
17782# We did not find ourselves, most probably we were run as `sh COMMAND'
17783# in which case we are not to be found in the path.
17784if test "x$as_myself" = x; then
17785 as_myself=$0
17786fi
17787if test ! -f "$as_myself"; then
17788 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17789 exit 1
17790fi
17791
17792# Unset variables that we do not need and which cause bugs (e.g. in
17793# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17794# suppresses any "Segmentation fault" message there. '((' could
17795# trigger a bug in pdksh 5.2.14.
17796for as_var in BASH_ENV ENV MAIL MAILPATH
17797do eval test x\${$as_var+set} = xset \
17798 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17799done
42ecbf5e
DJ
17800PS1='$ '
17801PS2='> '
17802PS4='+ '
17803
17804# NLS nuisances.
81ecdfbb
RW
17805LC_ALL=C
17806export LC_ALL
17807LANGUAGE=C
17808export LANGUAGE
17809
17810# CDPATH.
17811(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17812
17813
d0ac1c44
SM
17814# as_fn_error STATUS ERROR [LINENO LOG_FD]
17815# ----------------------------------------
81ecdfbb
RW
17816# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17817# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 17818# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
17819as_fn_error ()
17820{
d0ac1c44
SM
17821 as_status=$1; test $as_status -eq 0 && as_status=1
17822 if test "$4"; then
17823 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17824 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 17825 fi
d0ac1c44 17826 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
17827 as_fn_exit $as_status
17828} # as_fn_error
17829
17830
17831# as_fn_set_status STATUS
17832# -----------------------
17833# Set $? to STATUS, without forking.
17834as_fn_set_status ()
17835{
17836 return $1
17837} # as_fn_set_status
17838
17839# as_fn_exit STATUS
17840# -----------------
17841# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17842as_fn_exit ()
17843{
17844 set +e
17845 as_fn_set_status $1
17846 exit $1
17847} # as_fn_exit
17848
17849# as_fn_unset VAR
17850# ---------------
17851# Portably unset VAR.
17852as_fn_unset ()
17853{
17854 { eval $1=; unset $1;}
17855}
17856as_unset=as_fn_unset
17857# as_fn_append VAR VALUE
17858# ----------------------
17859# Append the text in VALUE to the end of the definition contained in VAR. Take
17860# advantage of any shell optimizations that allow amortized linear growth over
17861# repeated appends, instead of the typical quadratic growth present in naive
17862# implementations.
17863if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17864 eval 'as_fn_append ()
17865 {
17866 eval $1+=\$2
17867 }'
17868else
17869 as_fn_append ()
17870 {
17871 eval $1=\$$1\$2
17872 }
17873fi # as_fn_append
17874
17875# as_fn_arith ARG...
17876# ------------------
17877# Perform arithmetic evaluation on the ARGs, and store the result in the
17878# global $as_val. Take advantage of shells that can avoid forks. The arguments
17879# must be portable across $(()) and expr.
17880if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17881 eval 'as_fn_arith ()
17882 {
17883 as_val=$(( $* ))
17884 }'
17885else
17886 as_fn_arith ()
17887 {
17888 as_val=`expr "$@" || test $? -eq 1`
17889 }
17890fi # as_fn_arith
17891
42ecbf5e 17892
81ecdfbb
RW
17893if expr a : '\(a\)' >/dev/null 2>&1 &&
17894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
17895 as_expr=expr
17896else
17897 as_expr=false
17898fi
17899
81ecdfbb 17900if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
17901 as_basename=basename
17902else
17903 as_basename=false
17904fi
17905
81ecdfbb
RW
17906if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17907 as_dirname=dirname
17908else
17909 as_dirname=false
17910fi
42ecbf5e 17911
81ecdfbb 17912as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
17913$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17914 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
17915 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17916$as_echo X/"$0" |
17917 sed '/^.*\/\([^/][^/]*\)\/*$/{
17918 s//\1/
17919 q
17920 }
17921 /^X\/\(\/\/\)$/{
17922 s//\1/
17923 q
17924 }
17925 /^X\/\(\/\).*/{
17926 s//\1/
17927 q
17928 }
17929 s/.*/./; q'`
42ecbf5e 17930
42ecbf5e
DJ
17931# Avoid depending upon Character Ranges.
17932as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17933as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17934as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17935as_cr_digits='0123456789'
17936as_cr_alnum=$as_cr_Letters$as_cr_digits
17937
81ecdfbb
RW
17938ECHO_C= ECHO_N= ECHO_T=
17939case `echo -n x` in #(((((
17940-n*)
17941 case `echo 'xy\c'` in
17942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17943 xy) ECHO_C='\c';;
17944 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17945 ECHO_T=' ';;
17946 esac;;
17947*)
17948 ECHO_N='-n';;
42ecbf5e 17949esac
252b5132 17950
81ecdfbb
RW
17951rm -f conf$$ conf$$.exe conf$$.file
17952if test -d conf$$.dir; then
17953 rm -f conf$$.dir/conf$$.file
42ecbf5e 17954else
81ecdfbb
RW
17955 rm -f conf$$.dir
17956 mkdir conf$$.dir 2>/dev/null
42ecbf5e 17957fi
81ecdfbb
RW
17958if (echo >conf$$.file) 2>/dev/null; then
17959 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 17960 as_ln_s='ln -s'
81ecdfbb
RW
17961 # ... but there are two gotchas:
17962 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17963 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 17964 # In both cases, we have to default to `cp -pR'.
81ecdfbb 17965 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 17966 as_ln_s='cp -pR'
81ecdfbb
RW
17967 elif ln conf$$.file conf$$ 2>/dev/null; then
17968 as_ln_s=ln
17969 else
d0ac1c44 17970 as_ln_s='cp -pR'
252b5132 17971 fi
e5a52504 17972else
d0ac1c44 17973 as_ln_s='cp -pR'
e5a52504 17974fi
81ecdfbb
RW
17975rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17976rmdir conf$$.dir 2>/dev/null
17977
17978
17979# as_fn_mkdir_p
17980# -------------
17981# Create "$as_dir" as a directory, including parents if necessary.
17982as_fn_mkdir_p ()
17983{
17984
17985 case $as_dir in #(
17986 -*) as_dir=./$as_dir;;
17987 esac
17988 test -d "$as_dir" || eval $as_mkdir_p || {
17989 as_dirs=
17990 while :; do
17991 case $as_dir in #(
17992 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17993 *) as_qdir=$as_dir;;
17994 esac
17995 as_dirs="'$as_qdir' $as_dirs"
17996 as_dir=`$as_dirname -- "$as_dir" ||
17997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17998 X"$as_dir" : 'X\(//\)[^/]' \| \
17999 X"$as_dir" : 'X\(//\)$' \| \
18000 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18001$as_echo X"$as_dir" |
18002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18003 s//\1/
18004 q
18005 }
18006 /^X\(\/\/\)[^/].*/{
18007 s//\1/
18008 q
18009 }
18010 /^X\(\/\/\)$/{
18011 s//\1/
18012 q
18013 }
18014 /^X\(\/\).*/{
18015 s//\1/
18016 q
18017 }
18018 s/.*/./; q'`
18019 test -d "$as_dir" && break
18020 done
18021 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 18022 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 18023
252b5132 18024
81ecdfbb 18025} # as_fn_mkdir_p
42ecbf5e 18026if mkdir -p . 2>/dev/null; then
81ecdfbb 18027 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
18028else
18029 test -d ./-p && rmdir ./-p
18030 as_mkdir_p=false
18031fi
252b5132 18032
d0ac1c44
SM
18033
18034# as_fn_executable_p FILE
18035# -----------------------
18036# Test if FILE is an executable regular file.
18037as_fn_executable_p ()
18038{
18039 test -f "$1" && test -x "$1"
18040} # as_fn_executable_p
18041as_test_x='test -x'
18042as_executable_p=as_fn_executable_p
252b5132 18043
42ecbf5e
DJ
18044# Sed expression to map a string onto a valid CPP name.
18045as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 18046
42ecbf5e
DJ
18047# Sed expression to map a string onto a valid variable name.
18048as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 18049
e5a52504 18050
42ecbf5e 18051exec 6>&1
81ecdfbb
RW
18052## ----------------------------------- ##
18053## Main body of $CONFIG_STATUS script. ##
18054## ----------------------------------- ##
18055_ASEOF
18056test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 18057
81ecdfbb
RW
18058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 18060# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
18061# values after options handling.
18062ac_log="
631ec08c 18063This file was extended by ld $as_me 2.39.50, which was
d0ac1c44 18064generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
18065
18066 CONFIG_FILES = $CONFIG_FILES
18067 CONFIG_HEADERS = $CONFIG_HEADERS
18068 CONFIG_LINKS = $CONFIG_LINKS
18069 CONFIG_COMMANDS = $CONFIG_COMMANDS
18070 $ $0 $@
e5a52504 18071
81ecdfbb
RW
18072on `(hostname || uname -n) 2>/dev/null | sed 1q`
18073"
18074
42ecbf5e
DJ
18075_ACEOF
18076
81ecdfbb
RW
18077case $ac_config_files in *"
18078"*) set x $ac_config_files; shift; ac_config_files=$*;;
18079esac
e5a52504 18080
81ecdfbb
RW
18081case $ac_config_headers in *"
18082"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18083esac
42ecbf5e 18084
42ecbf5e 18085
81ecdfbb
RW
18086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18087# Files that config.status was made for.
18088config_files="$ac_config_files"
18089config_headers="$ac_config_headers"
18090config_commands="$ac_config_commands"
42ecbf5e 18091
81ecdfbb 18092_ACEOF
42ecbf5e 18093
81ecdfbb 18094cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18095ac_cs_usage="\
81ecdfbb
RW
18096\`$as_me' instantiates files and other configuration actions
18097from templates according to the current configuration. Unless the files
18098and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 18099
81ecdfbb 18100Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
18101
18102 -h, --help print this help, then exit
81ecdfbb 18103 -V, --version print version number and configuration settings, then exit
d0ac1c44 18104 --config print configuration, then exit
81ecdfbb
RW
18105 -q, --quiet, --silent
18106 do not print progress messages
42ecbf5e
DJ
18107 -d, --debug don't remove temporary files
18108 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
18109 --file=FILE[:TEMPLATE]
18110 instantiate the configuration file FILE
18111 --header=FILE[:TEMPLATE]
18112 instantiate the configuration header FILE
42ecbf5e
DJ
18113
18114Configuration files:
18115$config_files
18116
18117Configuration headers:
18118$config_headers
18119
18120Configuration commands:
18121$config_commands
18122
81ecdfbb 18123Report bugs to the package provider."
42ecbf5e 18124
81ecdfbb
RW
18125_ACEOF
18126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18127ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 18128ac_cs_version="\\
631ec08c 18129ld config.status 2.39.50
d0ac1c44
SM
18130configured by $0, generated by GNU Autoconf 2.69,
18131 with options \\"\$ac_cs_config\\"
42ecbf5e 18132
d0ac1c44 18133Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
18134This config.status script is free software; the Free Software Foundation
18135gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
18136
18137ac_pwd='$ac_pwd'
18138srcdir='$srcdir'
18139INSTALL='$INSTALL'
18140MKDIR_P='$MKDIR_P'
18141AWK='$AWK'
18142test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
18143_ACEOF
18144
81ecdfbb
RW
18145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18146# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
18147ac_need_defaults=:
18148while test $# != 0
18149do
18150 case $1 in
d0ac1c44 18151 --*=?*)
81ecdfbb
RW
18152 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18153 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 18154 ac_shift=:
252b5132 18155 ;;
d0ac1c44
SM
18156 --*=)
18157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18158 ac_optarg=
18159 ac_shift=:
18160 ;;
81ecdfbb 18161 *)
42ecbf5e
DJ
18162 ac_option=$1
18163 ac_optarg=$2
18164 ac_shift=shift
252b5132 18165 ;;
42ecbf5e 18166 esac
252b5132 18167
42ecbf5e
DJ
18168 case $ac_option in
18169 # Handling of the options.
42ecbf5e
DJ
18170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18171 ac_cs_recheck=: ;;
81ecdfbb
RW
18172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18173 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
18174 --config | --confi | --conf | --con | --co | --c )
18175 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 18176 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
18177 debug=: ;;
18178 --file | --fil | --fi | --f )
18179 $ac_shift
81ecdfbb
RW
18180 case $ac_optarg in
18181 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 18182 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
18183 esac
18184 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
18185 ac_need_defaults=false;;
18186 --header | --heade | --head | --hea )
18187 $ac_shift
81ecdfbb
RW
18188 case $ac_optarg in
18189 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18190 esac
18191 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 18192 ac_need_defaults=false;;
81ecdfbb
RW
18193 --he | --h)
18194 # Conflict between --help and --header
d0ac1c44 18195 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
18196Try \`$0 --help' for more information.";;
18197 --help | --hel | -h )
18198 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
18199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18200 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18201 ac_cs_silent=: ;;
252b5132 18202
42ecbf5e 18203 # This is an error.
d0ac1c44 18204 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 18205Try \`$0 --help' for more information." ;;
252b5132 18206
81ecdfbb
RW
18207 *) as_fn_append ac_config_targets " $1"
18208 ac_need_defaults=false ;;
252b5132 18209
42ecbf5e
DJ
18210 esac
18211 shift
18212done
d15b04bd 18213
42ecbf5e 18214ac_configure_extra_args=
e5a52504 18215
42ecbf5e
DJ
18216if $ac_cs_silent; then
18217 exec 6>/dev/null
18218 ac_configure_extra_args="$ac_configure_extra_args --silent"
18219fi
e5a52504 18220
42ecbf5e 18221_ACEOF
81ecdfbb 18222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 18223if \$ac_cs_recheck; then
d0ac1c44 18224 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
18225 shift
18226 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18227 CONFIG_SHELL='$SHELL'
18228 export CONFIG_SHELL
18229 exec "\$@"
42ecbf5e
DJ
18230fi
18231
18232_ACEOF
81ecdfbb
RW
18233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18234exec 5>>config.log
18235{
18236 echo
18237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18238## Running $as_me. ##
18239_ASBOX
18240 $as_echo "$ac_log"
18241} >&5
42ecbf5e 18242
81ecdfbb
RW
18243_ACEOF
18244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 18245#
81ecdfbb 18246# INIT-COMMANDS
252b5132 18247#
5bbe6ec5 18248AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
18249
18250
18251# The HP-UX ksh and POSIX shell print the target directory to stdout
18252# if CDPATH is set.
18253(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18254
18255sed_quote_subst='$sed_quote_subst'
18256double_quote_subst='$double_quote_subst'
18257delay_variable_subst='$delay_variable_subst'
3725885a
RW
18258macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18259macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18260enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18261enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18262pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18263enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18264SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18265ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18266host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18267host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18268host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18269build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18270build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18271build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18272SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18273Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18274GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18275EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18276FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18277LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18278NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18279LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18280max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18281ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18282exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18283lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18284lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18285lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18286reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18287reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18288OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18289deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18290file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18291AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18292AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18293STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18294RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18295old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18296old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18297old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18298lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18299CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18300CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18301compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18302GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18303lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18304lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18305lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18306lt_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"`'
18307objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18308MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18309lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18310lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18311lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18312lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18313lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18314need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18315DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18316NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18317LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18318OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18319OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18320libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18321shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18322extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18323archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18324enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18325export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18326whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18327compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18328old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18329old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18330archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18331archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18332module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18333module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18334with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18335allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18336no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18337hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18338hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18339hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18340hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18341hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18342hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18343hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18344hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18345inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18346link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18347fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18348always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18349export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18350exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18351include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18352prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18353file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18354variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18355need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18356need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18357version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18358runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18359shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18360shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18361libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18362library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18363soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18364install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18365postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18366postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18367finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18368finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18369hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18370sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18371sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18372hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18373enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18374enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18375enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18376old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18377striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
18378compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18379predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18380postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18381predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18382postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18383compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18384LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18385reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18386reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18387old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18388compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18389GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18390lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18391lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18392lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18393lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18394lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18395archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18396enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18397export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18398whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18399compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18400old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18401old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18402archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18403archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18404module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18405module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18406with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18407allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18408no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18409hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18410hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18411hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18412hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18413hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18414hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18415hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18416hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18417inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18418link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18419fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18420always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18421export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18422exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18423include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18424prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18425file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18426hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18427compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18428predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18429postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18430predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18431postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18432compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
18433
18434LTCC='$LTCC'
18435LTCFLAGS='$LTCFLAGS'
18436compiler='$compiler_DEFAULT'
18437
3725885a
RW
18438# A function that is used when there is no print builtin or printf.
18439func_fallback_echo ()
18440{
18441 eval 'cat <<_LTECHO_EOF
18442\$1
18443_LTECHO_EOF'
18444}
18445
d7040cdb 18446# Quote evaled strings.
3725885a
RW
18447for var in SHELL \
18448ECHO \
18449SED \
d7040cdb
SE
18450GREP \
18451EGREP \
18452FGREP \
18453LD \
18454NM \
18455LN_S \
18456lt_SP2NL \
18457lt_NL2SP \
18458reload_flag \
b214d478 18459OBJDUMP \
d7040cdb
SE
18460deplibs_check_method \
18461file_magic_cmd \
18462AR \
18463AR_FLAGS \
18464STRIP \
18465RANLIB \
18466CC \
18467CFLAGS \
18468compiler \
18469lt_cv_sys_global_symbol_pipe \
18470lt_cv_sys_global_symbol_to_cdecl \
18471lt_cv_sys_global_symbol_to_c_name_address \
b214d478 18472lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
18473lt_prog_compiler_no_builtin_flag \
18474lt_prog_compiler_wl \
18475lt_prog_compiler_pic \
18476lt_prog_compiler_static \
18477lt_cv_prog_compiler_c_o \
18478need_locks \
b214d478
SE
18479DSYMUTIL \
18480NMEDIT \
18481LIPO \
18482OTOOL \
18483OTOOL64 \
d7040cdb
SE
18484shrext_cmds \
18485export_dynamic_flag_spec \
18486whole_archive_flag_spec \
18487compiler_needs_object \
18488with_gnu_ld \
18489allow_undefined_flag \
18490no_undefined_flag \
18491hardcode_libdir_flag_spec \
18492hardcode_libdir_flag_spec_ld \
18493hardcode_libdir_separator \
18494fix_srcfile_path \
18495exclude_expsyms \
18496include_expsyms \
18497file_list_spec \
18498variables_saved_for_relink \
18499libname_spec \
18500library_names_spec \
18501soname_spec \
3725885a 18502install_override_mode \
d7040cdb
SE
18503finish_eval \
18504old_striplib \
3cb62297
L
18505striplib \
18506compiler_lib_search_dirs \
18507predep_objects \
18508postdep_objects \
18509predeps \
18510postdeps \
18511compiler_lib_search_path \
18512LD_CXX \
18513reload_flag_CXX \
18514compiler_CXX \
18515lt_prog_compiler_no_builtin_flag_CXX \
18516lt_prog_compiler_wl_CXX \
18517lt_prog_compiler_pic_CXX \
18518lt_prog_compiler_static_CXX \
18519lt_cv_prog_compiler_c_o_CXX \
18520export_dynamic_flag_spec_CXX \
18521whole_archive_flag_spec_CXX \
18522compiler_needs_object_CXX \
18523with_gnu_ld_CXX \
18524allow_undefined_flag_CXX \
18525no_undefined_flag_CXX \
18526hardcode_libdir_flag_spec_CXX \
18527hardcode_libdir_flag_spec_ld_CXX \
18528hardcode_libdir_separator_CXX \
18529fix_srcfile_path_CXX \
18530exclude_expsyms_CXX \
18531include_expsyms_CXX \
18532file_list_spec_CXX \
18533compiler_lib_search_dirs_CXX \
18534predep_objects_CXX \
18535postdep_objects_CXX \
18536predeps_CXX \
18537postdeps_CXX \
18538compiler_lib_search_path_CXX; do
3725885a 18539 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18540 *[\\\\\\\`\\"\\\$]*)
3725885a 18541 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
18542 ;;
18543 *)
18544 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18545 ;;
18546 esac
18547done
18548
18549# Double-quote double-evaled strings.
18550for var in reload_cmds \
18551old_postinstall_cmds \
18552old_postuninstall_cmds \
18553old_archive_cmds \
18554extract_expsyms_cmds \
18555old_archive_from_new_cmds \
18556old_archive_from_expsyms_cmds \
18557archive_cmds \
18558archive_expsym_cmds \
18559module_cmds \
18560module_expsym_cmds \
18561export_symbols_cmds \
18562prelink_cmds \
18563postinstall_cmds \
18564postuninstall_cmds \
18565finish_cmds \
18566sys_lib_search_path_spec \
3cb62297
L
18567sys_lib_dlsearch_path_spec \
18568reload_cmds_CXX \
18569old_archive_cmds_CXX \
18570old_archive_from_new_cmds_CXX \
18571old_archive_from_expsyms_cmds_CXX \
18572archive_cmds_CXX \
18573archive_expsym_cmds_CXX \
18574module_cmds_CXX \
18575module_expsym_cmds_CXX \
18576export_symbols_cmds_CXX \
18577prelink_cmds_CXX; do
3725885a 18578 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 18579 *[\\\\\\\`\\"\\\$]*)
3725885a 18580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
18581 ;;
18582 *)
18583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18584 ;;
18585 esac
18586done
18587
d7040cdb
SE
18588ac_aux_dir='$ac_aux_dir'
18589xsi_shell='$xsi_shell'
18590lt_shell_append='$lt_shell_append'
18591
18592# See if we are running on zsh, and set the options which allow our
18593# commands through without removal of \ escapes INIT.
18594if test -n "\${ZSH_VERSION+set}" ; then
18595 setopt NO_GLOB_SUBST
18596fi
18597
18598
18599 PACKAGE='$PACKAGE'
18600 VERSION='$VERSION'
18601 TIMESTAMP='$TIMESTAMP'
18602 RM='$RM'
18603 ofile='$ofile'
18604
18605
18606
3cb62297
L
18607
18608
20e95c23
DJ
18609# Capture the value of obsolete ALL_LINGUAS because we need it to compute
18610 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18611 # from automake.
18612 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18613 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18614 LINGUAS="${LINGUAS-%UNSET%}"
18615
42ecbf5e 18616
33589acb 18617
42ecbf5e
DJ
18618_ACEOF
18619
81ecdfbb 18620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 18621
81ecdfbb 18622# Handling of arguments.
42ecbf5e 18623for ac_config_target in $ac_config_targets
252b5132 18624do
81ecdfbb
RW
18625 case $ac_config_target in
18626 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 18627 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 18628 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 18629 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33589acb 18630 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
18631 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18632 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18633
d0ac1c44 18634 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
18635 esac
18636done
18637
81ecdfbb 18638
42ecbf5e
DJ
18639# If the user did not use the arguments to specify the items to instantiate,
18640# then the envvar interface is used. Set only those that are not.
18641# We use the long form for the default assignment because of an extremely
18642# bizarre bug on SunOS 4.1.3.
18643if $ac_need_defaults; then
18644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18647fi
18648
18649# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 18650# simply because there is no reason against having it here, and in addition,
42ecbf5e 18651# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
18652# Hook for its removal unless debugging.
18653# Note that there is a small window in which the directory will not be cleaned:
18654# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
18655$debug ||
18656{
d0ac1c44 18657 tmp= ac_tmp=
81ecdfbb 18658 trap 'exit_status=$?
d0ac1c44
SM
18659 : "${ac_tmp:=$tmp}"
18660 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
18661' 0
18662 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 18663}
42ecbf5e 18664# Create a (secure) tmp directory for tmp files.
e5a52504 18665
42ecbf5e 18666{
81ecdfbb 18667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 18668 test -d "$tmp"
42ecbf5e
DJ
18669} ||
18670{
81ecdfbb
RW
18671 tmp=./conf$$-$RANDOM
18672 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
18673} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18674ac_tmp=$tmp
81ecdfbb
RW
18675
18676# Set up the scripts for CONFIG_FILES section.
18677# No need to generate them if there are no CONFIG_FILES.
18678# This happens for instance with `./config.status config.h'.
18679if test -n "$CONFIG_FILES"; then
18680
50ff67e6 18681
81ecdfbb
RW
18682ac_cr=`echo X | tr X '\015'`
18683# On cygwin, bash can eat \r inside `` if the user requested igncr.
18684# But we know of no other shell where ac_cr would be empty at this
18685# point, so we can use a bashism as a fallback.
18686if test "x$ac_cr" = x; then
18687 eval ac_cr=\$\'\\r\'
18688fi
18689ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18690if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 18691 ac_cs_awk_cr='\\r'
81ecdfbb
RW
18692else
18693 ac_cs_awk_cr=$ac_cr
18694fi
18695
d0ac1c44 18696echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
18697_ACEOF
18698
e5a52504 18699
81ecdfbb
RW
18700{
18701 echo "cat >conf$$subs.awk <<_ACEOF" &&
18702 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18703 echo "_ACEOF"
18704} >conf$$subs.sh ||
d0ac1c44
SM
18705 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18706ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
18707ac_delim='%!_!# '
18708for ac_last_try in false false false false false :; do
18709 . ./conf$$subs.sh ||
d0ac1c44 18710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18711
18712 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18713 if test $ac_delim_n = $ac_delim_num; then
18714 break
18715 elif $ac_last_try; then
d0ac1c44 18716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
18717 else
18718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18719 fi
18720done
18721rm -f conf$$subs.sh
18722
18723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 18724cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
18725_ACEOF
18726sed -n '
18727h
18728s/^/S["/; s/!.*/"]=/
18729p
18730g
18731s/^[^!]*!//
18732:repl
18733t repl
18734s/'"$ac_delim"'$//
18735t delim
18736:nl
18737h
d0ac1c44 18738s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18739t more1
18740s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18741p
18742n
18743b repl
18744:more1
18745s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18746p
18747g
18748s/.\{148\}//
18749t nl
18750:delim
18751h
d0ac1c44 18752s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
18753t more2
18754s/["\\]/\\&/g; s/^/"/; s/$/"/
18755p
18756b
18757:more2
18758s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18759p
18760g
18761s/.\{148\}//
18762t delim
18763' <conf$$subs.awk | sed '
18764/^[^""]/{
18765 N
18766 s/\n//
18767}
18768' >>$CONFIG_STATUS || ac_write_fail=1
18769rm -f conf$$subs.awk
18770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18771_ACAWK
d0ac1c44 18772cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
18773 for (key in S) S_is_set[key] = 1
18774 FS = "\a"
50ff67e6 18775
81ecdfbb
RW
18776}
18777{
18778 line = $ 0
18779 nfields = split(line, field, "@")
18780 substed = 0
18781 len = length(field[1])
18782 for (i = 2; i < nfields; i++) {
18783 key = field[i]
18784 keylen = length(key)
18785 if (S_is_set[key]) {
18786 value = S[key]
18787 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18788 len += length(value) + length(field[++i])
18789 substed = 1
18790 } else
18791 len += 1 + keylen
18792 }
50ff67e6 18793
81ecdfbb
RW
18794 print line
18795}
50ff67e6 18796
81ecdfbb
RW
18797_ACAWK
18798_ACEOF
18799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18800if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18801 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18802else
18803 cat
d0ac1c44
SM
18804fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18805 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e 18806_ACEOF
d15b04bd 18807
d0ac1c44
SM
18808# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18809# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
18810# trailing colons and then remove the whole line if VPATH becomes empty
18811# (actually we leave an empty line to preserve line numbers).
18812if test "x$srcdir" = x.; then
d0ac1c44
SM
18813 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18814h
18815s///
18816s/^/:/
18817s/[ ]*$/:/
18818s/:\$(srcdir):/:/g
18819s/:\${srcdir}:/:/g
18820s/:@srcdir@:/:/g
18821s/^:*//
81ecdfbb 18822s/:*$//
d0ac1c44
SM
18823x
18824s/\(=[ ]*\).*/\1/
18825G
18826s/\n//
81ecdfbb
RW
18827s/^[^=]*=[ ]*$//
18828}'
18829fi
18830
18831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18832fi # test -n "$CONFIG_FILES"
42ecbf5e 18833
81ecdfbb
RW
18834# Set up the scripts for CONFIG_HEADERS section.
18835# No need to generate them if there are no CONFIG_HEADERS.
18836# This happens for instance with `./config.status Makefile'.
18837if test -n "$CONFIG_HEADERS"; then
d0ac1c44 18838cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
18839BEGIN {
18840_ACEOF
42ecbf5e 18841
81ecdfbb
RW
18842# Transform confdefs.h into an awk script `defines.awk', embedded as
18843# here-document in config.status, that substitutes the proper values into
18844# config.h.in to produce config.h.
252b5132 18845
81ecdfbb
RW
18846# Create a delimiter string that does not exist in confdefs.h, to ease
18847# handling of long lines.
18848ac_delim='%!_!# '
18849for ac_last_try in false false :; do
d0ac1c44
SM
18850 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18851 if test -z "$ac_tt"; then
81ecdfbb
RW
18852 break
18853 elif $ac_last_try; then
d0ac1c44 18854 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
18855 else
18856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18857 fi
18858done
18859
18860# For the awk script, D is an array of macro values keyed by name,
18861# likewise P contains macro parameters if any. Preserve backslash
18862# newline sequences.
18863
18864ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18865sed -n '
18866s/.\{148\}/&'"$ac_delim"'/g
18867t rset
18868:rset
18869s/^[ ]*#[ ]*define[ ][ ]*/ /
18870t def
18871d
18872:def
18873s/\\$//
18874t bsnl
18875s/["\\]/\\&/g
18876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18877D["\1"]=" \3"/p
18878s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18879d
18880:bsnl
18881s/["\\]/\\&/g
18882s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18883D["\1"]=" \3\\\\\\n"\\/p
18884t cont
18885s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18886t cont
18887d
18888:cont
18889n
18890s/.\{148\}/&'"$ac_delim"'/g
18891t clear
18892:clear
18893s/\\$//
18894t bsnlc
18895s/["\\]/\\&/g; s/^/"/; s/$/"/p
18896d
18897:bsnlc
18898s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18899b cont
18900' <confdefs.h | sed '
18901s/'"$ac_delim"'/"\\\
18902"/g' >>$CONFIG_STATUS || ac_write_fail=1
18903
18904cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18905 for (key in D) D_is_set[key] = 1
18906 FS = "\a"
18907}
18908/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18909 line = \$ 0
18910 split(line, arg, " ")
18911 if (arg[1] == "#") {
18912 defundef = arg[2]
18913 mac1 = arg[3]
18914 } else {
18915 defundef = substr(arg[1], 2)
18916 mac1 = arg[2]
18917 }
18918 split(mac1, mac2, "(") #)
18919 macro = mac2[1]
18920 prefix = substr(line, 1, index(line, defundef) - 1)
18921 if (D_is_set[macro]) {
18922 # Preserve the white space surrounding the "#".
18923 print prefix "define", macro P[macro] D[macro]
18924 next
18925 } else {
18926 # Replace #undef with comments. This is necessary, for example,
18927 # in the case of _POSIX_SOURCE, which is predefined and required
18928 # on some systems where configure will not decide to define it.
18929 if (defundef == "undef") {
18930 print "/*", prefix defundef, macro, "*/"
18931 next
18932 }
18933 }
18934}
18935{ print }
18936_ACAWK
42ecbf5e 18937_ACEOF
81ecdfbb 18938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 18939 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 18940fi # test -n "$CONFIG_HEADERS"
42ecbf5e 18941
81ecdfbb
RW
18942
18943eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18944shift
18945for ac_tag
18946do
18947 case $ac_tag in
18948 :[FHLC]) ac_mode=$ac_tag; continue;;
18949 esac
18950 case $ac_mode$ac_tag in
18951 :[FHL]*:*);;
d0ac1c44 18952 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
18953 :[FH]-) ac_tag=-:-;;
18954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18955 esac
18956 ac_save_IFS=$IFS
18957 IFS=:
18958 set x $ac_tag
18959 IFS=$ac_save_IFS
18960 shift
18961 ac_file=$1
18962 shift
18963
18964 case $ac_mode in
18965 :L) ac_source=$1;;
18966 :[FH])
18967 ac_file_inputs=
18968 for ac_f
18969 do
18970 case $ac_f in
d0ac1c44 18971 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
18972 *) # Look for the file first in the build tree, then in the source tree
18973 # (if the path is not absolute). The absolute path cannot be DOS-style,
18974 # because $ac_f cannot contain `:'.
18975 test -f "$ac_f" ||
18976 case $ac_f in
18977 [\\/$]*) false;;
18978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18979 esac ||
d0ac1c44 18980 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
18981 esac
18982 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18983 as_fn_append ac_file_inputs " '$ac_f'"
18984 done
18985
18986 # Let's still pretend it is `configure' which instantiates (i.e., don't
18987 # use $as_me), people would be surprised to read:
18988 # /* config.h. Generated by config.status. */
18989 configure_input='Generated from '`
18990 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18991 `' by configure.'
18992 if test x"$ac_file" != x-; then
18993 configure_input="$ac_file. $configure_input"
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18995$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 18996 fi
81ecdfbb
RW
18997 # Neutralize special characters interpreted by sed in replacement strings.
18998 case $configure_input in #(
18999 *\&* | *\|* | *\\* )
19000 ac_sed_conf_input=`$as_echo "$configure_input" |
19001 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19002 *) ac_sed_conf_input=$configure_input;;
19003 esac
252b5132 19004
81ecdfbb 19005 case $ac_tag in
d0ac1c44
SM
19006 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19007 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19008 esac
19009 ;;
252b5132
RH
19010 esac
19011
81ecdfbb 19012 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
19013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19014 X"$ac_file" : 'X\(//\)[^/]' \| \
19015 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19017$as_echo X"$ac_file" |
19018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19019 s//\1/
19020 q
19021 }
19022 /^X\(\/\/\)[^/].*/{
19023 s//\1/
19024 q
19025 }
19026 /^X\(\/\/\)$/{
19027 s//\1/
19028 q
19029 }
19030 /^X\(\/\).*/{
19031 s//\1/
19032 q
19033 }
19034 s/.*/./; q'`
19035 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
19036 ac_builddir=.
19037
81ecdfbb
RW
19038case "$ac_dir" in
19039.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19040*)
19041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19042 # A ".." for each directory in $ac_dir_suffix.
19043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19044 case $ac_top_builddir_sub in
19045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19047 esac ;;
19048esac
19049ac_abs_top_builddir=$ac_pwd
19050ac_abs_builddir=$ac_pwd$ac_dir_suffix
19051# for backward compatibility:
19052ac_top_builddir=$ac_top_build_prefix
252b5132 19053
42ecbf5e 19054case $srcdir in
81ecdfbb 19055 .) # We are building in place.
42ecbf5e 19056 ac_srcdir=.
81ecdfbb
RW
19057 ac_top_srcdir=$ac_top_builddir_sub
19058 ac_abs_top_srcdir=$ac_pwd ;;
19059 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 19060 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19061 ac_top_srcdir=$srcdir
19062 ac_abs_top_srcdir=$srcdir ;;
19063 *) # Relative name.
19064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19065 ac_top_srcdir=$ac_top_build_prefix$srcdir
19066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 19067esac
81ecdfbb 19068ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 19069
252b5132 19070
81ecdfbb
RW
19071 case $ac_mode in
19072 :F)
19073 #
19074 # CONFIG_FILE
19075 #
e5a52504 19076
42ecbf5e
DJ
19077 case $INSTALL in
19078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
19079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19080 esac
19081 ac_MKDIR_P=$MKDIR_P
19082 case $MKDIR_P in
19083 [\\/$]* | ?:[\\/]* ) ;;
19084 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 19085 esac
81ecdfbb 19086_ACEOF
e5a52504 19087
81ecdfbb
RW
19088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19089# If the template does not know about datarootdir, expand it.
19090# FIXME: This hack should be removed a few years after 2.60.
19091ac_datarootdir_hack=; ac_datarootdir_seen=
19092ac_sed_dataroot='
19093/datarootdir/ {
19094 p
19095 q
19096}
19097/@datadir@/p
19098/@docdir@/p
19099/@infodir@/p
19100/@localedir@/p
19101/@mandir@/p'
19102case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19103*datarootdir*) ac_datarootdir_seen=yes;;
19104*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19106$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19107_ACEOF
19108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19109 ac_datarootdir_hack='
19110 s&@datadir@&$datadir&g
19111 s&@docdir@&$docdir&g
19112 s&@infodir@&$infodir&g
19113 s&@localedir@&$localedir&g
19114 s&@mandir@&$mandir&g
19115 s&\\\${datarootdir}&$datarootdir&g' ;;
19116esac
42ecbf5e 19117_ACEOF
81ecdfbb
RW
19118
19119# Neutralize VPATH when `$srcdir' = `.'.
19120# Shell code in configure.ac might set extrasub.
19121# FIXME: do we really want to maintain this feature?
19122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19123ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
19124$extrasub
19125_ACEOF
81ecdfbb 19126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
19127:t
19128/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19129s|@configure_input@|$ac_sed_conf_input|;t t
19130s&@top_builddir@&$ac_top_builddir_sub&;t t
19131s&@top_build_prefix@&$ac_top_build_prefix&;t t
19132s&@srcdir@&$ac_srcdir&;t t
19133s&@abs_srcdir@&$ac_abs_srcdir&;t t
19134s&@top_srcdir@&$ac_top_srcdir&;t t
19135s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19136s&@builddir@&$ac_builddir&;t t
19137s&@abs_builddir@&$ac_abs_builddir&;t t
19138s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19139s&@INSTALL@&$ac_INSTALL&;t t
19140s&@MKDIR_P@&$ac_MKDIR_P&;t t
19141$ac_datarootdir_hack
19142"
50ff67e6 19143eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
d0ac1c44 19144 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19145
19146test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19147 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19149 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19151which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19152$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19153which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19154
d0ac1c44 19155 rm -f "$ac_tmp/stdin"
42ecbf5e 19156 case $ac_file in
d0ac1c44
SM
19157 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19158 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19159 esac \
d0ac1c44 19160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19161 ;;
19162 :H)
19163 #
19164 # CONFIG_HEADER
19165 #
42ecbf5e 19166 if test x"$ac_file" != x-; then
81ecdfbb
RW
19167 {
19168 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19169 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19170 } >"$ac_tmp/config.h" \
19171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19172 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19174$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 19175 else
81ecdfbb 19176 rm -f "$ac_file"
d0ac1c44
SM
19177 mv "$ac_tmp/config.h" "$ac_file" \
19178 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 19179 fi
42ecbf5e 19180 else
81ecdfbb 19181 $as_echo "/* $configure_input */" \
d0ac1c44
SM
19182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19183 || as_fn_error $? "could not create -" "$LINENO" 5
e5a52504 19184 fi
81ecdfbb
RW
19185# Compute "$ac_file"'s index in $config_headers.
19186_am_arg="$ac_file"
42ecbf5e
DJ
19187_am_stamp_count=1
19188for _am_header in $config_headers :; do
19189 case $_am_header in
81ecdfbb 19190 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
19191 break ;;
19192 * )
19193 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19194 esac
19195done
81ecdfbb
RW
19196echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19197$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19198 X"$_am_arg" : 'X\(//\)[^/]' \| \
19199 X"$_am_arg" : 'X\(//\)$' \| \
19200 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19201$as_echo X"$_am_arg" |
19202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19203 s//\1/
19204 q
19205 }
19206 /^X\(\/\/\)[^/].*/{
19207 s//\1/
19208 q
19209 }
19210 /^X\(\/\/\)$/{
19211 s//\1/
19212 q
19213 }
19214 /^X\(\/\).*/{
19215 s//\1/
19216 q
19217 }
19218 s/.*/./; q'`/stamp-h$_am_stamp_count
19219 ;;
42ecbf5e 19220
81ecdfbb
RW
19221 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19222$as_echo "$as_me: executing $ac_file commands" >&6;}
19223 ;;
19224 esac
42ecbf5e
DJ
19225
19226
81ecdfbb
RW
19227 case $ac_file$ac_mode in
19228 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 19229 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
19230 # are listed without --file. Let's play safe and only enable the eval
19231 # if we detect the quoting.
5bbe6ec5
NC
19232 case $CONFIG_FILES in
19233 *\'*) eval set x "$CONFIG_FILES" ;;
19234 *) set x $CONFIG_FILES ;;
19235 esac
81ecdfbb 19236 shift
5bbe6ec5 19237 for mf
81ecdfbb
RW
19238 do
19239 # Strip MF so we end up with the name of the file.
5bbe6ec5
NC
19240 mf=`echo "$mf" | sed -e 's/:.*$//'`
19241 # Check whether this is an Automake generated Makefile or not.
19242 # We used to match only the files named 'Makefile.in', but
19243 # some people rename them; so instead we look at the file content.
19244 # Grep'ing the first line is not enough: some people post-process
19245 # each Makefile.in and add a new line on top of each file to say so.
19246 # Grep'ing the whole file is not good either: AIX grep has a line
81ecdfbb 19247 # limit of 2048, but all sed's we know have understand at least 4000.
5bbe6ec5
NC
19248 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19249 dirpart=`$as_dirname -- "$mf" ||
19250$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19251 X"$mf" : 'X\(//\)[^/]' \| \
19252 X"$mf" : 'X\(//\)$' \| \
19253 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19254$as_echo X"$mf" |
81ecdfbb
RW
19255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19256 s//\1/
19257 q
19258 }
19259 /^X\(\/\/\)[^/].*/{
19260 s//\1/
19261 q
19262 }
19263 /^X\(\/\/\)$/{
19264 s//\1/
19265 q
19266 }
19267 /^X\(\/\).*/{
19268 s//\1/
19269 q
19270 }
19271 s/.*/./; q'`
5bbe6ec5
NC
19272 else
19273 continue
19274 fi
19275 # Extract the definition of DEPDIR, am__include, and am__quote
19276 # from the Makefile without running 'make'.
19277 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19278 test -z "$DEPDIR" && continue
19279 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19280 test -z "$am__include" && continue
19281 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19282 # Find all dependency output files, they are included files with
19283 # $(DEPDIR) in their names. We invoke sed twice because it is the
19284 # simplest approach to changing $(DEPDIR) to its actual value in the
19285 # expansion.
19286 for file in `sed -n "
19287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19289 # Make sure the directory exists.
19290 test -f "$dirpart/$file" && continue
19291 fdir=`$as_dirname -- "$file" ||
19292$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19293 X"$file" : 'X\(//\)[^/]' \| \
19294 X"$file" : 'X\(//\)$' \| \
19295 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19296$as_echo X"$file" |
19297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
81ecdfbb
RW
19298 s//\1/
19299 q
19300 }
5bbe6ec5 19301 /^X\(\/\/\)[^/].*/{
b232f81a
NA
19302 s//\1/
19303 q
19304 }
5bbe6ec5
NC
19305 /^X\(\/\/\)$/{
19306 s//\1/
19307 q
19308 }
19309 /^X\(\/\).*/{
81ecdfbb
RW
19310 s//\1/
19311 q
19312 }
19313 s/.*/./; q'`
5bbe6ec5
NC
19314 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19315 # echo "creating $dirpart/$file"
19316 echo '# dummy' > "$dirpart/$file"
19317 done
42ecbf5e 19318 done
81ecdfbb 19319}
d7040cdb 19320 ;;
81ecdfbb 19321 "libtool":C)
d7040cdb
SE
19322
19323 # See if we are running on zsh, and set the options which allow our
19324 # commands through without removal of \ escapes.
19325 if test -n "${ZSH_VERSION+set}" ; then
19326 setopt NO_GLOB_SUBST
19327 fi
19328
19329 cfgfile="${ofile}T"
19330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19331 $RM "$cfgfile"
19332
19333 cat <<_LT_EOF >> "$cfgfile"
19334#! $SHELL
19335
19336# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 19337# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
19338# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19339# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19340#
b214d478 19341# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 19342# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 19343# Written by Gordon Matzigkeit, 1996
d7040cdb 19344#
b214d478 19345# This file is part of GNU Libtool.
d7040cdb 19346#
b214d478
SE
19347# GNU Libtool is free software; you can redistribute it and/or
19348# modify it under the terms of the GNU General Public License as
19349# published by the Free Software Foundation; either version 2 of
19350# the License, or (at your option) any later version.
d7040cdb 19351#
b214d478
SE
19352# As a special exception to the GNU General Public License,
19353# if you distribute this file as part of a program or library that
19354# is built using GNU Libtool, you may include this file under the
19355# same distribution terms that you use for the rest of that program.
d7040cdb 19356#
b214d478
SE
19357# GNU Libtool is distributed in the hope that it will be useful,
19358# but WITHOUT ANY WARRANTY; without even the implied warranty of
19359# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19360# GNU General Public License for more details.
d7040cdb 19361#
b214d478
SE
19362# You should have received a copy of the GNU General Public License
19363# along with GNU Libtool; see the file COPYING. If not, a copy
19364# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19365# obtained by writing to the Free Software Foundation, Inc.,
19366# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
19367
19368
19369# The names of the tagged configurations supported by this script.
3cb62297 19370available_tags="CXX "
d7040cdb
SE
19371
19372# ### BEGIN LIBTOOL CONFIG
19373
19374# Which release of libtool.m4 was used?
19375macro_version=$macro_version
19376macro_revision=$macro_revision
19377
19378# Whether or not to build shared libraries.
19379build_libtool_libs=$enable_shared
19380
19381# Whether or not to build static libraries.
19382build_old_libs=$enable_static
19383
19384# What type of objects to build.
19385pic_mode=$pic_mode
19386
19387# Whether or not to optimize for fast installation.
19388fast_install=$enable_fast_install
19389
3725885a
RW
19390# Shell to use when invoking shell scripts.
19391SHELL=$lt_SHELL
19392
19393# An echo program that protects backslashes.
19394ECHO=$lt_ECHO
19395
d7040cdb
SE
19396# The host system.
19397host_alias=$host_alias
19398host=$host
19399host_os=$host_os
19400
19401# The build system.
19402build_alias=$build_alias
19403build=$build
19404build_os=$build_os
19405
19406# A sed program that does not truncate output.
19407SED=$lt_SED
19408
19409# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19410Xsed="\$SED -e 1s/^X//"
19411
19412# A grep program that handles long lines.
19413GREP=$lt_GREP
19414
19415# An ERE matcher.
19416EGREP=$lt_EGREP
19417
19418# A literal string matcher.
19419FGREP=$lt_FGREP
19420
19421# A BSD- or MS-compatible name lister.
19422NM=$lt_NM
19423
19424# Whether we need soft or hard links.
19425LN_S=$lt_LN_S
19426
19427# What is the maximum length of a command?
19428max_cmd_len=$max_cmd_len
19429
19430# Object file suffix (normally "o").
19431objext=$ac_objext
19432
19433# Executable file suffix (normally "").
19434exeext=$exeext
19435
19436# whether the shell understands "unset".
19437lt_unset=$lt_unset
19438
19439# turn spaces into newlines.
19440SP2NL=$lt_lt_SP2NL
19441
19442# turn newlines into spaces.
19443NL2SP=$lt_lt_NL2SP
19444
b214d478
SE
19445# An object symbol dumper.
19446OBJDUMP=$lt_OBJDUMP
19447
d7040cdb
SE
19448# Method to check whether dependent libraries are shared objects.
19449deplibs_check_method=$lt_deplibs_check_method
19450
19451# Command to use when deplibs_check_method == "file_magic".
19452file_magic_cmd=$lt_file_magic_cmd
19453
19454# The archiver.
19455AR=$lt_AR
19456AR_FLAGS=$lt_AR_FLAGS
19457
19458# A symbol stripping program.
19459STRIP=$lt_STRIP
19460
19461# Commands used to install an old-style archive.
19462RANLIB=$lt_RANLIB
19463old_postinstall_cmds=$lt_old_postinstall_cmds
19464old_postuninstall_cmds=$lt_old_postuninstall_cmds
19465
3725885a
RW
19466# Whether to use a lock for old archive extraction.
19467lock_old_archive_extraction=$lock_old_archive_extraction
19468
d7040cdb
SE
19469# A C compiler.
19470LTCC=$lt_CC
19471
19472# LTCC compiler flags.
19473LTCFLAGS=$lt_CFLAGS
19474
19475# Take the output of nm and produce a listing of raw symbols and C names.
19476global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19477
19478# Transform the output of nm in a proper C declaration.
19479global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19480
19481# Transform the output of nm in a C name address pair.
19482global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19483
b214d478
SE
19484# Transform the output of nm in a C name address pair when lib prefix is needed.
19485global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19486
d7040cdb
SE
19487# The name of the directory that contains temporary libtool files.
19488objdir=$objdir
19489
d7040cdb
SE
19490# Used to examine libraries when file_magic_cmd begins with "file".
19491MAGIC_CMD=$MAGIC_CMD
19492
19493# Must we lock files when doing compilation?
19494need_locks=$lt_need_locks
19495
b214d478
SE
19496# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19497DSYMUTIL=$lt_DSYMUTIL
19498
19499# Tool to change global to local symbols on Mac OS X.
19500NMEDIT=$lt_NMEDIT
19501
19502# Tool to manipulate fat objects and archives on Mac OS X.
19503LIPO=$lt_LIPO
19504
19505# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19506OTOOL=$lt_OTOOL
19507
19508# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19509OTOOL64=$lt_OTOOL64
19510
d7040cdb
SE
19511# Old archive suffix (normally "a").
19512libext=$libext
19513
19514# Shared library suffix (normally ".so").
19515shrext_cmds=$lt_shrext_cmds
19516
19517# The commands to extract the exported symbol list from a shared archive.
19518extract_expsyms_cmds=$lt_extract_expsyms_cmds
19519
19520# Variables whose values should be saved in libtool wrapper scripts and
19521# restored at link time.
19522variables_saved_for_relink=$lt_variables_saved_for_relink
19523
19524# Do we need the "lib" prefix for modules?
19525need_lib_prefix=$need_lib_prefix
19526
19527# Do we need a version for libraries?
19528need_version=$need_version
19529
19530# Library versioning type.
19531version_type=$version_type
19532
19533# Shared library runtime path variable.
19534runpath_var=$runpath_var
19535
19536# Shared library path variable.
19537shlibpath_var=$shlibpath_var
19538
19539# Is shlibpath searched before the hard-coded library search path?
19540shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19541
19542# Format of library name prefix.
19543libname_spec=$lt_libname_spec
19544
19545# List of archive names. First name is the real one, the rest are links.
19546# The last name is the one that the linker finds with -lNAME
19547library_names_spec=$lt_library_names_spec
19548
19549# The coded name of the library, if different from the real name.
19550soname_spec=$lt_soname_spec
19551
3725885a
RW
19552# Permission mode override for installation of shared libraries.
19553install_override_mode=$lt_install_override_mode
19554
d7040cdb
SE
19555# Command to use after installation of a shared archive.
19556postinstall_cmds=$lt_postinstall_cmds
19557
19558# Command to use after uninstallation of a shared archive.
19559postuninstall_cmds=$lt_postuninstall_cmds
19560
19561# Commands used to finish a libtool library installation in a directory.
19562finish_cmds=$lt_finish_cmds
19563
19564# As "finish_cmds", except a single script fragment to be evaled but
19565# not shown.
19566finish_eval=$lt_finish_eval
19567
19568# Whether we should hardcode library paths into libraries.
19569hardcode_into_libs=$hardcode_into_libs
19570
19571# Compile-time system search path for libraries.
19572sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19573
19574# Run-time system search path for libraries.
19575sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19576
19577# Whether dlopen is supported.
19578dlopen_support=$enable_dlopen
19579
19580# Whether dlopen of programs is supported.
19581dlopen_self=$enable_dlopen_self
19582
19583# Whether dlopen of statically linked programs is supported.
19584dlopen_self_static=$enable_dlopen_self_static
19585
19586# Commands to strip libraries.
19587old_striplib=$lt_old_striplib
19588striplib=$lt_striplib
19589
19590
19591# The linker used to build libraries.
19592LD=$lt_LD
19593
3725885a
RW
19594# How to create reloadable object files.
19595reload_flag=$lt_reload_flag
19596reload_cmds=$lt_reload_cmds
19597
d7040cdb
SE
19598# Commands used to build an old-style archive.
19599old_archive_cmds=$lt_old_archive_cmds
19600
19601# A language specific compiler.
19602CC=$lt_compiler
19603
19604# Is the compiler the GNU compiler?
19605with_gcc=$GCC
19606
19607# Compiler flag to turn off builtin functions.
19608no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19609
19610# How to pass a linker flag through the compiler.
19611wl=$lt_lt_prog_compiler_wl
19612
19613# Additional compiler flags for building library objects.
19614pic_flag=$lt_lt_prog_compiler_pic
19615
19616# Compiler flag to prevent dynamic linking.
19617link_static_flag=$lt_lt_prog_compiler_static
19618
19619# Does compiler simultaneously support -c and -o options?
19620compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19621
19622# Whether or not to add -lc for building shared libraries.
19623build_libtool_need_lc=$archive_cmds_need_lc
19624
19625# Whether or not to disallow shared libs when runtime libs are static.
19626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19627
19628# Compiler flag to allow reflexive dlopens.
19629export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19630
19631# Compiler flag to generate shared objects directly from archives.
19632whole_archive_flag_spec=$lt_whole_archive_flag_spec
19633
19634# Whether the compiler copes with passing no objects directly.
19635compiler_needs_object=$lt_compiler_needs_object
19636
19637# Create an old-style archive from a shared archive.
19638old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19639
19640# Create a temporary old-style archive to link instead of a shared archive.
19641old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19642
19643# Commands used to build a shared archive.
19644archive_cmds=$lt_archive_cmds
19645archive_expsym_cmds=$lt_archive_expsym_cmds
19646
19647# Commands used to build a loadable module if different from building
19648# a shared archive.
19649module_cmds=$lt_module_cmds
19650module_expsym_cmds=$lt_module_expsym_cmds
19651
19652# Whether we are building with GNU ld or not.
19653with_gnu_ld=$lt_with_gnu_ld
19654
19655# Flag that allows shared libraries with undefined symbols to be built.
19656allow_undefined_flag=$lt_allow_undefined_flag
19657
19658# Flag that enforces no undefined symbols.
19659no_undefined_flag=$lt_no_undefined_flag
19660
19661# Flag to hardcode \$libdir into a binary during linking.
19662# This must work even if \$libdir does not exist
19663hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19664
19665# If ld is used when linking, flag to hardcode \$libdir into a binary
19666# during linking. This must work even if \$libdir does not exist.
19667hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19668
19669# Whether we need a single "-rpath" flag with a separated argument.
19670hardcode_libdir_separator=$lt_hardcode_libdir_separator
19671
19672# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19673# DIR into the resulting binary.
19674hardcode_direct=$hardcode_direct
19675
19676# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19677# DIR into the resulting binary and the resulting library dependency is
19678# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19679# library is relocated.
19680hardcode_direct_absolute=$hardcode_direct_absolute
19681
19682# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19683# into the resulting binary.
19684hardcode_minus_L=$hardcode_minus_L
19685
19686# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19687# into the resulting binary.
19688hardcode_shlibpath_var=$hardcode_shlibpath_var
19689
19690# Set to "yes" if building a shared library automatically hardcodes DIR
19691# into the library and all subsequent libraries and executables linked
19692# against it.
19693hardcode_automatic=$hardcode_automatic
19694
19695# Set to yes if linker adds runtime paths of dependent libraries
19696# to runtime path list.
19697inherit_rpath=$inherit_rpath
19698
19699# Whether libtool must link a program against all its dependency libraries.
19700link_all_deplibs=$link_all_deplibs
19701
19702# Fix the shell variable \$srcfile for the compiler.
19703fix_srcfile_path=$lt_fix_srcfile_path
19704
19705# Set to "yes" if exported symbols are required.
19706always_export_symbols=$always_export_symbols
19707
19708# The commands to list exported symbols.
19709export_symbols_cmds=$lt_export_symbols_cmds
19710
19711# Symbols that should not be listed in the preloaded symbols.
19712exclude_expsyms=$lt_exclude_expsyms
19713
19714# Symbols that must always be exported.
19715include_expsyms=$lt_include_expsyms
19716
19717# Commands necessary for linking programs (against libraries) with templates.
19718prelink_cmds=$lt_prelink_cmds
19719
19720# Specify filename containing input files.
19721file_list_spec=$lt_file_list_spec
19722
19723# How to hardcode a shared library path into an executable.
19724hardcode_action=$hardcode_action
19725
3cb62297
L
19726# The directories searched by this compiler when creating a shared library.
19727compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19728
19729# Dependencies to place before and after the objects being linked to
19730# create a shared library.
19731predep_objects=$lt_predep_objects
19732postdep_objects=$lt_postdep_objects
19733predeps=$lt_predeps
19734postdeps=$lt_postdeps
19735
19736# The library search path used internally by the compiler when linking
19737# a shared library.
19738compiler_lib_search_path=$lt_compiler_lib_search_path
19739
d7040cdb
SE
19740# ### END LIBTOOL CONFIG
19741
19742_LT_EOF
19743
19744 case $host_os in
19745 aix3*)
19746 cat <<\_LT_EOF >> "$cfgfile"
19747# AIX sometimes has problems with the GCC collect2 program. For some
19748# reason, if we set the COLLECT_NAMES environment variable, the problems
19749# vanish in a puff of smoke.
19750if test "X${COLLECT_NAMES+set}" != Xset; then
19751 COLLECT_NAMES=
19752 export COLLECT_NAMES
19753fi
19754_LT_EOF
19755 ;;
19756 esac
19757
19758
19759ltmain="$ac_aux_dir/ltmain.sh"
19760
19761
19762 # We use sed instead of cat because bash on DJGPP gets confused if
19763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19764 # text mode, it properly converts lines to CR/LF. This bash problem
19765 # is reportedly fixed, but why not run on old versions too?
19766 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19767 || (rm -f "$cfgfile"; exit 1)
19768
19769 case $xsi_shell in
19770 yes)
19771 cat << \_LT_EOF >> "$cfgfile"
b214d478 19772
d7040cdb
SE
19773# func_dirname file append nondir_replacement
19774# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19775# otherwise set result to NONDIR_REPLACEMENT.
19776func_dirname ()
19777{
19778 case ${1} in
19779 */*) func_dirname_result="${1%/*}${2}" ;;
19780 * ) func_dirname_result="${3}" ;;
19781 esac
19782}
19783
19784# func_basename file
19785func_basename ()
19786{
19787 func_basename_result="${1##*/}"
19788}
19789
b214d478
SE
19790# func_dirname_and_basename file append nondir_replacement
19791# perform func_basename and func_dirname in a single function
19792# call:
19793# dirname: Compute the dirname of FILE. If nonempty,
19794# add APPEND to the result, otherwise set result
19795# to NONDIR_REPLACEMENT.
19796# value returned in "$func_dirname_result"
19797# basename: Compute filename of FILE.
19798# value retuned in "$func_basename_result"
19799# Implementation must be kept synchronized with func_dirname
19800# and func_basename. For efficiency, we do not delegate to
19801# those functions but instead duplicate the functionality here.
19802func_dirname_and_basename ()
19803{
19804 case ${1} in
19805 */*) func_dirname_result="${1%/*}${2}" ;;
19806 * ) func_dirname_result="${3}" ;;
19807 esac
19808 func_basename_result="${1##*/}"
19809}
19810
d7040cdb
SE
19811# func_stripname prefix suffix name
19812# strip PREFIX and SUFFIX off of NAME.
19813# PREFIX and SUFFIX must not contain globbing or regex special
19814# characters, hashes, percent signs, but SUFFIX may contain a leading
19815# dot (in which case that matches only a dot).
19816func_stripname ()
19817{
19818 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19819 # positional parameters, so assign one to ordinary parameter first.
19820 func_stripname_result=${3}
19821 func_stripname_result=${func_stripname_result#"${1}"}
19822 func_stripname_result=${func_stripname_result%"${2}"}
19823}
19824
19825# func_opt_split
19826func_opt_split ()
19827{
19828 func_opt_split_opt=${1%%=*}
19829 func_opt_split_arg=${1#*=}
19830}
19831
19832# func_lo2o object
19833func_lo2o ()
19834{
19835 case ${1} in
19836 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19837 *) func_lo2o_result=${1} ;;
19838 esac
19839}
b214d478
SE
19840
19841# func_xform libobj-or-source
19842func_xform ()
19843{
19844 func_xform_result=${1%.*}.lo
19845}
19846
19847# func_arith arithmetic-term...
19848func_arith ()
19849{
19850 func_arith_result=$(( $* ))
19851}
19852
19853# func_len string
19854# STRING may not start with a hyphen.
19855func_len ()
19856{
19857 func_len_result=${#1}
19858}
19859
d7040cdb
SE
19860_LT_EOF
19861 ;;
19862 *) # Bourne compatible functions.
19863 cat << \_LT_EOF >> "$cfgfile"
b214d478 19864
d7040cdb
SE
19865# func_dirname file append nondir_replacement
19866# Compute the dirname of FILE. If nonempty, add APPEND to the result,
19867# otherwise set result to NONDIR_REPLACEMENT.
19868func_dirname ()
19869{
19870 # Extract subdirectory from the argument.
3725885a 19871 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
19872 if test "X$func_dirname_result" = "X${1}"; then
19873 func_dirname_result="${3}"
19874 else
19875 func_dirname_result="$func_dirname_result${2}"
19876 fi
19877}
19878
19879# func_basename file
19880func_basename ()
19881{
3725885a 19882 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
19883}
19884
b214d478 19885
d7040cdb
SE
19886# func_stripname prefix suffix name
19887# strip PREFIX and SUFFIX off of NAME.
19888# PREFIX and SUFFIX must not contain globbing or regex special
19889# characters, hashes, percent signs, but SUFFIX may contain a leading
19890# dot (in which case that matches only a dot).
19891# func_strip_suffix prefix name
19892func_stripname ()
19893{
19894 case ${2} in
3725885a
RW
19895 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19896 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
19897 esac
19898}
19899
19900# sed scripts:
19901my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19902my_sed_long_arg='1s/^-[^=]*=//'
19903
19904# func_opt_split
19905func_opt_split ()
19906{
3725885a
RW
19907 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19908 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
19909}
19910
19911# func_lo2o object
19912func_lo2o ()
19913{
3725885a 19914 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 19915}
b214d478
SE
19916
19917# func_xform libobj-or-source
19918func_xform ()
19919{
3725885a 19920 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
19921}
19922
19923# func_arith arithmetic-term...
19924func_arith ()
19925{
19926 func_arith_result=`expr "$@"`
19927}
19928
19929# func_len string
19930# STRING may not start with a hyphen.
19931func_len ()
19932{
19933 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19934}
19935
d7040cdb
SE
19936_LT_EOF
19937esac
19938
19939case $lt_shell_append in
19940 yes)
19941 cat << \_LT_EOF >> "$cfgfile"
19942
19943# func_append var value
19944# Append VALUE to the end of shell variable VAR.
19945func_append ()
19946{
19947 eval "$1+=\$2"
19948}
19949_LT_EOF
19950 ;;
19951 *)
19952 cat << \_LT_EOF >> "$cfgfile"
19953
19954# func_append var value
19955# Append VALUE to the end of shell variable VAR.
19956func_append ()
19957{
19958 eval "$1=\$$1\$2"
19959}
b214d478 19960
d7040cdb
SE
19961_LT_EOF
19962 ;;
19963 esac
19964
19965
19966 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19967 || (rm -f "$cfgfile"; exit 1)
19968
19969 mv -f "$cfgfile" "$ofile" ||
19970 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19971 chmod +x "$ofile"
19972
3cb62297
L
19973
19974 cat <<_LT_EOF >> "$ofile"
19975
19976# ### BEGIN LIBTOOL TAG CONFIG: CXX
19977
19978# The linker used to build libraries.
19979LD=$lt_LD_CXX
19980
19981# How to create reloadable object files.
19982reload_flag=$lt_reload_flag_CXX
19983reload_cmds=$lt_reload_cmds_CXX
19984
19985# Commands used to build an old-style archive.
19986old_archive_cmds=$lt_old_archive_cmds_CXX
19987
19988# A language specific compiler.
19989CC=$lt_compiler_CXX
19990
19991# Is the compiler the GNU compiler?
19992with_gcc=$GCC_CXX
19993
19994# Compiler flag to turn off builtin functions.
19995no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19996
19997# How to pass a linker flag through the compiler.
19998wl=$lt_lt_prog_compiler_wl_CXX
19999
20000# Additional compiler flags for building library objects.
20001pic_flag=$lt_lt_prog_compiler_pic_CXX
20002
20003# Compiler flag to prevent dynamic linking.
20004link_static_flag=$lt_lt_prog_compiler_static_CXX
20005
20006# Does compiler simultaneously support -c and -o options?
20007compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20008
20009# Whether or not to add -lc for building shared libraries.
20010build_libtool_need_lc=$archive_cmds_need_lc_CXX
20011
20012# Whether or not to disallow shared libs when runtime libs are static.
20013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20014
20015# Compiler flag to allow reflexive dlopens.
20016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20017
20018# Compiler flag to generate shared objects directly from archives.
20019whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20020
20021# Whether the compiler copes with passing no objects directly.
20022compiler_needs_object=$lt_compiler_needs_object_CXX
20023
20024# Create an old-style archive from a shared archive.
20025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20026
20027# Create a temporary old-style archive to link instead of a shared archive.
20028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20029
20030# Commands used to build a shared archive.
20031archive_cmds=$lt_archive_cmds_CXX
20032archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20033
20034# Commands used to build a loadable module if different from building
20035# a shared archive.
20036module_cmds=$lt_module_cmds_CXX
20037module_expsym_cmds=$lt_module_expsym_cmds_CXX
20038
20039# Whether we are building with GNU ld or not.
20040with_gnu_ld=$lt_with_gnu_ld_CXX
20041
20042# Flag that allows shared libraries with undefined symbols to be built.
20043allow_undefined_flag=$lt_allow_undefined_flag_CXX
20044
20045# Flag that enforces no undefined symbols.
20046no_undefined_flag=$lt_no_undefined_flag_CXX
20047
20048# Flag to hardcode \$libdir into a binary during linking.
20049# This must work even if \$libdir does not exist
20050hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20051
20052# If ld is used when linking, flag to hardcode \$libdir into a binary
20053# during linking. This must work even if \$libdir does not exist.
20054hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20055
20056# Whether we need a single "-rpath" flag with a separated argument.
20057hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20058
20059# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20060# DIR into the resulting binary.
20061hardcode_direct=$hardcode_direct_CXX
20062
20063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20064# DIR into the resulting binary and the resulting library dependency is
20065# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20066# library is relocated.
20067hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20068
20069# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20070# into the resulting binary.
20071hardcode_minus_L=$hardcode_minus_L_CXX
20072
20073# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20074# into the resulting binary.
20075hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20076
20077# Set to "yes" if building a shared library automatically hardcodes DIR
20078# into the library and all subsequent libraries and executables linked
20079# against it.
20080hardcode_automatic=$hardcode_automatic_CXX
20081
20082# Set to yes if linker adds runtime paths of dependent libraries
20083# to runtime path list.
20084inherit_rpath=$inherit_rpath_CXX
20085
20086# Whether libtool must link a program against all its dependency libraries.
20087link_all_deplibs=$link_all_deplibs_CXX
20088
20089# Fix the shell variable \$srcfile for the compiler.
20090fix_srcfile_path=$lt_fix_srcfile_path_CXX
20091
20092# Set to "yes" if exported symbols are required.
20093always_export_symbols=$always_export_symbols_CXX
20094
20095# The commands to list exported symbols.
20096export_symbols_cmds=$lt_export_symbols_cmds_CXX
20097
20098# Symbols that should not be listed in the preloaded symbols.
20099exclude_expsyms=$lt_exclude_expsyms_CXX
20100
20101# Symbols that must always be exported.
20102include_expsyms=$lt_include_expsyms_CXX
20103
20104# Commands necessary for linking programs (against libraries) with templates.
20105prelink_cmds=$lt_prelink_cmds_CXX
20106
20107# Specify filename containing input files.
20108file_list_spec=$lt_file_list_spec_CXX
20109
20110# How to hardcode a shared library path into an executable.
20111hardcode_action=$hardcode_action_CXX
20112
20113# The directories searched by this compiler when creating a shared library.
20114compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20115
20116# Dependencies to place before and after the objects being linked to
20117# create a shared library.
20118predep_objects=$lt_predep_objects_CXX
20119postdep_objects=$lt_postdep_objects_CXX
20120predeps=$lt_predeps_CXX
20121postdeps=$lt_postdeps_CXX
20122
20123# The library search path used internally by the compiler when linking
20124# a shared library.
20125compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20126
20127# ### END LIBTOOL TAG CONFIG: CXX
20128_LT_EOF
20129
42ecbf5e 20130 ;;
81ecdfbb 20131 "default-1":C)
20e95c23
DJ
20132 for ac_file in $CONFIG_FILES; do
20133 # Support "outfile[:infile[:infile...]]"
20134 case "$ac_file" in
20135 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20136 esac
20137 # PO directories have a Makefile.in generated from Makefile.in.in.
20138 case "$ac_file" in */Makefile.in)
20139 # Adjust a relative srcdir.
20140 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 20141 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
20142 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20143 # In autoconf-2.13 it is called $ac_given_srcdir.
20144 # In autoconf-2.50 it is called $srcdir.
20145 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20146 case "$ac_given_srcdir" in
20147 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20148 /*) top_srcdir="$ac_given_srcdir" ;;
20149 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20150 esac
20151 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20152 rm -f "$ac_dir/POTFILES"
20153 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20154 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20155 POMAKEFILEDEPS="POTFILES.in"
20156 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20157 # on $ac_dir but don't depend on user-specified configuration
20158 # parameters.
20159 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20160 # The LINGUAS file contains the set of available languages.
20161 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 20162 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
20163 fi
20164 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20165 # Hide the ALL_LINGUAS assigment from automake.
20166 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20167 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20168 else
37a42ee9 20169 # The set of available languages was given in configure.ac.
20e95c23
DJ
20170 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20171 fi
20172 case "$ac_given_srcdir" in
20173 .) srcdirpre= ;;
20174 *) srcdirpre='$(srcdir)/' ;;
20175 esac
20176 POFILES=
20177 GMOFILES=
20178 UPDATEPOFILES=
20179 DUMMYPOFILES=
20180 for lang in $ALL_LINGUAS; do
20181 POFILES="$POFILES $srcdirpre$lang.po"
20182 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20183 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20184 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20185 done
20186 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20187 # environment variable.
20188 INST_LINGUAS=
20189 if test -n "$ALL_LINGUAS"; then
20190 for presentlang in $ALL_LINGUAS; do
20191 useit=no
20192 if test "%UNSET%" != "$LINGUAS"; then
20193 desiredlanguages="$LINGUAS"
20194 else
20195 desiredlanguages="$ALL_LINGUAS"
20196 fi
20197 for desiredlang in $desiredlanguages; do
20198 # Use the presentlang catalog if desiredlang is
20199 # a. equal to presentlang, or
20200 # b. a variant of presentlang (because in this case,
20201 # presentlang can be used as a fallback for messages
20202 # which are not translated in the desiredlang catalog).
20203 case "$desiredlang" in
20204 "$presentlang"*) useit=yes;;
20205 esac
20206 done
20207 if test $useit = yes; then
20208 INST_LINGUAS="$INST_LINGUAS $presentlang"
20209 fi
20210 done
20211 fi
20212 CATALOGS=
20213 if test -n "$INST_LINGUAS"; then
20214 for lang in $INST_LINGUAS; do
20215 CATALOGS="$CATALOGS $lang.gmo"
20216 done
20217 fi
20218 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20219 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"
20220 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20221 if test -f "$f"; then
20222 case "$f" in
20223 *.orig | *.bak | *~) ;;
20224 *) cat "$f" >> "$ac_dir/Makefile" ;;
20225 esac
20226 fi
20227 done
20228 fi
20229 ;;
20230 esac
20231 done ;;
33589acb
AM
20232 "default":C)
20233case "$srcdir" in
20234 .) srcdirpre= ;;
20235 *) srcdirpre='$(srcdir)/' ;;
20236esac
20237POFILES=
20238GMOFILES=
20239for lang in dummy $OBSOLETE_ALL_LINGUAS; do
20240 if test $lang != dummy; then
20241 POFILES="$POFILES $srcdirpre$lang.po"
20242 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20243 fi
20244done
20245sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20246 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20247 -e "s,@POFILES@,$POFILES," \
20248 -e "s,@GMOFILES@,$GMOFILES," \
20249 po/Makefile.in > po/Makefile ;;
81ecdfbb 20250
42ecbf5e 20251 esac
81ecdfbb 20252done # for ac_tag
42ecbf5e 20253
42ecbf5e 20254
81ecdfbb 20255as_fn_exit 0
42ecbf5e 20256_ACEOF
42ecbf5e
DJ
20257ac_clean_files=$ac_clean_files_save
20258
81ecdfbb 20259test $ac_write_fail = 0 ||
d0ac1c44 20260 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20261
42ecbf5e
DJ
20262
20263# configure is writing to config.log, and then calls config.status.
20264# config.status does its own redirection, appending to config.log.
20265# Unfortunately, on DOS this fails, as config.log is still kept open
20266# by configure, so config.status won't be able to write to it; its
20267# output is simply discarded. So we exec the FD to /dev/null,
20268# effectively closing config.log, so it can be properly (re)opened and
20269# appended to by config.status. When coming back to configure, we
20270# need to make the FD available again.
20271if test "$no_create" != yes; then
20272 ac_cs_success=:
20273 ac_config_status_args=
20274 test "$silent" = yes &&
20275 ac_config_status_args="$ac_config_status_args --quiet"
20276 exec 5>/dev/null
20277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20278 exec 5>>config.log
20279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20280 # would make configure fail if this is the last instruction.
d0ac1c44 20281 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20282fi
20283if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20285$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 20286fi
252b5132 20287
d546b610
L
20288
20289
20290touch config.status.tmp
20291if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
20292 sed '/as_fn_exit 0/i \
20293sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20294touch --reference=Makefile Makefile.tmp \
20295mv Makefile.tmp Makefile \
20296' config.status > config.status.tmp
20297 touch --reference=config.status config.status.tmp
20298 mv config.status.tmp config.status
20299 chmod +x config.status
20300 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20301 touch --reference=Makefile Makefile.tmp
20302 mv Makefile.tmp Makefile
20303else
20304 rm -f config.status.tmp
20305fi