]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
Finalized intl-update patches
[thirdparty/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
b5c37946 3# Generated by GNU Autoconf 2.69 for ld 2.41.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'
b5c37946
SJ
590PACKAGE_VERSION='2.41.50'
591PACKAGE_STRING='ld 2.41.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
862776f2 632gt_needs=
d0ac1c44 633ac_header_list=
81ecdfbb
RW
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
cf0e0a0b 638TESTSFRAMELIB
87279e3c 639TESTCTFLIB
81ecdfbb
RW
640TESTBFDLIB
641EMULATION_LIBPATH
642LIB_PATH
643EMUL_EXTRA_OFILES
644EMULATION_OFILES
50ff67e6 645TDIRS
81ecdfbb 646EMUL
c58212ea
L
647elf_plt_unwind_list_options
648elf_shlib_list_options
649elf_list_options
2cac01e3
FS
650ZSTD_LIBS
651ZSTD_CFLAGS
1ff6de03
NA
652zlibinc
653zlibdir
81ecdfbb 654NATIVE_LIB_DIRS
81ecdfbb
RW
655HDEFINES
656do_compare
657GENINSRC_NEVER_FALSE
658GENINSRC_NEVER_TRUE
81ecdfbb
RW
659LEXLIB
660LEX_OUTPUT_ROOT
661LEX
662YFLAGS
663YACC
81ecdfbb
RW
664CATOBJEXT
665GENCAT
666INSTOBJEXT
667DATADIRNAME
668CATALOGS
81ecdfbb
RW
669INCINTL
670LIBINTL_DEP
862776f2
AA
671POSUB
672LTLIBINTL
81ecdfbb 673LIBINTL
862776f2
AA
674INTLLIBS
675LTLIBICONV
676LIBICONV
677INTL_MACOSX_LIBS
678MSGMERGE
679XGETTEXT
680GMSGFMT
681MSGFMT
81ecdfbb 682USE_NLS
862776f2 683MKINSTALLDIRS
6757cf57 684WARN_WRITE_STRINGS
b879806f 685NO_WERROR
c5da1932 686WARN_CFLAGS_FOR_BUILD
b879806f 687WARN_CFLAGS
9e2bb0cb
LB
688JANSSON_LIBS
689JANSSON_CFLAGS
7cdfc346 690enable_libctf
094e34f2
NA
691ENABLE_LIBCTF_FALSE
692ENABLE_LIBCTF_TRUE
c774eab1 693enable_initfini_array
b879806f
AM
694installed_linker
695install_as_default
696TARGET_SYSTEM_ROOT_DEFINE
697TARGET_SYSTEM_ROOT
698use_sysroot
1d5269c9
MF
699ENABLE_BFD_64_BIT_FALSE
700ENABLE_BFD_64_BIT_TRUE
c8693053 701LARGEFILE_CPPFLAGS
3cb62297 702CXXCPP
81ecdfbb
RW
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
81ecdfbb
RW
708RANLIB
709AR
710OBJDUMP
711LN_S
712NM
713ac_ct_DUMPBIN
714DUMPBIN
715LD
716FGREP
717SED
718LIBTOOL
2cac01e3
FS
719PKG_CONFIG_LIBDIR
720PKG_CONFIG_PATH
721PKG_CONFIG
b879806f 722EGREP
b879806f 723CPP
68880f31 724GREP
3cb62297
L
725am__fastdepCXX_FALSE
726am__fastdepCXX_TRUE
727CXXDEPMODE
728ac_ct_CXX
729CXXFLAGS
730CXX
81ecdfbb
RW
731am__fastdepCC_FALSE
732am__fastdepCC_TRUE
733CCDEPMODE
6eb7d830 734am__nodep
81ecdfbb
RW
735AMDEPBACKSLASH
736AMDEP_FALSE
737AMDEP_TRUE
5bbe6ec5 738am__quote
81ecdfbb
RW
739am__include
740DEPDIR
c774eab1
AM
741OBJEXT
742EXEEXT
743ac_ct_CC
744CPPFLAGS
745LDFLAGS
746CFLAGS
747CC
748MAINT
749MAINTAINER_MODE_FALSE
750MAINTAINER_MODE_TRUE
751AM_BACKSLASH
752AM_DEFAULT_VERBOSITY
753AM_DEFAULT_V
754AM_V
81ecdfbb
RW
755am__untar
756am__tar
757AMTAR
758am__leading_dot
759SET_MAKE
760AWK
761mkdir_p
762MKDIR_P
763INSTALL_STRIP_PROGRAM
764STRIP
765install_sh
766MAKEINFO
767AUTOHEADER
768AUTOMAKE
769AUTOCONF
770ACLOCAL
771VERSION
772PACKAGE
773CYGPATH_W
774am__isrc
775INSTALL_DATA
776INSTALL_SCRIPT
777INSTALL_PROGRAM
81ecdfbb
RW
778target_os
779target_vendor
780target_cpu
781target
782host_os
783host_vendor
784host_cpu
785host
786build_os
787build_vendor
788build_cpu
789build
790target_alias
791host_alias
792build_alias
793LIBS
794ECHO_T
795ECHO_N
796ECHO_C
797DEFS
798mandir
799localedir
800libdir
801psdir
802pdfdir
803dvidir
804htmldir
805infodir
806docdir
807oldincludedir
808includedir
809localstatedir
810sharedstatedir
811sysconfdir
812datadir
813datarootdir
814libexecdir
815sbindir
816bindir
817program_transform_name
818prefix
819exec_prefix
820PACKAGE_URL
821PACKAGE_BUGREPORT
822PACKAGE_STRING
823PACKAGE_VERSION
824PACKAGE_TARNAME
825PACKAGE_NAME
826PATH_SEPARATOR
5bbe6ec5 827SHELL'
50ff67e6 828ac_subst_files=''
81ecdfbb
RW
829ac_user_opts='
830enable_option_checking
d0ac1c44 831enable_silent_rules
64ac50ac 832enable_maintainer_mode
c774eab1 833enable_dependency_tracking
b879806f
AM
834enable_shared
835enable_static
836with_pic
837enable_fast_install
838with_gnu_ld
839enable_libtool_lock
840enable_plugins
841enable_largefile
43e05cd4 842enable_checking
81ecdfbb
RW
843with_lib_path
844enable_targets
845enable_64_bit_bfd
846with_sysroot
4fda8867 847enable_gold
81ecdfbb 848enable_got
6c3bc0f8 849enable_compressed_debug_sections
b0c295e1 850enable_default_compressed_debug_sections_algorithm
6734f10a 851enable_new_dtags
647e4d46 852enable_relro
b32632c4 853enable_textrel_check
f6aec96d 854enable_separate_code
ba951afb 855enable_warn_execstack
e922d1ea 856enable_error_execstack
ba951afb 857enable_warn_rwx_segments
e922d1ea 858enable_error_rwx_segments
ba951afb 859enable_default_execstack
23ae20f5 860enable_error_handling_script
2760f24c 861enable_default_hash_style
c774eab1 862enable_initfini_array
094e34f2 863enable_libctf
9e2bb0cb 864enable_jansson
81ecdfbb
RW
865enable_werror
866enable_build_warnings
81ecdfbb 867enable_nls
862776f2
AA
868enable_rpath
869with_libiconv_prefix
870with_libiconv_type
871with_libintl_prefix
872with_libintl_type
1ff6de03 873with_system_zlib
2cac01e3 874with_zstd
81ecdfbb
RW
875'
876 ac_precious_vars='build_alias
877host_alias
878target_alias
879CC
880CFLAGS
881LDFLAGS
882LIBS
883CPPFLAGS
3cb62297
L
884CXX
885CXXFLAGS
886CCC
b879806f 887CPP
9e2bb0cb
LB
888PKG_CONFIG
889PKG_CONFIG_PATH
890PKG_CONFIG_LIBDIR
2cac01e3 891CXXCPP
9e2bb0cb
LB
892JANSSON_CFLAGS
893JANSSON_LIBS
81ecdfbb 894YACC
2cac01e3
FS
895YFLAGS
896ZSTD_CFLAGS
897ZSTD_LIBS'
81ecdfbb 898
252b5132
RH
899
900# Initialize some variables set by options.
42ecbf5e
DJ
901ac_init_help=
902ac_init_version=false
81ecdfbb
RW
903ac_unrecognized_opts=
904ac_unrecognized_sep=
252b5132
RH
905# The variables have the same names as the options, with
906# dashes changed to underlines.
42ecbf5e 907cache_file=/dev/null
252b5132 908exec_prefix=NONE
252b5132 909no_create=
252b5132
RH
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
252b5132
RH
918verbose=
919x_includes=NONE
920x_libraries=NONE
42ecbf5e
DJ
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 927# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
252b5132
RH
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
252b5132
RH
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
2e98a7bd 938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
252b5132 947
252b5132 948ac_prev=
81ecdfbb 949ac_dashdash=
252b5132
RH
950for ac_option
951do
252b5132
RH
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
81ecdfbb 954 eval $ac_prev=\$ac_option
252b5132
RH
955 ac_prev=
956 continue
957 fi
958
81ecdfbb 959 case $ac_option in
d0ac1c44
SM
960 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *=) ac_optarg= ;;
962 *) ac_optarg=yes ;;
81ecdfbb 963 esac
252b5132
RH
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
81ecdfbb
RW
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
252b5132
RH
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 974 bindir=$ac_optarg ;;
252b5132
RH
975
976 -build | --build | --buil | --bui | --bu)
42ecbf5e 977 ac_prev=build_alias ;;
252b5132 978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 979 build_alias=$ac_optarg ;;
252b5132
RH
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
252b5132 990
81ecdfbb 991 -datadir | --datadir | --datadi | --datad)
252b5132 992 ac_prev=datadir ;;
81ecdfbb 993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
42ecbf5e 994 datadir=$ac_optarg ;;
252b5132 995
81ecdfbb
RW
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
252b5132 1003 -disable-* | --disable-*)
81ecdfbb 1004 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 1005 # Reject names that are not valid shell variable names.
81ecdfbb 1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1007 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1011 *"
1012"enable_$ac_useropt"
1013"*) ;;
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1016 esac
1017 eval enable_$ac_useropt=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
252b5132
RH
1028
1029 -enable-* | --enable-*)
81ecdfbb 1030 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 1031 # Reject names that are not valid shell variable names.
81ecdfbb 1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1033 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038"enable_$ac_useropt"
1039"*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
252b5132 1042 esac
81ecdfbb 1043 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1044
1045 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047 | --exec | --exe | --ex)
1048 ac_prev=exec_prefix ;;
1049 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051 | --exec=* | --exe=* | --ex=*)
42ecbf5e 1052 exec_prefix=$ac_optarg ;;
252b5132
RH
1053
1054 -gas | --gas | --ga | --g)
1055 # Obsolete; use --with-gas.
1056 with_gas=yes ;;
1057
42ecbf5e
DJ
1058 -help | --help | --hel | --he | -h)
1059 ac_init_help=long ;;
1060 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061 ac_init_help=recursive ;;
1062 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063 ac_init_help=short ;;
252b5132
RH
1064
1065 -host | --host | --hos | --ho)
42ecbf5e 1066 ac_prev=host_alias ;;
252b5132 1067 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 1068 host_alias=$ac_optarg ;;
252b5132 1069
81ecdfbb
RW
1070 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 ac_prev=htmldir ;;
1072 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 | --ht=*)
1074 htmldir=$ac_optarg ;;
1075
252b5132
RH
1076 -includedir | --includedir | --includedi | --included | --include \
1077 | --includ | --inclu | --incl | --inc)
1078 ac_prev=includedir ;;
1079 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 1081 includedir=$ac_optarg ;;
252b5132
RH
1082
1083 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 ac_prev=infodir ;;
1085 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 1086 infodir=$ac_optarg ;;
252b5132
RH
1087
1088 -libdir | --libdir | --libdi | --libd)
1089 ac_prev=libdir ;;
1090 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 1091 libdir=$ac_optarg ;;
252b5132
RH
1092
1093 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094 | --libexe | --libex | --libe)
1095 ac_prev=libexecdir ;;
1096 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 1098 libexecdir=$ac_optarg ;;
252b5132 1099
81ecdfbb
RW
1100 -localedir | --localedir | --localedi | --localed | --locale)
1101 ac_prev=localedir ;;
1102 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103 localedir=$ac_optarg ;;
1104
252b5132 1105 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1106 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1107 ac_prev=localstatedir ;;
1108 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1109 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
42ecbf5e 1110 localstatedir=$ac_optarg ;;
252b5132
RH
1111
1112 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 ac_prev=mandir ;;
1114 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 1115 mandir=$ac_optarg ;;
252b5132
RH
1116
1117 -nfp | --nfp | --nf)
1118 # Obsolete; use --without-fp.
1119 with_fp=no ;;
1120
1121 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 1122 | --no-cr | --no-c | -n)
252b5132
RH
1123 no_create=yes ;;
1124
1125 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127 no_recursion=yes ;;
1128
1129 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131 | --oldin | --oldi | --old | --ol | --o)
1132 ac_prev=oldincludedir ;;
1133 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 1136 oldincludedir=$ac_optarg ;;
252b5132
RH
1137
1138 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 ac_prev=prefix ;;
1140 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 1141 prefix=$ac_optarg ;;
252b5132
RH
1142
1143 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144 | --program-pre | --program-pr | --program-p)
1145 ac_prev=program_prefix ;;
1146 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 1148 program_prefix=$ac_optarg ;;
252b5132
RH
1149
1150 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151 | --program-suf | --program-su | --program-s)
1152 ac_prev=program_suffix ;;
1153 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 1155 program_suffix=$ac_optarg ;;
252b5132
RH
1156
1157 -program-transform-name | --program-transform-name \
1158 | --program-transform-nam | --program-transform-na \
1159 | --program-transform-n | --program-transform- \
1160 | --program-transform | --program-transfor \
1161 | --program-transfo | --program-transf \
1162 | --program-trans | --program-tran \
1163 | --progr-tra | --program-tr | --program-t)
1164 ac_prev=program_transform_name ;;
1165 -program-transform-name=* | --program-transform-name=* \
1166 | --program-transform-nam=* | --program-transform-na=* \
1167 | --program-transform-n=* | --program-transform-=* \
1168 | --program-transform=* | --program-transfor=* \
1169 | --program-transfo=* | --program-transf=* \
1170 | --program-trans=* | --program-tran=* \
1171 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 1172 program_transform_name=$ac_optarg ;;
252b5132 1173
81ecdfbb
RW
1174 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 ac_prev=pdfdir ;;
1176 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177 pdfdir=$ac_optarg ;;
1178
1179 -psdir | --psdir | --psdi | --psd | --ps)
1180 ac_prev=psdir ;;
1181 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182 psdir=$ac_optarg ;;
1183
252b5132
RH
1184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185 | -silent | --silent | --silen | --sile | --sil)
1186 silent=yes ;;
1187
1188 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 ac_prev=sbindir ;;
1190 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 | --sbi=* | --sb=*)
42ecbf5e 1192 sbindir=$ac_optarg ;;
252b5132
RH
1193
1194 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196 | --sharedst | --shareds | --shared | --share | --shar \
1197 | --sha | --sh)
1198 ac_prev=sharedstatedir ;;
1199 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 | --sha=* | --sh=*)
42ecbf5e 1203 sharedstatedir=$ac_optarg ;;
252b5132
RH
1204
1205 -site | --site | --sit)
1206 ac_prev=site ;;
1207 -site=* | --site=* | --sit=*)
42ecbf5e 1208 site=$ac_optarg ;;
85fbca6a 1209
252b5132
RH
1210 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 ac_prev=srcdir ;;
1212 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 1213 srcdir=$ac_optarg ;;
252b5132
RH
1214
1215 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216 | --syscon | --sysco | --sysc | --sys | --sy)
1217 ac_prev=sysconfdir ;;
1218 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 1220 sysconfdir=$ac_optarg ;;
252b5132
RH
1221
1222 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 1223 ac_prev=target_alias ;;
252b5132 1224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 1225 target_alias=$ac_optarg ;;
252b5132
RH
1226
1227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228 verbose=yes ;;
1229
42ecbf5e
DJ
1230 -version | --version | --versio | --versi | --vers | -V)
1231 ac_init_version=: ;;
252b5132
RH
1232
1233 -with-* | --with-*)
81ecdfbb 1234 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1235 # Reject names that are not valid shell variable names.
81ecdfbb 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1237 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242"with_$ac_useropt"
1243"*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
252b5132 1246 esac
81ecdfbb 1247 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1248
1249 -without-* | --without-*)
81ecdfbb 1250 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1251 # Reject names that are not valid shell variable names.
81ecdfbb 1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1253 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=no ;;
252b5132
RH
1264
1265 --x)
1266 # Obsolete; use --with-x.
1267 with_x=yes ;;
1268
1269 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270 | --x-incl | --x-inc | --x-in | --x-i)
1271 ac_prev=x_includes ;;
1272 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 1274 x_includes=$ac_optarg ;;
252b5132
RH
1275
1276 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278 ac_prev=x_libraries ;;
1279 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 1281 x_libraries=$ac_optarg ;;
252b5132 1282
d0ac1c44
SM
1283 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1284Try \`$0 --help' for more information"
252b5132
RH
1285 ;;
1286
42ecbf5e
DJ
1287 *=*)
1288 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1290 case $ac_envvar in #(
1291 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1292 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1293 esac
1294 eval $ac_envvar=\$ac_optarg
42ecbf5e
DJ
1295 export $ac_envvar ;;
1296
252b5132 1297 *)
42ecbf5e 1298 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1299 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
42ecbf5e 1300 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1301 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1302 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1303 ;;
1304
1305 esac
1306done
1307
1308if test -n "$ac_prev"; then
42ecbf5e 1309 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1310 as_fn_error $? "missing argument to $ac_option"
252b5132 1311fi
252b5132 1312
81ecdfbb
RW
1313if test -n "$ac_unrecognized_opts"; then
1314 case $enable_option_checking in
1315 no) ;;
d0ac1c44 1316 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1317 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
42ecbf5e 1318 esac
81ecdfbb 1319fi
252b5132 1320
81ecdfbb
RW
1321# Check all directory arguments for consistency.
1322for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323 datadir sysconfdir sharedstatedir localstatedir includedir \
1324 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
31b0378d 1325 libdir localedir mandir
252b5132 1326do
81ecdfbb
RW
1327 eval ac_val=\$$ac_var
1328 # Remove trailing slashes.
1329 case $ac_val in
1330 */ )
1331 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332 eval $ac_var=\$ac_val;;
1333 esac
1334 # Be sure to have absolute directory names.
42ecbf5e 1335 case $ac_val in
81ecdfbb
RW
1336 [\\/$]* | ?:[\\/]* ) continue;;
1337 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1338 esac
d0ac1c44 1339 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1340done
1341
42ecbf5e
DJ
1342# There might be people who depend on the old broken behavior: `$host'
1343# used to hold the argument of --host etc.
1344# FIXME: To remove some day.
1345build=$build_alias
1346host=$host_alias
1347target=$target_alias
1348
1349# FIXME: To remove some day.
1350if test "x$host_alias" != x; then
1351 if test "x$build_alias" = x; then
1352 cross_compiling=maybe
42ecbf5e
DJ
1353 elif test "x$build_alias" != "x$host_alias"; then
1354 cross_compiling=yes
1355 fi
1356fi
e5a52504 1357
42ecbf5e
DJ
1358ac_tool_prefix=
1359test -n "$host_alias" && ac_tool_prefix=$host_alias-
1360
1361test "$silent" = yes && exec 6>/dev/null
252b5132 1362
252b5132 1363
81ecdfbb
RW
1364ac_pwd=`pwd` && test -n "$ac_pwd" &&
1365ac_ls_di=`ls -di .` &&
1366ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1367 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1368test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1369 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1370
1371
252b5132
RH
1372# Find the source files, if location was not specified.
1373if test -z "$srcdir"; then
1374 ac_srcdir_defaulted=yes
81ecdfbb
RW
1375 # Try the directory containing this script, then the parent directory.
1376 ac_confdir=`$as_dirname -- "$as_myself" ||
1377$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1378 X"$as_myself" : 'X\(//\)[^/]' \| \
1379 X"$as_myself" : 'X\(//\)$' \| \
1380 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1381$as_echo X"$as_myself" |
1382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\/\)[^/].*/{
1387 s//\1/
1388 q
1389 }
1390 /^X\(\/\/\)$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\).*/{
1395 s//\1/
1396 q
1397 }
1398 s/.*/./; q'`
252b5132 1399 srcdir=$ac_confdir
81ecdfbb 1400 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1401 srcdir=..
1402 fi
1403else
1404 ac_srcdir_defaulted=no
1405fi
81ecdfbb
RW
1406if test ! -r "$srcdir/$ac_unique_file"; then
1407 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1408 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1409fi
1410ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1411ac_abs_confdir=`(
d0ac1c44 1412 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1413 pwd)`
1414# When building in place, set srcdir=.
1415if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 srcdir=.
1417fi
1418# Remove unnecessary trailing slashes from srcdir.
1419# Double slashes in file names in object file debugging info
1420# mess up M-x gdb in Emacs.
1421case $srcdir in
1422*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1423esac
1424for ac_var in $ac_precious_vars; do
1425 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_${ac_var}_value=\$${ac_var}
1427 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429done
252b5132 1430
42ecbf5e
DJ
1431#
1432# Report the --help message.
1433#
1434if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1437 cat <<_ACEOF
b5c37946 1438\`configure' configures ld 2.41.50 to adapt to many kinds of systems.
252b5132 1439
42ecbf5e 1440Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 1441
42ecbf5e
DJ
1442To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 1444
42ecbf5e 1445Defaults for the options are specified in brackets.
ac48eca1 1446
42ecbf5e
DJ
1447Configuration:
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
d0ac1c44 1452 -q, --quiet, --silent do not print \`checking ...' messages
42ecbf5e
DJ
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1457
42ecbf5e
DJ
1458Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1460 [$ac_default_prefix]
42ecbf5e 1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1462 [PREFIX]
ac48eca1 1463
42ecbf5e
DJ
1464By default, \`make install' will install all the files in
1465\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467for instance \`--prefix=\$HOME'.
ac48eca1 1468
42ecbf5e 1469For better control, use the options below.
ac48eca1 1470
42ecbf5e 1471Fine tuning of the installation directories:
81ecdfbb
RW
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1486 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
81ecdfbb
RW
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
42ecbf5e 1491_ACEOF
ac48eca1 1492
42ecbf5e 1493 cat <<\_ACEOF
252b5132 1494
42ecbf5e
DJ
1495Program names:
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 1499
42ecbf5e
DJ
1500System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 --target=TARGET configure for building compilers for TARGET [HOST]
1504_ACEOF
252b5132 1505fi
252b5132 1506
42ecbf5e 1507if test -n "$ac_init_help"; then
2e98a7bd 1508 case $ac_init_help in
b5c37946 1509 short | recursive ) echo "Configuration of ld 2.41.50:";;
2e98a7bd 1510 esac
42ecbf5e 1511 cat <<\_ACEOF
e5a52504 1512
42ecbf5e 1513Optional Features:
81ecdfbb 1514 --disable-option-checking ignore unrecognized --enable/--with options
42ecbf5e
DJ
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1517 --enable-silent-rules less verbose build output (undo: "make V=1")
1518 --disable-silent-rules verbose build output (undo: "make V=0")
1519 --enable-maintainer-mode
1520 enable make rules and dependencies not useful (and
1521 sometimes confusing) to the casual installer
c774eab1
AM
1522 --enable-dependency-tracking
1523 do not reject slow dependency extractors
1524 --disable-dependency-tracking
1525 speeds up one-time build
b879806f
AM
1526 --enable-shared[=PKGS] build shared libraries [default=yes]
1527 --enable-static[=PKGS] build static libraries [default=yes]
1528 --enable-fast-install[=PKGS]
1529 optimize for fast installation [default=yes]
1530 --disable-libtool-lock avoid locking (might break parallel builds)
1531 --enable-plugins Enable support for plugins
1532 --disable-largefile omit support for large files
43e05cd4 1533 --enable-checking enable run-time checks
ce2cded5
L
1534 --enable-targets alternative target configurations
1535 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
c7791212 1536 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7fb9f789
NC
1537 --enable-got=<type> GOT handling scheme (target, single, negative,
1538 multigot)
4894d80b
L
1539 --enable-compressed-debug-sections={all,ld,none}
1540 compress debug sections by default]
b0c295e1
ML
1541 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1542 Default compression algorithm for
1543 --enable-compressed-debug-sections.
6734f10a 1544 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default]
647e4d46 1545 --enable-relro enable -z relro in ELF linker by default
b32632c4
L
1546 --enable-textrel-check=[yes|no|warning|error]
1547 enable DT_TEXTREL check in ELF linker
f6aec96d 1548 --enable-separate-code enable -z separate-code in ELF linker by default
ba951afb 1549 --enable-warn-execstack enable warnings when creating an executable stack
88bbac7c
MW
1550 --enable-error-execstack
1551 turn executable stack warnings into errors
ba951afb 1552 --enable-warn-rwx-segments
b5c37946 1553 enable warnings when creating segments with RWX
ba951afb 1554 permissions
88bbac7c
MW
1555 --enable-error-rwx-segments
1556 turn executable segment warnings into errors
ba951afb
NC
1557 --enable-default-execstack
1558 create an executable stack if an input file is
1559 missing a .note.GNU-stack section
23ae20f5
NC
1560 --enable-error-handling-script
1561 enable/disable support for the
1562 --error-handling-script option
2760f24c
RG
1563 --enable-default-hash-style={sysv,gnu,both}
1564 use this default hash style
c774eab1 1565 --disable-initfini-array do not use .init_array/.fini_array sections
094e34f2 1566 --enable-libctf Handle .ctf type-info sections [default=yes]
9e2bb0cb 1567 --enable-jansson enable jansson [default=no]
ce2cded5
L
1568 --enable-werror treat compile warnings as errors
1569 --enable-build-warnings enable build-time compiler warnings
42ecbf5e 1570 --disable-nls do not use Native Language Support
862776f2 1571 --disable-rpath do not hardcode runtime library paths
42ecbf5e
DJ
1572
1573Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b879806f
AM
1579 --with-lib-path=dir1:dir2... set default LIB_PATH
1580 --with-sysroot=DIR Search for usr/lib et al within DIR.
862776f2
AA
1581 --with-gnu-ld assume the C compiler uses GNU ld default=no
1582 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1583 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1584 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1585 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1586 --without-libintl-prefix don't search for libintl in includedir and libdir
1587 --with-libintl-type=TYPE type of library to search for (auto/static/shared)
1ff6de03 1588 --with-system-zlib use installed libz
2cac01e3
FS
1589 --with-zstd support zstd compressed debug sections
1590 (default=auto)
42ecbf5e
DJ
1591
1592Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
81ecdfbb 1597 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1598 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1599 you have headers in a nonstandard directory <include dir>
3cb62297
L
1600 CXX C++ compiler command
1601 CXXFLAGS C++ compiler flags
b879806f 1602 CPP C preprocessor
9e2bb0cb
LB
1603 PKG_CONFIG path to pkg-config utility
1604 PKG_CONFIG_PATH
1605 directories to add to pkg-config's search path
1606 PKG_CONFIG_LIBDIR
1607 path overriding pkg-config's built-in search path
2cac01e3 1608 CXXCPP C++ preprocessor
9e2bb0cb
LB
1609 JANSSON_CFLAGS
1610 C compiler flags for JANSSON, overriding pkg-config
1611 JANSSON_LIBS
1612 linker flags for JANSSON, overriding pkg-config
d0ac1c44
SM
1613 YACC The `Yet Another Compiler Compiler' implementation to use.
1614 Defaults to the first program found out of: `bison -y', `byacc',
1615 `yacc'.
81ecdfbb
RW
1616 YFLAGS The list of arguments that will be passed by default to $YACC.
1617 This script will default YFLAGS to the empty string to avoid a
1618 default value of `-d' given by some make applications.
2cac01e3
FS
1619 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1620 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
42ecbf5e
DJ
1621
1622Use these variables to override the choices made by `configure' or to help
1623it to find libraries and programs with nonstandard names/locations.
1624
81ecdfbb 1625Report bugs to the package provider.
42ecbf5e 1626_ACEOF
81ecdfbb 1627ac_status=$?
42ecbf5e
DJ
1628fi
1629
1630if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
42ecbf5e 1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1635 continue
42ecbf5e
DJ
1636 ac_builddir=.
1637
81ecdfbb
RW
1638case "$ac_dir" in
1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640*)
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1647 esac ;;
1648esac
1649ac_abs_top_builddir=$ac_pwd
1650ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651# for backward compatibility:
1652ac_top_builddir=$ac_top_build_prefix
42ecbf5e
DJ
1653
1654case $srcdir in
81ecdfbb 1655 .) # We are building in place.
42ecbf5e 1656 ac_srcdir=.
81ecdfbb
RW
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 1660 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1663 *) # Relative name.
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 1667esac
81ecdfbb
RW
1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1669
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
42ecbf5e 1678 else
81ecdfbb
RW
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
42ecbf5e 1682 done
a2d91340
AC
1683fi
1684
81ecdfbb 1685test -n "$ac_init_help" && exit $ac_status
42ecbf5e
DJ
1686if $ac_init_version; then
1687 cat <<\_ACEOF
b5c37946 1688ld configure 2.41.50
d0ac1c44 1689generated by GNU Autoconf 2.69
a2d91340 1690
d0ac1c44 1691Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
1692This configure script is free software; the Free Software Foundation
1693gives unlimited permission to copy, distribute and modify it.
1694_ACEOF
81ecdfbb 1695 exit
42ecbf5e 1696fi
a2d91340 1697
81ecdfbb
RW
1698## ------------------------ ##
1699## Autoconf initialization. ##
1700## ------------------------ ##
a2d91340 1701
81ecdfbb
RW
1702# ac_fn_c_try_compile LINENO
1703# --------------------------
1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
1705ac_fn_c_try_compile ()
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
a2d91340 1732
81ecdfbb
RW
1733 ac_retval=1
1734fi
d0ac1c44
SM
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
81ecdfbb
RW
1737
1738} # ac_fn_c_try_compile
1739
b879806f
AM
1740# ac_fn_cxx_try_compile LINENO
1741# ----------------------------
1742# Try to compile conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_cxx_try_compile ()
81ecdfbb
RW
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f
AM
1746 rm -f conftest.$ac_objext
1747 if { { ac_try="$ac_compile"
81ecdfbb
RW
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
b879806f 1754 (eval "$ac_compile") 2>conftest.err
81ecdfbb
RW
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b879806f
AM
1762 test $ac_status = 0; } && {
1763 test -z "$ac_cxx_werror_flag" ||
81ecdfbb 1764 test ! -s conftest.err
b879806f 1765 } && test -s conftest.$ac_objext; then :
81ecdfbb
RW
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
b879806f 1771 ac_retval=1
81ecdfbb 1772fi
d0ac1c44
SM
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 as_fn_set_status $ac_retval
81ecdfbb 1775
b879806f 1776} # ac_fn_cxx_try_compile
81ecdfbb 1777
b879806f
AM
1778# ac_fn_c_try_cpp LINENO
1779# ----------------------
1780# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781ac_fn_c_try_cpp ()
3cb62297
L
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b879806f 1784 if { { ac_try="$ac_cpp conftest.$ac_ext"
3cb62297
L
1785case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
b879806f 1791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3cb62297
L
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1799 test $ac_status = 0; } > conftest.i && {
b879806f 1800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3cb62297 1801 test ! -s conftest.err
b879806f 1802 }; then :
3cb62297
L
1803 ac_retval=0
1804else
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
b879806f 1808 ac_retval=1
3cb62297 1809fi
d0ac1c44
SM
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
3cb62297 1812
b879806f 1813} # ac_fn_c_try_cpp
3cb62297 1814
81ecdfbb
RW
1815# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1816# -------------------------------------------------------
1817# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1818# the include files in INCLUDES and setting the cache variable VAR
1819# accordingly.
1820ac_fn_c_check_header_mongrel ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1823 if eval \${$3+:} false; then :
81ecdfbb
RW
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1826if eval \${$3+:} false; then :
81ecdfbb
RW
1827 $as_echo_n "(cached) " >&6
1828fi
1829eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832else
1833 # Is the header compilable?
1834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1835$as_echo_n "checking $2 usability... " >&6; }
1836cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838$4
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_header_compiler=yes
1843else
1844 ac_header_compiler=no
1845fi
1846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1848$as_echo "$ac_header_compiler" >&6; }
1849
1850# Is the header present?
1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1852$as_echo_n "checking $2 presence... " >&6; }
1853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h. */
1855#include <$2>
1856_ACEOF
1857if ac_fn_c_try_cpp "$LINENO"; then :
1858 ac_header_preproc=yes
1859else
1860 ac_header_preproc=no
1861fi
d0ac1c44 1862rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1864$as_echo "$ac_header_preproc" >&6; }
1865
1866# So? What about this header?
1867case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 yes:no: )
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1870$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 ;;
1874 no:yes:* )
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1876$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1878$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1880$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1882$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 ;;
1886esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1889if eval \${$3+:} false; then :
81ecdfbb
RW
1890 $as_echo_n "(cached) " >&6
1891else
1892 eval "$3=\$ac_header_compiler"
1893fi
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897fi
d0ac1c44 1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1899
1900} # ac_fn_c_check_header_mongrel
1901
1902# ac_fn_c_try_run LINENO
1903# ----------------------
1904# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1905# that executables *can* be run.
1906ac_fn_c_try_run ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_link"
1910case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_link") 2>&5
1917 ac_status=$?
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1920 { { case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923esac
1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925$as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_try") 2>&5
1927 ac_status=$?
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; }; }; then :
1930 ac_retval=0
1931else
1932 $as_echo "$as_me: program exited with status $ac_status" >&5
1933 $as_echo "$as_me: failed program was:" >&5
1934sed 's/^/| /' conftest.$ac_ext >&5
1935
1936 ac_retval=$ac_status
1937fi
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
81ecdfbb
RW
1941
1942} # ac_fn_c_try_run
1943
1944# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1945# -------------------------------------------------------
1946# Tests whether HEADER exists and can be compiled using the include files in
1947# INCLUDES, setting the cache variable VAR accordingly.
1948ac_fn_c_check_header_compile ()
1949{
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1953if eval \${$3+:} false; then :
81ecdfbb
RW
1954 $as_echo_n "(cached) " >&6
1955else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958$4
1959#include <$2>
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962 eval "$3=yes"
1963else
1964 eval "$3=no"
1965fi
1966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
d0ac1c44 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1972
1973} # ac_fn_c_check_header_compile
1974
c774eab1
AM
1975# ac_fn_c_try_link LINENO
1976# -----------------------
1977# Try to link conftest.$ac_ext, and return whether this succeeded.
1978ac_fn_c_try_link ()
1979{
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1983case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986esac
1987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988$as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1995 fi
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_c_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 test -x conftest$ac_exeext
2003 }; then :
2004 ac_retval=0
2005else
2006 $as_echo "$as_me: failed program was:" >&5
2007sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1
2010fi
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 as_fn_set_status $ac_retval
2018
2019} # ac_fn_c_try_link
2020
81ecdfbb
RW
2021# ac_fn_c_check_func LINENO FUNC VAR
2022# ----------------------------------
2023# Tests whether FUNC exists, setting the cache variable VAR accordingly
2024ac_fn_c_check_func ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028$as_echo_n "checking for $2... " >&6; }
d0ac1c44 2029if eval \${$3+:} false; then :
81ecdfbb
RW
2030 $as_echo_n "(cached) " >&6
2031else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2036#define $2 innocuous_$2
2037
2038/* System header to define __stub macros and hopefully few prototypes,
2039 which can conflict with char $2 (); below.
2040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2041 <limits.h> exists even on freestanding compilers. */
2042
2043#ifdef __STDC__
2044# include <limits.h>
2045#else
2046# include <assert.h>
2047#endif
2048
2049#undef $2
2050
2051/* Override any GCC internal prototype to avoid an error.
2052 Use char because int might match the return type of a GCC
2053 builtin and then its argument prototype would still apply. */
2054#ifdef __cplusplus
2055extern "C"
2056#endif
2057char $2 ();
2058/* The GNU C library defines this for functions which it implements
2059 to always fail with ENOSYS. Some functions are actually named
2060 something starting with __ and the normal name is an alias. */
2061#if defined __stub_$2 || defined __stub___$2
2062choke me
2063#endif
2064
2065int
2066main ()
2067{
2068return $2 ();
2069 ;
2070 return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_link "$LINENO"; then :
2074 eval "$3=yes"
2075else
2076 eval "$3=no"
2077fi
2078rm -f core conftest.err conftest.$ac_objext \
2079 conftest$ac_exeext conftest.$ac_ext
2080fi
2081eval ac_res=\$$3
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
d0ac1c44 2084 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2085
2086} # ac_fn_c_check_func
2087
3cb62297
L
2088# ac_fn_cxx_try_cpp LINENO
2089# ------------------------
2090# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2091ac_fn_cxx_try_cpp ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_cpp conftest.$ac_ext"
2095case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098esac
2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100$as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 2109 test $ac_status = 0; } > conftest.i && {
3cb62297
L
2110 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 }; then :
2113 ac_retval=0
2114else
2115 $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=1
2119fi
d0ac1c44
SM
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 as_fn_set_status $ac_retval
3cb62297
L
2122
2123} # ac_fn_cxx_try_cpp
2124
2125# ac_fn_cxx_try_link LINENO
2126# -------------------------
2127# Try to link conftest.$ac_ext, and return whether this succeeded.
2128ac_fn_cxx_try_link ()
2129{
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext conftest$ac_exeext
2132 if { { ac_try="$ac_link"
2133case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>conftest.err
2140 ac_status=$?
2141 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2145 fi
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_cxx_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest$ac_exeext && {
2151 test "$cross_compiling" = yes ||
d0ac1c44 2152 test -x conftest$ac_exeext
3cb62297
L
2153 }; then :
2154 ac_retval=0
2155else
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=1
2160fi
2161 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2162 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2163 # interfere with the next link command; also delete a directory that is
2164 # left behind by Apple's compiler. We do this before executing the actions.
2165 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 as_fn_set_status $ac_retval
3cb62297
L
2168
2169} # ac_fn_cxx_try_link
2170
81ecdfbb
RW
2171# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2172# --------------------------------------------
2173# Tries to find the compile-time value of EXPR in a program that includes
2174# INCLUDES, setting VAR accordingly. Returns whether the value could be
2175# computed
2176ac_fn_c_compute_int ()
2177{
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 if test "$cross_compiling" = yes; then
2180 # Depending upon the size, compute the lo and hi bounds.
2181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$4
2184int
2185main ()
2186{
2187static int test_array [1 - 2 * !(($2) >= 0)];
d0ac1c44
SM
2188test_array [0] = 0;
2189return test_array [0];
81ecdfbb
RW
2190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_lo=0 ac_mid=0
2197 while :; do
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201int
2202main ()
2203{
2204static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2205test_array [0] = 0;
2206return test_array [0];
81ecdfbb
RW
2207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_hi=$ac_mid; break
2214else
2215 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2216 if test $ac_lo -le $ac_mid; then
2217 ac_lo= ac_hi=
2218 break
2219 fi
2220 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224else
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h. */
2227$4
2228int
2229main ()
2230{
2231static int test_array [1 - 2 * !(($2) < 0)];
d0ac1c44
SM
2232test_array [0] = 0;
2233return test_array [0];
81ecdfbb
RW
2234
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240 ac_hi=-1 ac_mid=-1
2241 while :; do
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244$4
2245int
2246main ()
2247{
2248static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d0ac1c44
SM
2249test_array [0] = 0;
2250return test_array [0];
81ecdfbb
RW
2251
2252 ;
2253 return 0;
2254}
2255_ACEOF
2256if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_lo=$ac_mid; break
2258else
2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2260 if test $ac_mid -le $ac_hi; then
2261 ac_lo= ac_hi=
2262 break
2263 fi
2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2265fi
2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268else
2269 ac_lo= ac_hi=
2270fi
2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272fi
2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274# Binary search between lo and hi bounds.
2275while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278/* end confdefs.h. */
2279$4
2280int
2281main ()
2282{
2283static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d0ac1c44
SM
2284test_array [0] = 0;
2285return test_array [0];
81ecdfbb
RW
2286
2287 ;
2288 return 0;
2289}
2290_ACEOF
2291if ac_fn_c_try_compile "$LINENO"; then :
2292 ac_hi=$ac_mid
2293else
2294 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297done
2298case $ac_lo in #((
2299?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2300'') ac_retval=1 ;;
2301esac
2302 else
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304/* end confdefs.h. */
2305$4
2306static long int longval () { return $2; }
2307static unsigned long int ulongval () { return $2; }
2308#include <stdio.h>
2309#include <stdlib.h>
2310int
2311main ()
2312{
2313
2314 FILE *f = fopen ("conftest.val", "w");
2315 if (! f)
2316 return 1;
2317 if (($2) < 0)
2318 {
2319 long int i = longval ();
2320 if (i != ($2))
2321 return 1;
2322 fprintf (f, "%ld", i);
2323 }
2324 else
2325 {
2326 unsigned long int i = ulongval ();
2327 if (i != ($2))
2328 return 1;
2329 fprintf (f, "%lu", i);
2330 }
2331 /* Do not output a trailing newline, as this causes \r\n confusion
2332 on some platforms. */
2333 return ferror (f) || fclose (f) != 0;
2334
2335 ;
2336 return 0;
2337}
2338_ACEOF
2339if ac_fn_c_try_run "$LINENO"; then :
2340 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2341else
2342 ac_retval=1
2343fi
2344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2345 conftest.$ac_objext conftest.beam conftest.$ac_ext
2346rm -f conftest.val
2347
2348 fi
d0ac1c44
SM
2349 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 as_fn_set_status $ac_retval
81ecdfbb
RW
2351
2352} # ac_fn_c_compute_int
1d5269c9
MF
2353
2354# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2355# ---------------------------------------------
2356# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2357# accordingly.
2358ac_fn_c_check_decl ()
2359{
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 as_decl_name=`echo $2|sed 's/ *(.*//'`
2362 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2364$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2365if eval \${$3+:} false; then :
2366 $as_echo_n "(cached) " >&6
2367else
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369/* end confdefs.h. */
2370$4
2371int
2372main ()
2373{
2374#ifndef $as_decl_name
2375#ifdef __cplusplus
2376 (void) $as_decl_use;
2377#else
2378 (void) $as_decl_name;
2379#endif
2380#endif
2381
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$3=yes"
2388else
2389 eval "$3=no"
2390fi
2391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392fi
2393eval ac_res=\$$3
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2395$as_echo "$ac_res" >&6; }
2396 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2397
2398} # ac_fn_c_check_decl
81ecdfbb
RW
2399cat >config.log <<_ACEOF
2400This file contains any messages produced by compilers while
2401running configure, to aid debugging if configure makes a mistake.
2402
b5c37946 2403It was created by ld $as_me 2.41.50, which was
d0ac1c44 2404generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2405
2406 $ $0 $@
2407
2408_ACEOF
2409exec 5>>config.log
2410{
2411cat <<_ASUNAME
2412## --------- ##
2413## Platform. ##
2414## --------- ##
2415
2416hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2417uname -m = `(uname -m) 2>/dev/null || echo unknown`
2418uname -r = `(uname -r) 2>/dev/null || echo unknown`
2419uname -s = `(uname -s) 2>/dev/null || echo unknown`
2420uname -v = `(uname -v) 2>/dev/null || echo unknown`
2421
2422/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2423/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2424
2425/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2426/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2427/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2428/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
42ecbf5e
DJ
2429/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2430/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2431/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2432
2433_ASUNAME
2434
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2440 $as_echo "PATH: $as_dir"
2441 done
2442IFS=$as_save_IFS
252b5132 2443
42ecbf5e 2444} >&5
5d64ca4e 2445
42ecbf5e 2446cat >&5 <<_ACEOF
5d64ca4e 2447
5d64ca4e 2448
42ecbf5e
DJ
2449## ----------- ##
2450## Core tests. ##
2451## ----------- ##
5d64ca4e 2452
42ecbf5e 2453_ACEOF
2469cfa2 2454
42ecbf5e
DJ
2455
2456# Keep a trace of the command line.
2457# Strip out --no-create and --no-recursion so they do not pile up.
2458# Strip out --silent because we don't want to record it for future runs.
2459# Also quote any args containing shell meta-characters.
2460# Make two passes to allow for proper duplicate-argument suppression.
2461ac_configure_args=
2462ac_configure_args0=
2463ac_configure_args1=
42ecbf5e
DJ
2464ac_must_keep_next=false
2465for ac_pass in 1 2
2466do
2467 for ac_arg
2468 do
2469 case $ac_arg in
2470 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2471 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2472 | -silent | --silent | --silen | --sile | --sil)
2473 continue ;;
81ecdfbb
RW
2474 *\'*)
2475 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2476 esac
2477 case $ac_pass in
81ecdfbb 2478 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
42ecbf5e 2479 2)
81ecdfbb 2480 as_fn_append ac_configure_args1 " '$ac_arg'"
42ecbf5e
DJ
2481 if test $ac_must_keep_next = true; then
2482 ac_must_keep_next=false # Got value, back to normal.
2483 else
2484 case $ac_arg in
2485 *=* | --config-cache | -C | -disable-* | --disable-* \
2486 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2487 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2488 | -with-* | --with-* | -without-* | --without-* | --x)
2489 case "$ac_configure_args0 " in
2490 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2491 esac
2492 ;;
2493 -* ) ac_must_keep_next=true ;;
2494 esac
2495 fi
81ecdfbb 2496 as_fn_append ac_configure_args " '$ac_arg'"
42ecbf5e
DJ
2497 ;;
2498 esac
2499 done
2500done
81ecdfbb
RW
2501{ ac_configure_args0=; unset ac_configure_args0;}
2502{ ac_configure_args1=; unset ac_configure_args1;}
42ecbf5e
DJ
2503
2504# When interrupted or exit'd, cleanup temporary files, and complete
2505# config.log. We remove comments because anyway the quotes in there
2506# would cause problems or look ugly.
81ecdfbb
RW
2507# WARNING: Use '\'' to represent an apostrophe within the trap.
2508# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
42ecbf5e
DJ
2509trap 'exit_status=$?
2510 # Save into config.log some information that might help in debugging.
2511 {
2512 echo
2513
d0ac1c44 2514 $as_echo "## ---------------- ##
42ecbf5e 2515## Cache variables. ##
d0ac1c44 2516## ---------------- ##"
42ecbf5e
DJ
2517 echo
2518 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2519(
2520 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2521 eval ac_val=\$$ac_var
2522 case $ac_val in #(
2523 *${as_nl}*)
2524 case $ac_var in #(
2525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2526$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2527 esac
2528 case $ac_var in #(
2529 _ | IFS | as_nl) ;; #(
2530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2531 *) { eval $ac_var=; unset $ac_var;} ;;
2532 esac ;;
2533 esac
2534 done
42ecbf5e 2535 (set) 2>&1 |
81ecdfbb
RW
2536 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2537 *${as_nl}ac_space=\ *)
42ecbf5e 2538 sed -n \
81ecdfbb
RW
2539 "s/'\''/'\''\\\\'\'''\''/g;
2540 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2541 ;; #(
42ecbf5e 2542 *)
81ecdfbb 2543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 2544 ;;
81ecdfbb
RW
2545 esac |
2546 sort
2547)
42ecbf5e
DJ
2548 echo
2549
d0ac1c44 2550 $as_echo "## ----------------- ##
42ecbf5e 2551## Output variables. ##
d0ac1c44 2552## ----------------- ##"
42ecbf5e
DJ
2553 echo
2554 for ac_var in $ac_subst_vars
2555 do
81ecdfbb
RW
2556 eval ac_val=\$$ac_var
2557 case $ac_val in
2558 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559 esac
2560 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2561 done | sort
2562 echo
2563
2564 if test -n "$ac_subst_files"; then
d0ac1c44 2565 $as_echo "## ------------------- ##
81ecdfbb 2566## File substitutions. ##
d0ac1c44 2567## ------------------- ##"
42ecbf5e
DJ
2568 echo
2569 for ac_var in $ac_subst_files
2570 do
81ecdfbb
RW
2571 eval ac_val=\$$ac_var
2572 case $ac_val in
2573 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574 esac
2575 $as_echo "$ac_var='\''$ac_val'\''"
42ecbf5e
DJ
2576 done | sort
2577 echo
2578 fi
2579
2580 if test -s confdefs.h; then
d0ac1c44 2581 $as_echo "## ----------- ##
42ecbf5e 2582## confdefs.h. ##
d0ac1c44 2583## ----------- ##"
42ecbf5e 2584 echo
81ecdfbb 2585 cat confdefs.h
42ecbf5e
DJ
2586 echo
2587 fi
2588 test "$ac_signal" != 0 &&
81ecdfbb
RW
2589 $as_echo "$as_me: caught signal $ac_signal"
2590 $as_echo "$as_me: exit $exit_status"
42ecbf5e 2591 } >&5
81ecdfbb
RW
2592 rm -f core *.core core.conftest.* &&
2593 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
42ecbf5e 2594 exit $exit_status
81ecdfbb 2595' 0
42ecbf5e 2596for ac_signal in 1 2 13 15; do
81ecdfbb 2597 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
42ecbf5e
DJ
2598done
2599ac_signal=0
2600
2601# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2602rm -f -r conftest* confdefs.h
2603
2604$as_echo "/* confdefs.h */" > confdefs.h
42ecbf5e
DJ
2605
2606# Predefined preprocessor variables.
2607
2608cat >>confdefs.h <<_ACEOF
2609#define PACKAGE_NAME "$PACKAGE_NAME"
2610_ACEOF
2611
42ecbf5e
DJ
2612cat >>confdefs.h <<_ACEOF
2613#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2614_ACEOF
2615
42ecbf5e
DJ
2616cat >>confdefs.h <<_ACEOF
2617#define PACKAGE_VERSION "$PACKAGE_VERSION"
2618_ACEOF
2619
42ecbf5e
DJ
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE_STRING "$PACKAGE_STRING"
2622_ACEOF
2623
42ecbf5e
DJ
2624cat >>confdefs.h <<_ACEOF
2625#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2626_ACEOF
2627
81ecdfbb
RW
2628cat >>confdefs.h <<_ACEOF
2629#define PACKAGE_URL "$PACKAGE_URL"
2630_ACEOF
2631
42ecbf5e
DJ
2632
2633# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2634# Prefer an explicitly selected file to automatically selected ones.
2635ac_site_file1=NONE
2636ac_site_file2=NONE
2637if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2638 # We do not want a PATH search for config.site.
2639 case $CONFIG_SITE in #((
2640 -*) ac_site_file1=./$CONFIG_SITE;;
2641 */*) ac_site_file1=$CONFIG_SITE;;
2642 *) ac_site_file1=./$CONFIG_SITE;;
2643 esac
81ecdfbb
RW
2644elif test "x$prefix" != xNONE; then
2645 ac_site_file1=$prefix/share/config.site
2646 ac_site_file2=$prefix/etc/config.site
2647else
2648 ac_site_file1=$ac_default_prefix/share/config.site
2649 ac_site_file2=$ac_default_prefix/etc/config.site
2650fi
2651for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2652do
2653 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2654 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656$as_echo "$as_me: loading site script $ac_site_file" >&6;}
42ecbf5e 2657 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2658 . "$ac_site_file" \
2659 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661as_fn_error $? "failed to load site script $ac_site_file
2662See \`config.log' for more details" "$LINENO" 5; }
42ecbf5e
DJ
2663 fi
2664done
2665
2666if test -r "$cache_file"; then
d0ac1c44
SM
2667 # Some versions of bash will fail to source /dev/null (special files
2668 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2669 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671$as_echo "$as_me: loading cache $cache_file" >&6;}
42ecbf5e 2672 case $cache_file in
81ecdfbb
RW
2673 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674 *) . "./$cache_file";;
42ecbf5e
DJ
2675 esac
2676 fi
2677else
81ecdfbb
RW
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679$as_echo "$as_me: creating cache $cache_file" >&6;}
42ecbf5e
DJ
2680 >$cache_file
2681fi
2682
862776f2 2683gt_needs="$gt_needs "
d0ac1c44
SM
2684as_fn_append ac_header_list " stdlib.h"
2685as_fn_append ac_header_list " unistd.h"
2686as_fn_append ac_header_list " sys/param.h"
42ecbf5e
DJ
2687# Check that the precious variables saved in the cache have kept the same
2688# value.
2689ac_cache_corrupted=false
81ecdfbb 2690for ac_var in $ac_precious_vars; do
42ecbf5e
DJ
2691 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2692 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2693 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2694 eval ac_new_val=\$ac_env_${ac_var}_value
42ecbf5e
DJ
2695 case $ac_old_set,$ac_new_set in
2696 set,)
81ecdfbb
RW
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2698$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
42ecbf5e
DJ
2699 ac_cache_corrupted=: ;;
2700 ,set)
81ecdfbb
RW
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2702$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
42ecbf5e
DJ
2703 ac_cache_corrupted=: ;;
2704 ,);;
2705 *)
2706 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2707 # differences in whitespace do not lead to failure.
2708 ac_old_val_w=`echo x $ac_old_val`
2709 ac_new_val_w=`echo x $ac_new_val`
2710 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2712$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2713 ac_cache_corrupted=:
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2716$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2717 eval $ac_var=\$ac_old_val
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2720$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2722$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
42ecbf5e
DJ
2723 fi;;
2724 esac
2725 # Pass precious variables to config.status.
2726 if test "$ac_new_set" = set; then
2727 case $ac_new_val in
81ecdfbb 2728 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
42ecbf5e
DJ
2729 *) ac_arg=$ac_var=$ac_new_val ;;
2730 esac
2731 case " $ac_configure_args " in
2732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2733 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
42ecbf5e
DJ
2734 esac
2735 fi
2736done
2737if $ac_cache_corrupted; then
81ecdfbb
RW
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2741$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2742 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
42ecbf5e 2743fi
81ecdfbb
RW
2744## -------------------- ##
2745## Main body of script. ##
2746## -------------------- ##
42ecbf5e
DJ
2747
2748ac_ext=c
2749ac_cpp='$CPP $CPPFLAGS'
2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754
2755
42ecbf5e 2756
da594c4a 2757
42ecbf5e
DJ
2758
2759
2760ac_aux_dir=
81ecdfbb 2761for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2762 if test -f "$ac_dir/install-sh"; then
2763 ac_aux_dir=$ac_dir
2764 ac_install_sh="$ac_aux_dir/install-sh -c"
2765 break
2766 elif test -f "$ac_dir/install.sh"; then
2767 ac_aux_dir=$ac_dir
2768 ac_install_sh="$ac_aux_dir/install.sh -c"
2769 break
2770 elif test -f "$ac_dir/shtool"; then
2771 ac_aux_dir=$ac_dir
2772 ac_install_sh="$ac_aux_dir/shtool install -c"
2773 break
2774 fi
42ecbf5e
DJ
2775done
2776if test -z "$ac_aux_dir"; then
d0ac1c44 2777 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
42ecbf5e 2778fi
81ecdfbb
RW
2779
2780# These three variables are undocumented and unsupported,
2781# and are intended to be withdrawn in a future Autoconf release.
2782# They can cause serious problems if a builder's source tree is in a directory
2783# whose full name contains unusual characters.
2784ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2785ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2786ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2787
42ecbf5e
DJ
2788
2789# Make sure we can run config.sub.
81ecdfbb 2790$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2791 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2792
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2794$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2795if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2796 $as_echo_n "(cached) " >&6
2797else
2798 ac_build_alias=$build_alias
2799test "x$ac_build_alias" = x &&
2800 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2801test "x$ac_build_alias" = x &&
d0ac1c44 2802 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2803ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2804 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2805
2806fi
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2808$as_echo "$ac_cv_build" >&6; }
2809case $ac_cv_build in
2810*-*-*) ;;
d0ac1c44 2811*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2812esac
42ecbf5e 2813build=$ac_cv_build
81ecdfbb
RW
2814ac_save_IFS=$IFS; IFS='-'
2815set x $ac_cv_build
2816shift
2817build_cpu=$1
2818build_vendor=$2
2819shift; shift
2820# Remember, the first character of IFS is used to create $*,
2821# except with old shells:
2822build_os=$*
2823IFS=$ac_save_IFS
2824case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2825
2826
81ecdfbb
RW
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2828$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2829if ${ac_cv_host+:} false; then :
81ecdfbb
RW
2830 $as_echo_n "(cached) " >&6
2831else
2832 if test "x$host_alias" = x; then
2833 ac_cv_host=$ac_cv_build
42ecbf5e 2834else
81ecdfbb 2835 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2836 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2837fi
42ecbf5e
DJ
2838
2839fi
81ecdfbb
RW
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2841$as_echo "$ac_cv_host" >&6; }
2842case $ac_cv_host in
2843*-*-*) ;;
d0ac1c44 2844*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2845esac
42ecbf5e 2846host=$ac_cv_host
81ecdfbb
RW
2847ac_save_IFS=$IFS; IFS='-'
2848set x $ac_cv_host
2849shift
2850host_cpu=$1
2851host_vendor=$2
2852shift; shift
2853# Remember, the first character of IFS is used to create $*,
2854# except with old shells:
2855host_os=$*
2856IFS=$ac_save_IFS
2857case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2858
2859
81ecdfbb
RW
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2861$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2862if ${ac_cv_target+:} false; then :
81ecdfbb 2863 $as_echo_n "(cached) " >&6
42ecbf5e 2864else
81ecdfbb
RW
2865 if test "x$target_alias" = x; then
2866 ac_cv_target=$ac_cv_host
2867else
2868 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2869 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2870fi
42ecbf5e
DJ
2871
2872fi
81ecdfbb
RW
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2874$as_echo "$ac_cv_target" >&6; }
2875case $ac_cv_target in
2876*-*-*) ;;
d0ac1c44 2877*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2878esac
42ecbf5e 2879target=$ac_cv_target
81ecdfbb
RW
2880ac_save_IFS=$IFS; IFS='-'
2881set x $ac_cv_target
2882shift
2883target_cpu=$1
2884target_vendor=$2
2885shift; shift
2886# Remember, the first character of IFS is used to create $*,
2887# except with old shells:
2888target_os=$*
2889IFS=$ac_save_IFS
2890case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
42ecbf5e
DJ
2891
2892
2893# The aliases save the names the user supplied, while $host etc.
2894# will get canonicalized.
2895test -n "$target_alias" &&
2896 test "$program_prefix$program_suffix$program_transform_name" = \
2897 NONENONEs,x,x, &&
2898 program_prefix=${target_alias}-
02ecc8e9 2899
d0ac1c44 2900
5bbe6ec5 2901am__api_version='1.15'
c774eab1
AM
2902
2903# Find a good install program. We prefer a C program (faster),
2904# so one script is as good as another. But avoid the broken or
2905# incompatible versions:
2906# SysV /etc/install, /usr/sbin/install
2907# SunOS /usr/etc/install
2908# IRIX /sbin/install
2909# AIX /bin/install
2910# AmigaOS /C/install, which installs bootblocks on floppy discs
2911# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2912# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2913# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2914# OS/2's system install, which has a completely different semantic
2915# ./install, which can be erroneously created by make from ./install.sh.
2916# Reject install programs that cannot install multiple files.
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2918$as_echo_n "checking for a BSD-compatible install... " >&6; }
2919if test -z "$INSTALL"; then
2920if ${ac_cv_path_install+:} false; then :
81ecdfbb 2921 $as_echo_n "(cached) " >&6
42ecbf5e 2922else
c774eab1 2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42ecbf5e
DJ
2924for as_dir in $PATH
2925do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
c774eab1
AM
2928 # Account for people who put trailing slashes in PATH elements.
2929case $as_dir/ in #((
2930 ./ | .// | /[cC]/* | \
2931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2933 /usr/ucb/* ) ;;
2934 *)
2935 # OSF1 and SCO ODT 3.0 have their own names for install.
2936 # Don't use installbsd from OSF since it installs stuff as root
2937 # by default.
2938 for ac_prog in ginstall scoinst install; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2941 if test $ac_prog = install &&
2942 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943 # AIX install. It has an incompatible calling convention.
2944 :
2945 elif test $ac_prog = install &&
2946 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2947 # program-specific install script used by HP pwplus--don't use.
2948 :
2949 else
2950 rm -rf conftest.one conftest.two conftest.dir
2951 echo one > conftest.one
2952 echo two > conftest.two
2953 mkdir conftest.dir
2954 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2955 test -s conftest.one && test -s conftest.two &&
2956 test -s conftest.dir/conftest.one &&
2957 test -s conftest.dir/conftest.two
2958 then
2959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2960 break 3
2961 fi
2962 fi
2963 fi
2964 done
2965 done
2966 ;;
2967esac
2968
81ecdfbb
RW
2969 done
2970IFS=$as_save_IFS
42ecbf5e 2971
c774eab1
AM
2972rm -rf conftest.one conftest.two conftest.dir
2973
42ecbf5e 2974fi
c774eab1
AM
2975 if test "${ac_cv_path_install+set}" = set; then
2976 INSTALL=$ac_cv_path_install
2977 else
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for INSTALL within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 INSTALL=$ac_install_sh
2983 fi
42ecbf5e 2984fi
c774eab1
AM
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986$as_echo "$INSTALL" >&6; }
42ecbf5e 2987
c774eab1
AM
2988# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989# It thinks the first close brace ends the variable substitution.
2990test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 2991
42ecbf5e 2992test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2993
2994test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2995
81ecdfbb
RW
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
2998# Reject unsafe characters in $srcdir or the absolute working directory
2999# name. Accept space and tab only in the latter.
3000am_lf='
3001'
3002case `pwd` in
3003 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 3004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
3005esac
3006case $srcdir in
3007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 3008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
3009esac
3010
d0ac1c44 3011# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
3012# arguments. Must try -L first in case configure is actually a
3013# symlink; some systems play weird games with the mod time of symlinks
3014# (eg FreeBSD returns the mod time of the symlink's containing
3015# directory).
3016if (
d0ac1c44
SM
3017 am_has_slept=no
3018 for am_try in 1 2; do
3019 echo "timestamp, slept: $am_has_slept" > conftest.file
3020 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021 if test "$*" = "X"; then
3022 # -L didn't work.
3023 set X `ls -t "$srcdir/configure" conftest.file`
3024 fi
3025 if test "$*" != "X $srcdir/configure conftest.file" \
3026 && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
3032 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3033 alias in your environment" "$LINENO" 5
3034 fi
3035 if test "$2" = conftest.file || test $am_try -eq 2; then
3036 break
3037 fi
3038 # Just in case.
3039 sleep 1
3040 am_has_slept=yes
3041 done
42ecbf5e 3042 test "$2" = conftest.file
252b5132
RH
3043 )
3044then
3045 # Ok.
3046 :
3047else
d0ac1c44 3048 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3049Check your system clock" "$LINENO" 5
252b5132 3050fi
81ecdfbb
RW
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052$as_echo "yes" >&6; }
d0ac1c44
SM
3053# If we didn't sleep, we still need to ensure time stamps of config.status and
3054# generated files are strictly newer.
3055am_sleep_pid=
3056if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3057 ( sleep 1 ) &
3058 am_sleep_pid=$!
3059fi
3060
3061rm -f conftest.file
3062
252b5132 3063test "$program_prefix" != NONE &&
81ecdfbb 3064 program_transform_name="s&^&$program_prefix&;$program_transform_name"
252b5132
RH
3065# Use a double $ so make ignores it.
3066test "$program_suffix" != NONE &&
81ecdfbb
RW
3067 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3068# Double any \ or $.
42ecbf5e 3069# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3070ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3071program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
42ecbf5e 3072
c774eab1
AM
3073# Expand $ac_aux_dir to an absolute path.
3074am_aux_dir=`cd "$ac_aux_dir" && pwd`
3075
81ecdfbb 3076if test x"${MISSING+set}" != xset; then
5bbe6ec5
NC
3077 case $am_aux_dir in
3078 *\ * | *\ *)
3079 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3080 *)
3081 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3082 esac
81ecdfbb 3083fi
42ecbf5e 3084# Use eval to expand $SHELL
d0ac1c44
SM
3085if eval "$MISSING --is-lightweight"; then
3086 am_missing_run="$MISSING "
42ecbf5e
DJ
3087else
3088 am_missing_run=
d0ac1c44
SM
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3090$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
81ecdfbb
RW
3091fi
3092
d0ac1c44 3093if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3094 case $am_aux_dir in
3095 *\ * | *\ *)
3096 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3097 *)
3098 install_sh="\${SHELL} $am_aux_dir/install-sh"
3099 esac
3100fi
3101
d0ac1c44
SM
3102# Installed binaries are usually stripped using 'strip' when the user
3103# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3104# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3105# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3106if test "$cross_compiling" != no; then
3107 if test -n "$ac_tool_prefix"; then
3108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3109set dummy ${ac_tool_prefix}strip; ac_word=$2
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3112if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb
RW
3113 $as_echo_n "(cached) " >&6
3114else
3115 if test -n "$STRIP"; then
3116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3117else
3118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119for as_dir in $PATH
3120do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3128 fi
3129done
3130 done
3131IFS=$as_save_IFS
3132
3133fi
3134fi
3135STRIP=$ac_cv_prog_STRIP
3136if test -n "$STRIP"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3138$as_echo "$STRIP" >&6; }
3139else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
3142fi
3143
3144
3145fi
3146if test -z "$ac_cv_prog_STRIP"; then
3147 ac_ct_STRIP=$STRIP
3148 # Extract the first word of "strip", so it can be a program name with args.
3149set dummy strip; ac_word=$2
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3152if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb
RW
3153 $as_echo_n "(cached) " >&6
3154else
3155 if test -n "$ac_ct_STRIP"; then
3156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3157else
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161 IFS=$as_save_IFS
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3165 ac_cv_prog_ac_ct_STRIP="strip"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169done
3170 done
3171IFS=$as_save_IFS
3172
3173fi
3174fi
3175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3176if test -n "$ac_ct_STRIP"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3178$as_echo "$ac_ct_STRIP" >&6; }
3179else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182fi
3183
3184 if test "x$ac_ct_STRIP" = x; then
3185 STRIP=":"
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188yes:)
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191ac_tool_warned=yes ;;
3192esac
3193 STRIP=$ac_ct_STRIP
3194 fi
3195else
3196 STRIP="$ac_cv_prog_STRIP"
3197fi
3198
3199fi
3200INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3201
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3203$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3204if test -z "$MKDIR_P"; then
d0ac1c44 3205 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3206 $as_echo_n "(cached) " >&6
3207else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3210do
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_prog in mkdir gmkdir; do
3214 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3215 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3217 'mkdir (GNU coreutils) '* | \
3218 'mkdir (coreutils) '* | \
3219 'mkdir (fileutils) '4.1*)
3220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3221 break 3;;
3222 esac
3223 done
3224 done
42ecbf5e 3225 done
81ecdfbb
RW
3226IFS=$as_save_IFS
3227
3228fi
3229
d0ac1c44 3230 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3231 if test "${ac_cv_path_mkdir+set}" = set; then
3232 MKDIR_P="$ac_cv_path_mkdir -p"
42ecbf5e 3233 else
81ecdfbb
RW
3234 # As a last resort, use the slow shell script. Don't cache a
3235 # value for MKDIR_P within a source directory, because that will
3236 # break other packages using the cache if that directory is
3237 # removed, or if the value is a relative name.
81ecdfbb 3238 MKDIR_P="$ac_install_sh -d"
42ecbf5e
DJ
3239 fi
3240fi
81ecdfbb
RW
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3242$as_echo "$MKDIR_P" >&6; }
3243
42ecbf5e
DJ
3244for ac_prog in gawk mawk nawk awk
3245do
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3250if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb 3251 $as_echo_n "(cached) " >&6
42ecbf5e
DJ
3252else
3253 if test -n "$AWK"; then
3254 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
81ecdfbb 3261 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42ecbf5e 3263 ac_cv_prog_AWK="$ac_prog"
81ecdfbb 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
42ecbf5e
DJ
3265 break 2
3266 fi
3267done
81ecdfbb
RW
3268 done
3269IFS=$as_save_IFS
42ecbf5e
DJ
3270
3271fi
3272fi
3273AWK=$ac_cv_prog_AWK
3274if test -n "$AWK"; then
81ecdfbb
RW
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3276$as_echo "$AWK" >&6; }
42ecbf5e 3277else
81ecdfbb
RW
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
42ecbf5e 3280fi
252b5132 3281
81ecdfbb 3282
42ecbf5e
DJ
3283 test -n "$AWK" && break
3284done
252b5132 3285
81ecdfbb
RW
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3287$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3288set x ${MAKE-make}
3289ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3290if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb 3291 $as_echo_n "(cached) " >&6
252b5132 3292else
42ecbf5e 3293 cat >conftest.make <<\_ACEOF
81ecdfbb 3294SHELL = /bin/sh
252b5132 3295all:
81ecdfbb 3296 @echo '@@@%%%=$(MAKE)=@@@%%%'
42ecbf5e 3297_ACEOF
d0ac1c44 3298# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3299case `${MAKE-make} -f conftest.make 2>/dev/null` in
3300 *@@@%%%=?*=@@@%%%*)
3301 eval ac_cv_prog_make_${ac_make}_set=yes;;
3302 *)
3303 eval ac_cv_prog_make_${ac_make}_set=no;;
3304esac
42ecbf5e 3305rm -f conftest.make
252b5132 3306fi
81ecdfbb
RW
3307if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309$as_echo "yes" >&6; }
252b5132
RH
3310 SET_MAKE=
3311else
81ecdfbb
RW
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
252b5132
RH
3314 SET_MAKE="MAKE=${MAKE-make}"
3315fi
3316
42ecbf5e
DJ
3317rm -rf .tst 2>/dev/null
3318mkdir .tst 2>/dev/null
3319if test -d .tst; then
3320 am__leading_dot=.
3321else
3322 am__leading_dot=_
3323fi
3324rmdir .tst 2>/dev/null
3325
d0ac1c44
SM
3326# Check whether --enable-silent-rules was given.
3327if test "${enable_silent_rules+set}" = set; then :
3328 enableval=$enable_silent_rules;
3329fi
3330
3331case $enable_silent_rules in # (((
3332 yes) AM_DEFAULT_VERBOSITY=0;;
3333 no) AM_DEFAULT_VERBOSITY=1;;
3334 *) AM_DEFAULT_VERBOSITY=1;;
3335esac
3336am_make=${MAKE-make}
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3338$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3339if ${am_cv_make_support_nested_variables+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341else
3342 if $as_echo 'TRUE=$(BAR$(V))
3343BAR0=false
3344BAR1=true
3345V=1
3346am__doit:
3347 @$(TRUE)
3348.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3349 am_cv_make_support_nested_variables=yes
3350else
3351 am_cv_make_support_nested_variables=no
3352fi
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3355$as_echo "$am_cv_make_support_nested_variables" >&6; }
3356if test $am_cv_make_support_nested_variables = yes; then
3357 AM_V='$(V)'
3358 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3359else
3360 AM_V=$AM_DEFAULT_VERBOSITY
3361 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3362fi
3363AM_BACKSLASH='\'
3364
81ecdfbb
RW
3365if test "`cd $srcdir && pwd`" != "`pwd`"; then
3366 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3367 # is not polluted with repeated "-I."
3368 am__isrc=' -I$(srcdir)'
3369 # test to see if srcdir already configured
3370 if test -f $srcdir/config.status; then
d0ac1c44 3371 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3372 fi
42ecbf5e 3373fi
252b5132 3374
42ecbf5e
DJ
3375# test whether we have cygpath
3376if test -z "$CYGPATH_W"; then
3377 if (cygpath --version) >/dev/null 2>/dev/null; then
3378 CYGPATH_W='cygpath -w'
3379 else
3380 CYGPATH_W=echo
3381 fi
252b5132 3382fi
42ecbf5e
DJ
3383
3384
3385# Define the identity of the package.
2e98a7bd 3386 PACKAGE='ld'
b5c37946 3387 VERSION='2.41.50'
42ecbf5e
DJ
3388
3389
3390cat >>confdefs.h <<_ACEOF
e5a52504 3391#define PACKAGE "$PACKAGE"
42ecbf5e
DJ
3392_ACEOF
3393
252b5132 3394
42ecbf5e 3395cat >>confdefs.h <<_ACEOF
e5a52504 3396#define VERSION "$VERSION"
42ecbf5e
DJ
3397_ACEOF
3398
3399# Some tools Automake needs.
3400
3401ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3402
3403
3404AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3405
3406
3407AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3408
3409
3410AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3411
e5a52504 3412
42ecbf5e 3413MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
e5a52504 3414
d0ac1c44
SM
3415# For better backward compatibility. To be removed once Automake 1.9.x
3416# dies out for good. For more background, see:
5bbe6ec5
NC
3417# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3418# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
d0ac1c44
SM
3419mkdir_p='$(MKDIR_P)'
3420
3421# We need awk for the "check" target (and possibly the TAP driver). The
3422# system "awk" is bad on some platforms.
6eb7d830
AM
3423# Always define AMTAR for backward compatibility. Yes, it's still used
3424# in the wild :-( We should find a proper way to deprecate it ...
3425AMTAR='$${TAR-tar}'
42ecbf5e 3426
d0ac1c44 3427
c774eab1
AM
3428# We'll loop over all known methods to create a tar archive until one works.
3429_am_tools='gnutar pax cpio none'
3430
3431am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3432
3433
42ecbf5e 3434
2469cfa2 3435
2469cfa2 3436
e5a52504 3437
d0ac1c44
SM
3438# POSIX will say in a future version that running "rm -f" with no argument
3439# is OK; and we want to be able to make that assumption in our Makefile
3440# recipes. So use an aggressive probe to check that the usage we want is
3441# actually supported "in the wild" to an acceptable degree.
3442# See automake bug#10828.
3443# To make any issue more visible, cause the running configure to be aborted
3444# by default if the 'rm' program in use doesn't match our expectations; the
3445# user can still override this though.
3446if rm -f && rm -fr && rm -rf; then : OK; else
3447 cat >&2 <<'END'
3448Oops!
3449
3450Your 'rm' program seems unable to run without file operands specified
3451on the command line, even when the '-f' option is present. This is contrary
3452to the behaviour of most rm programs out there, and not conforming with
3453the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3454
3455Please tell bug-automake@gnu.org about your system, including the value
3456of your $PATH and any error possibly output before this message. This
3457can help us improve future automake versions.
3458
3459END
3460 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3461 echo 'Configuration will proceed anyway, since you have set the' >&2
3462 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3463 echo >&2
3464 else
3465 cat >&2 <<'END'
3466Aborting the configuration process, to ensure you take notice of the issue.
3467
3468You can download and install GNU coreutils to get an 'rm' implementation
5bbe6ec5 3469that behaves properly: <http://www.gnu.org/software/coreutils/>.
d0ac1c44
SM
3470
3471If you want to complete the configuration process using your problematic
3472'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3473to "yes", and re-run configure.
3474
3475END
3476 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3477 fi
3478fi
3479
48b5f33a
MF
3480# Check whether --enable-silent-rules was given.
3481if test "${enable_silent_rules+set}" = set; then :
3482 enableval=$enable_silent_rules;
3483fi
3484
3485case $enable_silent_rules in # (((
3486 yes) AM_DEFAULT_VERBOSITY=0;;
3487 no) AM_DEFAULT_VERBOSITY=1;;
3488 *) AM_DEFAULT_VERBOSITY=0;;
3489esac
3490am_make=${MAKE-make}
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3492$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3493if ${am_cv_make_support_nested_variables+:} false; then :
3494 $as_echo_n "(cached) " >&6
3495else
3496 if $as_echo 'TRUE=$(BAR$(V))
3497BAR0=false
3498BAR1=true
3499V=1
3500am__doit:
3501 @$(TRUE)
3502.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3503 am_cv_make_support_nested_variables=yes
3504else
3505 am_cv_make_support_nested_variables=no
3506fi
3507fi
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3509$as_echo "$am_cv_make_support_nested_variables" >&6; }
3510if test $am_cv_make_support_nested_variables = yes; then
3511 AM_V='$(V)'
3512 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3513else
3514 AM_V=$AM_DEFAULT_VERBOSITY
3515 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3516fi
3517AM_BACKSLASH='\'
3518
42ecbf5e 3519
64ac50ac
RW
3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3521$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3522 # Check whether --enable-maintainer-mode was given.
3523if test "${enable_maintainer_mode+set}" = set; then :
3524 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3525else
3526 USE_MAINTAINER_MODE=no
3527fi
3528
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3530$as_echo "$USE_MAINTAINER_MODE" >&6; }
3531 if test $USE_MAINTAINER_MODE = yes; then
3532 MAINTAINER_MODE_TRUE=
3533 MAINTAINER_MODE_FALSE='#'
3534else
3535 MAINTAINER_MODE_TRUE='#'
3536 MAINTAINER_MODE_FALSE=
3537fi
3538
3539 MAINT=$MAINTAINER_MODE_TRUE
3540
3541
3542
b879806f
AM
3543ac_ext=c
3544ac_cpp='$CPP $CPPFLAGS'
3545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3550set dummy ${ac_tool_prefix}gcc; ac_word=$2
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3553if ${ac_cv_prog_CC+:} false; then :
b879806f
AM
3554 $as_echo_n "(cached) " >&6
3555else
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3558else
3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560for as_dir in $PATH
3561do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3566 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 break 2
3569 fi
3570done
3571 done
3572IFS=$as_save_IFS
d7040cdb 3573
81ecdfbb 3574fi
81ecdfbb 3575fi
b879806f
AM
3576CC=$ac_cv_prog_CC
3577if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579$as_echo "$CC" >&6; }
2469cfa2 3580else
b879806f
AM
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
81ecdfbb 3583fi
d7040cdb
SE
3584
3585
b879806f
AM
3586fi
3587if test -z "$ac_cv_prog_CC"; then
3588 ac_ct_CC=$CC
3589 # Extract the first word of "gcc", so it can be a program name with args.
3590set dummy gcc; ac_word=$2
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3593if ${ac_cv_prog_ac_ct_CC+:} false; then :
b879806f 3594 $as_echo_n "(cached) " >&6
e5a52504 3595else
b879806f
AM
3596 if test -n "$ac_ct_CC"; then
3597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598else
3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600for as_dir in $PATH
3601do
3602 IFS=$as_save_IFS
3603 test -z "$as_dir" && as_dir=.
3604 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3606 ac_cv_prog_ac_ct_CC="gcc"
3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 break 2
3609 fi
3610done
3611 done
3612IFS=$as_save_IFS
d7040cdb 3613
81ecdfbb 3614fi
b879806f
AM
3615fi
3616ac_ct_CC=$ac_cv_prog_ac_ct_CC
3617if test -n "$ac_ct_CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3619$as_echo "$ac_ct_CC" >&6; }
4fda8867 3620else
b879806f
AM
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622$as_echo "no" >&6; }
4fda8867
NC
3623fi
3624
b879806f
AM
3625 if test "x$ac_ct_CC" = x; then
3626 CC=""
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629yes:)
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3632ac_tool_warned=yes ;;
7fb9f789 3633esac
b879806f
AM
3634 CC=$ac_ct_CC
3635 fi
7fb9f789 3636else
b879806f 3637 CC="$ac_cv_prog_CC"
81ecdfbb
RW
3638fi
3639
b879806f
AM
3640if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3643set dummy ${ac_tool_prefix}cc; ac_word=$2
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3646if ${ac_cv_prog_CC+:} false; then :
397841b5
AM
3647 $as_echo_n "(cached) " >&6
3648else
b879806f
AM
3649 if test -n "$CC"; then
3650 ac_cv_prog_CC="$CC" # Let the user override the test.
3651else
3652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653for as_dir in $PATH
397841b5 3654do
b879806f
AM
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3659 ac_cv_prog_CC="${ac_tool_prefix}cc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3662 fi
3663done
3664 done
3665IFS=$as_save_IFS
d7040cdb 3666
ce2cded5 3667fi
ce2cded5 3668fi
b879806f
AM
3669CC=$ac_cv_prog_CC
3670if test -n "$CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672$as_echo "$CC" >&6; }
3673else
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675$as_echo "no" >&6; }
81ecdfbb
RW
3676fi
3677
d7040cdb 3678
b879806f 3679 fi
ce2cded5 3680fi
b879806f
AM
3681if test -z "$CC"; then
3682 # Extract the first word of "cc", so it can be a program name with args.
3683set dummy cc; ac_word=$2
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3686if ${ac_cv_prog_CC+:} false; then :
b879806f 3687 $as_echo_n "(cached) " >&6
397841b5 3688else
b879806f
AM
3689 if test -n "$CC"; then
3690 ac_cv_prog_CC="$CC" # Let the user override the test.
3691else
3692 ac_prog_rejected=no
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
397841b5 3695do
b879806f
AM
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3700 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3701 ac_prog_rejected=yes
3702 continue
3703 fi
3704 ac_cv_prog_CC="cc"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708done
3709 done
3710IFS=$as_save_IFS
d7040cdb 3711
b879806f
AM
3712if test $ac_prog_rejected = yes; then
3713 # We found a bogon in the path, so make sure we never use it.
3714 set dummy $ac_cv_prog_CC
3715 shift
3716 if test $# != 0; then
3717 # We chose a different compiler from the bogus one.
3718 # However, it has the same basename, so the bogon will be chosen
3719 # first if we set CC to just the basename; use the full file name.
3720 shift
3721 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3722 fi
397841b5 3723fi
397841b5 3724fi
b879806f
AM
3725fi
3726CC=$ac_cv_prog_CC
3727if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729$as_echo "$CC" >&6; }
397841b5 3730else
b879806f
AM
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732$as_echo "no" >&6; }
ce2cded5 3733fi
d7040cdb 3734
397841b5 3735
b879806f
AM
3736fi
3737if test -z "$CC"; then
3738 if test -n "$ac_tool_prefix"; then
3739 for ac_prog in cl.exe
3740 do
3741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3745if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 3746 $as_echo_n "(cached) " >&6
d7040cdb 3747else
b879806f
AM
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
d7040cdb
SE
3753do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
81ecdfbb 3756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762done
397841b5
AM
3763 done
3764IFS=$as_save_IFS
d7040cdb 3765
252b5132 3766fi
b879806f
AM
3767fi
3768CC=$ac_cv_prog_CC
3769if test -n "$CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771$as_echo "$CC" >&6; }
3772else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774$as_echo "no" >&6; }
3775fi
397841b5
AM
3776
3777
b879806f
AM
3778 test -n "$CC" && break
3779 done
3780fi
3781if test -z "$CC"; then
3782 ac_ct_CC=$CC
3783 for ac_prog in cl.exe
3784do
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786set dummy $ac_prog; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3789if ${ac_cv_prog_ac_ct_CC+:} false; then :
397841b5
AM
3790 $as_echo_n "(cached) " >&6
3791else
b879806f
AM
3792 if test -n "$ac_ct_CC"; then
3793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
397841b5
AM
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
397841b5 3800 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f
AM
3802 ac_cv_prog_ac_ct_CC="$ac_prog"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
397841b5
AM
3807 done
3808IFS=$as_save_IFS
397841b5 3809
397841b5 3810fi
397841b5 3811fi
b879806f
AM
3812ac_ct_CC=$ac_cv_prog_ac_ct_CC
3813if test -n "$ac_ct_CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3815$as_echo "$ac_ct_CC" >&6; }
3816else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
397841b5
AM
3819fi
3820
397841b5 3821
b879806f
AM
3822 test -n "$ac_ct_CC" && break
3823done
397841b5 3824
b879806f
AM
3825 if test "x$ac_ct_CC" = x; then
3826 CC=""
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829yes:)
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832ac_tool_warned=yes ;;
397841b5 3833esac
b879806f
AM
3834 CC=$ac_ct_CC
3835 fi
397841b5
AM
3836fi
3837
397841b5
AM
3838fi
3839
3840
b879806f
AM
3841test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3843as_fn_error $? "no acceptable C compiler found in \$PATH
3844See \`config.log' for more details" "$LINENO" 5; }
397841b5 3845
b879806f
AM
3846# Provide some information about the compiler.
3847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3848set X $ac_compile
3849ac_compiler=$2
3850for ac_option in --version -v -V -qversion; do
3851 { { ac_try="$ac_compiler $ac_option >&5"
3852case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857$as_echo "$ac_try_echo"; } >&5
c774eab1
AM
3858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859 ac_status=$?
3860 if test -s conftest.err; then
3861 sed '10a\
3862... rest of stderr output deleted ...
3863 10q' conftest.err >conftest.er1
3864 cat conftest.er1 >&5
3865 fi
3866 rm -f conftest.er1 conftest.err
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }
3869done
3870
3871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h. */
3873
3874int
3875main ()
3876{
3877
3878 ;
3879 return 0;
3880}
3881_ACEOF
3882ac_clean_files_save=$ac_clean_files
3883ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3884# Try to create an executable without -o first, disregard a.out.
3885# It will help us diagnose broken compilers, and finding out an intuition
3886# of exeext.
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3888$as_echo_n "checking whether the C compiler works... " >&6; }
3889ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3890
3891# The possible output files:
3892ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3893
3894ac_rmfiles=
3895for ac_file in $ac_files
3896do
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3900 esac
3901done
3902rm -f $ac_rmfiles
3903
3904if { { ac_try="$ac_link_default"
3905case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908esac
3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910$as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_link_default") 2>&5
3912 ac_status=$?
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3916# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3917# in a Makefile. We should not override ac_cv_exeext if it was cached,
3918# so that the user can short-circuit this test for compilers unknown to
3919# Autoconf.
3920for ac_file in $ac_files ''
3921do
3922 test -f "$ac_file" || continue
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3925 ;;
3926 [ab].out )
3927 # We found the default executable, but exeext='' is most
3928 # certainly right.
3929 break;;
3930 *.* )
3931 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3932 then :; else
3933 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 fi
3935 # We set ac_cv_exeext here because the later test for it is not
3936 # safe: cross compilers may not add the suffix if given an `-o'
3937 # argument, so we may need to know it at that point already.
3938 # Even if this section looks crufty: it has the advantage of
3939 # actually working.
3940 break;;
3941 * )
3942 break;;
3943 esac
3944done
3945test "$ac_cv_exeext" = no && ac_cv_exeext=
3946
3947else
3948 ac_file=''
3949fi
3950if test -z "$ac_file"; then :
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952$as_echo "no" >&6; }
3953$as_echo "$as_me: failed program was:" >&5
3954sed 's/^/| /' conftest.$ac_ext >&5
3955
3956{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3958as_fn_error 77 "C compiler cannot create executables
3959See \`config.log' for more details" "$LINENO" 5; }
3960else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962$as_echo "yes" >&6; }
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3965$as_echo_n "checking for C compiler default output file name... " >&6; }
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3967$as_echo "$ac_file" >&6; }
3968ac_exeext=$ac_cv_exeext
3969
3970rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3971ac_clean_files=$ac_clean_files_save
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3973$as_echo_n "checking for suffix of executables... " >&6; }
3974if { { ac_try="$ac_link"
3975case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978esac
3979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3980$as_echo "$ac_try_echo"; } >&5
3981 (eval "$ac_link") 2>&5
3982 ac_status=$?
3983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3984 test $ac_status = 0; }; then :
3985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3986# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3987# work properly (i.e., refer to `conftest.exe'), while it won't with
3988# `rm'.
3989for ac_file in conftest.exe conftest conftest.*; do
3990 test -f "$ac_file" || continue
3991 case $ac_file in
3992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3994 break;;
3995 * ) break;;
3996 esac
3997done
3998else
3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4002See \`config.log' for more details" "$LINENO" 5; }
4003fi
4004rm -f conftest conftest$ac_cv_exeext
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4006$as_echo "$ac_cv_exeext" >&6; }
4007
4008rm -f conftest.$ac_ext
4009EXEEXT=$ac_cv_exeext
4010ac_exeext=$EXEEXT
4011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h. */
4013#include <stdio.h>
4014int
4015main ()
4016{
4017FILE *f = fopen ("conftest.out", "w");
4018 return ferror (f) || fclose (f) != 0;
4019
4020 ;
4021 return 0;
4022}
4023_ACEOF
4024ac_clean_files="$ac_clean_files conftest.out"
4025# Check that the compiler produces executables we can run. If not, either
4026# the compiler is broken, or we cross compile.
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4028$as_echo_n "checking whether we are cross compiling... " >&6; }
4029if test "$cross_compiling" != yes; then
4030 { { ac_try="$ac_link"
4031case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034esac
4035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036$as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_link") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 if { ac_try='./conftest$ac_cv_exeext'
4042 { { case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047$as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; }; then
4052 cross_compiling=no
4053 else
4054 if test "$cross_compiling" = maybe; then
4055 cross_compiling=yes
4056 else
4057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4059as_fn_error $? "cannot run C compiled programs.
4060If you meant to cross compile, use \`--host'.
4061See \`config.log' for more details" "$LINENO" 5; }
4062 fi
4063 fi
4064fi
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4066$as_echo "$cross_compiling" >&6; }
4067
4068rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4069ac_clean_files=$ac_clean_files_save
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4071$as_echo_n "checking for suffix of object files... " >&6; }
4072if ${ac_cv_objext+:} false; then :
4073 $as_echo_n "(cached) " >&6
4074else
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h. */
4077
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.o conftest.obj
4087if { { ac_try="$ac_compile"
4088case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093$as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compile") 2>&5
b879806f 4095 ac_status=$?
b879806f 4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
c774eab1
AM
4097 test $ac_status = 0; }; then :
4098 for ac_file in conftest.o conftest.obj conftest.*; do
4099 test -f "$ac_file" || continue;
4100 case $ac_file in
4101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4102 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4103 break;;
4104 esac
b879806f 4105done
c774eab1
AM
4106else
4107 $as_echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
397841b5 4109
c774eab1
AM
4110{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112as_fn_error $? "cannot compute suffix of object files: cannot compile
4113See \`config.log' for more details" "$LINENO" 5; }
4114fi
4115rm -f conftest.$ac_cv_objext conftest.$ac_ext
4116fi
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4118$as_echo "$ac_cv_objext" >&6; }
4119OBJEXT=$ac_cv_objext
4120ac_objext=$OBJEXT
b879806f
AM
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4122$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4123if ${ac_cv_c_compiler_gnu+:} false; then :
44350750
NC
4124 $as_echo_n "(cached) " >&6
4125else
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h. */
b879806f 4128
44350750
NC
4129int
4130main ()
4131{
b879806f
AM
4132#ifndef __GNUC__
4133 choke me
4134#endif
4135
4136 ;
44350750
NC
4137 return 0;
4138}
4139_ACEOF
b879806f
AM
4140if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_compiler_gnu=yes
44350750 4142else
b879806f 4143 ac_compiler_gnu=no
44350750 4144fi
b879806f
AM
4145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4146ac_cv_c_compiler_gnu=$ac_compiler_gnu
4147
44350750 4148fi
b879806f
AM
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4150$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4151if test $ac_compiler_gnu = yes; then
4152 GCC=yes
4153else
4154 GCC=
4155fi
4156ac_test_CFLAGS=${CFLAGS+set}
4157ac_save_CFLAGS=$CFLAGS
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4159$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4160if ${ac_cv_prog_cc_g+:} false; then :
b879806f
AM
4161 $as_echo_n "(cached) " >&6
4162else
4163 ac_save_c_werror_flag=$ac_c_werror_flag
4164 ac_c_werror_flag=yes
4165 ac_cv_prog_cc_g=no
4166 CFLAGS="-g"
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h. */
44350750 4169
b879806f
AM
4170int
4171main ()
4172{
44350750 4173
b879806f
AM
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_g=yes
4180else
4181 CFLAGS=""
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183/* end confdefs.h. */
4184
4185int
4186main ()
4187{
44350750 4188
b879806f
AM
4189 ;
4190 return 0;
4191}
4192_ACEOF
4193if ac_fn_c_try_compile "$LINENO"; then :
44350750 4194
b879806f
AM
4195else
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4197 CFLAGS="-g"
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h. */
397841b5 4200
b879806f
AM
4201int
4202main ()
4203{
397841b5 4204
b879806f
AM
4205 ;
4206 return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_g=yes
4211fi
4212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215fi
4216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_c_werror_flag=$ac_save_c_werror_flag
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4220$as_echo "$ac_cv_prog_cc_g" >&6; }
4221if test "$ac_test_CFLAGS" = set; then
4222 CFLAGS=$ac_save_CFLAGS
4223elif test $ac_cv_prog_cc_g = yes; then
4224 if test "$GCC" = yes; then
4225 CFLAGS="-g -O2"
4226 else
4227 CFLAGS="-g"
4228 fi
4229else
4230 if test "$GCC" = yes; then
4231 CFLAGS="-O2"
4232 else
4233 CFLAGS=
4234 fi
4235fi
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4237$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4238if ${ac_cv_prog_cc_c89+:} false; then :
b879806f
AM
4239 $as_echo_n "(cached) " >&6
4240else
4241 ac_cv_prog_cc_c89=no
4242ac_save_CC=$CC
4243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h. */
4245#include <stdarg.h>
4246#include <stdio.h>
d0ac1c44 4247struct stat;
b879806f
AM
4248/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4249struct buf { int x; };
4250FILE * (*rcsopen) (struct buf *, struct stat *, int);
4251static char *e (p, i)
4252 char **p;
4253 int i;
4254{
4255 return p[i];
4256}
4257static char *f (char * (*g) (char **, int), char **p, ...)
4258{
4259 char *s;
4260 va_list v;
4261 va_start (v,p);
4262 s = g (p, va_arg (v,int));
4263 va_end (v);
4264 return s;
4265}
df7b86aa 4266
b879806f
AM
4267/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4268 function prototypes and stuff, but not '\xHH' hex character constants.
4269 These don't provoke an error unfortunately, instead are silently treated
4270 as 'x'. The following induces an error, until -std is added to get
4271 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4272 array size at least. It's necessary to write '\x00'==0 to get something
4273 that's true only with -std. */
4274int osf4_cc_array ['\x00' == 0 ? 1 : -1];
df7b86aa 4275
b879806f
AM
4276/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4277 inside strings and character constants. */
4278#define FOO(x) 'x'
4279int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280
4281int test (int i, double x);
4282struct s1 {int (*f) (int a);};
4283struct s2 {int (*f) (double a);};
4284int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4285int argc;
4286char **argv;
4287int
4288main ()
4289{
4290return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4296 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297do
4298 CC="$ac_save_CC $ac_arg"
4299 if ac_fn_c_try_compile "$LINENO"; then :
4300 ac_cv_prog_cc_c89=$ac_arg
397841b5 4301fi
b879806f
AM
4302rm -f core conftest.err conftest.$ac_objext
4303 test "x$ac_cv_prog_cc_c89" != "xno" && break
4304done
4305rm -f conftest.$ac_ext
4306CC=$ac_save_CC
4307
397841b5 4308fi
b879806f
AM
4309# AC_CACHE_VAL
4310case "x$ac_cv_prog_cc_c89" in
4311 x)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313$as_echo "none needed" >&6; } ;;
4314 xno)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4316$as_echo "unsupported" >&6; } ;;
4317 *)
4318 CC="$CC $ac_cv_prog_cc_c89"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4320$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321esac
4322if test "x$ac_cv_prog_cc_c89" != xno; then :
397841b5 4323
b879806f 4324fi
397841b5
AM
4325
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f 4331
d0ac1c44
SM
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4338$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4339if ${am_cv_prog_cc_c_o+:} false; then :
4340 $as_echo_n "(cached) " >&6
4341else
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h. */
4344
4345int
4346main ()
4347{
4348
4349 ;
4350 return 0;
4351}
4352_ACEOF
4353 # Make sure it works both with $CC and with simple cc.
4354 # Following AC_PROG_CC_C_O, we do the test twice because some
4355 # compilers refuse to overwrite an existing .o file with -o,
4356 # though they will create one.
4357 am_cv_prog_cc_c_o=yes
4358 for am_i in 1 2; do
4359 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } \
4364 && test -f conftest2.$ac_objext; then
4365 : OK
4366 else
4367 am_cv_prog_cc_c_o=no
4368 break
4369 fi
4370 done
4371 rm -f core conftest*
4372 unset am_i
4373fi
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4375$as_echo "$am_cv_prog_cc_c_o" >&6; }
4376if test "$am_cv_prog_cc_c_o" != yes; then
4377 # Losing compiler, so override with the script.
4378 # FIXME: It is wrong to rewrite CC.
4379 # But if we don't then we get into trouble of one sort or another.
4380 # A longer-term fix would be to have automake use am__CC in this case,
4381 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382 CC="$am_aux_dir/compile $CC"
4383fi
4384ac_ext=c
4385ac_cpp='$CPP $CPPFLAGS'
4386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
c774eab1
AM
4390DEPDIR="${am__leading_dot}deps"
4391
4392ac_config_commands="$ac_config_commands depfiles"
4393
5bbe6ec5
NC
4394
4395am_make=${MAKE-make}
4396cat > confinc << 'END'
c774eab1 4397am__doit:
5bbe6ec5 4398 @echo this is the am__doit target
c774eab1
AM
4399.PHONY: am__doit
4400END
5bbe6ec5
NC
4401# If we don't find an include directive, just comment out the code.
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4403$as_echo_n "checking for style of include used by $am_make... " >&6; }
c774eab1
AM
4404am__include="#"
4405am__quote=
5bbe6ec5
NC
4406_am_result=none
4407# First try GNU make style include.
4408echo "include confinc" > confmf
4409# Ignore all kinds of additional output from 'make'.
4410case `$am_make -s -f confmf 2> /dev/null` in #(
4411*the\ am__doit\ target*)
4412 am__include=include
4413 am__quote=
4414 _am_result=GNU
4415 ;;
631ec08c 4416esac
5bbe6ec5
NC
4417# Now try BSD make style include.
4418if test "$am__include" = "#"; then
4419 echo '.include "confinc"' > confmf
4420 case `$am_make -s -f confmf 2> /dev/null` in #(
4421 *the\ am__doit\ target*)
4422 am__include=.include
4423 am__quote="\""
4424 _am_result=BSD
4425 ;;
4426 esac
4427fi
4428
4429
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4431$as_echo "$_am_result" >&6; }
4432rm -f confinc confmf
c774eab1
AM
4433
4434# Check whether --enable-dependency-tracking was given.
4435if test "${enable_dependency_tracking+set}" = set; then :
4436 enableval=$enable_dependency_tracking;
4437fi
4438
4439if test "x$enable_dependency_tracking" != xno; then
4440 am_depcomp="$ac_aux_dir/depcomp"
4441 AMDEPBACKSLASH='\'
4442 am__nodep='_no'
4443fi
4444 if test "x$enable_dependency_tracking" != xno; then
4445 AMDEP_TRUE=
4446 AMDEP_FALSE='#'
4447else
4448 AMDEP_TRUE='#'
4449 AMDEP_FALSE=
4450fi
4451
4452
4453
4454depcc="$CC" am_compiler_list=
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4457$as_echo_n "checking dependency style of $depcc... " >&6; }
4458if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460else
4461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4462 # We make a subdir and do the tests there. Otherwise we can end up
4463 # making bogus files that we don't know about and never remove. For
4464 # instance it was reported that on HP-UX the gcc test will end up
4465 # making a dummy file named 'D' -- because '-MD' means "put the output
4466 # in D".
4467 rm -rf conftest.dir
4468 mkdir conftest.dir
4469 # Copy depcomp to subdir because otherwise we won't find it if we're
4470 # using a relative directory.
4471 cp "$am_depcomp" conftest.dir
4472 cd conftest.dir
4473 # We will build objects and dependencies in a subdirectory because
4474 # it helps to detect inapplicable dependency modes. For instance
4475 # both Tru64's cc and ICC support -MD to output dependencies as a
4476 # side effect of compilation, but ICC will put the dependencies in
4477 # the current directory while Tru64 will put them in the object
4478 # directory.
4479 mkdir sub
4480
4481 am_cv_CC_dependencies_compiler_type=none
4482 if test "$am_compiler_list" = ""; then
4483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4484 fi
4485 am__universal=false
4486 case " $depcc " in #(
4487 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4488 esac
4489
4490 for depmode in $am_compiler_list; do
4491 # Setup a source with many dependencies, because some compilers
4492 # like to wrap large dependency lists on column 80 (with \), and
4493 # we should not choose a depcomp mode which is confused by this.
4494 #
4495 # We need to recreate these files for each test, as the compiler may
4496 # overwrite some of them when testing with obscure command lines.
4497 # This happens at least with the AIX C compiler.
4498 : > sub/conftest.c
4499 for i in 1 2 3 4 5 6; do
4500 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4502 # Solaris 10 /bin/sh.
4503 echo '/* dummy */' > sub/conftst$i.h
4504 done
4505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506
4507 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4508 # mode. It turns out that the SunPro C++ compiler does not properly
4509 # handle '-M -o', and we need to detect this. Also, some Intel
4510 # versions had trouble with output in subdirs.
4511 am__obj=sub/conftest.${OBJEXT-o}
4512 am__minus_obj="-o $am__obj"
4513 case $depmode in
4514 gcc)
4515 # This depmode causes a compiler race in universal mode.
4516 test "$am__universal" = false || continue
4517 ;;
4518 nosideeffect)
4519 # After this tag, mechanisms are not by side-effect, so they'll
4520 # only be used when explicitly requested.
4521 if test "x$enable_dependency_tracking" = xyes; then
4522 continue
4523 else
4524 break
4525 fi
4526 ;;
4527 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4528 # This compiler won't grok '-c -o', but also, the minuso test has
4529 # not run yet. These depmodes are late enough in the game, and
4530 # so weak that their functioning should not be impacted.
4531 am__obj=conftest.${OBJEXT-o}
4532 am__minus_obj=
4533 ;;
4534 none) break ;;
4535 esac
4536 if depmode=$depmode \
4537 source=sub/conftest.c object=$am__obj \
4538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4540 >/dev/null 2>conftest.err &&
4541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4545 # icc doesn't choke on unknown options, it will just issue warnings
4546 # or remarks (even with -Werror). So we grep stderr for any message
4547 # that says an option was ignored or not supported.
4548 # When given -MP, icc 7.0 and 7.1 complain thusly:
4549 # icc: Command line warning: ignoring option '-M'; no argument required
4550 # The diagnosis changed in icc 8.0:
4551 # icc: Command line remark: option '-MP' not supported
4552 if (grep 'ignoring option' conftest.err ||
4553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4554 am_cv_CC_dependencies_compiler_type=$depmode
4555 break
4556 fi
4557 fi
4558 done
4559
4560 cd ..
4561 rm -rf conftest.dir
4562else
4563 am_cv_CC_dependencies_compiler_type=none
4564fi
4565
4566fi
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4568$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4570
4571 if
4572 test "x$enable_dependency_tracking" != xno \
4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_TRUE=
4575 am__fastdepCC_FALSE='#'
4576else
4577 am__fastdepCC_TRUE='#'
4578 am__fastdepCC_FALSE=
4579fi
4580
d0ac1c44 4581
b879806f
AM
4582ac_ext=cpp
4583ac_cpp='$CXXCPP $CPPFLAGS'
4584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4587if test -z "$CXX"; then
4588 if test -n "$CCC"; then
4589 CXX=$CCC
4590 else
4591 if test -n "$ac_tool_prefix"; then
4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 do
4594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
397841b5
AM
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4598if ${ac_cv_prog_CXX+:} false; then :
397841b5
AM
4599 $as_echo_n "(cached) " >&6
4600else
b879806f
AM
4601 if test -n "$CXX"; then
4602 ac_cv_prog_CXX="$CXX" # Let the user override the test.
397841b5
AM
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 4611 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
397841b5
AM
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615done
4616 done
4617IFS=$as_save_IFS
4618
4619fi
4620fi
b879806f
AM
4621CXX=$ac_cv_prog_CXX
4622if test -n "$CXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4624$as_echo "$CXX" >&6; }
397841b5
AM
4625else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627$as_echo "no" >&6; }
4628fi
4629
4630
b879806f
AM
4631 test -n "$CXX" && break
4632 done
397841b5 4633fi
b879806f
AM
4634if test -z "$CXX"; then
4635 ac_ct_CXX=$CXX
4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4637do
4638 # Extract the first word of "$ac_prog", so it can be a program name with args.
4639set dummy $ac_prog; ac_word=$2
397841b5
AM
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4642if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 4643 $as_echo_n "(cached) " >&6
252b5132 4644else
b879806f
AM
4645 if test -n "$ac_ct_CXX"; then
4646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
252b5132 4647else
ce2cded5
L
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
81ecdfbb 4653 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b879806f 4655 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4657 break 2
4658 fi
4659done
81ecdfbb
RW
4660 done
4661IFS=$as_save_IFS
4662
252b5132
RH
4663fi
4664fi
b879806f
AM
4665ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4666if test -n "$ac_ct_CXX"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4668$as_echo "$ac_ct_CXX" >&6; }
d7040cdb 4669else
81ecdfbb
RW
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671$as_echo "no" >&6; }
d7040cdb
SE
4672fi
4673
81ecdfbb 4674
b879806f 4675 test -n "$ac_ct_CXX" && break
d7040cdb 4676done
d7040cdb 4677
b879806f
AM
4678 if test "x$ac_ct_CXX" = x; then
4679 CXX="g++"
81ecdfbb
RW
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682yes:)
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685ac_tool_warned=yes ;;
4686esac
b879806f 4687 CXX=$ac_ct_CXX
81ecdfbb 4688 fi
d7040cdb
SE
4689fi
4690
b879806f 4691 fi
d7040cdb 4692fi
ce2cded5 4693# Provide some information about the compiler.
b879806f 4694$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
81ecdfbb
RW
4695set X $ac_compile
4696ac_compiler=$2
4697for ac_option in --version -v -V -qversion; do
4698 { { ac_try="$ac_compiler $ac_option >&5"
4699case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702esac
4703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4704$as_echo "$ac_try_echo"; } >&5
4705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4706 ac_status=$?
81ecdfbb
RW
4707 if test -s conftest.err; then
4708 sed '10a\
4709... rest of stderr output deleted ...
4710 10q' conftest.err >conftest.er1
4711 cat conftest.er1 >&5
81ecdfbb 4712 fi
d0ac1c44 4713 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }
4716done
d7040cdb 4717
b879806f
AM
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4719$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 4720if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 4721 $as_echo_n "(cached) " >&6
d7040cdb 4722else
81ecdfbb 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4724/* end confdefs.h. */
d7040cdb 4725
ce2cded5
L
4726int
4727main ()
4728{
4729#ifndef __GNUC__
4730 choke me
4731#endif
4732
4733 ;
4734 return 0;
4735}
4736_ACEOF
b879806f 4737if ac_fn_cxx_try_compile "$LINENO"; then :
ce2cded5 4738 ac_compiler_gnu=yes
d7040cdb 4739else
81ecdfbb 4740 ac_compiler_gnu=no
d7040cdb 4741fi
81ecdfbb 4742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4743ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
d7040cdb 4744
ce2cded5 4745fi
b879806f
AM
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4747$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
81ecdfbb 4748if test $ac_compiler_gnu = yes; then
b879806f 4749 GXX=yes
81ecdfbb 4750else
b879806f 4751 GXX=
81ecdfbb 4752fi
b879806f
AM
4753ac_test_CXXFLAGS=${CXXFLAGS+set}
4754ac_save_CXXFLAGS=$CXXFLAGS
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4756$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 4757if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
4758 $as_echo_n "(cached) " >&6
4759else
b879806f
AM
4760 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4761 ac_cxx_werror_flag=yes
4762 ac_cv_prog_cxx_g=no
4763 CXXFLAGS="-g"
81ecdfbb 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4765/* end confdefs.h. */
d7040cdb 4766
ce2cded5
L
4767int
4768main ()
4769{
d7040cdb 4770
ce2cded5
L
4771 ;
4772 return 0;
4773}
4774_ACEOF
b879806f
AM
4775if ac_fn_cxx_try_compile "$LINENO"; then :
4776 ac_cv_prog_cxx_g=yes
ce2cded5 4777else
b879806f 4778 CXXFLAGS=""
81ecdfbb
RW
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
4781
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
b879806f 4790if ac_fn_cxx_try_compile "$LINENO"; then :
81ecdfbb
RW
4791
4792else
b879806f
AM
4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4794 CXXFLAGS="-g"
81ecdfbb
RW
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796/* end confdefs.h. */
4797
4798int
4799main ()
4800{
d7040cdb 4801
81ecdfbb
RW
4802 ;
4803 return 0;
4804}
4805_ACEOF
b879806f
AM
4806if ac_fn_cxx_try_compile "$LINENO"; then :
4807 ac_cv_prog_cxx_g=yes
81ecdfbb
RW
4808fi
4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810fi
4811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 4812fi
81ecdfbb 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f 4814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
ce2cded5 4815fi
b879806f
AM
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4817$as_echo "$ac_cv_prog_cxx_g" >&6; }
4818if test "$ac_test_CXXFLAGS" = set; then
4819 CXXFLAGS=$ac_save_CXXFLAGS
4820elif test $ac_cv_prog_cxx_g = yes; then
4821 if test "$GXX" = yes; then
4822 CXXFLAGS="-g -O2"
ce2cded5 4823 else
b879806f 4824 CXXFLAGS="-g"
ce2cded5 4825 fi
d7040cdb 4826else
b879806f
AM
4827 if test "$GXX" = yes; then
4828 CXXFLAGS="-O2"
ce2cded5 4829 else
b879806f 4830 CXXFLAGS=
ce2cded5 4831 fi
d7040cdb 4832fi
b879806f
AM
4833ac_ext=c
4834ac_cpp='$CPP $CPPFLAGS'
4835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838
4839depcc="$CXX" am_compiler_list=
4840
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4842$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4843if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
81ecdfbb 4844 $as_echo_n "(cached) " >&6
d7040cdb 4845else
b879806f
AM
4846 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4847 # We make a subdir and do the tests there. Otherwise we can end up
4848 # making bogus files that we don't know about and never remove. For
4849 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4850 # making a dummy file named 'D' -- because '-MD' means "put the output
4851 # in D".
6eb7d830 4852 rm -rf conftest.dir
b879806f
AM
4853 mkdir conftest.dir
4854 # Copy depcomp to subdir because otherwise we won't find it if we're
4855 # using a relative directory.
4856 cp "$am_depcomp" conftest.dir
4857 cd conftest.dir
4858 # We will build objects and dependencies in a subdirectory because
4859 # it helps to detect inapplicable dependency modes. For instance
4860 # both Tru64's cc and ICC support -MD to output dependencies as a
4861 # side effect of compilation, but ICC will put the dependencies in
4862 # the current directory while Tru64 will put them in the object
4863 # directory.
4864 mkdir sub
d7040cdb 4865
b879806f
AM
4866 am_cv_CXX_dependencies_compiler_type=none
4867 if test "$am_compiler_list" = ""; then
4868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4869 fi
4870 am__universal=false
4871 case " $depcc " in #(
4872 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4873 esac
d7040cdb 4874
b879806f
AM
4875 for depmode in $am_compiler_list; do
4876 # Setup a source with many dependencies, because some compilers
4877 # like to wrap large dependency lists on column 80 (with \), and
4878 # we should not choose a depcomp mode which is confused by this.
4879 #
4880 # We need to recreate these files for each test, as the compiler may
4881 # overwrite some of them when testing with obscure command lines.
4882 # This happens at least with the AIX C compiler.
4883 : > sub/conftest.c
4884 for i in 1 2 3 4 5 6; do
4885 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4886 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4887 # Solaris 10 /bin/sh.
4888 echo '/* dummy */' > sub/conftst$i.h
b879806f
AM
4889 done
4890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
81ecdfbb 4891
d0ac1c44 4892 # We check with '-c' and '-o' for the sake of the "dashmstdout"
b879806f 4893 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4894 # handle '-M -o', and we need to detect this. Also, some Intel
4895 # versions had trouble with output in subdirs.
b879806f
AM
4896 am__obj=sub/conftest.${OBJEXT-o}
4897 am__minus_obj="-o $am__obj"
4898 case $depmode in
4899 gcc)
4900 # This depmode causes a compiler race in universal mode.
4901 test "$am__universal" = false || continue
4902 ;;
4903 nosideeffect)
d0ac1c44
SM
4904 # After this tag, mechanisms are not by side-effect, so they'll
4905 # only be used when explicitly requested.
b879806f
AM
4906 if test "x$enable_dependency_tracking" = xyes; then
4907 continue
4908 else
4909 break
4910 fi
4911 ;;
6eb7d830 4912 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4913 # This compiler won't grok '-c -o', but also, the minuso test has
b879806f
AM
4914 # not run yet. These depmodes are late enough in the game, and
4915 # so weak that their functioning should not be impacted.
4916 am__obj=conftest.${OBJEXT-o}
4917 am__minus_obj=
4918 ;;
4919 none) break ;;
4920 esac
4921 if depmode=$depmode \
4922 source=sub/conftest.c object=$am__obj \
4923 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4924 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4925 >/dev/null 2>conftest.err &&
4926 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4927 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4928 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4929 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4930 # icc doesn't choke on unknown options, it will just issue warnings
4931 # or remarks (even with -Werror). So we grep stderr for any message
4932 # that says an option was ignored or not supported.
4933 # When given -MP, icc 7.0 and 7.1 complain thusly:
4934 # icc: Command line warning: ignoring option '-M'; no argument required
4935 # The diagnosis changed in icc 8.0:
4936 # icc: Command line remark: option '-MP' not supported
4937 if (grep 'ignoring option' conftest.err ||
4938 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4939 am_cv_CXX_dependencies_compiler_type=$depmode
4940 break
4941 fi
4942 fi
4943 done
4944
4945 cd ..
4946 rm -rf conftest.dir
4947else
4948 am_cv_CXX_dependencies_compiler_type=none
ce2cded5 4949fi
d7040cdb 4950
ce2cded5 4951fi
b879806f
AM
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4953$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4954CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
d7040cdb 4955
b879806f
AM
4956 if
4957 test "x$enable_dependency_tracking" != xno \
4958 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4959 am__fastdepCXX_TRUE=
4960 am__fastdepCXX_FALSE='#'
4961else
4962 am__fastdepCXX_TRUE='#'
4963 am__fastdepCXX_FALSE=
ce2cded5 4964fi
d7040cdb 4965
b879806f 4966
68880f31
CLT
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4968$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4969if ${ac_cv_path_GREP+:} false; then :
68880f31
CLT
4970 $as_echo_n "(cached) " >&6
4971else
4972 if test -z "$GREP"; then
4973 ac_path_GREP_found=false
4974 # Loop through the user's path and test for each of PROGNAME-LIST
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_prog in grep ggrep; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4983 as_fn_executable_p "$ac_path_GREP" || continue
68880f31
CLT
4984# Check for GNU ac_path_GREP and select it if it is found.
4985 # Check for GNU $ac_path_GREP
4986case `"$ac_path_GREP" --version 2>&1` in
4987*GNU*)
4988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4989*)
4990 ac_count=0
4991 $as_echo_n 0123456789 >"conftest.in"
4992 while :
4993 do
4994 cat "conftest.in" "conftest.in" >"conftest.tmp"
4995 mv "conftest.tmp" "conftest.in"
4996 cp "conftest.in" "conftest.nl"
4997 $as_echo 'GREP' >> "conftest.nl"
4998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5000 as_fn_arith $ac_count + 1 && ac_count=$as_val
5001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5002 # Best one so far, save it but keep looking for a better one
5003 ac_cv_path_GREP="$ac_path_GREP"
5004 ac_path_GREP_max=$ac_count
5005 fi
5006 # 10*(2^10) chars as input seems more than enough
5007 test $ac_count -gt 10 && break
5008 done
5009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5010esac
5011
5012 $ac_path_GREP_found && break 3
5013 done
5014 done
5015 done
5016IFS=$as_save_IFS
5017 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5018 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
68880f31
CLT
5019 fi
5020else
5021 ac_cv_path_GREP=$GREP
5022fi
5023
5024fi
5025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5026$as_echo "$ac_cv_path_GREP" >&6; }
5027 GREP="$ac_cv_path_GREP"
5028
5029
c774eab1 5030
ce2cded5
L
5031ac_ext=c
5032ac_cpp='$CPP $CPPFLAGS'
5033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035ac_compiler_gnu=$ac_cv_c_compiler_gnu
b879806f
AM
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5037$as_echo_n "checking how to run the C preprocessor... " >&6; }
5038# On Suns, sometimes $CPP names a directory.
5039if test -n "$CPP" && test -d "$CPP"; then
5040 CPP=
7357c5b6 5041fi
b879806f 5042if test -z "$CPP"; then
d0ac1c44 5043 if ${ac_cv_prog_CPP+:} false; then :
3cb62297
L
5044 $as_echo_n "(cached) " >&6
5045else
b879806f
AM
5046 # Double quotes because CPP needs to be expanded
5047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5048 do
5049 ac_preproc_ok=false
5050for ac_c_preproc_warn_flag in '' yes
3cb62297 5051do
b879806f
AM
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059/* end confdefs.h. */
5060#ifdef __STDC__
5061# include <limits.h>
5062#else
5063# include <assert.h>
5064#endif
5065 Syntax error
5066_ACEOF
5067if ac_fn_c_try_cpp "$LINENO"; then :
252b5132 5068
3cb62297 5069else
b879806f
AM
5070 # Broken: fails on valid input.
5071continue
7357c5b6 5072fi
d0ac1c44 5073rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5074
b879806f
AM
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078/* end confdefs.h. */
5079#include <ac_nonexistent.h>
5080_ACEOF
5081if ac_fn_c_try_cpp "$LINENO"; then :
5082 # Broken: success on invalid input.
5083continue
5084else
5085 # Passes both tests.
5086ac_preproc_ok=:
5087break
5088fi
d0ac1c44 5089rm -f conftest.err conftest.i conftest.$ac_ext
42ecbf5e 5090
3cb62297 5091done
b879806f 5092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5093rm -f conftest.i conftest.err conftest.$ac_ext
b879806f
AM
5094if $ac_preproc_ok; then :
5095 break
7357c5b6 5096fi
ac48eca1 5097
b879806f
AM
5098 done
5099 ac_cv_prog_CPP=$CPP
d7040cdb 5100
b879806f
AM
5101fi
5102 CPP=$ac_cv_prog_CPP
7357c5b6 5103else
b879806f
AM
5104 ac_cv_prog_CPP=$CPP
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5107$as_echo "$CPP" >&6; }
5108ac_preproc_ok=false
5109for ac_c_preproc_warn_flag in '' yes
5110do
5111 # Use a header file that comes with gcc, so configuring glibc
5112 # with a fresh cross-compiler works.
5113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114 # <limits.h> exists even on freestanding compilers.
5115 # On the NeXT, cc -E runs the code through the compiler's parser,
5116 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5118/* end confdefs.h. */
b879806f
AM
5119#ifdef __STDC__
5120# include <limits.h>
5121#else
5122# include <assert.h>
3cb62297 5123#endif
b879806f 5124 Syntax error
7357c5b6 5125_ACEOF
b879806f
AM
5126if ac_fn_c_try_cpp "$LINENO"; then :
5127
81ecdfbb 5128else
b879806f
AM
5129 # Broken: fails on valid input.
5130continue
7357c5b6 5131fi
d0ac1c44 5132rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb 5133
b879806f
AM
5134 # OK, works on sane cases. Now check whether nonexistent headers
5135 # can be detected and how.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h. */
5138#include <ac_nonexistent.h>
5139_ACEOF
5140if ac_fn_c_try_cpp "$LINENO"; then :
5141 # Broken: success on invalid input.
5142continue
3cb62297 5143else
b879806f
AM
5144 # Passes both tests.
5145ac_preproc_ok=:
5146break
7357c5b6 5147fi
d0ac1c44 5148rm -f conftest.err conftest.i conftest.$ac_ext
252b5132 5149
b879806f
AM
5150done
5151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 5152rm -f conftest.i conftest.err conftest.$ac_ext
b879806f 5153if $ac_preproc_ok; then :
252b5132 5154
3cb62297 5155else
b879806f
AM
5156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
5158as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5159See \`config.log' for more details" "$LINENO" 5; }
b879806f 5160fi
42ecbf5e 5161
b879806f
AM
5162ac_ext=c
5163ac_cpp='$CPP $CPPFLAGS'
5164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166ac_compiler_gnu=$ac_cv_c_compiler_gnu
42ecbf5e
DJ
5167
5168
b879806f
AM
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5170$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5171if ${ac_cv_path_EGREP+:} false; then :
b879806f
AM
5172 $as_echo_n "(cached) " >&6
5173else
5174 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5175 then ac_cv_path_EGREP="$GREP -E"
5176 else
5177 if test -z "$EGREP"; then
5178 ac_path_EGREP_found=false
5179 # Loop through the user's path and test for each of PROGNAME-LIST
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_prog in egrep; do
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5188 as_fn_executable_p "$ac_path_EGREP" || continue
b879806f
AM
5189# Check for GNU ac_path_EGREP and select it if it is found.
5190 # Check for GNU $ac_path_EGREP
5191case `"$ac_path_EGREP" --version 2>&1` in
5192*GNU*)
5193 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5194*)
5195 ac_count=0
5196 $as_echo_n 0123456789 >"conftest.in"
5197 while :
5198 do
5199 cat "conftest.in" "conftest.in" >"conftest.tmp"
5200 mv "conftest.tmp" "conftest.in"
5201 cp "conftest.in" "conftest.nl"
5202 $as_echo 'EGREP' >> "conftest.nl"
5203 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5205 as_fn_arith $ac_count + 1 && ac_count=$as_val
5206 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5207 # Best one so far, save it but keep looking for a better one
5208 ac_cv_path_EGREP="$ac_path_EGREP"
5209 ac_path_EGREP_max=$ac_count
5210 fi
5211 # 10*(2^10) chars as input seems more than enough
5212 test $ac_count -gt 10 && break
5213 done
5214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5215esac
5216
5217 $ac_path_EGREP_found && break 3
5218 done
5219 done
5220 done
5221IFS=$as_save_IFS
5222 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5223 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
b879806f
AM
5224 fi
5225else
5226 ac_cv_path_EGREP=$EGREP
5227fi
5228
5229 fi
5230fi
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5232$as_echo "$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5234
5235
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5237$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5238if ${ac_cv_header_stdc+:} false; then :
b879806f
AM
5239 $as_echo_n "(cached) " >&6
5240else
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3cb62297 5242/* end confdefs.h. */
b879806f
AM
5243#include <stdlib.h>
5244#include <stdarg.h>
5245#include <string.h>
5246#include <float.h>
42ecbf5e 5247
3cb62297
L
5248int
5249main ()
5250{
42ecbf5e 5251
3cb62297
L
5252 ;
5253 return 0;
5254}
5255_ACEOF
b879806f
AM
5256if ac_fn_c_try_compile "$LINENO"; then :
5257 ac_cv_header_stdc=yes
5258else
5259 ac_cv_header_stdc=no
3cb62297
L
5260fi
5261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b879806f
AM
5262
5263if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h. */
5267#include <string.h>
5268
5269_ACEOF
5270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "memchr" >/dev/null 2>&1; then :
5272
5273else
5274 ac_cv_header_stdc=no
3cb62297 5275fi
b879806f
AM
5276rm -f conftest*
5277
3cb62297 5278fi
b879806f
AM
5279
5280if test $ac_cv_header_stdc = yes; then
5281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <stdlib.h>
5285
5286_ACEOF
5287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "free" >/dev/null 2>&1; then :
5289
ce2cded5 5290else
b879806f 5291 ac_cv_header_stdc=no
ce2cded5 5292fi
b879806f 5293rm -f conftest*
42ecbf5e 5294
b879806f 5295fi
e5a52504 5296
b879806f
AM
5297if test $ac_cv_header_stdc = yes; then
5298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5299 if test "$cross_compiling" = yes; then :
5300 :
3cb62297 5301else
b879806f
AM
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303/* end confdefs.h. */
5304#include <ctype.h>
5305#include <stdlib.h>
5306#if ((' ' & 0x0FF) == 0x020)
5307# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5309#else
5310# define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5315#endif
3cb62297
L
5316
5317#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5318int
5319main ()
5320{
5321 int i;
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5325 return 2;
5326 return 0;
5327}
5328_ACEOF
5329if ac_fn_c_try_run "$LINENO"; then :
5330
5331else
5332 ac_cv_header_stdc=no
5333fi
5334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5335 conftest.$ac_objext conftest.beam conftest.$ac_ext
5336fi
5337
5338fi
5339fi
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5341$as_echo "$ac_cv_header_stdc" >&6; }
5342if test $ac_cv_header_stdc = yes; then
5343
5344$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5345
5346fi
5347
5348# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5350 inttypes.h stdint.h unistd.h
5351do :
5352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5354"
d0ac1c44 5355if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3cb62297
L
5356 cat >>confdefs.h <<_ACEOF
5357#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5358_ACEOF
5359
5360fi
5361
5362done
5363
5364
5365
5366 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5367if test "x$ac_cv_header_minix_config_h" = xyes; then :
3cb62297
L
5368 MINIX=yes
5369else
5370 MINIX=
5371fi
5372
5373
5374 if test "$MINIX" = yes; then
5375
5376$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5377
5378
5379$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5380
5381
5382$as_echo "#define _MINIX 1" >>confdefs.h
5383
5384 fi
5385
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5388$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5389if ${ac_cv_safe_to_define___extensions__+:} false; then :
3cb62297
L
5390 $as_echo_n "(cached) " >&6
5391else
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
5394
d0ac1c44
SM
5395# define __EXTENSIONS__ 1
5396 $ac_includes_default
3cb62297
L
5397int
5398main ()
5399{
5400
5401 ;
5402 return 0;
5403}
5404_ACEOF
5405if ac_fn_c_try_compile "$LINENO"; then :
5406 ac_cv_safe_to_define___extensions__=yes
5407else
5408 ac_cv_safe_to_define___extensions__=no
5409fi
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5413$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5414 test $ac_cv_safe_to_define___extensions__ = yes &&
5415 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5416
5417 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5418
5419 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5420
5421 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5422
5423 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5424
5425
5426
5427
5428
3cb62297 5429
2cac01e3
FS
5430
5431
5432
5433
5434
5435
5436if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441$as_echo_n "checking for $ac_word... " >&6; }
5442if ${ac_cv_path_PKG_CONFIG+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444else
5445 case $PKG_CONFIG in
5446 [\\/]* | ?:[\\/]*)
5447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5448 ;;
5449 *)
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453 IFS=$as_save_IFS
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 break 2
5460 fi
5461done
5462 done
5463IFS=$as_save_IFS
5464
5465 ;;
5466esac
5467fi
5468PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469if test -n "$PKG_CONFIG"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471$as_echo "$PKG_CONFIG" >&6; }
5472else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478fi
5479if test -z "$ac_cv_path_PKG_CONFIG"; then
5480 ac_pt_PKG_CONFIG=$PKG_CONFIG
5481 # Extract the first word of "pkg-config", so it can be a program name with args.
5482set dummy pkg-config; ac_word=$2
5483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484$as_echo_n "checking for $ac_word... " >&6; }
5485if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487else
5488 case $ac_pt_PKG_CONFIG in
5489 [\\/]* | ?:[\\/]*)
5490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5491 ;;
5492 *)
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505 done
5506IFS=$as_save_IFS
5507
5508 ;;
5509esac
5510fi
5511ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512if test -n "$ac_pt_PKG_CONFIG"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5515else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517$as_echo "no" >&6; }
5518fi
5519
5520 if test "x$ac_pt_PKG_CONFIG" = x; then
5521 PKG_CONFIG=""
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524yes:)
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527ac_tool_warned=yes ;;
5528esac
5529 PKG_CONFIG=$ac_pt_PKG_CONFIG
5530 fi
5531else
5532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5533fi
5534
5535fi
5536if test -n "$PKG_CONFIG"; then
5537 _pkg_min_version=0.9.0
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542$as_echo "yes" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545$as_echo "no" >&6; }
5546 PKG_CONFIG=""
5547 fi
5548fi
5549
b879806f
AM
5550case `pwd` in
5551 *\ * | *\ *)
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5553$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5554esac
3cb62297
L
5555
5556
da2f07f1 5557
b879806f
AM
5558macro_version='2.2.7a'
5559macro_revision='1.3134'
d7040cdb 5560
d7040cdb
SE
5561
5562
d7040cdb 5563
d7040cdb 5564
42ecbf5e 5565
d7040cdb 5566
252b5132 5567
252b5132 5568
252b5132 5569
252b5132
RH
5570
5571
ce2cded5 5572
b214d478 5573ltmain="$ac_aux_dir/ltmain.sh"
ce2cded5 5574
3725885a
RW
5575# Backslashify metacharacters that are still active within
5576# double-quoted strings.
5577sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5578
5579# Same as above, but do not quote variable references.
5580double_quote_subst='s/\(["`\\]\)/\\\1/g'
5581
5582# Sed substitution to delay expansion of an escaped shell variable in a
5583# double_quote_subst'ed string.
5584delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5585
5586# Sed substitution to delay expansion of an escaped single quote.
5587delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5588
5589# Sed substitution to avoid accidental globbing in evaled expressions
5590no_glob_subst='s/\*/\\\*/g'
5591
5592ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5593ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5594ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5595
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5597$as_echo_n "checking how to print strings... " >&6; }
5598# Test print first, because it will be a builtin if present.
5599if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5601 ECHO='print -r --'
5602elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5603 ECHO='printf %s\n'
5604else
5605 # Use this function as a fallback that always works.
5606 func_fallback_echo ()
5607 {
5608 eval 'cat <<_LTECHO_EOF
5609$1
5610_LTECHO_EOF'
5611 }
5612 ECHO='func_fallback_echo'
5613fi
5614
5615# func_echo_all arg...
5616# Invoke $ECHO with all args, space-separated.
5617func_echo_all ()
5618{
5619 $ECHO ""
5620}
5621
5622case "$ECHO" in
5623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5624$as_echo "printf" >&6; } ;;
5625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5626$as_echo "print -r" >&6; } ;;
5627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5628$as_echo "cat" >&6; } ;;
5629esac
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
81ecdfbb
RW
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5645$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5646if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
5647 $as_echo_n "(cached) " >&6
5648else
5649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5650 for ac_i in 1 2 3 4 5 6 7; do
5651 ac_script="$ac_script$as_nl$ac_script"
5652 done
5653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5654 { ac_script=; unset ac_script;}
5655 if test -z "$SED"; then
5656 ac_path_SED_found=false
5657 # Loop through the user's path and test for each of PROGNAME-LIST
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5659for as_dir in $PATH
5660do
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
81ecdfbb 5663 for ac_prog in sed gsed; do
7357c5b6 5664 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5666 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5667# Check for GNU ac_path_SED and select it if it is found.
5668 # Check for GNU $ac_path_SED
5669case `"$ac_path_SED" --version 2>&1` in
5670*GNU*)
5671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5672*)
5673 ac_count=0
5674 $as_echo_n 0123456789 >"conftest.in"
5675 while :
5676 do
5677 cat "conftest.in" "conftest.in" >"conftest.tmp"
5678 mv "conftest.tmp" "conftest.in"
5679 cp "conftest.in" "conftest.nl"
5680 $as_echo '' >> "conftest.nl"
5681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5683 as_fn_arith $ac_count + 1 && ac_count=$as_val
5684 if test $ac_count -gt ${ac_path_SED_max-0}; then
5685 # Best one so far, save it but keep looking for a better one
5686 ac_cv_path_SED="$ac_path_SED"
5687 ac_path_SED_max=$ac_count
5688 fi
5689 # 10*(2^10) chars as input seems more than enough
5690 test $ac_count -gt 10 && break
5691 done
5692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5693esac
5694
5695 $ac_path_SED_found && break 3
7357c5b6
AM
5696 done
5697 done
81ecdfbb 5698 done
7357c5b6 5699IFS=$as_save_IFS
81ecdfbb 5700 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
ce2cded5 5702 fi
81ecdfbb
RW
5703else
5704 ac_cv_path_SED=$SED
7357c5b6 5705fi
20e95c23 5706
81ecdfbb
RW
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5709$as_echo "$ac_cv_path_SED" >&6; }
5710 SED="$ac_cv_path_SED"
5711 rm -f conftest.sed
20e95c23 5712
7357c5b6
AM
5713test -z "$SED" && SED=sed
5714Xsed="$SED -e 1s/^X//"
20e95c23
DJ
5715
5716
5717
5718
5719
5720
20e95c23 5721
20e95c23 5722
d7040cdb 5723
d7040cdb 5724
7357c5b6 5725
81ecdfbb
RW
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5727$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5728if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5729 $as_echo_n "(cached) " >&6
7357c5b6 5730else
81ecdfbb
RW
5731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5732 then ac_cv_path_FGREP="$GREP -F"
5733 else
5734 if test -z "$FGREP"; then
5735 ac_path_FGREP_found=false
5736 # Loop through the user's path and test for each of PROGNAME-LIST
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_prog in fgrep; do
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5745 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5746# Check for GNU ac_path_FGREP and select it if it is found.
5747 # Check for GNU $ac_path_FGREP
5748case `"$ac_path_FGREP" --version 2>&1` in
5749*GNU*)
5750 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5751*)
5752 ac_count=0
5753 $as_echo_n 0123456789 >"conftest.in"
5754 while :
5755 do
5756 cat "conftest.in" "conftest.in" >"conftest.tmp"
5757 mv "conftest.tmp" "conftest.in"
5758 cp "conftest.in" "conftest.nl"
5759 $as_echo 'FGREP' >> "conftest.nl"
5760 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5762 as_fn_arith $ac_count + 1 && ac_count=$as_val
5763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5764 # Best one so far, save it but keep looking for a better one
5765 ac_cv_path_FGREP="$ac_path_FGREP"
5766 ac_path_FGREP_max=$ac_count
7357c5b6 5767 fi
81ecdfbb
RW
5768 # 10*(2^10) chars as input seems more than enough
5769 test $ac_count -gt 10 && break
5770 done
5771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5772esac
5773
5774 $ac_path_FGREP_found && break 3
5775 done
5776 done
5777 done
5778IFS=$as_save_IFS
5779 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5780 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5781 fi
5782else
5783 ac_cv_path_FGREP=$FGREP
5784fi
5785
5786 fi
20e95c23 5787fi
81ecdfbb
RW
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5789$as_echo "$ac_cv_path_FGREP" >&6; }
5790 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5791
5792
5793test -z "$GREP" && GREP=grep
5794
d7040cdb
SE
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
20e95c23 5806
ce2cded5 5807
d7040cdb 5808
7357c5b6
AM
5809
5810
5811
5812
81ecdfbb
RW
5813# Check whether --with-gnu-ld was given.
5814if test "${with_gnu_ld+set}" = set; then :
5815 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5816else
5817 with_gnu_ld=no
81ecdfbb
RW
5818fi
5819
7357c5b6
AM
5820ac_prog=ld
5821if test "$GCC" = yes; then
5822 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5824$as_echo_n "checking for ld used by $CC... " >&6; }
7357c5b6
AM
5825 case $host in
5826 *-*-mingw*)
5827 # gcc leaves a trailing carriage return which upsets mingw
5828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5829 *)
5830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5831 esac
5832 case $ac_prog in
5833 # Accept absolute paths.
5834 [\\/]* | ?:[\\/]*)
5835 re_direlt='/[^/][^/]*/\.\./'
5836 # Canonicalize the pathname of ld
5837 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5838 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5839 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5840 done
5841 test -z "$LD" && LD="$ac_prog"
5842 ;;
5843 "")
5844 # If it fails, then pretend we aren't using GCC.
5845 ac_prog=ld
5846 ;;
5847 *)
5848 # If it is relative, then search for the first ld in PATH.
5849 with_gnu_ld=unknown
5850 ;;
5851 esac
5852elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5854$as_echo_n "checking for GNU ld... " >&6; }
7357c5b6 5855else
81ecdfbb
RW
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5857$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5858fi
d0ac1c44 5859if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5860 $as_echo_n "(cached) " >&6
ce2cded5 5861else
7357c5b6
AM
5862 if test -z "$LD"; then
5863 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5864 for ac_dir in $PATH; do
5865 IFS="$lt_save_ifs"
5866 test -z "$ac_dir" && ac_dir=.
5867 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5868 lt_cv_path_LD="$ac_dir/$ac_prog"
5869 # Check to see if the program is GNU ld. I'd rather use --version,
5870 # but apparently some variants of GNU ld only accept -v.
5871 # Break only if it was the GNU/non-GNU ld that we prefer.
5872 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5873 *GNU* | *'with BFD'*)
5874 test "$with_gnu_ld" != no && break
5875 ;;
5876 *)
5877 test "$with_gnu_ld" != yes && break
5878 ;;
5879 esac
5880 fi
5881 done
5882 IFS="$lt_save_ifs"
ce2cded5 5883else
7357c5b6 5884 lt_cv_path_LD="$LD" # Let the user override the test with a path.
ce2cded5
L
5885fi
5886fi
7357c5b6
AM
5887
5888LD="$lt_cv_path_LD"
5889if test -n "$LD"; then
81ecdfbb
RW
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5891$as_echo "$LD" >&6; }
ce2cded5 5892else
81ecdfbb
RW
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894$as_echo "no" >&6; }
ce2cded5 5895fi
d0ac1c44 5896test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5898$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5899if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5900 $as_echo_n "(cached) " >&6
ce2cded5 5901else
7357c5b6
AM
5902 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5903case `$LD -v 2>&1 </dev/null` in
5904*GNU* | *'with BFD'*)
5905 lt_cv_prog_gnu_ld=yes
5906 ;;
5907*)
5908 lt_cv_prog_gnu_ld=no
5909 ;;
5910esac
ce2cded5 5911fi
81ecdfbb
RW
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5913$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7357c5b6 5914with_gnu_ld=$lt_cv_prog_gnu_ld
d7040cdb
SE
5915
5916
5917
5918
5919
5920
5921
5922
5923
81ecdfbb
RW
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5925$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5926if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5927 $as_echo_n "(cached) " >&6
ce2cded5 5928else
7357c5b6 5929 if test -n "$NM"; then
b9004024
NA
5930 # Let the user override the nm to test.
5931 lt_nm_to_check="$NM"
5932 else
5933 lt_nm_to_check="${ac_tool_prefix}nm"
5934 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5935 lt_nm_to_check="$lt_nm_to_check nm"
5936 fi
5937 fi
caf606c9 5938 for lt_tmp_nm in "$lt_nm_to_check"; do
b9004024
NA
5939 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5940 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5941 IFS="$lt_save_ifs"
5942 test -z "$ac_dir" && ac_dir=.
caf606c9
NA
5943 # Strip out any user-provided options from the nm to test twice,
5944 # the first time to test to see if nm (rather than its options) has
5945 # an explicit path, the second time to yield a file which can be
5946 # nm'ed itself.
5947 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5948 case "$tmp_nm_path" in
b9004024
NA
5949 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5950 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5951 esac
caf606c9
NA
5952 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5953 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
b9004024
NA
5954 # Check to see if the nm accepts a BSD-compat flag.
5955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5956 # nm: unknown option "B" ignored
caf606c9 5957 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5958 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5959 break
5960 ;;
5961 *)
caf606c9 5962 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
b9004024
NA
5963 *$tmp_nm*)
5964 lt_cv_path_NM="$tmp_nm -p"
5965 break
5966 ;;
5967 *)
5968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5969 continue # so that we can try to find one that supports BSD flags
5970 ;;
5971 esac
5972 ;;
5973 esac
5974 fi
5975 done
5976 IFS="$lt_save_ifs"
5977 done
5978 : ${lt_cv_path_NM=no}
ce2cded5 5979fi
81ecdfbb
RW
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5981$as_echo "$lt_cv_path_NM" >&6; }
7357c5b6
AM
5982if test "$lt_cv_path_NM" != "no"; then
5983 NM="$lt_cv_path_NM"
ce2cded5 5984else
7357c5b6 5985 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5986 if test -n "$DUMPBIN"; then :
5987 # Let the user override the test.
5988 else
5989 if test -n "$ac_tool_prefix"; then
5990 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
5991 do
5992 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5993set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5995$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5996if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5997 $as_echo_n "(cached) " >&6
20e95c23 5998else
7357c5b6
AM
5999 if test -n "$DUMPBIN"; then
6000 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ce2cded5
L
6001else
6002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003for as_dir in $PATH
6004do
6005 IFS=$as_save_IFS
6006 test -z "$as_dir" && as_dir=.
81ecdfbb 6007 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6009 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 6010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6011 break 2
6012 fi
6013done
81ecdfbb
RW
6014 done
6015IFS=$as_save_IFS
d7040cdb 6016
20e95c23 6017fi
ce2cded5 6018fi
7357c5b6
AM
6019DUMPBIN=$ac_cv_prog_DUMPBIN
6020if test -n "$DUMPBIN"; then
81ecdfbb
RW
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6022$as_echo "$DUMPBIN" >&6; }
42ecbf5e 6023else
81ecdfbb
RW
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6025$as_echo "no" >&6; }
42ecbf5e
DJ
6026fi
6027
81ecdfbb 6028
7357c5b6
AM
6029 test -n "$DUMPBIN" && break
6030 done
ce2cded5 6031fi
7357c5b6
AM
6032if test -z "$DUMPBIN"; then
6033 ac_ct_DUMPBIN=$DUMPBIN
3725885a 6034 for ac_prog in dumpbin "link -dump"
7357c5b6
AM
6035do
6036 # Extract the first word of "$ac_prog", so it can be a program name with args.
6037set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6040if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 6041 $as_echo_n "(cached) " >&6
42ecbf5e 6042else
7357c5b6
AM
6043 if test -n "$ac_ct_DUMPBIN"; then
6044 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ce2cded5
L
6045else
6046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047for as_dir in $PATH
6048do
6049 IFS=$as_save_IFS
6050 test -z "$as_dir" && as_dir=.
81ecdfbb 6051 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6053 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 6054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6055 break 2
6056 fi
6057done
81ecdfbb
RW
6058 done
6059IFS=$as_save_IFS
d7040cdb 6060
ce2cded5
L
6061fi
6062fi
7357c5b6
AM
6063ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6064if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6066$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 6067else
81ecdfbb
RW
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069$as_echo "no" >&6; }
ce2cded5 6070fi
d7040cdb 6071
81ecdfbb 6072
7357c5b6 6073 test -n "$ac_ct_DUMPBIN" && break
ce2cded5 6074done
d7040cdb 6075
81ecdfbb
RW
6076 if test "x$ac_ct_DUMPBIN" = x; then
6077 DUMPBIN=":"
6078 else
6079 case $cross_compiling:$ac_tool_warned in
6080yes:)
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6083ac_tool_warned=yes ;;
6084esac
6085 DUMPBIN=$ac_ct_DUMPBIN
6086 fi
ce2cded5 6087fi
7357c5b6 6088
3725885a
RW
6089 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6090 *COFF*)
6091 DUMPBIN="$DUMPBIN -symbols"
6092 ;;
6093 *)
6094 DUMPBIN=:
6095 ;;
6096 esac
6097 fi
7357c5b6
AM
6098
6099 if test "$DUMPBIN" != ":"; then
6100 NM="$DUMPBIN"
6101 fi
ce2cded5 6102fi
7357c5b6
AM
6103test -z "$NM" && NM=nm
6104
6105
6106
6107
6108
6109
81ecdfbb
RW
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6111$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 6112if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 6113 $as_echo_n "(cached) " >&6
20e95c23 6114else
7357c5b6
AM
6115 lt_cv_nm_interface="BSD nm"
6116 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 6117 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7357c5b6
AM
6118 (eval "$ac_compile" 2>conftest.err)
6119 cat conftest.err >&5
3725885a 6120 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7357c5b6
AM
6121 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6122 cat conftest.err >&5
3725885a 6123 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7357c5b6
AM
6124 cat conftest.out >&5
6125 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6126 lt_cv_nm_interface="MS dumpbin"
6127 fi
6128 rm -f conftest*
20e95c23 6129fi
81ecdfbb
RW
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6131$as_echo "$lt_cv_nm_interface" >&6; }
20e95c23 6132
81ecdfbb
RW
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6134$as_echo_n "checking whether ln -s works... " >&6; }
7357c5b6
AM
6135LN_S=$as_ln_s
6136if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6138$as_echo "yes" >&6; }
ce2cded5 6139else
81ecdfbb
RW
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6141$as_echo "no, using $LN_S" >&6; }
d7040cdb 6142fi
20e95c23 6143
7357c5b6 6144# find the maximum length of command line arguments
81ecdfbb
RW
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6146$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 6147if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 6148 $as_echo_n "(cached) " >&6
7357c5b6
AM
6149else
6150 i=0
6151 teststring="ABCD"
20e95c23 6152
7357c5b6
AM
6153 case $build_os in
6154 msdosdjgpp*)
6155 # On DJGPP, this test can blow up pretty badly due to problems in libc
6156 # (any single argument exceeding 2000 bytes causes a buffer overrun
6157 # during glob expansion). Even if it were fixed, the result of this
6158 # check would be larger than it should be.
6159 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6160 ;;
20e95c23 6161
7357c5b6
AM
6162 gnu*)
6163 # Under GNU Hurd, this test is not required because there is
6164 # no limit to the length of command line arguments.
6165 # Libtool will interpret -1 as no limit whatsoever
6166 lt_cv_sys_max_cmd_len=-1;
6167 ;;
20e95c23 6168
b214d478 6169 cygwin* | mingw* | cegcc*)
7357c5b6
AM
6170 # On Win9x/ME, this test blows up -- it succeeds, but takes
6171 # about 5 minutes as the teststring grows exponentially.
6172 # Worse, since 9x/ME are not pre-emptively multitasking,
6173 # you end up with a "frozen" computer, even though with patience
6174 # the test eventually succeeds (with a max line length of 256k).
6175 # Instead, let's just punt: use the minimum linelength reported by
6176 # all of the supported platforms: 8192 (on NT/2K/XP).
6177 lt_cv_sys_max_cmd_len=8192;
6178 ;;
20e95c23 6179
3725885a
RW
6180 mint*)
6181 # On MiNT this can take a long time and run out of memory.
6182 lt_cv_sys_max_cmd_len=8192;
6183 ;;
6184
7357c5b6
AM
6185 amigaos*)
6186 # On AmigaOS with pdksh, this test takes hours, literally.
6187 # So we just punt and use a minimum line length of 8192.
6188 lt_cv_sys_max_cmd_len=8192;
6189 ;;
20e95c23 6190
7357c5b6
AM
6191 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6192 # This has been around since 386BSD, at least. Likely further.
6193 if test -x /sbin/sysctl; then
6194 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6195 elif test -x /usr/sbin/sysctl; then
6196 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6197 else
6198 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6199 fi
6200 # And add a safety zone
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6203 ;;
d7040cdb 6204
7357c5b6
AM
6205 interix*)
6206 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6207 lt_cv_sys_max_cmd_len=196608
6208 ;;
d7040cdb 6209
7357c5b6
AM
6210 osf*)
6211 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6212 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6213 # nice to cause kernel panics so lets avoid the loop below.
6214 # First set a reasonable default.
6215 lt_cv_sys_max_cmd_len=16384
6216 #
6217 if test -x /sbin/sysconfig; then
6218 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6219 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6220 esac
6221 fi
6222 ;;
6223 sco3.2v5*)
6224 lt_cv_sys_max_cmd_len=102400
6225 ;;
6226 sysv5* | sco5v6* | sysv4.2uw2*)
6227 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6228 if test -n "$kargmax"; then
6229 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6230 else
6231 lt_cv_sys_max_cmd_len=32768
6232 fi
ce2cded5
L
6233 ;;
6234 *)
b214d478
SE
6235 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6236 if test -n "$lt_cv_sys_max_cmd_len"; then
7357c5b6
AM
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 else
6240 # Make teststring a little bigger before we do anything with it.
6241 # a 1K string should be a reasonable start.
6242 for i in 1 2 3 4 5 6 7 8 ; do
6243 teststring=$teststring$teststring
6244 done
6245 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6246 # If test is not a shell built-in, we'll probably end up computing a
6247 # maximum length that is only half of the actual maximum length, but
6248 # we can't tell.
3725885a
RW
6249 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6250 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7357c5b6
AM
6251 test $i != 17 # 1/2 MB should be enough
6252 do
6253 i=`expr $i + 1`
6254 teststring=$teststring$teststring
6255 done
6256 # Only check the string length outside the loop.
6257 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6258 teststring=
6259 # Add a significant safety factor because C++ compilers can tack on
6260 # massive amounts of additional arguments before passing them to the
6261 # linker. It appears as though 1/2 is a usable value.
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6263 fi
ce2cded5
L
6264 ;;
6265 esac
d7040cdb 6266
7357c5b6 6267fi
d7040cdb 6268
7357c5b6 6269if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6271$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7357c5b6 6272else
81ecdfbb
RW
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6274$as_echo "none" >&6; }
7357c5b6
AM
6275fi
6276max_cmd_len=$lt_cv_sys_max_cmd_len
d7040cdb
SE
6277
6278
6279
6280
6281
d7040cdb 6282
7357c5b6
AM
6283: ${CP="cp -f"}
6284: ${MV="mv -f"}
6285: ${RM="rm -f"}
d7040cdb 6286
81ecdfbb
RW
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6288$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7357c5b6
AM
6289# Try some XSI features
6290xsi_shell=no
6291( _lt_dummy="a/b/c"
6292 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
b214d478
SE
6293 = c,a/b,, \
6294 && eval 'test $(( 1 + 1 )) -eq 2 \
6295 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7357c5b6 6296 && xsi_shell=yes
81ecdfbb
RW
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6298$as_echo "$xsi_shell" >&6; }
d7040cdb 6299
d7040cdb 6300
81ecdfbb
RW
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6302$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7357c5b6
AM
6303lt_shell_append=no
6304( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6305 >/dev/null 2>&1 \
6306 && lt_shell_append=yes
81ecdfbb
RW
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6308$as_echo "$lt_shell_append" >&6; }
d7040cdb
SE
6309
6310
7357c5b6
AM
6311if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6312 lt_unset=unset
6313else
6314 lt_unset=false
6315fi
d7040cdb 6316
d7040cdb 6317
d7040cdb 6318
d7040cdb 6319
d7040cdb 6320
7357c5b6
AM
6321# test EBCDIC or ASCII
6322case `echo X|tr X '\101'` in
6323 A) # ASCII based system
6324 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6325 lt_SP2NL='tr \040 \012'
6326 lt_NL2SP='tr \015\012 \040\040'
6327 ;;
6328 *) # EBCDIC based system
6329 lt_SP2NL='tr \100 \n'
6330 lt_NL2SP='tr \r\n \100\100'
6331 ;;
6332esac
42ecbf5e 6333
d7040cdb
SE
6334
6335
6336
6337
6338
6339
d7040cdb 6340
d7040cdb 6341
81ecdfbb
RW
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6343$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6344if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6345 $as_echo_n "(cached) " >&6
7357c5b6
AM
6346else
6347 lt_cv_ld_reload_flag='-r'
6348fi
81ecdfbb
RW
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6350$as_echo "$lt_cv_ld_reload_flag" >&6; }
7357c5b6
AM
6351reload_flag=$lt_cv_ld_reload_flag
6352case $reload_flag in
6353"" | " "*) ;;
6354*) reload_flag=" $reload_flag" ;;
6355esac
6356reload_cmds='$LD$reload_flag -o $output$reload_objs'
6357case $host_os in
6358 darwin*)
6359 if test "$GCC" = yes; then
6360 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6361 else
6362 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6363 fi
6364 ;;
6365esac
d7040cdb 6366
d7040cdb 6367
d7040cdb 6368
d7040cdb 6369
d7040cdb 6370
d7040cdb 6371
d7040cdb 6372
d7040cdb 6373
d7040cdb 6374
b214d478
SE
6375if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6380if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6381 $as_echo_n "(cached) " >&6
b214d478
SE
6382else
6383 if test -n "$OBJDUMP"; then
6384 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
81ecdfbb 6391 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6393 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6395 break 2
6396 fi
6397done
81ecdfbb
RW
6398 done
6399IFS=$as_save_IFS
b214d478
SE
6400
6401fi
6402fi
6403OBJDUMP=$ac_cv_prog_OBJDUMP
6404if test -n "$OBJDUMP"; then
81ecdfbb
RW
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6406$as_echo "$OBJDUMP" >&6; }
b214d478 6407else
81ecdfbb
RW
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409$as_echo "no" >&6; }
b214d478
SE
6410fi
6411
81ecdfbb 6412
b214d478
SE
6413fi
6414if test -z "$ac_cv_prog_OBJDUMP"; then
6415 ac_ct_OBJDUMP=$OBJDUMP
6416 # Extract the first word of "objdump", so it can be a program name with args.
6417set dummy objdump; ac_word=$2
81ecdfbb
RW
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6420if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6421 $as_echo_n "(cached) " >&6
b214d478
SE
6422else
6423 if test -n "$ac_ct_OBJDUMP"; then
6424 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
81ecdfbb 6431 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 6433 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
6435 break 2
6436 fi
6437done
81ecdfbb
RW
6438 done
6439IFS=$as_save_IFS
b214d478 6440
b214d478
SE
6441fi
6442fi
6443ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6444if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6446$as_echo "$ac_ct_OBJDUMP" >&6; }
b214d478 6447else
81ecdfbb
RW
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449$as_echo "no" >&6; }
b214d478
SE
6450fi
6451
81ecdfbb
RW
6452 if test "x$ac_ct_OBJDUMP" = x; then
6453 OBJDUMP="false"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456yes:)
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6459ac_tool_warned=yes ;;
6460esac
6461 OBJDUMP=$ac_ct_OBJDUMP
6462 fi
b214d478
SE
6463else
6464 OBJDUMP="$ac_cv_prog_OBJDUMP"
6465fi
6466
6467test -z "$OBJDUMP" && OBJDUMP=objdump
6468
6469
6470
6471
6472
6473
6474
6475
d7040cdb 6476
81ecdfbb
RW
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6478$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6479if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6480 $as_echo_n "(cached) " >&6
ce2cded5 6481else
7357c5b6
AM
6482 lt_cv_file_magic_cmd='$MAGIC_CMD'
6483lt_cv_file_magic_test_file=
6484lt_cv_deplibs_check_method='unknown'
6485# Need to set the preceding variable on all platforms that support
6486# interlibrary dependencies.
6487# 'none' -- dependencies not supported.
6488# `unknown' -- same as none, but documents that we really don't know.
6489# 'pass_all' -- all dependencies passed with no checks.
6490# 'test_compile' -- check by making test program.
6491# 'file_magic [[regex]]' -- check by looking for files in library path
6492# which responds to the $file_magic_cmd with a given extended regex.
6493# If you have `file' or equivalent on your system and you're not sure
6494# whether `pass_all' will *always* work, you probably want this one.
d7040cdb 6495
ce2cded5 6496case $host_os in
7357c5b6
AM
6497aix[4-9]*)
6498 lt_cv_deplibs_check_method=pass_all
ce2cded5 6499 ;;
7357c5b6
AM
6500
6501beos*)
6502 lt_cv_deplibs_check_method=pass_all
ce2cded5 6503 ;;
7357c5b6
AM
6504
6505bsdi[45]*)
6506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6507 lt_cv_file_magic_cmd='/usr/bin/file -L'
6508 lt_cv_file_magic_test_file=/shlib/libc.so
ce2cded5 6509 ;;
7357c5b6
AM
6510
6511cygwin*)
6512 # func_win32_libid is a shell function defined in ltmain.sh
6513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6514 lt_cv_file_magic_cmd='func_win32_libid'
ce2cded5 6515 ;;
7357c5b6
AM
6516
6517mingw* | pw32*)
6518 # Base MSYS/MinGW do not provide the 'file' command needed by
6519 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6520 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6521 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6522 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7357c5b6
AM
6523 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6524 lt_cv_file_magic_cmd='func_win32_libid'
6525 else
6526 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6527 lt_cv_file_magic_cmd='$OBJDUMP -f'
6528 fi
ce2cded5 6529 ;;
7357c5b6 6530
3725885a 6531cegcc*)
b214d478
SE
6532 # use the weaker test based on 'objdump'. See mingw*.
6533 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6534 lt_cv_file_magic_cmd='$OBJDUMP -f'
6535 ;;
6536
7357c5b6
AM
6537darwin* | rhapsody*)
6538 lt_cv_deplibs_check_method=pass_all
ce2cded5 6539 ;;
7357c5b6
AM
6540
6541freebsd* | dragonfly*)
6542 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6543 case $host_cpu in
6544 i*86 )
6545 # Not sure whether the presence of OpenBSD here was a mistake.
6546 # Let's accept both of them until this is cleared up.
6547 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6548 lt_cv_file_magic_cmd=/usr/bin/file
6549 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6550 ;;
6551 esac
6552 else
6553 lt_cv_deplibs_check_method=pass_all
6554 fi
ce2cded5 6555 ;;
7357c5b6
AM
6556
6557gnu*)
6558 lt_cv_deplibs_check_method=pass_all
ce2cded5 6559 ;;
7357c5b6 6560
3725885a
RW
6561haiku*)
6562 lt_cv_deplibs_check_method=pass_all
6563 ;;
6564
7357c5b6
AM
6565hpux10.20* | hpux11*)
6566 lt_cv_file_magic_cmd=/usr/bin/file
6567 case $host_cpu in
6568 ia64*)
6569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6571 ;;
6572 hppa*64*)
3725885a 6573 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
6574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6575 ;;
6576 *)
3725885a 6577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7357c5b6
AM
6578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6579 ;;
6580 esac
ce2cded5 6581 ;;
d7040cdb 6582
7357c5b6
AM
6583interix[3-9]*)
6584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6586 ;;
d7040cdb 6587
7357c5b6
AM
6588irix5* | irix6* | nonstopux*)
6589 case $LD in
6590 *-32|*"-32 ") libmagic=32-bit;;
6591 *-n32|*"-n32 ") libmagic=N32;;
6592 *-64|*"-64 ") libmagic=64-bit;;
6593 *) libmagic=never-match;;
6594 esac
6595 lt_cv_deplibs_check_method=pass_all
6596 ;;
d7040cdb 6597
7357c5b6 6598# This must be Linux ELF.
6a6859cb 6599linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7357c5b6
AM
6600 lt_cv_deplibs_check_method=pass_all
6601 ;;
d7040cdb 6602
7357c5b6
AM
6603netbsd*)
6604 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6606 else
6607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6608 fi
ce2cded5 6609 ;;
d7040cdb 6610
7357c5b6
AM
6611newos6*)
6612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6613 lt_cv_file_magic_cmd=/usr/bin/file
6614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6615 ;;
d7040cdb 6616
7357c5b6
AM
6617*nto* | *qnx*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
d7040cdb 6620
7357c5b6
AM
6621openbsd*)
6622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
ce2cded5 6624 else
7357c5b6 6625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
ce2cded5 6626 fi
7357c5b6 6627 ;;
d7040cdb 6628
7357c5b6
AM
6629osf3* | osf4* | osf5*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
d7040cdb 6632
7357c5b6
AM
6633rdos*)
6634 lt_cv_deplibs_check_method=pass_all
6635 ;;
d7040cdb 6636
7357c5b6
AM
6637solaris*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
d7040cdb 6640
7357c5b6
AM
6641sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
d7040cdb 6644
7357c5b6
AM
6645sysv4 | sysv4.3*)
6646 case $host_vendor in
6647 motorola)
6648 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]'
6649 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6650 ;;
6651 ncr)
6652 lt_cv_deplibs_check_method=pass_all
6653 ;;
6654 sequent)
6655 lt_cv_file_magic_cmd='/bin/file'
6656 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6657 ;;
6658 sni)
6659 lt_cv_file_magic_cmd='/bin/file'
6660 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6661 lt_cv_file_magic_test_file=/lib/libc.so
6662 ;;
6663 siemens)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666 pc)
6667 lt_cv_deplibs_check_method=pass_all
6668 ;;
6669 esac
6670 ;;
d7040cdb 6671
7357c5b6
AM
6672tpf*)
6673 lt_cv_deplibs_check_method=pass_all
6674 ;;
6a6859cb
AM
6675vxworks*)
6676 # Assume VxWorks cross toolchains are built on Linux, possibly
6677 # as canadian for Windows hosts.
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
7357c5b6 6680esac
d7040cdb 6681
7357c5b6 6682fi
81ecdfbb
RW
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6684$as_echo "$lt_cv_deplibs_check_method" >&6; }
7357c5b6
AM
6685file_magic_cmd=$lt_cv_file_magic_cmd
6686deplibs_check_method=$lt_cv_deplibs_check_method
6687test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb
SE
6688
6689
6690
7357c5b6
AM
6691
6692
6693
6694
6695
6696
6697
6698
6699
a4966cd9
L
6700plugin_option=
6701plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6702for plugin in $plugin_names; do
6703 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6704 if test x$plugin_so = x$plugin; then
6705 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6706 fi
6707 if test x$plugin_so != x$plugin; then
6708 plugin_option="--plugin $plugin_so"
6709 break
6710 fi
6711done
6712
7357c5b6
AM
6713if test -n "$ac_tool_prefix"; then
6714 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6715set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6718if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6719 $as_echo_n "(cached) " >&6
7357c5b6
AM
6720else
6721 if test -n "$AR"; then
6722 ac_cv_prog_AR="$AR" # Let the user override the test.
6723else
6724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725for as_dir in $PATH
6726do
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
81ecdfbb 6729 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6731 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6733 break 2
ce2cded5
L
6734 fi
6735done
81ecdfbb
RW
6736 done
6737IFS=$as_save_IFS
d7040cdb 6738
42ecbf5e 6739fi
ce2cded5 6740fi
7357c5b6
AM
6741AR=$ac_cv_prog_AR
6742if test -n "$AR"; then
81ecdfbb
RW
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6744$as_echo "$AR" >&6; }
42ecbf5e 6745else
81ecdfbb
RW
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747$as_echo "no" >&6; }
42ecbf5e
DJ
6748fi
6749
81ecdfbb 6750
7357c5b6
AM
6751fi
6752if test -z "$ac_cv_prog_AR"; then
6753 ac_ct_AR=$AR
6754 # Extract the first word of "ar", so it can be a program name with args.
6755set dummy ar; ac_word=$2
81ecdfbb
RW
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6758if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6759 $as_echo_n "(cached) " >&6
7357c5b6
AM
6760else
6761 if test -n "$ac_ct_AR"; then
6762 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6763else
6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765for as_dir in $PATH
6766do
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
81ecdfbb 6769 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6771 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6773 break 2
6774 fi
6775done
81ecdfbb
RW
6776 done
6777IFS=$as_save_IFS
42ecbf5e 6778
7357c5b6
AM
6779fi
6780fi
6781ac_ct_AR=$ac_cv_prog_ac_ct_AR
6782if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6784$as_echo "$ac_ct_AR" >&6; }
7357c5b6 6785else
81ecdfbb
RW
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787$as_echo "no" >&6; }
7357c5b6 6788fi
d7040cdb 6789
81ecdfbb
RW
6790 if test "x$ac_ct_AR" = x; then
6791 AR="false"
6792 else
6793 case $cross_compiling:$ac_tool_warned in
6794yes:)
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797ac_tool_warned=yes ;;
6798esac
6799 AR=$ac_ct_AR
6800 fi
7357c5b6
AM
6801else
6802 AR="$ac_cv_prog_AR"
6803fi
d7040cdb 6804
7357c5b6 6805test -z "$AR" && AR=ar
a4966cd9
L
6806if test -n "$plugin_option"; then
6807 if $AR --help 2>&1 | grep -q "\--plugin"; then
83b33c6c
L
6808 touch conftest.c
6809 $AR $plugin_option rc conftest.a conftest.c
6810 if test "$?" != 0; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6812$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6813 else
6814 AR="$AR $plugin_option"
6815 fi
6816 rm -f conftest.*
a4966cd9
L
6817 fi
6818fi
7357c5b6 6819test -z "$AR_FLAGS" && AR_FLAGS=cru
d7040cdb
SE
6820
6821
6822
20e95c23 6823
d7040cdb 6824
d7040cdb
SE
6825
6826
6827
6828
6829
6830
7357c5b6
AM
6831if test -n "$ac_tool_prefix"; then
6832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6833set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6836if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6837 $as_echo_n "(cached) " >&6
7357c5b6
AM
6838else
6839 if test -n "$STRIP"; then
6840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
81ecdfbb 6847 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6851 break 2
ce2cded5 6852 fi
7357c5b6 6853done
81ecdfbb
RW
6854 done
6855IFS=$as_save_IFS
d7040cdb 6856
7357c5b6
AM
6857fi
6858fi
6859STRIP=$ac_cv_prog_STRIP
6860if test -n "$STRIP"; then
81ecdfbb
RW
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6862$as_echo "$STRIP" >&6; }
7357c5b6 6863else
81ecdfbb
RW
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865$as_echo "no" >&6; }
7357c5b6
AM
6866fi
6867
81ecdfbb 6868
7357c5b6
AM
6869fi
6870if test -z "$ac_cv_prog_STRIP"; then
6871 ac_ct_STRIP=$STRIP
6872 # Extract the first word of "strip", so it can be a program name with args.
6873set dummy strip; ac_word=$2
81ecdfbb
RW
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6876if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6877 $as_echo_n "(cached) " >&6
7357c5b6
AM
6878else
6879 if test -n "$ac_ct_STRIP"; then
6880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885 IFS=$as_save_IFS
6886 test -z "$as_dir" && as_dir=.
81ecdfbb 6887 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6889 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6891 break 2
ce2cded5 6892 fi
7357c5b6 6893done
81ecdfbb
RW
6894 done
6895IFS=$as_save_IFS
d7040cdb 6896
7357c5b6
AM
6897fi
6898fi
6899ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6900if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6902$as_echo "$ac_ct_STRIP" >&6; }
20e95c23 6903else
81ecdfbb
RW
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905$as_echo "no" >&6; }
7357c5b6 6906fi
d7040cdb 6907
81ecdfbb
RW
6908 if test "x$ac_ct_STRIP" = x; then
6909 STRIP=":"
6910 else
6911 case $cross_compiling:$ac_tool_warned in
6912yes:)
6913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915ac_tool_warned=yes ;;
6916esac
6917 STRIP=$ac_ct_STRIP
6918 fi
7357c5b6
AM
6919else
6920 STRIP="$ac_cv_prog_STRIP"
6921fi
d7040cdb 6922
7357c5b6 6923test -z "$STRIP" && STRIP=:
d7040cdb 6924
d7040cdb
SE
6925
6926
6927
d7040cdb 6928
7357c5b6
AM
6929
6930if test -n "$ac_tool_prefix"; then
6931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6932set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6935if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6936 $as_echo_n "(cached) " >&6
ce2cded5 6937else
7357c5b6
AM
6938 if test -n "$RANLIB"; then
6939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
ce2cded5 6943do
7357c5b6
AM
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
81ecdfbb 6946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6 6950 break 2
ce2cded5 6951 fi
7357c5b6 6952done
81ecdfbb
RW
6953 done
6954IFS=$as_save_IFS
7357c5b6 6955
ce2cded5 6956fi
7357c5b6
AM
6957fi
6958RANLIB=$ac_cv_prog_RANLIB
6959if test -n "$RANLIB"; then
81ecdfbb
RW
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6961$as_echo "$RANLIB" >&6; }
ce2cded5 6962else
81ecdfbb
RW
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964$as_echo "no" >&6; }
ce2cded5 6965fi
d7040cdb 6966
81ecdfbb 6967
7357c5b6
AM
6968fi
6969if test -z "$ac_cv_prog_RANLIB"; then
6970 ac_ct_RANLIB=$RANLIB
6971 # Extract the first word of "ranlib", so it can be a program name with args.
6972set dummy ranlib; ac_word=$2
81ecdfbb
RW
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6975if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6976 $as_echo_n "(cached) " >&6
ce2cded5 6977else
7357c5b6
AM
6978 if test -n "$ac_ct_RANLIB"; then
6979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6980else
6981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
81ecdfbb 6986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357c5b6 6988 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357c5b6
AM
6990 break 2
6991 fi
6992done
81ecdfbb
RW
6993 done
6994IFS=$as_save_IFS
7357c5b6 6995
ce2cded5 6996fi
7357c5b6
AM
6997fi
6998ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6999if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7001$as_echo "$ac_ct_RANLIB" >&6; }
ce2cded5 7002else
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004$as_echo "no" >&6; }
ce2cded5 7005fi
d7040cdb 7006
81ecdfbb
RW
7007 if test "x$ac_ct_RANLIB" = x; then
7008 RANLIB=":"
7009 else
7010 case $cross_compiling:$ac_tool_warned in
7011yes:)
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014ac_tool_warned=yes ;;
7015esac
7016 RANLIB=$ac_ct_RANLIB
7017 fi
7357c5b6
AM
7018else
7019 RANLIB="$ac_cv_prog_RANLIB"
ce2cded5 7020fi
d7040cdb 7021
7357c5b6 7022test -z "$RANLIB" && RANLIB=:
a4966cd9
L
7023if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7024 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7025 RANLIB="$RANLIB $plugin_option"
7026 fi
7027fi
d7040cdb 7028
7357c5b6
AM
7029
7030
7031
7032
7033
7034# Determine commands to create old-style static archives.
b214d478 7035old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7357c5b6
AM
7036old_postinstall_cmds='chmod 644 $oldlib'
7037old_postuninstall_cmds=
7038
7039if test -n "$RANLIB"; then
7040 case $host_os in
7041 openbsd*)
7042 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7043 ;;
7044 *)
7045 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7046 ;;
7047 esac
7048 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
ce2cded5 7049fi
7357c5b6 7050
3725885a
RW
7051case $host_os in
7052 darwin*)
7053 lock_old_archive_extraction=yes ;;
7054 *)
7055 lock_old_archive_extraction=no ;;
7056esac
7057
7058
7059
7060
7061
7062
7357c5b6
AM
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096# If no C compiler was specified, use CC.
7097LTCC=${LTCC-"$CC"}
7098
7099# If no C compiler flags were specified, use CFLAGS.
7100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7101
7102# Allow CC to be a program name with arguments.
7103compiler=$CC
7104
7105
7106# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
7107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7108$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 7109if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 7110 $as_echo_n "(cached) " >&6
ce2cded5 7111else
d7040cdb 7112
7357c5b6
AM
7113# These are sane defaults that work on at least a few old systems.
7114# [They come from Ultrix. What could be older than Ultrix?!! ;)]
d7040cdb 7115
7357c5b6
AM
7116# Character class describing NM global symbol codes.
7117symcode='[BCDEGRST]'
7118
7119# Regexp to match symbols that can be accessed directly from C.
7120sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7121
7122# Define system-specific variables.
7123case $host_os in
7124aix*)
7125 symcode='[BCDT]'
7126 ;;
b214d478 7127cygwin* | mingw* | pw32* | cegcc*)
7357c5b6
AM
7128 symcode='[ABCDGISTW]'
7129 ;;
7130hpux*)
7131 if test "$host_cpu" = ia64; then
7132 symcode='[ABCDEGRST]'
ce2cded5 7133 fi
7357c5b6
AM
7134 ;;
7135irix* | nonstopux*)
7136 symcode='[BCDEGRST]'
7137 ;;
7138osf*)
7139 symcode='[BCDEGQRST]'
7140 ;;
7141solaris*)
b9004024 7142 symcode='[BCDRT]'
7357c5b6
AM
7143 ;;
7144sco3.2v5*)
7145 symcode='[DT]'
7146 ;;
7147sysv4.2uw2*)
7148 symcode='[DT]'
7149 ;;
7150sysv5* | sco5v6* | unixware* | OpenUNIX*)
7151 symcode='[ABDT]'
7152 ;;
7153sysv4)
7154 symcode='[DFNSTU]'
7155 ;;
7156esac
d7040cdb 7157
7357c5b6
AM
7158# If we're using GNU nm, then use its standard symbol codes.
7159case `$NM -V 2>&1` in
7160*GNU* | *'with BFD'*)
7161 symcode='[ABCDGIRSTW]' ;;
7162esac
d7040cdb 7163
7357c5b6
AM
7164# Transform an extracted symbol line into a proper C declaration.
7165# Some systems (esp. on ia64) link data and code symbols differently,
7166# so use this general approach.
7167lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7168
7169# Transform an extracted symbol line into symbol name and symbol address
7170lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
b214d478 7171lt_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
7172
7173# Handle CRLF in mingw tool chain
7174opt_cr=
7175case $build_os in
7176mingw*)
7177 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7178 ;;
7179esac
d7040cdb 7180
7357c5b6
AM
7181# Try without a prefix underscore, then with it.
7182for ac_symprfx in "" "_"; do
d7040cdb 7183
7357c5b6
AM
7184 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7185 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 7186
7357c5b6
AM
7187 # Write the raw and C identifiers.
7188 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7189 # Fake it for dumpbin and say T for any non-static function
7190 # and D for any global variable.
7191 # Also find C++ and __fastcall symbols from MSVC++,
7192 # which start with @ or ?.
7193 lt_cv_sys_global_symbol_pipe="$AWK '"\
7194" {last_section=section; section=\$ 3};"\
7195" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7196" \$ 0!~/External *\|/{next};"\
7197" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7198" {if(hide[section]) next};"\
7199" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7200" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7201" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7202" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7203" ' prfx=^$ac_symprfx"
7204 else
7205 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7206 fi
d7040cdb 7207
7357c5b6
AM
7208 # Check to see that the pipe works correctly.
7209 pipe_works=no
d7040cdb 7210
7357c5b6
AM
7211 rm -f conftest*
7212 cat > conftest.$ac_ext <<_LT_EOF
7213#ifdef __cplusplus
7214extern "C" {
7215#endif
7216char nm_test_var;
7217void nm_test_func(void);
7218void nm_test_func(void){}
7219#ifdef __cplusplus
20e95c23 7220}
7357c5b6
AM
7221#endif
7222int main(){nm_test_var='a';nm_test_func();return(0);}
7223_LT_EOF
7224
81ecdfbb 7225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 7226 (eval $ac_compile) 2>&5
20e95c23 7227 ac_status=$?
81ecdfbb
RW
7228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7229 test $ac_status = 0; }; then
7357c5b6
AM
7230 # Now try to grab the symbols.
7231 nlist=conftest.nm
3725885a
RW
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7233 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
20e95c23 7234 ac_status=$?
81ecdfbb
RW
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
7237 # Try sorting and uniquifying the output.
7238 if sort "$nlist" | uniq > "$nlist"T; then
7239 mv -f "$nlist"T "$nlist"
7240 else
7241 rm -f "$nlist"T
7242 fi
d7040cdb 7243
7357c5b6
AM
7244 # Make sure that we snagged all the symbols we need.
7245 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7246 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7247 cat <<_LT_EOF > conftest.$ac_ext
7248#ifdef __cplusplus
7249extern "C" {
7250#endif
ce2cded5 7251
7357c5b6
AM
7252_LT_EOF
7253 # Now generate the symbol file.
7254 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
ce2cded5 7255
7357c5b6 7256 cat <<_LT_EOF >> conftest.$ac_ext
42ecbf5e 7257
7357c5b6
AM
7258/* The mapping between symbol names and symbols. */
7259const struct {
7260 const char *name;
7261 void *address;
7262}
7263lt__PROGRAM__LTX_preloaded_symbols[] =
7264{
7265 { "@PROGRAM@", (void *) 0 },
7266_LT_EOF
7267 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7268 cat <<\_LT_EOF >> conftest.$ac_ext
7269 {0, (void *) 0}
7270};
d7040cdb 7271
7357c5b6
AM
7272/* This works around a problem in FreeBSD linker */
7273#ifdef FREEBSD_WORKAROUND
7274static const void *lt_preloaded_setup() {
7275 return lt__PROGRAM__LTX_preloaded_symbols;
7276}
ce2cded5 7277#endif
42ecbf5e 7278
7357c5b6 7279#ifdef __cplusplus
ce2cded5 7280}
7357c5b6
AM
7281#endif
7282_LT_EOF
7283 # Now try linking the two files.
7284 mv conftest.$ac_objext conftstm.$ac_objext
7285 lt_save_LIBS="$LIBS"
7286 lt_save_CFLAGS="$CFLAGS"
7287 LIBS="conftstm.$ac_objext"
7288 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
7290 (eval $ac_link) 2>&5
7291 ac_status=$?
81ecdfbb
RW
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
7294 pipe_works=yes
7295 fi
7296 LIBS="$lt_save_LIBS"
7297 CFLAGS="$lt_save_CFLAGS"
7298 else
7299 echo "cannot find nm_test_func in $nlist" >&5
7300 fi
7301 else
7302 echo "cannot find nm_test_var in $nlist" >&5
7303 fi
7304 else
7305 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7306 fi
7307 else
7308 echo "$progname: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 fi
b214d478 7311 rm -rf conftest* conftst*
7357c5b6
AM
7312
7313 # Do not use the global_symbol_pipe unless it works.
7314 if test "$pipe_works" = yes; then
7315 break
7316 else
7317 lt_cv_sys_global_symbol_pipe=
7318 fi
7319done
42ecbf5e 7320
ce2cded5 7321fi
7357c5b6
AM
7322
7323if test -z "$lt_cv_sys_global_symbol_pipe"; then
7324 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7325fi
7357c5b6 7326if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7328$as_echo "failed" >&6; }
7357c5b6 7329else
81ecdfbb
RW
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7331$as_echo "ok" >&6; }
ce2cded5 7332fi
e5a52504 7333
d7040cdb 7334
e5a52504 7335
d7040cdb 7336
d7040cdb 7337
d7040cdb 7338
d7040cdb 7339
d7040cdb 7340
d7040cdb 7341
d7040cdb 7342
d7040cdb 7343
d7040cdb 7344
7357c5b6
AM
7345
7346
7347
b214d478
SE
7348
7349
7350
7351
7352
7357c5b6
AM
7353
7354
81ecdfbb
RW
7355# Check whether --enable-libtool-lock was given.
7356if test "${enable_libtool_lock+set}" = set; then :
7357 enableval=$enable_libtool_lock;
7358fi
7357c5b6 7359
7357c5b6
AM
7360test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7361
7362# Some flags need to be propagated to the compiler or linker for good
7363# libtool support.
7364case $host in
7365ia64-*-hpux*)
7366 # Find out which ABI we are using.
7367 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7369 (eval $ac_compile) 2>&5
7370 ac_status=$?
81ecdfbb
RW
7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7372 test $ac_status = 0; }; then
7357c5b6
AM
7373 case `/usr/bin/file conftest.$ac_objext` in
7374 *ELF-32*)
7375 HPUX_IA64_MODE="32"
7376 ;;
7377 *ELF-64*)
7378 HPUX_IA64_MODE="64"
7379 ;;
7380 esac
7381 fi
7382 rm -rf conftest*
7383 ;;
7384*-*-irix6*)
7385 # Find out which ABI we are using.
3725885a 7386 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7388 (eval $ac_compile) 2>&5
7389 ac_status=$?
81ecdfbb
RW
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391 test $ac_status = 0; }; then
7357c5b6
AM
7392 if test "$lt_cv_prog_gnu_ld" = yes; then
7393 case `/usr/bin/file conftest.$ac_objext` in
7394 *32-bit*)
7395 LD="${LD-ld} -melf32bsmip"
7396 ;;
7397 *N32*)
7398 LD="${LD-ld} -melf32bmipn32"
7399 ;;
7400 *64-bit*)
7401 LD="${LD-ld} -melf64bmip"
7402 ;;
7403 esac
7404 else
7405 case `/usr/bin/file conftest.$ac_objext` in
7406 *32-bit*)
7407 LD="${LD-ld} -32"
7408 ;;
7409 *N32*)
7410 LD="${LD-ld} -n32"
7411 ;;
7412 *64-bit*)
7413 LD="${LD-ld} -64"
7414 ;;
7415 esac
7416 fi
7417 fi
7418 rm -rf conftest*
7419 ;;
7420
cc9afea3 7421x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7422s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7423 # Find out which ABI we are using.
7424 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7426 (eval $ac_compile) 2>&5
7427 ac_status=$?
81ecdfbb
RW
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }; then
7357c5b6
AM
7430 case `/usr/bin/file conftest.o` in
7431 *32-bit*)
7432 case $host in
7433 x86_64-*kfreebsd*-gnu)
7434 LD="${LD-ld} -m elf_i386_fbsd"
7435 ;;
7436 x86_64-*linux*)
6d2920c8
L
7437 case `/usr/bin/file conftest.o` in
7438 *x86-64*)
7439 LD="${LD-ld} -m elf32_x86_64"
7440 ;;
7441 *)
7442 LD="${LD-ld} -m elf_i386"
7443 ;;
7444 esac
7357c5b6 7445 ;;
cc9afea3
AM
7446 powerpc64le-*linux*)
7447 LD="${LD-ld} -m elf32lppclinux"
7448 ;;
7449 powerpc64-*linux*)
7357c5b6
AM
7450 LD="${LD-ld} -m elf32ppclinux"
7451 ;;
7452 s390x-*linux*)
7453 LD="${LD-ld} -m elf_s390"
7454 ;;
7455 sparc64-*linux*)
7456 LD="${LD-ld} -m elf32_sparc"
7457 ;;
7458 esac
7459 ;;
7460 *64-bit*)
7461 case $host in
7462 x86_64-*kfreebsd*-gnu)
7463 LD="${LD-ld} -m elf_x86_64_fbsd"
7464 ;;
7465 x86_64-*linux*)
7466 LD="${LD-ld} -m elf_x86_64"
7467 ;;
cc9afea3
AM
7468 powerpcle-*linux*)
7469 LD="${LD-ld} -m elf64lppc"
7470 ;;
7471 powerpc-*linux*)
7357c5b6
AM
7472 LD="${LD-ld} -m elf64ppc"
7473 ;;
7474 s390*-*linux*|s390*-*tpf*)
7475 LD="${LD-ld} -m elf64_s390"
7476 ;;
7477 sparc*-*linux*)
7478 LD="${LD-ld} -m elf64_sparc"
7479 ;;
7480 esac
7481 ;;
7482 esac
7483 fi
7484 rm -rf conftest*
7485 ;;
7486
7487*-*-sco3.2v5*)
7488 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7489 SAVE_CFLAGS="$CFLAGS"
7490 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7492$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7493if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7494 $as_echo_n "(cached) " >&6
ce2cded5 7495else
7357c5b6
AM
7496 ac_ext=c
7497ac_cpp='$CPP $CPPFLAGS'
7498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7500ac_compiler_gnu=$ac_cv_c_compiler_gnu
7501
81ecdfbb 7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7503/* end confdefs.h. */
d7040cdb 7504
7357c5b6
AM
7505int
7506main ()
7507{
7508
7509 ;
7510 return 0;
7511}
ce2cded5 7512_ACEOF
81ecdfbb 7513if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7514 lt_cv_cc_needs_belf=yes
ce2cded5 7515else
81ecdfbb 7516 lt_cv_cc_needs_belf=no
ce2cded5 7517fi
81ecdfbb
RW
7518rm -f core conftest.err conftest.$ac_objext \
7519 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7520 ac_ext=c
7521ac_cpp='$CPP $CPPFLAGS'
7522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7524ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7525
b214d478 7526fi
81ecdfbb
RW
7527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7528$as_echo "$lt_cv_cc_needs_belf" >&6; }
b214d478
SE
7529 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7530 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7531 CFLAGS="$SAVE_CFLAGS"
7532 fi
7533 ;;
7534sparc*-*solaris*)
7535 # Find out which ABI we are using.
7536 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
b214d478
SE
7538 (eval $ac_compile) 2>&5
7539 ac_status=$?
81ecdfbb
RW
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; then
b214d478
SE
7542 case `/usr/bin/file conftest.o` in
7543 *64-bit*)
7544 case $lt_cv_prog_gnu_ld in
7545 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7546 *)
7547 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7548 LD="${LD-ld} -64"
7549 fi
7550 ;;
7551 esac
7552 ;;
7553 esac
7554 fi
7555 rm -rf conftest*
7556 ;;
7557esac
7558
7559need_locks="$enable_libtool_lock"
7560
7561
7562 case $host_os in
7563 rhapsody* | darwin*)
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7566set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7569if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7570 $as_echo_n "(cached) " >&6
b214d478
SE
7571else
7572 if test -n "$DSYMUTIL"; then
7573 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7574else
7575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
81ecdfbb 7580 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7584 break 2
7585 fi
7586done
81ecdfbb
RW
7587 done
7588IFS=$as_save_IFS
b214d478
SE
7589
7590fi
7591fi
7592DSYMUTIL=$ac_cv_prog_DSYMUTIL
7593if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7595$as_echo "$DSYMUTIL" >&6; }
b214d478 7596else
81ecdfbb
RW
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
b214d478
SE
7599fi
7600
81ecdfbb 7601
b214d478
SE
7602fi
7603if test -z "$ac_cv_prog_DSYMUTIL"; then
7604 ac_ct_DSYMUTIL=$DSYMUTIL
7605 # Extract the first word of "dsymutil", so it can be a program name with args.
7606set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7609if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7610 $as_echo_n "(cached) " >&6
b214d478
SE
7611else
7612 if test -n "$ac_ct_DSYMUTIL"; then
7613 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7614else
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
81ecdfbb 7620 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7622 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7624 break 2
7625 fi
7626done
81ecdfbb
RW
7627 done
7628IFS=$as_save_IFS
b214d478 7629
b214d478
SE
7630fi
7631fi
7632ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7633if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7635$as_echo "$ac_ct_DSYMUTIL" >&6; }
b214d478 7636else
81ecdfbb
RW
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
b214d478
SE
7639fi
7640
81ecdfbb
RW
7641 if test "x$ac_ct_DSYMUTIL" = x; then
7642 DSYMUTIL=":"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645yes:)
7646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648ac_tool_warned=yes ;;
7649esac
7650 DSYMUTIL=$ac_ct_DSYMUTIL
7651 fi
b214d478
SE
7652else
7653 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7654fi
7655
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7658set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7661if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7662 $as_echo_n "(cached) " >&6
b214d478
SE
7663else
7664 if test -n "$NMEDIT"; then
7665 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
81ecdfbb 7672 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7674 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7676 break 2
7677 fi
7678done
81ecdfbb
RW
7679 done
7680IFS=$as_save_IFS
b214d478
SE
7681
7682fi
7683fi
7684NMEDIT=$ac_cv_prog_NMEDIT
7685if test -n "$NMEDIT"; then
81ecdfbb
RW
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7687$as_echo "$NMEDIT" >&6; }
b214d478 7688else
81ecdfbb
RW
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690$as_echo "no" >&6; }
b214d478
SE
7691fi
7692
81ecdfbb 7693
b214d478
SE
7694fi
7695if test -z "$ac_cv_prog_NMEDIT"; then
7696 ac_ct_NMEDIT=$NMEDIT
7697 # Extract the first word of "nmedit", so it can be a program name with args.
7698set dummy nmedit; ac_word=$2
81ecdfbb
RW
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7701if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7702 $as_echo_n "(cached) " >&6
b214d478
SE
7703else
7704 if test -n "$ac_ct_NMEDIT"; then
7705 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
81ecdfbb 7712 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7714 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7716 break 2
7717 fi
7718done
81ecdfbb
RW
7719 done
7720IFS=$as_save_IFS
b214d478 7721
b214d478
SE
7722fi
7723fi
7724ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7725if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7727$as_echo "$ac_ct_NMEDIT" >&6; }
b214d478 7728else
81ecdfbb
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
b214d478
SE
7731fi
7732
81ecdfbb
RW
7733 if test "x$ac_ct_NMEDIT" = x; then
7734 NMEDIT=":"
7735 else
7736 case $cross_compiling:$ac_tool_warned in
7737yes:)
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7740ac_tool_warned=yes ;;
7741esac
7742 NMEDIT=$ac_ct_NMEDIT
7743 fi
b214d478
SE
7744else
7745 NMEDIT="$ac_cv_prog_NMEDIT"
7746fi
7747
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7750set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7753if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7754 $as_echo_n "(cached) " >&6
b214d478
SE
7755else
7756 if test -n "$LIPO"; then
7757 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762 IFS=$as_save_IFS
7763 test -z "$as_dir" && as_dir=.
81ecdfbb 7764 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7766 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7768 break 2
7769 fi
7770done
81ecdfbb
RW
7771 done
7772IFS=$as_save_IFS
b214d478
SE
7773
7774fi
7775fi
7776LIPO=$ac_cv_prog_LIPO
7777if test -n "$LIPO"; then
81ecdfbb
RW
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7779$as_echo "$LIPO" >&6; }
b214d478 7780else
81ecdfbb
RW
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782$as_echo "no" >&6; }
b214d478
SE
7783fi
7784
81ecdfbb 7785
b214d478
SE
7786fi
7787if test -z "$ac_cv_prog_LIPO"; then
7788 ac_ct_LIPO=$LIPO
7789 # Extract the first word of "lipo", so it can be a program name with args.
7790set dummy lipo; ac_word=$2
81ecdfbb
RW
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7793if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7794 $as_echo_n "(cached) " >&6
b214d478
SE
7795else
7796 if test -n "$ac_ct_LIPO"; then
7797 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
81ecdfbb 7804 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7806 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7808 break 2
7809 fi
7810done
81ecdfbb
RW
7811 done
7812IFS=$as_save_IFS
b214d478 7813
b214d478
SE
7814fi
7815fi
7816ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7817if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7819$as_echo "$ac_ct_LIPO" >&6; }
b214d478 7820else
81ecdfbb
RW
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
b214d478
SE
7823fi
7824
81ecdfbb
RW
7825 if test "x$ac_ct_LIPO" = x; then
7826 LIPO=":"
7827 else
7828 case $cross_compiling:$ac_tool_warned in
7829yes:)
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7832ac_tool_warned=yes ;;
7833esac
7834 LIPO=$ac_ct_LIPO
7835 fi
b214d478
SE
7836else
7837 LIPO="$ac_cv_prog_LIPO"
7838fi
7839
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7842set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7845if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7846 $as_echo_n "(cached) " >&6
b214d478
SE
7847else
7848 if test -n "$OTOOL"; then
7849 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7850else
7851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
81ecdfbb 7856 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7858 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7860 break 2
7861 fi
7862done
81ecdfbb
RW
7863 done
7864IFS=$as_save_IFS
b214d478
SE
7865
7866fi
7867fi
7868OTOOL=$ac_cv_prog_OTOOL
7869if test -n "$OTOOL"; then
81ecdfbb
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7871$as_echo "$OTOOL" >&6; }
b214d478 7872else
81ecdfbb
RW
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
b214d478
SE
7875fi
7876
81ecdfbb 7877
b214d478
SE
7878fi
7879if test -z "$ac_cv_prog_OTOOL"; then
7880 ac_ct_OTOOL=$OTOOL
7881 # Extract the first word of "otool", so it can be a program name with args.
7882set dummy otool; ac_word=$2
81ecdfbb
RW
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7885if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7886 $as_echo_n "(cached) " >&6
b214d478
SE
7887else
7888 if test -n "$ac_ct_OTOOL"; then
7889 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
81ecdfbb 7896 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7898 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7900 break 2
7901 fi
7902done
81ecdfbb
RW
7903 done
7904IFS=$as_save_IFS
b214d478 7905
b214d478
SE
7906fi
7907fi
7908ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7909if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7911$as_echo "$ac_ct_OTOOL" >&6; }
b214d478 7912else
81ecdfbb
RW
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
b214d478
SE
7915fi
7916
81ecdfbb
RW
7917 if test "x$ac_ct_OTOOL" = x; then
7918 OTOOL=":"
7919 else
7920 case $cross_compiling:$ac_tool_warned in
7921yes:)
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7924ac_tool_warned=yes ;;
7925esac
7926 OTOOL=$ac_ct_OTOOL
7927 fi
b214d478
SE
7928else
7929 OTOOL="$ac_cv_prog_OTOOL"
7930fi
7931
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7934set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7937if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7938 $as_echo_n "(cached) " >&6
b214d478
SE
7939else
7940 if test -n "$OTOOL64"; then
7941 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
81ecdfbb 7948 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7950 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7952 break 2
7953 fi
7954done
81ecdfbb
RW
7955 done
7956IFS=$as_save_IFS
b214d478
SE
7957
7958fi
7959fi
7960OTOOL64=$ac_cv_prog_OTOOL64
7961if test -n "$OTOOL64"; then
81ecdfbb
RW
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7963$as_echo "$OTOOL64" >&6; }
b214d478 7964else
81ecdfbb
RW
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
b214d478
SE
7967fi
7968
81ecdfbb 7969
b214d478
SE
7970fi
7971if test -z "$ac_cv_prog_OTOOL64"; then
7972 ac_ct_OTOOL64=$OTOOL64
7973 # Extract the first word of "otool64", so it can be a program name with args.
7974set dummy otool64; ac_word=$2
81ecdfbb
RW
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7977if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7978 $as_echo_n "(cached) " >&6
b214d478
SE
7979else
7980 if test -n "$ac_ct_OTOOL64"; then
7981 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
81ecdfbb 7988 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b214d478 7990 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b214d478
SE
7992 break 2
7993 fi
7994done
81ecdfbb
RW
7995 done
7996IFS=$as_save_IFS
b214d478 7997
b214d478
SE
7998fi
7999fi
8000ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8001if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8003$as_echo "$ac_ct_OTOOL64" >&6; }
b214d478 8004else
81ecdfbb
RW
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
b214d478
SE
8007fi
8008
81ecdfbb
RW
8009 if test "x$ac_ct_OTOOL64" = x; then
8010 OTOOL64=":"
8011 else
8012 case $cross_compiling:$ac_tool_warned in
8013yes:)
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8016ac_tool_warned=yes ;;
8017esac
8018 OTOOL64=$ac_ct_OTOOL64
8019 fi
b214d478
SE
8020else
8021 OTOOL64="$ac_cv_prog_OTOOL64"
8022fi
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
81ecdfbb
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8051$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 8052if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 8053 $as_echo_n "(cached) " >&6
b214d478
SE
8054else
8055 lt_cv_apple_cc_single_mod=no
8056 if test -z "${LT_MULTI_MODULE}"; then
8057 # By default we will add the -single_module flag. You can override
8058 # by either setting the environment variable LT_MULTI_MODULE
8059 # non-empty at configure time, or by adding -multi_module to the
8060 # link flags.
8061 rm -rf libconftest.dylib*
8062 echo "int foo(void){return 1;}" > conftest.c
8063 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8064-dynamiclib -Wl,-single_module conftest.c" >&5
8065 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8066 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8067 _lt_result=$?
8068 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8069 lt_cv_apple_cc_single_mod=yes
8070 else
8071 cat conftest.err >&5
8072 fi
8073 rm -rf libconftest.dylib*
8074 rm -f conftest.*
8075 fi
8076fi
81ecdfbb
RW
8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8078$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8080$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 8081if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 8082 $as_echo_n "(cached) " >&6
b214d478
SE
8083else
8084 lt_cv_ld_exported_symbols_list=no
8085 save_LDFLAGS=$LDFLAGS
8086 echo "_main" > conftest.sym
8087 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b214d478
SE
8089/* end confdefs.h. */
8090
8091int
8092main ()
8093{
8094
8095 ;
8096 return 0;
8097}
8098_ACEOF
81ecdfbb 8099if ac_fn_c_try_link "$LINENO"; then :
b214d478
SE
8100 lt_cv_ld_exported_symbols_list=yes
8101else
81ecdfbb 8102 lt_cv_ld_exported_symbols_list=no
b214d478 8103fi
81ecdfbb
RW
8104rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
b214d478
SE
8106 LDFLAGS="$save_LDFLAGS"
8107
8108fi
81ecdfbb
RW
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8110$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8112$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 8113if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
8114 $as_echo_n "(cached) " >&6
8115else
8116 lt_cv_ld_force_load=no
8117 cat > conftest.c << _LT_EOF
8118int forced_loaded() { return 2;}
8119_LT_EOF
8120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8122 echo "$AR cru libconftest.a conftest.o" >&5
8123 $AR cru libconftest.a conftest.o 2>&5
8124 cat > conftest.c << _LT_EOF
8125int main() { return 0;}
8126_LT_EOF
8127 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8128 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8129 _lt_result=$?
8130 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8131 lt_cv_ld_force_load=yes
8132 else
8133 cat conftest.err >&5
8134 fi
8135 rm -f conftest.err libconftest.a conftest conftest.c
8136 rm -rf conftest.dSYM
8137
8138fi
8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8140$as_echo "$lt_cv_ld_force_load" >&6; }
6a6859cb
AM
8141 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8142 # build without first building modern cctools / linker.
8143 case $host_cpu-$host_os in
8144 *-rhapsody* | *-darwin1.[012])
b214d478 8145 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6a6859cb 8146 *-darwin1.*)
b214d478 8147 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6a6859cb
AM
8148 *-darwin*)
8149 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8150 # deployment target is forced to an earlier version.
8151 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8152 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8153 ;;
6e733cce 8154 10.[012][,.]*)
6a6859cb
AM
8155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8156 ;;
8157 *)
8158 ;;
8159 esac
b214d478
SE
8160 ;;
8161 esac
8162 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8163 _lt_dar_single_mod='$single_module'
8164 fi
8165 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8166 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8167 else
8168 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8169 fi
3725885a 8170 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
b214d478
SE
8171 _lt_dsymutil='~$DSYMUTIL $lib || :'
8172 else
8173 _lt_dsymutil=
8174 fi
8175 ;;
8176 esac
8177
b214d478 8178for ac_header in dlfcn.h
81ecdfbb
RW
8179do :
8180 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8181"
d0ac1c44 8182if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b214d478 8183 cat >>confdefs.h <<_ACEOF
81ecdfbb 8184#define HAVE_DLFCN_H 1
b214d478
SE
8185_ACEOF
8186
8187fi
8188
8189done
8190
8191
8192
3725885a
RW
8193
8194
3cb62297 8195
b214d478
SE
8196# Set options
8197
8198
8199
8200 enable_dlopen=no
8201
8202
8203 enable_win32_dll=no
8204
8205
81ecdfbb
RW
8206 # Check whether --enable-shared was given.
8207if test "${enable_shared+set}" = set; then :
8208 enableval=$enable_shared; p=${PACKAGE-default}
b214d478
SE
8209 case $enableval in
8210 yes) enable_shared=yes ;;
8211 no) enable_shared=no ;;
8212 *)
8213 enable_shared=no
8214 # Look at the argument we got. We use all the common list separators.
8215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8216 for pkg in $enableval; do
8217 IFS="$lt_save_ifs"
8218 if test "X$pkg" = "X$p"; then
8219 enable_shared=yes
8220 fi
8221 done
8222 IFS="$lt_save_ifs"
8223 ;;
8224 esac
8225else
8226 enable_shared=yes
81ecdfbb 8227fi
b214d478
SE
8228
8229
8230
8231
8232
8233
8234
8235
81ecdfbb
RW
8236
8237 # Check whether --enable-static was given.
8238if test "${enable_static+set}" = set; then :
8239 enableval=$enable_static; p=${PACKAGE-default}
b214d478
SE
8240 case $enableval in
8241 yes) enable_static=yes ;;
8242 no) enable_static=no ;;
8243 *)
8244 enable_static=no
8245 # Look at the argument we got. We use all the common list separators.
8246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8247 for pkg in $enableval; do
8248 IFS="$lt_save_ifs"
8249 if test "X$pkg" = "X$p"; then
8250 enable_static=yes
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 ;;
8255 esac
8256else
8257 enable_static=yes
81ecdfbb 8258fi
b214d478
SE
8259
8260
8261
8262
8263
8264
8265
8266
8267
81ecdfbb
RW
8268
8269# Check whether --with-pic was given.
8270if test "${with_pic+set}" = set; then :
8271 withval=$with_pic; pic_mode="$withval"
b214d478
SE
8272else
8273 pic_mode=default
81ecdfbb
RW
8274fi
8275
b214d478
SE
8276
8277test -z "$pic_mode" && pic_mode=default
8278
8279
8280
8281
8282
8283
8284
81ecdfbb
RW
8285 # Check whether --enable-fast-install was given.
8286if test "${enable_fast_install+set}" = set; then :
8287 enableval=$enable_fast_install; p=${PACKAGE-default}
b214d478
SE
8288 case $enableval in
8289 yes) enable_fast_install=yes ;;
8290 no) enable_fast_install=no ;;
8291 *)
8292 enable_fast_install=no
8293 # Look at the argument we got. We use all the common list separators.
8294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8295 for pkg in $enableval; do
8296 IFS="$lt_save_ifs"
8297 if test "X$pkg" = "X$p"; then
8298 enable_fast_install=yes
8299 fi
8300 done
8301 IFS="$lt_save_ifs"
7357c5b6
AM
8302 ;;
8303 esac
b214d478
SE
8304else
8305 enable_fast_install=yes
81ecdfbb
RW
8306fi
8307
ce2cded5 8308
ce2cded5
L
8309
8310
ce2cded5 8311
42ecbf5e 8312
d7040cdb 8313
d7040cdb 8314
d7040cdb 8315
d7040cdb 8316
d7040cdb 8317
ce2cded5
L
8318# This can be used to rebuild libtool when needed
8319LIBTOOL_DEPS="$ltmain"
d7040cdb 8320
ce2cded5
L
8321# Always use our own libtool.
8322LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8323
d7040cdb 8324
d7040cdb 8325
d7040cdb 8326
d7040cdb 8327
d7040cdb 8328
d7040cdb 8329
d7040cdb 8330
d7040cdb 8331
d7040cdb 8332
d7040cdb 8333
d7040cdb 8334
d7040cdb 8335
d7040cdb 8336
d7040cdb 8337
d7040cdb 8338
d7040cdb
SE
8339
8340
8341
8342
8343
8344
8345
3725885a 8346
d7040cdb
SE
8347
8348
ce2cded5 8349test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8350
8351
8352
8353
8354
8355
d7040cdb
SE
8356
8357
8358
8359
8360
8361
8362
8363
ce2cded5
L
8364if test -n "${ZSH_VERSION+set}" ; then
8365 setopt NO_GLOB_SUBST
8366fi
d7040cdb 8367
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8369$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8370if ${lt_cv_objdir+:} false; then :
81ecdfbb 8371 $as_echo_n "(cached) " >&6
ce2cded5
L
8372else
8373 rm -f .libs 2>/dev/null
8374mkdir .libs 2>/dev/null
8375if test -d .libs; then
8376 lt_cv_objdir=.libs
8377else
8378 # MS-DOS does not allow filenames that begin with a dot.
8379 lt_cv_objdir=_libs
8380fi
8381rmdir .libs 2>/dev/null
8382fi
81ecdfbb
RW
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8384$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8385objdir=$lt_cv_objdir
d7040cdb
SE
8386
8387
8388
8389
8390
ce2cded5
L
8391cat >>confdefs.h <<_ACEOF
8392#define LT_OBJDIR "$lt_cv_objdir/"
8393_ACEOF
d7040cdb
SE
8394
8395
8396
8397
ce2cded5
L
8398case $host_os in
8399aix3*)
8400 # AIX sometimes has problems with the GCC collect2 program. For some
8401 # reason, if we set the COLLECT_NAMES environment variable, the problems
8402 # vanish in a puff of smoke.
8403 if test "X${COLLECT_NAMES+set}" != Xset; then
8404 COLLECT_NAMES=
8405 export COLLECT_NAMES
8406 fi
8407 ;;
8408esac
d7040cdb 8409
ce2cded5
L
8410# Global variables:
8411ofile=libtool
8412can_build_shared=yes
d7040cdb 8413
ce2cded5
L
8414# All known linkers require a `.a' archive for static linking (except MSVC,
8415# which needs '.lib').
8416libext=a
d7040cdb 8417
ce2cded5 8418with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8419
ce2cded5
L
8420old_CC="$CC"
8421old_CFLAGS="$CFLAGS"
d7040cdb 8422
ce2cded5
L
8423# Set sane defaults for various variables
8424test -z "$CC" && CC=cc
8425test -z "$LTCC" && LTCC=$CC
8426test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8427test -z "$LD" && LD=ld
8428test -z "$ac_objext" && ac_objext=o
d7040cdb 8429
ce2cded5
L
8430for cc_temp in $compiler""; do
8431 case $cc_temp in
8432 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8433 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8434 \-*) ;;
8435 *) break;;
8436 esac
8437done
3725885a 8438cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
d7040cdb
SE
8439
8440
ce2cded5
L
8441# Only perform the check for file, if the check method requires it
8442test -z "$MAGIC_CMD" && MAGIC_CMD=file
8443case $deplibs_check_method in
8444file_magic*)
8445 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8447$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8448if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8449 $as_echo_n "(cached) " >&6
ce2cded5
L
8450else
8451 case $MAGIC_CMD in
8452[\\/*] | ?:[\\/]*)
8453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8454 ;;
8455*)
8456 lt_save_MAGIC_CMD="$MAGIC_CMD"
8457 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8459 for ac_dir in $ac_dummy; do
8460 IFS="$lt_save_ifs"
8461 test -z "$ac_dir" && ac_dir=.
8462 if test -f $ac_dir/${ac_tool_prefix}file; then
8463 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8464 if test -n "$file_magic_test_file"; then
8465 case $deplibs_check_method in
8466 "file_magic "*)
8467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8470 $EGREP "$file_magic_regex" > /dev/null; then
8471 :
8472 else
8473 cat <<_LT_EOF 1>&2
d7040cdb 8474
ce2cded5
L
8475*** Warning: the command libtool uses to detect shared libraries,
8476*** $file_magic_cmd, produces output that libtool cannot recognize.
8477*** The result is that libtool may fail to recognize shared libraries
8478*** as such. This will affect the creation of libtool libraries that
8479*** depend on shared libraries, but programs linked with such libtool
8480*** libraries will work regardless of this problem. Nevertheless, you
8481*** may want to report the problem to your system manager and/or to
8482*** bug-libtool@gnu.org
d7040cdb 8483
ce2cded5
L
8484_LT_EOF
8485 fi ;;
8486 esac
8487 fi
8488 break
8489 fi
8490 done
8491 IFS="$lt_save_ifs"
8492 MAGIC_CMD="$lt_save_MAGIC_CMD"
8493 ;;
8494esac
8495fi
d7040cdb 8496
ce2cded5
L
8497MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8498if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8500$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8501else
81ecdfbb
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503$as_echo "no" >&6; }
ce2cded5 8504fi
d7040cdb
SE
8505
8506
8507
8508
8509
ce2cded5
L
8510if test -z "$lt_cv_path_MAGIC_CMD"; then
8511 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8513$as_echo_n "checking for file... " >&6; }
d0ac1c44 8514if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8515 $as_echo_n "(cached) " >&6
ce2cded5
L
8516else
8517 case $MAGIC_CMD in
8518[\\/*] | ?:[\\/]*)
8519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8520 ;;
8521*)
8522 lt_save_MAGIC_CMD="$MAGIC_CMD"
8523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8525 for ac_dir in $ac_dummy; do
8526 IFS="$lt_save_ifs"
8527 test -z "$ac_dir" && ac_dir=.
8528 if test -f $ac_dir/file; then
8529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8530 if test -n "$file_magic_test_file"; then
8531 case $deplibs_check_method in
8532 "file_magic "*)
8533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8536 $EGREP "$file_magic_regex" > /dev/null; then
8537 :
8538 else
8539 cat <<_LT_EOF 1>&2
d7040cdb 8540
ce2cded5
L
8541*** Warning: the command libtool uses to detect shared libraries,
8542*** $file_magic_cmd, produces output that libtool cannot recognize.
8543*** The result is that libtool may fail to recognize shared libraries
8544*** as such. This will affect the creation of libtool libraries that
8545*** depend on shared libraries, but programs linked with such libtool
8546*** libraries will work regardless of this problem. Nevertheless, you
8547*** may want to report the problem to your system manager and/or to
8548*** bug-libtool@gnu.org
d7040cdb 8549
ce2cded5
L
8550_LT_EOF
8551 fi ;;
8552 esac
8553 fi
8554 break
8555 fi
8556 done
8557 IFS="$lt_save_ifs"
8558 MAGIC_CMD="$lt_save_MAGIC_CMD"
8559 ;;
8560esac
8561fi
d7040cdb 8562
ce2cded5
L
8563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8564if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8566$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8567else
81ecdfbb
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
ce2cded5 8570fi
d7040cdb
SE
8571
8572
ce2cded5
L
8573 else
8574 MAGIC_CMD=:
8575 fi
8576fi
d7040cdb 8577
ce2cded5
L
8578 fi
8579 ;;
8580esac
d7040cdb 8581
ce2cded5 8582# Use C for the default configuration in the libtool script
d7040cdb 8583
ce2cded5
L
8584lt_save_CC="$CC"
8585ac_ext=c
8586ac_cpp='$CPP $CPPFLAGS'
8587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8589ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb
SE
8590
8591
ce2cded5
L
8592# Source file extension for C test sources.
8593ac_ext=c
d7040cdb 8594
ce2cded5
L
8595# Object file extension for compiled C test sources.
8596objext=o
8597objext=$objext
d7040cdb 8598
ce2cded5
L
8599# Code to be used in simple compile tests
8600lt_simple_compile_test_code="int some_variable = 0;"
d7040cdb 8601
ce2cded5
L
8602# Code to be used in simple link tests
8603lt_simple_link_test_code='int main(){return(0);}'
d7040cdb
SE
8604
8605
8606
8607
8608
8609
8610
ce2cded5
L
8611# If no C compiler was specified, use CC.
8612LTCC=${LTCC-"$CC"}
d7040cdb 8613
ce2cded5
L
8614# If no C compiler flags were specified, use CFLAGS.
8615LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d7040cdb 8616
ce2cded5
L
8617# Allow CC to be a program name with arguments.
8618compiler=$CC
d7040cdb 8619
ce2cded5
L
8620# Save the default compiler, since it gets overwritten when the other
8621# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8622compiler_DEFAULT=$CC
d7040cdb 8623
ce2cded5
L
8624# save warnings/boilerplate of simple test code
8625ac_outfile=conftest.$ac_objext
8626echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8627eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8628_lt_compiler_boilerplate=`cat conftest.err`
8629$RM conftest*
d7040cdb 8630
ce2cded5
L
8631ac_outfile=conftest.$ac_objext
8632echo "$lt_simple_link_test_code" >conftest.$ac_ext
8633eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8634_lt_linker_boilerplate=`cat conftest.err`
b214d478 8635$RM -r conftest*
d7040cdb
SE
8636
8637
ce2cded5
L
8638## CAVEAT EMPTOR:
8639## There is no encapsulation within the following macros, do not change
8640## the running order or otherwise move them around unless you know exactly
8641## what you are doing...
8642if test -n "$compiler"; then
d7040cdb 8643
ce2cded5 8644lt_prog_compiler_no_builtin_flag=
d7040cdb 8645
ce2cded5 8646if test "$GCC" = yes; then
3725885a
RW
8647 case $cc_basename in
8648 nvcc*)
8649 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8650 *)
8651 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8652 esac
d7040cdb 8653
81ecdfbb
RW
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8655$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8656if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8657 $as_echo_n "(cached) " >&6
ce2cded5
L
8658else
8659 lt_cv_prog_compiler_rtti_exceptions=no
8660 ac_outfile=conftest.$ac_objext
8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662 lt_compiler_flag="-fno-rtti -fno-exceptions"
8663 # Insert the option either (1) after the last *FLAGS variable, or
8664 # (2) before a word containing "conftest.", or (3) at the end.
8665 # Note that $ac_compile itself does not contain backslashes and begins
8666 # with a dollar sign (not a hyphen), so the echo should work correctly.
8667 # The option is referenced via a variable to avoid confusing sed.
8668 lt_compile=`echo "$ac_compile" | $SED \
8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671 -e 's:$: $lt_compiler_flag:'`
3725885a 8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8673 (eval "$lt_compile" 2>conftest.err)
8674 ac_status=$?
8675 cat conftest.err >&5
3725885a 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8677 if (exit $ac_status) && test -s "$ac_outfile"; then
8678 # The compiler can only warn and ignore the option if not recognized
8679 # So say no if there are warnings other than the usual output.
3725885a 8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683 lt_cv_prog_compiler_rtti_exceptions=yes
8684 fi
8685 fi
8686 $RM conftest*
d7040cdb 8687
ce2cded5 8688fi
81ecdfbb
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8690$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d7040cdb 8691
ce2cded5
L
8692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8694else
8695 :
8696fi
d7040cdb 8697
ce2cded5 8698fi
d7040cdb
SE
8699
8700
8701
8702
8703
8704
ce2cded5
L
8705 lt_prog_compiler_wl=
8706lt_prog_compiler_pic=
8707lt_prog_compiler_static=
d7040cdb 8708
81ecdfbb
RW
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8710$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d7040cdb 8711
ce2cded5
L
8712 if test "$GCC" = yes; then
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_static='-static'
d7040cdb 8715
ce2cded5
L
8716 case $host_os in
8717 aix*)
8718 # All AIX code is PIC.
8719 if test "$host_cpu" = ia64; then
8720 # AIX 5 now supports IA64 processor
8721 lt_prog_compiler_static='-Bstatic'
8722 fi
52204357 8723 lt_prog_compiler_pic='-fPIC'
ce2cded5 8724 ;;
d7040cdb 8725
ce2cded5 8726 amigaos*)
b214d478
SE
8727 case $host_cpu in
8728 powerpc)
8729 # see comment about AmigaOS4 .so support
8730 lt_prog_compiler_pic='-fPIC'
8731 ;;
8732 m68k)
8733 # FIXME: we need at least 68020 code to build shared libraries, but
8734 # adding the `-m68020' flag to GCC prevents building anything better,
8735 # like `-m68040'.
8736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8737 ;;
8738 esac
ce2cded5 8739 ;;
d7040cdb 8740
ce2cded5
L
8741 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8742 # PIC is the default for these OSes.
8743 ;;
d7040cdb 8744
b214d478 8745 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8746 # This hack is so that the source file can tell whether it is being
8747 # built for inclusion in a dll (and should export symbols for example).
8748 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8749 # (--disable-auto-import) libraries
8750 lt_prog_compiler_pic='-DDLL_EXPORT'
8751 ;;
d7040cdb 8752
ce2cded5
L
8753 darwin* | rhapsody*)
8754 # PIC is the default on this platform
8755 # Common symbols not allowed in MH_DYLIB files
8756 lt_prog_compiler_pic='-fno-common'
8757 ;;
d7040cdb 8758
3725885a
RW
8759 haiku*)
8760 # PIC is the default for Haiku.
8761 # The "-static" flag exists, but is broken.
8762 lt_prog_compiler_static=
8763 ;;
8764
ce2cded5 8765 hpux*)
b214d478
SE
8766 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8767 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8768 # sets the default TLS model and affects inlining.
ce2cded5 8769 case $host_cpu in
b214d478 8770 hppa*64*)
ce2cded5
L
8771 # +Z the default
8772 ;;
8773 *)
8774 lt_prog_compiler_pic='-fPIC'
8775 ;;
8776 esac
8777 ;;
d7040cdb 8778
ce2cded5
L
8779 interix[3-9]*)
8780 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8781 # Instead, we relocate shared libraries at runtime.
8782 ;;
d7040cdb 8783
ce2cded5
L
8784 msdosdjgpp*)
8785 # Just because we use GCC doesn't mean we suddenly get shared libraries
8786 # on systems that don't support them.
8787 lt_prog_compiler_can_build_shared=no
8788 enable_shared=no
8789 ;;
d7040cdb 8790
ce2cded5
L
8791 *nto* | *qnx*)
8792 # QNX uses GNU C++, but need to define -shared option too, otherwise
8793 # it will coredump.
8794 lt_prog_compiler_pic='-fPIC -shared'
8795 ;;
d7040cdb 8796
ce2cded5
L
8797 sysv4*MP*)
8798 if test -d /usr/nec; then
8799 lt_prog_compiler_pic=-Kconform_pic
8800 fi
8801 ;;
d7040cdb 8802
ce2cded5
L
8803 *)
8804 lt_prog_compiler_pic='-fPIC'
8805 ;;
8806 esac
3725885a
RW
8807
8808 case $cc_basename in
8809 nvcc*) # Cuda Compiler Driver 2.2
8810 lt_prog_compiler_wl='-Xlinker '
8811 lt_prog_compiler_pic='-Xcompiler -fPIC'
8812 ;;
8813 esac
ce2cded5
L
8814 else
8815 # PORTME Check for flag to pass linker flags through the system compiler.
8816 case $host_os in
8817 aix*)
8818 lt_prog_compiler_wl='-Wl,'
8819 if test "$host_cpu" = ia64; then
8820 # AIX 5 now supports IA64 processor
8821 lt_prog_compiler_static='-Bstatic'
8822 else
8823 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8824 fi
8825 ;;
d7040cdb 8826
b214d478 8827 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8828 # This hack is so that the source file can tell whether it is being
8829 # built for inclusion in a dll (and should export symbols for example).
8830 lt_prog_compiler_pic='-DDLL_EXPORT'
8831 ;;
d7040cdb 8832
ce2cded5
L
8833 hpux9* | hpux10* | hpux11*)
8834 lt_prog_compiler_wl='-Wl,'
8835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8836 # not for PA HP-UX.
8837 case $host_cpu in
8838 hppa*64*|ia64*)
8839 # +Z the default
8840 ;;
8841 *)
8842 lt_prog_compiler_pic='+Z'
8843 ;;
8844 esac
8845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8846 lt_prog_compiler_static='${wl}-a ${wl}archive'
8847 ;;
d7040cdb 8848
ce2cded5
L
8849 irix5* | irix6* | nonstopux*)
8850 lt_prog_compiler_wl='-Wl,'
8851 # PIC (with -KPIC) is the default.
8852 lt_prog_compiler_static='-non_shared'
8853 ;;
d7040cdb 8854
58e24671 8855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8856 case $cc_basename in
b214d478
SE
8857 # old Intel for x86_64 which still supported -KPIC.
8858 ecc*)
ce2cded5
L
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-static'
8862 ;;
b214d478
SE
8863 # icc used to be incompatible with GCC.
8864 # ICC 10 doesn't accept -KPIC any more.
8865 icc* | ifort*)
8866 lt_prog_compiler_wl='-Wl,'
8867 lt_prog_compiler_pic='-fPIC'
8868 lt_prog_compiler_static='-static'
8869 ;;
8870 # Lahey Fortran 8.1.
8871 lf95*)
8872 lt_prog_compiler_wl='-Wl,'
8873 lt_prog_compiler_pic='--shared'
8874 lt_prog_compiler_static='--static'
8875 ;;
3725885a 8876 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8877 # Portland Group compilers (*not* the Pentium gcc compiler,
8878 # which looks to be a dead project)
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fpic'
8881 lt_prog_compiler_static='-Bstatic'
8882 ;;
8883 ccc*)
8884 lt_prog_compiler_wl='-Wl,'
8885 # All Alpha code is PIC.
8886 lt_prog_compiler_static='-non_shared'
8887 ;;
3725885a
RW
8888 xl* | bgxl* | bgf* | mpixl*)
8889 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
b214d478
SE
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='-qpic'
8892 lt_prog_compiler_static='-qstaticlink'
8893 ;;
ce2cded5
L
8894 *)
8895 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8896 *Sun\ F* | *Sun*Fortran*)
8897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
3725885a 8900 lt_prog_compiler_wl=''
ce2cded5 8901 ;;
3725885a
RW
8902 *Sun\ C*)
8903 # Sun C 5.9
ce2cded5
L
8904 lt_prog_compiler_pic='-KPIC'
8905 lt_prog_compiler_static='-Bstatic'
3725885a 8906 lt_prog_compiler_wl='-Wl,'
ce2cded5
L
8907 ;;
8908 esac
8909 ;;
8910 esac
8911 ;;
d7040cdb 8912
ce2cded5
L
8913 newsos6)
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 ;;
d7040cdb 8917
ce2cded5
L
8918 *nto* | *qnx*)
8919 # QNX uses GNU C++, but need to define -shared option too, otherwise
8920 # it will coredump.
8921 lt_prog_compiler_pic='-fPIC -shared'
8922 ;;
d7040cdb 8923
ce2cded5
L
8924 osf3* | osf4* | osf5*)
8925 lt_prog_compiler_wl='-Wl,'
8926 # All OSF/1 code is PIC.
8927 lt_prog_compiler_static='-non_shared'
8928 ;;
d7040cdb 8929
ce2cded5
L
8930 rdos*)
8931 lt_prog_compiler_static='-non_shared'
8932 ;;
d7040cdb 8933
ce2cded5
L
8934 solaris*)
8935 lt_prog_compiler_pic='-KPIC'
8936 lt_prog_compiler_static='-Bstatic'
8937 case $cc_basename in
8938 f77* | f90* | f95*)
8939 lt_prog_compiler_wl='-Qoption ld ';;
8940 *)
8941 lt_prog_compiler_wl='-Wl,';;
8942 esac
8943 ;;
d7040cdb 8944
ce2cded5
L
8945 sunos4*)
8946 lt_prog_compiler_wl='-Qoption ld '
8947 lt_prog_compiler_pic='-PIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 ;;
d7040cdb 8950
ce2cded5
L
8951 sysv4 | sysv4.2uw2* | sysv4.3*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8955 ;;
d7040cdb 8956
ce2cded5
L
8957 sysv4*MP*)
8958 if test -d /usr/nec ;then
8959 lt_prog_compiler_pic='-Kconform_pic'
8960 lt_prog_compiler_static='-Bstatic'
8961 fi
8962 ;;
d7040cdb 8963
ce2cded5
L
8964 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-KPIC'
8967 lt_prog_compiler_static='-Bstatic'
8968 ;;
d7040cdb 8969
ce2cded5
L
8970 unicos*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_can_build_shared=no
8973 ;;
d7040cdb 8974
ce2cded5
L
8975 uts4*)
8976 lt_prog_compiler_pic='-pic'
8977 lt_prog_compiler_static='-Bstatic'
8978 ;;
d7040cdb 8979
ce2cded5
L
8980 *)
8981 lt_prog_compiler_can_build_shared=no
8982 ;;
8983 esac
8984 fi
d7040cdb 8985
ce2cded5
L
8986case $host_os in
8987 # For platforms which do not support PIC, -DPIC is meaningless:
8988 *djgpp*)
8989 lt_prog_compiler_pic=
8990 ;;
8991 *)
8992 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8993 ;;
8994esac
81ecdfbb
RW
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8996$as_echo "$lt_prog_compiler_pic" >&6; }
d7040cdb
SE
8997
8998
8999
9000
9001
9002
ce2cded5
L
9003#
9004# Check to make sure the PIC flag actually works.
9005#
9006if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9008$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 9009if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 9010 $as_echo_n "(cached) " >&6
ce2cded5 9011else
b214d478 9012 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
9013 ac_outfile=conftest.$ac_objext
9014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9016 # Insert the option either (1) after the last *FLAGS variable, or
9017 # (2) before a word containing "conftest.", or (3) at the end.
9018 # Note that $ac_compile itself does not contain backslashes and begins
9019 # with a dollar sign (not a hyphen), so the echo should work correctly.
9020 # The option is referenced via a variable to avoid confusing sed.
9021 lt_compile=`echo "$ac_compile" | $SED \
9022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9024 -e 's:$: $lt_compiler_flag:'`
3725885a 9025 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9026 (eval "$lt_compile" 2>conftest.err)
9027 ac_status=$?
9028 cat conftest.err >&5
3725885a 9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9030 if (exit $ac_status) && test -s "$ac_outfile"; then
9031 # The compiler can only warn and ignore the option if not recognized
9032 # So say no if there are warnings other than the usual output.
3725885a 9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9036 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
9037 fi
9038 fi
9039 $RM conftest*
d7040cdb 9040
ce2cded5 9041fi
81ecdfbb
RW
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9043$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
ce2cded5 9044
b214d478 9045if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
9046 case $lt_prog_compiler_pic in
9047 "" | " "*) ;;
9048 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9049 esac
9050else
9051 lt_prog_compiler_pic=
9052 lt_prog_compiler_can_build_shared=no
9053fi
9054
9055fi
d7040cdb
SE
9056
9057
9058
9059
9060
9061
ce2cded5
L
9062#
9063# Check to make sure the static flag actually works.
9064#
9065wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9067$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 9068if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 9069 $as_echo_n "(cached) " >&6
ce2cded5 9070else
b214d478 9071 lt_cv_prog_compiler_static_works=no
ce2cded5
L
9072 save_LDFLAGS="$LDFLAGS"
9073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9076 # The linker can only warn and ignore the option if not recognized
9077 # So say no if there are warnings
9078 if test -s conftest.err; then
9079 # Append any errors to the config.log.
9080 cat conftest.err 1>&5
3725885a 9081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
9082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9083 if diff conftest.exp conftest.er2 >/dev/null; then
b214d478 9084 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9085 fi
9086 else
b214d478 9087 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
9088 fi
9089 fi
b214d478 9090 $RM -r conftest*
ce2cded5 9091 LDFLAGS="$save_LDFLAGS"
d7040cdb 9092
ce2cded5 9093fi
81ecdfbb
RW
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9095$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 9096
b214d478 9097if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
9098 :
9099else
9100 lt_prog_compiler_static=
9101fi
d7040cdb
SE
9102
9103
9104
9105
9106
9107
9108
81ecdfbb
RW
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9110$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9111if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9112 $as_echo_n "(cached) " >&6
ce2cded5
L
9113else
9114 lt_cv_prog_compiler_c_o=no
9115 $RM -r conftest 2>/dev/null
9116 mkdir conftest
9117 cd conftest
9118 mkdir out
9119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9120
ce2cded5
L
9121 lt_compiler_flag="-o out/conftest2.$ac_objext"
9122 # Insert the option either (1) after the last *FLAGS variable, or
9123 # (2) before a word containing "conftest.", or (3) at the end.
9124 # Note that $ac_compile itself does not contain backslashes and begins
9125 # with a dollar sign (not a hyphen), so the echo should work correctly.
9126 lt_compile=`echo "$ac_compile" | $SED \
9127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9129 -e 's:$: $lt_compiler_flag:'`
3725885a 9130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9131 (eval "$lt_compile" 2>out/conftest.err)
9132 ac_status=$?
9133 cat out/conftest.err >&5
3725885a 9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9135 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9136 then
9137 # The compiler can only warn and ignore the option if not recognized
9138 # So say no if there are warnings
3725885a 9139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler_c_o=yes
9143 fi
9144 fi
9145 chmod u+w . 2>&5
9146 $RM conftest*
9147 # SGI C++ compiler will create directory out/ii_files/ for
9148 # template instantiation
9149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9150 $RM out/* && rmdir out
9151 cd ..
9152 $RM -r conftest
9153 $RM conftest*
d7040cdb 9154
ce2cded5 9155fi
81ecdfbb
RW
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9157$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
9158
9159
9160
9161
9162
9163
81ecdfbb
RW
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9165$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 9166if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 9167 $as_echo_n "(cached) " >&6
ce2cded5
L
9168else
9169 lt_cv_prog_compiler_c_o=no
9170 $RM -r conftest 2>/dev/null
9171 mkdir conftest
9172 cd conftest
9173 mkdir out
9174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 9175
ce2cded5
L
9176 lt_compiler_flag="-o out/conftest2.$ac_objext"
9177 # Insert the option either (1) after the last *FLAGS variable, or
9178 # (2) before a word containing "conftest.", or (3) at the end.
9179 # Note that $ac_compile itself does not contain backslashes and begins
9180 # with a dollar sign (not a hyphen), so the echo should work correctly.
9181 lt_compile=`echo "$ac_compile" | $SED \
9182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9184 -e 's:$: $lt_compiler_flag:'`
3725885a 9185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
9186 (eval "$lt_compile" 2>out/conftest.err)
9187 ac_status=$?
9188 cat out/conftest.err >&5
3725885a 9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
9190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9191 then
9192 # The compiler can only warn and ignore the option if not recognized
9193 # So say no if there are warnings
3725885a 9194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
9195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9197 lt_cv_prog_compiler_c_o=yes
9198 fi
9199 fi
9200 chmod u+w . 2>&5
9201 $RM conftest*
9202 # SGI C++ compiler will create directory out/ii_files/ for
9203 # template instantiation
9204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9205 $RM out/* && rmdir out
9206 cd ..
9207 $RM -r conftest
9208 $RM conftest*
9209
9210fi
81ecdfbb
RW
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9212$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
ce2cded5
L
9213
9214
9215
9216
9217hard_links="nottested"
9218if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9219 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9221$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
9222 hard_links=yes
9223 $RM conftest*
9224 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9225 touch conftest.a
9226 ln conftest.a conftest.b 2>&5 || hard_links=no
9227 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9229$as_echo "$hard_links" >&6; }
ce2cded5 9230 if test "$hard_links" = no; then
81ecdfbb
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9232$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5 9233 need_locks=warn
d7040cdb 9234 fi
d7040cdb 9235else
ce2cded5 9236 need_locks=no
d7040cdb 9237fi
d7040cdb 9238
d7040cdb 9239
d7040cdb 9240
d7040cdb 9241
d7040cdb 9242
d7040cdb 9243
81ecdfbb
RW
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9245$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 9246
ce2cded5
L
9247 runpath_var=
9248 allow_undefined_flag=
9249 always_export_symbols=no
9250 archive_cmds=
9251 archive_expsym_cmds=
9252 compiler_needs_object=no
9253 enable_shared_with_static_runtimes=no
9254 export_dynamic_flag_spec=
9255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9256 hardcode_automatic=no
9257 hardcode_direct=no
9258 hardcode_direct_absolute=no
9259 hardcode_libdir_flag_spec=
9260 hardcode_libdir_flag_spec_ld=
9261 hardcode_libdir_separator=
9262 hardcode_minus_L=no
9263 hardcode_shlibpath_var=unsupported
9264 inherit_rpath=no
9265 link_all_deplibs=unknown
9266 module_cmds=
9267 module_expsym_cmds=
9268 old_archive_from_new_cmds=
9269 old_archive_from_expsyms_cmds=
9270 thread_safe_flag_spec=
9271 whole_archive_flag_spec=
9272 # include_expsyms should be a list of space-separated symbols to be *always*
9273 # included in the symbol list
9274 include_expsyms=
9275 # exclude_expsyms can be an extended regexp of symbols to exclude
9276 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9277 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9278 # as well as any symbol that contains `d'.
b214d478 9279 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
9280 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9281 # platforms (ab)use it in PIC code, but their linkers get confused if
9282 # the symbol is explicitly referenced. Since portable code cannot
9283 # rely on this symbol name, it's probably fine to never include it in
9284 # preloaded symbol tables.
b214d478 9285 # Exclude shared library initialization/finalization symbols.
ce2cded5 9286 extract_expsyms_cmds=
d7040cdb 9287
ce2cded5 9288 case $host_os in
b214d478 9289 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9290 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9291 # When not using gcc, we currently assume that we are using
9292 # Microsoft Visual C++.
9293 if test "$GCC" != yes; then
9294 with_gnu_ld=no
9295 fi
d7040cdb 9296 ;;
ce2cded5
L
9297 interix*)
9298 # we just hope/assume this is gcc and not c89 (= MSVC++)
9299 with_gnu_ld=yes
9300 ;;
9301 openbsd*)
9302 with_gnu_ld=no
d7040cdb
SE
9303 ;;
9304 esac
d7040cdb 9305
ce2cded5 9306 ld_shlibs=yes
3725885a
RW
9307
9308 # On some targets, GNU ld is compatible enough with the native linker
9309 # that we're better off using the native interface for both.
9310 lt_use_gnu_ld_interface=no
ce2cded5 9311 if test "$with_gnu_ld" = yes; then
3725885a
RW
9312 case $host_os in
9313 aix*)
9314 # The AIX port of GNU ld has always aspired to compatibility
9315 # with the native linker. However, as the warning in the GNU ld
9316 # block says, versions before 2.19.5* couldn't really create working
9317 # shared libraries, regardless of the interface used.
9318 case `$LD -v 2>&1` in
9319 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9320 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9321 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9322 *)
9323 lt_use_gnu_ld_interface=yes
9324 ;;
9325 esac
9326 ;;
9327 *)
9328 lt_use_gnu_ld_interface=yes
9329 ;;
9330 esac
9331 fi
9332
9333 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9334 # If archive_cmds runs LD, not CC, wlarc should be empty
9335 wlarc='${wl}'
d7040cdb 9336
ce2cded5
L
9337 # Set some defaults for GNU ld with shared library support. These
9338 # are reset later if shared libraries are not supported. Putting them
9339 # here allows them to be overridden if necessary.
9340 runpath_var=LD_RUN_PATH
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 export_dynamic_flag_spec='${wl}--export-dynamic'
9343 # ancient GNU ld didn't support --whole-archive et. al.
9344 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9345 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9346 else
9347 whole_archive_flag_spec=
9348 fi
9349 supports_anon_versioning=no
9350 case `$LD -v 2>&1` in
3725885a 9351 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9352 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9353 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9354 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9355 *\ 2.11.*) ;; # other 2.11 versions
9356 *) supports_anon_versioning=yes ;;
9357 esac
d7040cdb 9358
ce2cded5
L
9359 # See if GNU ld supports shared libraries.
9360 case $host_os in
50e7d84b 9361 aix[3-9]*)
ce2cded5
L
9362 # On AIX/PPC, the GNU linker is very broken
9363 if test "$host_cpu" != ia64; then
9364 ld_shlibs=no
9365 cat <<_LT_EOF 1>&2
d7040cdb 9366
3725885a 9367*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9368*** to be unable to reliably create shared libraries on AIX.
9369*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9370*** really care for shared libraries, you may want to install binutils
9371*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9372*** You will then need to restart the configuration process.
d7040cdb 9373
ce2cded5
L
9374_LT_EOF
9375 fi
d7040cdb 9376 ;;
d7040cdb 9377
ce2cded5 9378 amigaos*)
b214d478
SE
9379 case $host_cpu in
9380 powerpc)
9381 # see comment about AmigaOS4 .so support
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds=''
9384 ;;
9385 m68k)
9386 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)'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_minus_L=yes
9389 ;;
9390 esac
ce2cded5 9391 ;;
d7040cdb 9392
ce2cded5
L
9393 beos*)
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395 allow_undefined_flag=unsupported
9396 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9397 # support --undefined. This deserves some investigation. FIXME
9398 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 else
9400 ld_shlibs=no
9401 fi
9402 ;;
d7040cdb 9403
b214d478 9404 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9405 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9406 # as there is no search path for DLLs.
9407 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9408 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9409 allow_undefined_flag=unsupported
9410 always_export_symbols=no
9411 enable_shared_with_static_runtimes=yes
9412 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9413
9414 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9416 # If the export-symbols file already is a .def file (1st line
9417 # is EXPORTS), use it as is; otherwise, prepend...
9418 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9419 cp $export_symbols $output_objdir/$soname.def;
d7040cdb 9420 else
ce2cded5
L
9421 echo EXPORTS > $output_objdir/$soname.def;
9422 cat $export_symbols >> $output_objdir/$soname.def;
9423 fi~
9424 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
d7040cdb 9429
3725885a
RW
9430 haiku*)
9431 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9432 link_all_deplibs=yes
9433 ;;
9434
ce2cded5
L
9435 interix[3-9]*)
9436 hardcode_direct=no
9437 hardcode_shlibpath_var=no
9438 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9439 export_dynamic_flag_spec='${wl}-E'
9440 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9441 # Instead, shared libraries are loaded at an image base (0x10000000 by
9442 # default) and relocated if they conflict, which is a slow very memory
9443 # consuming and fragmenting process. To avoid this, we pick a random,
9444 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9445 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9446 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9447 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'
9448 ;;
d7040cdb 9449
6a6859cb 9450 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
ce2cded5
L
9451 tmp_diet=no
9452 if test "$host_os" = linux-dietlibc; then
9453 case $cc_basename in
9454 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9455 esac
9456 fi
9457 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9458 && test "$tmp_diet" = no
9459 then
6e733cce 9460 tmp_addflag=' $pic_flag'
b214d478 9461 tmp_sharedflag='-shared'
ce2cded5
L
9462 case $cc_basename,$host_cpu in
9463 pgcc*) # Portland Group C compiler
3725885a 9464 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
9465 tmp_addflag=' $pic_flag'
9466 ;;
3725885a
RW
9467 pgf77* | pgf90* | pgf95* | pgfortran*)
9468 # Portland Group f77 and f90 compilers
9469 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
9470 tmp_addflag=' $pic_flag -Mnomain' ;;
9471 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9472 tmp_addflag=' -i_dynamic' ;;
9473 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9474 tmp_addflag=' -i_dynamic -nofor_main' ;;
9475 ifc* | ifort*) # Intel Fortran compiler
9476 tmp_addflag=' -nofor_main' ;;
b214d478
SE
9477 lf95*) # Lahey Fortran 8.1
9478 whole_archive_flag_spec=
9479 tmp_sharedflag='--shared' ;;
3725885a 9480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
b214d478
SE
9481 tmp_sharedflag='-qmkshrobj'
9482 tmp_addflag= ;;
3725885a
RW
9483 nvcc*) # Cuda Compiler Driver 2.2
9484 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'
9485 compiler_needs_object=yes
9486 ;;
ce2cded5
L
9487 esac
9488 case `$CC -V 2>&1 | sed 5q` in
9489 *Sun\ C*) # Sun C 5.9
3725885a 9490 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
9491 compiler_needs_object=yes
9492 tmp_sharedflag='-G' ;;
9493 *Sun\ F*) # Sun Fortran 8.3
9494 tmp_sharedflag='-G' ;;
ce2cded5
L
9495 esac
9496 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9497
ce2cded5
L
9498 if test "x$supports_anon_versioning" = xyes; then
9499 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9501 echo "local: *; };" >> $output_objdir/$libname.ver~
9502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9503 fi
b214d478
SE
9504
9505 case $cc_basename in
3725885a 9506 xlf* | bgf* | bgxlf* | mpixlf*)
b214d478
SE
9507 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9508 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9509 hardcode_libdir_flag_spec=
9510 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9511 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9512 if test "x$supports_anon_versioning" = xyes; then
9513 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9515 echo "local: *; };" >> $output_objdir/$libname.ver~
9516 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9517 fi
9518 ;;
9519 esac
ce2cded5
L
9520 else
9521 ld_shlibs=no
9522 fi
9523 ;;
d7040cdb 9524
ce2cded5
L
9525 netbsd*)
9526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9527 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9528 wlarc=
9529 else
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532 fi
9533 ;;
9534
9535 solaris*)
9536 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9537 ld_shlibs=no
9538 cat <<_LT_EOF 1>&2
9539
9540*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9541*** create shared libraries on Solaris systems. Therefore, libtool
9542*** is disabling shared libraries support. We urge you to upgrade GNU
9543*** binutils to release 2.9.1 or newer. Another option is to modify
9544*** your PATH or compiler configuration so that the native linker is
9545*** used, and then restart.
9546
9547_LT_EOF
9548 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9551 else
9552 ld_shlibs=no
9553 fi
9554 ;;
9555
9556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9557 case `$LD -v 2>&1` in
9558 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9559 ld_shlibs=no
9560 cat <<_LT_EOF 1>&2
9561
9562*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9563*** reliably create shared libraries on SCO systems. Therefore, libtool
9564*** is disabling shared libraries support. We urge you to upgrade GNU
9565*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9566*** your PATH or compiler configuration so that the native linker is
9567*** used, and then restart.
9568
9569_LT_EOF
9570 ;;
9571 *)
9572 # For security reasons, it is highly recommended that you always
9573 # use absolute paths for naming shared libraries, and exclude the
9574 # DT_RUNPATH tag from executables and libraries. But doing so
9575 # requires that you compile everything twice, which is a pain.
9576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580 else
9581 ld_shlibs=no
9582 fi
9583 ;;
9584 esac
9585 ;;
9586
9587 sunos4*)
9588 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9589 wlarc=
9590 hardcode_direct=yes
9591 hardcode_shlibpath_var=no
9592 ;;
9593
9594 *)
9595 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598 else
9599 ld_shlibs=no
9600 fi
9601 ;;
9602 esac
9603
9604 if test "$ld_shlibs" = no; then
9605 runpath_var=
9606 hardcode_libdir_flag_spec=
9607 export_dynamic_flag_spec=
9608 whole_archive_flag_spec=
9609 fi
9610 else
9611 # PORTME fill in a description of your system's linker (not GNU ld)
9612 case $host_os in
9613 aix3*)
9614 allow_undefined_flag=unsupported
9615 always_export_symbols=yes
9616 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'
9617 # Note: this linker hardcodes the directories in LIBPATH if there
9618 # are no directories specified by -L.
9619 hardcode_minus_L=yes
9620 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9621 # Neither direct hardcoding nor static linking is supported with a
9622 # broken collect2.
9623 hardcode_direct=unsupported
9624 fi
9625 ;;
9626
50e7d84b 9627 aix[4-9]*)
ce2cded5
L
9628 if test "$host_cpu" = ia64; then
9629 # On IA64, the linker does run time linking by default, so we don't
9630 # have to do anything special.
9631 aix_use_runtimelinking=no
9632 exp_sym_flag='-Bexport'
9633 no_entry_flag=""
9634 else
9635 # If we're using GNU nm, then we don't want the "-C" option.
9636 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9637 # Also, AIX nm treats weak defined symbols like other global
9638 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9639 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9640 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 9641 else
5c14705f 9642 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
9643 fi
9644 aix_use_runtimelinking=no
9645
9646 # Test if we are trying to use run time linking or normal
9647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648 # need to do runtime linking.
50e7d84b 9649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9650 for ld_flag in $LDFLAGS; do
9651 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9652 aix_use_runtimelinking=yes
9653 break
9654 fi
9655 done
9656 ;;
9657 esac
9658
9659 exp_sym_flag='-bexport'
9660 no_entry_flag='-bnoentry'
9661 fi
9662
9663 # When large executables or shared objects are built, AIX ld can
9664 # have problems creating the table of contents. If linking a library
9665 # or program results in "error TOC overflow" add -mminimal-toc to
9666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9668
9669 archive_cmds=''
9670 hardcode_direct=yes
9671 hardcode_direct_absolute=yes
9672 hardcode_libdir_separator=':'
9673 link_all_deplibs=yes
9674 file_list_spec='${wl}-f,'
9675
9676 if test "$GCC" = yes; then
9677 case $host_os in aix4.[012]|aix4.[012].*)
9678 # We only want to do this on AIX 4.2 and lower, the check
9679 # below for broken collect2 doesn't work under 4.3+
9680 collect2name=`${CC} -print-prog-name=collect2`
9681 if test -f "$collect2name" &&
9682 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9683 then
9684 # We have reworked collect2
9685 :
9686 else
9687 # We have old collect2
9688 hardcode_direct=unsupported
9689 # It fails to find uninstalled libraries when the uninstalled
9690 # path is not listed in the libpath. Setting hardcode_minus_L
9691 # to unsupported forces relinking
9692 hardcode_minus_L=yes
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 hardcode_libdir_separator=
9695 fi
9696 ;;
9697 esac
9698 shared_flag='-shared'
9699 if test "$aix_use_runtimelinking" = yes; then
9700 shared_flag="$shared_flag "'${wl}-G'
9701 fi
9702 else
9703 # not using gcc
9704 if test "$host_cpu" = ia64; then
9705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9706 # chokes on -Wl,-G. The following line is correct:
9707 shared_flag='-G'
9708 else
9709 if test "$aix_use_runtimelinking" = yes; then
9710 shared_flag='${wl}-G'
9711 else
9712 shared_flag='${wl}-bM:SRE'
9713 fi
9714 fi
9715 fi
9716
b214d478 9717 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9718 # It seems that -bexpall does not export symbols beginning with
9719 # underscore (_), so it is better to generate a list of symbols to export.
9720 always_export_symbols=yes
9721 if test "$aix_use_runtimelinking" = yes; then
9722 # Warning - without using the other runtime loading flags (-brtl),
9723 # -berok will link without error, but may produce a broken library.
9724 allow_undefined_flag='-berok'
9725 # Determine the default libpath from the value encoded in an
9726 # empty executable.
81ecdfbb 9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
9728/* end confdefs.h. */
9729
9730int
9731main ()
9732{
9733
9734 ;
9735 return 0;
9736}
9737_ACEOF
81ecdfbb 9738if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9739
ce2cded5
L
9740lt_aix_libpath_sed='
9741 /Import File Strings/,/^$/ {
9742 /^0/ {
9743 s/^0 *\(.*\)$/\1/
9744 p
9745 }
9746 }'
9747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748# Check for a 64-bit object if we didn't find anything.
9749if test -z "$aix_libpath"; then
9750 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751fi
d7040cdb 9752fi
81ecdfbb
RW
9753rm -f core conftest.err conftest.$ac_objext \
9754 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9755if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9756
ce2cded5 9757 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9758 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
9759 else
9760 if test "$host_cpu" = ia64; then
9761 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9762 allow_undefined_flag="-z nodefs"
9763 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"
9764 else
9765 # Determine the default libpath from the value encoded in an
9766 # empty executable.
81ecdfbb 9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9768/* end confdefs.h. */
d7040cdb 9769
ce2cded5
L
9770int
9771main ()
9772{
d7040cdb 9773
ce2cded5
L
9774 ;
9775 return 0;
9776}
9777_ACEOF
81ecdfbb 9778if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9779
ce2cded5
L
9780lt_aix_libpath_sed='
9781 /Import File Strings/,/^$/ {
9782 /^0/ {
9783 s/^0 *\(.*\)$/\1/
9784 p
9785 }
9786 }'
9787aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788# Check for a 64-bit object if we didn't find anything.
9789if test -z "$aix_libpath"; then
9790 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791fi
ce2cded5 9792fi
81ecdfbb
RW
9793rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
ce2cded5 9795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9796
ce2cded5
L
9797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9798 # Warning - without using the other run time loading flags,
9799 # -berok will link without error, but may produce a broken library.
9800 no_undefined_flag=' ${wl}-bernotok'
9801 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9802 if test "$with_gnu_ld" = yes; then
9803 # We only use this code for GNU lds that support --whole-archive.
9804 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9805 else
9806 # Exported symbols can be pulled into shared objects from archives
9807 whole_archive_flag_spec='$convenience'
9808 fi
ce2cded5
L
9809 archive_cmds_need_lc=yes
9810 # This is similar to how AIX traditionally builds its shared libraries.
9811 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'
9812 fi
9813 fi
9814 ;;
d7040cdb 9815
ce2cded5 9816 amigaos*)
b214d478
SE
9817 case $host_cpu in
9818 powerpc)
9819 # see comment about AmigaOS4 .so support
9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9821 archive_expsym_cmds=''
9822 ;;
9823 m68k)
9824 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)'
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_minus_L=yes
9827 ;;
9828 esac
ce2cded5
L
9829 ;;
9830
9831 bsdi[45]*)
9832 export_dynamic_flag_spec=-rdynamic
9833 ;;
9834
b214d478 9835 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9836 # When not using gcc, we currently assume that we are using
9837 # Microsoft Visual C++.
9838 # hardcode_libdir_flag_spec is actually meaningless, as there is
9839 # no search path for DLLs.
9840 hardcode_libdir_flag_spec=' '
9841 allow_undefined_flag=unsupported
9842 # Tell ltmain to make .lib files, not .a files.
9843 libext=lib
9844 # Tell ltmain to make .dll files, not .so files.
9845 shrext_cmds=".dll"
9846 # FIXME: Setting linknames here is a bad hack.
3725885a 9847 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
ce2cded5
L
9848 # The linker will automatically build a .lib file if we build a DLL.
9849 old_archive_from_new_cmds='true'
9850 # FIXME: Should let the user specify the lib program.
9851 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9852 fix_srcfile_path='`cygpath -w "$srcfile"`'
9853 enable_shared_with_static_runtimes=yes
9854 ;;
9855
9856 darwin* | rhapsody*)
d7040cdb 9857
b214d478
SE
9858
9859 archive_cmds_need_lc=no
9860 hardcode_direct=no
9861 hardcode_automatic=yes
9862 hardcode_shlibpath_var=unsupported
3725885a
RW
9863 if test "$lt_cv_ld_force_load" = "yes"; then
9864 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\"`'
9865 else
9866 whole_archive_flag_spec=''
9867 fi
b214d478
SE
9868 link_all_deplibs=yes
9869 allow_undefined_flag="$_lt_dar_allow_undefined"
9870 case $cc_basename in
9871 ifort*) _lt_dar_can_shared=yes ;;
9872 *) _lt_dar_can_shared=$GCC ;;
9873 esac
9874 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9875 output_verbose_link_cmd=func_echo_all
b214d478
SE
9876 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9877 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9878 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}"
9879 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}"
9880
9881 else
9882 ld_shlibs=no
9883 fi
9884
ce2cded5 9885 ;;
d7040cdb 9886
ce2cded5
L
9887 dgux*)
9888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9889 hardcode_libdir_flag_spec='-L$libdir'
9890 hardcode_shlibpath_var=no
9891 ;;
d7040cdb 9892
ce2cded5
L
9893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9894 # support. Future versions do this automatically, but an explicit c++rt0.o
9895 # does not break anything, and helps significantly (at the cost of a little
9896 # extra space).
9897 freebsd2.2*)
9898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9899 hardcode_libdir_flag_spec='-R$libdir'
9900 hardcode_direct=yes
9901 hardcode_shlibpath_var=no
d7040cdb 9902 ;;
d7040cdb 9903
ce2cded5 9904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9905 freebsd2.*)
ce2cded5
L
9906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_direct=yes
9908 hardcode_minus_L=yes
9909 hardcode_shlibpath_var=no
9910 ;;
d7040cdb 9911
ce2cded5
L
9912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9913 freebsd* | dragonfly*)
9914 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9915 hardcode_libdir_flag_spec='-R$libdir'
9916 hardcode_direct=yes
9917 hardcode_shlibpath_var=no
9918 ;;
d7040cdb 9919
ce2cded5
L
9920 hpux9*)
9921 if test "$GCC" = yes; then
9922 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'
9923 else
9924 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'
9925 fi
9926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9927 hardcode_libdir_separator=:
9928 hardcode_direct=yes
d7040cdb 9929
ce2cded5
L
9930 # hardcode_minus_L: Not really in the search PATH,
9931 # but as the default location of the library.
9932 hardcode_minus_L=yes
9933 export_dynamic_flag_spec='${wl}-E'
9934 ;;
d7040cdb 9935
ce2cded5 9936 hpux10*)
3725885a 9937 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939 else
9940 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9941 fi
9942 if test "$with_gnu_ld" = no; then
9943 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9944 hardcode_libdir_flag_spec_ld='+b $libdir'
9945 hardcode_libdir_separator=:
9946 hardcode_direct=yes
9947 hardcode_direct_absolute=yes
9948 export_dynamic_flag_spec='${wl}-E'
9949 # hardcode_minus_L: Not really in the search PATH,
9950 # but as the default location of the library.
9951 hardcode_minus_L=yes
9952 fi
9953 ;;
d7040cdb 9954
ce2cded5 9955 hpux11*)
3725885a 9956 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9957 case $host_cpu in
9958 hppa*64*)
6a6859cb 9959 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9960 ;;
9961 ia64*)
b214d478 9962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9963 ;;
9964 *)
9965 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966 ;;
9967 esac
9968 else
9969 case $host_cpu in
9970 hppa*64*)
6a6859cb 9971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9972 ;;
9973 ia64*)
9974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9975 ;;
9976 *)
3725885a
RW
9977
9978 # Older versions of the 11.00 compiler do not understand -b yet
9979 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9981$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9982if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9983 $as_echo_n "(cached) " >&6
9984else
9985 lt_cv_prog_compiler__b=no
9986 save_LDFLAGS="$LDFLAGS"
9987 LDFLAGS="$LDFLAGS -b"
9988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9990 # The linker can only warn and ignore the option if not recognized
9991 # So say no if there are warnings
9992 if test -s conftest.err; then
9993 # Append any errors to the config.log.
9994 cat conftest.err 1>&5
9995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9997 if diff conftest.exp conftest.er2 >/dev/null; then
9998 lt_cv_prog_compiler__b=yes
9999 fi
10000 else
10001 lt_cv_prog_compiler__b=yes
10002 fi
10003 fi
10004 $RM -r conftest*
10005 LDFLAGS="$save_LDFLAGS"
10006
10007fi
10008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10009$as_echo "$lt_cv_prog_compiler__b" >&6; }
10010
10011if test x"$lt_cv_prog_compiler__b" = xyes; then
10012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10013else
10014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10015fi
10016
ce2cded5
L
10017 ;;
10018 esac
10019 fi
10020 if test "$with_gnu_ld" = no; then
10021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10022 hardcode_libdir_separator=:
d7040cdb 10023
ce2cded5
L
10024 case $host_cpu in
10025 hppa*64*|ia64*)
10026 hardcode_direct=no
10027 hardcode_shlibpath_var=no
10028 ;;
10029 *)
10030 hardcode_direct=yes
10031 hardcode_direct_absolute=yes
10032 export_dynamic_flag_spec='${wl}-E'
d7040cdb 10033
ce2cded5
L
10034 # hardcode_minus_L: Not really in the search PATH,
10035 # but as the default location of the library.
10036 hardcode_minus_L=yes
10037 ;;
10038 esac
10039 fi
10040 ;;
d7040cdb 10041
ce2cded5
L
10042 irix5* | irix6* | nonstopux*)
10043 if test "$GCC" = yes; then
3725885a 10044 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
10045 # Try to use the -exported_symbol ld option, if it does not
10046 # work, assume that -exports_file does not work either and
10047 # implicitly export all symbols.
10048 save_LDFLAGS="$LDFLAGS"
10049 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
81ecdfbb
RW
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h. */
ce2cded5
L
10052int foo(void) {}
10053_ACEOF
81ecdfbb 10054if ac_fn_c_try_link "$LINENO"; then :
3725885a 10055 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 10056
ce2cded5 10057fi
81ecdfbb
RW
10058rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
10060 LDFLAGS="$save_LDFLAGS"
10061 else
3725885a
RW
10062 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'
10063 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
10064 fi
10065 archive_cmds_need_lc='no'
10066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067 hardcode_libdir_separator=:
10068 inherit_rpath=yes
10069 link_all_deplibs=yes
10070 ;;
d7040cdb 10071
ce2cded5
L
10072 netbsd*)
10073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10075 else
10076 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10077 fi
10078 hardcode_libdir_flag_spec='-R$libdir'
10079 hardcode_direct=yes
10080 hardcode_shlibpath_var=no
10081 ;;
d7040cdb 10082
ce2cded5
L
10083 newsos6)
10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085 hardcode_direct=yes
10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10087 hardcode_libdir_separator=:
10088 hardcode_shlibpath_var=no
10089 ;;
d7040cdb 10090
ce2cded5
L
10091 *nto* | *qnx*)
10092 ;;
d7040cdb 10093
ce2cded5 10094 openbsd*)
b214d478
SE
10095 if test -f /usr/libexec/ld.so; then
10096 hardcode_direct=yes
10097 hardcode_shlibpath_var=no
10098 hardcode_direct_absolute=yes
10099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 10100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
b214d478 10101 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 10102 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
b214d478
SE
10103 export_dynamic_flag_spec='${wl}-E'
10104 else
10105 case $host_os in
10106 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10107 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_libdir_flag_spec='-R$libdir'
10109 ;;
10110 *)
10111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10113 ;;
10114 esac
10115 fi
10116 else
10117 ld_shlibs=no
ce2cded5
L
10118 fi
10119 ;;
d7040cdb 10120
ce2cded5
L
10121 os2*)
10122 hardcode_libdir_flag_spec='-L$libdir'
10123 hardcode_minus_L=yes
10124 allow_undefined_flag=unsupported
3725885a 10125 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
10126 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10127 ;;
d7040cdb 10128
ce2cded5
L
10129 osf3*)
10130 if test "$GCC" = yes; then
10131 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10132 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
10133 else
10134 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10135 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
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator=:
10140 ;;
d7040cdb 10141
ce2cded5
L
10142 osf4* | osf5*) # as osf3* with the addition of -msym flag
10143 if test "$GCC" = yes; then
10144 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 10145 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
10146 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147 else
10148 allow_undefined_flag=' -expect_unresolved \*'
3725885a 10149 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 10150 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 10151 $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 10152
ce2cded5
L
10153 # Both c and cxx compiler support -rpath directly
10154 hardcode_libdir_flag_spec='-rpath $libdir'
10155 fi
10156 archive_cmds_need_lc='no'
10157 hardcode_libdir_separator=:
10158 ;;
d7040cdb 10159
ce2cded5
L
10160 solaris*)
10161 no_undefined_flag=' -z defs'
10162 if test "$GCC" = yes; then
10163 wlarc='${wl}'
10164 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10166 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10167 else
10168 case `$CC -V 2>&1` in
10169 *"Compilers 5.0"*)
10170 wlarc=''
10171 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10173 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10174 ;;
10175 *)
10176 wlarc='${wl}'
10177 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10179 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10180 ;;
10181 esac
10182 fi
10183 hardcode_libdir_flag_spec='-R$libdir'
10184 hardcode_shlibpath_var=no
10185 case $host_os in
10186 solaris2.[0-5] | solaris2.[0-5].*) ;;
10187 *)
10188 # The compiler driver will combine and reorder linker options,
10189 # but understands `-z linker_flag'. GCC discards it without `$wl',
10190 # but is careful enough not to reorder.
10191 # Supported since Solaris 2.6 (maybe 2.5.1?)
10192 if test "$GCC" = yes; then
10193 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10194 else
10195 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10196 fi
10197 ;;
10198 esac
10199 link_all_deplibs=yes
10200 ;;
d7040cdb 10201
ce2cded5
L
10202 sunos4*)
10203 if test "x$host_vendor" = xsequent; then
10204 # Use $CC to link under sequent, because it throws in some extra .o
10205 # files that make .init and .fini sections work.
10206 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10207 else
10208 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10209 fi
10210 hardcode_libdir_flag_spec='-L$libdir'
10211 hardcode_direct=yes
10212 hardcode_minus_L=yes
10213 hardcode_shlibpath_var=no
10214 ;;
d7040cdb 10215
ce2cded5
L
10216 sysv4)
10217 case $host_vendor in
10218 sni)
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_direct=yes # is this really true???
10221 ;;
10222 siemens)
10223 ## LD is ld it makes a PLAMLIB
10224 ## CC just makes a GrossModule.
10225 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10226 reload_cmds='$CC -r -o $output$reload_objs'
10227 hardcode_direct=no
10228 ;;
10229 motorola)
10230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10232 ;;
10233 esac
10234 runpath_var='LD_RUN_PATH'
10235 hardcode_shlibpath_var=no
10236 ;;
d7040cdb 10237
ce2cded5
L
10238 sysv4.3*)
10239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_shlibpath_var=no
10241 export_dynamic_flag_spec='-Bexport'
10242 ;;
d7040cdb 10243
ce2cded5
L
10244 sysv4*MP*)
10245 if test -d /usr/nec; then
10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_shlibpath_var=no
10248 runpath_var=LD_RUN_PATH
10249 hardcode_runpath_var=yes
10250 ld_shlibs=yes
10251 fi
10252 ;;
d7040cdb 10253
ce2cded5
L
10254 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10255 no_undefined_flag='${wl}-z,text'
10256 archive_cmds_need_lc=no
10257 hardcode_shlibpath_var=no
10258 runpath_var='LD_RUN_PATH'
d7040cdb 10259
ce2cded5
L
10260 if test "$GCC" = yes; then
10261 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 else
10264 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 fi
10267 ;;
d7040cdb 10268
ce2cded5
L
10269 sysv5* | sco3.2v5* | sco5v6*)
10270 # Note: We can NOT use -z defs as we might desire, because we do not
10271 # link with -lc, and that would cause any symbols used from libc to
10272 # always be unresolved, which means just about no library would
10273 # ever link correctly. If we're not using GNU ld we use -z text
10274 # though, which does catch some bad symbols but isn't as heavy-handed
10275 # as -z defs.
10276 no_undefined_flag='${wl}-z,text'
10277 allow_undefined_flag='${wl}-z,nodefs'
10278 archive_cmds_need_lc=no
10279 hardcode_shlibpath_var=no
10280 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10281 hardcode_libdir_separator=':'
10282 link_all_deplibs=yes
10283 export_dynamic_flag_spec='${wl}-Bexport'
10284 runpath_var='LD_RUN_PATH'
d7040cdb 10285
ce2cded5
L
10286 if test "$GCC" = yes; then
10287 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 else
10290 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 fi
10293 ;;
d7040cdb 10294
ce2cded5
L
10295 uts4*)
10296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10297 hardcode_libdir_flag_spec='-L$libdir'
10298 hardcode_shlibpath_var=no
10299 ;;
d7040cdb 10300
ce2cded5
L
10301 *)
10302 ld_shlibs=no
10303 ;;
10304 esac
d7040cdb 10305
ce2cded5
L
10306 if test x$host_vendor = xsni; then
10307 case $host in
10308 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10309 export_dynamic_flag_spec='${wl}-Blargedynsym'
10310 ;;
10311 esac
10312 fi
10313 fi
d7040cdb 10314
81ecdfbb
RW
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10316$as_echo "$ld_shlibs" >&6; }
ce2cded5 10317test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10318
ce2cded5 10319with_gnu_ld=$with_gnu_ld
d7040cdb
SE
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
ce2cded5
L
10335#
10336# Do we need to explicitly link libc?
10337#
10338case "x$archive_cmds_need_lc" in
10339x|xyes)
10340 # Assume -lc should be added
10341 archive_cmds_need_lc=yes
d7040cdb 10342
ce2cded5
L
10343 if test "$enable_shared" = yes && test "$GCC" = yes; then
10344 case $archive_cmds in
10345 *'~'*)
10346 # FIXME: we may have to deal with multi-command sequences.
10347 ;;
10348 '$CC '*)
10349 # Test whether the compiler implicitly links with -lc since on some
10350 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10351 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10353$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10354if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10355 $as_echo_n "(cached) " >&6
39144654
RW
10356else
10357 $RM conftest*
10358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10359
81ecdfbb 10360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10361 (eval $ac_compile) 2>&5
10362 ac_status=$?
81ecdfbb
RW
10363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10364 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10365 soname=conftest
10366 lib=conftest
10367 libobjs=conftest.$ac_objext
10368 deplibs=
10369 wl=$lt_prog_compiler_wl
10370 pic_flag=$lt_prog_compiler_pic
10371 compiler_flags=-v
10372 linker_flags=-v
10373 verstring=
10374 output_objdir=.
10375 libname=conftest
10376 lt_save_allow_undefined_flag=$allow_undefined_flag
10377 allow_undefined_flag=
81ecdfbb 10378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10379 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10380 ac_status=$?
81ecdfbb
RW
10381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382 test $ac_status = 0; }
39144654
RW
10383 then
10384 lt_cv_archive_cmds_need_lc=no
10385 else
10386 lt_cv_archive_cmds_need_lc=yes
10387 fi
10388 allow_undefined_flag=$lt_save_allow_undefined_flag
10389 else
10390 cat conftest.err 1>&5
10391 fi
10392 $RM conftest*
10393
10394fi
81ecdfbb
RW
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10396$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10397 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10398 ;;
10399 esac
10400 fi
10401 ;;
10402esac
d7040cdb
SE
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
d7040cdb 10430
d7040cdb 10431
d7040cdb
SE
10432
10433
10434
10435
10436
10437
d7040cdb 10438
d7040cdb 10439
d7040cdb 10440
d7040cdb 10441
d7040cdb 10442
d7040cdb 10443
d7040cdb 10444
d7040cdb 10445
d7040cdb 10446
d7040cdb 10447
d7040cdb 10448
d7040cdb 10449
d7040cdb 10450
d7040cdb 10451
d7040cdb 10452
d7040cdb 10453
d7040cdb 10454
d7040cdb 10455
d7040cdb 10456
d7040cdb 10457
d7040cdb 10458
d7040cdb 10459
d7040cdb 10460
d7040cdb 10461
d7040cdb 10462
d7040cdb 10463
d7040cdb 10464
d7040cdb 10465
ce2cded5
L
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
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
81ecdfbb
RW
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10561$as_echo_n "checking dynamic linker characteristics... " >&6; }
b214d478
SE
10562
10563if test "$GCC" = yes; then
ce2cded5
L
10564 case $host_os in
10565 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10566 *) lt_awk_arg="/^libraries:/" ;;
10567 esac
3725885a
RW
10568 case $host_os in
10569 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10570 *) lt_sed_strip_eq="s,=/,/,g" ;;
10571 esac
10572 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10573 case $lt_search_path_spec in
10574 *\;*)
ce2cded5
L
10575 # if the path contains ";" then we assume it to be the separator
10576 # otherwise default to the standard path separator (i.e. ":") - it is
10577 # assumed that no part of a normal pathname contains ";" but that should
10578 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10580 ;;
10581 *)
10582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10583 ;;
10584 esac
ce2cded5
L
10585 # Ok, now we have the path, separated by spaces, we can step through it
10586 # and add multilib dir if necessary.
10587 lt_tmp_lt_search_path_spec=
10588 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10589 for lt_sys_path in $lt_search_path_spec; do
10590 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10591 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10592 else
10593 test -d "$lt_sys_path" && \
10594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10595 fi
10596 done
3725885a 10597 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10598BEGIN {RS=" "; FS="/|\n";} {
10599 lt_foo="";
10600 lt_count=0;
10601 for (lt_i = NF; lt_i > 0; lt_i--) {
10602 if ($lt_i != "" && $lt_i != ".") {
10603 if ($lt_i == "..") {
10604 lt_count++;
10605 } else {
10606 if (lt_count == 0) {
10607 lt_foo="/" $lt_i lt_foo;
10608 } else {
10609 lt_count--;
10610 }
10611 }
10612 }
10613 }
10614 if (lt_foo != "") { lt_freq[lt_foo]++; }
10615 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10616}'`
3725885a
RW
10617 # AWK program above erroneously prepends '/' to C:/dos/paths
10618 # for these hosts.
10619 case $host_os in
10620 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10621 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10622 esac
10623 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10624else
ce2cded5
L
10625 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10626fi
10627library_names_spec=
10628libname_spec='lib$name'
10629soname_spec=
10630shrext_cmds=".so"
10631postinstall_cmds=
10632postuninstall_cmds=
10633finish_cmds=
10634finish_eval=
10635shlibpath_var=
10636shlibpath_overrides_runpath=unknown
10637version_type=none
10638dynamic_linker="$host_os ld.so"
10639sys_lib_dlsearch_path_spec="/lib /usr/lib"
10640need_lib_prefix=unknown
10641hardcode_into_libs=no
10642
10643# when you set need_version to no, make sure it does not cause -set_version
10644# flags to be left without arguments
10645need_version=unknown
10646
10647case $host_os in
10648aix3*)
10649 version_type=linux
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10651 shlibpath_var=LIBPATH
10652
10653 # AIX 3 has no versioning support, so we append a major version to the name.
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 ;;
10656
50e7d84b 10657aix[4-9]*)
ce2cded5
L
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 hardcode_into_libs=yes
10662 if test "$host_cpu" = ia64; then
10663 # AIX 5 supports IA64
10664 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 else
10667 # With GCC up to 2.95.x, collect2 would create an import file
10668 # for dependence libraries. The import file would start with
10669 # the line `#! .'. This would cause the generated library to
10670 # depend on `.', always an invalid library. This was fixed in
10671 # development snapshots of GCC prior to 3.0.
10672 case $host_os in
10673 aix4 | aix4.[01] | aix4.[01].*)
10674 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10675 echo ' yes '
10676 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10677 :
10678 else
10679 can_build_shared=no
10680 fi
10681 ;;
10682 esac
10683 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10684 # soname into executable. Probably we can add versioning support to
10685 # collect2, so additional links can be useful in future.
10686 if test "$aix_use_runtimelinking" = yes; then
10687 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10688 # instead of lib<name>.a to let people know that these are not
10689 # typical AIX shared libraries.
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691 else
10692 # We preserve .a as extension for shared libraries through AIX4.2
10693 # and later when we are not doing run time linking.
10694 library_names_spec='${libname}${release}.a $libname.a'
10695 soname_spec='${libname}${release}${shared_ext}$major'
10696 fi
10697 shlibpath_var=LIBPATH
10698 fi
10699 ;;
10700
10701amigaos*)
b214d478
SE
10702 case $host_cpu in
10703 powerpc)
10704 # Since July 2007 AmigaOS4 officially supports .so libraries.
10705 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 ;;
10708 m68k)
ce2cded5
L
10709 library_names_spec='$libname.ixlibrary $libname.a'
10710 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10711 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
10712 ;;
10713 esac
ce2cded5
L
10714 ;;
10715
10716beos*)
10717 library_names_spec='${libname}${shared_ext}'
10718 dynamic_linker="$host_os ld.so"
10719 shlibpath_var=LIBRARY_PATH
10720 ;;
10721
10722bsdi[45]*)
10723 version_type=linux
10724 need_version=no
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10731 # the default ld.so.conf also contains /usr/contrib/lib and
10732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10733 # libtool to hard-code these into programs
10734 ;;
10735
b214d478 10736cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10737 version_type=windows
10738 shrext_cmds=".dll"
10739 need_version=no
10740 need_lib_prefix=no
10741
b214d478
SE
10742 case $GCC,$host_os in
10743 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10744 library_names_spec='$libname.dll.a'
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \${file}`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname~
10751 chmod a+x \$dldir/$dlname~
10752 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10753 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10754 fi'
10755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10757 $RM \$dlpath'
10758 shlibpath_overrides_runpath=yes
10759
10760 case $host_os in
10761 cygwin*)
10762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10764
10765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10766 ;;
b214d478 10767 mingw* | cegcc*)
ce2cded5
L
10768 # MinGW DLLs use traditional 'lib' prefix
10769 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10770 ;;
10771 pw32*)
10772 # pw32 DLLs use 'pw' prefix rather than 'lib'
10773 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10774 ;;
10775 esac
10776 ;;
10777
10778 *)
10779 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10780 ;;
10781 esac
10782 dynamic_linker='Win32 ld.exe'
10783 # FIXME: first we should search . and the directory the executable is in
10784 shlibpath_var=PATH
10785 ;;
10786
10787darwin* | rhapsody*)
10788 dynamic_linker="$host_os dyld"
10789 version_type=darwin
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10793 soname_spec='${libname}${release}${major}$shared_ext'
10794 shlibpath_overrides_runpath=yes
10795 shlibpath_var=DYLD_LIBRARY_PATH
10796 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10797
10798 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10799 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10800 ;;
10801
10802dgux*)
10803 version_type=linux
10804 need_lib_prefix=no
10805 need_version=no
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 shlibpath_var=LD_LIBRARY_PATH
10809 ;;
10810
ce2cded5
L
10811freebsd* | dragonfly*)
10812 # DragonFly does not have aout. When/if they implement a new
10813 # versioning mechanism, adjust this.
10814 if test -x /usr/bin/objformat; then
10815 objformat=`/usr/bin/objformat`
10816 else
10817 case $host_os in
6d2920c8 10818 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10819 *) objformat=elf ;;
10820 esac
10821 fi
10822 version_type=freebsd-$objformat
10823 case $version_type in
10824 freebsd-elf*)
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10826 need_version=no
10827 need_lib_prefix=no
10828 ;;
10829 freebsd-*)
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10831 need_version=yes
10832 ;;
10833 esac
10834 shlibpath_var=LD_LIBRARY_PATH
10835 case $host_os in
6d2920c8 10836 freebsd2.*)
ce2cded5
L
10837 shlibpath_overrides_runpath=yes
10838 ;;
10839 freebsd3.[01]* | freebsdelf3.[01]*)
10840 shlibpath_overrides_runpath=yes
10841 hardcode_into_libs=yes
10842 ;;
10843 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10844 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10845 shlibpath_overrides_runpath=no
10846 hardcode_into_libs=yes
10847 ;;
10848 *) # from 4.6 on, and DragonFly
10849 shlibpath_overrides_runpath=yes
10850 hardcode_into_libs=yes
10851 ;;
10852 esac
10853 ;;
10854
3725885a
RW
10855haiku*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 dynamic_linker="$host_os runtime_loader"
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LIBRARY_PATH
10863 shlibpath_overrides_runpath=yes
d85e70a3 10864 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3725885a
RW
10865 hardcode_into_libs=yes
10866 ;;
10867
ce2cded5
L
10868hpux9* | hpux10* | hpux11*)
10869 # Give a soname corresponding to the major version so that dld.sl refuses to
10870 # link against other versions.
10871 version_type=sunos
10872 need_lib_prefix=no
10873 need_version=no
10874 case $host_cpu in
10875 ia64*)
10876 shrext_cmds='.so'
10877 hardcode_into_libs=yes
10878 dynamic_linker="$host_os dld.so"
10879 shlibpath_var=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 if test "X$HPUX_IA64_MODE" = X32; then
10884 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10885 else
10886 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10887 fi
10888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10889 ;;
10890 hppa*64*)
10891 shrext_cmds='.sl'
10892 hardcode_into_libs=yes
10893 dynamic_linker="$host_os dld.sl"
10894 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10900 ;;
10901 *)
10902 shrext_cmds='.sl'
10903 dynamic_linker="$host_os dld.sl"
10904 shlibpath_var=SHLIB_PATH
10905 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 ;;
10909 esac
3725885a 10910 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10911 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10912 # or fails outright, so override atomically:
10913 install_override_mode=555
ce2cded5
L
10914 ;;
10915
10916interix[3-9]*)
10917 version_type=linux
10918 need_lib_prefix=no
10919 need_version=no
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath=no
10925 hardcode_into_libs=yes
10926 ;;
10927
10928irix5* | irix6* | nonstopux*)
10929 case $host_os in
10930 nonstopux*) version_type=nonstopux ;;
10931 *)
10932 if test "$lt_cv_prog_gnu_ld" = yes; then
10933 version_type=linux
10934 else
10935 version_type=irix
10936 fi ;;
10937 esac
10938 need_lib_prefix=no
10939 need_version=no
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10942 case $host_os in
10943 irix5* | nonstopux*)
10944 libsuff= shlibsuff=
10945 ;;
10946 *)
10947 case $LD in # libtool.m4 will add one of these switches to LD
10948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10949 libsuff= shlibsuff= libmagic=32-bit;;
10950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10951 libsuff=32 shlibsuff=N32 libmagic=N32;;
10952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10954 *) libsuff= shlibsuff= libmagic=never-match;;
10955 esac
10956 ;;
10957 esac
10958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10959 shlibpath_overrides_runpath=no
10960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10962 hardcode_into_libs=yes
10963 ;;
10964
10965# No shared lib support for Linux oldld, aout, or coff.
10966linux*oldld* | linux*aout* | linux*coff*)
10967 dynamic_linker=no
10968 ;;
10969
10970# This must be Linux ELF.
6a6859cb
AM
10971
10972# uclinux* changes (here and below) have been submitted to the libtool
10973# project, but have not yet been accepted: they are GCC-local changes
10974# for the time being. (See
10975# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10976linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
ce2cded5
L
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 shlibpath_overrides_runpath=no
39144654 10985
ce2cded5 10986 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10987 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10988 $as_echo_n "(cached) " >&6
39144654
RW
10989else
10990 lt_cv_shlibpath_overrides_runpath=no
10991 save_LDFLAGS=$LDFLAGS
10992 save_libdir=$libdir
10993 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10994 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10996/* end confdefs.h. */
10997
d7040cdb
SE
10998int
10999main ()
11000{
ce2cded5 11001
d7040cdb
SE
11002 ;
11003 return 0;
11004}
11005_ACEOF
81ecdfbb
RW
11006if ac_fn_c_try_link "$LINENO"; then :
11007 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 11008 lt_cv_shlibpath_overrides_runpath=yes
d7040cdb 11009fi
d7040cdb 11010fi
81ecdfbb
RW
11011rm -f core conftest.err conftest.$ac_objext \
11012 conftest$ac_exeext conftest.$ac_ext
39144654
RW
11013 LDFLAGS=$save_LDFLAGS
11014 libdir=$save_libdir
11015
11016fi
11017
11018 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
d7040cdb 11019
ce2cded5
L
11020 # This implies no fast_install, which is unacceptable.
11021 # Some rework will be needed to allow for fast_install
11022 # before this can be enabled.
11023 hardcode_into_libs=yes
d7040cdb 11024
ce2cded5
L
11025 # Append ld.so.conf contents to the search path
11026 if test -f /etc/ld.so.conf; then
3725885a 11027 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
11028 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11029 fi
d7040cdb 11030
ce2cded5
L
11031 # We used to test for /lib/ld.so.1 and disable shared libraries on
11032 # powerpc, because MkLinux only supported shared libraries with the
11033 # GNU dynamic linker. Since this was broken with cross compilers,
11034 # most powerpc-linux boxes support dynamic linking these days and
11035 # people can always --disable-shared, the test was removed, and we
11036 # assume the GNU/Linux dynamic linker is in use.
11037 dynamic_linker='GNU/Linux ld.so'
11038 ;;
d7040cdb 11039
ce2cded5
L
11040netbsd*)
11041 version_type=sunos
11042 need_lib_prefix=no
11043 need_version=no
11044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11047 dynamic_linker='NetBSD (a.out) ld.so'
11048 else
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 dynamic_linker='NetBSD ld.elf_so'
11052 fi
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 hardcode_into_libs=yes
11056 ;;
d7040cdb 11057
ce2cded5
L
11058newsos6)
11059 version_type=linux
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 shlibpath_var=LD_LIBRARY_PATH
11062 shlibpath_overrides_runpath=yes
11063 ;;
d7040cdb 11064
ce2cded5
L
11065*nto* | *qnx*)
11066 version_type=qnx
11067 need_lib_prefix=no
11068 need_version=no
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
11073 hardcode_into_libs=yes
11074 dynamic_linker='ldqnx.so'
11075 ;;
d7040cdb 11076
ce2cded5
L
11077openbsd*)
11078 version_type=sunos
11079 sys_lib_dlsearch_path_spec="/usr/lib"
11080 need_lib_prefix=no
11081 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11082 case $host_os in
11083 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11084 *) need_version=no ;;
11085 esac
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11090 case $host_os in
11091 openbsd2.[89] | openbsd2.[89].*)
11092 shlibpath_overrides_runpath=no
11093 ;;
11094 *)
11095 shlibpath_overrides_runpath=yes
11096 ;;
11097 esac
11098 else
11099 shlibpath_overrides_runpath=yes
11100 fi
11101 ;;
d7040cdb 11102
ce2cded5
L
11103os2*)
11104 libname_spec='$name'
11105 shrext_cmds=".dll"
11106 need_lib_prefix=no
11107 library_names_spec='$libname${shared_ext} $libname.a'
11108 dynamic_linker='OS/2 ld.exe'
11109 shlibpath_var=LIBPATH
11110 ;;
d7040cdb 11111
ce2cded5
L
11112osf3* | osf4* | osf5*)
11113 version_type=osf
11114 need_lib_prefix=no
11115 need_version=no
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11120 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11121 ;;
d7040cdb 11122
ce2cded5
L
11123rdos*)
11124 dynamic_linker=no
11125 ;;
d7040cdb 11126
ce2cded5
L
11127solaris*)
11128 version_type=linux
11129 need_lib_prefix=no
11130 need_version=no
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 hardcode_into_libs=yes
11136 # ldd complains unless libraries are executable
11137 postinstall_cmds='chmod +x $lib'
11138 ;;
d7040cdb 11139
ce2cded5
L
11140sunos4*)
11141 version_type=sunos
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11143 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 shlibpath_overrides_runpath=yes
11146 if test "$with_gnu_ld" = yes; then
11147 need_lib_prefix=no
11148 fi
11149 need_version=yes
11150 ;;
d7040cdb 11151
ce2cded5
L
11152sysv4 | sysv4.3*)
11153 version_type=linux
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 soname_spec='${libname}${release}${shared_ext}$major'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 case $host_vendor in
11158 sni)
11159 shlibpath_overrides_runpath=no
11160 need_lib_prefix=no
11161 runpath_var=LD_RUN_PATH
11162 ;;
11163 siemens)
11164 need_lib_prefix=no
11165 ;;
11166 motorola)
11167 need_lib_prefix=no
11168 need_version=no
11169 shlibpath_overrides_runpath=no
11170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11171 ;;
11172 esac
11173 ;;
d7040cdb 11174
ce2cded5
L
11175sysv4*MP*)
11176 if test -d /usr/nec ;then
11177 version_type=linux
11178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11179 soname_spec='$libname${shared_ext}.$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 fi
11182 ;;
d7040cdb 11183
ce2cded5
L
11184sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11185 version_type=freebsd-elf
11186 need_lib_prefix=no
11187 need_version=no
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 shlibpath_overrides_runpath=yes
11192 hardcode_into_libs=yes
11193 if test "$with_gnu_ld" = yes; then
11194 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11195 else
11196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11197 case $host_os in
11198 sco3.2v5*)
11199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11200 ;;
11201 esac
11202 fi
11203 sys_lib_dlsearch_path_spec='/usr/lib'
11204 ;;
d7040cdb 11205
ce2cded5
L
11206tpf*)
11207 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11208 version_type=linux
11209 need_lib_prefix=no
11210 need_version=no
b214d478 11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=no
11214 hardcode_into_libs=yes
11215 ;;
d7040cdb 11216
ce2cded5
L
11217uts4*)
11218 version_type=linux
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11221 shlibpath_var=LD_LIBRARY_PATH
11222 ;;
d7040cdb 11223
6a6859cb
AM
11224# Shared libraries for VwWorks, >= 7 only at this stage
11225# and (fpic) still incompatible with "large" code models
11226# in a few configurations. Only for RTP mode in any case,
11227# and upon explicit request at configure time.
11228vxworks7*)
11229 dynamic_linker=no
11230 case ${with_multisubdir}-${enable_shared} in
11231 *large*)
11232 ;;
11233 *mrtp*-yes)
11234 version_type=linux
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238 soname_spec='${libname}${release}${shared_ext}$major'
11239 dynamic_linker="$host_os module_loader"
11240 ;;
11241 esac
11242 ;;
ce2cded5
L
11243*)
11244 dynamic_linker=no
11245 ;;
11246esac
81ecdfbb
RW
11247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11248$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
11249test "$dynamic_linker" = no && can_build_shared=no
11250
11251variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11252if test "$GCC" = yes; then
11253 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb
SE
11254fi
11255
b214d478
SE
11256if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11257 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11258fi
11259if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11260 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11261fi
11262
d7040cdb
SE
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
d7040cdb 11274
d7040cdb 11275
d7040cdb 11276
d7040cdb 11277
d7040cdb
SE
11278
11279
11280
11281
d7040cdb 11282
d7040cdb
SE
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
d7040cdb
SE
11296
11297
11298
11299
d7040cdb
SE
11300
11301
11302
11303
d7040cdb 11304
d7040cdb 11305
d7040cdb 11306
d7040cdb 11307
d7040cdb 11308
d7040cdb 11309
d7040cdb 11310
d7040cdb
SE
11311
11312
11313
11314
11315
d7040cdb 11316
d7040cdb 11317
d7040cdb 11318
d7040cdb 11319
d7040cdb 11320
d7040cdb 11321
d7040cdb
SE
11322
11323
11324
11325
11326
d7040cdb
SE
11327
11328
d7040cdb 11329
d7040cdb 11330
d7040cdb 11331
d7040cdb 11332
ce2cded5
L
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
3725885a
RW
11343
11344
11345
11346
11347
ce2cded5
L
11348
11349
11350
11351
11352
11353
81ecdfbb
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11355$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11356hardcode_action=
11357if test -n "$hardcode_libdir_flag_spec" ||
11358 test -n "$runpath_var" ||
11359 test "X$hardcode_automatic" = "Xyes" ; then
11360
11361 # We can hardcode non-existent directories.
11362 if test "$hardcode_direct" != no &&
11363 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11364 # have to relink, otherwise we might link with an installed library
11365 # when we should be linking with a yet-to-be-installed one
11366 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11367 test "$hardcode_minus_L" != no; then
11368 # Linking always hardcodes the temporary library directory.
11369 hardcode_action=relink
11370 else
11371 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11372 hardcode_action=immediate
d7040cdb 11373 fi
d7040cdb 11374else
ce2cded5
L
11375 # We cannot hardcode anything, or else we can only hardcode existing
11376 # directories.
11377 hardcode_action=unsupported
d7040cdb 11378fi
81ecdfbb
RW
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11380$as_echo "$hardcode_action" >&6; }
d7040cdb 11381
ce2cded5
L
11382if test "$hardcode_action" = relink ||
11383 test "$inherit_rpath" = yes; then
11384 # Fast installation is not supported
11385 enable_fast_install=no
11386elif test "$shlibpath_overrides_runpath" = yes ||
11387 test "$enable_shared" = no; then
11388 # Fast installation is not necessary
11389 enable_fast_install=needless
d7040cdb
SE
11390fi
11391
d7040cdb 11392
d7040cdb 11393
d7040cdb 11394
d7040cdb 11395
d7040cdb 11396
ce2cded5
L
11397 if test "x$enable_dlopen" != xyes; then
11398 enable_dlopen=unknown
11399 enable_dlopen_self=unknown
11400 enable_dlopen_self_static=unknown
d7040cdb 11401else
ce2cded5
L
11402 lt_cv_dlopen=no
11403 lt_cv_dlopen_libs=
d7040cdb 11404
ce2cded5
L
11405 case $host_os in
11406 beos*)
11407 lt_cv_dlopen="load_add_on"
11408 lt_cv_dlopen_libs=
11409 lt_cv_dlopen_self=yes
11410 ;;
d7040cdb 11411
b214d478 11412 mingw* | pw32* | cegcc*)
ce2cded5
L
11413 lt_cv_dlopen="LoadLibrary"
11414 lt_cv_dlopen_libs=
11415 ;;
11416
11417 cygwin*)
11418 lt_cv_dlopen="dlopen"
11419 lt_cv_dlopen_libs=
11420 ;;
11421
11422 darwin*)
11423 # if libdl is installed we need to link against it
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11425$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11426if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11427 $as_echo_n "(cached) " >&6
d7040cdb 11428else
ce2cded5
L
11429 ac_check_lib_save_LIBS=$LIBS
11430LIBS="-ldl $LIBS"
81ecdfbb 11431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11432/* end confdefs.h. */
11433
81ecdfbb
RW
11434/* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
ce2cded5
L
11437#ifdef __cplusplus
11438extern "C"
11439#endif
ce2cded5
L
11440char dlopen ();
11441int
11442main ()
11443{
81ecdfbb 11444return dlopen ();
ce2cded5
L
11445 ;
11446 return 0;
11447}
11448_ACEOF
81ecdfbb 11449if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11450 ac_cv_lib_dl_dlopen=yes
11451else
81ecdfbb 11452 ac_cv_lib_dl_dlopen=no
d7040cdb 11453fi
81ecdfbb
RW
11454rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11456LIBS=$ac_check_lib_save_LIBS
d7040cdb 11457fi
81ecdfbb
RW
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11459$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11460if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11462else
d7040cdb 11463
ce2cded5
L
11464 lt_cv_dlopen="dyld"
11465 lt_cv_dlopen_libs=
11466 lt_cv_dlopen_self=yes
11467
d7040cdb 11468fi
ce2cded5
L
11469
11470 ;;
11471
11472 *)
81ecdfbb 11473 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11474if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11475 lt_cv_dlopen="shl_load"
11476else
81ecdfbb
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11478$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11479if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11480 $as_echo_n "(cached) " >&6
ce2cded5
L
11481else
11482 ac_check_lib_save_LIBS=$LIBS
11483LIBS="-ldld $LIBS"
81ecdfbb 11484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11485/* end confdefs.h. */
d7040cdb 11486
81ecdfbb
RW
11487/* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
ce2cded5
L
11490#ifdef __cplusplus
11491extern "C"
11492#endif
ce2cded5
L
11493char shl_load ();
11494int
11495main ()
11496{
81ecdfbb 11497return shl_load ();
ce2cded5
L
11498 ;
11499 return 0;
11500}
11501_ACEOF
81ecdfbb 11502if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11503 ac_cv_lib_dld_shl_load=yes
11504else
81ecdfbb 11505 ac_cv_lib_dld_shl_load=no
ce2cded5 11506fi
81ecdfbb
RW
11507rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11509LIBS=$ac_check_lib_save_LIBS
11510fi
81ecdfbb
RW
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11512$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11513if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
b214d478 11514 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11515else
81ecdfbb 11516 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11517if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11518 lt_cv_dlopen="dlopen"
11519else
81ecdfbb
RW
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11521$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11522if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11523 $as_echo_n "(cached) " >&6
d7040cdb 11524else
ce2cded5
L
11525 ac_check_lib_save_LIBS=$LIBS
11526LIBS="-ldl $LIBS"
81ecdfbb 11527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
11528/* end confdefs.h. */
11529
81ecdfbb
RW
11530/* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
ce2cded5
L
11533#ifdef __cplusplus
11534extern "C"
11535#endif
ce2cded5 11536char dlopen ();
d7040cdb
SE
11537int
11538main ()
11539{
81ecdfbb 11540return dlopen ();
d7040cdb
SE
11541 ;
11542 return 0;
11543}
11544_ACEOF
81ecdfbb 11545if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11546 ac_cv_lib_dl_dlopen=yes
d7040cdb 11547else
81ecdfbb 11548 ac_cv_lib_dl_dlopen=no
d7040cdb 11549fi
81ecdfbb
RW
11550rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11552LIBS=$ac_check_lib_save_LIBS
d7040cdb 11553fi
81ecdfbb
RW
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11555$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11556if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5 11557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d7040cdb 11558else
81ecdfbb
RW
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11560$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11561if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11562 $as_echo_n "(cached) " >&6
d7040cdb 11563else
ce2cded5
L
11564 ac_check_lib_save_LIBS=$LIBS
11565LIBS="-lsvld $LIBS"
81ecdfbb 11566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11567/* end confdefs.h. */
d7040cdb 11568
81ecdfbb
RW
11569/* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
ce2cded5
L
11572#ifdef __cplusplus
11573extern "C"
11574#endif
ce2cded5 11575char dlopen ();
d7040cdb
SE
11576int
11577main ()
11578{
81ecdfbb 11579return dlopen ();
d7040cdb
SE
11580 ;
11581 return 0;
11582}
11583_ACEOF
81ecdfbb 11584if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11585 ac_cv_lib_svld_dlopen=yes
d7040cdb 11586else
81ecdfbb 11587 ac_cv_lib_svld_dlopen=no
d7040cdb 11588fi
81ecdfbb
RW
11589rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
ce2cded5 11591LIBS=$ac_check_lib_save_LIBS
d7040cdb 11592fi
81ecdfbb
RW
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11594$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11595if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11597else
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11599$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11600if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11601 $as_echo_n "(cached) " >&6
ce2cded5
L
11602else
11603 ac_check_lib_save_LIBS=$LIBS
11604LIBS="-ldld $LIBS"
81ecdfbb 11605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
11606/* end confdefs.h. */
11607
81ecdfbb
RW
11608/* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
ce2cded5
L
11611#ifdef __cplusplus
11612extern "C"
11613#endif
ce2cded5 11614char dld_link ();
d7040cdb
SE
11615int
11616main ()
11617{
81ecdfbb 11618return dld_link ();
d7040cdb
SE
11619 ;
11620 return 0;
11621}
11622_ACEOF
81ecdfbb 11623if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11624 ac_cv_lib_dld_dld_link=yes
d7040cdb 11625else
81ecdfbb 11626 ac_cv_lib_dld_dld_link=no
d7040cdb 11627fi
81ecdfbb
RW
11628rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11630LIBS=$ac_check_lib_save_LIBS
11631fi
81ecdfbb
RW
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11633$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11634if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
b214d478 11635 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11636fi
11637
11638
11639fi
11640
11641
11642fi
11643
11644
11645fi
11646
11647
11648fi
11649
11650
11651fi
11652
11653 ;;
11654 esac
11655
11656 if test "x$lt_cv_dlopen" != xno; then
11657 enable_dlopen=yes
11658 else
11659 enable_dlopen=no
11660 fi
11661
11662 case $lt_cv_dlopen in
11663 dlopen)
11664 save_CPPFLAGS="$CPPFLAGS"
11665 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11666
11667 save_LDFLAGS="$LDFLAGS"
11668 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11669
11670 save_LIBS="$LIBS"
11671 LIBS="$lt_cv_dlopen_libs $LIBS"
11672
81ecdfbb
RW
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11674$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11675if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11676 $as_echo_n "(cached) " >&6
ce2cded5
L
11677else
11678 if test "$cross_compiling" = yes; then :
11679 lt_cv_dlopen_self=cross
11680else
11681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11682 lt_status=$lt_dlunknown
11683 cat > conftest.$ac_ext <<_LT_EOF
862776f2 11684#line 11684 "configure"
ce2cded5
L
11685#include "confdefs.h"
11686
11687#if HAVE_DLFCN_H
11688#include <dlfcn.h>
11689#endif
11690
11691#include <stdio.h>
11692
11693#ifdef RTLD_GLOBAL
11694# define LT_DLGLOBAL RTLD_GLOBAL
11695#else
11696# ifdef DL_GLOBAL
11697# define LT_DLGLOBAL DL_GLOBAL
11698# else
11699# define LT_DLGLOBAL 0
11700# endif
11701#endif
11702
11703/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11704 find out it does not work in some platform. */
11705#ifndef LT_DLLAZY_OR_NOW
11706# ifdef RTLD_LAZY
11707# define LT_DLLAZY_OR_NOW RTLD_LAZY
11708# else
11709# ifdef DL_LAZY
11710# define LT_DLLAZY_OR_NOW DL_LAZY
11711# else
11712# ifdef RTLD_NOW
11713# define LT_DLLAZY_OR_NOW RTLD_NOW
11714# else
11715# ifdef DL_NOW
11716# define LT_DLLAZY_OR_NOW DL_NOW
11717# else
11718# define LT_DLLAZY_OR_NOW 0
11719# endif
11720# endif
11721# endif
11722# endif
11723#endif
11724
3725885a
RW
11725/* When -fvisbility=hidden is used, assume the code has been annotated
11726 correspondingly for the symbols needed. */
11727#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11728void fnord () __attribute__((visibility("default")));
11729#endif
11730
11731void fnord () { int i=42; }
ce2cded5 11732int main ()
d7040cdb 11733{
ce2cded5
L
11734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11735 int status = $lt_dlunknown;
11736
11737 if (self)
11738 {
11739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11740 else
11741 {
11742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11743 else puts (dlerror ());
11744 }
ce2cded5
L
11745 /* dlclose (self); */
11746 }
11747 else
11748 puts (dlerror ());
11749
b214d478 11750 return status;
d7040cdb 11751}
ce2cded5 11752_LT_EOF
81ecdfbb 11753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5 11754 (eval $ac_link) 2>&5
d7040cdb 11755 ac_status=$?
81ecdfbb
RW
11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11758 (./conftest; exit; ) >&5 2>/dev/null
11759 lt_status=$?
11760 case x$lt_status in
11761 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11762 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11763 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11764 esac
11765 else :
11766 # compilation failed
11767 lt_cv_dlopen_self=no
11768 fi
11769fi
11770rm -fr conftest*
11771
11772
11773fi
81ecdfbb
RW
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11775$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11776
11777 if test "x$lt_cv_dlopen_self" = xyes; then
11778 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11780$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11781if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11782 $as_echo_n "(cached) " >&6
ce2cded5
L
11783else
11784 if test "$cross_compiling" = yes; then :
11785 lt_cv_dlopen_self_static=cross
11786else
11787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11788 lt_status=$lt_dlunknown
11789 cat > conftest.$ac_ext <<_LT_EOF
862776f2 11790#line 11790 "configure"
ce2cded5
L
11791#include "confdefs.h"
11792
11793#if HAVE_DLFCN_H
11794#include <dlfcn.h>
11795#endif
11796
11797#include <stdio.h>
11798
11799#ifdef RTLD_GLOBAL
11800# define LT_DLGLOBAL RTLD_GLOBAL
11801#else
11802# ifdef DL_GLOBAL
11803# define LT_DLGLOBAL DL_GLOBAL
11804# else
11805# define LT_DLGLOBAL 0
11806# endif
11807#endif
11808
11809/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11810 find out it does not work in some platform. */
11811#ifndef LT_DLLAZY_OR_NOW
11812# ifdef RTLD_LAZY
11813# define LT_DLLAZY_OR_NOW RTLD_LAZY
11814# else
11815# ifdef DL_LAZY
11816# define LT_DLLAZY_OR_NOW DL_LAZY
11817# else
11818# ifdef RTLD_NOW
11819# define LT_DLLAZY_OR_NOW RTLD_NOW
11820# else
11821# ifdef DL_NOW
11822# define LT_DLLAZY_OR_NOW DL_NOW
11823# else
11824# define LT_DLLAZY_OR_NOW 0
11825# endif
11826# endif
11827# endif
11828# endif
11829#endif
11830
3cb62297
L
11831/* When -fvisbility=hidden is used, assume the code has been annotated
11832 correspondingly for the symbols needed. */
11833#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11834void fnord () __attribute__((visibility("default")));
11835#endif
11836
11837void fnord () { int i=42; }
11838int main ()
11839{
11840 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11841 int status = $lt_dlunknown;
11842
11843 if (self)
11844 {
11845 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11846 else
11847 {
11848 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11849 else puts (dlerror ());
11850 }
11851 /* dlclose (self); */
11852 }
11853 else
11854 puts (dlerror ());
11855
11856 return status;
11857}
11858_LT_EOF
11859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11860 (eval $ac_link) 2>&5
11861 ac_status=$?
11862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11864 (./conftest; exit; ) >&5 2>/dev/null
11865 lt_status=$?
11866 case x$lt_status in
11867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11870 esac
11871 else :
11872 # compilation failed
11873 lt_cv_dlopen_self_static=no
11874 fi
11875fi
11876rm -fr conftest*
11877
11878
11879fi
11880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11881$as_echo "$lt_cv_dlopen_self_static" >&6; }
11882 fi
11883
11884 CPPFLAGS="$save_CPPFLAGS"
11885 LDFLAGS="$save_LDFLAGS"
11886 LIBS="$save_LIBS"
11887 ;;
11888 esac
11889
11890 case $lt_cv_dlopen_self in
11891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11892 *) enable_dlopen_self=unknown ;;
11893 esac
11894
11895 case $lt_cv_dlopen_self_static in
11896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11897 *) enable_dlopen_self_static=unknown ;;
11898 esac
11899fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917striplib=
11918old_striplib=
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11920$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11921if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11922 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11923 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925$as_echo "yes" >&6; }
11926else
11927# FIXME - insert some real tests, host_os isn't really good enough
11928 case $host_os in
11929 darwin*)
11930 if test -n "$STRIP" ; then
11931 striplib="$STRIP -x"
11932 old_striplib="$STRIP -S"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934$as_echo "yes" >&6; }
11935 else
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
11938 fi
11939 ;;
11940 *)
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
11943 ;;
11944 esac
11945fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958 # Report which library types will actually be built
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11960$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11962$as_echo "$can_build_shared" >&6; }
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11965$as_echo_n "checking whether to build shared libraries... " >&6; }
11966 test "$can_build_shared" = "no" && enable_shared=no
11967
11968 # On AIX, shared libraries and static libraries use the same namespace, and
11969 # are all built from PIC.
11970 case $host_os in
11971 aix3*)
11972 test "$enable_shared" = yes && enable_static=no
11973 if test -n "$RANLIB"; then
11974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11975 postinstall_cmds='$RANLIB $lib'
11976 fi
11977 ;;
11978
11979 aix[4-9]*)
11980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11981 test "$enable_shared" = yes && enable_static=no
11982 fi
11983 ;;
11984 esac
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11986$as_echo "$enable_shared" >&6; }
11987
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11989$as_echo_n "checking whether to build static libraries... " >&6; }
11990 # Make sure either enable_shared or enable_static is yes.
11991 test "$enable_shared" = yes || enable_static=yes
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11993$as_echo "$enable_static" >&6; }
11994
11995
11996
11997
11998fi
11999ac_ext=c
12000ac_cpp='$CPP $CPPFLAGS'
12001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12003ac_compiler_gnu=$ac_cv_c_compiler_gnu
12004
12005CC="$lt_save_CC"
12006
12007 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12008 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12009 (test "X$CXX" != "Xg++"))) ; then
12010 ac_ext=cpp
12011ac_cpp='$CXXCPP $CPPFLAGS'
12012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12016$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12017if test -z "$CXXCPP"; then
d0ac1c44 12018 if ${ac_cv_prog_CXXCPP+:} false; then :
3cb62297
L
12019 $as_echo_n "(cached) " >&6
12020else
12021 # Double quotes because CXXCPP needs to be expanded
12022 for CXXCPP in "$CXX -E" "/lib/cpp"
12023 do
12024 ac_preproc_ok=false
12025for ac_cxx_preproc_warn_flag in '' yes
12026do
12027 # Use a header file that comes with gcc, so configuring glibc
12028 # with a fresh cross-compiler works.
12029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12030 # <limits.h> exists even on freestanding compilers.
12031 # On the NeXT, cc -E runs the code through the compiler's parser,
12032 # not just through cpp. "Syntax error" is here to catch this case.
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034/* end confdefs.h. */
12035#ifdef __STDC__
12036# include <limits.h>
12037#else
12038# include <assert.h>
12039#endif
12040 Syntax error
12041_ACEOF
12042if ac_fn_cxx_try_cpp "$LINENO"; then :
12043
12044else
12045 # Broken: fails on valid input.
12046continue
12047fi
d0ac1c44 12048rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12049
12050 # OK, works on sane cases. Now check whether nonexistent headers
12051 # can be detected and how.
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053/* end confdefs.h. */
12054#include <ac_nonexistent.h>
12055_ACEOF
12056if ac_fn_cxx_try_cpp "$LINENO"; then :
12057 # Broken: success on invalid input.
12058continue
12059else
12060 # Passes both tests.
12061ac_preproc_ok=:
12062break
12063fi
d0ac1c44 12064rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12065
12066done
12067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12068rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12069if $ac_preproc_ok; then :
12070 break
12071fi
12072
12073 done
12074 ac_cv_prog_CXXCPP=$CXXCPP
12075
12076fi
12077 CXXCPP=$ac_cv_prog_CXXCPP
12078else
12079 ac_cv_prog_CXXCPP=$CXXCPP
12080fi
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12082$as_echo "$CXXCPP" >&6; }
12083ac_preproc_ok=false
12084for ac_cxx_preproc_warn_flag in '' yes
12085do
12086 # Use a header file that comes with gcc, so configuring glibc
12087 # with a fresh cross-compiler works.
12088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089 # <limits.h> exists even on freestanding compilers.
12090 # On the NeXT, cc -E runs the code through the compiler's parser,
12091 # not just through cpp. "Syntax error" is here to catch this case.
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093/* end confdefs.h. */
12094#ifdef __STDC__
12095# include <limits.h>
12096#else
12097# include <assert.h>
12098#endif
12099 Syntax error
12100_ACEOF
12101if ac_fn_cxx_try_cpp "$LINENO"; then :
12102
12103else
12104 # Broken: fails on valid input.
12105continue
12106fi
d0ac1c44 12107rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12108
12109 # OK, works on sane cases. Now check whether nonexistent headers
12110 # can be detected and how.
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h. */
12113#include <ac_nonexistent.h>
12114_ACEOF
12115if ac_fn_cxx_try_cpp "$LINENO"; then :
12116 # Broken: success on invalid input.
12117continue
12118else
12119 # Passes both tests.
12120ac_preproc_ok=:
12121break
12122fi
d0ac1c44 12123rm -f conftest.err conftest.i conftest.$ac_ext
3cb62297
L
12124
12125done
12126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 12127rm -f conftest.i conftest.err conftest.$ac_ext
3cb62297
L
12128if $ac_preproc_ok; then :
12129
12130else
12131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
12133as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12134See \`config.log' for more details" "$LINENO" 5; }
3cb62297
L
12135fi
12136
12137ac_ext=c
12138ac_cpp='$CPP $CPPFLAGS'
12139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142
12143else
12144 _lt_caught_CXX_error=yes
12145fi
12146
12147ac_ext=cpp
12148ac_cpp='$CXXCPP $CPPFLAGS'
12149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12152
12153archive_cmds_need_lc_CXX=no
12154allow_undefined_flag_CXX=
12155always_export_symbols_CXX=no
12156archive_expsym_cmds_CXX=
12157compiler_needs_object_CXX=no
12158export_dynamic_flag_spec_CXX=
12159hardcode_direct_CXX=no
12160hardcode_direct_absolute_CXX=no
12161hardcode_libdir_flag_spec_CXX=
12162hardcode_libdir_flag_spec_ld_CXX=
12163hardcode_libdir_separator_CXX=
12164hardcode_minus_L_CXX=no
12165hardcode_shlibpath_var_CXX=unsupported
12166hardcode_automatic_CXX=no
12167inherit_rpath_CXX=no
12168module_cmds_CXX=
12169module_expsym_cmds_CXX=
12170link_all_deplibs_CXX=unknown
12171old_archive_cmds_CXX=$old_archive_cmds
12172reload_flag_CXX=$reload_flag
12173reload_cmds_CXX=$reload_cmds
12174no_undefined_flag_CXX=
12175whole_archive_flag_spec_CXX=
12176enable_shared_with_static_runtimes_CXX=no
12177
12178# Source file extension for C++ test sources.
12179ac_ext=cpp
12180
12181# Object file extension for compiled C++ test sources.
12182objext=o
12183objext_CXX=$objext
12184
12185# No sense in running all these tests if we already determined that
12186# the CXX compiler isn't working. Some variables (like enable_shared)
12187# are currently assumed to apply to all compilers on this platform,
12188# and will be corrupted by setting them based on a non-working compiler.
12189if test "$_lt_caught_CXX_error" != yes; then
12190 # Code to be used in simple compile tests
12191 lt_simple_compile_test_code="int some_variable = 0;"
12192
12193 # Code to be used in simple link tests
12194 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12195
12196 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12197
12198
12199
12200
12201
12202
12203# If no C compiler was specified, use CC.
12204LTCC=${LTCC-"$CC"}
12205
12206# If no C compiler flags were specified, use CFLAGS.
12207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12208
12209# Allow CC to be a program name with arguments.
12210compiler=$CC
12211
12212
12213 # save warnings/boilerplate of simple test code
12214 ac_outfile=conftest.$ac_objext
12215echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12216eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12217_lt_compiler_boilerplate=`cat conftest.err`
12218$RM conftest*
12219
12220 ac_outfile=conftest.$ac_objext
12221echo "$lt_simple_link_test_code" >conftest.$ac_ext
12222eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12223_lt_linker_boilerplate=`cat conftest.err`
12224$RM -r conftest*
12225
12226
12227 # Allow CC to be a program name with arguments.
12228 lt_save_CC=$CC
12229 lt_save_LD=$LD
12230 lt_save_GCC=$GCC
12231 GCC=$GXX
12232 lt_save_with_gnu_ld=$with_gnu_ld
12233 lt_save_path_LD=$lt_cv_path_LD
12234 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12235 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12236 else
12237 $as_unset lt_cv_prog_gnu_ld
12238 fi
12239 if test -n "${lt_cv_path_LDCXX+set}"; then
12240 lt_cv_path_LD=$lt_cv_path_LDCXX
12241 else
12242 $as_unset lt_cv_path_LD
12243 fi
12244 test -z "${LDCXX+set}" || LD=$LDCXX
12245 CC=${CXX-"c++"}
12246 compiler=$CC
12247 compiler_CXX=$CC
12248 for cc_temp in $compiler""; do
12249 case $cc_temp in
12250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12252 \-*) ;;
12253 *) break;;
12254 esac
12255done
12256cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12257
12258
12259 if test -n "$compiler"; then
12260 # We don't want -fno-exception when compiling C++ code, so set the
12261 # no_builtin_flag separately
12262 if test "$GXX" = yes; then
12263 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12264 else
12265 lt_prog_compiler_no_builtin_flag_CXX=
12266 fi
12267
12268 if test "$GXX" = yes; then
12269 # Set up default GNU C++ configuration
12270
12271
12272
12273# Check whether --with-gnu-ld was given.
12274if test "${with_gnu_ld+set}" = set; then :
12275 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12276else
12277 with_gnu_ld=no
12278fi
12279
12280ac_prog=ld
12281if test "$GCC" = yes; then
12282 # Check if gcc -print-prog-name=ld gives a path.
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12284$as_echo_n "checking for ld used by $CC... " >&6; }
12285 case $host in
12286 *-*-mingw*)
12287 # gcc leaves a trailing carriage return which upsets mingw
12288 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12289 *)
12290 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12291 esac
12292 case $ac_prog in
12293 # Accept absolute paths.
12294 [\\/]* | ?:[\\/]*)
12295 re_direlt='/[^/][^/]*/\.\./'
12296 # Canonicalize the pathname of ld
12297 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12298 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12299 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12300 done
12301 test -z "$LD" && LD="$ac_prog"
12302 ;;
12303 "")
12304 # If it fails, then pretend we aren't using GCC.
12305 ac_prog=ld
12306 ;;
12307 *)
12308 # If it is relative, then search for the first ld in PATH.
12309 with_gnu_ld=unknown
12310 ;;
12311 esac
12312elif test "$with_gnu_ld" = yes; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12314$as_echo_n "checking for GNU ld... " >&6; }
12315else
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12317$as_echo_n "checking for non-GNU ld... " >&6; }
12318fi
d0ac1c44 12319if ${lt_cv_path_LD+:} false; then :
3cb62297
L
12320 $as_echo_n "(cached) " >&6
12321else
12322 if test -z "$LD"; then
12323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12324 for ac_dir in $PATH; do
12325 IFS="$lt_save_ifs"
12326 test -z "$ac_dir" && ac_dir=.
12327 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12328 lt_cv_path_LD="$ac_dir/$ac_prog"
12329 # Check to see if the program is GNU ld. I'd rather use --version,
12330 # but apparently some variants of GNU ld only accept -v.
12331 # Break only if it was the GNU/non-GNU ld that we prefer.
12332 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12333 *GNU* | *'with BFD'*)
12334 test "$with_gnu_ld" != no && break
12335 ;;
12336 *)
12337 test "$with_gnu_ld" != yes && break
12338 ;;
12339 esac
12340 fi
12341 done
12342 IFS="$lt_save_ifs"
12343else
12344 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12345fi
12346fi
12347
12348LD="$lt_cv_path_LD"
12349if test -n "$LD"; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12351$as_echo "$LD" >&6; }
12352else
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354$as_echo "no" >&6; }
12355fi
d0ac1c44 12356test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3cb62297
L
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12358$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 12359if ${lt_cv_prog_gnu_ld+:} false; then :
3cb62297
L
12360 $as_echo_n "(cached) " >&6
12361else
12362 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12363case `$LD -v 2>&1 </dev/null` in
12364*GNU* | *'with BFD'*)
12365 lt_cv_prog_gnu_ld=yes
12366 ;;
12367*)
12368 lt_cv_prog_gnu_ld=no
12369 ;;
12370esac
12371fi
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12373$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12374with_gnu_ld=$lt_cv_prog_gnu_ld
12375
12376
12377
12378
12379
12380
12381
12382 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12383 # archiving commands below assume that GNU ld is being used.
12384 if test "$with_gnu_ld" = yes; then
6e733cce
L
12385 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12386 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
12387
12388 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12390
12391 # If archive_cmds runs LD, not CC, wlarc should be empty
12392 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12393 # investigate it a little bit more. (MM)
12394 wlarc='${wl}'
12395
12396 # ancient GNU ld didn't support --whole-archive et. al.
12397 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12398 $GREP 'no-whole-archive' > /dev/null; then
12399 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12400 else
12401 whole_archive_flag_spec_CXX=
12402 fi
12403 else
12404 with_gnu_ld=no
12405 wlarc=
12406
12407 # A generic and very simple default shared library creation
12408 # command for GNU C++ for the case where it uses the native
12409 # linker, instead of GNU ld. If possible, this setting should
12410 # overridden to take advantage of the native linker features on
12411 # the platform it is being used on.
12412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12413 fi
12414
12415 # Commands to make compiler produce verbose output that lists
12416 # what "hidden" libraries, object files and flags are used when
12417 # linking a shared library.
12418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12419
12420 else
12421 GXX=no
12422 with_gnu_ld=no
12423 wlarc=
12424 fi
12425
12426 # PORTME: fill in a description of your system's C++ link characteristics
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12428$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12429 ld_shlibs_CXX=yes
12430 case $host_os in
12431 aix3*)
12432 # FIXME: insert proper C++ library support
12433 ld_shlibs_CXX=no
12434 ;;
12435 aix[4-9]*)
12436 if test "$host_cpu" = ia64; then
12437 # On IA64, the linker does run time linking by default, so we don't
12438 # have to do anything special.
12439 aix_use_runtimelinking=no
12440 exp_sym_flag='-Bexport'
12441 no_entry_flag=""
12442 else
12443 aix_use_runtimelinking=no
12444
12445 # Test if we are trying to use run time linking or normal
12446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12447 # need to do runtime linking.
12448 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12449 for ld_flag in $LDFLAGS; do
12450 case $ld_flag in
12451 *-brtl*)
12452 aix_use_runtimelinking=yes
12453 break
12454 ;;
12455 esac
12456 done
12457 ;;
12458 esac
12459
12460 exp_sym_flag='-bexport'
12461 no_entry_flag='-bnoentry'
12462 fi
12463
12464 # When large executables or shared objects are built, AIX ld can
12465 # have problems creating the table of contents. If linking a library
12466 # or program results in "error TOC overflow" add -mminimal-toc to
12467 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12468 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12469
12470 archive_cmds_CXX=''
12471 hardcode_direct_CXX=yes
12472 hardcode_direct_absolute_CXX=yes
12473 hardcode_libdir_separator_CXX=':'
12474 link_all_deplibs_CXX=yes
12475 file_list_spec_CXX='${wl}-f,'
12476
12477 if test "$GXX" = yes; then
12478 case $host_os in aix4.[012]|aix4.[012].*)
12479 # We only want to do this on AIX 4.2 and lower, the check
12480 # below for broken collect2 doesn't work under 4.3+
12481 collect2name=`${CC} -print-prog-name=collect2`
12482 if test -f "$collect2name" &&
12483 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12484 then
12485 # We have reworked collect2
12486 :
12487 else
12488 # We have old collect2
12489 hardcode_direct_CXX=unsupported
12490 # It fails to find uninstalled libraries when the uninstalled
12491 # path is not listed in the libpath. Setting hardcode_minus_L
12492 # to unsupported forces relinking
12493 hardcode_minus_L_CXX=yes
12494 hardcode_libdir_flag_spec_CXX='-L$libdir'
12495 hardcode_libdir_separator_CXX=
12496 fi
12497 esac
12498 shared_flag='-shared'
12499 if test "$aix_use_runtimelinking" = yes; then
12500 shared_flag="$shared_flag "'${wl}-G'
12501 fi
12502 else
12503 # not using gcc
12504 if test "$host_cpu" = ia64; then
12505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12506 # chokes on -Wl,-G. The following line is correct:
12507 shared_flag='-G'
12508 else
12509 if test "$aix_use_runtimelinking" = yes; then
12510 shared_flag='${wl}-G'
12511 else
12512 shared_flag='${wl}-bM:SRE'
12513 fi
12514 fi
12515 fi
12516
12517 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12518 # It seems that -bexpall does not export symbols beginning with
12519 # underscore (_), so it is better to generate a list of symbols to
12520 # export.
12521 always_export_symbols_CXX=yes
12522 if test "$aix_use_runtimelinking" = yes; then
12523 # Warning - without using the other runtime loading flags (-brtl),
12524 # -berok will link without error, but may produce a broken library.
12525 allow_undefined_flag_CXX='-berok'
12526 # Determine the default libpath from the value encoded in an empty
12527 # executable.
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529/* end confdefs.h. */
12530
12531int
12532main ()
12533{
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539if ac_fn_cxx_try_link "$LINENO"; then :
12540
12541lt_aix_libpath_sed='
12542 /Import File Strings/,/^$/ {
12543 /^0/ {
12544 s/^0 *\(.*\)$/\1/
12545 p
12546 }
12547 }'
12548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12549# Check for a 64-bit object if we didn't find anything.
12550if test -z "$aix_libpath"; then
12551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12552fi
12553fi
12554rm -f core conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
12556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12557
12558 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12559
12560 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"
12561 else
12562 if test "$host_cpu" = ia64; then
12563 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12564 allow_undefined_flag_CXX="-z nodefs"
12565 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"
12566 else
12567 # Determine the default libpath from the value encoded in an
12568 # empty executable.
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h. */
12571
12572int
12573main ()
12574{
12575
12576 ;
12577 return 0;
12578}
12579_ACEOF
12580if ac_fn_cxx_try_link "$LINENO"; then :
12581
12582lt_aix_libpath_sed='
12583 /Import File Strings/,/^$/ {
12584 /^0/ {
12585 s/^0 *\(.*\)$/\1/
12586 p
12587 }
12588 }'
12589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12590# Check for a 64-bit object if we didn't find anything.
12591if test -z "$aix_libpath"; then
12592 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12593fi
12594fi
12595rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12598
12599 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12600 # Warning - without using the other run time loading flags,
12601 # -berok will link without error, but may produce a broken library.
12602 no_undefined_flag_CXX=' ${wl}-bernotok'
12603 allow_undefined_flag_CXX=' ${wl}-berok'
12604 if test "$with_gnu_ld" = yes; then
12605 # We only use this code for GNU lds that support --whole-archive.
12606 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12607 else
12608 # Exported symbols can be pulled into shared objects from archives
12609 whole_archive_flag_spec_CXX='$convenience'
12610 fi
12611 archive_cmds_need_lc_CXX=yes
12612 # This is similar to how AIX traditionally builds its shared
12613 # libraries.
12614 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'
12615 fi
12616 fi
12617 ;;
12618
12619 beos*)
12620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12621 allow_undefined_flag_CXX=unsupported
12622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12623 # support --undefined. This deserves some investigation. FIXME
12624 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12625 else
12626 ld_shlibs_CXX=no
12627 fi
12628 ;;
12629
12630 chorus*)
12631 case $cc_basename in
12632 *)
12633 # FIXME: insert proper C++ library support
12634 ld_shlibs_CXX=no
12635 ;;
12636 esac
12637 ;;
12638
12639 cygwin* | mingw* | pw32* | cegcc*)
12640 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12641 # as there is no search path for DLLs.
12642 hardcode_libdir_flag_spec_CXX='-L$libdir'
12643 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12644 allow_undefined_flag_CXX=unsupported
12645 always_export_symbols_CXX=no
12646 enable_shared_with_static_runtimes_CXX=yes
12647
12648 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12649 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'
12650 # If the export-symbols file already is a .def file (1st line
12651 # is EXPORTS), use it as is; otherwise, prepend...
12652 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12653 cp $export_symbols $output_objdir/$soname.def;
12654 else
12655 echo EXPORTS > $output_objdir/$soname.def;
12656 cat $export_symbols >> $output_objdir/$soname.def;
12657 fi~
12658 $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'
12659 else
12660 ld_shlibs_CXX=no
12661 fi
12662 ;;
12663 darwin* | rhapsody*)
12664
12665
12666 archive_cmds_need_lc_CXX=no
12667 hardcode_direct_CXX=no
12668 hardcode_automatic_CXX=yes
12669 hardcode_shlibpath_var_CXX=unsupported
12670 if test "$lt_cv_ld_force_load" = "yes"; then
12671 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\"`'
12672 else
12673 whole_archive_flag_spec_CXX=''
12674 fi
12675 link_all_deplibs_CXX=yes
12676 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12677 case $cc_basename in
12678 ifort*) _lt_dar_can_shared=yes ;;
12679 *) _lt_dar_can_shared=$GCC ;;
12680 esac
12681 if test "$_lt_dar_can_shared" = "yes"; then
12682 output_verbose_link_cmd=func_echo_all
12683 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}"
12684 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12685 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}"
12686 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}"
12687 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12688 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}"
12689 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}"
12690 fi
12691
12692 else
12693 ld_shlibs_CXX=no
12694 fi
12695
12696 ;;
12697
12698 dgux*)
12699 case $cc_basename in
12700 ec++*)
12701 # FIXME: insert proper C++ library support
12702 ld_shlibs_CXX=no
12703 ;;
12704 ghcx*)
12705 # Green Hills C++ Compiler
12706 # FIXME: insert proper C++ library support
12707 ld_shlibs_CXX=no
12708 ;;
12709 *)
12710 # FIXME: insert proper C++ library support
12711 ld_shlibs_CXX=no
12712 ;;
12713 esac
12714 ;;
12715
6d2920c8 12716 freebsd2.*)
3cb62297
L
12717 # C++ shared libraries reported to be fairly broken before
12718 # switch to ELF
12719 ld_shlibs_CXX=no
12720 ;;
12721
12722 freebsd-elf*)
12723 archive_cmds_need_lc_CXX=no
12724 ;;
12725
12726 freebsd* | dragonfly*)
12727 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12728 # conventions
12729 ld_shlibs_CXX=yes
12730 ;;
12731
12732 gnu*)
12733 ;;
12734
12735 haiku*)
12736 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12737 link_all_deplibs_CXX=yes
12738 ;;
12739
12740 hpux9*)
12741 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12742 hardcode_libdir_separator_CXX=:
12743 export_dynamic_flag_spec_CXX='${wl}-E'
12744 hardcode_direct_CXX=yes
12745 hardcode_minus_L_CXX=yes # Not in the search PATH,
12746 # but as the default
12747 # location of the library.
12748
12749 case $cc_basename in
12750 CC*)
12751 # FIXME: insert proper C++ library support
12752 ld_shlibs_CXX=no
12753 ;;
12754 aCC*)
12755 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'
12756 # Commands to make compiler produce verbose output that lists
12757 # what "hidden" libraries, object files and flags are used when
12758 # linking a shared library.
12759 #
12760 # There doesn't appear to be a way to prevent this compiler from
12761 # explicitly linking system object files so we need to strip them
12762 # from the output so that they don't get included in the library
12763 # dependencies.
12764 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"'
12765 ;;
12766 *)
12767 if test "$GXX" = yes; then
12768 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'
12769 else
12770 # FIXME: insert proper C++ library support
12771 ld_shlibs_CXX=no
12772 fi
12773 ;;
12774 esac
12775 ;;
12776
12777 hpux10*|hpux11*)
12778 if test $with_gnu_ld = no; then
12779 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12780 hardcode_libdir_separator_CXX=:
12781
12782 case $host_cpu in
12783 hppa*64*|ia64*)
12784 ;;
12785 *)
12786 export_dynamic_flag_spec_CXX='${wl}-E'
12787 ;;
12788 esac
12789 fi
12790 case $host_cpu in
12791 hppa*64*|ia64*)
12792 hardcode_direct_CXX=no
12793 hardcode_shlibpath_var_CXX=no
12794 ;;
12795 *)
12796 hardcode_direct_CXX=yes
12797 hardcode_direct_absolute_CXX=yes
12798 hardcode_minus_L_CXX=yes # Not in the search PATH,
12799 # but as the default
12800 # location of the library.
12801 ;;
12802 esac
12803
12804 case $cc_basename in
12805 CC*)
12806 # FIXME: insert proper C++ library support
12807 ld_shlibs_CXX=no
12808 ;;
12809 aCC*)
12810 case $host_cpu in
12811 hppa*64*)
6a6859cb 12812 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3cb62297
L
12813 ;;
12814 ia64*)
12815 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12816 ;;
12817 *)
12818 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12819 ;;
12820 esac
12821 # Commands to make compiler produce verbose output that lists
12822 # what "hidden" libraries, object files and flags are used when
12823 # linking a shared library.
12824 #
12825 # There doesn't appear to be a way to prevent this compiler from
12826 # explicitly linking system object files so we need to strip them
12827 # from the output so that they don't get included in the library
12828 # dependencies.
12829 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"'
12830 ;;
12831 *)
12832 if test "$GXX" = yes; then
12833 if test $with_gnu_ld = no; then
12834 case $host_cpu in
12835 hppa*64*)
6a6859cb 12836 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3cb62297
L
12837 ;;
12838 ia64*)
12839 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12840 ;;
12841 *)
12842 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'
12843 ;;
12844 esac
12845 fi
12846 else
12847 # FIXME: insert proper C++ library support
12848 ld_shlibs_CXX=no
12849 fi
12850 ;;
12851 esac
12852 ;;
12853
12854 interix[3-9]*)
12855 hardcode_direct_CXX=no
12856 hardcode_shlibpath_var_CXX=no
12857 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12858 export_dynamic_flag_spec_CXX='${wl}-E'
12859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12860 # Instead, shared libraries are loaded at an image base (0x10000000 by
12861 # default) and relocated if they conflict, which is a slow very memory
12862 # consuming and fragmenting process. To avoid this, we pick a random,
12863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12865 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'
12866 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'
12867 ;;
12868 irix5* | irix6*)
12869 case $cc_basename in
12870 CC*)
12871 # SGI C++
12872 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'
12873
12874 # Archives containing C++ object files must be created using
12875 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12876 # necessary to make sure instantiated templates are included
12877 # in the archive.
12878 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12879 ;;
12880 *)
12881 if test "$GXX" = yes; then
12882 if test "$with_gnu_ld" = no; then
12883 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'
12884 else
12885 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'
12886 fi
12887 fi
12888 link_all_deplibs_CXX=yes
12889 ;;
12890 esac
12891 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12892 hardcode_libdir_separator_CXX=:
12893 inherit_rpath_CXX=yes
12894 ;;
12895
12896 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12897 case $cc_basename in
12898 KCC*)
12899 # Kuck and Associates, Inc. (KAI) C++ Compiler
12900
12901 # KCC will only create a shared library if the output file
12902 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12903 # to its proper name (with version) after linking.
12904 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'
12905 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'
12906 # Commands to make compiler produce verbose output that lists
12907 # what "hidden" libraries, object files and flags are used when
12908 # linking a shared library.
12909 #
12910 # There doesn't appear to be a way to prevent this compiler from
12911 # explicitly linking system object files so we need to strip them
12912 # from the output so that they don't get included in the library
12913 # dependencies.
12914 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"'
12915
12916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12918
12919 # Archives containing C++ object files must be created using
12920 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12921 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12922 ;;
12923 icpc* | ecpc* )
12924 # Intel C++
12925 with_gnu_ld=yes
12926 # version 8.0 and above of icpc choke on multiply defined symbols
12927 # if we add $predep_objects and $postdep_objects, however 7.1 and
12928 # earlier do not add the objects themselves.
12929 case `$CC -V 2>&1` in
12930 *"Version 7."*)
12931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12932 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'
12933 ;;
12934 *) # Version 8.0 or newer
12935 tmp_idyn=
12936 case $host_cpu in
12937 ia64*) tmp_idyn=' -i_dynamic';;
12938 esac
12939 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12940 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'
12941 ;;
12942 esac
12943 archive_cmds_need_lc_CXX=no
12944 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12945 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12946 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12947 ;;
12948 pgCC* | pgcpp*)
12949 # Portland Group C++ compiler
12950 case `$CC -V` in
12951 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12952 prelink_cmds_CXX='tpldir=Template.dir~
12953 rm -rf $tpldir~
12954 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6a6859cb 12955 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
3cb62297
L
12956 old_archive_cmds_CXX='tpldir=Template.dir~
12957 rm -rf $tpldir~
12958 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6a6859cb 12959 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
3cb62297
L
12960 $RANLIB $oldlib'
12961 archive_cmds_CXX='tpldir=Template.dir~
12962 rm -rf $tpldir~
12963 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6a6859cb 12964 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3cb62297
L
12965 archive_expsym_cmds_CXX='tpldir=Template.dir~
12966 rm -rf $tpldir~
12967 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6a6859cb 12968 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3cb62297
L
12969 ;;
12970 *) # Version 6 and above use weak symbols
12971 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12972 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'
12973 ;;
12974 esac
12975
12976 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12977 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12978 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'
12979 ;;
12980 cxx*)
12981 # Compaq C++
12982 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12983 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'
12984
12985 runpath_var=LD_RUN_PATH
12986 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12987 hardcode_libdir_separator_CXX=:
12988
12989 # Commands to make compiler produce verbose output that lists
12990 # what "hidden" libraries, object files and flags are used when
12991 # linking a shared library.
12992 #
12993 # There doesn't appear to be a way to prevent this compiler from
12994 # explicitly linking system object files so we need to strip them
12995 # from the output so that they don't get included in the library
12996 # dependencies.
12997 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'
12998 ;;
12999 xl* | mpixl* | bgxl*)
13000 # IBM XL 8.0 on PPC, with GNU ld
13001 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13002 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13003 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13004 if test "x$supports_anon_versioning" = xyes; then
13005 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13007 echo "local: *; };" >> $output_objdir/$libname.ver~
13008 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13009 fi
13010 ;;
13011 *)
13012 case `$CC -V 2>&1 | sed 5q` in
13013 *Sun\ C*)
13014 # Sun C++ 5.9
13015 no_undefined_flag_CXX=' -zdefs'
13016 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13017 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'
13018 hardcode_libdir_flag_spec_CXX='-R$libdir'
13019 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'
13020 compiler_needs_object_CXX=yes
13021
13022 # Not sure whether something based on
13023 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13024 # would be better.
13025 output_verbose_link_cmd='func_echo_all'
13026
13027 # Archives containing C++ object files must be created using
13028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13029 # necessary to make sure instantiated templates are included
13030 # in the archive.
13031 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13032 ;;
13033 esac
13034 ;;
13035 esac
13036 ;;
13037
13038 lynxos*)
13039 # FIXME: insert proper C++ library support
13040 ld_shlibs_CXX=no
13041 ;;
13042
13043 m88k*)
13044 # FIXME: insert proper C++ library support
13045 ld_shlibs_CXX=no
13046 ;;
13047
13048 mvs*)
13049 case $cc_basename in
13050 cxx*)
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13053 ;;
13054 *)
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13057 ;;
13058 esac
13059 ;;
13060
13061 netbsd*)
13062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13063 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13064 wlarc=
13065 hardcode_libdir_flag_spec_CXX='-R$libdir'
13066 hardcode_direct_CXX=yes
13067 hardcode_shlibpath_var_CXX=no
13068 fi
13069 # Workaround some broken pre-1.5 toolchains
13070 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13071 ;;
13072
13073 *nto* | *qnx*)
13074 ld_shlibs_CXX=yes
13075 ;;
13076
13077 openbsd2*)
13078 # C++ shared libraries are fairly broken
13079 ld_shlibs_CXX=no
13080 ;;
13081
13082 openbsd*)
13083 if test -f /usr/libexec/ld.so; then
13084 hardcode_direct_CXX=yes
13085 hardcode_shlibpath_var_CXX=no
13086 hardcode_direct_absolute_CXX=yes
13087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13089 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13090 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13091 export_dynamic_flag_spec_CXX='${wl}-E'
13092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13093 fi
13094 output_verbose_link_cmd=func_echo_all
13095 else
13096 ld_shlibs_CXX=no
13097 fi
13098 ;;
13099
13100 osf3* | osf4* | osf5*)
13101 case $cc_basename in
13102 KCC*)
13103 # Kuck and Associates, Inc. (KAI) C++ Compiler
13104
13105 # KCC will only create a shared library if the output file
13106 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13107 # to its proper name (with version) after linking.
13108 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'
13109
13110 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13111 hardcode_libdir_separator_CXX=:
13112
13113 # Archives containing C++ object files must be created using
13114 # the KAI C++ compiler.
13115 case $host in
13116 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13117 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13118 esac
13119 ;;
13120 RCC*)
13121 # Rational C++ 2.4.1
13122 # FIXME: insert proper C++ library support
13123 ld_shlibs_CXX=no
13124 ;;
13125 cxx*)
13126 case $host in
13127 osf3*)
13128 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13129 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'
13130 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13131 ;;
13132 *)
13133 allow_undefined_flag_CXX=' -expect_unresolved \*'
13134 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'
13135 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13136 echo "-hidden">> $lib.exp~
13137 $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~
13138 $RM $lib.exp'
13139 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13140 ;;
13141 esac
13142
13143 hardcode_libdir_separator_CXX=:
13144
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13148 #
13149 # There doesn't appear to be a way to prevent this compiler from
13150 # explicitly linking system object files so we need to strip them
13151 # from the output so that they don't get included in the library
13152 # dependencies.
13153 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"'
13154 ;;
13155 *)
13156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13158 case $host in
13159 osf3*)
13160 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'
13161 ;;
13162 *)
13163 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'
13164 ;;
13165 esac
13166
13167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13168 hardcode_libdir_separator_CXX=:
13169
13170 # Commands to make compiler produce verbose output that lists
13171 # what "hidden" libraries, object files and flags are used when
13172 # linking a shared library.
13173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13174
13175 else
13176 # FIXME: insert proper C++ library support
13177 ld_shlibs_CXX=no
13178 fi
13179 ;;
13180 esac
13181 ;;
13182
13183 psos*)
13184 # FIXME: insert proper C++ library support
13185 ld_shlibs_CXX=no
13186 ;;
13187
13188 sunos4*)
13189 case $cc_basename in
13190 CC*)
13191 # Sun C++ 4.x
13192 # FIXME: insert proper C++ library support
13193 ld_shlibs_CXX=no
13194 ;;
13195 lcc*)
13196 # Lucid
13197 # FIXME: insert proper C++ library support
13198 ld_shlibs_CXX=no
13199 ;;
13200 *)
13201 # FIXME: insert proper C++ library support
13202 ld_shlibs_CXX=no
13203 ;;
13204 esac
13205 ;;
13206
13207 solaris*)
13208 case $cc_basename in
13209 CC*)
13210 # Sun C++ 4.2, 5.x and Centerline C++
13211 archive_cmds_need_lc_CXX=yes
13212 no_undefined_flag_CXX=' -zdefs'
13213 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13214 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13215 $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'
13216
13217 hardcode_libdir_flag_spec_CXX='-R$libdir'
13218 hardcode_shlibpath_var_CXX=no
13219 case $host_os in
13220 solaris2.[0-5] | solaris2.[0-5].*) ;;
13221 *)
13222 # The compiler driver will combine and reorder linker options,
13223 # but understands `-z linker_flag'.
13224 # Supported since Solaris 2.6 (maybe 2.5.1?)
13225 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13226 ;;
13227 esac
13228 link_all_deplibs_CXX=yes
13229
13230 output_verbose_link_cmd='func_echo_all'
13231
13232 # Archives containing C++ object files must be created using
13233 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13234 # necessary to make sure instantiated templates are included
13235 # in the archive.
13236 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13237 ;;
13238 gcx*)
13239 # Green Hills C++ Compiler
13240 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13241
13242 # The C++ compiler must be used to create the archive.
13243 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13244 ;;
13245 *)
13246 # GNU C++ compiler with Solaris linker
13247 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13248 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13249 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13250 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13252 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13253
13254 # Commands to make compiler produce verbose output that lists
13255 # what "hidden" libraries, object files and flags are used when
13256 # linking a shared library.
13257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13258 else
13259 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13260 # platform.
13261 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13262 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13263 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13264
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13268 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13269 fi
13270
13271 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13272 case $host_os in
13273 solaris2.[0-5] | solaris2.[0-5].*) ;;
13274 *)
13275 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13276 ;;
13277 esac
13278 fi
13279 ;;
13280 esac
13281 ;;
13282
13283 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13284 no_undefined_flag_CXX='${wl}-z,text'
13285 archive_cmds_need_lc_CXX=no
13286 hardcode_shlibpath_var_CXX=no
13287 runpath_var='LD_RUN_PATH'
13288
13289 case $cc_basename in
13290 CC*)
13291 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13292 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13293 ;;
13294 *)
13295 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13296 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 ;;
13298 esac
13299 ;;
13300
13301 sysv5* | sco3.2v5* | sco5v6*)
13302 # Note: We can NOT use -z defs as we might desire, because we do not
13303 # link with -lc, and that would cause any symbols used from libc to
13304 # always be unresolved, which means just about no library would
13305 # ever link correctly. If we're not using GNU ld we use -z text
13306 # though, which does catch some bad symbols but isn't as heavy-handed
13307 # as -z defs.
13308 no_undefined_flag_CXX='${wl}-z,text'
13309 allow_undefined_flag_CXX='${wl}-z,nodefs'
13310 archive_cmds_need_lc_CXX=no
13311 hardcode_shlibpath_var_CXX=no
13312 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13313 hardcode_libdir_separator_CXX=':'
13314 link_all_deplibs_CXX=yes
13315 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13316 runpath_var='LD_RUN_PATH'
13317
13318 case $cc_basename in
13319 CC*)
13320 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13321 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13322 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13323 '"$old_archive_cmds_CXX"
13324 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13325 '"$reload_cmds_CXX"
13326 ;;
13327 *)
13328 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 ;;
13331 esac
13332 ;;
13333
13334 tandem*)
13335 case $cc_basename in
13336 NCC*)
13337 # NonStop-UX NCC 3.20
13338 # FIXME: insert proper C++ library support
13339 ld_shlibs_CXX=no
13340 ;;
13341 *)
13342 # FIXME: insert proper C++ library support
13343 ld_shlibs_CXX=no
13344 ;;
13345 esac
13346 ;;
13347
13348 vxworks*)
6a6859cb
AM
13349 # For VxWorks ports, we assume the use of a GNU linker with
13350 # standard elf conventions.
13351 ld_shlibs_CXX=yes
3cb62297
L
13352 ;;
13353
13354 *)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13357 ;;
13358 esac
13359
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13361$as_echo "$ld_shlibs_CXX" >&6; }
13362 test "$ld_shlibs_CXX" = no && can_build_shared=no
13363
13364 GCC_CXX="$GXX"
13365 LD_CXX="$LD"
13366
13367 ## CAVEAT EMPTOR:
13368 ## There is no encapsulation within the following macros, do not change
13369 ## the running order or otherwise move them around unless you know exactly
13370 ## what you are doing...
13371 # Dependencies to place before and after the object being linked:
13372predep_objects_CXX=
13373postdep_objects_CXX=
13374predeps_CXX=
13375postdeps_CXX=
13376compiler_lib_search_path_CXX=
13377
13378cat > conftest.$ac_ext <<_LT_EOF
13379class Foo
13380{
13381public:
13382 Foo (void) { a = 0; }
13383private:
13384 int a;
13385};
13386_LT_EOF
13387
13388if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13390 ac_status=$?
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Parse the compiler output and extract the necessary
13394 # objects, libraries and library flags.
13395
13396 # Sentinel used to keep track of whether or not we are before
13397 # the conftest object file.
13398 pre_test_object_deps_done=no
13399
13400 for p in `eval "$output_verbose_link_cmd"`; do
13401 case $p in
13402
13403 -L* | -R* | -l*)
13404 # Some compilers place space between "-{L,R}" and the path.
13405 # Remove the space.
13406 if test $p = "-L" ||
13407 test $p = "-R"; then
13408 prev=$p
13409 continue
13410 else
13411 prev=
13412 fi
13413
13414 if test "$pre_test_object_deps_done" = no; then
13415 case $p in
13416 -L* | -R*)
13417 # Internal compiler library paths should come after those
13418 # provided the user. The postdeps already come after the
13419 # user supplied libs so there is no need to process them.
13420 if test -z "$compiler_lib_search_path_CXX"; then
13421 compiler_lib_search_path_CXX="${prev}${p}"
13422 else
13423 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13424 fi
13425 ;;
13426 # The "-l" case would never come before the object being
13427 # linked, so don't bother handling this case.
13428 esac
13429 else
13430 if test -z "$postdeps_CXX"; then
13431 postdeps_CXX="${prev}${p}"
13432 else
13433 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13434 fi
13435 fi
13436 ;;
13437
13438 *.$objext)
13439 # This assumes that the test object file only shows up
13440 # once in the compiler output.
13441 if test "$p" = "conftest.$objext"; then
13442 pre_test_object_deps_done=yes
13443 continue
13444 fi
13445
13446 if test "$pre_test_object_deps_done" = no; then
13447 if test -z "$predep_objects_CXX"; then
13448 predep_objects_CXX="$p"
13449 else
13450 predep_objects_CXX="$predep_objects_CXX $p"
13451 fi
13452 else
13453 if test -z "$postdep_objects_CXX"; then
13454 postdep_objects_CXX="$p"
13455 else
13456 postdep_objects_CXX="$postdep_objects_CXX $p"
13457 fi
13458 fi
13459 ;;
13460
13461 *) ;; # Ignore the rest.
13462
13463 esac
13464 done
13465
13466 # Clean up.
13467 rm -f a.out a.exe
13468else
13469 echo "libtool.m4: error: problem compiling CXX test program"
13470fi
13471
13472$RM -f confest.$objext
13473
13474# PORTME: override above test on systems where it is broken
13475case $host_os in
13476interix[3-9]*)
13477 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13478 # hack all around it, let's just trust "g++" to DTRT.
13479 predep_objects_CXX=
13480 postdep_objects_CXX=
13481 postdeps_CXX=
13482 ;;
13483
13484linux*)
13485 case `$CC -V 2>&1 | sed 5q` in
13486 *Sun\ C*)
13487 # Sun C++ 5.9
13488
13489 # The more standards-conforming stlport4 library is
13490 # incompatible with the Cstd library. Avoid specifying
13491 # it if it's in CXXFLAGS. Ignore libCrun as
13492 # -library=stlport4 depends on it.
13493 case " $CXX $CXXFLAGS " in
13494 *" -library=stlport4 "*)
13495 solaris_use_stlport4=yes
13496 ;;
13497 esac
13498
13499 if test "$solaris_use_stlport4" != yes; then
13500 postdeps_CXX='-library=Cstd -library=Crun'
13501 fi
13502 ;;
13503 esac
13504 ;;
13505
13506solaris*)
13507 case $cc_basename in
13508 CC*)
13509 # The more standards-conforming stlport4 library is
13510 # incompatible with the Cstd library. Avoid specifying
13511 # it if it's in CXXFLAGS. Ignore libCrun as
13512 # -library=stlport4 depends on it.
13513 case " $CXX $CXXFLAGS " in
13514 *" -library=stlport4 "*)
13515 solaris_use_stlport4=yes
13516 ;;
13517 esac
13518
13519 # Adding this requires a known-good setup of shared libraries for
13520 # Sun compiler versions before 5.6, else PIC objects from an old
13521 # archive will be linked into the output, leading to subtle bugs.
13522 if test "$solaris_use_stlport4" != yes; then
13523 postdeps_CXX='-library=Cstd -library=Crun'
13524 fi
13525 ;;
13526 esac
13527 ;;
13528esac
13529
13530
13531case " $postdeps_CXX " in
13532*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13533esac
13534 compiler_lib_search_dirs_CXX=
13535if test -n "${compiler_lib_search_path_CXX}"; then
13536 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13537fi
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569 lt_prog_compiler_wl_CXX=
13570lt_prog_compiler_pic_CXX=
13571lt_prog_compiler_static_CXX=
13572
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13574$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13575
13576 # C++ specific cases for pic, static, wl, etc.
13577 if test "$GXX" = yes; then
13578 lt_prog_compiler_wl_CXX='-Wl,'
13579 lt_prog_compiler_static_CXX='-static'
13580
13581 case $host_os in
13582 aix*)
13583 # All AIX code is PIC.
13584 if test "$host_cpu" = ia64; then
13585 # AIX 5 now supports IA64 processor
13586 lt_prog_compiler_static_CXX='-Bstatic'
13587 fi
52204357 13588 lt_prog_compiler_pic_CXX='-fPIC'
3cb62297
L
13589 ;;
13590
13591 amigaos*)
13592 case $host_cpu in
13593 powerpc)
13594 # see comment about AmigaOS4 .so support
13595 lt_prog_compiler_pic_CXX='-fPIC'
13596 ;;
13597 m68k)
13598 # FIXME: we need at least 68020 code to build shared libraries, but
13599 # adding the `-m68020' flag to GCC prevents building anything better,
13600 # like `-m68040'.
13601 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13602 ;;
13603 esac
13604 ;;
13605
13606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13607 # PIC is the default for these OSes.
13608 ;;
13609 mingw* | cygwin* | os2* | pw32* | cegcc*)
13610 # This hack is so that the source file can tell whether it is being
13611 # built for inclusion in a dll (and should export symbols for example).
13612 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13613 # (--disable-auto-import) libraries
13614 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13615 ;;
13616 darwin* | rhapsody*)
13617 # PIC is the default on this platform
13618 # Common symbols not allowed in MH_DYLIB files
13619 lt_prog_compiler_pic_CXX='-fno-common'
13620 ;;
13621 *djgpp*)
13622 # DJGPP does not support shared libraries at all
13623 lt_prog_compiler_pic_CXX=
13624 ;;
13625 haiku*)
13626 # PIC is the default for Haiku.
13627 # The "-static" flag exists, but is broken.
13628 lt_prog_compiler_static_CXX=
13629 ;;
13630 interix[3-9]*)
13631 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13632 # Instead, we relocate shared libraries at runtime.
13633 ;;
13634 sysv4*MP*)
13635 if test -d /usr/nec; then
13636 lt_prog_compiler_pic_CXX=-Kconform_pic
13637 fi
13638 ;;
13639 hpux*)
13640 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13641 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13642 # sets the default TLS model and affects inlining.
13643 case $host_cpu in
13644 hppa*64*)
13645 ;;
13646 *)
13647 lt_prog_compiler_pic_CXX='-fPIC'
13648 ;;
13649 esac
13650 ;;
13651 *qnx* | *nto*)
13652 # QNX uses GNU C++, but need to define -shared option too, otherwise
13653 # it will coredump.
13654 lt_prog_compiler_pic_CXX='-fPIC -shared'
13655 ;;
13656 *)
13657 lt_prog_compiler_pic_CXX='-fPIC'
13658 ;;
13659 esac
13660 else
13661 case $host_os in
13662 aix[4-9]*)
13663 # All AIX code is PIC.
13664 if test "$host_cpu" = ia64; then
13665 # AIX 5 now supports IA64 processor
13666 lt_prog_compiler_static_CXX='-Bstatic'
13667 else
13668 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13669 fi
13670 ;;
13671 chorus*)
13672 case $cc_basename in
13673 cxch68*)
13674 # Green Hills C++ Compiler
13675 # _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"
13676 ;;
13677 esac
13678 ;;
13679 dgux*)
13680 case $cc_basename in
13681 ec++*)
13682 lt_prog_compiler_pic_CXX='-KPIC'
13683 ;;
13684 ghcx*)
13685 # Green Hills C++ Compiler
13686 lt_prog_compiler_pic_CXX='-pic'
13687 ;;
13688 *)
13689 ;;
13690 esac
13691 ;;
13692 freebsd* | dragonfly*)
13693 # FreeBSD uses GNU C++
13694 ;;
13695 hpux9* | hpux10* | hpux11*)
13696 case $cc_basename in
13697 CC*)
13698 lt_prog_compiler_wl_CXX='-Wl,'
13699 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13700 if test "$host_cpu" != ia64; then
13701 lt_prog_compiler_pic_CXX='+Z'
13702 fi
13703 ;;
13704 aCC*)
13705 lt_prog_compiler_wl_CXX='-Wl,'
13706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13707 case $host_cpu in
13708 hppa*64*|ia64*)
13709 # +Z the default
13710 ;;
13711 *)
13712 lt_prog_compiler_pic_CXX='+Z'
13713 ;;
13714 esac
13715 ;;
13716 *)
13717 ;;
13718 esac
13719 ;;
13720 interix*)
13721 # This is c89, which is MS Visual C++ (no shared libs)
13722 # Anyone wants to do a port?
13723 ;;
13724 irix5* | irix6* | nonstopux*)
13725 case $cc_basename in
13726 CC*)
13727 lt_prog_compiler_wl_CXX='-Wl,'
13728 lt_prog_compiler_static_CXX='-non_shared'
13729 # CC pic flag -KPIC is the default.
13730 ;;
13731 *)
13732 ;;
13733 esac
13734 ;;
13735 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13736 case $cc_basename in
13737 KCC*)
13738 # KAI C++ Compiler
13739 lt_prog_compiler_wl_CXX='--backend -Wl,'
13740 lt_prog_compiler_pic_CXX='-fPIC'
13741 ;;
13742 ecpc* )
13743 # old Intel C++ for x86_64 which still supported -KPIC.
13744 lt_prog_compiler_wl_CXX='-Wl,'
13745 lt_prog_compiler_pic_CXX='-KPIC'
13746 lt_prog_compiler_static_CXX='-static'
13747 ;;
13748 icpc* )
13749 # Intel C++, used to be incompatible with GCC.
13750 # ICC 10 doesn't accept -KPIC any more.
13751 lt_prog_compiler_wl_CXX='-Wl,'
13752 lt_prog_compiler_pic_CXX='-fPIC'
13753 lt_prog_compiler_static_CXX='-static'
13754 ;;
13755 pgCC* | pgcpp*)
13756 # Portland Group C++ compiler
13757 lt_prog_compiler_wl_CXX='-Wl,'
13758 lt_prog_compiler_pic_CXX='-fpic'
13759 lt_prog_compiler_static_CXX='-Bstatic'
13760 ;;
13761 cxx*)
13762 # Compaq C++
13763 # Make sure the PIC flag is empty. It appears that all Alpha
13764 # Linux and Compaq Tru64 Unix objects are PIC.
13765 lt_prog_compiler_pic_CXX=
13766 lt_prog_compiler_static_CXX='-non_shared'
13767 ;;
13768 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13769 # IBM XL 8.0, 9.0 on PPC and BlueGene
13770 lt_prog_compiler_wl_CXX='-Wl,'
13771 lt_prog_compiler_pic_CXX='-qpic'
13772 lt_prog_compiler_static_CXX='-qstaticlink'
13773 ;;
13774 *)
13775 case `$CC -V 2>&1 | sed 5q` in
13776 *Sun\ C*)
13777 # Sun C++ 5.9
13778 lt_prog_compiler_pic_CXX='-KPIC'
13779 lt_prog_compiler_static_CXX='-Bstatic'
13780 lt_prog_compiler_wl_CXX='-Qoption ld '
13781 ;;
13782 esac
13783 ;;
13784 esac
13785 ;;
13786 lynxos*)
13787 ;;
13788 m88k*)
13789 ;;
13790 mvs*)
13791 case $cc_basename in
13792 cxx*)
13793 lt_prog_compiler_pic_CXX='-W c,exportall'
13794 ;;
13795 *)
13796 ;;
13797 esac
13798 ;;
13799 netbsd*)
13800 ;;
13801 *qnx* | *nto*)
13802 # QNX uses GNU C++, but need to define -shared option too, otherwise
13803 # it will coredump.
13804 lt_prog_compiler_pic_CXX='-fPIC -shared'
13805 ;;
13806 osf3* | osf4* | osf5*)
13807 case $cc_basename in
13808 KCC*)
13809 lt_prog_compiler_wl_CXX='--backend -Wl,'
13810 ;;
13811 RCC*)
13812 # Rational C++ 2.4.1
13813 lt_prog_compiler_pic_CXX='-pic'
13814 ;;
13815 cxx*)
13816 # Digital/Compaq C++
13817 lt_prog_compiler_wl_CXX='-Wl,'
13818 # Make sure the PIC flag is empty. It appears that all Alpha
13819 # Linux and Compaq Tru64 Unix objects are PIC.
13820 lt_prog_compiler_pic_CXX=
13821 lt_prog_compiler_static_CXX='-non_shared'
13822 ;;
13823 *)
13824 ;;
13825 esac
13826 ;;
13827 psos*)
13828 ;;
13829 solaris*)
13830 case $cc_basename in
13831 CC*)
13832 # Sun C++ 4.2, 5.x and Centerline C++
13833 lt_prog_compiler_pic_CXX='-KPIC'
13834 lt_prog_compiler_static_CXX='-Bstatic'
13835 lt_prog_compiler_wl_CXX='-Qoption ld '
13836 ;;
13837 gcx*)
13838 # Green Hills C++ Compiler
13839 lt_prog_compiler_pic_CXX='-PIC'
13840 ;;
13841 *)
13842 ;;
13843 esac
13844 ;;
13845 sunos4*)
13846 case $cc_basename in
13847 CC*)
13848 # Sun C++ 4.x
13849 lt_prog_compiler_pic_CXX='-pic'
13850 lt_prog_compiler_static_CXX='-Bstatic'
13851 ;;
13852 lcc*)
13853 # Lucid
13854 lt_prog_compiler_pic_CXX='-pic'
13855 ;;
13856 *)
13857 ;;
13858 esac
13859 ;;
13860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13861 case $cc_basename in
13862 CC*)
13863 lt_prog_compiler_wl_CXX='-Wl,'
13864 lt_prog_compiler_pic_CXX='-KPIC'
13865 lt_prog_compiler_static_CXX='-Bstatic'
13866 ;;
13867 esac
13868 ;;
13869 tandem*)
13870 case $cc_basename in
13871 NCC*)
13872 # NonStop-UX NCC 3.20
13873 lt_prog_compiler_pic_CXX='-KPIC'
13874 ;;
13875 *)
13876 ;;
13877 esac
13878 ;;
13879 vxworks*)
13880 ;;
13881 *)
13882 lt_prog_compiler_can_build_shared_CXX=no
13883 ;;
13884 esac
13885 fi
13886
13887case $host_os in
13888 # For platforms which do not support PIC, -DPIC is meaningless:
13889 *djgpp*)
13890 lt_prog_compiler_pic_CXX=
13891 ;;
13892 *)
13893 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13894 ;;
13895esac
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13897$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13898
13899
13900
13901#
13902# Check to make sure the PIC flag actually works.
13903#
13904if test -n "$lt_prog_compiler_pic_CXX"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13906$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
d0ac1c44 13907if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
3cb62297
L
13908 $as_echo_n "(cached) " >&6
13909else
13910 lt_cv_prog_compiler_pic_works_CXX=no
13911 ac_outfile=conftest.$ac_objext
13912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13913 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13914 # Insert the option either (1) after the last *FLAGS variable, or
13915 # (2) before a word containing "conftest.", or (3) at the end.
13916 # Note that $ac_compile itself does not contain backslashes and begins
13917 # with a dollar sign (not a hyphen), so the echo should work correctly.
13918 # The option is referenced via a variable to avoid confusing sed.
13919 lt_compile=`echo "$ac_compile" | $SED \
13920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13922 -e 's:$: $lt_compiler_flag:'`
13923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13924 (eval "$lt_compile" 2>conftest.err)
13925 ac_status=$?
13926 cat conftest.err >&5
13927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928 if (exit $ac_status) && test -s "$ac_outfile"; then
13929 # The compiler can only warn and ignore the option if not recognized
13930 # So say no if there are warnings other than the usual output.
13931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13934 lt_cv_prog_compiler_pic_works_CXX=yes
13935 fi
13936 fi
13937 $RM conftest*
13938
13939fi
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13941$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13942
13943if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13944 case $lt_prog_compiler_pic_CXX in
13945 "" | " "*) ;;
13946 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13947 esac
13948else
13949 lt_prog_compiler_pic_CXX=
13950 lt_prog_compiler_can_build_shared_CXX=no
13951fi
13952
13953fi
13954
13955
13956
13957#
13958# Check to make sure the static flag actually works.
13959#
13960wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13962$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 13963if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
3cb62297
L
13964 $as_echo_n "(cached) " >&6
13965else
13966 lt_cv_prog_compiler_static_works_CXX=no
13967 save_LDFLAGS="$LDFLAGS"
13968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13971 # The linker can only warn and ignore the option if not recognized
13972 # So say no if there are warnings
13973 if test -s conftest.err; then
13974 # Append any errors to the config.log.
13975 cat conftest.err 1>&5
13976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978 if diff conftest.exp conftest.er2 >/dev/null; then
13979 lt_cv_prog_compiler_static_works_CXX=yes
13980 fi
13981 else
13982 lt_cv_prog_compiler_static_works_CXX=yes
13983 fi
13984 fi
13985 $RM -r conftest*
13986 LDFLAGS="$save_LDFLAGS"
13987
13988fi
13989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13990$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13991
13992if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13993 :
13994else
13995 lt_prog_compiler_static_CXX=
13996fi
13997
13998
13999
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14002$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14003if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14004 $as_echo_n "(cached) " >&6
14005else
14006 lt_cv_prog_compiler_c_o_CXX=no
14007 $RM -r conftest 2>/dev/null
14008 mkdir conftest
14009 cd conftest
14010 mkdir out
14011 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14012
14013 lt_compiler_flag="-o out/conftest2.$ac_objext"
14014 # Insert the option either (1) after the last *FLAGS variable, or
14015 # (2) before a word containing "conftest.", or (3) at the end.
14016 # Note that $ac_compile itself does not contain backslashes and begins
14017 # with a dollar sign (not a hyphen), so the echo should work correctly.
14018 lt_compile=`echo "$ac_compile" | $SED \
14019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14021 -e 's:$: $lt_compiler_flag:'`
14022 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14023 (eval "$lt_compile" 2>out/conftest.err)
14024 ac_status=$?
14025 cat out/conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14028 then
14029 # The compiler can only warn and ignore the option if not recognized
14030 # So say no if there are warnings
14031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14032 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14033 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14034 lt_cv_prog_compiler_c_o_CXX=yes
14035 fi
14036 fi
14037 chmod u+w . 2>&5
14038 $RM conftest*
14039 # SGI C++ compiler will create directory out/ii_files/ for
14040 # template instantiation
14041 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14042 $RM out/* && rmdir out
14043 cd ..
14044 $RM -r conftest
14045 $RM conftest*
14046
14047fi
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14049$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14050
14051
14052
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14054$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 14055if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
3cb62297
L
14056 $as_echo_n "(cached) " >&6
14057else
14058 lt_cv_prog_compiler_c_o_CXX=no
14059 $RM -r conftest 2>/dev/null
14060 mkdir conftest
14061 cd conftest
14062 mkdir out
14063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14064
14065 lt_compiler_flag="-o out/conftest2.$ac_objext"
14066 # Insert the option either (1) after the last *FLAGS variable, or
14067 # (2) before a word containing "conftest.", or (3) at the end.
14068 # Note that $ac_compile itself does not contain backslashes and begins
14069 # with a dollar sign (not a hyphen), so the echo should work correctly.
14070 lt_compile=`echo "$ac_compile" | $SED \
14071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14073 -e 's:$: $lt_compiler_flag:'`
14074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14075 (eval "$lt_compile" 2>out/conftest.err)
14076 ac_status=$?
14077 cat out/conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14080 then
14081 # The compiler can only warn and ignore the option if not recognized
14082 # So say no if there are warnings
14083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14086 lt_cv_prog_compiler_c_o_CXX=yes
14087 fi
14088 fi
14089 chmod u+w . 2>&5
14090 $RM conftest*
14091 # SGI C++ compiler will create directory out/ii_files/ for
14092 # template instantiation
14093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14094 $RM out/* && rmdir out
14095 cd ..
14096 $RM -r conftest
14097 $RM conftest*
14098
14099fi
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14101$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14102
14103
14104
14105
14106hard_links="nottested"
14107if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14108 # do not overwrite the value of need_locks provided by the user
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14110$as_echo_n "checking if we can lock with hard links... " >&6; }
14111 hard_links=yes
14112 $RM conftest*
14113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14114 touch conftest.a
14115 ln conftest.a conftest.b 2>&5 || hard_links=no
14116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14118$as_echo "$hard_links" >&6; }
14119 if test "$hard_links" = no; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14121$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14122 need_locks=warn
14123 fi
14124else
14125 need_locks=no
14126fi
14127
14128
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14131$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14132
14133 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14134 case $host_os in
14135 aix[4-9]*)
14136 # If we're using GNU nm, then we don't want the "-C" option.
14137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14138 # Also, AIX nm treats weak defined symbols like other global defined
14139 # symbols, whereas GNU nm marks them as "W".
14140 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14141 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'
14142 else
5c14705f 14143 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
14144 fi
14145 ;;
14146 pw32*)
14147 export_symbols_cmds_CXX="$ltdll_cmds"
14148 ;;
14149 cygwin* | mingw* | cegcc*)
14150 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'
14151 ;;
14152 *)
14153 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14154 ;;
14155 esac
14156 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14157
14158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14159$as_echo "$ld_shlibs_CXX" >&6; }
14160test "$ld_shlibs_CXX" = no && can_build_shared=no
14161
14162with_gnu_ld_CXX=$with_gnu_ld
14163
14164
14165
14166
14167
14168
14169#
14170# Do we need to explicitly link libc?
14171#
14172case "x$archive_cmds_need_lc_CXX" in
14173x|xyes)
14174 # Assume -lc should be added
14175 archive_cmds_need_lc_CXX=yes
14176
14177 if test "$enable_shared" = yes && test "$GCC" = yes; then
14178 case $archive_cmds_CXX in
14179 *'~'*)
14180 # FIXME: we may have to deal with multi-command sequences.
14181 ;;
14182 '$CC '*)
14183 # Test whether the compiler implicitly links with -lc since on some
14184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14185 # to ld, don't add -lc before -lgcc.
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14187$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 14188if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
3cb62297
L
14189 $as_echo_n "(cached) " >&6
14190else
14191 $RM conftest*
14192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14193
14194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14195 (eval $ac_compile) 2>&5
14196 ac_status=$?
14197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14198 test $ac_status = 0; } 2>conftest.err; then
14199 soname=conftest
14200 lib=conftest
14201 libobjs=conftest.$ac_objext
14202 deplibs=
14203 wl=$lt_prog_compiler_wl_CXX
14204 pic_flag=$lt_prog_compiler_pic_CXX
14205 compiler_flags=-v
14206 linker_flags=-v
14207 verstring=
14208 output_objdir=.
14209 libname=conftest
14210 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14211 allow_undefined_flag_CXX=
14212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14213 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14214 ac_status=$?
14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14216 test $ac_status = 0; }
14217 then
14218 lt_cv_archive_cmds_need_lc_CXX=no
14219 else
14220 lt_cv_archive_cmds_need_lc_CXX=yes
14221 fi
14222 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14223 else
14224 cat conftest.err 1>&5
14225 fi
14226 $RM conftest*
14227
14228fi
14229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14230$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14231 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14232 ;;
14233 esac
14234 fi
14235 ;;
14236esac
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14302$as_echo_n "checking dynamic linker characteristics... " >&6; }
14303
14304library_names_spec=
14305libname_spec='lib$name'
14306soname_spec=
14307shrext_cmds=".so"
14308postinstall_cmds=
14309postuninstall_cmds=
14310finish_cmds=
14311finish_eval=
14312shlibpath_var=
14313shlibpath_overrides_runpath=unknown
14314version_type=none
14315dynamic_linker="$host_os ld.so"
14316sys_lib_dlsearch_path_spec="/lib /usr/lib"
14317need_lib_prefix=unknown
14318hardcode_into_libs=no
14319
14320# when you set need_version to no, make sure it does not cause -set_version
14321# flags to be left without arguments
14322need_version=unknown
14323
14324case $host_os in
14325aix3*)
14326 version_type=linux
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14328 shlibpath_var=LIBPATH
14329
14330 # AIX 3 has no versioning support, so we append a major version to the name.
14331 soname_spec='${libname}${release}${shared_ext}$major'
14332 ;;
14333
14334aix[4-9]*)
14335 version_type=linux
14336 need_lib_prefix=no
14337 need_version=no
14338 hardcode_into_libs=yes
14339 if test "$host_cpu" = ia64; then
14340 # AIX 5 supports IA64
14341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14342 shlibpath_var=LD_LIBRARY_PATH
14343 else
14344 # With GCC up to 2.95.x, collect2 would create an import file
14345 # for dependence libraries. The import file would start with
14346 # the line `#! .'. This would cause the generated library to
14347 # depend on `.', always an invalid library. This was fixed in
14348 # development snapshots of GCC prior to 3.0.
14349 case $host_os in
14350 aix4 | aix4.[01] | aix4.[01].*)
14351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14352 echo ' yes '
14353 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14354 :
14355 else
14356 can_build_shared=no
14357 fi
14358 ;;
14359 esac
14360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14361 # soname into executable. Probably we can add versioning support to
14362 # collect2, so additional links can be useful in future.
14363 if test "$aix_use_runtimelinking" = yes; then
14364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14365 # instead of lib<name>.a to let people know that these are not
14366 # typical AIX shared libraries.
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 else
14369 # We preserve .a as extension for shared libraries through AIX4.2
14370 # and later when we are not doing run time linking.
14371 library_names_spec='${libname}${release}.a $libname.a'
14372 soname_spec='${libname}${release}${shared_ext}$major'
14373 fi
14374 shlibpath_var=LIBPATH
14375 fi
14376 ;;
14377
14378amigaos*)
14379 case $host_cpu in
14380 powerpc)
14381 # Since July 2007 AmigaOS4 officially supports .so libraries.
14382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 ;;
14385 m68k)
14386 library_names_spec='$libname.ixlibrary $libname.a'
14387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14388 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'
14389 ;;
14390 esac
14391 ;;
14392
14393beos*)
14394 library_names_spec='${libname}${shared_ext}'
14395 dynamic_linker="$host_os ld.so"
14396 shlibpath_var=LIBRARY_PATH
14397 ;;
14398
14399bsdi[45]*)
14400 version_type=linux
14401 need_version=no
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14407 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14408 # the default ld.so.conf also contains /usr/contrib/lib and
14409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14410 # libtool to hard-code these into programs
14411 ;;
14412
14413cygwin* | mingw* | pw32* | cegcc*)
14414 version_type=windows
14415 shrext_cmds=".dll"
14416 need_version=no
14417 need_lib_prefix=no
14418
14419 case $GCC,$host_os in
14420 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14421 library_names_spec='$libname.dll.a'
14422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14423 postinstall_cmds='base_file=`basename \${file}`~
14424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14425 dldir=$destdir/`dirname \$dlpath`~
14426 test -d \$dldir || mkdir -p \$dldir~
14427 $install_prog $dir/$dlname \$dldir/$dlname~
14428 chmod a+x \$dldir/$dlname~
14429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14431 fi'
14432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14433 dlpath=$dir/\$dldll~
14434 $RM \$dlpath'
14435 shlibpath_overrides_runpath=yes
14436
14437 case $host_os in
14438 cygwin*)
14439 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14440 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14441
14442 ;;
14443 mingw* | cegcc*)
14444 # MinGW DLLs use traditional 'lib' prefix
14445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14446 ;;
14447 pw32*)
14448 # pw32 DLLs use 'pw' prefix rather than 'lib'
14449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14450 ;;
14451 esac
14452 ;;
14453
14454 *)
14455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14456 ;;
14457 esac
14458 dynamic_linker='Win32 ld.exe'
14459 # FIXME: first we should search . and the directory the executable is in
14460 shlibpath_var=PATH
14461 ;;
14462
14463darwin* | rhapsody*)
14464 dynamic_linker="$host_os dyld"
14465 version_type=darwin
14466 need_lib_prefix=no
14467 need_version=no
14468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14469 soname_spec='${libname}${release}${major}$shared_ext'
14470 shlibpath_overrides_runpath=yes
14471 shlibpath_var=DYLD_LIBRARY_PATH
14472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14473
14474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14475 ;;
14476
14477dgux*)
14478 version_type=linux
14479 need_lib_prefix=no
14480 need_version=no
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 ;;
14485
3cb62297
L
14486freebsd* | dragonfly*)
14487 # DragonFly does not have aout. When/if they implement a new
14488 # versioning mechanism, adjust this.
14489 if test -x /usr/bin/objformat; then
14490 objformat=`/usr/bin/objformat`
14491 else
14492 case $host_os in
6d2920c8 14493 freebsd[23].*) objformat=aout ;;
3cb62297
L
14494 *) objformat=elf ;;
14495 esac
14496 fi
14497 version_type=freebsd-$objformat
14498 case $version_type in
14499 freebsd-elf*)
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14501 need_version=no
14502 need_lib_prefix=no
14503 ;;
14504 freebsd-*)
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14506 need_version=yes
14507 ;;
14508 esac
14509 shlibpath_var=LD_LIBRARY_PATH
14510 case $host_os in
6d2920c8 14511 freebsd2.*)
3cb62297
L
14512 shlibpath_overrides_runpath=yes
14513 ;;
14514 freebsd3.[01]* | freebsdelf3.[01]*)
14515 shlibpath_overrides_runpath=yes
14516 hardcode_into_libs=yes
14517 ;;
14518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14520 shlibpath_overrides_runpath=no
14521 hardcode_into_libs=yes
14522 ;;
14523 *) # from 4.6 on, and DragonFly
14524 shlibpath_overrides_runpath=yes
14525 hardcode_into_libs=yes
14526 ;;
14527 esac
14528 ;;
14529
3cb62297
L
14530haiku*)
14531 version_type=linux
14532 need_lib_prefix=no
14533 need_version=no
14534 dynamic_linker="$host_os runtime_loader"
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14537 shlibpath_var=LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes
d85e70a3 14539 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3cb62297
L
14540 hardcode_into_libs=yes
14541 ;;
14542
14543hpux9* | hpux10* | hpux11*)
14544 # Give a soname corresponding to the major version so that dld.sl refuses to
14545 # link against other versions.
14546 version_type=sunos
14547 need_lib_prefix=no
14548 need_version=no
14549 case $host_cpu in
14550 ia64*)
14551 shrext_cmds='.so'
14552 hardcode_into_libs=yes
14553 dynamic_linker="$host_os dld.so"
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557 soname_spec='${libname}${release}${shared_ext}$major'
14558 if test "X$HPUX_IA64_MODE" = X32; then
14559 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14560 else
14561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14562 fi
14563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14564 ;;
14565 hppa*64*)
14566 shrext_cmds='.sl'
14567 hardcode_into_libs=yes
14568 dynamic_linker="$host_os dld.sl"
14569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14575 ;;
14576 *)
14577 shrext_cmds='.sl'
14578 dynamic_linker="$host_os dld.sl"
14579 shlibpath_var=SHLIB_PATH
14580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14582 soname_spec='${libname}${release}${shared_ext}$major'
14583 ;;
14584 esac
14585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14586 postinstall_cmds='chmod 555 $lib'
14587 # or fails outright, so override atomically:
14588 install_override_mode=555
14589 ;;
14590
14591interix[3-9]*)
14592 version_type=linux
14593 need_lib_prefix=no
14594 need_version=no
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=no
14600 hardcode_into_libs=yes
14601 ;;
14602
14603irix5* | irix6* | nonstopux*)
14604 case $host_os in
14605 nonstopux*) version_type=nonstopux ;;
14606 *)
14607 if test "$lt_cv_prog_gnu_ld" = yes; then
14608 version_type=linux
14609 else
14610 version_type=irix
14611 fi ;;
14612 esac
14613 need_lib_prefix=no
14614 need_version=no
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14617 case $host_os in
14618 irix5* | nonstopux*)
14619 libsuff= shlibsuff=
14620 ;;
14621 *)
14622 case $LD in # libtool.m4 will add one of these switches to LD
14623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14624 libsuff= shlibsuff= libmagic=32-bit;;
14625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14626 libsuff=32 shlibsuff=N32 libmagic=N32;;
14627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14629 *) libsuff= shlibsuff= libmagic=never-match;;
14630 esac
14631 ;;
14632 esac
14633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14634 shlibpath_overrides_runpath=no
14635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14637 hardcode_into_libs=yes
14638 ;;
14639
14640# No shared lib support for Linux oldld, aout, or coff.
14641linux*oldld* | linux*aout* | linux*coff*)
14642 dynamic_linker=no
14643 ;;
14644
14645# This must be Linux ELF.
6a6859cb
AM
14646
14647# uclinux* changes (here and below) have been submitted to the libtool
14648# project, but have not yet been accepted: they are GCC-local changes
14649# for the time being. (See
14650# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14651linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
3cb62297
L
14652 version_type=linux
14653 need_lib_prefix=no
14654 need_version=no
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656 soname_spec='${libname}${release}${shared_ext}$major'
14657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=no
14660
14661 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 14662 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
3cb62297
L
14663 $as_echo_n "(cached) " >&6
14664else
14665 lt_cv_shlibpath_overrides_runpath=no
14666 save_LDFLAGS=$LDFLAGS
14667 save_libdir=$libdir
14668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h. */
14672
14673int
14674main ()
14675{
14676
14677 ;
14678 return 0;
14679}
14680_ACEOF
14681if ac_fn_cxx_try_link "$LINENO"; then :
14682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14683 lt_cv_shlibpath_overrides_runpath=yes
14684fi
14685fi
14686rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LDFLAGS=$save_LDFLAGS
14689 libdir=$save_libdir
14690
14691fi
14692
14693 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14694
14695 # This implies no fast_install, which is unacceptable.
14696 # Some rework will be needed to allow for fast_install
14697 # before this can be enabled.
14698 hardcode_into_libs=yes
14699
14700 # Append ld.so.conf contents to the search path
14701 if test -f /etc/ld.so.conf; then
14702 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' ' '`
14703 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14704 fi
14705
14706 # We used to test for /lib/ld.so.1 and disable shared libraries on
14707 # powerpc, because MkLinux only supported shared libraries with the
14708 # GNU dynamic linker. Since this was broken with cross compilers,
14709 # most powerpc-linux boxes support dynamic linking these days and
14710 # people can always --disable-shared, the test was removed, and we
14711 # assume the GNU/Linux dynamic linker is in use.
14712 dynamic_linker='GNU/Linux ld.so'
14713 ;;
14714
14715netbsd*)
14716 version_type=sunos
14717 need_lib_prefix=no
14718 need_version=no
14719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14722 dynamic_linker='NetBSD (a.out) ld.so'
14723 else
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 dynamic_linker='NetBSD ld.elf_so'
14727 fi
14728 shlibpath_var=LD_LIBRARY_PATH
14729 shlibpath_overrides_runpath=yes
14730 hardcode_into_libs=yes
14731 ;;
14732
14733newsos6)
14734 version_type=linux
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 shlibpath_var=LD_LIBRARY_PATH
14737 shlibpath_overrides_runpath=yes
14738 ;;
14739
14740*nto* | *qnx*)
14741 version_type=qnx
14742 need_lib_prefix=no
14743 need_version=no
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=no
14748 hardcode_into_libs=yes
14749 dynamic_linker='ldqnx.so'
14750 ;;
14751
14752openbsd*)
14753 version_type=sunos
14754 sys_lib_dlsearch_path_spec="/usr/lib"
14755 need_lib_prefix=no
14756 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14757 case $host_os in
14758 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14759 *) need_version=no ;;
14760 esac
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14763 shlibpath_var=LD_LIBRARY_PATH
14764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14765 case $host_os in
14766 openbsd2.[89] | openbsd2.[89].*)
14767 shlibpath_overrides_runpath=no
14768 ;;
14769 *)
14770 shlibpath_overrides_runpath=yes
14771 ;;
14772 esac
14773 else
14774 shlibpath_overrides_runpath=yes
14775 fi
14776 ;;
14777
14778os2*)
14779 libname_spec='$name'
14780 shrext_cmds=".dll"
14781 need_lib_prefix=no
14782 library_names_spec='$libname${shared_ext} $libname.a'
14783 dynamic_linker='OS/2 ld.exe'
14784 shlibpath_var=LIBPATH
14785 ;;
14786
14787osf3* | osf4* | osf5*)
14788 version_type=osf
14789 need_lib_prefix=no
14790 need_version=no
14791 soname_spec='${libname}${release}${shared_ext}$major'
14792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14795 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14796 ;;
14797
14798rdos*)
14799 dynamic_linker=no
14800 ;;
14801
14802solaris*)
14803 version_type=linux
14804 need_lib_prefix=no
14805 need_version=no
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath=yes
14810 hardcode_into_libs=yes
14811 # ldd complains unless libraries are executable
14812 postinstall_cmds='chmod +x $lib'
14813 ;;
14814
14815sunos4*)
14816 version_type=sunos
14817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14819 shlibpath_var=LD_LIBRARY_PATH
14820 shlibpath_overrides_runpath=yes
14821 if test "$with_gnu_ld" = yes; then
14822 need_lib_prefix=no
14823 fi
14824 need_version=yes
14825 ;;
14826
14827sysv4 | sysv4.3*)
14828 version_type=linux
14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 shlibpath_var=LD_LIBRARY_PATH
14832 case $host_vendor in
14833 sni)
14834 shlibpath_overrides_runpath=no
14835 need_lib_prefix=no
14836 runpath_var=LD_RUN_PATH
14837 ;;
14838 siemens)
14839 need_lib_prefix=no
14840 ;;
14841 motorola)
14842 need_lib_prefix=no
14843 need_version=no
14844 shlibpath_overrides_runpath=no
14845 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14846 ;;
14847 esac
14848 ;;
14849
14850sysv4*MP*)
14851 if test -d /usr/nec ;then
14852 version_type=linux
14853 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14854 soname_spec='$libname${shared_ext}.$major'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 fi
14857 ;;
14858
14859sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14860 version_type=freebsd-elf
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=yes
14867 hardcode_into_libs=yes
14868 if test "$with_gnu_ld" = yes; then
14869 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14870 else
14871 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14872 case $host_os in
14873 sco3.2v5*)
14874 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14875 ;;
14876 esac
14877 fi
14878 sys_lib_dlsearch_path_spec='/usr/lib'
14879 ;;
14880
14881tpf*)
14882 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14883 version_type=linux
14884 need_lib_prefix=no
14885 need_version=no
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 shlibpath_overrides_runpath=no
14889 hardcode_into_libs=yes
14890 ;;
14891
14892uts4*)
14893 version_type=linux
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 ;;
14898
6a6859cb
AM
14899# Shared libraries for VwWorks, >= 7 only at this stage
14900# and (fpic) still incompatible with "large" code models
14901# in a few configurations. Only for RTP mode in any case,
14902# and upon explicit request at configure time.
14903vxworks7*)
14904 dynamic_linker=no
14905 case ${with_multisubdir}-${enable_shared} in
14906 *large*)
14907 ;;
14908 *mrtp*-yes)
14909 version_type=linux
14910 need_lib_prefix=no
14911 need_version=no
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 soname_spec='${libname}${release}${shared_ext}$major'
14914 dynamic_linker="$host_os module_loader"
14915 ;;
14916 esac
14917 ;;
3cb62297
L
14918*)
14919 dynamic_linker=no
14920 ;;
14921esac
14922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14923$as_echo "$dynamic_linker" >&6; }
14924test "$dynamic_linker" = no && can_build_shared=no
14925
14926variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14927if test "$GCC" = yes; then
14928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14929fi
14930
14931if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14932 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14933fi
14934if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14935 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14936fi
14937
3725885a 14938
ce2cded5 14939
ce2cded5 14940
ce2cded5 14941
d7040cdb 14942
ce2cded5 14943
ce2cded5 14944
ce2cded5 14945
d7040cdb 14946
ce2cded5
L
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
ce2cded5
L
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
b879806f
AM
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14976$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14977hardcode_action_CXX=
14978if test -n "$hardcode_libdir_flag_spec_CXX" ||
14979 test -n "$runpath_var_CXX" ||
14980 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14981
14982 # We can hardcode non-existent directories.
14983 if test "$hardcode_direct_CXX" != no &&
14984 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14985 # have to relink, otherwise we might link with an installed library
14986 # when we should be linking with a yet-to-be-installed one
14987 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14988 test "$hardcode_minus_L_CXX" != no; then
14989 # Linking always hardcodes the temporary library directory.
14990 hardcode_action_CXX=relink
14991 else
14992 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14993 hardcode_action_CXX=immediate
14994 fi
14995else
14996 # We cannot hardcode anything, or else we can only hardcode existing
14997 # directories.
14998 hardcode_action_CXX=unsupported
14999fi
15000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15001$as_echo "$hardcode_action_CXX" >&6; }
15002
15003if test "$hardcode_action_CXX" = relink ||
15004 test "$inherit_rpath_CXX" = yes; then
15005 # Fast installation is not supported
15006 enable_fast_install=no
15007elif test "$shlibpath_overrides_runpath" = yes ||
15008 test "$enable_shared" = no; then
15009 # Fast installation is not necessary
15010 enable_fast_install=needless
15011fi
15012
15013
15014
15015
15016
15017
15018
15019 fi # test -n "$compiler"
15020
15021 CC=$lt_save_CC
15022 LDCXX=$LD
15023 LD=$lt_save_LD
15024 GCC=$lt_save_GCC
15025 with_gnu_ld=$lt_save_with_gnu_ld
15026 lt_cv_path_LDCXX=$lt_cv_path_LD
15027 lt_cv_path_LD=$lt_save_path_LD
15028 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15029 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15030fi # test "$_lt_caught_CXX_error" != yes
15031
15032ac_ext=c
15033ac_cpp='$CPP $CPPFLAGS'
15034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15036ac_compiler_gnu=$ac_cv_c_compiler_gnu
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050 ac_config_commands="$ac_config_commands libtool"
15051
15052
15053
15054
15055# Only expand once:
15056
15057
15058
15059# The tests for host and target for $enable_largefile require
15060# canonical names.
15061
15062
15063
15064# As the $enable_largefile decision depends on --enable-plugins we must set it
15065# even in directories otherwise not depending on the $plugins option.
15066
15067
15068 maybe_plugins=no
15069 for ac_header in dlfcn.h
15070do :
15071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15072"
d0ac1c44 15073if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
15074 cat >>confdefs.h <<_ACEOF
15075#define HAVE_DLFCN_H 1
15076_ACEOF
15077 maybe_plugins=yes
15078fi
15079
15080done
15081
15082 for ac_header in windows.h
15083do :
15084 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
15085"
d0ac1c44 15086if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
15087 cat >>confdefs.h <<_ACEOF
15088#define HAVE_WINDOWS_H 1
15089_ACEOF
15090 maybe_plugins=yes
15091fi
15092
15093done
15094
15095
15096 # Check whether --enable-plugins was given.
15097if test "${enable_plugins+set}" = set; then :
15098 enableval=$enable_plugins; case "${enableval}" in
15099 no) plugins=no ;;
15100 *) plugins=yes
15101 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 15102 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
15103 fi ;;
15104 esac
15105else
15106 plugins=$maybe_plugins
15107
15108fi
15109
2974be62 15110 if test "$plugins" = "yes"; then
3cba8b6c
L
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
15112$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 15113if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15114 $as_echo_n "(cached) " >&6
15115else
15116 ac_func_search_save_LIBS=$LIBS
15117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118/* end confdefs.h. */
15119
15120/* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15123#ifdef __cplusplus
15124extern "C"
15125#endif
3cba8b6c 15126char dlsym ();
2974be62
AM
15127int
15128main ()
15129{
3cba8b6c 15130return dlsym ();
2974be62
AM
15131 ;
15132 return 0;
15133}
15134_ACEOF
15135for ac_lib in '' dl; do
15136 if test -z "$ac_lib"; then
15137 ac_res="none required"
15138 else
15139 ac_res=-l$ac_lib
15140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15141 fi
15142 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 15143 ac_cv_search_dlsym=$ac_res
2974be62
AM
15144fi
15145rm -f core conftest.err conftest.$ac_objext \
15146 conftest$ac_exeext
d0ac1c44 15147 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15148 break
15149fi
15150done
d0ac1c44 15151if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
15152
15153else
3cba8b6c 15154 ac_cv_search_dlsym=no
2974be62
AM
15155fi
15156rm conftest.$ac_ext
15157LIBS=$ac_func_search_save_LIBS
15158fi
3cba8b6c
L
15159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
15160$as_echo "$ac_cv_search_dlsym" >&6; }
15161ac_res=$ac_cv_search_dlsym
2974be62
AM
15162if test "$ac_res" != no; then :
15163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15164
15165fi
15166
15167 fi
b879806f
AM
15168
15169
15170case "${host}" in
c8693053
RO
15171 sparc-*-solaris*|i?86-*-solaris*)
15172 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
15173 # were mutually exclusive until Solaris 11.3. Without procfs support,
15174 # the bfd/ elf module cannot provide certain routines such as
15175 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
15176 # explicitly requested large-file support through the
15177 # --enable-largefile switch, disable large-file support in favor of
15178 # procfs support.
15179 #
15180 # Check if <sys/procfs.h> is incompatible with large-file support.
15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15182/* end confdefs.h. */
15183#define _FILE_OFFSET_BITS 64
15184#define _STRUCTURED_PROC 1
15185#include <sys/procfs.h>
15186int
15187main ()
15188{
15189
15190 ;
15191 return 0;
15192}
15193_ACEOF
15194if ac_fn_c_try_compile "$LINENO"; then :
15195 acx_cv_procfs_lfs=yes
15196else
15197 acx_cv_procfs_lfs=no
15198fi
15199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 #
15201 # Forcefully disable large-file support only if necessary, gdb is in
15202 # tree and enabled.
15203 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
15204 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
15205 : ${enable_largefile="no"}
15206 if test "$plugins" = yes; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15208plugin support disabled; require large-file support which is incompatible with GDB." >&5
15209$as_echo "$as_me: WARNING:
15210plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15211 plugins=no
15212 fi
15213 fi
15214 #
15215 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15216 # benefit of g++ 9+ which predefines it on Solaris.
15217 if test "$enable_largefile" = no; then
15218 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
15219
15220 fi
b879806f
AM
15221 ;;
15222esac
15223
15224# Check whether --enable-largefile was given.
15225if test "${enable_largefile+set}" = set; then :
15226 enableval=$enable_largefile;
15227fi
15228
15229if test "$enable_largefile" != no; then
15230
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15232$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 15233if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
15234 $as_echo_n "(cached) " >&6
15235else
15236 ac_cv_sys_largefile_CC=no
15237 if test "$GCC" != yes; then
15238 ac_save_CC=$CC
15239 while :; do
15240 # IRIX 6.2 and later do not support large files by default,
15241 # so use the C compiler's -n32 option if that helps.
15242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15243/* end confdefs.h. */
15244#include <sys/types.h>
15245 /* Check that off_t can represent 2**63 - 1 correctly.
15246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15247 since some C++ compilers masquerading as C compilers
15248 incorrectly reject 9223372036854775807. */
e0b2a78c 15249#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15251 && LARGE_OFF_T % 2147483647 == 1)
15252 ? 1 : -1];
15253int
15254main ()
15255{
15256
15257 ;
15258 return 0;
15259}
15260_ACEOF
15261 if ac_fn_c_try_compile "$LINENO"; then :
15262 break
15263fi
15264rm -f core conftest.err conftest.$ac_objext
15265 CC="$CC -n32"
15266 if ac_fn_c_try_compile "$LINENO"; then :
15267 ac_cv_sys_largefile_CC=' -n32'; break
15268fi
15269rm -f core conftest.err conftest.$ac_objext
15270 break
15271 done
15272 CC=$ac_save_CC
15273 rm -f conftest.$ac_ext
15274 fi
15275fi
15276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15277$as_echo "$ac_cv_sys_largefile_CC" >&6; }
15278 if test "$ac_cv_sys_largefile_CC" != no; then
15279 CC=$CC$ac_cv_sys_largefile_CC
15280 fi
15281
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15283$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 15284if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
15285 $as_echo_n "(cached) " >&6
15286else
15287 while :; do
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289/* end confdefs.h. */
15290#include <sys/types.h>
15291 /* Check that off_t can represent 2**63 - 1 correctly.
15292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15293 since some C++ compilers masquerading as C compilers
15294 incorrectly reject 9223372036854775807. */
e0b2a78c 15295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15297 && LARGE_OFF_T % 2147483647 == 1)
15298 ? 1 : -1];
15299int
15300main ()
15301{
15302
15303 ;
15304 return 0;
15305}
15306_ACEOF
15307if ac_fn_c_try_compile "$LINENO"; then :
15308 ac_cv_sys_file_offset_bits=no; break
15309fi
15310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312/* end confdefs.h. */
15313#define _FILE_OFFSET_BITS 64
15314#include <sys/types.h>
15315 /* Check that off_t can represent 2**63 - 1 correctly.
15316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15317 since some C++ compilers masquerading as C compilers
15318 incorrectly reject 9223372036854775807. */
e0b2a78c 15319#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15321 && LARGE_OFF_T % 2147483647 == 1)
15322 ? 1 : -1];
15323int
15324main ()
15325{
15326
15327 ;
15328 return 0;
15329}
15330_ACEOF
15331if ac_fn_c_try_compile "$LINENO"; then :
15332 ac_cv_sys_file_offset_bits=64; break
15333fi
15334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 ac_cv_sys_file_offset_bits=unknown
15336 break
15337done
15338fi
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15340$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15341case $ac_cv_sys_file_offset_bits in #(
15342 no | unknown) ;;
15343 *)
15344cat >>confdefs.h <<_ACEOF
15345#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15346_ACEOF
15347;;
15348esac
15349rm -rf conftest*
15350 if test $ac_cv_sys_file_offset_bits = unknown; then
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15352$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 15353if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
15354 $as_echo_n "(cached) " >&6
15355else
15356 while :; do
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358/* end confdefs.h. */
15359#include <sys/types.h>
15360 /* Check that off_t can represent 2**63 - 1 correctly.
15361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15362 since some C++ compilers masquerading as C compilers
15363 incorrectly reject 9223372036854775807. */
e0b2a78c 15364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15366 && LARGE_OFF_T % 2147483647 == 1)
15367 ? 1 : -1];
15368int
15369main ()
15370{
15371
15372 ;
15373 return 0;
15374}
15375_ACEOF
15376if ac_fn_c_try_compile "$LINENO"; then :
15377 ac_cv_sys_large_files=no; break
15378fi
15379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h. */
15382#define _LARGE_FILES 1
15383#include <sys/types.h>
15384 /* Check that off_t can represent 2**63 - 1 correctly.
15385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15386 since some C++ compilers masquerading as C compilers
15387 incorrectly reject 9223372036854775807. */
e0b2a78c 15388#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
b879806f
AM
15389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15390 && LARGE_OFF_T % 2147483647 == 1)
15391 ? 1 : -1];
15392int
15393main ()
15394{
15395
15396 ;
15397 return 0;
15398}
15399_ACEOF
15400if ac_fn_c_try_compile "$LINENO"; then :
15401 ac_cv_sys_large_files=1; break
15402fi
15403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15404 ac_cv_sys_large_files=unknown
15405 break
15406done
15407fi
15408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15409$as_echo "$ac_cv_sys_large_files" >&6; }
15410case $ac_cv_sys_large_files in #(
15411 no | unknown) ;;
15412 *)
15413cat >>confdefs.h <<_ACEOF
15414#define _LARGE_FILES $ac_cv_sys_large_files
15415_ACEOF
15416;;
15417esac
15418rm -rf conftest*
15419 fi
d0ac1c44
SM
15420
15421
b879806f
AM
15422fi
15423
15424
15425
43e05cd4
AM
15426ac_checking=
15427. ${srcdir}/../bfd/development.sh
15428test "$development" = true && ac_checking=yes
15429# Check whether --enable-checking was given.
15430if test "${enable_checking+set}" = set; then :
15431 enableval=$enable_checking; case "${enableval}" in
15432 no|none) ac_checking= ;;
15433 *) ac_checking=yes ;;
15434esac
15435fi
15436if test x$ac_checking != x ; then
15437
15438$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15439
15440fi
15441
b879806f
AM
15442
15443# Check whether --with-lib-path was given.
15444if test "${with_lib_path+set}" = set; then :
15445 withval=$with_lib_path; LIB_PATH=$withval
15446fi
15447
15448# Check whether --enable-targets was given.
15449if test "${enable_targets+set}" = set; then :
15450 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 15451 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6c19b93b 15452 ;;
b879806f
AM
15453 no) enable_targets= ;;
15454 *) enable_targets=$enableval ;;
15455esac
15456fi
1d5269c9 15457
b879806f
AM
15458# Check whether --enable-64-bit-bfd was given.
15459if test "${enable_64_bit_bfd+set}" = set; then :
1d5269c9
MF
15460 enableval=$enable_64_bit_bfd; case $enableval in #(
15461 yes|no) :
15462 ;; #(
15463 *) :
15464 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15465 *) :
15466 ;;
b879806f
AM
15467esac
15468else
1d5269c9
MF
15469 enable_64_bit_bfd=no
15470fi
15471
15472
15473if test "x$enable_64_bit_bfd" = "xno"; then :
15474 # The cast to long int works around a bug in the HP C Compiler
15475# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15476# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15477# This bug is HP SR number 8606223364.
15478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15479$as_echo_n "checking size of void *... " >&6; }
15480if ${ac_cv_sizeof_void_p+:} false; then :
15481 $as_echo_n "(cached) " >&6
15482else
15483 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15484
15485else
15486 if test "$ac_cv_type_void_p" = yes; then
15487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15489as_fn_error 77 "cannot compute sizeof (void *)
15490See \`config.log' for more details" "$LINENO" 5; }
15491 else
15492 ac_cv_sizeof_void_p=0
15493 fi
15494fi
15495
15496fi
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15498$as_echo "$ac_cv_sizeof_void_p" >&6; }
15499
15500
15501
15502cat >>confdefs.h <<_ACEOF
15503#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15504_ACEOF
15505
15506
15507 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15508 enable_64_bit_bfd=yes
b879806f
AM
15509fi
15510
1d5269c9
MF
15511fi
15512
15513 if test "x$enable_64_bit_bfd" = "xyes"; then
15514 ENABLE_BFD_64_BIT_TRUE=
15515 ENABLE_BFD_64_BIT_FALSE='#'
15516else
15517 ENABLE_BFD_64_BIT_TRUE='#'
15518 ENABLE_BFD_64_BIT_FALSE=
15519fi
15520
15521
15522
b879806f
AM
15523
15524# Check whether --with-sysroot was given.
15525if test "${with_sysroot+set}" = set; then :
15526 withval=$with_sysroot;
15527 case ${with_sysroot} in
15528 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
15529 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
15530 esac
15531
15532 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15533 use_sysroot=yes
15534
15535 if test "x$prefix" = xNONE; then
15536 test_prefix=/usr/local
15537 else
15538 test_prefix=$prefix
15539 fi
15540 if test "x$exec_prefix" = xNONE; then
15541 test_exec_prefix=$test_prefix
15542 else
15543 test_exec_prefix=$exec_prefix
15544 fi
15545 case ${TARGET_SYSTEM_ROOT} in
15546 "${test_prefix}"|"${test_prefix}/"*|\
15547 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
15548 '${prefix}'|'${prefix}/'*|\
15549 '${exec_prefix}'|'${exec_prefix}/'*)
15550 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15551 TARGET_SYSTEM_ROOT_DEFINE="$t"
15552 ;;
15553 esac
15554
15555else
15556
15557 use_sysroot=no
15558 TARGET_SYSTEM_ROOT=
15559 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
15560
15561fi
15562
15563
15564
15565
15566
15567# Check whether --enable-gold was given.
15568if test "${enable_gold+set}" = set; then :
15569 enableval=$enable_gold; case "${enableval}" in
15570 default)
15571 install_as_default=no
15572 installed_linker=ld.bfd
15573 ;;
15574 yes|no)
15575 install_as_default=yes
15576 installed_linker=ld.bfd
15577 ;;
15578 *)
d0ac1c44 15579 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
b879806f
AM
15580 ;;
15581 esac
15582else
15583 install_as_default=yes
15584 installed_linker=ld.bfd
15585fi
15586
15587
15588
15589
15590# Check whether --enable-got was given.
15591if test "${enable_got+set}" = set; then :
15592 enableval=$enable_got; case "${enableval}" in
15593 target | single | negative | multigot) got_handling=$enableval ;;
d0ac1c44 15594 *) as_fn_error $? "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15595esac
15596else
15597 got_handling=target
15598fi
15599
15600
15601case "${got_handling}" in
15602 target)
15603
15604$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15605 ;;
15606 single)
15607
15608$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15609 ;;
15610 negative)
15611
15612$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15613 ;;
15614 multigot)
15615
15616$as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15617 ;;
d0ac1c44 15618 *) as_fn_error $? "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
b879806f
AM
15619esac
15620
6c3bc0f8
NC
15621# PR gas/19109
15622# Decide the default method for compressing debug sections.
15623ac_default_compressed_debug_sections=unset
15624# Provide a configure time option to override our default.
15625# Check whether --enable-compressed_debug_sections was given.
15626if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 15627 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 15628 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 15629 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
15630esac
15631fi
15632
b0c295e1
ML
15633# Select default compression algorithm.
15634ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_GABI_ZLIB
15635# Check whether --enable-default_compressed_debug_sections_algorithm was given.
15636if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
15637 enableval=$enable_default_compressed_debug_sections_algorithm; case "${enableval}" in
15638 zstd) ac_default_compressed_debug_sections_algorithm=COMPRESS_DEBUG_ZSTD ;;
15639esac
15640fi
15641
6734f10a
SB
15642# Decide setting DT_RUNPATH instead of DT_RPATH by default
15643ac_default_new_dtags=unset
15644# Provide a configure time option to override our default.
15645# Check whether --enable-new_dtags was given.
15646if test "${enable_new_dtags+set}" = set; then :
15647 enableval=$enable_new_dtags; case "${enableval}" in
15648 yes) ac_default_new_dtags=1 ;;
15649 no) ac_default_new_dtags=0 ;;
15650esac
15651fi
15652
647e4d46
L
15653# Decide if -z relro should be enabled in ELF linker by default.
15654ac_default_ld_z_relro=unset
15655# Provide a configure time option to override our default.
15656# Check whether --enable-relro was given.
15657if test "${enable_relro+set}" = set; then :
15658 enableval=$enable_relro; case "${enableval}" in
15659 yes) ac_default_ld_z_relro=1 ;;
15660 no) ac_default_ld_z_relro=0 ;;
15661esac
15662fi
15663
b32632c4
L
15664# Decide if DT_TEXTREL check should be enabled in ELF linker.
15665ac_default_ld_textrel_check=unset
15666# Check whether --enable-textrel-check was given.
15667if test "${enable_textrel_check+set}" = set; then :
15668 enableval=$enable_textrel_check; case "${enableval}" in
15669 yes|no|warning|error) ac_default_ld_textrel_check=${enableval} ;;
15670esac
15671fi
15672
15673
f6aec96d
L
15674# Decide if -z separate-code should be enabled in ELF linker by default.
15675ac_default_ld_z_separate_code=unset
15676# Check whether --enable-separate-code was given.
15677if test "${enable_separate_code+set}" = set; then :
15678 enableval=$enable_separate_code; case "${enableval}" in
15679 yes) ac_default_ld_z_separate_code=1 ;;
15680 no) ac_default_ld_z_separate_code=0 ;;
15681esac
15682fi
15683
15684
ba951afb 15685
bd7d326d
AM
15686# By default warn when an executable stack is created due to object files
15687# requesting such, not when the user specifies -z execstack.
ed1c7ad8 15688ac_default_ld_warn_execstack=2
ba951afb
NC
15689# Check whether --enable-warn-execstack was given.
15690if test "${enable_warn_execstack+set}" = set; then :
15691 enableval=$enable_warn_execstack; case "${enableval}" in
15692 yes) ac_default_ld_warn_execstack=1 ;;
bd7d326d 15693 no) ac_default_ld_warn_execstack=0 ;;
ba951afb
NC
15694esac
15695fi
15696
15697
e922d1ea
NC
15698ac_default_ld_error_execstack=0
15699# Check whether --enable-error-execstack was given.
15700if test "${enable_error_execstack+set}" = set; then :
15701 enableval=$enable_error_execstack; case "${enableval}" in
15702 yes) ac_default_ld_error_execstack=1 ;;
15703 no) ac_default_ld_error_execstack=0 ;;
15704esac
15705fi
15706
15707
ba951afb
NC
15708ac_default_ld_warn_rwx_segments=unset
15709# Check whether --enable-warn-rwx-segments was given.
15710if test "${enable_warn_rwx_segments+set}" = set; then :
15711 enableval=$enable_warn_rwx_segments; case "${enableval}" in
15712 yes) ac_default_ld_warn_rwx_segments=1 ;;
15713 no) ac_default_ld_warn_rwx_segments=0 ;;
15714esac
15715fi
15716
15717
e922d1ea
NC
15718ac_default_ld_error_rwx_segments=0
15719# Check whether --enable-error-rwx-segments was given.
15720if test "${enable_error_rwx_segments+set}" = set; then :
15721 enableval=$enable_error_rwx_segments; case "${enableval}" in
15722 yes) ac_default_ld_error_rwx_segments=1 ;;
15723 no) ac_default_ld_error_rwx_segments=0 ;;
15724esac
15725fi
15726
15727
ba951afb
NC
15728ac_default_ld_default_execstack=unset
15729# Check whether --enable-default-execstack was given.
15730if test "${enable_default_execstack+set}" = set; then :
15731 enableval=$enable_default_execstack; case "${enableval}" in
15732 yes) ac_default_ld_default_execstack=1 ;;
15733 no) ac_default_ld_default_execstack=0 ;;
15734esac
15735fi
15736
15737
15738
23ae20f5
NC
15739# Decide if --error-handling-script should be supported.
15740ac_support_error_handling_script=unset
15741# Check whether --enable-error-handling-script was given.
15742if test "${enable_error_handling_script+set}" = set; then :
15743 enableval=$enable_error_handling_script; case "${enableval}" in
15744 yes) ac_support_error_handling_script=1 ;;
15745 no) ac_support_error_handling_script=0 ;;
15746esac
15747fi
15748
15749
2760f24c
RG
15750# Decide which "--hash-style" to use by default
15751# Provide a configure time option to override our default.
15752# Check whether --enable-default-hash-style was given.
15753if test "${enable_default_hash_style+set}" = set; then :
15754 enableval=$enable_default_hash_style; case "${enable_default_hash_style}" in
15755 sysv | gnu | both) ;;
d0ac1c44 15756 *) as_fn_error $? "bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
2760f24c
RG
15757esac
15758else
15759 case "${target}" in
15760 # Enable gnu hash only on GNU targets, but not mips
15761 mips*-*-*) enable_default_hash_style=sysv ;;
15762 *-*-gnu* | *-*-linux* | *-*-nacl*) enable_default_hash_style=both ;;
15763 *) enable_default_hash_style=sysv ;;
15764esac
15765fi
15766
15767
15768case "${enable_default_hash_style}" in
15769 sysv | both) ac_default_emit_sysv_hash=1 ;;
15770 *) ac_default_emit_sysv_hash=0 ;;
15771esac
15772
15773case "${enable_default_hash_style}" in
15774 gnu | both) ac_default_emit_gnu_hash=1 ;;
15775 *) ac_default_emit_gnu_hash=0 ;;
15776esac
15777
c774eab1
AM
15778# Check whether --enable-initfini-array was given.
15779if test "${enable_initfini_array+set}" = set; then :
15780 enableval=$enable_initfini_array; case "${enableval}" in
15781 yes|no) ;;
15782 *) as_fn_error $? "invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15783 esac
15784else
15785 enable_initfini_array=yes
15786fi
15787
15788
15789if test $enable_initfini_array = yes; then
15790
15791$as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15792
15793fi
15794
094e34f2
NA
15795 # Check whether --enable-libctf was given.
15796if test "${enable_libctf+set}" = set; then :
15797 enableval=$enable_libctf;
15798 case "$enableval" in
15799 yes|no) ;;
15800 *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15801 esac
15802
15803else
15804 enable_libctf=yes
15805fi
15806
15807
15808if test "${enable_libctf}" = yes; then
15809
15810$as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15811
15812fi
15813 if test "${enable_libctf}" = yes; then
15814 ENABLE_LIBCTF_TRUE=
15815 ENABLE_LIBCTF_FALSE='#'
15816else
15817 ENABLE_LIBCTF_TRUE='#'
15818 ENABLE_LIBCTF_FALSE=
15819fi
15820
15821
b879806f 15822
9e2bb0cb
LB
15823# Used to validate --package-metadata= input. Disabled by default.
15824# Check whether --enable-jansson was given.
15825if test "${enable_jansson+set}" = set; then :
15826 enableval=$enable_jansson; enable_jansson=$enableval
15827else
15828 enable_jansson="no"
15829fi
15830
15831
544c5619 15832if test "x$enable_jansson" != "xno"; then :
9e2bb0cb
LB
15833
15834pkg_failed=no
15835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15836$as_echo_n "checking for jansson... " >&6; }
15837
15838if test -n "$JANSSON_CFLAGS"; then
15839 pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
15840 elif test -n "$PKG_CONFIG"; then
15841 if test -n "$PKG_CONFIG" && \
15842 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15843 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15844 ac_status=$?
15845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15846 test $ac_status = 0; }; then
15847 pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15848 test "x$?" != "x0" && pkg_failed=yes
15849else
15850 pkg_failed=yes
15851fi
15852 else
15853 pkg_failed=untried
15854fi
15855if test -n "$JANSSON_LIBS"; then
15856 pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
15857 elif test -n "$PKG_CONFIG"; then
15858 if test -n "$PKG_CONFIG" && \
15859 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15860 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15861 ac_status=$?
15862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15863 test $ac_status = 0; }; then
15864 pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15865 test "x$?" != "x0" && pkg_failed=yes
15866else
15867 pkg_failed=yes
15868fi
15869 else
15870 pkg_failed=untried
15871fi
15872
15873if test $pkg_failed = no; then
15874 pkg_save_LDFLAGS="$LDFLAGS"
15875 LDFLAGS="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h. */
15878
15879int
15880main ()
15881{
15882
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887if ac_fn_c_try_link "$LINENO"; then :
15888
15889else
15890 pkg_failed=yes
15891fi
15892rm -f core conftest.err conftest.$ac_objext \
15893 conftest$ac_exeext conftest.$ac_ext
15894 LDFLAGS=$pkg_save_LDFLAGS
15895fi
15896
15897
15898
15899if test $pkg_failed = yes; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901$as_echo "no" >&6; }
15902
15903if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15904 _pkg_short_errors_supported=yes
15905else
15906 _pkg_short_errors_supported=no
15907fi
15908 if test $_pkg_short_errors_supported = yes; then
15909 JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15910 else
15911 JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15912 fi
15913 # Put the nasty error message in config.log where it belongs
15914 echo "$JANSSON_PKG_ERRORS" >&5
15915
544c5619 15916 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
9e2bb0cb
LB
15917elif test $pkg_failed = untried; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919$as_echo "no" >&6; }
544c5619 15920 as_fn_error $? "Cannot find jansson library" "$LINENO" 5
9e2bb0cb
LB
15921else
15922 JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
15923 JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15925$as_echo "yes" >&6; }
15926
15927
15928$as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15929
15930
15931
15932
15933fi
15934
9e2bb0cb
LB
15935fi
15936
7cdfc346 15937
b879806f
AM
15938# Set the 'development' global.
15939. $srcdir/../bfd/development.sh
15940
c5da1932
VZ
15941# Set acp_cpp_for_build variable
15942ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15943
9780e045 15944# Default set of GCC warnings to enable.
b879806f 15945GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 15946GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
15947
15948# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
b879806f
AM
15949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15950/* end confdefs.h. */
15951__GNUC__
15952_ACEOF
15953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15954 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
ce2cded5 15955
3cb62297 15956else
b879806f 15957 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
3cb62297 15958fi
b879806f 15959rm -f conftest*
ce2cded5 15960
ce2cded5 15961
9780e045
NC
15962# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15964/* end confdefs.h. */
15965__GNUC__
15966_ACEOF
15967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15968 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
15969
15970else
491cf317
TO
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972/* end confdefs.h. */
15973__clang__
15974_ACEOF
15975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15976 $EGREP "^__clang__$" >/dev/null 2>&1; then :
9780e045
NC
15977 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15978fi
15979rm -f conftest*
15980
491cf317
TO
15981fi
15982rm -f conftest*
15983
9780e045 15984
6757cf57
TS
15985# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15986WARN_WRITE_STRINGS=""
15987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988/* end confdefs.h. */
15989__GNUC__
15990_ACEOF
15991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 15992 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
15993
15994else
15995 WARN_WRITE_STRINGS="-Wwrite-strings"
15996fi
15997rm -f conftest*
15998
9780e045 15999
96fe4562 16000# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
16001
16002# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
16003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004/* end confdefs.h. */
16005__GNUC__
16006_ACEOF
16007if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 16008 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
16009
16010else
16011 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
16012fi
16013rm -f conftest*
16014
16015
16016# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
16017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018/* end confdefs.h. */
16019__GNUC__
16020_ACEOF
16021if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 16022 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
16023
16024else
491cf317
TO
16025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026/* end confdefs.h. */
16027__clang__
16028_ACEOF
16029if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
16030 $EGREP "^__clang__$" >/dev/null 2>&1; then :
c5da1932
VZ
16031 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
16032fi
16033rm -f conftest*
16034
491cf317
TO
16035fi
16036rm -f conftest*
16037
c5da1932 16038
b879806f
AM
16039# Check whether --enable-werror was given.
16040if test "${enable_werror+set}" = set; then :
16041 enableval=$enable_werror; case "${enableval}" in
16042 yes | y) ERROR_ON_WARNING="yes" ;;
16043 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 16044 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
b879806f
AM
16045 esac
16046fi
ce2cded5
L
16047
16048
b879806f
AM
16049# Disable -Wformat by default when using gcc on mingw
16050case "${host}" in
16051 *-*-mingw32*)
16052 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
16053 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 16054 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
b879806f
AM
16055 fi
16056 ;;
16057 *) ;;
16058esac
ce2cded5 16059
b879806f
AM
16060# Enable -Werror by default when using gcc. Turn it off for releases.
16061if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
16062 ERROR_ON_WARNING=yes
16063fi
d7040cdb 16064
b879806f
AM
16065NO_WERROR=
16066if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 16067 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 16068 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
b879806f
AM
16069 NO_WERROR="-Wno-error"
16070fi
3cb62297 16071
b879806f
AM
16072if test "${GCC}" = yes ; then
16073 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 16074 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
b879806f 16075fi
67310ccd 16076
b879806f
AM
16077# Check whether --enable-build-warnings was given.
16078if test "${enable_build_warnings+set}" = set; then :
16079 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
16080 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
16081 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
b879806f
AM
16082 no) if test "${GCC}" = yes ; then
16083 WARN_CFLAGS="-w"
c5da1932 16084 WARN_CFLAGS_FOR_BUILD="-w"
b879806f
AM
16085 fi;;
16086 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16087 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
16088 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
b879806f 16089 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
16090 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
16091 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
16092 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
16093 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
b879806f
AM
16094esac
16095fi
67310ccd 16096
d7040cdb 16097
b879806f
AM
16098if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
16099 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
16100fi
d7040cdb 16101
d7040cdb 16102
d7040cdb 16103
d7040cdb 16104
ce2cded5
L
16105
16106
6757cf57 16107
c5da1932 16108
b879806f
AM
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16110$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 16111if ${am_cv_val_LC_MESSAGES+:} false; then :
b879806f
AM
16112 $as_echo_n "(cached) " >&6
16113else
16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16115/* end confdefs.h. */
16116#include <locale.h>
16117int
16118main ()
16119{
16120return LC_MESSAGES
16121 ;
16122 return 0;
16123}
16124_ACEOF
16125if ac_fn_c_try_link "$LINENO"; then :
16126 am_cv_val_LC_MESSAGES=yes
16127else
16128 am_cv_val_LC_MESSAGES=no
16129fi
16130rm -f core conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
16132fi
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16134$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16135 if test $am_cv_val_LC_MESSAGES = yes; then
ce2cded5 16136
b879806f 16137$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
ce2cded5 16138
b879806f 16139 fi
ce2cded5 16140
ce2cded5 16141
b879806f 16142ac_config_headers="$ac_config_headers config.h:config.in"
ce2cded5
L
16143
16144
b879806f 16145# PR 14072
ce2cded5 16146
ce2cded5 16147
b879806f 16148if test -z "$target" ; then
d0ac1c44 16149 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
b879806f
AM
16150fi
16151if test -z "$host" ; then
d0ac1c44 16152 as_fn_error $? "Unrecognized host system type; please check config.sub." "$LINENO" 5
b879806f 16153fi
d7040cdb 16154
b879806f 16155# host-specific stuff:
d7040cdb 16156
e184813f 16157ALL_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
16158
16159 MKINSTALLDIRS=
16160 if test -n "$ac_aux_dir"; then
16161 case "$ac_aux_dir" in
16162 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16163 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16164 esac
16165 fi
16166 if test -z "$MKINSTALLDIRS"; then
16167 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16168 fi
16169
16170
16171
81ecdfbb
RW
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16173$as_echo_n "checking whether NLS is requested... " >&6; }
16174 # Check whether --enable-nls was given.
16175if test "${enable_nls+set}" = set; then :
16176 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
16177else
16178 USE_NLS=yes
81ecdfbb
RW
16179fi
16180
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16182$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
16183
16184
16185
16186
16187
16188
16189# Prepare PATH_SEPARATOR.
16190# The user is always right.
16191if test "${PATH_SEPARATOR+set}" != set; then
16192 echo "#! /bin/sh" >conf$$.sh
16193 echo "exit 0" >>conf$$.sh
16194 chmod +x conf$$.sh
16195 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16196 PATH_SEPARATOR=';'
16197 else
16198 PATH_SEPARATOR=:
16199 fi
16200 rm -f conf$$.sh
16201fi
16202
16203# Find out how to test for executable files. Don't use a zero-byte file,
16204# as systems may use methods other than mode bits to determine executability.
16205cat >conf$$.file <<_ASEOF
16206#! /bin/sh
16207exit 0
16208_ASEOF
16209chmod +x conf$$.file
16210if test -x conf$$.file >/dev/null 2>&1; then
16211 ac_executable_p="test -x"
16212else
16213 ac_executable_p="test -f"
16214fi
16215rm -f conf$$.file
16216
16217# Extract the first word of "msgfmt", so it can be a program name with args.
16218set dummy msgfmt; ac_word=$2
81ecdfbb
RW
16219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16220$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16221if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 16222 $as_echo_n "(cached) " >&6
d7040cdb
SE
16223else
16224 case "$MSGFMT" in
16225 [\\/]* | ?:[\\/]*)
16226 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16227 ;;
16228 *)
16229 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16230 for ac_dir in $PATH; do
16231 IFS="$ac_save_IFS"
16232 test -z "$ac_dir" && ac_dir=.
16233 for ac_exec_ext in '' $ac_executable_extensions; do
16234 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16235 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
16236 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16237 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16238 break 2
16239 fi
16240 fi
16241 done
16242 done
16243 IFS="$ac_save_IFS"
16244 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16245 ;;
16246esac
16247fi
16248MSGFMT="$ac_cv_path_MSGFMT"
16249if test "$MSGFMT" != ":"; then
81ecdfbb
RW
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16251$as_echo "$MSGFMT" >&6; }
d7040cdb 16252else
81ecdfbb
RW
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16254$as_echo "no" >&6; }
d7040cdb
SE
16255fi
16256
16257 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16258set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
16259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16260$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16261if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 16262 $as_echo_n "(cached) " >&6
d7040cdb
SE
16263else
16264 case $GMSGFMT in
16265 [\\/]* | ?:[\\/]*)
16266 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16267 ;;
16268 *)
16269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16270for as_dir in $PATH
16271do
16272 IFS=$as_save_IFS
16273 test -z "$as_dir" && as_dir=.
81ecdfbb 16274 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 16276 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
16278 break 2
16279 fi
16280done
81ecdfbb
RW
16281 done
16282IFS=$as_save_IFS
d7040cdb
SE
16283
16284 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16285 ;;
16286esac
16287fi
16288GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 16289if test -n "$GMSGFMT"; then
81ecdfbb
RW
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16291$as_echo "$GMSGFMT" >&6; }
d7040cdb 16292else
81ecdfbb
RW
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16294$as_echo "no" >&6; }
20e95c23 16295fi
42ecbf5e 16296
20e95c23 16297
252b5132 16298
81ecdfbb 16299
d7040cdb
SE
16300# Prepare PATH_SEPARATOR.
16301# The user is always right.
16302if test "${PATH_SEPARATOR+set}" != set; then
16303 echo "#! /bin/sh" >conf$$.sh
16304 echo "exit 0" >>conf$$.sh
16305 chmod +x conf$$.sh
16306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16307 PATH_SEPARATOR=';'
16308 else
16309 PATH_SEPARATOR=:
16310 fi
16311 rm -f conf$$.sh
20e95c23 16312fi
252b5132 16313
d7040cdb
SE
16314# Find out how to test for executable files. Don't use a zero-byte file,
16315# as systems may use methods other than mode bits to determine executability.
16316cat >conf$$.file <<_ASEOF
16317#! /bin/sh
16318exit 0
16319_ASEOF
16320chmod +x conf$$.file
16321if test -x conf$$.file >/dev/null 2>&1; then
16322 ac_executable_p="test -x"
20e95c23 16323else
d7040cdb
SE
16324 ac_executable_p="test -f"
16325fi
16326rm -f conf$$.file
20e95c23 16327
d7040cdb
SE
16328# Extract the first word of "xgettext", so it can be a program name with args.
16329set dummy xgettext; ac_word=$2
81ecdfbb
RW
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16331$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16332if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 16333 $as_echo_n "(cached) " >&6
252b5132 16334else
d7040cdb
SE
16335 case "$XGETTEXT" in
16336 [\\/]* | ?:[\\/]*)
16337 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16338 ;;
16339 *)
16340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16341 for ac_dir in $PATH; do
16342 IFS="$ac_save_IFS"
16343 test -z "$ac_dir" && ac_dir=.
16344 for ac_exec_ext in '' $ac_executable_extensions; do
16345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16346 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16347 (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
16348 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16349 break 2
16350 fi
16351 fi
16352 done
16353 done
16354 IFS="$ac_save_IFS"
16355 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16356 ;;
16357esac
252b5132 16358fi
d7040cdb
SE
16359XGETTEXT="$ac_cv_path_XGETTEXT"
16360if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16362$as_echo "$XGETTEXT" >&6; }
d5fbea21 16363else
81ecdfbb
RW
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365$as_echo "no" >&6; }
d5fbea21
DJ
16366fi
16367
d7040cdb 16368 rm -f messages.po
d5fbea21 16369
20e95c23 16370
d7040cdb
SE
16371# Prepare PATH_SEPARATOR.
16372# The user is always right.
16373if test "${PATH_SEPARATOR+set}" != set; then
16374 echo "#! /bin/sh" >conf$$.sh
16375 echo "exit 0" >>conf$$.sh
16376 chmod +x conf$$.sh
16377 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16378 PATH_SEPARATOR=';'
16379 else
16380 PATH_SEPARATOR=:
16381 fi
16382 rm -f conf$$.sh
16383fi
20e95c23 16384
d7040cdb
SE
16385# Find out how to test for executable files. Don't use a zero-byte file,
16386# as systems may use methods other than mode bits to determine executability.
16387cat >conf$$.file <<_ASEOF
16388#! /bin/sh
16389exit 0
16390_ASEOF
16391chmod +x conf$$.file
16392if test -x conf$$.file >/dev/null 2>&1; then
16393 ac_executable_p="test -x"
16394else
16395 ac_executable_p="test -f"
16396fi
16397rm -f conf$$.file
20e95c23 16398
d7040cdb
SE
16399# Extract the first word of "msgmerge", so it can be a program name with args.
16400set dummy msgmerge; ac_word=$2
81ecdfbb
RW
16401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16402$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16403if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 16404 $as_echo_n "(cached) " >&6
d7040cdb
SE
16405else
16406 case "$MSGMERGE" in
16407 [\\/]* | ?:[\\/]*)
16408 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16409 ;;
16410 *)
16411 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16412 for ac_dir in $PATH; do
16413 IFS="$ac_save_IFS"
16414 test -z "$ac_dir" && ac_dir=.
16415 for ac_exec_ext in '' $ac_executable_extensions; do
16416 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16417 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
16418 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16419 break 2
16420 fi
16421 fi
16422 done
16423 done
16424 IFS="$ac_save_IFS"
16425 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16426 ;;
16427esac
16428fi
16429MSGMERGE="$ac_cv_path_MSGMERGE"
16430if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16432$as_echo "$MSGMERGE" >&6; }
d7040cdb 16433else
81ecdfbb
RW
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16435$as_echo "no" >&6; }
d7040cdb 16436fi
20e95c23
DJ
16437
16438
d7040cdb
SE
16439 if test "$GMSGFMT" != ":"; then
16440 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16441 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16442 : ;
16443 else
16444 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16446$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
16447 GMSGFMT=":"
16448 fi
16449 fi
20e95c23 16450
d7040cdb
SE
16451 if test "$XGETTEXT" != ":"; then
16452 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16453 (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
16454 : ;
16455 else
81ecdfbb
RW
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16457$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
16458 XGETTEXT=":"
16459 fi
16460 rm -f messages.po
20e95c23 16461 fi
42ecbf5e 16462
81ecdfbb 16463 ac_config_commands="$ac_config_commands default-1"
252b5132 16464
42ecbf5e 16465
252b5132 16466
862776f2
AA
16467 if test "X$prefix" = "XNONE"; then
16468 acl_final_prefix="$ac_default_prefix"
16469 else
16470 acl_final_prefix="$prefix"
16471 fi
16472 if test "X$exec_prefix" = "XNONE"; then
16473 acl_final_exec_prefix='${prefix}'
16474 else
16475 acl_final_exec_prefix="$exec_prefix"
16476 fi
16477 acl_save_prefix="$prefix"
16478 prefix="$acl_final_prefix"
16479 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16480 prefix="$acl_save_prefix"
42ecbf5e
DJ
16481
16482
862776f2
AA
16483# Check whether --with-gnu-ld was given.
16484if test "${with_gnu_ld+set}" = set; then :
16485 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
42ecbf5e 16486else
862776f2
AA
16487 with_gnu_ld=no
16488fi
16489
16490# Prepare PATH_SEPARATOR.
16491# The user is always right.
16492if test "${PATH_SEPARATOR+set}" != set; then
16493 echo "#! /bin/sh" >conf$$.sh
16494 echo "exit 0" >>conf$$.sh
16495 chmod +x conf$$.sh
16496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16497 PATH_SEPARATOR=';'
16498 else
16499 PATH_SEPARATOR=:
d7040cdb 16500 fi
862776f2
AA
16501 rm -f conf$$.sh
16502fi
16503ac_prog=ld
16504if test "$GCC" = yes; then
16505 # Check if gcc -print-prog-name=ld gives a path.
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16507$as_echo_n "checking for ld used by GCC... " >&6; }
16508 case $host in
16509 *-*-mingw*)
16510 # gcc leaves a trailing carriage return which upsets mingw
16511 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16512 *)
16513 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16514 esac
16515 case $ac_prog in
16516 # Accept absolute paths.
16517 [\\/]* | [A-Za-z]:[\\/]*)
16518 re_direlt='/[^/][^/]*/\.\./'
16519 # Canonicalize the path of ld
16520 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16521 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16522 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16523 done
16524 test -z "$LD" && LD="$ac_prog"
16525 ;;
16526 "")
16527 # If it fails, then pretend we aren't using GCC.
16528 ac_prog=ld
16529 ;;
16530 *)
16531 # If it is relative, then search for the first ld in PATH.
16532 with_gnu_ld=unknown
16533 ;;
16534 esac
16535elif test "$with_gnu_ld" = yes; then
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16537$as_echo_n "checking for GNU ld... " >&6; }
16538else
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16540$as_echo_n "checking for non-GNU ld... " >&6; }
16541fi
16542if ${acl_cv_path_LD+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544else
16545 if test -z "$LD"; then
16546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16547 for ac_dir in $PATH; do
16548 test -z "$ac_dir" && ac_dir=.
16549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16550 acl_cv_path_LD="$ac_dir/$ac_prog"
16551 # Check to see if the program is GNU ld. I'd rather use --version,
16552 # but apparently some GNU ld's only accept -v.
16553 # Break only if it was the GNU/non-GNU ld that we prefer.
16554 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
16555 test "$with_gnu_ld" != no && break
16556 else
16557 test "$with_gnu_ld" != yes && break
16558 fi
16559 fi
81ecdfbb 16560 done
862776f2
AA
16561 IFS="$ac_save_ifs"
16562else
16563 acl_cv_path_LD="$LD" # Let the user override the test with a path.
42ecbf5e 16564fi
e5a52504 16565fi
862776f2
AA
16566
16567LD="$acl_cv_path_LD"
16568if test -n "$LD"; then
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16570$as_echo "$LD" >&6; }
42ecbf5e 16571else
81ecdfbb
RW
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16573$as_echo "no" >&6; }
42ecbf5e 16574fi
862776f2
AA
16575test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16577$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16578if ${acl_cv_prog_gnu_ld+:} false; then :
16579 $as_echo_n "(cached) " >&6
16580else
16581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16582if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
16583 acl_cv_prog_gnu_ld=yes
16584else
16585 acl_cv_prog_gnu_ld=no
16586fi
16587fi
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16589$as_echo "$acl_cv_prog_gnu_ld" >&6; }
16590with_gnu_ld=$acl_cv_prog_gnu_ld
252b5132 16591
81ecdfbb 16592
d15b04bd 16593
862776f2
AA
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16595$as_echo_n "checking for shared library run path origin... " >&6; }
16596if ${acl_cv_rpath+:} false; then :
81ecdfbb 16597 $as_echo_n "(cached) " >&6
d15b04bd 16598else
862776f2
AA
16599
16600 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16601 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16602 . ./conftest.sh
16603 rm -f ./conftest.sh
16604 acl_cv_rpath=done
d7040cdb
SE
16605
16606fi
862776f2
AA
16607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16608$as_echo "$acl_cv_rpath" >&6; }
16609 wl="$acl_cv_wl"
16610 libext="$acl_cv_libext"
16611 shlibext="$acl_cv_shlibext"
16612 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16613 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16614 hardcode_direct="$acl_cv_hardcode_direct"
16615 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16616 # Check whether --enable-rpath was given.
16617if test "${enable_rpath+set}" = set; then :
16618 enableval=$enable_rpath; :
d7040cdb 16619else
862776f2 16620 enable_rpath=yes
d15b04bd 16621fi
e5a52504 16622
81ecdfbb 16623
42ecbf5e 16624
42ecbf5e 16625
862776f2
AA
16626
16627
16628
16629
16630 use_additional=yes
16631
16632 acl_save_prefix="$prefix"
16633 prefix="$acl_final_prefix"
16634 acl_save_exec_prefix="$exec_prefix"
16635 exec_prefix="$acl_final_exec_prefix"
16636
16637 eval additional_includedir=\"$includedir\"
16638 eval additional_libdir=\"$libdir\"
16639
16640 exec_prefix="$acl_save_exec_prefix"
16641 prefix="$acl_save_prefix"
16642
16643
16644# Check whether --with-libiconv-prefix was given.
16645if test "${with_libiconv_prefix+set}" = set; then :
16646 withval=$with_libiconv_prefix;
16647 if test "X$withval" = "Xno"; then
16648 use_additional=no
16649 else
16650 if test "X$withval" = "X"; then
16651
16652 acl_save_prefix="$prefix"
16653 prefix="$acl_final_prefix"
16654 acl_save_exec_prefix="$exec_prefix"
16655 exec_prefix="$acl_final_exec_prefix"
16656
16657 eval additional_includedir=\"$includedir\"
16658 eval additional_libdir=\"$libdir\"
16659
16660 exec_prefix="$acl_save_exec_prefix"
16661 prefix="$acl_save_prefix"
16662
16663 else
16664 additional_includedir="$withval/include"
16665 additional_libdir="$withval/lib"
16666 fi
16667 fi
16668
16669fi
16670
16671
16672# Check whether --with-libiconv-type was given.
16673if test "${with_libiconv_type+set}" = set; then :
16674 withval=$with_libiconv_type; with_libiconv_type=$withval
16675else
16676 with_libiconv_type=auto
16677fi
16678
16679 lib_type=`eval echo \$with_libiconv_type`
16680
16681 LIBICONV=
16682 LTLIBICONV=
16683 INCICONV=
16684 rpathdirs=
16685 ltrpathdirs=
16686 names_already_handled=
16687 names_next_round='iconv '
16688 while test -n "$names_next_round"; do
16689 names_this_round="$names_next_round"
16690 names_next_round=
16691 for name in $names_this_round; do
16692 already_handled=
16693 for n in $names_already_handled; do
16694 if test "$n" = "$name"; then
16695 already_handled=yes
16696 break
16697 fi
16698 done
16699 if test -z "$already_handled"; then
16700 names_already_handled="$names_already_handled $name"
16701 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16702 eval value=\"\$HAVE_LIB$uppername\"
16703 if test -n "$value"; then
16704 if test "$value" = yes; then
16705 eval value=\"\$LIB$uppername\"
16706 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16707 eval value=\"\$LTLIB$uppername\"
16708 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16709 else
16710 :
16711 fi
16712 else
16713 found_dir=
16714 found_la=
16715 found_so=
16716 found_a=
16717 if test $use_additional = yes; then
16718 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16719 found_dir="$additional_libdir"
16720 found_so="$additional_libdir/lib$name.$shlibext"
16721 if test -f "$additional_libdir/lib$name.la"; then
16722 found_la="$additional_libdir/lib$name.la"
16723 fi
16724 elif test x$lib_type != xshared; then
16725 if test -f "$additional_libdir/lib$name.$libext"; then
16726 found_dir="$additional_libdir"
16727 found_a="$additional_libdir/lib$name.$libext"
16728 if test -f "$additional_libdir/lib$name.la"; then
16729 found_la="$additional_libdir/lib$name.la"
16730 fi
16731 fi
16732 fi
16733 fi
16734 if test "X$found_dir" = "X"; then
16735 for x in $LDFLAGS $LTLIBICONV; do
16736
16737 acl_save_prefix="$prefix"
16738 prefix="$acl_final_prefix"
16739 acl_save_exec_prefix="$exec_prefix"
16740 exec_prefix="$acl_final_exec_prefix"
16741 eval x=\"$x\"
16742 exec_prefix="$acl_save_exec_prefix"
16743 prefix="$acl_save_prefix"
16744
16745 case "$x" in
16746 -L*)
16747 dir=`echo "X$x" | sed -e 's/^X-L//'`
16748 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
16749 found_dir="$dir"
16750 found_so="$dir/lib$name.$shlibext"
16751 if test -f "$dir/lib$name.la"; then
16752 found_la="$dir/lib$name.la"
16753 fi
16754 elif test x$lib_type != xshared; then
16755 if test -f "$dir/lib$name.$libext"; then
16756 found_dir="$dir"
16757 found_a="$dir/lib$name.$libext"
16758 if test -f "$dir/lib$name.la"; then
16759 found_la="$dir/lib$name.la"
16760 fi
16761 fi
16762 fi
16763 ;;
16764 esac
16765 if test "X$found_dir" != "X"; then
16766 break
16767 fi
16768 done
16769 fi
16770 if test "X$found_dir" != "X"; then
16771 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16772 if test "X$found_so" != "X"; then
16773 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16774 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16775 else
16776 haveit=
16777 for x in $ltrpathdirs; do
16778 if test "X$x" = "X$found_dir"; then
16779 haveit=yes
16780 break
16781 fi
16782 done
16783 if test -z "$haveit"; then
16784 ltrpathdirs="$ltrpathdirs $found_dir"
16785 fi
16786 if test "$hardcode_direct" = yes; then
16787 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16788 else
16789 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16790 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16791 haveit=
16792 for x in $rpathdirs; do
16793 if test "X$x" = "X$found_dir"; then
16794 haveit=yes
16795 break
16796 fi
16797 done
16798 if test -z "$haveit"; then
16799 rpathdirs="$rpathdirs $found_dir"
16800 fi
16801 else
16802 haveit=
16803 for x in $LDFLAGS $LIBICONV; do
16804
16805 acl_save_prefix="$prefix"
16806 prefix="$acl_final_prefix"
16807 acl_save_exec_prefix="$exec_prefix"
16808 exec_prefix="$acl_final_exec_prefix"
16809 eval x=\"$x\"
16810 exec_prefix="$acl_save_exec_prefix"
16811 prefix="$acl_save_prefix"
16812
16813 if test "X$x" = "X-L$found_dir"; then
16814 haveit=yes
16815 break
16816 fi
16817 done
16818 if test -z "$haveit"; then
16819 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16820 fi
16821 if test "$hardcode_minus_L" != no; then
16822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16823 else
16824 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16825 fi
16826 fi
16827 fi
16828 fi
16829 else
16830 if test "X$found_a" != "X"; then
16831 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16832 else
16833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16834 fi
16835 fi
16836 additional_includedir=
16837 case "$found_dir" in
16838 */lib | */lib/)
16839 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16840 additional_includedir="$basedir/include"
16841 ;;
16842 esac
16843 if test "X$additional_includedir" != "X"; then
16844 if test "X$additional_includedir" != "X/usr/include"; then
16845 haveit=
16846 if test "X$additional_includedir" = "X/usr/local/include"; then
16847 if test -n "$GCC"; then
16848 case $host_os in
16849 linux*) haveit=yes;;
16850 esac
16851 fi
16852 fi
16853 if test -z "$haveit"; then
16854 for x in $CPPFLAGS $INCICONV; do
16855
16856 acl_save_prefix="$prefix"
16857 prefix="$acl_final_prefix"
16858 acl_save_exec_prefix="$exec_prefix"
16859 exec_prefix="$acl_final_exec_prefix"
16860 eval x=\"$x\"
16861 exec_prefix="$acl_save_exec_prefix"
16862 prefix="$acl_save_prefix"
16863
16864 if test "X$x" = "X-I$additional_includedir"; then
16865 haveit=yes
16866 break
16867 fi
16868 done
16869 if test -z "$haveit"; then
16870 if test -d "$additional_includedir"; then
16871 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16872 fi
16873 fi
16874 fi
16875 fi
16876 fi
16877 if test -n "$found_la"; then
16878 save_libdir="$libdir"
16879 case "$found_la" in
16880 */* | *\\*) . "$found_la" ;;
16881 *) . "./$found_la" ;;
16882 esac
16883 libdir="$save_libdir"
16884 for dep in $dependency_libs; do
16885 case "$dep" in
16886 -L*)
16887 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16888 if test "X$additional_libdir" != "X/usr/lib"; then
16889 haveit=
16890 if test "X$additional_libdir" = "X/usr/local/lib"; then
16891 if test -n "$GCC"; then
16892 case $host_os in
16893 linux*) haveit=yes;;
16894 esac
16895 fi
16896 fi
16897 if test -z "$haveit"; then
16898 haveit=
16899 for x in $LDFLAGS $LIBICONV; do
16900
16901 acl_save_prefix="$prefix"
16902 prefix="$acl_final_prefix"
16903 acl_save_exec_prefix="$exec_prefix"
16904 exec_prefix="$acl_final_exec_prefix"
16905 eval x=\"$x\"
16906 exec_prefix="$acl_save_exec_prefix"
16907 prefix="$acl_save_prefix"
16908
16909 if test "X$x" = "X-L$additional_libdir"; then
16910 haveit=yes
16911 break
16912 fi
16913 done
16914 if test -z "$haveit"; then
16915 if test -d "$additional_libdir"; then
16916 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16917 fi
16918 fi
16919 haveit=
16920 for x in $LDFLAGS $LTLIBICONV; do
16921
16922 acl_save_prefix="$prefix"
16923 prefix="$acl_final_prefix"
16924 acl_save_exec_prefix="$exec_prefix"
16925 exec_prefix="$acl_final_exec_prefix"
16926 eval x=\"$x\"
16927 exec_prefix="$acl_save_exec_prefix"
16928 prefix="$acl_save_prefix"
16929
16930 if test "X$x" = "X-L$additional_libdir"; then
16931 haveit=yes
16932 break
16933 fi
16934 done
16935 if test -z "$haveit"; then
16936 if test -d "$additional_libdir"; then
16937 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16938 fi
16939 fi
16940 fi
16941 fi
16942 ;;
16943 -R*)
16944 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16945 if test "$enable_rpath" != no; then
16946 haveit=
16947 for x in $rpathdirs; do
16948 if test "X$x" = "X$dir"; then
16949 haveit=yes
16950 break
16951 fi
16952 done
16953 if test -z "$haveit"; then
16954 rpathdirs="$rpathdirs $dir"
16955 fi
16956 haveit=
16957 for x in $ltrpathdirs; do
16958 if test "X$x" = "X$dir"; then
16959 haveit=yes
16960 break
16961 fi
16962 done
16963 if test -z "$haveit"; then
16964 ltrpathdirs="$ltrpathdirs $dir"
16965 fi
16966 fi
16967 ;;
16968 -l*)
16969 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16970 ;;
16971 *.la)
16972 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16973 ;;
16974 *)
16975 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16976 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16977 ;;
16978 esac
16979 done
16980 fi
16981 else
16982 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
16983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16985 else
16986 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
16987 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
16988 fi
16989 fi
16990 fi
16991 fi
16992 done
16993 done
16994 if test "X$rpathdirs" != "X"; then
16995 if test -n "$hardcode_libdir_separator"; then
16996 alldirs=
16997 for found_dir in $rpathdirs; do
16998 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16999 done
17000 acl_save_libdir="$libdir"
17001 libdir="$alldirs"
17002 eval flag=\"$hardcode_libdir_flag_spec\"
17003 libdir="$acl_save_libdir"
17004 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17005 else
17006 for found_dir in $rpathdirs; do
17007 acl_save_libdir="$libdir"
17008 libdir="$found_dir"
17009 eval flag=\"$hardcode_libdir_flag_spec\"
17010 libdir="$acl_save_libdir"
17011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17012 done
17013 fi
17014 fi
17015 if test "X$ltrpathdirs" != "X"; then
17016 for found_dir in $ltrpathdirs; do
17017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17018 done
17019 fi
17020
17021
17022
17023
17024
17025if test -f ../gettext/uninstalled-config.sh; then
17026 relative_builddir='$(top_builddir)/../gettext'
17027 . ../gettext/uninstalled-config.sh
17028else
17029 # The sister gettext directory doesn't exist and won't collect information on
17030 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17055$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17056if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17057 $as_echo_n "(cached) " >&6
17058else
17059 gt_save_LIBS="$LIBS"
17060 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062/* end confdefs.h. */
17063#include <CoreFoundation/CFPreferences.h>
17064int
17065main ()
17066{
17067CFPreferencesCopyAppValue(NULL, NULL)
17068 ;
17069 return 0;
17070}
17071_ACEOF
17072if ac_fn_c_try_link "$LINENO"; then :
17073 gt_cv_func_CFPreferencesCopyAppValue=yes
17074else
17075 gt_cv_func_CFPreferencesCopyAppValue=no
17076fi
17077rm -f core conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LIBS="$gt_save_LIBS"
17080fi
17081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17082$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17083 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17084
17085$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17086
17087 fi
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
17089$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
17090if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
17091 $as_echo_n "(cached) " >&6
17092else
17093 gt_save_LIBS="$LIBS"
17094 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096/* end confdefs.h. */
17097#include <CoreFoundation/CFLocale.h>
17098int
17099main ()
17100{
17101CFLocaleCopyPreferredLanguages();
17102 ;
17103 return 0;
17104}
17105_ACEOF
17106if ac_fn_c_try_link "$LINENO"; then :
17107 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
17108else
17109 gt_cv_func_CFLocaleCopyPreferredLanguages=no
17110fi
17111rm -f core conftest.err conftest.$ac_objext \
17112 conftest$ac_exeext conftest.$ac_ext
17113 LIBS="$gt_save_LIBS"
17114fi
17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
17116$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
17117 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17118
17119$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
17120
17121 fi
17122 INTL_MACOSX_LIBS=
17123 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
17124 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
17125 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
17126 fi
17127
17128
17129
17130
17131
17132
17133 LIBINTL=
17134 LTLIBINTL=
17135 POSUB=
17136
17137 case " $gt_needs " in
17138 *" need-formatstring-macros "*) gt_api_version=3 ;;
17139 *" need-ngettext "*) gt_api_version=2 ;;
17140 *) gt_api_version=1 ;;
17141 esac
17142 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17143 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17144
17145 if test "$USE_NLS" = "yes"; then
17146 gt_use_preinstalled_gnugettext=no
17147
17148
17149 if test $gt_api_version -ge 3; then
17150 gt_revision_test_code='
17151#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17152#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17153#endif
17154typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17155'
17156 else
17157 gt_revision_test_code=
17158 fi
17159 if test $gt_api_version -ge 2; then
17160 gt_expression_test_code=' + * ngettext ("", "", 0)'
17161 else
17162 gt_expression_test_code=
17163 fi
17164
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17166$as_echo_n "checking for GNU gettext in libc... " >&6; }
17167if eval \${$gt_func_gnugettext_libc+:} false; then :
17168 $as_echo_n "(cached) " >&6
17169else
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171/* end confdefs.h. */
17172
17173#include <libintl.h>
17174#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17175extern int _nl_msg_cat_cntr;
17176extern int *_nl_domain_bindings;
17177#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
17178#else
17179#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17180#endif
17181$gt_revision_test_code
17182
17183int
17184main ()
17185{
17186
17187bindtextdomain ("", "");
17188return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17189
17190 ;
17191 return 0;
17192}
17193_ACEOF
17194if ac_fn_c_try_link "$LINENO"; then :
17195 eval "$gt_func_gnugettext_libc=yes"
17196else
17197 eval "$gt_func_gnugettext_libc=no"
17198fi
17199rm -f core conftest.err conftest.$ac_objext \
17200 conftest$ac_exeext conftest.$ac_ext
17201fi
17202eval ac_res=\$$gt_func_gnugettext_libc
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17204$as_echo "$ac_res" >&6; }
17205
17206 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17207
17208
17209
17210
17211
17212 am_save_CPPFLAGS="$CPPFLAGS"
17213
17214 for element in $INCICONV; do
17215 haveit=
17216 for x in $CPPFLAGS; do
17217
17218 acl_save_prefix="$prefix"
17219 prefix="$acl_final_prefix"
17220 acl_save_exec_prefix="$exec_prefix"
17221 exec_prefix="$acl_final_exec_prefix"
17222 eval x=\"$x\"
17223 exec_prefix="$acl_save_exec_prefix"
17224 prefix="$acl_save_prefix"
17225
17226 if test "X$x" = "X$element"; then
17227 haveit=yes
17228 break
17229 fi
17230 done
17231 if test -z "$haveit"; then
17232 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17233 fi
17234 done
17235
17236
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17238$as_echo_n "checking for iconv... " >&6; }
17239if ${am_cv_func_iconv+:} false; then :
17240 $as_echo_n "(cached) " >&6
17241else
17242
17243 am_cv_func_iconv="no, consider installing GNU libiconv"
17244 am_cv_lib_iconv=no
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246/* end confdefs.h. */
17247
17248#include <stdlib.h>
17249#include <iconv.h>
17250
17251int
17252main ()
17253{
17254iconv_t cd = iconv_open("","");
17255 iconv(cd,NULL,NULL,NULL,NULL);
17256 iconv_close(cd);
17257 ;
17258 return 0;
17259}
17260_ACEOF
17261if ac_fn_c_try_link "$LINENO"; then :
17262 am_cv_func_iconv=yes
17263fi
17264rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 if test "$am_cv_func_iconv" != yes; then
17267 am_save_LIBS="$LIBS"
17268 LIBS="$LIBS $LIBICONV"
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h. */
17271
17272#include <stdlib.h>
17273#include <iconv.h>
17274
17275int
17276main ()
17277{
17278iconv_t cd = iconv_open("","");
17279 iconv(cd,NULL,NULL,NULL,NULL);
17280 iconv_close(cd);
17281 ;
17282 return 0;
17283}
17284_ACEOF
17285if ac_fn_c_try_link "$LINENO"; then :
17286 am_cv_lib_iconv=yes
17287 am_cv_func_iconv=yes
17288fi
17289rm -f core conftest.err conftest.$ac_objext \
17290 conftest$ac_exeext conftest.$ac_ext
17291 LIBS="$am_save_LIBS"
17292 fi
17293
17294fi
17295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17296$as_echo "$am_cv_func_iconv" >&6; }
17297 if test "$am_cv_func_iconv" = yes; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17299$as_echo_n "checking for working iconv... " >&6; }
17300if ${am_cv_func_iconv_works+:} false; then :
17301 $as_echo_n "(cached) " >&6
17302else
17303
17304 am_save_LIBS="$LIBS"
17305 if test $am_cv_lib_iconv = yes; then
17306 LIBS="$LIBS $LIBICONV"
17307 fi
17308 am_cv_func_iconv_works=no
17309 for ac_iconv_const in '' 'const'; do
17310 if test "$cross_compiling" = yes; then :
17311 case "$host_os" in
17312 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17313 *) am_cv_func_iconv_works="guessing yes" ;;
17314 esac
17315else
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317/* end confdefs.h. */
17318
17319#include <iconv.h>
17320#include <string.h>
17321
17322#ifndef ICONV_CONST
17323# define ICONV_CONST $ac_iconv_const
17324#endif
17325
17326int
17327main ()
17328{
17329int result = 0;
17330 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
17331 successful returns. This is even documented in
17332 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
17333 {
17334 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17335 if (cd_utf8_to_88591 != (iconv_t)(-1))
17336 {
17337 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
17338 char buf[10];
17339 ICONV_CONST char *inptr = input;
17340 size_t inbytesleft = strlen (input);
17341 char *outptr = buf;
17342 size_t outbytesleft = sizeof (buf);
17343 size_t res = iconv (cd_utf8_to_88591,
17344 &inptr, &inbytesleft,
17345 &outptr, &outbytesleft);
17346 if (res == 0)
17347 result |= 1;
17348 iconv_close (cd_utf8_to_88591);
17349 }
17350 }
17351 /* Test against Solaris 10 bug: Failures are not distinguishable from
17352 successful returns. */
17353 {
17354 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17355 if (cd_ascii_to_88591 != (iconv_t)(-1))
17356 {
17357 static ICONV_CONST char input[] = "\263";
17358 char buf[10];
17359 ICONV_CONST char *inptr = input;
17360 size_t inbytesleft = strlen (input);
17361 char *outptr = buf;
17362 size_t outbytesleft = sizeof (buf);
17363 size_t res = iconv (cd_ascii_to_88591,
17364 &inptr, &inbytesleft,
17365 &outptr, &outbytesleft);
17366 if (res == 0)
17367 result |= 2;
17368 iconv_close (cd_ascii_to_88591);
17369 }
17370 }
17371 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17372 {
17373 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17374 if (cd_88591_to_utf8 != (iconv_t)(-1))
17375 {
17376 static ICONV_CONST char input[] = "\304";
17377 static char buf[2] = { (char)0xDE, (char)0xAD };
17378 ICONV_CONST char *inptr = input;
17379 size_t inbytesleft = 1;
17380 char *outptr = buf;
17381 size_t outbytesleft = 1;
17382 size_t res = iconv (cd_88591_to_utf8,
17383 &inptr, &inbytesleft,
17384 &outptr, &outbytesleft);
17385 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17386 result |= 4;
17387 iconv_close (cd_88591_to_utf8);
17388 }
17389 }
17390#if 0 /* This bug could be worked around by the caller. */
17391 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17392 {
17393 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17394 if (cd_88591_to_utf8 != (iconv_t)(-1))
17395 {
17396 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17397 char buf[50];
17398 ICONV_CONST char *inptr = input;
17399 size_t inbytesleft = strlen (input);
17400 char *outptr = buf;
17401 size_t outbytesleft = sizeof (buf);
17402 size_t res = iconv (cd_88591_to_utf8,
17403 &inptr, &inbytesleft,
17404 &outptr, &outbytesleft);
17405 if ((int)res > 0)
17406 result |= 8;
17407 iconv_close (cd_88591_to_utf8);
17408 }
17409 }
17410#endif
17411 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17412 provided. */
17413 {
17414 /* Try standardized names. */
17415 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
17416 /* Try IRIX, OSF/1 names. */
17417 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
17418 /* Try AIX names. */
17419 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
17420 /* Try HP-UX names. */
17421 iconv_t cd4 = iconv_open ("utf8", "eucJP");
17422 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
17423 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
17424 result |= 16;
17425 if (cd1 != (iconv_t)(-1))
17426 iconv_close (cd1);
17427 if (cd2 != (iconv_t)(-1))
17428 iconv_close (cd2);
17429 if (cd3 != (iconv_t)(-1))
17430 iconv_close (cd3);
17431 if (cd4 != (iconv_t)(-1))
17432 iconv_close (cd4);
17433 }
17434 return result;
17435
17436 ;
17437 return 0;
17438}
17439_ACEOF
17440if ac_fn_c_try_run "$LINENO"; then :
17441 am_cv_func_iconv_works=yes
17442fi
17443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17444 conftest.$ac_objext conftest.beam conftest.$ac_ext
17445fi
17446
17447 test "$am_cv_func_iconv_works" = no || break
17448 done
17449 LIBS="$am_save_LIBS"
17450
17451fi
17452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17453$as_echo "$am_cv_func_iconv_works" >&6; }
17454 case "$am_cv_func_iconv_works" in
17455 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17456 *) am_func_iconv=yes ;;
17457 esac
17458 else
17459 am_func_iconv=no am_cv_lib_iconv=no
17460 fi
17461 if test "$am_func_iconv" = yes; then
17462
17463$as_echo "#define HAVE_ICONV 1" >>confdefs.h
17464
17465 fi
17466 if test "$am_cv_lib_iconv" = yes; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17468$as_echo_n "checking how to link with libiconv... " >&6; }
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17470$as_echo "$LIBICONV" >&6; }
17471 else
17472 CPPFLAGS="$am_save_CPPFLAGS"
17473 LIBICONV=
17474 LTLIBICONV=
17475 fi
17476
17477
17478
17479
17480
17481
17482 use_additional=yes
17483
17484 acl_save_prefix="$prefix"
17485 prefix="$acl_final_prefix"
17486 acl_save_exec_prefix="$exec_prefix"
17487 exec_prefix="$acl_final_exec_prefix"
17488
17489 eval additional_includedir=\"$includedir\"
17490 eval additional_libdir=\"$libdir\"
17491
17492 exec_prefix="$acl_save_exec_prefix"
17493 prefix="$acl_save_prefix"
17494
17495
17496# Check whether --with-libintl-prefix was given.
17497if test "${with_libintl_prefix+set}" = set; then :
17498 withval=$with_libintl_prefix;
17499 if test "X$withval" = "Xno"; then
17500 use_additional=no
17501 else
17502 if test "X$withval" = "X"; then
17503
17504 acl_save_prefix="$prefix"
17505 prefix="$acl_final_prefix"
17506 acl_save_exec_prefix="$exec_prefix"
17507 exec_prefix="$acl_final_exec_prefix"
17508
17509 eval additional_includedir=\"$includedir\"
17510 eval additional_libdir=\"$libdir\"
17511
17512 exec_prefix="$acl_save_exec_prefix"
17513 prefix="$acl_save_prefix"
17514
17515 else
17516 additional_includedir="$withval/include"
17517 additional_libdir="$withval/lib"
17518 fi
17519 fi
17520
17521fi
17522
17523
17524# Check whether --with-libintl-type was given.
17525if test "${with_libintl_type+set}" = set; then :
17526 withval=$with_libintl_type; with_libintl_type=$withval
17527else
17528 with_libintl_type=auto
17529fi
17530
17531 lib_type=`eval echo \$with_libintl_type`
17532
17533 LIBINTL=
17534 LTLIBINTL=
17535 INCINTL=
17536 rpathdirs=
17537 ltrpathdirs=
17538 names_already_handled=
17539 names_next_round='intl '
17540 while test -n "$names_next_round"; do
17541 names_this_round="$names_next_round"
17542 names_next_round=
17543 for name in $names_this_round; do
17544 already_handled=
17545 for n in $names_already_handled; do
17546 if test "$n" = "$name"; then
17547 already_handled=yes
17548 break
17549 fi
17550 done
17551 if test -z "$already_handled"; then
17552 names_already_handled="$names_already_handled $name"
17553 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17554 eval value=\"\$HAVE_LIB$uppername\"
17555 if test -n "$value"; then
17556 if test "$value" = yes; then
17557 eval value=\"\$LIB$uppername\"
17558 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17559 eval value=\"\$LTLIB$uppername\"
17560 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17561 else
17562 :
17563 fi
17564 else
17565 found_dir=
17566 found_la=
17567 found_so=
17568 found_a=
17569 if test $use_additional = yes; then
17570 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17571 found_dir="$additional_libdir"
17572 found_so="$additional_libdir/lib$name.$shlibext"
17573 if test -f "$additional_libdir/lib$name.la"; then
17574 found_la="$additional_libdir/lib$name.la"
17575 fi
17576 elif test x$lib_type != xshared; then
17577 if test -f "$additional_libdir/lib$name.$libext"; then
17578 found_dir="$additional_libdir"
17579 found_a="$additional_libdir/lib$name.$libext"
17580 if test -f "$additional_libdir/lib$name.la"; then
17581 found_la="$additional_libdir/lib$name.la"
17582 fi
17583 fi
17584 fi
17585 fi
17586 if test "X$found_dir" = "X"; then
17587 for x in $LDFLAGS $LTLIBINTL; do
17588
17589 acl_save_prefix="$prefix"
17590 prefix="$acl_final_prefix"
17591 acl_save_exec_prefix="$exec_prefix"
17592 exec_prefix="$acl_final_exec_prefix"
17593 eval x=\"$x\"
17594 exec_prefix="$acl_save_exec_prefix"
17595 prefix="$acl_save_prefix"
17596
17597 case "$x" in
17598 -L*)
17599 dir=`echo "X$x" | sed -e 's/^X-L//'`
17600 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
17601 found_dir="$dir"
17602 found_so="$dir/lib$name.$shlibext"
17603 if test -f "$dir/lib$name.la"; then
17604 found_la="$dir/lib$name.la"
17605 fi
17606 elif test x$lib_type != xshared; then
17607 if test -f "$dir/lib$name.$libext"; then
17608 found_dir="$dir"
17609 found_a="$dir/lib$name.$libext"
17610 if test -f "$dir/lib$name.la"; then
17611 found_la="$dir/lib$name.la"
17612 fi
17613 fi
17614 fi
17615 ;;
17616 esac
17617 if test "X$found_dir" != "X"; then
17618 break
17619 fi
17620 done
17621 fi
17622 if test "X$found_dir" != "X"; then
17623 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17624 if test "X$found_so" != "X"; then
17625 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17626 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17627 else
17628 haveit=
17629 for x in $ltrpathdirs; do
17630 if test "X$x" = "X$found_dir"; then
17631 haveit=yes
17632 break
17633 fi
17634 done
17635 if test -z "$haveit"; then
17636 ltrpathdirs="$ltrpathdirs $found_dir"
17637 fi
17638 if test "$hardcode_direct" = yes; then
17639 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17640 else
17641 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17642 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17643 haveit=
17644 for x in $rpathdirs; do
17645 if test "X$x" = "X$found_dir"; then
17646 haveit=yes
17647 break
17648 fi
17649 done
17650 if test -z "$haveit"; then
17651 rpathdirs="$rpathdirs $found_dir"
17652 fi
17653 else
17654 haveit=
17655 for x in $LDFLAGS $LIBINTL; do
17656
17657 acl_save_prefix="$prefix"
17658 prefix="$acl_final_prefix"
17659 acl_save_exec_prefix="$exec_prefix"
17660 exec_prefix="$acl_final_exec_prefix"
17661 eval x=\"$x\"
17662 exec_prefix="$acl_save_exec_prefix"
17663 prefix="$acl_save_prefix"
17664
17665 if test "X$x" = "X-L$found_dir"; then
17666 haveit=yes
17667 break
17668 fi
17669 done
17670 if test -z "$haveit"; then
17671 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17672 fi
17673 if test "$hardcode_minus_L" != no; then
17674 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17675 else
17676 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17677 fi
17678 fi
17679 fi
17680 fi
17681 else
17682 if test "X$found_a" != "X"; then
17683 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17684 else
17685 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17686 fi
17687 fi
17688 additional_includedir=
17689 case "$found_dir" in
17690 */lib | */lib/)
17691 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17692 additional_includedir="$basedir/include"
17693 ;;
17694 esac
17695 if test "X$additional_includedir" != "X"; then
17696 if test "X$additional_includedir" != "X/usr/include"; then
17697 haveit=
17698 if test "X$additional_includedir" = "X/usr/local/include"; then
17699 if test -n "$GCC"; then
17700 case $host_os in
17701 linux*) haveit=yes;;
17702 esac
17703 fi
17704 fi
17705 if test -z "$haveit"; then
17706 for x in $CPPFLAGS $INCINTL; do
17707
17708 acl_save_prefix="$prefix"
17709 prefix="$acl_final_prefix"
17710 acl_save_exec_prefix="$exec_prefix"
17711 exec_prefix="$acl_final_exec_prefix"
17712 eval x=\"$x\"
17713 exec_prefix="$acl_save_exec_prefix"
17714 prefix="$acl_save_prefix"
17715
17716 if test "X$x" = "X-I$additional_includedir"; then
17717 haveit=yes
17718 break
17719 fi
17720 done
17721 if test -z "$haveit"; then
17722 if test -d "$additional_includedir"; then
17723 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17724 fi
17725 fi
17726 fi
17727 fi
17728 fi
17729 if test -n "$found_la"; then
17730 save_libdir="$libdir"
17731 case "$found_la" in
17732 */* | *\\*) . "$found_la" ;;
17733 *) . "./$found_la" ;;
17734 esac
17735 libdir="$save_libdir"
17736 for dep in $dependency_libs; do
17737 case "$dep" in
17738 -L*)
17739 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17740 if test "X$additional_libdir" != "X/usr/lib"; then
17741 haveit=
17742 if test "X$additional_libdir" = "X/usr/local/lib"; then
17743 if test -n "$GCC"; then
17744 case $host_os in
17745 linux*) haveit=yes;;
17746 esac
17747 fi
17748 fi
17749 if test -z "$haveit"; then
17750 haveit=
17751 for x in $LDFLAGS $LIBINTL; do
17752
17753 acl_save_prefix="$prefix"
17754 prefix="$acl_final_prefix"
17755 acl_save_exec_prefix="$exec_prefix"
17756 exec_prefix="$acl_final_exec_prefix"
17757 eval x=\"$x\"
17758 exec_prefix="$acl_save_exec_prefix"
17759 prefix="$acl_save_prefix"
17760
17761 if test "X$x" = "X-L$additional_libdir"; then
17762 haveit=yes
17763 break
17764 fi
17765 done
17766 if test -z "$haveit"; then
17767 if test -d "$additional_libdir"; then
17768 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17769 fi
17770 fi
17771 haveit=
17772 for x in $LDFLAGS $LTLIBINTL; do
17773
17774 acl_save_prefix="$prefix"
17775 prefix="$acl_final_prefix"
17776 acl_save_exec_prefix="$exec_prefix"
17777 exec_prefix="$acl_final_exec_prefix"
17778 eval x=\"$x\"
17779 exec_prefix="$acl_save_exec_prefix"
17780 prefix="$acl_save_prefix"
17781
17782 if test "X$x" = "X-L$additional_libdir"; then
17783 haveit=yes
17784 break
17785 fi
17786 done
17787 if test -z "$haveit"; then
17788 if test -d "$additional_libdir"; then
17789 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17790 fi
17791 fi
17792 fi
17793 fi
17794 ;;
17795 -R*)
17796 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17797 if test "$enable_rpath" != no; then
17798 haveit=
17799 for x in $rpathdirs; do
17800 if test "X$x" = "X$dir"; then
17801 haveit=yes
17802 break
17803 fi
17804 done
17805 if test -z "$haveit"; then
17806 rpathdirs="$rpathdirs $dir"
17807 fi
17808 haveit=
17809 for x in $ltrpathdirs; do
17810 if test "X$x" = "X$dir"; then
17811 haveit=yes
17812 break
17813 fi
17814 done
17815 if test -z "$haveit"; then
17816 ltrpathdirs="$ltrpathdirs $dir"
17817 fi
17818 fi
17819 ;;
17820 -l*)
17821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17822 ;;
17823 *.la)
17824 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17825 ;;
17826 *)
17827 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17828 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17829 ;;
17830 esac
17831 done
17832 fi
17833 else
17834 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
17835 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17836 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17837 else
17838 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
17839 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
17840 fi
17841 fi
17842 fi
17843 fi
17844 done
17845 done
17846 if test "X$rpathdirs" != "X"; then
17847 if test -n "$hardcode_libdir_separator"; then
17848 alldirs=
17849 for found_dir in $rpathdirs; do
17850 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17851 done
17852 acl_save_libdir="$libdir"
17853 libdir="$alldirs"
17854 eval flag=\"$hardcode_libdir_flag_spec\"
17855 libdir="$acl_save_libdir"
17856 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17857 else
17858 for found_dir in $rpathdirs; do
17859 acl_save_libdir="$libdir"
17860 libdir="$found_dir"
17861 eval flag=\"$hardcode_libdir_flag_spec\"
17862 libdir="$acl_save_libdir"
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17864 done
17865 fi
17866 fi
17867 if test "X$ltrpathdirs" != "X"; then
17868 for found_dir in $ltrpathdirs; do
17869 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17870 done
17871 fi
17872
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17874$as_echo_n "checking for GNU gettext in libintl... " >&6; }
17875if eval \${$gt_func_gnugettext_libintl+:} false; then :
17876 $as_echo_n "(cached) " >&6
17877else
17878 gt_save_CPPFLAGS="$CPPFLAGS"
17879 CPPFLAGS="$CPPFLAGS $INCINTL"
17880 gt_save_LIBS="$LIBS"
17881 LIBS="$LIBS $LIBINTL"
17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17883/* end confdefs.h. */
17884
17885#include <libintl.h>
17886#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17887extern int _nl_msg_cat_cntr;
17888extern
17889#ifdef __cplusplus
17890"C"
17891#endif
17892const char *_nl_expand_alias (const char *);
17893#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17894#else
17895#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17896#endif
17897$gt_revision_test_code
17898
17899int
17900main ()
17901{
17902
17903bindtextdomain ("", "");
17904return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17905
17906 ;
17907 return 0;
17908}
17909_ACEOF
17910if ac_fn_c_try_link "$LINENO"; then :
17911 eval "$gt_func_gnugettext_libintl=yes"
17912else
17913 eval "$gt_func_gnugettext_libintl=no"
17914fi
17915rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17918 LIBS="$LIBS $LIBICONV"
17919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920/* end confdefs.h. */
17921
17922#include <libintl.h>
17923#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17924extern int _nl_msg_cat_cntr;
17925extern
17926#ifdef __cplusplus
17927"C"
17928#endif
17929const char *_nl_expand_alias (const char *);
17930#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
17931#else
17932#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
17933#endif
17934$gt_revision_test_code
17935
17936int
17937main ()
17938{
17939
17940bindtextdomain ("", "");
17941return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
17942
17943 ;
17944 return 0;
17945}
17946_ACEOF
17947if ac_fn_c_try_link "$LINENO"; then :
17948 LIBINTL="$LIBINTL $LIBICONV"
17949 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17950 eval "$gt_func_gnugettext_libintl=yes"
17951
17952fi
17953rm -f core conftest.err conftest.$ac_objext \
17954 conftest$ac_exeext conftest.$ac_ext
17955 fi
17956 CPPFLAGS="$gt_save_CPPFLAGS"
17957 LIBS="$gt_save_LIBS"
17958fi
17959eval ac_res=\$$gt_func_gnugettext_libintl
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17961$as_echo "$ac_res" >&6; }
17962 fi
17963
17964 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17965 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17966 && test "$PACKAGE" != gettext-runtime \
17967 && test "$PACKAGE" != gettext-tools; }; then
17968 gt_use_preinstalled_gnugettext=yes
17969 else
17970 LIBINTL=
17971 LTLIBINTL=
17972 INCINTL=
17973 fi
17974
17975
17976
17977 if test -n "$INTL_MACOSX_LIBS"; then
17978 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17979 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17980 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17981 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17982 fi
17983 fi
17984
17985 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17986 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17987
17988$as_echo "#define ENABLE_NLS 1" >>confdefs.h
17989
17990 else
17991 USE_NLS=no
17992 fi
17993 fi
17994
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17996$as_echo_n "checking whether to use NLS... " >&6; }
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17998$as_echo "$USE_NLS" >&6; }
17999 if test "$USE_NLS" = "yes"; then
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18001$as_echo_n "checking where the gettext function comes from... " >&6; }
18002 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18003 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18004 gt_source="external libintl"
18005 else
18006 gt_source="libc"
18007 fi
18008 else
18009 gt_source="included intl directory"
18010 fi
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18012$as_echo "$gt_source" >&6; }
18013 fi
18014
18015 if test "$USE_NLS" = "yes"; then
18016
18017 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18018 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18020$as_echo_n "checking how to link with libintl... " >&6; }
18021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18022$as_echo "$LIBINTL" >&6; }
18023
18024 for element in $INCINTL; do
18025 haveit=
18026 for x in $CPPFLAGS; do
18027
18028 acl_save_prefix="$prefix"
18029 prefix="$acl_final_prefix"
18030 acl_save_exec_prefix="$exec_prefix"
18031 exec_prefix="$acl_final_exec_prefix"
18032 eval x=\"$x\"
18033 exec_prefix="$acl_save_exec_prefix"
18034 prefix="$acl_save_prefix"
18035
18036 if test "X$x" = "X$element"; then
18037 haveit=yes
18038 break
18039 fi
18040 done
18041 if test -z "$haveit"; then
18042 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18043 fi
18044 done
18045
18046 fi
18047
18048
18049$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18050
18051
18052$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18053
18054 fi
18055
18056 POSUB=po
18057 fi
18058
18059
18060
18061 INTLLIBS="$LIBINTL"
18062
18063
18064
18065
18066
18067
18068fi
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18081$as_echo_n "checking whether NLS is requested... " >&6; }
18082if test x"$USE_NLS" != xyes; then
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084$as_echo "no" >&6; }
18085else
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18087$as_echo "yes" >&6; }
18088
18089$as_echo "#define ENABLE_NLS 1" >>confdefs.h
18090
18091
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
18093$as_echo_n "checking for catalogs to be installed... " >&6; }
18094 # Look for .po and .gmo files in the source directory.
18095 CATALOGS=
18096 XLINGUAS=
18097 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
18098 # If there aren't any .gmo files the shell will give us the
18099 # literal string "../path/to/srcdir/po/*.gmo" which has to be
18100 # weeded out.
18101 case "$cat" in *\**)
18102 continue;;
18103 esac
18104 # The quadruple backslash is collapsed to a double backslash
18105 # by the backticks, then collapsed again by the double quotes,
18106 # leaving us with one backslash in the sed expression (right
18107 # before the dot that mustn't act as a wildcard).
18108 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
18109 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
18110 # The user is allowed to set LINGUAS to a list of languages to
18111 # install catalogs for. If it's empty that means "all of them."
18112 if test "x$LINGUAS" = x; then
18113 CATALOGS="$CATALOGS $cat"
18114 XLINGUAS="$XLINGUAS $lang"
18115 else
18116 case "$LINGUAS" in *$lang*)
18117 CATALOGS="$CATALOGS $cat"
18118 XLINGUAS="$XLINGUAS $lang"
18119 ;;
18120 esac
18121 fi
18122 done
18123 LINGUAS="$XLINGUAS"
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
18125$as_echo "$LINGUAS" >&6; }
18126
18127
18128 DATADIRNAME=share
18129
18130 INSTOBJEXT=.mo
18131
18132 GENCAT=gencat
18133
18134 CATOBJEXT=.gmo
18135
18136fi
18137
18138
18139
18140
18141# Prepare PATH_SEPARATOR.
18142# The user is always right.
18143if test "${PATH_SEPARATOR+set}" != set; then
18144 echo "#! /bin/sh" >conf$$.sh
18145 echo "exit 0" >>conf$$.sh
18146 chmod +x conf$$.sh
18147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18148 PATH_SEPARATOR=';'
18149 else
18150 PATH_SEPARATOR=:
18151 fi
18152 rm -f conf$$.sh
18153fi
18154
18155# Find out how to test for executable files. Don't use a zero-byte file,
18156# as systems may use methods other than mode bits to determine executability.
18157cat >conf$$.file <<_ASEOF
18158#! /bin/sh
18159exit 0
18160_ASEOF
18161chmod +x conf$$.file
18162if test -x conf$$.file >/dev/null 2>&1; then
18163 ac_executable_p="test -x"
18164else
18165 ac_executable_p="test -f"
18166fi
18167rm -f conf$$.file
18168
18169# Extract the first word of "msgfmt", so it can be a program name with args.
18170set dummy msgfmt; ac_word=$2
18171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18172$as_echo_n "checking for $ac_word... " >&6; }
18173if ${ac_cv_path_MSGFMT+:} false; then :
18174 $as_echo_n "(cached) " >&6
18175else
18176 case "$MSGFMT" in
18177 [\\/]* | ?:[\\/]*)
18178 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18179 ;;
18180 *)
18181 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18182 for ac_dir in $PATH; do
18183 IFS="$ac_save_IFS"
18184 test -z "$ac_dir" && ac_dir=.
18185 for ac_exec_ext in '' $ac_executable_extensions; do
18186 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18187 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
18188 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18189 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
18190 break 2
18191 fi
18192 fi
18193 done
18194 done
18195 IFS="$ac_save_IFS"
18196 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
18197 ;;
18198esac
18199fi
18200MSGFMT="$ac_cv_path_MSGFMT"
18201if test "$MSGFMT" != ":"; then
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18203$as_echo "$MSGFMT" >&6; }
18204else
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18206$as_echo "no" >&6; }
18207fi
18208
18209 # Extract the first word of "gmsgfmt", so it can be a program name with args.
18210set dummy gmsgfmt; ac_word=$2
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18212$as_echo_n "checking for $ac_word... " >&6; }
18213if ${ac_cv_path_GMSGFMT+:} false; then :
18214 $as_echo_n "(cached) " >&6
18215else
18216 case $GMSGFMT in
18217 [\\/]* | ?:[\\/]*)
18218 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
18219 ;;
18220 *)
18221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18222for as_dir in $PATH
18223do
18224 IFS=$as_save_IFS
18225 test -z "$as_dir" && as_dir=.
18226 for ac_exec_ext in '' $ac_executable_extensions; do
18227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18228 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
18229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18230 break 2
18231 fi
18232done
18233 done
18234IFS=$as_save_IFS
18235
18236 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
18237 ;;
18238esac
18239fi
18240GMSGFMT=$ac_cv_path_GMSGFMT
18241if test -n "$GMSGFMT"; then
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
18243$as_echo "$GMSGFMT" >&6; }
18244else
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18246$as_echo "no" >&6; }
18247fi
18248
18249
18250
18251
18252# Prepare PATH_SEPARATOR.
18253# The user is always right.
18254if test "${PATH_SEPARATOR+set}" != set; then
18255 echo "#! /bin/sh" >conf$$.sh
18256 echo "exit 0" >>conf$$.sh
18257 chmod +x conf$$.sh
18258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18259 PATH_SEPARATOR=';'
18260 else
18261 PATH_SEPARATOR=:
18262 fi
18263 rm -f conf$$.sh
18264fi
18265
18266# Find out how to test for executable files. Don't use a zero-byte file,
18267# as systems may use methods other than mode bits to determine executability.
18268cat >conf$$.file <<_ASEOF
18269#! /bin/sh
18270exit 0
18271_ASEOF
18272chmod +x conf$$.file
18273if test -x conf$$.file >/dev/null 2>&1; then
18274 ac_executable_p="test -x"
18275else
18276 ac_executable_p="test -f"
18277fi
18278rm -f conf$$.file
18279
18280# Extract the first word of "xgettext", so it can be a program name with args.
18281set dummy xgettext; ac_word=$2
18282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18283$as_echo_n "checking for $ac_word... " >&6; }
18284if ${ac_cv_path_XGETTEXT+:} false; then :
18285 $as_echo_n "(cached) " >&6
18286else
18287 case "$XGETTEXT" in
18288 [\\/]* | ?:[\\/]*)
18289 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
18290 ;;
18291 *)
18292 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18293 for ac_dir in $PATH; do
18294 IFS="$ac_save_IFS"
18295 test -z "$ac_dir" && ac_dir=.
18296 for ac_exec_ext in '' $ac_executable_extensions; do
18297 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18298 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18299 (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
18300 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
18301 break 2
18302 fi
18303 fi
18304 done
18305 done
18306 IFS="$ac_save_IFS"
18307 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
18308 ;;
18309esac
18310fi
18311XGETTEXT="$ac_cv_path_XGETTEXT"
18312if test "$XGETTEXT" != ":"; then
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
18314$as_echo "$XGETTEXT" >&6; }
18315else
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18317$as_echo "no" >&6; }
18318fi
18319
18320 rm -f messages.po
18321
18322
18323# Prepare PATH_SEPARATOR.
18324# The user is always right.
18325if test "${PATH_SEPARATOR+set}" != set; then
18326 echo "#! /bin/sh" >conf$$.sh
18327 echo "exit 0" >>conf$$.sh
18328 chmod +x conf$$.sh
18329 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18330 PATH_SEPARATOR=';'
18331 else
18332 PATH_SEPARATOR=:
18333 fi
18334 rm -f conf$$.sh
18335fi
18336
18337# Find out how to test for executable files. Don't use a zero-byte file,
18338# as systems may use methods other than mode bits to determine executability.
18339cat >conf$$.file <<_ASEOF
18340#! /bin/sh
18341exit 0
18342_ASEOF
18343chmod +x conf$$.file
18344if test -x conf$$.file >/dev/null 2>&1; then
18345 ac_executable_p="test -x"
18346else
18347 ac_executable_p="test -f"
18348fi
18349rm -f conf$$.file
18350
18351# Extract the first word of "msgmerge", so it can be a program name with args.
18352set dummy msgmerge; ac_word=$2
18353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18354$as_echo_n "checking for $ac_word... " >&6; }
18355if ${ac_cv_path_MSGMERGE+:} false; then :
18356 $as_echo_n "(cached) " >&6
18357else
18358 case "$MSGMERGE" in
18359 [\\/]* | ?:[\\/]*)
18360 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
18361 ;;
18362 *)
18363 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
18364 for ac_dir in $PATH; do
18365 IFS="$ac_save_IFS"
18366 test -z "$ac_dir" && ac_dir=.
18367 for ac_exec_ext in '' $ac_executable_extensions; do
18368 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
18369 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
18370 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
18371 break 2
18372 fi
18373 fi
18374 done
18375 done
18376 IFS="$ac_save_IFS"
18377 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
18378 ;;
18379esac
18380fi
18381MSGMERGE="$ac_cv_path_MSGMERGE"
18382if test "$MSGMERGE" != ":"; then
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
18384$as_echo "$MSGMERGE" >&6; }
18385else
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387$as_echo "no" >&6; }
18388fi
18389
18390
18391 if test "$GMSGFMT" != ":"; then
18392 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
18393 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
18394 : ;
18395 else
18396 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
18398$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
18399 GMSGFMT=":"
18400 fi
18401 fi
18402
18403 if test "$XGETTEXT" != ":"; then
18404 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
18405 (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
18406 : ;
18407 else
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
18409$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
18410 XGETTEXT=":"
18411 fi
18412 rm -f messages.po
18413 fi
18414
18415 ac_config_commands="$ac_config_commands default-2"
18416
18417
18418
18419
18420
18421for ac_prog in 'bison -y' byacc
18422do
18423 # Extract the first word of "$ac_prog", so it can be a program name with args.
18424set dummy $ac_prog; ac_word=$2
18425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18426$as_echo_n "checking for $ac_word... " >&6; }
18427if ${ac_cv_prog_YACC+:} false; then :
18428 $as_echo_n "(cached) " >&6
18429else
18430 if test -n "$YACC"; then
18431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
18432else
18433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18434for as_dir in $PATH
18435do
18436 IFS=$as_save_IFS
18437 test -z "$as_dir" && as_dir=.
18438 for ac_exec_ext in '' $ac_executable_extensions; do
18439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18440 ac_cv_prog_YACC="$ac_prog"
18441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18442 break 2
18443 fi
18444done
18445 done
18446IFS=$as_save_IFS
18447
18448fi
18449fi
18450YACC=$ac_cv_prog_YACC
18451if test -n "$YACC"; then
18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
18453$as_echo "$YACC" >&6; }
18454else
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18456$as_echo "no" >&6; }
18457fi
18458
18459
18460 test -n "$YACC" && break
18461done
18462test -n "$YACC" || YACC="yacc"
18463
18464for ac_prog in flex lex
18465do
18466 # Extract the first word of "$ac_prog", so it can be a program name with args.
18467set dummy $ac_prog; ac_word=$2
18468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18469$as_echo_n "checking for $ac_word... " >&6; }
18470if ${ac_cv_prog_LEX+:} false; then :
18471 $as_echo_n "(cached) " >&6
18472else
18473 if test -n "$LEX"; then
18474 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18475else
18476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18477for as_dir in $PATH
18478do
18479 IFS=$as_save_IFS
18480 test -z "$as_dir" && as_dir=.
18481 for ac_exec_ext in '' $ac_executable_extensions; do
18482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18483 ac_cv_prog_LEX="$ac_prog"
18484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18485 break 2
18486 fi
18487done
18488 done
18489IFS=$as_save_IFS
18490
18491fi
18492fi
18493LEX=$ac_cv_prog_LEX
18494if test -n "$LEX"; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18496$as_echo "$LEX" >&6; }
18497else
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499$as_echo "no" >&6; }
18500fi
18501
18502
18503 test -n "$LEX" && break
18504done
18505test -n "$LEX" || LEX=":"
18506
18507case "$LEX" in
18508 :|*"missing "*) ;;
18509 *) cat >conftest.l <<_ACEOF
18510%%
18511a { ECHO; }
18512b { REJECT; }
18513c { yymore (); }
18514d { yyless (1); }
18515e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18516 yyless ((input () != 0)); }
18517f { unput (yytext[0]); }
18518. { BEGIN INITIAL; }
18519%%
18520#ifdef YYTEXT_POINTER
18521extern char *yytext;
18522#endif
18523int
18524main (void)
18525{
18526 return ! yylex () + ! yywrap ();
18527}
18528_ACEOF
18529{ { ac_try="$LEX conftest.l"
18530case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18533esac
18534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18535$as_echo "$ac_try_echo"; } >&5
18536 (eval "$LEX conftest.l") 2>&5
18537 ac_status=$?
18538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18539 test $ac_status = 0; }
18540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
18541$as_echo_n "checking lex output file root... " >&6; }
18542if ${ac_cv_prog_lex_root+:} false; then :
18543 $as_echo_n "(cached) " >&6
18544else
18545
18546if test -f lex.yy.c; then
18547 ac_cv_prog_lex_root=lex.yy
81ecdfbb
RW
18548elif test -f lexyy.c; then
18549 ac_cv_prog_lex_root=lexyy
18550else
d0ac1c44 18551 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
42ecbf5e 18552fi
42ecbf5e 18553fi
81ecdfbb
RW
18554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18555$as_echo "$ac_cv_prog_lex_root" >&6; }
18556LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
20e95c23 18557
81ecdfbb
RW
18558if test -z "${LEXLIB+set}"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
18560$as_echo_n "checking lex library... " >&6; }
d0ac1c44 18561if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 18562 $as_echo_n "(cached) " >&6
252b5132 18563else
20e95c23 18564
81ecdfbb
RW
18565 ac_save_LIBS=$LIBS
18566 ac_cv_lib_lex='none needed'
18567 for ac_lib in '' -lfl -ll; do
18568 LIBS="$ac_lib $ac_save_LIBS"
18569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18570/* end confdefs.h. */
18571`cat $LEX_OUTPUT_ROOT.c`
18572_ACEOF
18573if ac_fn_c_try_link "$LINENO"; then :
18574 ac_cv_lib_lex=$ac_lib
20e95c23 18575fi
81ecdfbb
RW
18576rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578 test "$ac_cv_lib_lex" != 'none needed' && break
18579 done
18580 LIBS=$ac_save_LIBS
20e95c23
DJ
18581
18582fi
81ecdfbb
RW
18583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18584$as_echo "$ac_cv_lib_lex" >&6; }
18585 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb 18586fi
20e95c23 18587
20e95c23 18588
81ecdfbb
RW
18589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18590$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 18591if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 18592 $as_echo_n "(cached) " >&6
d7040cdb
SE
18593else
18594 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 18595# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
18596# not all implementations provide the %pointer and %array declarations.
18597ac_cv_prog_lex_yytext_pointer=no
d7040cdb 18598ac_save_LIBS=$LIBS
81ecdfbb
RW
18599LIBS="$LEXLIB $ac_save_LIBS"
18600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601/* end confdefs.h. */
d0ac1c44
SM
18602
18603 #define YYTEXT_POINTER 1
d7040cdb 18604`cat $LEX_OUTPUT_ROOT.c`
20e95c23 18605_ACEOF
81ecdfbb 18606if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 18607 ac_cv_prog_lex_yytext_pointer=yes
d7040cdb 18608fi
81ecdfbb
RW
18609rm -f core conftest.err conftest.$ac_objext \
18610 conftest$ac_exeext conftest.$ac_ext
d7040cdb 18611LIBS=$ac_save_LIBS
d7040cdb
SE
18612
18613fi
81ecdfbb
RW
18614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18615$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb
SE
18616if test $ac_cv_prog_lex_yytext_pointer = yes; then
18617
81ecdfbb 18618$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
d7040cdb
SE
18619
18620fi
81ecdfbb 18621rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
18622 ;;
18623esac
d7040cdb
SE
18624if test "$LEX" = :; then
18625 LEX=${am_missing_run}flex
18626fi
18627
81ecdfbb
RW
18628
18629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18630$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18631 # Check whether --enable-maintainer-mode was given.
18632if test "${enable_maintainer_mode+set}" = set; then :
18633 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
252b5132 18634else
d7040cdb 18635 USE_MAINTAINER_MODE=no
81ecdfbb 18636fi
d7040cdb 18637
81ecdfbb
RW
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18639$as_echo "$USE_MAINTAINER_MODE" >&6; }
18640 if test $USE_MAINTAINER_MODE = yes; then
d7040cdb
SE
18641 MAINTAINER_MODE_TRUE=
18642 MAINTAINER_MODE_FALSE='#'
18643else
18644 MAINTAINER_MODE_TRUE='#'
18645 MAINTAINER_MODE_FALSE=
252b5132 18646fi
252b5132 18647
d7040cdb
SE
18648 MAINT=$MAINTAINER_MODE_TRUE
18649
18650
81ecdfbb 18651 if false; then
d7040cdb
SE
18652 GENINSRC_NEVER_TRUE=
18653 GENINSRC_NEVER_FALSE='#'
18654else
18655 GENINSRC_NEVER_TRUE='#'
18656 GENINSRC_NEVER_FALSE=
252b5132
RH
18657fi
18658
81ecdfbb
RW
18659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
18660$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 18661if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 18662 $as_echo_n "(cached) " >&6
eccbf555
AM
18663else
18664 echo abfoo >t1
18665 echo cdfoo >t2
da17fe9d 18666 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
eccbf555
AM
18667 if cmp t1 t2 2 2 > /dev/null 2>&1; then
18668 if cmp t1 t2 1 1 > /dev/null 2>&1; then
18669 :
18670 else
18671 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
18672 fi
18673 fi
18674 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
18675 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
18676 :
18677 else
18678 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
18679 fi
18680 fi
18681 rm t1 t2
18682
18683fi
81ecdfbb
RW
18684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
18685$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
eccbf555
AM
18686do_compare="$gcc_cv_prog_cmp_skip"
18687
18688
d7040cdb
SE
18689
18690. ${srcdir}/configure.host
18691
18692
18693
c774eab1
AM
18694
18695# We use headers from include/ that check various HAVE_*_H macros, thus
18696# should ensure they are set by configure. This is true even when C99
18697# guarantees they are available.
18698# sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
18699# plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
18700# Besides those, we need to check anything used in ld/ not in C99.
18701for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
18702 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
18703 sys/types.h unistd.h
5d3236ee
DK
18704do :
18705 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18706ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 18707if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5d3236ee
DK
18708 cat >>confdefs.h <<_ACEOF
18709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18710_ACEOF
18711
18712fi
18713
18714done
18715
6577f365 18716for ac_func in close glob lseek mkstemp open realpath waitpid
81ecdfbb
RW
18717do :
18718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 18720if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42ecbf5e 18721 cat >>confdefs.h <<_ACEOF
81ecdfbb 18722#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42ecbf5e 18723_ACEOF
252b5132 18724
252b5132
RH
18725fi
18726done
18727
5d3236ee 18728
42ecbf5e 18729
c774eab1
AM
18730case "${host}" in
18731*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e 18732
c774eab1
AM
18733$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
18734 ;;
18735esac
42ecbf5e 18736
c774eab1
AM
18737ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
18738if test "x$ac_cv_have_decl_asprintf" = xyes; then :
18739 ac_have_decl=1
42ecbf5e 18740else
c774eab1 18741 ac_have_decl=0
81ecdfbb 18742fi
e5a52504 18743
c774eab1
AM
18744cat >>confdefs.h <<_ACEOF
18745#define HAVE_DECL_ASPRINTF $ac_have_decl
18746_ACEOF
18747ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
18748if test "x$ac_cv_have_decl_environ" = xyes; then :
18749 ac_have_decl=1
42ecbf5e 18750else
c774eab1 18751 ac_have_decl=0
d15b04bd 18752fi
252b5132 18753
c774eab1
AM
18754cat >>confdefs.h <<_ACEOF
18755#define HAVE_DECL_ENVIRON $ac_have_decl
42ecbf5e 18756_ACEOF
eaf1fa5a
AM
18757ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
18758if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
18759 ac_have_decl=1
18760else
18761 ac_have_decl=0
18762fi
18763
18764cat >>confdefs.h <<_ACEOF
18765#define HAVE_DECL_STPCPY $ac_have_decl
18766_ACEOF
252b5132
RH
18767
18768
d0ac1c44
SM
18769
18770
18771
18772 for ac_header in $ac_header_list
2aec968d
L
18773do :
18774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
d0ac1c44
SM
18775ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18776"
18777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
2aec968d
L
18778 cat >>confdefs.h <<_ACEOF
18779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18780_ACEOF
18781
18782fi
18783
18784done
18785
d0ac1c44
SM
18786
18787
18788
18789
18790
18791
18792
2aec968d
L
18793for ac_func in getpagesize
18794do :
18795 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d0ac1c44 18796if test "x$ac_cv_func_getpagesize" = xyes; then :
2aec968d
L
18797 cat >>confdefs.h <<_ACEOF
18798#define HAVE_GETPAGESIZE 1
18799_ACEOF
18800
18801fi
18802done
18803
18804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18805$as_echo_n "checking for working mmap... " >&6; }
d0ac1c44 18806if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
2aec968d
L
18807 $as_echo_n "(cached) " >&6
18808else
18809 if test "$cross_compiling" = yes; then :
18810 ac_cv_func_mmap_fixed_mapped=no
18811else
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813/* end confdefs.h. */
18814$ac_includes_default
18815/* malloc might have been renamed as rpl_malloc. */
18816#undef malloc
18817
18818/* Thanks to Mike Haertel and Jim Avera for this test.
18819 Here is a matrix of mmap possibilities:
18820 mmap private not fixed
18821 mmap private fixed at somewhere currently unmapped
18822 mmap private fixed at somewhere already mapped
18823 mmap shared not fixed
18824 mmap shared fixed at somewhere currently unmapped
18825 mmap shared fixed at somewhere already mapped
18826 For private mappings, we should verify that changes cannot be read()
18827 back from the file, nor mmap's back from the file at a different
18828 address. (There have been systems where private was not correctly
18829 implemented like the infamous i386 svr4.0, and systems where the
18830 VM page cache was not coherent with the file system buffer cache
18831 like early versions of FreeBSD and possibly contemporary NetBSD.)
18832 For shared mappings, we should conversely verify that changes get
18833 propagated back to all the places they're supposed to be.
18834
18835 Grep wants private fixed already mapped.
18836 The main things grep needs to know about mmap are:
18837 * does it exist and is it safe to write into the mmap'd area
18838 * how to use it (BSD variants) */
18839
18840#include <fcntl.h>
18841#include <sys/mman.h>
18842
18843#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18844char *malloc ();
18845#endif
18846
18847/* This mess was copied from the GNU getpagesize.h. */
18848#ifndef HAVE_GETPAGESIZE
2aec968d
L
18849# ifdef _SC_PAGESIZE
18850# define getpagesize() sysconf(_SC_PAGESIZE)
18851# else /* no _SC_PAGESIZE */
18852# ifdef HAVE_SYS_PARAM_H
18853# include <sys/param.h>
18854# ifdef EXEC_PAGESIZE
18855# define getpagesize() EXEC_PAGESIZE
18856# else /* no EXEC_PAGESIZE */
18857# ifdef NBPG
18858# define getpagesize() NBPG * CLSIZE
18859# ifndef CLSIZE
18860# define CLSIZE 1
18861# endif /* no CLSIZE */
18862# else /* no NBPG */
18863# ifdef NBPC
18864# define getpagesize() NBPC
18865# else /* no NBPC */
18866# ifdef PAGESIZE
18867# define getpagesize() PAGESIZE
18868# endif /* PAGESIZE */
18869# endif /* no NBPC */
18870# endif /* no NBPG */
18871# endif /* no EXEC_PAGESIZE */
18872# else /* no HAVE_SYS_PARAM_H */
18873# define getpagesize() 8192 /* punt totally */
18874# endif /* no HAVE_SYS_PARAM_H */
18875# endif /* no _SC_PAGESIZE */
18876
18877#endif /* no HAVE_GETPAGESIZE */
18878
18879int
18880main ()
18881{
18882 char *data, *data2, *data3;
d0ac1c44 18883 const char *cdata2;
2aec968d 18884 int i, pagesize;
d0ac1c44 18885 int fd, fd2;
2aec968d
L
18886
18887 pagesize = getpagesize ();
18888
18889 /* First, make a file with some known garbage in it. */
18890 data = (char *) malloc (pagesize);
18891 if (!data)
18892 return 1;
18893 for (i = 0; i < pagesize; ++i)
18894 *(data + i) = rand ();
18895 umask (0);
18896 fd = creat ("conftest.mmap", 0600);
18897 if (fd < 0)
d0ac1c44 18898 return 2;
2aec968d 18899 if (write (fd, data, pagesize) != pagesize)
d0ac1c44 18900 return 3;
2aec968d
L
18901 close (fd);
18902
d0ac1c44
SM
18903 /* Next, check that the tail of a page is zero-filled. File must have
18904 non-zero length, otherwise we risk SIGBUS for entire page. */
18905 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18906 if (fd2 < 0)
18907 return 4;
18908 cdata2 = "";
18909 if (write (fd2, cdata2, 1) != 1)
18910 return 5;
18911 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18912 if (data2 == MAP_FAILED)
18913 return 6;
18914 for (i = 0; i < pagesize; ++i)
18915 if (*(data2 + i))
18916 return 7;
18917 close (fd2);
18918 if (munmap (data2, pagesize))
18919 return 8;
18920
2aec968d
L
18921 /* Next, try to mmap the file at a fixed address which already has
18922 something else allocated at it. If we can, also make sure that
18923 we see the same garbage. */
18924 fd = open ("conftest.mmap", O_RDWR);
18925 if (fd < 0)
d0ac1c44 18926 return 9;
2aec968d
L
18927 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18928 MAP_PRIVATE | MAP_FIXED, fd, 0L))
d0ac1c44 18929 return 10;
2aec968d
L
18930 for (i = 0; i < pagesize; ++i)
18931 if (*(data + i) != *(data2 + i))
d0ac1c44 18932 return 11;
2aec968d
L
18933
18934 /* Finally, make sure that changes to the mapped area do not
18935 percolate back to the file as seen by read(). (This is a bug on
18936 some variants of i386 svr4.0.) */
18937 for (i = 0; i < pagesize; ++i)
18938 *(data2 + i) = *(data2 + i) + 1;
18939 data3 = (char *) malloc (pagesize);
18940 if (!data3)
d0ac1c44 18941 return 12;
2aec968d 18942 if (read (fd, data3, pagesize) != pagesize)
d0ac1c44 18943 return 13;
2aec968d
L
18944 for (i = 0; i < pagesize; ++i)
18945 if (*(data + i) != *(data3 + i))
d0ac1c44 18946 return 14;
2aec968d
L
18947 close (fd);
18948 return 0;
18949}
18950_ACEOF
18951if ac_fn_c_try_run "$LINENO"; then :
18952 ac_cv_func_mmap_fixed_mapped=yes
18953else
18954 ac_cv_func_mmap_fixed_mapped=no
18955fi
18956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18957 conftest.$ac_objext conftest.beam conftest.$ac_ext
18958fi
18959
18960fi
18961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18962$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18963if test $ac_cv_func_mmap_fixed_mapped = yes; then
18964
18965$as_echo "#define HAVE_MMAP 1" >>confdefs.h
18966
18967fi
d0ac1c44 18968rm -f conftest.mmap conftest.txt
2aec968d
L
18969
18970
5d3236ee
DK
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18972$as_echo_n "checking for library containing dlopen... " >&6; }
d0ac1c44 18973if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
18974 $as_echo_n "(cached) " >&6
18975else
18976 ac_func_search_save_LIBS=$LIBS
18977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978/* end confdefs.h. */
18979
18980/* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983#ifdef __cplusplus
18984extern "C"
18985#endif
18986char dlopen ();
18987int
18988main ()
18989{
18990return dlopen ();
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995for ac_lib in '' dl; do
18996 if test -z "$ac_lib"; then
18997 ac_res="none required"
18998 else
18999 ac_res=-l$ac_lib
19000 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19001 fi
19002 if ac_fn_c_try_link "$LINENO"; then :
19003 ac_cv_search_dlopen=$ac_res
19004fi
19005rm -f core conftest.err conftest.$ac_objext \
19006 conftest$ac_exeext
d0ac1c44 19007 if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
19008 break
19009fi
19010done
d0ac1c44 19011if ${ac_cv_search_dlopen+:} false; then :
5d3236ee
DK
19012
19013else
19014 ac_cv_search_dlopen=no
19015fi
19016rm conftest.$ac_ext
19017LIBS=$ac_func_search_save_LIBS
19018fi
19019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19020$as_echo "$ac_cv_search_dlopen" >&6; }
19021ac_res=$ac_cv_search_dlopen
19022if test "$ac_res" != no; then :
19023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19024
3917d5d5
DK
19025fi
19026
5d3236ee 19027
81ecdfbb
RW
19028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
19029$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 19030if ${ld_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 19031 $as_echo_n "(cached) " >&6
34875e64 19032else
81ecdfbb 19033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42ecbf5e 19034/* end confdefs.h. */
34875e64 19035#include <unistd.h>
42ecbf5e
DJ
19036int
19037main ()
19038{
34875e64 19039extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
19040 ;
19041 return 0;
19042}
19043_ACEOF
81ecdfbb 19044if ac_fn_c_try_compile "$LINENO"; then :
34875e64
NC
19045 ld_cv_decl_getopt_unistd_h=yes
19046else
81ecdfbb 19047 ld_cv_decl_getopt_unistd_h=no
34875e64 19048fi
81ecdfbb 19049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34875e64
NC
19050fi
19051
81ecdfbb
RW
19052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
19053$as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
34875e64 19054if test $ld_cv_decl_getopt_unistd_h = yes; then
42ecbf5e 19055
81ecdfbb 19056$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
34875e64
NC
19057
19058fi
42ecbf5e 19059
2cac01e3
FS
19060# Link in zlib/zstd if we can. This allows us to read and write
19061# compressed debug sections.
1ff6de03
NA
19062
19063 # Use the system's zlib library.
19064 zlibdir="-L\$(top_builddir)/../zlib"
19065 zlibinc="-I\$(top_srcdir)/../zlib"
19066
19067# Check whether --with-system-zlib was given.
19068if test "${with_system_zlib+set}" = set; then :
19069 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
19070 zlibdir=
19071 zlibinc=
19072 fi
19073
19074fi
19075
19076
19077
19078
19079
2cac01e3
FS
19080
19081# Check whether --with-zstd was given.
19082if test "${with_zstd+set}" = set; then :
19083 withval=$with_zstd;
19084else
19085 with_zstd=auto
19086fi
19087
19088
19089if test "$with_zstd" != no; then :
19090
19091pkg_failed=no
200164d4
CL
19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
19093$as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
2cac01e3
FS
19094
19095if test -n "$ZSTD_CFLAGS"; then
19096 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
19097 elif test -n "$PKG_CONFIG"; then
19098 if test -n "$PKG_CONFIG" && \
200164d4
CL
19099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19100 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
2cac01e3
FS
19101 ac_status=$?
19102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19103 test $ac_status = 0; }; then
200164d4 19104 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
2cac01e3
FS
19105 test "x$?" != "x0" && pkg_failed=yes
19106else
19107 pkg_failed=yes
19108fi
19109 else
19110 pkg_failed=untried
19111fi
19112if test -n "$ZSTD_LIBS"; then
19113 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
19114 elif test -n "$PKG_CONFIG"; then
19115 if test -n "$PKG_CONFIG" && \
200164d4
CL
19116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
19117 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
2cac01e3
FS
19118 ac_status=$?
19119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120 test $ac_status = 0; }; then
200164d4 19121 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
2cac01e3
FS
19122 test "x$?" != "x0" && pkg_failed=yes
19123else
19124 pkg_failed=yes
19125fi
19126 else
19127 pkg_failed=untried
19128fi
19129
19130if test $pkg_failed = no; then
19131 pkg_save_LDFLAGS="$LDFLAGS"
19132 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134/* end confdefs.h. */
19135
19136int
19137main ()
19138{
19139
19140 ;
19141 return 0;
19142}
19143_ACEOF
19144if ac_fn_c_try_link "$LINENO"; then :
19145
19146else
19147 pkg_failed=yes
19148fi
19149rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LDFLAGS=$pkg_save_LDFLAGS
19152fi
19153
19154
19155
19156if test $pkg_failed = yes; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19158$as_echo "no" >&6; }
19159
19160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19161 _pkg_short_errors_supported=yes
19162else
19163 _pkg_short_errors_supported=no
19164fi
19165 if test $_pkg_short_errors_supported = yes; then
200164d4 19166 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
2cac01e3 19167 else
200164d4 19168 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
2cac01e3
FS
19169 fi
19170 # Put the nasty error message in config.log where it belongs
19171 echo "$ZSTD_PKG_ERRORS" >&5
19172
19173
19174 if test "$with_zstd" = yes; then
19175 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19176 fi
19177
19178elif test $pkg_failed = untried; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19180$as_echo "no" >&6; }
19181
19182 if test "$with_zstd" = yes; then
19183 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
19184 fi
19185
19186else
19187 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
19188 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190$as_echo "yes" >&6; }
19191
19192
19193$as_echo "#define HAVE_ZSTD 1" >>confdefs.h
19194
19195
19196fi
19197
19198fi
19199
19200
81ecdfbb
RW
19201# target-specific stuff:
19202
19203all_targets=
19204EMUL=
19205all_emuls=
19206all_emul_extras=
19207all_libpath=
50ff67e6 19208TDIRS=
81ecdfbb 19209
f38a2680
AM
19210elf_list_options=false
19211elf_shlib_list_options=false
19212elf_plt_unwind_list_options=false
81ecdfbb
RW
19213for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
19214do
19215 if test "$targ_alias" = "all"; then
19216 all_targets=true
f38a2680
AM
19217 elf_list_options=true
19218 elf_shlib_list_options=true
19219 elf_plt_unwind_list_options=true
81ecdfbb
RW
19220 else
19221 # Canonicalize the secondary target names.
19222 result=`$ac_config_sub $targ_alias 2>/dev/null`
19223 if test -n "$result"; then
19224 targ=$result
19225 else
19226 targ=$targ_alias
19227 fi
19228
19229 . ${srcdir}/configure.tgt
19230
19231 if test "$targ" = "$target"; then
19232 EMUL=$targ_emul
19233 fi
19234
1d5269c9 19235 if test x${enable_64_bit_bfd} = xno; then
81ecdfbb
RW
19236 . ${srcdir}/../bfd/config.bfd
19237 fi
19238
1d5269c9 19239 if test x${enable_64_bit_bfd} = xyes; then
81ecdfbb
RW
19240 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
19241 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
19242 fi
19243
19244 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
19245 case " $all_emuls " in
8c3fff59
AM
19246 *" e${i}.o "*) ;;
19247 *)
19248 all_emuls="$all_emuls e${i}.o"
19249 eval result=\$tdir_$i
19250 test -z "$result" && result=$targ_alias
50ff67e6
AM
19251 TDIRS="$TDIRS
19252tdir_$i=$result"
c58212ea
L
19253 case "${i}" in
19254 *elf*)
f38a2680 19255 elf_list_options=true
68880f31
CLT
19256 ;;
19257 *)
075a2b89 19258 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
f38a2680 19259 elf_list_options=true
68880f31
CLT
19260 fi
19261 ;;
19262 esac
f38a2680 19263 if test "$elf_list_options" = "true"; then
c40e31a1
AM
19264 source_sh()
19265 {
19266 . $1
19267 }
19268 source_sh ${srcdir}/emulparams/${i}.sh
c58212ea 19269 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
f38a2680 19270 elf_shlib_list_options=true
c58212ea
L
19271 fi
19272 if test x${PLT_UNWIND} = xyes; then
f38a2680 19273 elf_plt_unwind_list_options=true
c58212ea 19274 fi
68880f31 19275 fi
c58212ea 19276 ;;
81ecdfbb
RW
19277 esac
19278 done
19279
19280 for i in $targ_emul $targ_extra_libpath; do
19281 case " $all_libpath " in
19282 *" ${i} "*) ;;
19283 *)
19284 if test -z "$all_libpath"; then
19285 all_libpath=${i}
19286 else
19287 all_libpath="$all_libpath ${i}"
19288 fi
19289 ;;
19290 esac
19291 done
19292
19293 for i in $targ_extra_ofiles; do
19294 case " $all_emul_extras " in
19295 *" ${i} "*) ;;
19296 *)
19297 all_emul_extras="$all_emul_extras ${i}"
19298 ;;
19299 esac
19300 done
5063daf7 19301
81ecdfbb
RW
19302 fi
19303done
19304
621ff761 19305if test x$ac_default_compressed_debug_sections = xyes ; then
6c3bc0f8
NC
19306
19307$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
19308
19309fi
19310
b0c295e1
ML
19311
19312cat >>confdefs.h <<_ACEOF
19313#define DEFAULT_COMPRESSED_DEBUG_ALGORITHM $ac_default_compressed_debug_sections_algorithm
19314_ACEOF
19315
19316
6734f10a
SB
19317if test "${ac_default_new_dtags}" = unset; then
19318 ac_default_new_dtags=0
19319fi
19320
19321cat >>confdefs.h <<_ACEOF
19322#define DEFAULT_NEW_DTAGS $ac_default_new_dtags
19323_ACEOF
19324
19325
647e4d46
L
19326if test "${ac_default_ld_z_relro}" = unset; then
19327 ac_default_ld_z_relro=0
19328fi
19329
19330cat >>confdefs.h <<_ACEOF
19331#define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
19332_ACEOF
19333
19334
b32632c4
L
19335ac_default_ld_textrel_check_warning=0
19336case "${ac_default_ld_textrel_check}" in
19337 unset|no)
19338 ac_default_ld_textrel_check=textrel_check_none
19339 ;;
19340 yes|warning)
19341 ac_default_ld_textrel_check=textrel_check_warning
19342 ac_default_ld_textrel_check_warning=1
19343 ;;
19344 error)
19345 ac_default_ld_textrel_check=textrel_check_error
19346 ;;
19347esac
19348
19349cat >>confdefs.h <<_ACEOF
19350#define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
19351_ACEOF
19352
19353
19354cat >>confdefs.h <<_ACEOF
19355#define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
19356_ACEOF
19357
19358
f6aec96d
L
19359if test "${ac_default_ld_z_separate_code}" = unset; then
19360 ac_default_ld_z_separate_code=0
19361fi
19362
19363cat >>confdefs.h <<_ACEOF
19364#define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
19365_ACEOF
19366
19367
ba951afb 19368
ba951afb
NC
19369
19370cat >>confdefs.h <<_ACEOF
19371#define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
19372_ACEOF
19373
19374
e922d1ea
NC
19375
19376cat >>confdefs.h <<_ACEOF
19377#define DEFAULT_LD_ERROR_EXECSTACK $ac_default_ld_error_execstack
19378_ACEOF
19379
19380
ba951afb 19381if test "${ac_default_ld_warn_rwx_segments}" = unset; then
ed1c7ad8 19382 ac_default_ld_warn_rwx_segments=1
ba951afb
NC
19383fi
19384
19385cat >>confdefs.h <<_ACEOF
19386#define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
19387_ACEOF
19388
19389
e922d1ea
NC
19390
19391cat >>confdefs.h <<_ACEOF
19392#define DEFAULT_LD_ERROR_RWX_SEGMENTS $ac_default_ld_error_rwx_segments
19393_ACEOF
19394
19395
ba951afb
NC
19396if test "${ac_default_ld_default_execstack}" = unset; then
19397 ac_default_ld_default_execstack=1
19398fi
19399
19400cat >>confdefs.h <<_ACEOF
19401#define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
19402_ACEOF
19403
19404
19405
23ae20f5
NC
19406if test "${ac_support_error_handling_script}" = unset; then
19407 ac_support_error_handling_script=1
19408fi
19409
19410cat >>confdefs.h <<_ACEOF
19411#define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
19412_ACEOF
19413
19414
81ecdfbb 19415
2760f24c
RG
19416cat >>confdefs.h <<_ACEOF
19417#define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
19418_ACEOF
19419
19420
19421
19422cat >>confdefs.h <<_ACEOF
19423#define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
19424_ACEOF
19425
19426
19427
81ecdfbb 19428
c58212ea
L
19429
19430
19431
50ff67e6 19432
81ecdfbb
RW
19433
19434
19435if test x${all_targets} = xtrue; then
1d5269c9 19436 if test x${enable_64_bit_bfd} = xyes; then
42ecbf5e 19437 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9d069ac3 19438 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
42ecbf5e
DJ
19439 else
19440 EMULATION_OFILES='$(ALL_EMULATIONS)'
9d069ac3 19441 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
42ecbf5e 19442 fi
42ecbf5e
DJ
19443else
19444 EMULATION_OFILES=$all_emuls
19445 EMUL_EXTRA_OFILES=$all_emul_extras
19446fi
19447
19448
19449
19450
19451EMULATION_LIBPATH=$all_libpath
19452
19453
19454if test x${enable_static} = xno; then
9165f454 19455 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
87279e3c 19456 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
cf0e0a0b 19457 TESTSFRAMELIB="-Wl,--rpath,../libsframe/.libs ../libsframe/.libs/libsframe.so"
42ecbf5e
DJ
19458else
19459 TESTBFDLIB="../bfd/.libs/libbfd.a"
87279e3c 19460 TESTCTFLIB="../libctf/.libs/libctf.a"
cf0e0a0b 19461 TESTSFRAMELIB="../libsframe/.libs/libsframe.a"
42ecbf5e 19462fi
094e34f2
NA
19463if test "${enable_libctf}" = no; then
19464 TESTCTFLIB=
19465fi
42ecbf5e
DJ
19466
19467
87279e3c 19468
cf0e0a0b 19469
42ecbf5e
DJ
19470target_vendor=${target_vendor=$host_vendor}
19471case "$target_vendor" in
19472 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
19473 *) EXTRA_SHLIB_EXTENSION= ;;
19474esac
19475
19476case "$target_os" in
19477 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
19478esac
19479
19480if test x${EXTRA_SHLIB_EXTENSION} != x ; then
19481
19482cat >>confdefs.h <<_ACEOF
19483#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
19484_ACEOF
19485
19486fi
19487
33589acb
AM
19488ac_config_commands="$ac_config_commands default"
19489
19490
108a6f8e
CD
19491
19492
19493
19494
31dd3154 19495
81ecdfbb 19496ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
da594c4a 19497
42ecbf5e
DJ
19498cat >confcache <<\_ACEOF
19499# This file is a shell script that caches the results of configure
19500# tests run on this system so they can be shared between configure
19501# scripts and configure runs, see configure's option --config-cache.
19502# It is not useful on other systems. If it contains results you don't
19503# want to keep, you may remove or edit it.
19504#
19505# config.status only pays attention to the cache file if you give it
19506# the --recheck option to rerun configure.
19507#
19508# `ac_cv_env_foo' variables (set or unset) will be overridden when
19509# loading this file, other *unset* `ac_cv_foo' will be assigned the
19510# following values.
19511
19512_ACEOF
19513
19514# The following way of writing the cache mishandles newlines in values,
19515# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 19516# So, we kill variables containing newlines.
42ecbf5e
DJ
19517# Ultrix sh set writes to stderr and can't be redirected directly,
19518# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
19519(
19520 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19521 eval ac_val=\$$ac_var
19522 case $ac_val in #(
19523 *${as_nl}*)
19524 case $ac_var in #(
19525 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19526$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19527 esac
19528 case $ac_var in #(
19529 _ | IFS | as_nl) ;; #(
19530 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19531 *) { eval $ac_var=; unset $ac_var;} ;;
19532 esac ;;
19533 esac
19534 done
19535
42ecbf5e 19536 (set) 2>&1 |
81ecdfbb
RW
19537 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19538 *${as_nl}ac_space=\ *)
19539 # `set' does not quote correctly, so add quotes: double-quote
19540 # substitution turns \\\\ into \\, and sed turns \\ into \.
42ecbf5e
DJ
19541 sed -n \
19542 "s/'/'\\\\''/g;
19543 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 19544 ;; #(
42ecbf5e
DJ
19545 *)
19546 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 19547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42ecbf5e 19548 ;;
81ecdfbb
RW
19549 esac |
19550 sort
19551) |
42ecbf5e 19552 sed '
81ecdfbb 19553 /^ac_cv_env_/b end
42ecbf5e 19554 t clear
81ecdfbb 19555 :clear
42ecbf5e
DJ
19556 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19557 t end
81ecdfbb
RW
19558 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19559 :end' >>confcache
19560if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19561 if test -w "$cache_file"; then
d0ac1c44 19562 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
19563 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19564$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
19565 if test ! -f "$cache_file" || test -h "$cache_file"; then
19566 cat confcache >"$cache_file"
19567 else
19568 case $cache_file in #(
19569 */* | ?:*)
19570 mv -f confcache "$cache_file"$$ &&
19571 mv -f "$cache_file"$$ "$cache_file" ;; #(
19572 *)
19573 mv -f confcache "$cache_file" ;;
19574 esac
19575 fi
19576 fi
42ecbf5e 19577 else
81ecdfbb
RW
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19579$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42ecbf5e
DJ
19580 fi
19581fi
19582rm -f confcache
19583
19584test "x$prefix" = xNONE && prefix=$ac_default_prefix
19585# Let make expand exec_prefix.
19586test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19587
42ecbf5e
DJ
19588DEFS=-DHAVE_CONFIG_H
19589
19590ac_libobjs=
19591ac_ltlibobjs=
d0ac1c44 19592U=
42ecbf5e
DJ
19593for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19594 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
19595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19596 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19598 # will be set to the directory where LIBOBJS objects are built.
19599 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19600 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
42ecbf5e
DJ
19601done
19602LIBOBJS=$ac_libobjs
19603
19604LTLIBOBJS=$ac_ltlibobjs
19605
19606
d0ac1c44
SM
19607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19608$as_echo_n "checking that generated files are newer than configure... " >&6; }
19609 if test -n "$am_sleep_pid"; then
19610 # Hide warnings about reused PIDs.
19611 wait $am_sleep_pid 2>/dev/null
19612 fi
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19614$as_echo "done" >&6; }
81ecdfbb
RW
19615 if test -n "$EXEEXT"; then
19616 am__EXEEXT_TRUE=
19617 am__EXEEXT_FALSE='#'
19618else
19619 am__EXEEXT_TRUE='#'
19620 am__EXEEXT_FALSE=
42ecbf5e 19621fi
81ecdfbb 19622
64ac50ac 19623if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 19624 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
64ac50ac
RW
19625Usually this means the macro was only invoked conditionally." "$LINENO" 5
19626fi
c774eab1
AM
19627if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19628 as_fn_error $? "conditional \"AMDEP\" was never defined.
19629Usually this means the macro was only invoked conditionally." "$LINENO" 5
19630fi
19631if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19632 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19633Usually this means the macro was only invoked conditionally." "$LINENO" 5
19634fi
3cb62297 19635if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
d0ac1c44 19636 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
3cb62297
L
19637Usually this means the macro was only invoked conditionally." "$LINENO" 5
19638fi
1d5269c9
MF
19639if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
19640 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
19641Usually this means the macro was only invoked conditionally." "$LINENO" 5
19642fi
094e34f2
NA
19643if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
19644 as_fn_error $? "conditional \"ENABLE_LIBCTF\" was never defined.
19645Usually this means the macro was only invoked conditionally." "$LINENO" 5
19646fi
42ecbf5e 19647if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 19648 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 19649Usually this means the macro was only invoked conditionally." "$LINENO" 5
42ecbf5e 19650fi
d5fbea21 19651if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 19652 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 19653Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 19654fi
42ecbf5e 19655
d0ac1c44 19656: "${CONFIG_STATUS=./config.status}"
81ecdfbb 19657ac_write_fail=0
42ecbf5e
DJ
19658ac_clean_files_save=$ac_clean_files
19659ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
19660{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19661$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19662as_write_fail=0
19663cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42ecbf5e
DJ
19664#! $SHELL
19665# Generated by $as_me.
19666# Run this file to recreate the current configuration.
19667# Compiler output produced by configure, useful for debugging
19668# configure, is in config.log if it exists.
19669
19670debug=false
19671ac_cs_recheck=false
19672ac_cs_silent=false
42ecbf5e 19673
81ecdfbb
RW
19674SHELL=\${CONFIG_SHELL-$SHELL}
19675export SHELL
19676_ASEOF
19677cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19678## -------------------- ##
19679## M4sh Initialization. ##
19680## -------------------- ##
42ecbf5e 19681
81ecdfbb
RW
19682# Be more Bourne compatible
19683DUALCASE=1; export DUALCASE # for MKS sh
19684if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42ecbf5e
DJ
19685 emulate sh
19686 NULLCMD=:
81ecdfbb 19687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42ecbf5e
DJ
19688 # is contrary to our usage. Disable this feature.
19689 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
19690 setopt NO_GLOB_SUBST
19691else
19692 case `(set -o) 2>/dev/null` in #(
19693 *posix*) :
19694 set -o posix ;; #(
19695 *) :
19696 ;;
19697esac
42ecbf5e 19698fi
42ecbf5e 19699
81ecdfbb
RW
19700
19701as_nl='
19702'
19703export as_nl
19704# Printing a long string crashes Solaris 7 /usr/bin/printf.
19705as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19706as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19707as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19708# Prefer a ksh shell builtin over an external printf program on Solaris,
19709# but without wasting forks for bash or zsh.
19710if test -z "$BASH_VERSION$ZSH_VERSION" \
19711 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19712 as_echo='print -r --'
19713 as_echo_n='print -rn --'
19714elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19715 as_echo='printf %s\n'
19716 as_echo_n='printf %s'
19717else
19718 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19719 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19720 as_echo_n='/usr/ucb/echo -n'
19721 else
19722 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19723 as_echo_n_body='eval
19724 arg=$1;
19725 case $arg in #(
19726 *"$as_nl"*)
19727 expr "X$arg" : "X\\(.*\\)$as_nl";
19728 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19729 esac;
19730 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19731 '
19732 export as_echo_n_body
19733 as_echo_n='sh -c $as_echo_n_body as_echo'
19734 fi
19735 export as_echo_body
19736 as_echo='sh -c $as_echo_body as_echo'
19737fi
19738
19739# The user is always right.
19740if test "${PATH_SEPARATOR+set}" != set; then
19741 PATH_SEPARATOR=:
19742 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19743 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19744 PATH_SEPARATOR=';'
19745 }
42ecbf5e
DJ
19746fi
19747
19748
81ecdfbb
RW
19749# IFS
19750# We need space, tab and new line, in precisely that order. Quoting is
19751# there to prevent editors from complaining about space-tab.
19752# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19753# splitting by setting IFS to empty value.)
19754IFS=" "" $as_nl"
19755
19756# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 19757as_myself=
81ecdfbb
RW
19758case $0 in #((
19759 *[\\/]* ) as_myself=$0 ;;
19760 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19761for as_dir in $PATH
19762do
19763 IFS=$as_save_IFS
19764 test -z "$as_dir" && as_dir=.
19765 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19766 done
19767IFS=$as_save_IFS
19768
19769 ;;
19770esac
19771# We did not find ourselves, most probably we were run as `sh COMMAND'
19772# in which case we are not to be found in the path.
19773if test "x$as_myself" = x; then
19774 as_myself=$0
19775fi
19776if test ! -f "$as_myself"; then
19777 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19778 exit 1
19779fi
19780
19781# Unset variables that we do not need and which cause bugs (e.g. in
19782# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19783# suppresses any "Segmentation fault" message there. '((' could
19784# trigger a bug in pdksh 5.2.14.
19785for as_var in BASH_ENV ENV MAIL MAILPATH
19786do eval test x\${$as_var+set} = xset \
19787 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19788done
42ecbf5e
DJ
19789PS1='$ '
19790PS2='> '
19791PS4='+ '
19792
19793# NLS nuisances.
81ecdfbb
RW
19794LC_ALL=C
19795export LC_ALL
19796LANGUAGE=C
19797export LANGUAGE
19798
19799# CDPATH.
19800(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19801
19802
d0ac1c44
SM
19803# as_fn_error STATUS ERROR [LINENO LOG_FD]
19804# ----------------------------------------
81ecdfbb
RW
19805# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19806# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 19807# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
19808as_fn_error ()
19809{
d0ac1c44
SM
19810 as_status=$1; test $as_status -eq 0 && as_status=1
19811 if test "$4"; then
19812 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19813 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42ecbf5e 19814 fi
d0ac1c44 19815 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
19816 as_fn_exit $as_status
19817} # as_fn_error
19818
19819
19820# as_fn_set_status STATUS
19821# -----------------------
19822# Set $? to STATUS, without forking.
19823as_fn_set_status ()
19824{
19825 return $1
19826} # as_fn_set_status
19827
19828# as_fn_exit STATUS
19829# -----------------
19830# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19831as_fn_exit ()
19832{
19833 set +e
19834 as_fn_set_status $1
19835 exit $1
19836} # as_fn_exit
19837
19838# as_fn_unset VAR
19839# ---------------
19840# Portably unset VAR.
19841as_fn_unset ()
19842{
19843 { eval $1=; unset $1;}
19844}
19845as_unset=as_fn_unset
19846# as_fn_append VAR VALUE
19847# ----------------------
19848# Append the text in VALUE to the end of the definition contained in VAR. Take
19849# advantage of any shell optimizations that allow amortized linear growth over
19850# repeated appends, instead of the typical quadratic growth present in naive
19851# implementations.
19852if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19853 eval 'as_fn_append ()
19854 {
19855 eval $1+=\$2
19856 }'
19857else
19858 as_fn_append ()
19859 {
19860 eval $1=\$$1\$2
19861 }
19862fi # as_fn_append
19863
19864# as_fn_arith ARG...
19865# ------------------
19866# Perform arithmetic evaluation on the ARGs, and store the result in the
19867# global $as_val. Take advantage of shells that can avoid forks. The arguments
19868# must be portable across $(()) and expr.
19869if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19870 eval 'as_fn_arith ()
19871 {
19872 as_val=$(( $* ))
19873 }'
19874else
19875 as_fn_arith ()
19876 {
19877 as_val=`expr "$@" || test $? -eq 1`
19878 }
19879fi # as_fn_arith
19880
42ecbf5e 19881
81ecdfbb
RW
19882if expr a : '\(a\)' >/dev/null 2>&1 &&
19883 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42ecbf5e
DJ
19884 as_expr=expr
19885else
19886 as_expr=false
19887fi
19888
81ecdfbb 19889if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42ecbf5e
DJ
19890 as_basename=basename
19891else
19892 as_basename=false
19893fi
19894
81ecdfbb
RW
19895if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19896 as_dirname=dirname
19897else
19898 as_dirname=false
19899fi
42ecbf5e 19900
81ecdfbb 19901as_me=`$as_basename -- "$0" ||
42ecbf5e
DJ
19902$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19903 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
19904 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19905$as_echo X/"$0" |
19906 sed '/^.*\/\([^/][^/]*\)\/*$/{
19907 s//\1/
19908 q
19909 }
19910 /^X\/\(\/\/\)$/{
19911 s//\1/
19912 q
19913 }
19914 /^X\/\(\/\).*/{
19915 s//\1/
19916 q
19917 }
19918 s/.*/./; q'`
42ecbf5e 19919
42ecbf5e
DJ
19920# Avoid depending upon Character Ranges.
19921as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19922as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19923as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19924as_cr_digits='0123456789'
19925as_cr_alnum=$as_cr_Letters$as_cr_digits
19926
81ecdfbb
RW
19927ECHO_C= ECHO_N= ECHO_T=
19928case `echo -n x` in #(((((
19929-n*)
19930 case `echo 'xy\c'` in
19931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19932 xy) ECHO_C='\c';;
19933 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19934 ECHO_T=' ';;
19935 esac;;
19936*)
19937 ECHO_N='-n';;
42ecbf5e 19938esac
252b5132 19939
81ecdfbb
RW
19940rm -f conf$$ conf$$.exe conf$$.file
19941if test -d conf$$.dir; then
19942 rm -f conf$$.dir/conf$$.file
42ecbf5e 19943else
81ecdfbb
RW
19944 rm -f conf$$.dir
19945 mkdir conf$$.dir 2>/dev/null
42ecbf5e 19946fi
81ecdfbb
RW
19947if (echo >conf$$.file) 2>/dev/null; then
19948 if ln -s conf$$.file conf$$ 2>/dev/null; then
42ecbf5e 19949 as_ln_s='ln -s'
81ecdfbb
RW
19950 # ... but there are two gotchas:
19951 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19952 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 19953 # In both cases, we have to default to `cp -pR'.
81ecdfbb 19954 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 19955 as_ln_s='cp -pR'
81ecdfbb
RW
19956 elif ln conf$$.file conf$$ 2>/dev/null; then
19957 as_ln_s=ln
19958 else
d0ac1c44 19959 as_ln_s='cp -pR'
252b5132 19960 fi
e5a52504 19961else
d0ac1c44 19962 as_ln_s='cp -pR'
e5a52504 19963fi
81ecdfbb
RW
19964rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19965rmdir conf$$.dir 2>/dev/null
19966
19967
19968# as_fn_mkdir_p
19969# -------------
19970# Create "$as_dir" as a directory, including parents if necessary.
19971as_fn_mkdir_p ()
19972{
19973
19974 case $as_dir in #(
19975 -*) as_dir=./$as_dir;;
19976 esac
19977 test -d "$as_dir" || eval $as_mkdir_p || {
19978 as_dirs=
19979 while :; do
19980 case $as_dir in #(
19981 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19982 *) as_qdir=$as_dir;;
19983 esac
19984 as_dirs="'$as_qdir' $as_dirs"
19985 as_dir=`$as_dirname -- "$as_dir" ||
19986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19987 X"$as_dir" : 'X\(//\)[^/]' \| \
19988 X"$as_dir" : 'X\(//\)$' \| \
19989 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19990$as_echo X"$as_dir" |
19991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19992 s//\1/
19993 q
19994 }
19995 /^X\(\/\/\)[^/].*/{
19996 s//\1/
19997 q
19998 }
19999 /^X\(\/\/\)$/{
20000 s//\1/
20001 q
20002 }
20003 /^X\(\/\).*/{
20004 s//\1/
20005 q
20006 }
20007 s/.*/./; q'`
20008 test -d "$as_dir" && break
20009 done
20010 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 20011 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 20012
252b5132 20013
81ecdfbb 20014} # as_fn_mkdir_p
42ecbf5e 20015if mkdir -p . 2>/dev/null; then
81ecdfbb 20016 as_mkdir_p='mkdir -p "$as_dir"'
42ecbf5e
DJ
20017else
20018 test -d ./-p && rmdir ./-p
20019 as_mkdir_p=false
20020fi
252b5132 20021
d0ac1c44
SM
20022
20023# as_fn_executable_p FILE
20024# -----------------------
20025# Test if FILE is an executable regular file.
20026as_fn_executable_p ()
20027{
20028 test -f "$1" && test -x "$1"
20029} # as_fn_executable_p
20030as_test_x='test -x'
20031as_executable_p=as_fn_executable_p
252b5132 20032
42ecbf5e
DJ
20033# Sed expression to map a string onto a valid CPP name.
20034as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f234d5fe 20035
42ecbf5e
DJ
20036# Sed expression to map a string onto a valid variable name.
20037as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e5a52504 20038
e5a52504 20039
42ecbf5e 20040exec 6>&1
81ecdfbb
RW
20041## ----------------------------------- ##
20042## Main body of $CONFIG_STATUS script. ##
20043## ----------------------------------- ##
20044_ASEOF
20045test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
e5a52504 20046
81ecdfbb
RW
20047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20048# Save the log message, to keep $0 and so on meaningful, and to
42ecbf5e 20049# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
20050# values after options handling.
20051ac_log="
b5c37946 20052This file was extended by ld $as_me 2.41.50, which was
d0ac1c44 20053generated by GNU Autoconf 2.69. Invocation command line was
42ecbf5e
DJ
20054
20055 CONFIG_FILES = $CONFIG_FILES
20056 CONFIG_HEADERS = $CONFIG_HEADERS
20057 CONFIG_LINKS = $CONFIG_LINKS
20058 CONFIG_COMMANDS = $CONFIG_COMMANDS
20059 $ $0 $@
e5a52504 20060
81ecdfbb
RW
20061on `(hostname || uname -n) 2>/dev/null | sed 1q`
20062"
20063
42ecbf5e
DJ
20064_ACEOF
20065
81ecdfbb
RW
20066case $ac_config_files in *"
20067"*) set x $ac_config_files; shift; ac_config_files=$*;;
20068esac
e5a52504 20069
81ecdfbb
RW
20070case $ac_config_headers in *"
20071"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20072esac
42ecbf5e 20073
42ecbf5e 20074
81ecdfbb
RW
20075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076# Files that config.status was made for.
20077config_files="$ac_config_files"
20078config_headers="$ac_config_headers"
20079config_commands="$ac_config_commands"
42ecbf5e 20080
81ecdfbb 20081_ACEOF
42ecbf5e 20082
81ecdfbb 20083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 20084ac_cs_usage="\
81ecdfbb
RW
20085\`$as_me' instantiates files and other configuration actions
20086from templates according to the current configuration. Unless the files
20087and actions are specified as TAGs, all are instantiated by default.
42ecbf5e 20088
81ecdfbb 20089Usage: $0 [OPTION]... [TAG]...
42ecbf5e
DJ
20090
20091 -h, --help print this help, then exit
81ecdfbb 20092 -V, --version print version number and configuration settings, then exit
d0ac1c44 20093 --config print configuration, then exit
81ecdfbb
RW
20094 -q, --quiet, --silent
20095 do not print progress messages
42ecbf5e
DJ
20096 -d, --debug don't remove temporary files
20097 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
20098 --file=FILE[:TEMPLATE]
20099 instantiate the configuration file FILE
20100 --header=FILE[:TEMPLATE]
20101 instantiate the configuration header FILE
42ecbf5e
DJ
20102
20103Configuration files:
20104$config_files
20105
20106Configuration headers:
20107$config_headers
20108
20109Configuration commands:
20110$config_commands
20111
81ecdfbb 20112Report bugs to the package provider."
42ecbf5e 20113
81ecdfbb
RW
20114_ACEOF
20115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 20116ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42ecbf5e 20117ac_cs_version="\\
b5c37946 20118ld config.status 2.41.50
d0ac1c44
SM
20119configured by $0, generated by GNU Autoconf 2.69,
20120 with options \\"\$ac_cs_config\\"
42ecbf5e 20121
d0ac1c44 20122Copyright (C) 2012 Free Software Foundation, Inc.
42ecbf5e
DJ
20123This config.status script is free software; the Free Software Foundation
20124gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
20125
20126ac_pwd='$ac_pwd'
20127srcdir='$srcdir'
20128INSTALL='$INSTALL'
20129MKDIR_P='$MKDIR_P'
20130AWK='$AWK'
20131test -n "\$AWK" || AWK=awk
42ecbf5e
DJ
20132_ACEOF
20133
81ecdfbb
RW
20134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20135# The default lists apply if the user does not specify any file.
42ecbf5e
DJ
20136ac_need_defaults=:
20137while test $# != 0
20138do
20139 case $1 in
d0ac1c44 20140 --*=?*)
81ecdfbb
RW
20141 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20142 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42ecbf5e 20143 ac_shift=:
252b5132 20144 ;;
d0ac1c44
SM
20145 --*=)
20146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20147 ac_optarg=
20148 ac_shift=:
20149 ;;
81ecdfbb 20150 *)
42ecbf5e
DJ
20151 ac_option=$1
20152 ac_optarg=$2
20153 ac_shift=shift
252b5132 20154 ;;
42ecbf5e 20155 esac
252b5132 20156
42ecbf5e
DJ
20157 case $ac_option in
20158 # Handling of the options.
42ecbf5e
DJ
20159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20160 ac_cs_recheck=: ;;
81ecdfbb
RW
20161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20162 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
20163 --config | --confi | --conf | --con | --co | --c )
20164 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 20165 --debug | --debu | --deb | --de | --d | -d )
42ecbf5e
DJ
20166 debug=: ;;
20167 --file | --fil | --fi | --f )
20168 $ac_shift
81ecdfbb
RW
20169 case $ac_optarg in
20170 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 20171 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
20172 esac
20173 as_fn_append CONFIG_FILES " '$ac_optarg'"
42ecbf5e
DJ
20174 ac_need_defaults=false;;
20175 --header | --heade | --head | --hea )
20176 $ac_shift
81ecdfbb
RW
20177 case $ac_optarg in
20178 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20179 esac
20180 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42ecbf5e 20181 ac_need_defaults=false;;
81ecdfbb
RW
20182 --he | --h)
20183 # Conflict between --help and --header
d0ac1c44 20184 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
20185Try \`$0 --help' for more information.";;
20186 --help | --hel | -h )
20187 $as_echo "$ac_cs_usage"; exit ;;
42ecbf5e
DJ
20188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20189 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20190 ac_cs_silent=: ;;
252b5132 20191
42ecbf5e 20192 # This is an error.
d0ac1c44 20193 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 20194Try \`$0 --help' for more information." ;;
252b5132 20195
81ecdfbb
RW
20196 *) as_fn_append ac_config_targets " $1"
20197 ac_need_defaults=false ;;
252b5132 20198
42ecbf5e
DJ
20199 esac
20200 shift
20201done
d15b04bd 20202
42ecbf5e 20203ac_configure_extra_args=
e5a52504 20204
42ecbf5e
DJ
20205if $ac_cs_silent; then
20206 exec 6>/dev/null
20207 ac_configure_extra_args="$ac_configure_extra_args --silent"
20208fi
e5a52504 20209
42ecbf5e 20210_ACEOF
81ecdfbb 20211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42ecbf5e 20212if \$ac_cs_recheck; then
d0ac1c44 20213 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
20214 shift
20215 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20216 CONFIG_SHELL='$SHELL'
20217 export CONFIG_SHELL
20218 exec "\$@"
42ecbf5e
DJ
20219fi
20220
20221_ACEOF
81ecdfbb
RW
20222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20223exec 5>>config.log
20224{
20225 echo
20226 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20227## Running $as_me. ##
20228_ASBOX
20229 $as_echo "$ac_log"
20230} >&5
42ecbf5e 20231
81ecdfbb
RW
20232_ACEOF
20233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
252b5132 20234#
81ecdfbb 20235# INIT-COMMANDS
252b5132 20236#
5bbe6ec5 20237AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
20238
20239
20240# The HP-UX ksh and POSIX shell print the target directory to stdout
20241# if CDPATH is set.
20242(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20243
20244sed_quote_subst='$sed_quote_subst'
20245double_quote_subst='$double_quote_subst'
20246delay_variable_subst='$delay_variable_subst'
3725885a
RW
20247macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20248macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20249enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20250enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20251pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20252enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20253SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20254ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20255host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20256host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20257host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20258build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20259build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20260build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20261SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20262Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20263GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20264EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20265FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20266LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20267NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20268LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20269max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20270ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20271exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20272lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20273lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20274lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20275reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20276reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20277OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20278deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20279file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20280AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20281AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20282STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20283RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20284old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20285old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20286old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20287lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20288CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20289CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20290compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20291GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20292lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20293lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20294lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20295lt_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"`'
20296objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20297MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20298lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20299lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20300lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20301lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20302lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20303need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20304DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20305NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20306LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20307OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20308OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20309libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20310shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20311extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20312archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20313enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20314export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20315whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20316compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20317old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20318old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20319archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20320archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20321module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20322module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20323with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20324allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20325no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20326hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20327hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20328hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20329hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20330hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20331hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20332hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20333hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20334inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20335link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20336fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20337always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20338export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20339exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20340include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20341prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20342file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20343variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20344need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20345need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20346version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20347runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20348shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20349shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20350libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20351library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20352soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20353install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20354postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20355postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20356finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20357finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20358hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20359sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20360sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20361hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20362enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20363enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20364enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20365old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20366striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
3cb62297
L
20367compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20368predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20369postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20370predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20371postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20372compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20373LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20374reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20375reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20376old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20377compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20378GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20379lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20380lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20381lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20382lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20383lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20384archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20385enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20386export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20387whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20388compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20389old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20390old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20391archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20392archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20393module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20394module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20395with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20396allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20397no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20398hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20399hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20400hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20401hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20402hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20403hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20404hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20405hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20406inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20407link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20408fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20409always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20410export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20411exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20412include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20413prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20414file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20415hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20416compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20417predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20418postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20419predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20420postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20421compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
20422
20423LTCC='$LTCC'
20424LTCFLAGS='$LTCFLAGS'
20425compiler='$compiler_DEFAULT'
20426
3725885a
RW
20427# A function that is used when there is no print builtin or printf.
20428func_fallback_echo ()
20429{
20430 eval 'cat <<_LTECHO_EOF
20431\$1
20432_LTECHO_EOF'
20433}
20434
d7040cdb 20435# Quote evaled strings.
3725885a
RW
20436for var in SHELL \
20437ECHO \
20438SED \
d7040cdb
SE
20439GREP \
20440EGREP \
20441FGREP \
20442LD \
20443NM \
20444LN_S \
20445lt_SP2NL \
20446lt_NL2SP \
20447reload_flag \
b214d478 20448OBJDUMP \
d7040cdb
SE
20449deplibs_check_method \
20450file_magic_cmd \
20451AR \
20452AR_FLAGS \
20453STRIP \
20454RANLIB \
20455CC \
20456CFLAGS \
20457compiler \
20458lt_cv_sys_global_symbol_pipe \
20459lt_cv_sys_global_symbol_to_cdecl \
20460lt_cv_sys_global_symbol_to_c_name_address \
b214d478 20461lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb
SE
20462lt_prog_compiler_no_builtin_flag \
20463lt_prog_compiler_wl \
20464lt_prog_compiler_pic \
20465lt_prog_compiler_static \
20466lt_cv_prog_compiler_c_o \
20467need_locks \
b214d478
SE
20468DSYMUTIL \
20469NMEDIT \
20470LIPO \
20471OTOOL \
20472OTOOL64 \
d7040cdb
SE
20473shrext_cmds \
20474export_dynamic_flag_spec \
20475whole_archive_flag_spec \
20476compiler_needs_object \
20477with_gnu_ld \
20478allow_undefined_flag \
20479no_undefined_flag \
20480hardcode_libdir_flag_spec \
20481hardcode_libdir_flag_spec_ld \
20482hardcode_libdir_separator \
20483fix_srcfile_path \
20484exclude_expsyms \
20485include_expsyms \
20486file_list_spec \
20487variables_saved_for_relink \
20488libname_spec \
20489library_names_spec \
20490soname_spec \
3725885a 20491install_override_mode \
d7040cdb
SE
20492finish_eval \
20493old_striplib \
3cb62297
L
20494striplib \
20495compiler_lib_search_dirs \
20496predep_objects \
20497postdep_objects \
20498predeps \
20499postdeps \
20500compiler_lib_search_path \
20501LD_CXX \
20502reload_flag_CXX \
20503compiler_CXX \
20504lt_prog_compiler_no_builtin_flag_CXX \
20505lt_prog_compiler_wl_CXX \
20506lt_prog_compiler_pic_CXX \
20507lt_prog_compiler_static_CXX \
20508lt_cv_prog_compiler_c_o_CXX \
20509export_dynamic_flag_spec_CXX \
20510whole_archive_flag_spec_CXX \
20511compiler_needs_object_CXX \
20512with_gnu_ld_CXX \
20513allow_undefined_flag_CXX \
20514no_undefined_flag_CXX \
20515hardcode_libdir_flag_spec_CXX \
20516hardcode_libdir_flag_spec_ld_CXX \
20517hardcode_libdir_separator_CXX \
20518fix_srcfile_path_CXX \
20519exclude_expsyms_CXX \
20520include_expsyms_CXX \
20521file_list_spec_CXX \
20522compiler_lib_search_dirs_CXX \
20523predep_objects_CXX \
20524postdep_objects_CXX \
20525predeps_CXX \
20526postdeps_CXX \
20527compiler_lib_search_path_CXX; do
3725885a 20528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 20529 *[\\\\\\\`\\"\\\$]*)
3725885a 20530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
20531 ;;
20532 *)
20533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20534 ;;
20535 esac
20536done
20537
20538# Double-quote double-evaled strings.
20539for var in reload_cmds \
20540old_postinstall_cmds \
20541old_postuninstall_cmds \
20542old_archive_cmds \
20543extract_expsyms_cmds \
20544old_archive_from_new_cmds \
20545old_archive_from_expsyms_cmds \
20546archive_cmds \
20547archive_expsym_cmds \
20548module_cmds \
20549module_expsym_cmds \
20550export_symbols_cmds \
20551prelink_cmds \
20552postinstall_cmds \
20553postuninstall_cmds \
20554finish_cmds \
20555sys_lib_search_path_spec \
3cb62297
L
20556sys_lib_dlsearch_path_spec \
20557reload_cmds_CXX \
20558old_archive_cmds_CXX \
20559old_archive_from_new_cmds_CXX \
20560old_archive_from_expsyms_cmds_CXX \
20561archive_cmds_CXX \
20562archive_expsym_cmds_CXX \
20563module_cmds_CXX \
20564module_expsym_cmds_CXX \
20565export_symbols_cmds_CXX \
20566prelink_cmds_CXX; do
3725885a 20567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 20568 *[\\\\\\\`\\"\\\$]*)
3725885a 20569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
20570 ;;
20571 *)
20572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20573 ;;
20574 esac
20575done
20576
d7040cdb
SE
20577ac_aux_dir='$ac_aux_dir'
20578xsi_shell='$xsi_shell'
20579lt_shell_append='$lt_shell_append'
20580
20581# See if we are running on zsh, and set the options which allow our
20582# commands through without removal of \ escapes INIT.
20583if test -n "\${ZSH_VERSION+set}" ; then
20584 setopt NO_GLOB_SUBST
20585fi
20586
20587
20588 PACKAGE='$PACKAGE'
20589 VERSION='$VERSION'
20590 TIMESTAMP='$TIMESTAMP'
20591 RM='$RM'
20592 ofile='$ofile'
20593
20594
20595
3cb62297
L
20596
20597
862776f2
AA
20598# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20599 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20600 # from automake.
20601 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20602 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20603 LINGUAS="${LINGUAS-%UNSET%}"
20604
20e95c23
DJ
20605# Capture the value of obsolete ALL_LINGUAS because we need it to compute
20606 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
20607 # from automake.
20608 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
20609 # Capture the value of LINGUAS because we need it to compute CATALOGS.
20610 LINGUAS="${LINGUAS-%UNSET%}"
20611
42ecbf5e 20612
33589acb 20613
42ecbf5e
DJ
20614_ACEOF
20615
81ecdfbb 20616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e 20617
81ecdfbb 20618# Handling of arguments.
42ecbf5e 20619for ac_config_target in $ac_config_targets
252b5132 20620do
81ecdfbb
RW
20621 case $ac_config_target in
20622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
81ecdfbb 20623 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
b879806f 20624 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
81ecdfbb 20625 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
862776f2 20626 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
33589acb 20627 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
81ecdfbb
RW
20628 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20629 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
20630
d0ac1c44 20631 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
252b5132
RH
20632 esac
20633done
20634
81ecdfbb 20635
42ecbf5e
DJ
20636# If the user did not use the arguments to specify the items to instantiate,
20637# then the envvar interface is used. Set only those that are not.
20638# We use the long form for the default assignment because of an extremely
20639# bizarre bug on SunOS 4.1.3.
20640if $ac_need_defaults; then
20641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20644fi
20645
20646# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 20647# simply because there is no reason against having it here, and in addition,
42ecbf5e 20648# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
20649# Hook for its removal unless debugging.
20650# Note that there is a small window in which the directory will not be cleaned:
20651# after its creation but before its name has been assigned to `$tmp'.
42ecbf5e
DJ
20652$debug ||
20653{
d0ac1c44 20654 tmp= ac_tmp=
81ecdfbb 20655 trap 'exit_status=$?
d0ac1c44
SM
20656 : "${ac_tmp:=$tmp}"
20657 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
20658' 0
20659 trap 'as_fn_exit 1' 1 2 13 15
42ecbf5e 20660}
42ecbf5e 20661# Create a (secure) tmp directory for tmp files.
e5a52504 20662
42ecbf5e 20663{
81ecdfbb 20664 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 20665 test -d "$tmp"
42ecbf5e
DJ
20666} ||
20667{
81ecdfbb
RW
20668 tmp=./conf$$-$RANDOM
20669 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
20670} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20671ac_tmp=$tmp
81ecdfbb
RW
20672
20673# Set up the scripts for CONFIG_FILES section.
20674# No need to generate them if there are no CONFIG_FILES.
20675# This happens for instance with `./config.status config.h'.
20676if test -n "$CONFIG_FILES"; then
20677
50ff67e6 20678
81ecdfbb
RW
20679ac_cr=`echo X | tr X '\015'`
20680# On cygwin, bash can eat \r inside `` if the user requested igncr.
20681# But we know of no other shell where ac_cr would be empty at this
20682# point, so we can use a bashism as a fallback.
20683if test "x$ac_cr" = x; then
20684 eval ac_cr=\$\'\\r\'
20685fi
20686ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20687if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 20688 ac_cs_awk_cr='\\r'
81ecdfbb
RW
20689else
20690 ac_cs_awk_cr=$ac_cr
20691fi
20692
d0ac1c44 20693echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
20694_ACEOF
20695
e5a52504 20696
81ecdfbb
RW
20697{
20698 echo "cat >conf$$subs.awk <<_ACEOF" &&
20699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20700 echo "_ACEOF"
20701} >conf$$subs.sh ||
d0ac1c44
SM
20702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20703ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
20704ac_delim='%!_!# '
20705for ac_last_try in false false false false false :; do
20706 . ./conf$$subs.sh ||
d0ac1c44 20707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
20708
20709 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20710 if test $ac_delim_n = $ac_delim_num; then
20711 break
20712 elif $ac_last_try; then
d0ac1c44 20713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
20714 else
20715 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20716 fi
20717done
20718rm -f conf$$subs.sh
20719
20720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 20721cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
20722_ACEOF
20723sed -n '
20724h
20725s/^/S["/; s/!.*/"]=/
20726p
20727g
20728s/^[^!]*!//
20729:repl
20730t repl
20731s/'"$ac_delim"'$//
20732t delim
20733:nl
20734h
d0ac1c44 20735s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
20736t more1
20737s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20738p
20739n
20740b repl
20741:more1
20742s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20743p
20744g
20745s/.\{148\}//
20746t nl
20747:delim
20748h
d0ac1c44 20749s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
20750t more2
20751s/["\\]/\\&/g; s/^/"/; s/$/"/
20752p
20753b
20754:more2
20755s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20756p
20757g
20758s/.\{148\}//
20759t delim
20760' <conf$$subs.awk | sed '
20761/^[^""]/{
20762 N
20763 s/\n//
20764}
20765' >>$CONFIG_STATUS || ac_write_fail=1
20766rm -f conf$$subs.awk
20767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20768_ACAWK
d0ac1c44 20769cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
20770 for (key in S) S_is_set[key] = 1
20771 FS = "\a"
50ff67e6 20772
81ecdfbb
RW
20773}
20774{
20775 line = $ 0
20776 nfields = split(line, field, "@")
20777 substed = 0
20778 len = length(field[1])
20779 for (i = 2; i < nfields; i++) {
20780 key = field[i]
20781 keylen = length(key)
20782 if (S_is_set[key]) {
20783 value = S[key]
20784 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20785 len += length(value) + length(field[++i])
20786 substed = 1
20787 } else
20788 len += 1 + keylen
20789 }
50ff67e6 20790
81ecdfbb
RW
20791 print line
20792}
50ff67e6 20793
81ecdfbb
RW
20794_ACAWK
20795_ACEOF
20796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20797if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20798 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20799else
20800 cat
d0ac1c44
SM
20801fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20802 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42ecbf5e 20803_ACEOF
d15b04bd 20804
d0ac1c44
SM
20805# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20806# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
20807# trailing colons and then remove the whole line if VPATH becomes empty
20808# (actually we leave an empty line to preserve line numbers).
20809if test "x$srcdir" = x.; then
d0ac1c44
SM
20810 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20811h
20812s///
20813s/^/:/
20814s/[ ]*$/:/
20815s/:\$(srcdir):/:/g
20816s/:\${srcdir}:/:/g
20817s/:@srcdir@:/:/g
20818s/^:*//
81ecdfbb 20819s/:*$//
d0ac1c44
SM
20820x
20821s/\(=[ ]*\).*/\1/
20822G
20823s/\n//
81ecdfbb
RW
20824s/^[^=]*=[ ]*$//
20825}'
20826fi
20827
20828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20829fi # test -n "$CONFIG_FILES"
42ecbf5e 20830
81ecdfbb
RW
20831# Set up the scripts for CONFIG_HEADERS section.
20832# No need to generate them if there are no CONFIG_HEADERS.
20833# This happens for instance with `./config.status Makefile'.
20834if test -n "$CONFIG_HEADERS"; then
d0ac1c44 20835cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
20836BEGIN {
20837_ACEOF
42ecbf5e 20838
81ecdfbb
RW
20839# Transform confdefs.h into an awk script `defines.awk', embedded as
20840# here-document in config.status, that substitutes the proper values into
20841# config.h.in to produce config.h.
252b5132 20842
81ecdfbb
RW
20843# Create a delimiter string that does not exist in confdefs.h, to ease
20844# handling of long lines.
20845ac_delim='%!_!# '
20846for ac_last_try in false false :; do
d0ac1c44
SM
20847 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20848 if test -z "$ac_tt"; then
81ecdfbb
RW
20849 break
20850 elif $ac_last_try; then
d0ac1c44 20851 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
20852 else
20853 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20854 fi
20855done
20856
20857# For the awk script, D is an array of macro values keyed by name,
20858# likewise P contains macro parameters if any. Preserve backslash
20859# newline sequences.
20860
20861ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20862sed -n '
20863s/.\{148\}/&'"$ac_delim"'/g
20864t rset
20865:rset
20866s/^[ ]*#[ ]*define[ ][ ]*/ /
20867t def
20868d
20869:def
20870s/\\$//
20871t bsnl
20872s/["\\]/\\&/g
20873s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20874D["\1"]=" \3"/p
20875s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20876d
20877:bsnl
20878s/["\\]/\\&/g
20879s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20880D["\1"]=" \3\\\\\\n"\\/p
20881t cont
20882s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20883t cont
20884d
20885:cont
20886n
20887s/.\{148\}/&'"$ac_delim"'/g
20888t clear
20889:clear
20890s/\\$//
20891t bsnlc
20892s/["\\]/\\&/g; s/^/"/; s/$/"/p
20893d
20894:bsnlc
20895s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20896b cont
20897' <confdefs.h | sed '
20898s/'"$ac_delim"'/"\\\
20899"/g' >>$CONFIG_STATUS || ac_write_fail=1
20900
20901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20902 for (key in D) D_is_set[key] = 1
20903 FS = "\a"
20904}
20905/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20906 line = \$ 0
20907 split(line, arg, " ")
20908 if (arg[1] == "#") {
20909 defundef = arg[2]
20910 mac1 = arg[3]
20911 } else {
20912 defundef = substr(arg[1], 2)
20913 mac1 = arg[2]
20914 }
20915 split(mac1, mac2, "(") #)
20916 macro = mac2[1]
20917 prefix = substr(line, 1, index(line, defundef) - 1)
20918 if (D_is_set[macro]) {
20919 # Preserve the white space surrounding the "#".
20920 print prefix "define", macro P[macro] D[macro]
20921 next
20922 } else {
20923 # Replace #undef with comments. This is necessary, for example,
20924 # in the case of _POSIX_SOURCE, which is predefined and required
20925 # on some systems where configure will not decide to define it.
20926 if (defundef == "undef") {
20927 print "/*", prefix defundef, macro, "*/"
20928 next
20929 }
20930 }
20931}
20932{ print }
20933_ACAWK
42ecbf5e 20934_ACEOF
81ecdfbb 20935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 20936 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 20937fi # test -n "$CONFIG_HEADERS"
42ecbf5e 20938
81ecdfbb
RW
20939
20940eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20941shift
20942for ac_tag
20943do
20944 case $ac_tag in
20945 :[FHLC]) ac_mode=$ac_tag; continue;;
20946 esac
20947 case $ac_mode$ac_tag in
20948 :[FHL]*:*);;
d0ac1c44 20949 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
20950 :[FH]-) ac_tag=-:-;;
20951 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20952 esac
20953 ac_save_IFS=$IFS
20954 IFS=:
20955 set x $ac_tag
20956 IFS=$ac_save_IFS
20957 shift
20958 ac_file=$1
20959 shift
20960
20961 case $ac_mode in
20962 :L) ac_source=$1;;
20963 :[FH])
20964 ac_file_inputs=
20965 for ac_f
20966 do
20967 case $ac_f in
d0ac1c44 20968 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
20969 *) # Look for the file first in the build tree, then in the source tree
20970 # (if the path is not absolute). The absolute path cannot be DOS-style,
20971 # because $ac_f cannot contain `:'.
20972 test -f "$ac_f" ||
20973 case $ac_f in
20974 [\\/$]*) false;;
20975 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20976 esac ||
d0ac1c44 20977 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
20978 esac
20979 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20980 as_fn_append ac_file_inputs " '$ac_f'"
20981 done
20982
20983 # Let's still pretend it is `configure' which instantiates (i.e., don't
20984 # use $as_me), people would be surprised to read:
20985 # /* config.h. Generated by config.status. */
20986 configure_input='Generated from '`
20987 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20988 `' by configure.'
20989 if test x"$ac_file" != x-; then
20990 configure_input="$ac_file. $configure_input"
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20992$as_echo "$as_me: creating $ac_file" >&6;}
252b5132 20993 fi
81ecdfbb
RW
20994 # Neutralize special characters interpreted by sed in replacement strings.
20995 case $configure_input in #(
20996 *\&* | *\|* | *\\* )
20997 ac_sed_conf_input=`$as_echo "$configure_input" |
20998 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20999 *) ac_sed_conf_input=$configure_input;;
21000 esac
252b5132 21001
81ecdfbb 21002 case $ac_tag in
d0ac1c44
SM
21003 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
21005 esac
21006 ;;
252b5132
RH
21007 esac
21008
81ecdfbb 21009 ac_dir=`$as_dirname -- "$ac_file" ||
42ecbf5e
DJ
21010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21011 X"$ac_file" : 'X\(//\)[^/]' \| \
21012 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
21013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21014$as_echo X"$ac_file" |
21015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21016 s//\1/
21017 q
21018 }
21019 /^X\(\/\/\)[^/].*/{
21020 s//\1/
21021 q
21022 }
21023 /^X\(\/\/\)$/{
21024 s//\1/
21025 q
21026 }
21027 /^X\(\/\).*/{
21028 s//\1/
21029 q
21030 }
21031 s/.*/./; q'`
21032 as_dir="$ac_dir"; as_fn_mkdir_p
42ecbf5e
DJ
21033 ac_builddir=.
21034
81ecdfbb
RW
21035case "$ac_dir" in
21036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21037*)
21038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21039 # A ".." for each directory in $ac_dir_suffix.
21040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21041 case $ac_top_builddir_sub in
21042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21044 esac ;;
21045esac
21046ac_abs_top_builddir=$ac_pwd
21047ac_abs_builddir=$ac_pwd$ac_dir_suffix
21048# for backward compatibility:
21049ac_top_builddir=$ac_top_build_prefix
252b5132 21050
42ecbf5e 21051case $srcdir in
81ecdfbb 21052 .) # We are building in place.
42ecbf5e 21053 ac_srcdir=.
81ecdfbb
RW
21054 ac_top_srcdir=$ac_top_builddir_sub
21055 ac_abs_top_srcdir=$ac_pwd ;;
21056 [\\/]* | ?:[\\/]* ) # Absolute name.
42ecbf5e 21057 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
21058 ac_top_srcdir=$srcdir
21059 ac_abs_top_srcdir=$srcdir ;;
21060 *) # Relative name.
21061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21062 ac_top_srcdir=$ac_top_build_prefix$srcdir
21063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42ecbf5e 21064esac
81ecdfbb 21065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42ecbf5e 21066
252b5132 21067
81ecdfbb
RW
21068 case $ac_mode in
21069 :F)
21070 #
21071 # CONFIG_FILE
21072 #
e5a52504 21073
42ecbf5e
DJ
21074 case $INSTALL in
21075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
21076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21077 esac
21078 ac_MKDIR_P=$MKDIR_P
21079 case $MKDIR_P in
21080 [\\/$]* | ?:[\\/]* ) ;;
21081 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d15b04bd 21082 esac
81ecdfbb 21083_ACEOF
e5a52504 21084
81ecdfbb
RW
21085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21086# If the template does not know about datarootdir, expand it.
21087# FIXME: This hack should be removed a few years after 2.60.
21088ac_datarootdir_hack=; ac_datarootdir_seen=
21089ac_sed_dataroot='
21090/datarootdir/ {
21091 p
21092 q
21093}
21094/@datadir@/p
21095/@docdir@/p
21096/@infodir@/p
21097/@localedir@/p
21098/@mandir@/p'
21099case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21100*datarootdir*) ac_datarootdir_seen=yes;;
21101*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21103$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21104_ACEOF
21105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21106 ac_datarootdir_hack='
21107 s&@datadir@&$datadir&g
21108 s&@docdir@&$docdir&g
21109 s&@infodir@&$infodir&g
21110 s&@localedir@&$localedir&g
21111 s&@mandir@&$mandir&g
21112 s&\\\${datarootdir}&$datarootdir&g' ;;
21113esac
42ecbf5e 21114_ACEOF
81ecdfbb
RW
21115
21116# Neutralize VPATH when `$srcdir' = `.'.
21117# Shell code in configure.ac might set extrasub.
21118# FIXME: do we really want to maintain this feature?
21119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21120ac_sed_extra="$ac_vpsub
42ecbf5e
DJ
21121$extrasub
21122_ACEOF
81ecdfbb 21123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42ecbf5e
DJ
21124:t
21125/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
21126s|@configure_input@|$ac_sed_conf_input|;t t
21127s&@top_builddir@&$ac_top_builddir_sub&;t t
21128s&@top_build_prefix@&$ac_top_build_prefix&;t t
21129s&@srcdir@&$ac_srcdir&;t t
21130s&@abs_srcdir@&$ac_abs_srcdir&;t t
21131s&@top_srcdir@&$ac_top_srcdir&;t t
21132s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21133s&@builddir@&$ac_builddir&;t t
21134s&@abs_builddir@&$ac_abs_builddir&;t t
21135s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21136s&@INSTALL@&$ac_INSTALL&;t t
21137s&@MKDIR_P@&$ac_MKDIR_P&;t t
21138$ac_datarootdir_hack
21139"
50ff67e6 21140eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
d0ac1c44 21141 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
21142
21143test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
21144 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21145 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21146 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 21147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 21148which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 21149$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 21150which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 21151
d0ac1c44 21152 rm -f "$ac_tmp/stdin"
42ecbf5e 21153 case $ac_file in
d0ac1c44
SM
21154 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21155 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 21156 esac \
d0ac1c44 21157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
21158 ;;
21159 :H)
21160 #
21161 # CONFIG_HEADER
21162 #
42ecbf5e 21163 if test x"$ac_file" != x-; then
81ecdfbb
RW
21164 {
21165 $as_echo "/* $configure_input */" \
d0ac1c44
SM
21166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21167 } >"$ac_tmp/config.h" \
21168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21169 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21171$as_echo "$as_me: $ac_file is unchanged" >&6;}
42ecbf5e 21172 else
81ecdfbb 21173 rm -f "$ac_file"
d0ac1c44
SM
21174 mv "$ac_tmp/config.h" "$ac_file" \
21175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
252b5132 21176 fi
42ecbf5e 21177 else
81ecdfbb 21178 $as_echo "/* $configure_input */" \
d0ac1c44
SM
21179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21180 || as_fn_error $? "could not create -" "$LINENO" 5
e5a52504 21181 fi
81ecdfbb
RW
21182# Compute "$ac_file"'s index in $config_headers.
21183_am_arg="$ac_file"
42ecbf5e
DJ
21184_am_stamp_count=1
21185for _am_header in $config_headers :; do
21186 case $_am_header in
81ecdfbb 21187 $_am_arg | $_am_arg:* )
42ecbf5e
DJ
21188 break ;;
21189 * )
21190 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21191 esac
21192done
81ecdfbb
RW
21193echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21194$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21195 X"$_am_arg" : 'X\(//\)[^/]' \| \
21196 X"$_am_arg" : 'X\(//\)$' \| \
21197 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21198$as_echo X"$_am_arg" |
21199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21200 s//\1/
21201 q
21202 }
21203 /^X\(\/\/\)[^/].*/{
21204 s//\1/
21205 q
21206 }
21207 /^X\(\/\/\)$/{
21208 s//\1/
21209 q
21210 }
21211 /^X\(\/\).*/{
21212 s//\1/
21213 q
21214 }
21215 s/.*/./; q'`/stamp-h$_am_stamp_count
21216 ;;
42ecbf5e 21217
81ecdfbb
RW
21218 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21219$as_echo "$as_me: executing $ac_file commands" >&6;}
21220 ;;
21221 esac
42ecbf5e
DJ
21222
21223
81ecdfbb
RW
21224 case $ac_file$ac_mode in
21225 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 21226 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
21227 # are listed without --file. Let's play safe and only enable the eval
21228 # if we detect the quoting.
5bbe6ec5
NC
21229 case $CONFIG_FILES in
21230 *\'*) eval set x "$CONFIG_FILES" ;;
21231 *) set x $CONFIG_FILES ;;
21232 esac
81ecdfbb 21233 shift
5bbe6ec5 21234 for mf
81ecdfbb
RW
21235 do
21236 # Strip MF so we end up with the name of the file.
5bbe6ec5
NC
21237 mf=`echo "$mf" | sed -e 's/:.*$//'`
21238 # Check whether this is an Automake generated Makefile or not.
21239 # We used to match only the files named 'Makefile.in', but
21240 # some people rename them; so instead we look at the file content.
21241 # Grep'ing the first line is not enough: some people post-process
21242 # each Makefile.in and add a new line on top of each file to say so.
21243 # Grep'ing the whole file is not good either: AIX grep has a line
81ecdfbb 21244 # limit of 2048, but all sed's we know have understand at least 4000.
5bbe6ec5
NC
21245 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21246 dirpart=`$as_dirname -- "$mf" ||
21247$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21248 X"$mf" : 'X\(//\)[^/]' \| \
21249 X"$mf" : 'X\(//\)$' \| \
21250 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21251$as_echo X"$mf" |
81ecdfbb
RW
21252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21253 s//\1/
21254 q
21255 }
21256 /^X\(\/\/\)[^/].*/{
21257 s//\1/
21258 q
21259 }
21260 /^X\(\/\/\)$/{
21261 s//\1/
21262 q
21263 }
21264 /^X\(\/\).*/{
21265 s//\1/
21266 q
21267 }
21268 s/.*/./; q'`
5bbe6ec5
NC
21269 else
21270 continue
21271 fi
21272 # Extract the definition of DEPDIR, am__include, and am__quote
21273 # from the Makefile without running 'make'.
21274 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21275 test -z "$DEPDIR" && continue
21276 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21277 test -z "$am__include" && continue
21278 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21279 # Find all dependency output files, they are included files with
21280 # $(DEPDIR) in their names. We invoke sed twice because it is the
21281 # simplest approach to changing $(DEPDIR) to its actual value in the
21282 # expansion.
21283 for file in `sed -n "
21284 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21285 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21286 # Make sure the directory exists.
21287 test -f "$dirpart/$file" && continue
21288 fdir=`$as_dirname -- "$file" ||
21289$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21290 X"$file" : 'X\(//\)[^/]' \| \
21291 X"$file" : 'X\(//\)$' \| \
21292 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21293$as_echo X"$file" |
21294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
81ecdfbb
RW
21295 s//\1/
21296 q
21297 }
5bbe6ec5 21298 /^X\(\/\/\)[^/].*/{
b232f81a
NA
21299 s//\1/
21300 q
21301 }
5bbe6ec5
NC
21302 /^X\(\/\/\)$/{
21303 s//\1/
21304 q
21305 }
21306 /^X\(\/\).*/{
81ecdfbb
RW
21307 s//\1/
21308 q
21309 }
21310 s/.*/./; q'`
5bbe6ec5
NC
21311 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21312 # echo "creating $dirpart/$file"
21313 echo '# dummy' > "$dirpart/$file"
21314 done
42ecbf5e 21315 done
81ecdfbb 21316}
d7040cdb 21317 ;;
81ecdfbb 21318 "libtool":C)
d7040cdb
SE
21319
21320 # See if we are running on zsh, and set the options which allow our
21321 # commands through without removal of \ escapes.
21322 if test -n "${ZSH_VERSION+set}" ; then
21323 setopt NO_GLOB_SUBST
21324 fi
21325
21326 cfgfile="${ofile}T"
21327 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21328 $RM "$cfgfile"
21329
21330 cat <<_LT_EOF >> "$cfgfile"
21331#! $SHELL
21332
21333# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
b214d478 21334# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
21335# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21336# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21337#
b214d478 21338# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3725885a 21339# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
b214d478 21340# Written by Gordon Matzigkeit, 1996
d7040cdb 21341#
b214d478 21342# This file is part of GNU Libtool.
d7040cdb 21343#
b214d478
SE
21344# GNU Libtool is free software; you can redistribute it and/or
21345# modify it under the terms of the GNU General Public License as
21346# published by the Free Software Foundation; either version 2 of
21347# the License, or (at your option) any later version.
d7040cdb 21348#
b214d478
SE
21349# As a special exception to the GNU General Public License,
21350# if you distribute this file as part of a program or library that
21351# is built using GNU Libtool, you may include this file under the
21352# same distribution terms that you use for the rest of that program.
d7040cdb 21353#
b214d478
SE
21354# GNU Libtool is distributed in the hope that it will be useful,
21355# but WITHOUT ANY WARRANTY; without even the implied warranty of
21356# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21357# GNU General Public License for more details.
d7040cdb 21358#
b214d478
SE
21359# You should have received a copy of the GNU General Public License
21360# along with GNU Libtool; see the file COPYING. If not, a copy
21361# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21362# obtained by writing to the Free Software Foundation, Inc.,
21363# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
21364
21365
21366# The names of the tagged configurations supported by this script.
3cb62297 21367available_tags="CXX "
d7040cdb
SE
21368
21369# ### BEGIN LIBTOOL CONFIG
21370
21371# Which release of libtool.m4 was used?
21372macro_version=$macro_version
21373macro_revision=$macro_revision
21374
21375# Whether or not to build shared libraries.
21376build_libtool_libs=$enable_shared
21377
21378# Whether or not to build static libraries.
21379build_old_libs=$enable_static
21380
21381# What type of objects to build.
21382pic_mode=$pic_mode
21383
21384# Whether or not to optimize for fast installation.
21385fast_install=$enable_fast_install
21386
3725885a
RW
21387# Shell to use when invoking shell scripts.
21388SHELL=$lt_SHELL
21389
21390# An echo program that protects backslashes.
21391ECHO=$lt_ECHO
21392
d7040cdb
SE
21393# The host system.
21394host_alias=$host_alias
21395host=$host
21396host_os=$host_os
21397
21398# The build system.
21399build_alias=$build_alias
21400build=$build
21401build_os=$build_os
21402
21403# A sed program that does not truncate output.
21404SED=$lt_SED
21405
21406# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21407Xsed="\$SED -e 1s/^X//"
21408
21409# A grep program that handles long lines.
21410GREP=$lt_GREP
21411
21412# An ERE matcher.
21413EGREP=$lt_EGREP
21414
21415# A literal string matcher.
21416FGREP=$lt_FGREP
21417
21418# A BSD- or MS-compatible name lister.
21419NM=$lt_NM
21420
21421# Whether we need soft or hard links.
21422LN_S=$lt_LN_S
21423
21424# What is the maximum length of a command?
21425max_cmd_len=$max_cmd_len
21426
21427# Object file suffix (normally "o").
21428objext=$ac_objext
21429
21430# Executable file suffix (normally "").
21431exeext=$exeext
21432
21433# whether the shell understands "unset".
21434lt_unset=$lt_unset
21435
21436# turn spaces into newlines.
21437SP2NL=$lt_lt_SP2NL
21438
21439# turn newlines into spaces.
21440NL2SP=$lt_lt_NL2SP
21441
b214d478
SE
21442# An object symbol dumper.
21443OBJDUMP=$lt_OBJDUMP
21444
d7040cdb
SE
21445# Method to check whether dependent libraries are shared objects.
21446deplibs_check_method=$lt_deplibs_check_method
21447
21448# Command to use when deplibs_check_method == "file_magic".
21449file_magic_cmd=$lt_file_magic_cmd
21450
21451# The archiver.
21452AR=$lt_AR
21453AR_FLAGS=$lt_AR_FLAGS
21454
21455# A symbol stripping program.
21456STRIP=$lt_STRIP
21457
21458# Commands used to install an old-style archive.
21459RANLIB=$lt_RANLIB
21460old_postinstall_cmds=$lt_old_postinstall_cmds
21461old_postuninstall_cmds=$lt_old_postuninstall_cmds
21462
3725885a
RW
21463# Whether to use a lock for old archive extraction.
21464lock_old_archive_extraction=$lock_old_archive_extraction
21465
d7040cdb
SE
21466# A C compiler.
21467LTCC=$lt_CC
21468
21469# LTCC compiler flags.
21470LTCFLAGS=$lt_CFLAGS
21471
21472# Take the output of nm and produce a listing of raw symbols and C names.
21473global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21474
21475# Transform the output of nm in a proper C declaration.
21476global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21477
21478# Transform the output of nm in a C name address pair.
21479global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21480
b214d478
SE
21481# Transform the output of nm in a C name address pair when lib prefix is needed.
21482global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21483
d7040cdb
SE
21484# The name of the directory that contains temporary libtool files.
21485objdir=$objdir
21486
d7040cdb
SE
21487# Used to examine libraries when file_magic_cmd begins with "file".
21488MAGIC_CMD=$MAGIC_CMD
21489
21490# Must we lock files when doing compilation?
21491need_locks=$lt_need_locks
21492
b214d478
SE
21493# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21494DSYMUTIL=$lt_DSYMUTIL
21495
21496# Tool to change global to local symbols on Mac OS X.
21497NMEDIT=$lt_NMEDIT
21498
21499# Tool to manipulate fat objects and archives on Mac OS X.
21500LIPO=$lt_LIPO
21501
21502# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21503OTOOL=$lt_OTOOL
21504
21505# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21506OTOOL64=$lt_OTOOL64
21507
d7040cdb
SE
21508# Old archive suffix (normally "a").
21509libext=$libext
21510
21511# Shared library suffix (normally ".so").
21512shrext_cmds=$lt_shrext_cmds
21513
21514# The commands to extract the exported symbol list from a shared archive.
21515extract_expsyms_cmds=$lt_extract_expsyms_cmds
21516
21517# Variables whose values should be saved in libtool wrapper scripts and
21518# restored at link time.
21519variables_saved_for_relink=$lt_variables_saved_for_relink
21520
21521# Do we need the "lib" prefix for modules?
21522need_lib_prefix=$need_lib_prefix
21523
21524# Do we need a version for libraries?
21525need_version=$need_version
21526
21527# Library versioning type.
21528version_type=$version_type
21529
21530# Shared library runtime path variable.
21531runpath_var=$runpath_var
21532
21533# Shared library path variable.
21534shlibpath_var=$shlibpath_var
21535
21536# Is shlibpath searched before the hard-coded library search path?
21537shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21538
21539# Format of library name prefix.
21540libname_spec=$lt_libname_spec
21541
21542# List of archive names. First name is the real one, the rest are links.
21543# The last name is the one that the linker finds with -lNAME
21544library_names_spec=$lt_library_names_spec
21545
21546# The coded name of the library, if different from the real name.
21547soname_spec=$lt_soname_spec
21548
3725885a
RW
21549# Permission mode override for installation of shared libraries.
21550install_override_mode=$lt_install_override_mode
21551
d7040cdb
SE
21552# Command to use after installation of a shared archive.
21553postinstall_cmds=$lt_postinstall_cmds
21554
21555# Command to use after uninstallation of a shared archive.
21556postuninstall_cmds=$lt_postuninstall_cmds
21557
21558# Commands used to finish a libtool library installation in a directory.
21559finish_cmds=$lt_finish_cmds
21560
21561# As "finish_cmds", except a single script fragment to be evaled but
21562# not shown.
21563finish_eval=$lt_finish_eval
21564
21565# Whether we should hardcode library paths into libraries.
21566hardcode_into_libs=$hardcode_into_libs
21567
21568# Compile-time system search path for libraries.
21569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21570
21571# Run-time system search path for libraries.
21572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21573
21574# Whether dlopen is supported.
21575dlopen_support=$enable_dlopen
21576
21577# Whether dlopen of programs is supported.
21578dlopen_self=$enable_dlopen_self
21579
21580# Whether dlopen of statically linked programs is supported.
21581dlopen_self_static=$enable_dlopen_self_static
21582
21583# Commands to strip libraries.
21584old_striplib=$lt_old_striplib
21585striplib=$lt_striplib
21586
21587
21588# The linker used to build libraries.
21589LD=$lt_LD
21590
3725885a
RW
21591# How to create reloadable object files.
21592reload_flag=$lt_reload_flag
21593reload_cmds=$lt_reload_cmds
21594
d7040cdb
SE
21595# Commands used to build an old-style archive.
21596old_archive_cmds=$lt_old_archive_cmds
21597
21598# A language specific compiler.
21599CC=$lt_compiler
21600
21601# Is the compiler the GNU compiler?
21602with_gcc=$GCC
21603
21604# Compiler flag to turn off builtin functions.
21605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21606
21607# How to pass a linker flag through the compiler.
21608wl=$lt_lt_prog_compiler_wl
21609
21610# Additional compiler flags for building library objects.
21611pic_flag=$lt_lt_prog_compiler_pic
21612
21613# Compiler flag to prevent dynamic linking.
21614link_static_flag=$lt_lt_prog_compiler_static
21615
21616# Does compiler simultaneously support -c and -o options?
21617compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21618
21619# Whether or not to add -lc for building shared libraries.
21620build_libtool_need_lc=$archive_cmds_need_lc
21621
21622# Whether or not to disallow shared libs when runtime libs are static.
21623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21624
21625# Compiler flag to allow reflexive dlopens.
21626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21627
21628# Compiler flag to generate shared objects directly from archives.
21629whole_archive_flag_spec=$lt_whole_archive_flag_spec
21630
21631# Whether the compiler copes with passing no objects directly.
21632compiler_needs_object=$lt_compiler_needs_object
21633
21634# Create an old-style archive from a shared archive.
21635old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21636
21637# Create a temporary old-style archive to link instead of a shared archive.
21638old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21639
21640# Commands used to build a shared archive.
21641archive_cmds=$lt_archive_cmds
21642archive_expsym_cmds=$lt_archive_expsym_cmds
21643
21644# Commands used to build a loadable module if different from building
21645# a shared archive.
21646module_cmds=$lt_module_cmds
21647module_expsym_cmds=$lt_module_expsym_cmds
21648
21649# Whether we are building with GNU ld or not.
21650with_gnu_ld=$lt_with_gnu_ld
21651
21652# Flag that allows shared libraries with undefined symbols to be built.
21653allow_undefined_flag=$lt_allow_undefined_flag
21654
21655# Flag that enforces no undefined symbols.
21656no_undefined_flag=$lt_no_undefined_flag
21657
21658# Flag to hardcode \$libdir into a binary during linking.
21659# This must work even if \$libdir does not exist
21660hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21661
21662# If ld is used when linking, flag to hardcode \$libdir into a binary
21663# during linking. This must work even if \$libdir does not exist.
21664hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21665
21666# Whether we need a single "-rpath" flag with a separated argument.
21667hardcode_libdir_separator=$lt_hardcode_libdir_separator
21668
21669# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21670# DIR into the resulting binary.
21671hardcode_direct=$hardcode_direct
21672
21673# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21674# DIR into the resulting binary and the resulting library dependency is
21675# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21676# library is relocated.
21677hardcode_direct_absolute=$hardcode_direct_absolute
21678
21679# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21680# into the resulting binary.
21681hardcode_minus_L=$hardcode_minus_L
21682
21683# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21684# into the resulting binary.
21685hardcode_shlibpath_var=$hardcode_shlibpath_var
21686
21687# Set to "yes" if building a shared library automatically hardcodes DIR
21688# into the library and all subsequent libraries and executables linked
21689# against it.
21690hardcode_automatic=$hardcode_automatic
21691
21692# Set to yes if linker adds runtime paths of dependent libraries
21693# to runtime path list.
21694inherit_rpath=$inherit_rpath
21695
21696# Whether libtool must link a program against all its dependency libraries.
21697link_all_deplibs=$link_all_deplibs
21698
21699# Fix the shell variable \$srcfile for the compiler.
21700fix_srcfile_path=$lt_fix_srcfile_path
21701
21702# Set to "yes" if exported symbols are required.
21703always_export_symbols=$always_export_symbols
21704
21705# The commands to list exported symbols.
21706export_symbols_cmds=$lt_export_symbols_cmds
21707
21708# Symbols that should not be listed in the preloaded symbols.
21709exclude_expsyms=$lt_exclude_expsyms
21710
21711# Symbols that must always be exported.
21712include_expsyms=$lt_include_expsyms
21713
21714# Commands necessary for linking programs (against libraries) with templates.
21715prelink_cmds=$lt_prelink_cmds
21716
21717# Specify filename containing input files.
21718file_list_spec=$lt_file_list_spec
21719
21720# How to hardcode a shared library path into an executable.
21721hardcode_action=$hardcode_action
21722
3cb62297
L
21723# The directories searched by this compiler when creating a shared library.
21724compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21725
21726# Dependencies to place before and after the objects being linked to
21727# create a shared library.
21728predep_objects=$lt_predep_objects
21729postdep_objects=$lt_postdep_objects
21730predeps=$lt_predeps
21731postdeps=$lt_postdeps
21732
21733# The library search path used internally by the compiler when linking
21734# a shared library.
21735compiler_lib_search_path=$lt_compiler_lib_search_path
21736
d7040cdb
SE
21737# ### END LIBTOOL CONFIG
21738
21739_LT_EOF
21740
21741 case $host_os in
21742 aix3*)
21743 cat <<\_LT_EOF >> "$cfgfile"
21744# AIX sometimes has problems with the GCC collect2 program. For some
21745# reason, if we set the COLLECT_NAMES environment variable, the problems
21746# vanish in a puff of smoke.
21747if test "X${COLLECT_NAMES+set}" != Xset; then
21748 COLLECT_NAMES=
21749 export COLLECT_NAMES
21750fi
21751_LT_EOF
21752 ;;
21753 esac
21754
21755
21756ltmain="$ac_aux_dir/ltmain.sh"
21757
21758
21759 # We use sed instead of cat because bash on DJGPP gets confused if
21760 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21761 # text mode, it properly converts lines to CR/LF. This bash problem
21762 # is reportedly fixed, but why not run on old versions too?
21763 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21764 || (rm -f "$cfgfile"; exit 1)
21765
21766 case $xsi_shell in
21767 yes)
21768 cat << \_LT_EOF >> "$cfgfile"
b214d478 21769
d7040cdb
SE
21770# func_dirname file append nondir_replacement
21771# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21772# otherwise set result to NONDIR_REPLACEMENT.
21773func_dirname ()
21774{
21775 case ${1} in
21776 */*) func_dirname_result="${1%/*}${2}" ;;
21777 * ) func_dirname_result="${3}" ;;
21778 esac
21779}
21780
21781# func_basename file
21782func_basename ()
21783{
21784 func_basename_result="${1##*/}"
21785}
21786
b214d478
SE
21787# func_dirname_and_basename file append nondir_replacement
21788# perform func_basename and func_dirname in a single function
21789# call:
21790# dirname: Compute the dirname of FILE. If nonempty,
21791# add APPEND to the result, otherwise set result
21792# to NONDIR_REPLACEMENT.
21793# value returned in "$func_dirname_result"
21794# basename: Compute filename of FILE.
21795# value retuned in "$func_basename_result"
21796# Implementation must be kept synchronized with func_dirname
21797# and func_basename. For efficiency, we do not delegate to
21798# those functions but instead duplicate the functionality here.
21799func_dirname_and_basename ()
21800{
21801 case ${1} in
21802 */*) func_dirname_result="${1%/*}${2}" ;;
21803 * ) func_dirname_result="${3}" ;;
21804 esac
21805 func_basename_result="${1##*/}"
21806}
21807
d7040cdb
SE
21808# func_stripname prefix suffix name
21809# strip PREFIX and SUFFIX off of NAME.
21810# PREFIX and SUFFIX must not contain globbing or regex special
21811# characters, hashes, percent signs, but SUFFIX may contain a leading
21812# dot (in which case that matches only a dot).
21813func_stripname ()
21814{
21815 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
21816 # positional parameters, so assign one to ordinary parameter first.
21817 func_stripname_result=${3}
21818 func_stripname_result=${func_stripname_result#"${1}"}
21819 func_stripname_result=${func_stripname_result%"${2}"}
21820}
21821
21822# func_opt_split
21823func_opt_split ()
21824{
21825 func_opt_split_opt=${1%%=*}
21826 func_opt_split_arg=${1#*=}
21827}
21828
21829# func_lo2o object
21830func_lo2o ()
21831{
21832 case ${1} in
21833 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
21834 *) func_lo2o_result=${1} ;;
21835 esac
21836}
b214d478
SE
21837
21838# func_xform libobj-or-source
21839func_xform ()
21840{
21841 func_xform_result=${1%.*}.lo
21842}
21843
21844# func_arith arithmetic-term...
21845func_arith ()
21846{
21847 func_arith_result=$(( $* ))
21848}
21849
21850# func_len string
21851# STRING may not start with a hyphen.
21852func_len ()
21853{
21854 func_len_result=${#1}
21855}
21856
d7040cdb
SE
21857_LT_EOF
21858 ;;
21859 *) # Bourne compatible functions.
21860 cat << \_LT_EOF >> "$cfgfile"
b214d478 21861
d7040cdb
SE
21862# func_dirname file append nondir_replacement
21863# Compute the dirname of FILE. If nonempty, add APPEND to the result,
21864# otherwise set result to NONDIR_REPLACEMENT.
21865func_dirname ()
21866{
21867 # Extract subdirectory from the argument.
3725885a 21868 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
d7040cdb
SE
21869 if test "X$func_dirname_result" = "X${1}"; then
21870 func_dirname_result="${3}"
21871 else
21872 func_dirname_result="$func_dirname_result${2}"
21873 fi
21874}
21875
21876# func_basename file
21877func_basename ()
21878{
3725885a 21879 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
d7040cdb
SE
21880}
21881
b214d478 21882
d7040cdb
SE
21883# func_stripname prefix suffix name
21884# strip PREFIX and SUFFIX off of NAME.
21885# PREFIX and SUFFIX must not contain globbing or regex special
21886# characters, hashes, percent signs, but SUFFIX may contain a leading
21887# dot (in which case that matches only a dot).
21888# func_strip_suffix prefix name
21889func_stripname ()
21890{
21891 case ${2} in
3725885a
RW
21892 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
21893 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
d7040cdb
SE
21894 esac
21895}
21896
21897# sed scripts:
21898my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
21899my_sed_long_arg='1s/^-[^=]*=//'
21900
21901# func_opt_split
21902func_opt_split ()
21903{
3725885a
RW
21904 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
21905 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
d7040cdb
SE
21906}
21907
21908# func_lo2o object
21909func_lo2o ()
21910{
3725885a 21911 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
d7040cdb 21912}
b214d478
SE
21913
21914# func_xform libobj-or-source
21915func_xform ()
21916{
3725885a 21917 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
b214d478
SE
21918}
21919
21920# func_arith arithmetic-term...
21921func_arith ()
21922{
21923 func_arith_result=`expr "$@"`
21924}
21925
21926# func_len string
21927# STRING may not start with a hyphen.
21928func_len ()
21929{
21930 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
21931}
21932
d7040cdb
SE
21933_LT_EOF
21934esac
21935
21936case $lt_shell_append in
21937 yes)
21938 cat << \_LT_EOF >> "$cfgfile"
21939
21940# func_append var value
21941# Append VALUE to the end of shell variable VAR.
21942func_append ()
21943{
21944 eval "$1+=\$2"
21945}
21946_LT_EOF
21947 ;;
21948 *)
21949 cat << \_LT_EOF >> "$cfgfile"
21950
21951# func_append var value
21952# Append VALUE to the end of shell variable VAR.
21953func_append ()
21954{
21955 eval "$1=\$$1\$2"
21956}
b214d478 21957
d7040cdb
SE
21958_LT_EOF
21959 ;;
21960 esac
21961
21962
21963 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
21964 || (rm -f "$cfgfile"; exit 1)
21965
21966 mv -f "$cfgfile" "$ofile" ||
21967 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21968 chmod +x "$ofile"
21969
3cb62297
L
21970
21971 cat <<_LT_EOF >> "$ofile"
21972
21973# ### BEGIN LIBTOOL TAG CONFIG: CXX
21974
21975# The linker used to build libraries.
21976LD=$lt_LD_CXX
21977
21978# How to create reloadable object files.
21979reload_flag=$lt_reload_flag_CXX
21980reload_cmds=$lt_reload_cmds_CXX
21981
21982# Commands used to build an old-style archive.
21983old_archive_cmds=$lt_old_archive_cmds_CXX
21984
21985# A language specific compiler.
21986CC=$lt_compiler_CXX
21987
21988# Is the compiler the GNU compiler?
21989with_gcc=$GCC_CXX
21990
21991# Compiler flag to turn off builtin functions.
21992no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21993
21994# How to pass a linker flag through the compiler.
21995wl=$lt_lt_prog_compiler_wl_CXX
21996
21997# Additional compiler flags for building library objects.
21998pic_flag=$lt_lt_prog_compiler_pic_CXX
21999
22000# Compiler flag to prevent dynamic linking.
22001link_static_flag=$lt_lt_prog_compiler_static_CXX
22002
22003# Does compiler simultaneously support -c and -o options?
22004compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22005
22006# Whether or not to add -lc for building shared libraries.
22007build_libtool_need_lc=$archive_cmds_need_lc_CXX
22008
22009# Whether or not to disallow shared libs when runtime libs are static.
22010allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22011
22012# Compiler flag to allow reflexive dlopens.
22013export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22014
22015# Compiler flag to generate shared objects directly from archives.
22016whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22017
22018# Whether the compiler copes with passing no objects directly.
22019compiler_needs_object=$lt_compiler_needs_object_CXX
22020
22021# Create an old-style archive from a shared archive.
22022old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22023
22024# Create a temporary old-style archive to link instead of a shared archive.
22025old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22026
22027# Commands used to build a shared archive.
22028archive_cmds=$lt_archive_cmds_CXX
22029archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22030
22031# Commands used to build a loadable module if different from building
22032# a shared archive.
22033module_cmds=$lt_module_cmds_CXX
22034module_expsym_cmds=$lt_module_expsym_cmds_CXX
22035
22036# Whether we are building with GNU ld or not.
22037with_gnu_ld=$lt_with_gnu_ld_CXX
22038
22039# Flag that allows shared libraries with undefined symbols to be built.
22040allow_undefined_flag=$lt_allow_undefined_flag_CXX
22041
22042# Flag that enforces no undefined symbols.
22043no_undefined_flag=$lt_no_undefined_flag_CXX
22044
22045# Flag to hardcode \$libdir into a binary during linking.
22046# This must work even if \$libdir does not exist
22047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22048
22049# If ld is used when linking, flag to hardcode \$libdir into a binary
22050# during linking. This must work even if \$libdir does not exist.
22051hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22052
22053# Whether we need a single "-rpath" flag with a separated argument.
22054hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22055
22056# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22057# DIR into the resulting binary.
22058hardcode_direct=$hardcode_direct_CXX
22059
22060# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22061# DIR into the resulting binary and the resulting library dependency is
22062# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22063# library is relocated.
22064hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22065
22066# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22067# into the resulting binary.
22068hardcode_minus_L=$hardcode_minus_L_CXX
22069
22070# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22071# into the resulting binary.
22072hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22073
22074# Set to "yes" if building a shared library automatically hardcodes DIR
22075# into the library and all subsequent libraries and executables linked
22076# against it.
22077hardcode_automatic=$hardcode_automatic_CXX
22078
22079# Set to yes if linker adds runtime paths of dependent libraries
22080# to runtime path list.
22081inherit_rpath=$inherit_rpath_CXX
22082
22083# Whether libtool must link a program against all its dependency libraries.
22084link_all_deplibs=$link_all_deplibs_CXX
22085
22086# Fix the shell variable \$srcfile for the compiler.
22087fix_srcfile_path=$lt_fix_srcfile_path_CXX
22088
22089# Set to "yes" if exported symbols are required.
22090always_export_symbols=$always_export_symbols_CXX
22091
22092# The commands to list exported symbols.
22093export_symbols_cmds=$lt_export_symbols_cmds_CXX
22094
22095# Symbols that should not be listed in the preloaded symbols.
22096exclude_expsyms=$lt_exclude_expsyms_CXX
22097
22098# Symbols that must always be exported.
22099include_expsyms=$lt_include_expsyms_CXX
22100
22101# Commands necessary for linking programs (against libraries) with templates.
22102prelink_cmds=$lt_prelink_cmds_CXX
22103
22104# Specify filename containing input files.
22105file_list_spec=$lt_file_list_spec_CXX
22106
22107# How to hardcode a shared library path into an executable.
22108hardcode_action=$hardcode_action_CXX
22109
22110# The directories searched by this compiler when creating a shared library.
22111compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22112
22113# Dependencies to place before and after the objects being linked to
22114# create a shared library.
22115predep_objects=$lt_predep_objects_CXX
22116postdep_objects=$lt_postdep_objects_CXX
22117predeps=$lt_predeps_CXX
22118postdeps=$lt_postdeps_CXX
22119
22120# The library search path used internally by the compiler when linking
22121# a shared library.
22122compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22123
22124# ### END LIBTOOL TAG CONFIG: CXX
22125_LT_EOF
22126
42ecbf5e 22127 ;;
81ecdfbb 22128 "default-1":C)
20e95c23 22129 for ac_file in $CONFIG_FILES; do
862776f2
AA
22130 # Support "outfile[:infile[:infile...]]"
22131 case "$ac_file" in
22132 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22133 esac
22134 # PO directories have a Makefile.in generated from Makefile.in.in.
22135 case "$ac_file" in */Makefile.in)
22136 # Adjust a relative srcdir.
22137 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22138 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
22139 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22140 # In autoconf-2.13 it is called $ac_given_srcdir.
22141 # In autoconf-2.50 it is called $srcdir.
22142 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22143 case "$ac_given_srcdir" in
22144 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22145 /*) top_srcdir="$ac_given_srcdir" ;;
22146 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22147 esac
22148 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22149 rm -f "$ac_dir/POTFILES"
22150 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22151 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22152 POMAKEFILEDEPS="POTFILES.in"
22153 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22154 # on $ac_dir but don't depend on user-specified configuration
22155 # parameters.
22156 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22157 # The LINGUAS file contains the set of available languages.
22158 if test -n "$OBSOLETE_ALL_LINGUAS"; then
22159 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
22160 fi
22161 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22162 # Hide the ALL_LINGUAS assigment from automake.
22163 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22164 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22165 else
22166 # The set of available languages was given in configure.ac.
22167 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22168 fi
22169 case "$ac_given_srcdir" in
22170 .) srcdirpre= ;;
22171 *) srcdirpre='$(srcdir)/' ;;
22172 esac
22173 POFILES=
22174 GMOFILES=
22175 UPDATEPOFILES=
22176 DUMMYPOFILES=
22177 for lang in $ALL_LINGUAS; do
22178 POFILES="$POFILES $srcdirpre$lang.po"
22179 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22180 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22181 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22182 done
22183 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22184 # environment variable.
22185 INST_LINGUAS=
22186 if test -n "$ALL_LINGUAS"; then
22187 for presentlang in $ALL_LINGUAS; do
22188 useit=no
22189 if test "%UNSET%" != "$LINGUAS"; then
22190 desiredlanguages="$LINGUAS"
22191 else
22192 desiredlanguages="$ALL_LINGUAS"
22193 fi
22194 for desiredlang in $desiredlanguages; do
22195 # Use the presentlang catalog if desiredlang is
22196 # a. equal to presentlang, or
22197 # b. a variant of presentlang (because in this case,
22198 # presentlang can be used as a fallback for messages
22199 # which are not translated in the desiredlang catalog).
22200 case "$desiredlang" in
22201 "$presentlang"*) useit=yes;;
22202 esac
22203 done
22204 if test $useit = yes; then
22205 INST_LINGUAS="$INST_LINGUAS $presentlang"
22206 fi
22207 done
22208 fi
22209 CATALOGS=
22210 if test -n "$INST_LINGUAS"; then
22211 for lang in $INST_LINGUAS; do
22212 CATALOGS="$CATALOGS $lang.gmo"
22213 done
22214 fi
22215 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22216 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"
22217 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22218 if test -f "$f"; then
22219 case "$f" in
22220 *.orig | *.bak | *~) ;;
22221 *) cat "$f" >> "$ac_dir/Makefile" ;;
22222 esac
22223 fi
22224 done
22225 fi
22226 ;;
22227 esac
22228 done ;;
22229 "default-2":C)
22230 for ac_file in $CONFIG_FILES; do
20e95c23
DJ
22231 # Support "outfile[:infile[:infile...]]"
22232 case "$ac_file" in
22233 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22234 esac
22235 # PO directories have a Makefile.in generated from Makefile.in.in.
22236 case "$ac_file" in */Makefile.in)
22237 # Adjust a relative srcdir.
22238 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 22239 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
22240 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22241 # In autoconf-2.13 it is called $ac_given_srcdir.
22242 # In autoconf-2.50 it is called $srcdir.
22243 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22244 case "$ac_given_srcdir" in
22245 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22246 /*) top_srcdir="$ac_given_srcdir" ;;
22247 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22248 esac
22249 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22250 rm -f "$ac_dir/POTFILES"
22251 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22252 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22253 POMAKEFILEDEPS="POTFILES.in"
22254 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
22255 # on $ac_dir but don't depend on user-specified configuration
22256 # parameters.
22257 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22258 # The LINGUAS file contains the set of available languages.
22259 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 22260 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
22261 fi
22262 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22263 # Hide the ALL_LINGUAS assigment from automake.
22264 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22265 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22266 else
37a42ee9 22267 # The set of available languages was given in configure.ac.
20e95c23
DJ
22268 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22269 fi
22270 case "$ac_given_srcdir" in
22271 .) srcdirpre= ;;
22272 *) srcdirpre='$(srcdir)/' ;;
22273 esac
22274 POFILES=
22275 GMOFILES=
22276 UPDATEPOFILES=
22277 DUMMYPOFILES=
22278 for lang in $ALL_LINGUAS; do
22279 POFILES="$POFILES $srcdirpre$lang.po"
22280 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22281 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22282 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22283 done
22284 # CATALOGS depends on both $ac_dir and the user's LINGUAS
22285 # environment variable.
22286 INST_LINGUAS=
22287 if test -n "$ALL_LINGUAS"; then
22288 for presentlang in $ALL_LINGUAS; do
22289 useit=no
22290 if test "%UNSET%" != "$LINGUAS"; then
22291 desiredlanguages="$LINGUAS"
22292 else
22293 desiredlanguages="$ALL_LINGUAS"
22294 fi
22295 for desiredlang in $desiredlanguages; do
22296 # Use the presentlang catalog if desiredlang is
22297 # a. equal to presentlang, or
22298 # b. a variant of presentlang (because in this case,
22299 # presentlang can be used as a fallback for messages
22300 # which are not translated in the desiredlang catalog).
22301 case "$desiredlang" in
22302 "$presentlang"*) useit=yes;;
22303 esac
22304 done
22305 if test $useit = yes; then
22306 INST_LINGUAS="$INST_LINGUAS $presentlang"
22307 fi
22308 done
22309 fi
22310 CATALOGS=
22311 if test -n "$INST_LINGUAS"; then
22312 for lang in $INST_LINGUAS; do
22313 CATALOGS="$CATALOGS $lang.gmo"
22314 done
22315 fi
22316 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22317 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"
22318 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22319 if test -f "$f"; then
22320 case "$f" in
22321 *.orig | *.bak | *~) ;;
22322 *) cat "$f" >> "$ac_dir/Makefile" ;;
22323 esac
22324 fi
22325 done
22326 fi
22327 ;;
22328 esac
22329 done ;;
33589acb
AM
22330 "default":C)
22331case "$srcdir" in
22332 .) srcdirpre= ;;
22333 *) srcdirpre='$(srcdir)/' ;;
22334esac
22335POFILES=
22336GMOFILES=
22337for lang in dummy $OBSOLETE_ALL_LINGUAS; do
22338 if test $lang != dummy; then
22339 POFILES="$POFILES $srcdirpre$lang.po"
22340 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22341 fi
22342done
22343sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
22344 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
22345 -e "s,@POFILES@,$POFILES," \
22346 -e "s,@GMOFILES@,$GMOFILES," \
22347 po/Makefile.in > po/Makefile ;;
81ecdfbb 22348
42ecbf5e 22349 esac
81ecdfbb 22350done # for ac_tag
42ecbf5e 22351
42ecbf5e 22352
81ecdfbb 22353as_fn_exit 0
42ecbf5e 22354_ACEOF
42ecbf5e
DJ
22355ac_clean_files=$ac_clean_files_save
22356
81ecdfbb 22357test $ac_write_fail = 0 ||
d0ac1c44 22358 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 22359
42ecbf5e
DJ
22360
22361# configure is writing to config.log, and then calls config.status.
22362# config.status does its own redirection, appending to config.log.
22363# Unfortunately, on DOS this fails, as config.log is still kept open
22364# by configure, so config.status won't be able to write to it; its
22365# output is simply discarded. So we exec the FD to /dev/null,
22366# effectively closing config.log, so it can be properly (re)opened and
22367# appended to by config.status. When coming back to configure, we
22368# need to make the FD available again.
22369if test "$no_create" != yes; then
22370 ac_cs_success=:
22371 ac_config_status_args=
22372 test "$silent" = yes &&
22373 ac_config_status_args="$ac_config_status_args --quiet"
22374 exec 5>/dev/null
22375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22376 exec 5>>config.log
22377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22378 # would make configure fail if this is the last instruction.
d0ac1c44 22379 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
22380fi
22381if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22383$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42ecbf5e 22384fi
252b5132 22385
d546b610
L
22386
22387
22388touch config.status.tmp
22389if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
22390 sed '/as_fn_exit 0/i \
22391sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
22392touch --reference=Makefile Makefile.tmp \
22393mv Makefile.tmp Makefile \
22394' config.status > config.status.tmp
22395 touch --reference=config.status config.status.tmp
22396 mv config.status.tmp config.status
22397 chmod +x config.status
22398 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
22399 touch --reference=Makefile Makefile.tmp
22400 mv Makefile.tmp Makefile
22401else
22402 rm -f config.status.tmp
22403fi